/* Shared navigation and task entry points for the member experience. */
.member-app { --muted: #566963; }
.member-app .topbar { position: sticky; top: 0; min-height: 80px; padding: 14px 32px; flex-wrap: nowrap; gap: 24px; }
.member-app .primary-navigation { margin-left: auto; flex: 0 1 auto; flex-wrap: nowrap; }
.member-app .topbar .btn { min-height: 44px; white-space: nowrap; }
.header-account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.member-app .topbar #who { display: block; font-size: 12px; max-width: 130px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-name::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #507d64; }
.mobile-menu-extras, .menu-toggle, .mobile-dock { display: none; }
.skip-link { position: fixed; left: 20px; top: -90px; z-index: 40; background: var(--blue); color: white; padding: 14px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
#mainContent:focus { outline: none; }
.member-app .narrow { margin-inline: auto; }
.member-app #view-login, .member-app #view-register { max-width: 560px; }
.auth-return { margin-bottom: 28px; }
.member-app .btn-primary:hover { background: #163d37; }
.member-app a[aria-current="page"] { background: #e6ece7; color: #204f49; }
.member-app .scene-link, .footer-admin { min-height: 36px; align-items: center; }
.connection-notice { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-bottom: 24px; border: 1px solid #d8bb85; padding: 20px; border-radius: 12px; background: #fff7e8; color: #705028; }
.connection-notice p { margin: 5px 0 0; font-size: 13px; }
.connection-notice .btn { flex-shrink: 0; }
.member-app .portal-features { gap: 20px; }
.member-app .portal-features .card { padding: 28px; border-top: 3px solid #9cb5a9; min-width: 0; }
.member-app .portal-features .feature-index { font: 10px/1.5 ui-monospace, monospace; letter-spacing: .14em; color: #5c7569; margin-bottom: 16px; }
.member-app .portal-features h2 { font-size: 23px; }
.portal-features .chips { margin-top: auto; }
.portal-next { margin-top: 40px; padding: 30px 32px; border-radius: 14px; background: #e6ede7; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.portal-next h2 { font-size: 23px; line-height: 1.5; font-weight: 550; margin: 8px 0; }
.portal-next p:not(.kicker) { color: var(--muted); font-size: 13px; margin: 0; }
.portal-next .btn { flex-shrink: 0; min-height: 48px; }
.quick-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-top: 28px; }
.quick-services a { min-width: 0; padding: 25px 20px; display: flex; gap: 12px; align-items: center; transition: background .15s; }
.quick-services a:hover { background: #edf1eb; }
.quick-services a + a { border-left: 1px solid var(--line); }
.quick-services a > span { font: 11px ui-monospace, monospace; color: #728377; }
.quick-services a > span:last-child { margin-left: auto; font-size: 18px; }
.quick-services b { font-size: 14px; font-weight: 550; }
.quick-services small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.scene-discovery { padding: 26px; margin-bottom: 24px; background: #edf1eb; border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 96px; }
.scene-search { max-width: 660px; }
.scene-search label { font-size: 15px; font-weight: 550; margin-bottom: 12px; }
.scene-search > div { display: flex; align-items: center; background: white; border: 1px solid #bacbbf; border-radius: 9px; gap: 10px; padding-left: 16px; }
.scene-search svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.5; flex-shrink: 0; }
.scene-search input { min-width: 0; flex: 1; border: 0; background: transparent; padding-left: 0; font-size: 15px; }
.scene-search > div:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.scene-search input:focus-visible { outline: none; }
.scene-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.scene-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filter-chip { background: transparent; color: var(--blue); border: 1px solid #b7c7bc; border-radius: 22px; padding: 9px 16px; min-height: 44px; cursor: pointer; font-size: 13px; }
.filter-chip:hover { background: #dde7df; }
.filter-chip[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.scene-results { color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.empty-state { padding: 56px 24px; text-align: center; background: white; border: 1px dashed #b9c9bf; border-radius: 12px; }
.empty-state > span { font-size: 42px; color: #698877; }
.empty-state h2 { font-weight: 550; font-size: 22px; }
.empty-state p { font-size: 14px; color: var(--muted); }
.member-app :is(input, textarea, select) { max-width: 100%; }
.member-app textarea { resize: vertical; }
.member-app :is(.form, .form-grid, .row, .section-tools) > * { min-width: 0; }
.member-app :is(.community-card, .card, .use-scene, .archive-section) { overflow-wrap: anywhere; }
.file-preview .topbar, .file-preview .page, .file-preview .mobile-dock, .file-preview .skip-link { display: none !important; }
.file-entry { max-width: 620px; margin: 12vh auto; padding: 40px; }
.file-entry-mark { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 20px; letter-spacing: .1em; margin-bottom: 28px; }
.file-entry h1 { font-size: 30px; line-height: 1.5; font-weight: 550; }
.file-entry > p:not(.kicker) { line-height: 1.9; color: var(--muted); }
.file-entry .nav-actions { margin: 24px 0; }
.file-entry .hint { margin-top: 32px; }
@media (max-width: 1060px) {
  .member-app .topbar { gap: 16px; padding: 12px 24px; min-height: 72px; }
  .header-account { margin-left: auto; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--blue); flex-shrink: 0; cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .15s; }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .member-app .topbar .primary-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px 24px 24px; border-bottom: 1px solid var(--line); background: #f6f6f2; box-shadow: 0 20px 25px #192b2a12; max-height: calc(100dvh - 150px); overflow: auto; }
  .member-app .topbar.menu-open .primary-navigation { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .member-app .primary-navigation .btn { min-height: 44px; justify-content: flex-start; padding: 0 12px; }
  .mobile-menu-extras { grid-column: 1 / -1; display: flex; gap: 14px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; font-size: 13px; }
  .mobile-menu-extras > span { width: 100%; font-size: 11px; color: var(--muted); }
  .mobile-menu-extras a { display: flex; align-items: center; min-height: 44px; }
  .quick-services { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quick-services a:nth-child(3) { border-left: 0; }.quick-services a:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .member-app .topbar { padding: 10px 16px; min-height: 68px; gap: 10px; }
  .member-app .brand { gap: 8px; letter-spacing: .04em; font-size: 14px; }
  .member-app .brand-seal { width: 36px; height: 36px; font-size: 12px; padding-top: 3px; }
  .member-app .brand small { font-size: 8px; letter-spacing: .14em; }
  .member-app .topbar #who { max-width: 76px; font-size: 12px; }
  .header-account { gap: 2px; }.member-app .topbar .btn { min-height: 44px; font-size: 12px; padding-inline: 10px; }
  .member-app .page { width: calc(100% - 32px); padding-top: 24px; padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
  .member-app.without-dock .page { padding-bottom: 40px; }
  .member-app .mobile-dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: #fbfcf9f5; backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 9; }
  .mobile-dock a { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 5px; min-height: 50px; border-radius: 10px; font-size: 10px; color: #61756b; }
  .mobile-dock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .member-app .mobile-dock a[aria-current] { background: #e8efe8; color: #214c3c; }
  .member-app .app-status { bottom: calc(86px + env(safe-area-inset-bottom)); }.member-app.without-dock .app-status { bottom: 24px; }
  .portal-intro { gap: 28px; padding-bottom: 34px; }
  .intro-copy h1 { font-size: clamp(34px, 10vw, 46px); margin: 12px 0 18px; }
  .intro-description { font-size: 14px; line-height: 1.85; margin-bottom: 24px; }
  .intro-copy .nav-actions { gap: 10px; }.intro-copy .btn { padding: 0 18px; }
  .intro-facts { gap: 8px; font-size: 10px; }.intro-facts span + span { padding-left: 8px; }
  .scene-check { display: block; }.scene-option { min-height: 48px; }
  .member-app .portal-features .card { padding: 24px; }
  .portal-next { margin-top: 28px; padding: 24px; flex-direction: column; align-items: flex-start; gap: 20px; }.portal-next h2 { font-size: 21px; }
  .quick-services a { gap: 8px; padding: 20px 12px; }.quick-services a > span:first-child { display: none; }.quick-services small { font-size: 10px; }
  .scene-discovery { padding: 20px 16px; }.scene-filters { gap: 8px; }.filter-chip { font-size: 12px; padding-inline: 12px; }
  .member-app input, .member-app select, .member-app textarea { font-size: 16px; }
  .connection-notice { flex-wrap: wrap; padding: 16px; }
  .community-card, .profile-editor-section, .archive-record, .archive-section, .featured-voucher--compute, .use-scene[id] { scroll-margin-top: 90px; }
  .member-app footer { margin-top: 32px; }
  .file-entry { padding: 24px; margin: 7vh auto; }.file-entry h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
