  @import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Archivo:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

  :root {
    --paper: #F3EFE3;
    --paper-raised: #FBF9F1;
    --ink: #211D16;
    --ink-soft: #5C5642;
    --line: #D8CFB0;
    --saffron: #C4771A;
    --brick:   #A8472F;
    --hill:    #3E6B4C;
    --river:   #1F5C78;
    --plum:    #6B4E86;
    --teal:    #1E7A6B;
    --saffron-ink: #7A4A0E;
    --glow: transparent;
    --shadow: 0 1px 2px rgba(33,29,22,0.07), 0 10px 28px rgba(33,29,22,0.07);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #14120D; --paper-raised: #1C1913; --ink: #F1ECDD; --ink-soft: #A69C7E;
      --line: #37311F; --saffron: #EFA23F; --brick: #E17456; --hill: #74B187;
      --river: #5FB2D6; --plum: #B79BDA; --teal: #4FC7B4; --saffron-ink: #F0B25E;
      --glow: rgba(239,162,63,0.22); --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 32px rgba(0,0,0,0.45);
    }
  }
  :root[data-theme="dark"] {
    --paper: #14120D; --paper-raised: #1C1913; --ink: #F1ECDD; --ink-soft: #A69C7E;
    --line: #37311F; --saffron: #EFA23F; --brick: #E17456; --hill: #74B187;
    --river: #5FB2D6; --plum: #B79BDA; --teal: #4FC7B4; --saffron-ink: #F0B25E;
    --glow: rgba(239,162,63,0.22); --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 32px rgba(0,0,0,0.45);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }

  body {
    margin: 0;
    background: var(--paper);
    background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0);
    background-size: 26px 26px; background-attachment: fixed;
    color: var(--ink); font-family: 'IBM Plex Sans', -apple-system, sans-serif; line-height: 1.6;
  }
  h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; text-wrap: balance; color: var(--ink); }
  code, .mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
  a { color: var(--river); }
  button { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 3px; }

  /* -------- icon system -------- */
  .icon {
    width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .icon-light { stroke: var(--paper-raised); }

  /* -------- footer -------- */
  .site-footer {
    text-align: center; padding: 1.4rem 1rem 2rem;
    font-family: 'Archivo', sans-serif; font-size: 0.78rem;
    color: var(--ink-soft); border-top: 1px solid var(--line);
  }
  .site-footer b { color: var(--ink); }
  .site-footer .admin-link { color: var(--ink-soft); text-decoration: none; margin-left: 0.6rem; font-family: 'Archivo', sans-serif; font-weight: 700; }
  .site-footer .admin-link:hover { color: var(--ink); text-decoration: underline; }
  @media (max-width: 860px) { .site-footer { padding-bottom: calc(2rem + 64px + env(safe-area-inset-bottom)); } }

  /* -------- admin -------- */
  .admin-gate { max-width: 26rem; }
  .admin-gate input {
    font-family: inherit; font-size: 0.95rem; padding: 0.6rem 0.9rem; border-radius: 8px;
    border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink);
    width: 100%; margin: 0.8rem 0;
  }
  .admin-btn {
    all: unset; cursor: pointer; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.82rem;
    color: var(--paper-raised); background: var(--ink); padding: 0.5rem 1rem; border-radius: 8px;
    display: inline-block;
  }
  .admin-btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
  .admin-btn.danger { background: var(--brick); }
  .admin-error { color: var(--brick); font-size: 0.85rem; margin-top: 0.5rem; }
  .admin-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
  .admin-editor { display: none; }
  .admin-editor.active { display: block; }
  .admin-editor textarea {
    width: 100%; min-height: 320px; font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem;
    padding: 1rem; border-radius: 10px; border: 1px solid var(--line);
    background: var(--paper-raised); color: var(--ink); resize: vertical; line-height: 1.5;
  }
  .admin-actions { display: flex; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; align-items: center; }
  .admin-status { font-size: 0.82rem; color: var(--hill); }
  .admin-status.err { color: var(--brick); }
  .admin-hint { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 1rem; }

  .shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); max-width: 1280px; margin: 0 auto; min-height: 100dvh; }

  /* -------- sidebar / tab nav -------- */
  aside {
    position: sticky; top: 0; align-self: start; height: 100dvh; overflow-y: auto;
    padding: 1.6rem 1.2rem 1.6rem 1.8rem; border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
  }
  .brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.25rem; }
  .brand-mark { font-size: 1.5rem; }
  .brand-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.15rem; }
  .brand-sub { color: var(--ink-soft); font-size: 0.76rem; margin-bottom: 1.6rem; }

  nav.tabs { display: flex; flex-direction: column; gap: 0.15rem; }
  .nav-btn {
    all: unset; cursor: pointer;
    display: flex; align-items: center; gap: 0.65rem;
    font-size: 0.9rem; color: var(--ink-soft);
    padding: 0.55rem 0.7rem; border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .nav-btn .ic { width: 20px; text-align: center; }
  .nav-btn .count { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--ink-soft); background: var(--paper-raised); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.4rem; }
  .nav-btn:hover { background: var(--paper-raised); color: var(--ink); }
  .nav-btn[aria-selected="true"] { color: var(--ink); background: var(--paper-raised); border-left-color: var(--dot); font-weight: 600; box-shadow: var(--shadow); }

  .legend-card { margin-top: auto; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-raised); }
  .legend-card .lc-title { font-family: 'Archivo', sans-serif; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; margin-bottom: 0.55rem; }
  .legend-card .lc-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; padding: 0.15rem 0; }
  .legend-card .lc-row .ln { width: 12px; height: 4px; border-radius: 2px; flex-shrink: 0; }

  main { padding: 0 0 5rem; min-width: 0; }
  .panel-inner { padding: 2.6rem 3rem 1rem; }
  @media (max-width: 860px) { .panel-inner { padding: 1.8rem 1.3rem 1rem; } }
  @media (max-width: 640px) { .panel-inner { padding: 1.6rem 1.1rem 1rem; } }

  .tab-panel { display: none; }
  .tab-panel.active { display: block; }
  @media (prefers-reduced-motion: no-preference) {
    .tab-panel.active { animation: fadeSlide 0.32s ease; }
  }
  @keyframes fadeSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  /* -------- home / hero -------- */
  .plate { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-raised); background: var(--ink); padding: 0.35rem 0.7rem 0.35rem 0.55rem; border-radius: 4px; margin-bottom: 1.2rem; }
  .plate .plate-mark { background: var(--saffron); color: var(--paper-raised); border-radius: 3px; padding: 0.05rem 0.4rem; font-family: 'IBM Plex Mono', monospace; }
  h1.home-title { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; margin: 0 0 1rem; font-weight: 600; max-width: 17ch; }
  h1.home-title em { font-style: italic; font-weight: 500; color: var(--saffron-ink); }
  .lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 56ch; margin: 0 0 2.2rem; }

  .route-illustration svg { width: 100%; height: auto; display: block; overflow: visible; cursor: pointer; }
  .route-line { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
  .stop-dot { stroke: var(--paper); stroke-width: 4; transition: r 0.15s; }
  .route-illustration g:hover .stop-dot { r: 18; }
  .stop-label { font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 700; fill: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }
  .stop-icon { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

  .quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin: 2.4rem 0; }
  @media (max-width: 760px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
  .quick-card {
    all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 0.4rem;
    background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px;
    padding: 1.1rem 1.2rem; box-shadow: var(--shadow); border-top: 3px solid var(--dot);
    transition: transform 0.15s;
  }
  .quick-card:hover { transform: translateY(-3px); }
  .quick-card .qc-ic { font-size: 1.4rem; }
  .quick-card .qc-title { font-weight: 600; font-size: 0.95rem; }
  .quick-card .qc-sub { font-size: 0.78rem; color: var(--ink-soft); }

  .notes-link { display: inline-flex; align-items: center; gap: 0.4rem; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--river); text-decoration: none; margin-top: 0.5rem; background: none; border: none; cursor: pointer; padding: 0; }

  /* -------- section headers -------- */
  .panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
  .panel-head h2 { font-size: 1.7rem; margin: 0; font-weight: 600; }
  .panel-count { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: var(--ink-soft); }
  .panel-desc { color: var(--ink-soft); max-width: 62ch; margin: 0.6rem 0 1.6rem; }

  /* -------- filter bar -------- */
  .filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem; }
  .region-bar { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
  .region-bar .chip { font-size: 0.82rem; padding: 0.5rem 1rem; }
  .search-input {
    font-family: inherit; font-size: 0.88rem; padding: 0.5rem 0.8rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink);
    min-width: 180px;
  }
  .search-input::placeholder { color: var(--ink-soft); }
  .chip {
    all: unset; cursor: pointer; font-family: 'Archivo', sans-serif; font-size: 0.76rem; font-weight: 700;
    padding: 0.42rem 0.85rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-soft);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .chip:hover { border-color: var(--dot); color: var(--ink); }
  .chip[aria-pressed="true"] { background: var(--dot); border-color: var(--dot); color: var(--paper-raised); }

  /* -------- listing cards -------- */
  .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
  .listing-card {
    background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px;
    padding: 1.1rem 1.2rem; box-shadow: var(--shadow); border-left: 4px solid var(--dot);
  }
  @media (prefers-reduced-motion: no-preference) { .listing-card { animation: fadeSlide 0.3s ease backwards; } }
  .listing-card .lc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.3rem; }
  .listing-card h3 { font-size: 1rem; margin: 0; font-weight: 600; font-family: 'IBM Plex Sans', sans-serif; }
  .sample-tag { flex-shrink: 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.04em; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0.1rem 0.35rem; }
  .rating-pill { flex-shrink: 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; font-weight: 600; color: var(--dot); border: 1px solid var(--line); border-radius: 4px; padding: 0.1rem 0.4rem; white-space: nowrap; }
  .lc-area { font-size: 0.76rem; color: var(--ink-soft); margin: -0.25rem 0 0.5rem; }
  .listing-card .lc-meta { font-size: 0.78rem; color: var(--dot); font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.5rem; }
  .listing-card p { font-size: 0.87rem; color: var(--ink-soft); margin: 0; }
  .lc-tags { display: flex; gap: 0.35rem; margin-top: 0.7rem; flex-wrap: wrap; }
  .lc-tags span { font-size: 0.7rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.12rem 0.5rem; color: var(--ink-soft); }
  .lc-phone { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.45rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 0.6rem; text-decoration: none; }
  a.lc-phone:hover { color: var(--ink); }
  .empty-state { color: var(--ink-soft); font-size: 0.9rem; padding: 2rem 0; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

  /* -------- map -------- */
  .map-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.2rem; align-items: start; }
  @media (max-width: 860px) { .map-layout { grid-template-columns: 1fr; } }
  .map-stage {
    position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background: var(--paper-raised); box-shadow: var(--shadow); aspect-ratio: 4/3;
  }
  .map-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .pin-btn {
    all: unset; position: absolute; transform: translate(-50%, -100%); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; z-index: 2;
  }
  .pin-btn .dot { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--dot); border: 2px solid var(--paper-raised); box-shadow: 0 2px 6px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; }
  .pin-btn .dot span { transform: rotate(45deg); font-size: 12px; }
  .pin-btn.dim { opacity: 0.15; pointer-events: none; }
  .pin-btn:hover .dot, .pin-btn.selected .dot { transform: rotate(-45deg) scale(1.18); }
  .campus-pin { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: flex; flex-direction: column; align-items: center; }
  .campus-pin .badge { background: var(--ink); color: var(--paper-raised); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 0 0 5px var(--glow, transparent); }
  .campus-pin .cap { font-family: 'Archivo', sans-serif; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; margin-top: 0.2rem; color: var(--ink-soft); }

  .map-side { display: flex; flex-direction: column; gap: 0.9rem; }
  .map-layers { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
  .map-layers .lc-title { font-family: 'Archivo', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); font-weight: 700; margin-bottom: 0.7rem; }
  .layer-row { display: flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0; font-size: 0.85rem; cursor: pointer; }
  .layer-row input { accent-color: var(--dot); width: 15px; height: 15px; }

  .pin-detail { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); min-height: 120px; }
  .pin-detail .pd-empty { color: var(--ink-soft); font-size: 0.85rem; }
  .pin-detail .pd-cat { font-family: 'Archivo', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--dot); margin-bottom: 0.3rem; }
  .pin-detail h3 { font-size: 1.02rem; margin: 0 0 0.4rem; }
  .pin-detail p { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
  .pd-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .pd-goto { all: unset; cursor: pointer; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.78rem; color: var(--paper-raised); background: var(--dot); padding: 0.45rem 0.8rem; border-radius: 8px; }
  .pd-dir {
    display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none;
    font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.78rem;
    color: var(--ink); border: 1.5px solid var(--line); background: var(--paper);
    padding: 0.42rem 0.8rem; border-radius: 8px; transition: border-color 0.15s;
  }
  .pd-dir:hover { border-color: var(--dot); }
  .pd-tip { font-size: 0.72rem; color: var(--ink-soft); margin: 0.7rem 0 0; font-style: italic; }
  .map-hint { font-size: 0.82rem; color: var(--ink-soft); background: var(--paper-raised); border: 1px dashed var(--line); border-radius: 8px; padding: 0.6rem 0.9rem; margin: -0.7rem 0 1.3rem; max-width: 62ch; }
  .map-hint b { color: var(--ink); }
  .pin-btn.selected .dot { box-shadow: 0 0 0 4px var(--paper-raised), 0 0 0 6px var(--dot-c, var(--saffron)); }
  .listing-card .lc-dir {
    display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.75rem;
    font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.75rem;
    color: var(--dot); text-decoration: none;
  }
  .listing-card .lc-dir:hover { text-decoration: underline; }

  /* -------- compass -------- */
  .compass-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
  .compass-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: 1rem 0 2rem; }
  .compass-status { font-size: 0.88rem; color: var(--ink-soft); max-width: 34ch; margin: 0; }
  .compass-stage { display: flex; flex-direction: column; align-items: center; margin-top: 0.5rem; }
  .compass-you { font-family: 'Archivo', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem; }
  .compass-face {
    position: relative; width: min(72vw, 280px); aspect-ratio: 1;
    border-radius: 50%; background: var(--paper-raised); border: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .compass-ring, .compass-arrow { position: absolute; inset: 0; width: 100%; height: 100%; }
  .compass-ring { transition: transform 0.2s linear; }
  .compass-ring .tick-major { stroke: var(--ink-soft); stroke-width: 1.6; }
  .compass-ring .tick-minor { stroke: var(--line); stroke-width: 1; }
  .compass-ring .cardinal { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; fill: var(--ink); text-anchor: middle; }
  .compass-ring .ordinal { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 8px; fill: var(--ink-soft); text-anchor: middle; }
  .compass-arrow { transition: transform 0.2s linear; pointer-events: none; opacity: 0; }
  .compass-arrow.live { opacity: 1; }
  .compass-hub {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  }
  .compass-hub-deg { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 0.8rem; color: var(--ink); }
  .compass-hub-dist { font-size: 0.6rem; color: var(--ink-soft); margin-top: 0.15rem; max-width: 80%; text-align: center; line-height: 1.2; }

  /* -------- notes / callouts -------- */
  .callout { border-left: 3px solid var(--saffron); background: var(--paper-raised); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
  .callout b { color: var(--ink); }
  .notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  @media (max-width: 760px) { .notes-grid { grid-template-columns: 1fr; } }
  .notes-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
  .notes-card h3 { font-size: 1rem; margin: 0 0 0.7rem; }
  .checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
  .checklist li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.87rem; color: var(--ink-soft); }
  .checklist li::before { content: ""; width: 0.85rem; height: 0.85rem; border: 1.5px solid var(--ink-soft); border-radius: 3px; margin-top: 0.2rem; flex-shrink: 0; }

  /* -------- mobile bottom nav -------- */
  .bottom-nav { display: none; }
  @media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    aside { display: none; }
    .bottom-nav {
      display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
      background: var(--paper-raised); border-top: 1px solid var(--line);
      padding: 0.4rem 0.2rem calc(0.4rem + env(safe-area-inset-bottom));
      box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    }
    .bottom-nav .nav-btn { flex: 1; flex-direction: column; gap: 0.15rem; align-items: center; border-left: none; border-top: 3px solid transparent; border-radius: 0; padding: 0.35rem 0.1rem; font-size: 0.62rem; }
    .bottom-nav .nav-btn .count { display: none; }
    .bottom-nav .nav-btn[aria-selected="true"] { border-top-color: var(--dot); background: transparent; box-shadow: none; }
    main { padding-bottom: 5.5rem; }
  }
