:root {
  color-scheme: light;
  --navy-950: #071426;
  --navy-900: #0b1c32;
  --navy-800: #132945;
  --ink: #102033;
  --ink-soft: #36485d;
  --muted: #697a8d;
  --canvas: #e8edef;
  --panel: #f7f9f8;
  --panel-strong: #ffffff;
  --line: #d4dcde;
  --line-dark: rgba(255,255,255,.12);
  --cyan: #67a4b8;
  --cyan-soft: #dcebf0;
  --green: #4f876b;
  --green-soft: #e4efe9;
  --amber: #b7893b;
  --amber-soft: #f4ecd9;
  --red: #ad5b55;
  --red-soft: #f3e4e2;
  --violet: #786c9c;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(5, 19, 35, .14);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy-950); color: var(--ink); min-width: 320px; }
button, textarea, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 88px minmax(0, 1fr); }
.side-rail { position: fixed; inset: 0 auto 0 0; width: 88px; z-index: 30; display: flex; flex-direction: column; align-items: center; padding: 22px 10px; background: rgba(7, 20, 38, .96); border-right: 1px solid var(--line-dark); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; font: 700 19px Georgia, serif; text-decoration: none; }
.rail-nav { display: grid; gap: 8px; width: 100%; margin-top: 44px; }
.nav-item { border: 0; background: transparent; color: #91a4ba; min-height: 58px; border-radius: var(--radius); display: grid; place-items: center; gap: 4px; padding: 7px 4px; transition: .18s ease; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item span { font-size: 11px; font-weight: 700; }
.nav-item:hover, .nav-item.is-active { color: white; background: rgba(103,164,184,.18); }
.rail-assistant { margin-top: auto; width: 100%; color: #d6c58f; }
.app-stage { grid-column: 2; min-width: 0; background: var(--canvas); min-height: 100vh; }

.topbar { position: sticky; top: 0; z-index: 20; height: 82px; padding: 15px clamp(18px, 3vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(11, 28, 50, .96); border-bottom: 1px solid var(--line-dark); color: white; backdrop-filter: blur(18px); }
.topbar h1 { font-size: 24px; line-height: 1.2; letter-spacing: 0; }
.eyebrow, .section-kicker { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.source-status { display: inline-flex; align-items: center; gap: 8px; color: #c9d6e3; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(183,137,59,.15); }
.source-status.is-live .status-dot { background: #6fb28d; box-shadow: 0 0 0 4px rgba(111,178,141,.15); }
.source-status.is-error .status-dot { background: #d26f67; box-shadow: 0 0 0 4px rgba(210,111,103,.15); }

.icon-button, .assistant-button, .primary-button, .subtle-button, .text-button { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: var(--radius); font-weight: 800; }
.icon-button { width: 40px; padding: 0; color: inherit; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); }
.icon-button svg, .primary-button svg, .text-button svg, .subtle-button svg { width: 17px; height: 17px; }
.assistant-button { padding: 0 16px; background: var(--cyan-soft); color: #16394a; }
.primary-button { padding: 0 17px; background: var(--cyan); color: #071a26; }
.subtle-button { padding: 0 14px; background: #edf1f1; color: var(--ink-soft); border: 1px solid var(--line); }
.text-button { background: transparent; color: #426b80; padding: 0 2px; }
.text-button:hover { color: var(--ink); }

.main-content { max-width: 1680px; margin: 0 auto; padding: clamp(18px, 2.4vw, 38px); }
.route { display: none; animation: route-in .24s ease; }
.route.is-active { display: block; }
@keyframes route-in { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.decision-hero { min-height: 270px; background: var(--navy-900); color: white; border-radius: var(--radius); padding: clamp(28px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 38px; overflow: hidden; position: relative; }
.decision-hero::after { content: ""; position: absolute; right: -80px; bottom: -160px; width: 500px; height: 320px; border: 1px solid rgba(103,164,184,.22); border-radius: 50%; transform: rotate(-13deg); }
.decision-copy { position: relative; z-index: 1; max-width: 780px; }
.decision-copy h2 { font-size: clamp(34px, 4.5vw, 62px); line-height: 1.07; letter-spacing: 0; margin: 7px 0 16px; }
.decision-copy > p:not(.section-kicker) { max-width: 680px; color: #c1cfdd; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; gap: 18px; margin-top: 26px; }
.decision-hero .text-button { color: #bcd4df; }
.decision-score { position: relative; z-index: 1; width: 180px; min-width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.05); backdrop-filter: blur(10px); }
.decision-score span, .decision-score small { color: #aebfd0; font-weight: 700; }
.decision-score strong { font-size: 54px; line-height: 1.05; }

.market-tape { margin-top: 14px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quote-item { padding: 16px 18px; min-width: 0; border-right: 1px solid var(--line); }
.quote-item:last-child { border-right: 0; }
.quote-item span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.quote-item strong { display: block; font-size: 19px; margin: 7px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-item small { color: var(--muted); font-weight: 700; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.home-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .75fr); gap: 20px; margin-top: 20px; }
.home-primary, .home-aside { display: grid; align-content: start; gap: 20px; }
.content-section, .quiet-panel, .source-ledger, .calendar-board, .journal-compose { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.3vw, 32px); }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-header h2 { font-size: 23px; }
.section-header.compact { margin-bottom: 15px; }
.section-header.compact h2 { font-size: 19px; }
.section-count, .signal-pill, .live-badge { color: var(--ink-soft); background: #e7ecee; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 800; }
.empty-state { padding: 36px 12px; color: var(--muted); text-align: center; }

.timeline-list, .news-list, .record-list, .holding-list { display: grid; }
.timeline-item, .news-item, .record-item, .holding-item { display: grid; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.timeline-item:first-child, .news-item:first-child, .record-item:first-child, .holding-item:first-child { border-top: 0; }
.timeline-item { grid-template-columns: 76px minmax(0, 1fr) auto; align-items: start; }
.timeline-time { color: #33738b; font-size: 16px; font-weight: 900; }
.timeline-main h3, .news-item h3, .record-item h3, .holding-item h3 { font-size: 15px; margin-bottom: 5px; }
.timeline-main p, .news-item p, .record-item p, .holding-item p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.impact { border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.impact.high { background: var(--red-soft); color: #7c3732; }
.impact.medium { background: var(--amber-soft); color: #73531e; }
.impact.low { background: var(--cyan-soft); color: #2e6376; }
.news-item { grid-template-columns: minmax(0, 1fr) auto; }
.news-item a { text-decoration: none; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; margin-top: 7px; }
.news-source { align-self: center; color: #426b80; font-size: 11px; font-weight: 800; }
.driver-list { display: grid; }
.driver-row { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(88px, .7fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.driver-row:first-child { border-top: 0; }
.driver-row span { font-size: 12px; color: var(--muted); }
.driver-row strong { font-size: 14px; }
.driver-row small { font-size: 10px; font-weight: 900; color: var(--amber); }
.session-now { padding: 17px 0 9px; border-bottom: 1px solid var(--line); }
.session-now strong { font-size: 24px; }
.session-now p, .session-note { color: var(--muted); line-height: 1.65; font-size: 13px; margin-top: 5px; }
.session-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 15px; }
.session-chip { height: 7px; background: #d9e0e2; border-radius: 999px; }
.session-chip.is-active { background: var(--cyan); }

.analysis-toolbar, .calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.symbol-tabs, .filter-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.symbol-tabs button, .filter-pills button { min-height: 38px; padding: 0 14px; border: 1px solid #c8d1d5; border-radius: var(--radius); background: rgba(255,255,255,.55); color: var(--ink-soft); font-weight: 800; }
.symbol-tabs button.is-active, .filter-pills button.is-active { background: var(--navy-800); border-color: var(--navy-800); color: white; }
.analysis-meta { display: flex; gap: 12px; font-weight: 900; }
.analysis-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; }
.chart-surface { min-width: 0; background: var(--navy-950); color: white; border-radius: var(--radius); overflow: hidden; }
.chart-heading { height: 70px; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-dark); }
.chart-heading h2 { font-size: 19px; }
.live-badge { color: #bcd4df; background: rgba(103,164,184,.12); border-color: rgba(103,164,184,.28); }
.live-badge span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; background: #71b590; }
.tradingview-chart { height: 650px; width: 100%; }
.strategy-rail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.strategy-status { padding: 26px; background: var(--navy-800); color: white; }
.strategy-status p { color: #aac0d4; font-size: 11px; font-weight: 800; }
.strategy-status h2 { margin: 10px 0; font-size: 27px; }
.strategy-status span { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 11px; font-weight: 900; }
.strategy-metrics { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.strategy-metric { padding: 18px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.strategy-metric:nth-child(2n) { border-right: 0; }
.strategy-metric span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; }
.strategy-metric strong { display: block; font-size: 18px; margin-top: 6px; }
.strategy-block { padding: 21px 23px; border-top: 1px solid var(--line); }
.strategy-block h3 { font-size: 13px; margin-bottom: 8px; }
.strategy-block p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.analysis-lower { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scenario-list, .gate-list { display: grid; }
.scenario-row, .gate-row { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
.scenario-row:first-child, .gate-row:first-child { border-top: 0; }
.scenario-row strong, .gate-row strong { font-size: 12px; }
.scenario-row p, .gate-row p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.month-controls { display: flex; align-items: center; gap: 10px; }
.month-controls .icon-button { color: var(--ink); background: var(--panel); border-color: var(--line); }
.month-controls p { color: var(--muted); font-size: 11px; font-weight: 800; }
.month-controls h2 { min-width: 72px; }
.calendar-board { padding: 15px; overflow: hidden; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekday-row span { text-align: center; padding: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.calendar-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar-day { position: relative; min-height: 150px; padding: 11px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel-strong); text-align: left; color: var(--ink); overflow: hidden; }
.calendar-day:hover { background: #f1f5f5; }
.calendar-day.is-outside { background: #edf1f1; color: #94a1ad; }
.calendar-day.is-today { box-shadow: inset 0 0 0 2px var(--cyan); }
.day-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.day-number { font-size: 17px; font-weight: 900; }
.day-count { font-size: 9px; color: var(--muted); font-weight: 800; }
.day-events { display: grid; gap: 5px; }
.day-event { border-left: 3px solid var(--cyan); padding: 5px 6px; background: #eef4f5; border-radius: 3px; min-width: 0; }
.day-event.high { border-color: var(--red); background: #f7ecea; }
.day-event.medium { border-color: var(--amber); background: #f7f1e5; }
.day-event strong, .day-event span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-event strong { font-size: 10px; }
.day-event span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.date-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 94vw); z-index: 60; background: var(--panel); box-shadow: -24px 0 70px rgba(4,18,34,.25); transform: translateX(105%); transition: transform .25s ease; overflow-y: auto; }
.date-drawer.is-open { transform: translateX(0); }
.date-drawer > header, .assistant-drawer > header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; background: rgba(247,249,248,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.date-drawer .icon-button, .assistant-drawer .icon-button { color: var(--ink); background: white; border-color: var(--line); }
.date-drawer-body { padding: 26px; }
.drawer-event { padding: 18px 0; border-top: 1px solid var(--line); }
.drawer-event:first-child { border-top: 0; }
.drawer-event h3 { font-size: 16px; margin: 8px 0; }
.drawer-event p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.drawer-event dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.drawer-event dl div { padding: 10px; background: #edf1f1; border-radius: 4px; }
.drawer-event dt { color: var(--muted); font-size: 9px; font-weight: 800; }
.drawer-event dd { margin: 5px 0 0; font-weight: 800; font-size: 12px; }

.intelligence-lead { background: var(--navy-800); color: white; border-radius: var(--radius); padding: 34px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.intelligence-lead h2 { font-size: 30px; margin-bottom: 10px; }
.intelligence-lead p:not(.section-kicker) { max-width: 820px; color: #c3d0de; line-height: 1.7; }
.intel-updated { color: #aac0d4; white-space: nowrap; font-size: 12px; font-weight: 800; }
.intelligence-layout { display: grid; grid-template-columns: .9fr 1.3fr; gap: 18px; margin-top: 18px; }
.macro-table { display: grid; }
.macro-row { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(100px, .7fr) minmax(0, 1.4fr); gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.macro-row:first-child { border-top: 0; }
.macro-row span { color: var(--muted); font-size: 12px; }
.macro-row strong { font-size: 15px; }
.source-ledger { margin-top: 18px; }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.source-item { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source-item strong { display: block; font-size: 13px; }
.source-item span { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }

.journal-compose { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.5fr); gap: 20px 30px; align-items: start; }
.journal-compose h2 { font-size: 28px; margin-bottom: 10px; }
.journal-compose p:not(.section-kicker) { color: var(--muted); line-height: 1.7; }
.journal-compose textarea { width: 100%; resize: vertical; border: 1px solid #c8d2d6; border-radius: var(--radius); background: white; padding: 16px; color: var(--ink); outline: none; line-height: 1.6; }
.journal-compose textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103,164,184,.14); }
.compose-actions { grid-column: 2; display: flex; gap: 10px; }
.parse-preview { grid-column: 1 / -1; padding: 18px; background: var(--cyan-soft); border-radius: var(--radius); }
.journal-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.record-item, .holding-item { grid-template-columns: minmax(0, 1fr) auto; }
.item-actions { display: flex; gap: 6px; }
.item-actions button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink-soft); }
.holding-symbol { display: flex; align-items: baseline; gap: 8px; }
.holding-symbol strong { font-size: 18px; }

.assistant-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(470px, 94vw); z-index: 70; background: var(--panel); box-shadow: -24px 0 70px rgba(4,18,34,.3); transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; }
.assistant-drawer.is-open { transform: translateX(0); }
.assistant-messages { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.assistant-message { max-width: 88%; padding: 13px 15px; border-radius: var(--radius); line-height: 1.65; font-size: 13px; background: #e7edef; }
.assistant-message.user { margin-left: auto; background: var(--navy-800); color: white; }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 22px 14px; }
.assistant-suggestions button { border: 1px solid var(--line); background: white; color: var(--ink-soft); border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 800; }
.assistant-form { padding: 16px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.assistant-form textarea { resize: none; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; outline: none; }
.assistant-footnote { padding: 0 22px 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.drawer-scrim { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(3,14,27,.45); backdrop-filter: blur(2px); }
.drawer-scrim.is-active { display: block; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; background: var(--navy-900); color: white; padding: 11px 16px; border-radius: var(--radius); font-size: 12px; font-weight: 800; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .market-tape { grid-template-columns: repeat(3, 1fr); }
  .quote-item:nth-child(3) { border-right: 0; }
  .quote-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .home-layout, .intelligence-layout { grid-template-columns: 1fr; }
  .home-aside { grid-template-columns: 1fr 1fr; }
  .analysis-workbench { grid-template-columns: 1fr; }
  .strategy-rail { display: grid; grid-template-columns: 260px 1fr 1fr; }
  .strategy-status { grid-row: 1 / span 2; }
  .strategy-metrics { border-bottom: 0; }
  .calendar-day { min-height: 130px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .side-rail { display: none; }
  .app-stage { min-height: 100vh; }
  .topbar { height: 68px; padding: 10px 15px; }
  .topbar h1 { font-size: 20px; }
  .source-status span:last-child { display: none; }
  .assistant-button span { display: none; }
  .assistant-button { width: 40px; padding: 0; }
  .main-content { padding: 14px 12px 88px; }
  .decision-hero { min-height: 330px; padding: 28px 22px; align-items: flex-start; }
  .decision-copy h2 { font-size: 36px; }
  .decision-score { position: absolute; width: 112px; min-width: 112px; height: 112px; right: 18px; bottom: 18px; }
  .decision-score strong { font-size: 35px; }
  .decision-score span { font-size: 10px; }
  .hero-actions { max-width: calc(100% - 116px); flex-direction: column; align-items: flex-start; }
  .market-tape { grid-template-columns: repeat(2, 1fr); }
  .quote-item:nth-child(3) { border-right: 1px solid var(--line); }
  .quote-item:nth-child(2n) { border-right: 0; }
  .quote-item:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .home-aside, .analysis-lower, .journal-layout { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 62px minmax(0, 1fr); }
  .timeline-item .impact { grid-column: 2; justify-self: start; }
  .analysis-toolbar, .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .symbol-tabs, .filter-pills { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .symbol-tabs button, .filter-pills button { white-space: nowrap; }
  .tradingview-chart { height: 500px; }
  .strategy-rail { display: block; }
  .calendar-board { padding: 0; background: transparent; border: 0; overflow-x: auto; }
  .weekday-row, .calendar-grid { min-width: 930px; }
  .calendar-day { min-height: 128px; }
  .intelligence-lead { align-items: flex-start; flex-direction: column; }
  .source-grid { grid-template-columns: 1fr; }
  .journal-compose { grid-template-columns: 1fr; }
  .compose-actions, .parse-preview { grid-column: 1; }
  .drawer-event dl { grid-template-columns: 1fr 1fr 1fr; }
  .mobile-nav { position: fixed; z-index: 40; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 66px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px; background: rgba(247,249,248,.96); border: 1px solid rgba(255,255,255,.65); border-radius: 8px; box-shadow: 0 12px 40px rgba(4,18,34,.25); backdrop-filter: blur(18px); }
  .mobile-nav .nav-item { min-height: 54px; color: var(--muted); }
  .mobile-nav .nav-item.is-active { color: var(--navy-900); background: var(--cyan-soft); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
