:root {
  --bg: #f2f0e9;
  --surface: rgba(255, 255, 252, .94);
  --surface-solid: #fffefa;
  --text: #202722;
  --muted: #68706a;
  --line: rgba(32, 39, 34, .14);
  --green: #173f36;
  --green-2: #245a4c;
  --gold: #b89655;
  --gold-pale: #eadfc7;
  --danger: #a84635;
  --warning: #d1852e;
  --success: #2f7758;
  --shadow: 0 20px 50px rgba(30, 43, 35, .15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .48; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); padding: 10px 14px; background: var(--text); color: #fff; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.network-banner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 36px; padding: 7px 18px; background: #6f3b2f; color: #fff; font-size: .82rem; position: relative; z-index: 50; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--surface-solid); position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% 50% 50% 18%; background: var(--green); color: #fff; font-weight: 800; }
.brand strong { font-size: 1.12rem; letter-spacing: .12em; }
.brand em { display: block; margin-top: -4px; color: var(--gold); font-size: .69rem; font-style: normal; font-weight: 800; letter-spacing: .3em; }
.topbar-actions { display: flex; gap: 6px; }
.icon-action { min-height: 44px; padding: 0 12px; border: 1px solid transparent; background: transparent; color: var(--text); border-radius: var(--radius-sm); display: flex; align-items: center; gap: 7px; font-weight: 700; }
.icon-action:hover, .icon-action[aria-pressed="true"] { background: var(--gold-pale); border-color: rgba(184,150,85,.32); }
.action-label { font-size: .8rem; }

.app-shell { height: calc(100vh - 72px); min-height: 640px; display: grid; grid-template-columns: minmax(350px, 420px) 1fr; overflow: hidden; }
.planner-panel { position: relative; z-index: 10; height: 100%; overflow-y: auto; padding: 26px 25px 110px; background: var(--surface-solid); border-right: 1px solid var(--line); }
.panel-heading { margin-bottom: 20px; }
.eyebrow { margin: 0 0 6px; color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; max-width: 12ch; font-size: clamp(2rem, 3.2vw, 3.15rem); line-height: .98; letter-spacing: -.055em; }
.panel-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: .93rem; }
h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.02em; }
h3 { font-size: .9rem; }

.search-form { display: grid; gap: 10px; }
.search-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 5px 5px 5px 15px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 25px rgba(35,45,40,.07); }
.search-control:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,85,.17); }
.search-control input { min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-control input::placeholder { color: #7d837f; }
.voice-button { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--green); color: #fff; }
.voice-button span[aria-hidden] { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; font-size: 0; }
.voice-button.listening { background: var(--danger); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(168,70,53,.13); } }
.field-status { margin: 0; color: var(--muted); font-size: .75rem; }
.primary-button, .secondary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 17px; border-radius: 14px; font-weight: 850; }
.primary-button { border: 1px solid var(--green); background: var(--green); color: #fff; }
.primary-button:hover { background: var(--green-2); }
.secondary-button { border: 1px solid var(--line); background: var(--surface-solid); color: var(--text); }
.secondary-button:hover { border-color: var(--gold); background: #faf6ee; }
.text-button { min-height: 38px; padding: 0 8px; border: 0; background: transparent; color: var(--green-2); font-weight: 850; font-size: .78rem; }

.quick-section, .profile-section, .contract-panel { margin-top: 23px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }
.quick-button { min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--line); border-radius: 13px; background: transparent; color: var(--text); font-size: .67rem; font-weight: 750; }
.quick-button span { font-size: 1.18rem; color: var(--green); }
.quick-button:hover, .quick-button.active { background: #edf3ef; border-color: rgba(23,63,54,.36); }
.demo-origin { margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .72rem; text-decoration: underline; text-underline-offset: 3px; }
.profile-list { display: flex; gap: 7px; overflow-x: auto; padding: 10px 1px 8px; scrollbar-width: thin; }
.profile-list button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font-size: .78rem; font-weight: 800; }
.profile-list button:hover, .profile-list button.selected { border-color: var(--green); background: var(--green); color: #fff; }
.contract-panel { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #f8f7f2; }
.constraint-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.constraint-chip, .empty-chip { padding: 5px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.constraint-chip { background: var(--gold-pale); color: #5e4c28; }
.empty-chip { border: 1px dashed var(--line); color: var(--muted); }
.planner-actions { display: grid; gap: 8px; margin-top: 20px; }

.map-stage { position: relative; min-width: 0; overflow: hidden; isolation: isolate; background: #e8e6df; }
#map, .fallback-map { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; }
.leaflet-container { background: #e8e6df; color: var(--text); font-family: var(--font); }
.leaflet-control-attribution { background: rgba(255,255,252,.9) !important; color: var(--muted); font-size: .58rem; }
.leaflet-control-attribution a { color: var(--green); }
.leaflet-tooltip { padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow); font: 750 .7rem var(--font); }
.leaflet-interactive:focus { outline: 3px solid var(--gold); outline-offset: 3px; }
.fallback-map text { fill: #5f665f; font: 700 24px var(--font); }
.map-status-row { position: absolute; z-index: 10; top: 16px; left: 17px; right: 17px; display: flex; flex-wrap: wrap; gap: 7px; pointer-events: none; }
.status-badge { pointer-events: auto; min-height: 45px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.65); border-radius: 13px; background: rgba(255,255,252,.93); color: var(--text); box-shadow: 0 8px 24px rgba(28,41,34,.13); backdrop-filter: blur(12px); }
button.status-badge { text-align: left; }
.status-badge strong { font-size: .72rem; letter-spacing: .05em; }
.status-badge span:last-child { color: var(--muted); font-size: .7rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #8a918c; }
.gps-real .status-dot { background: #2fa86e; box-shadow: 0 0 0 4px rgba(47,168,110,.15); }
.gps-degraded .status-dot { background: var(--warning); }
.gps-error .status-dot { background: var(--danger); }
.source-badge { margin-left: auto; }
.map-controls { position: absolute; z-index: 10; top: 74px; right: 17px; display: grid; gap: 4px; padding: 4px; background: rgba(255,255,252,.93); border: 1px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: var(--shadow); }
.map-controls button { width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-weight: 900; font-size: 1.15rem; }
.map-controls button:hover { background: #ecebe5; }
.technical-strip { position: absolute; z-index: 10; left: 17px; right: 17px; bottom: 230px; display: flex; gap: 4px; overflow-x: auto; padding: 7px; border-radius: 12px; background: rgba(18,29,24,.87); color: #d8e1dc; backdrop-filter: blur(12px); scrollbar-width: none; }
.technical-strip span { flex: 0 0 auto; padding: 0 8px; border-right: 1px solid rgba(255,255,255,.13); font-size: .59rem; letter-spacing: .05em; }
.technical-strip strong { color: #fff; }

.trip-card { position: absolute; z-index: 10; left: 17px; right: 17px; bottom: 17px; min-height: 194px; max-height: 46%; overflow-y: auto; padding: 18px; border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-lg); background: rgba(255,255,252,.95); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.trip-card h2 { font-size: clamp(1.1rem, 2vw, 1.48rem); }
.trip-card p { margin: 7px 0 0; color: var(--muted); font-size: .85rem; }
.trip-card-heading { display: flex; justify-content: space-between; gap: 12px; }
.route-cards { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; overflow-x: auto; }
.route-option { min-height: 104px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: transparent; text-align: left; color: var(--text); }
.route-option.selected { border-color: var(--green); background: #edf3ef; box-shadow: inset 0 0 0 1px var(--green); }
.route-option strong { display: block; margin-bottom: 3px; font-size: .87rem; }
.route-option .route-main { display: flex; align-items: baseline; gap: 7px; }
.route-option .route-main b { font-size: 1.2rem; }
.route-option small { display: block; color: var(--muted); font-size: .68rem; }
.route-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.maneuver-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 15px; }
.maneuver-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 17px; background: var(--green); color: #fff; font-size: 2rem; }
.nav-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 15px; }
.nav-metrics div { padding: 8px; border-left: 2px solid var(--gold); }
.nav-metrics strong, .nav-metrics span { display: block; }
.nav-metrics strong { font-size: 1.08rem; }
.nav-metrics span { color: var(--muted); font-size: .66rem; }
.shadow-notice { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-top: 13px; padding: 12px; border: 1px solid rgba(184,150,85,.45); border-radius: 13px; background: #fbf4e7; }
.shadow-notice p { margin: 2px 0 0; font-size: .72rem; }
.shadow-notice button { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 800; }
.simulation-tools { display: flex; align-items: center; gap: 6px; margin-top: 12px; overflow-x: auto; }
.simulation-tools span { flex: 0 0 auto; color: var(--muted); font-size: .65rem; font-weight: 800; }
.simulation-tools button { flex: 0 0 auto; min-height: 36px; border: 1px dashed var(--line); border-radius: 9px; background: transparent; color: var(--text); font-size: .68rem; font-weight: 800; }
.arrival-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 10px !important; border-radius: 50%; background: var(--green); color: #fff !important; font-size: 1.5rem !important; }

.bottom-nav { position: fixed; z-index: 25; left: 13px; bottom: 13px; width: 455px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,252,.97); box-shadow: 0 12px 32px rgba(30,43,35,.12); }
.bottom-nav button { min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: .65rem; font-weight: 800; }
.bottom-nav button span { font-size: .95rem; }
.bottom-nav button:hover, .bottom-nav button.active { background: #edf3ef; color: var(--green); }

.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(16,26,21,.35); backdrop-filter: blur(2px); }
.drawer { position: fixed; z-index: 70; top: 0; right: 0; width: min(440px, 94vw); height: 100vh; overflow-y: auto; padding: 25px; background: var(--surface-solid); box-shadow: -20px 0 50px rgba(20,35,28,.2); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; }
.drawer-close, .dialog-close { width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 13px; background: transparent; font-size: 1.35rem; }
.evidence-grid { display: grid; gap: 8px; margin-top: 22px; }
.evidence-grid div { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.evidence-grid span { color: var(--muted); font-size: .68rem; }
.evidence-grid strong { font-size: .82rem; }
.ledger-list, .replay-list { padding-left: 21px; }
.ledger-list li, .replay-list li { margin: 9px 0; color: var(--muted); font-size: .78rem; }

.favorites-drawer { width: min(510px, 96vw); }
.drawer-intro { margin: 8px 0 18px; color: var(--muted); font-size: .82rem; }
.favorite-editor, .favorite-library, .favorite-transfer { margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #f8f7f2; }
.favorite-editor h3, .favorite-library h3, .favorite-transfer h3 { margin: 0; font-size: .94rem; }
.favorite-pick-status { margin: 9px 0; padding: 9px 11px; border-radius: 11px; background: var(--gold-pale); color: #5e4c28; font-size: .75rem; font-weight: 750; }
.favorite-source-actions, .favorite-transfer-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.favorite-source-actions button { min-height: 40px; flex: 1 1 120px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-solid); color: var(--text); font-size: .7rem; font-weight: 800; }
.favorite-source-actions button:hover { border-color: var(--gold); }
.favorite-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.favorite-form-grid label, .file-label { display: grid; gap: 5px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.favorite-form-grid .wide { grid-column: 1 / -1; }
.favorite-form-grid input, .favorite-form-grid textarea, .favorite-filters input, .favorite-filters select, .file-label input { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-solid); color: var(--text); resize: vertical; }
.favorite-form-grid input[readonly] { background: #eceae3; color: var(--muted); }
.full-width { width: 100%; }
.favorite-filters { display: grid; grid-template-columns: 1fr 155px; gap: 7px; margin: 11px 0; }
.favorite-list { display: grid; gap: 8px; max-height: 330px; overflow-y: auto; }
.favorite-item { padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-solid); }
.favorite-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.favorite-item strong { display: block; font-size: .85rem; }
.favorite-item small { display: block; color: var(--muted); font-size: .65rem; }
.favorite-item p { margin: 7px 0; color: var(--muted); font-size: .72rem; white-space: pre-wrap; }
.favorite-category { display: inline-block; margin-top: 4px; padding: 3px 7px; border-radius: 999px; background: #edf3ef; color: var(--green); font-size: .62rem; font-weight: 850; }
.favorite-item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.favorite-item-actions button { min-height: 34px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text); font-size: .64rem; font-weight: 800; }
.favorite-item-actions button:hover { background: #edf3ef; }
.empty-state { margin: 0; padding: 18px 10px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: .76rem; }
.favorite-library #favoriteCount { color: var(--muted); font-size: .7rem; }
.favorite-transfer { display: grid; gap: 10px; }
.danger-button { min-height: 48px; padding: 0 14px; border: 1px solid rgba(168,70,53,.35); border-radius: 14px; background: rgba(168,70,53,.08); color: var(--danger); font-weight: 850; }
.danger-button:hover { background: rgba(168,70,53,.14); }

dialog { width: min(590px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--text); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(20,32,25,.45); backdrop-filter: blur(3px); }
.dialog-card { position: relative; padding: 26px; border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius-lg); background: var(--surface-solid); }
.dialog-close { position: absolute; top: 16px; right: 16px; }
.dialog-card h2 { max-width: 18ch; margin: 4px 50px 12px 0; font-size: 1.7rem; }
.dialog-card p, .dialog-card li { color: var(--muted); }
.dialog-card code { padding: 2px 5px; border-radius: 5px; background: #eeece5; color: var(--text); }
.search-results { display: grid; gap: 7px; }
.search-result { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); text-align: left; }
.search-result:hover { border-color: var(--green); background: #edf3ef; }
.score-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.score-details div { padding: 10px; border: 1px solid var(--line); border-radius: 11px; }
.score-details span, .score-details strong { display: block; }
.score-details span { color: var(--muted); font-size: .7rem; }
.toast-region { position: fixed; z-index: 100; top: 84px; right: 18px; display: grid; gap: 8px; max-width: min(390px, calc(100vw - 36px)); }
.toast { padding: 12px 15px; border: 1px solid rgba(255,255,255,.55); border-radius: 13px; background: #172a22; color: #fff; box-shadow: var(--shadow); font-size: .8rem; }

body.senior { font-size: 118%; }
body.senior .planner-panel { width: auto; }
body.senior button, body.senior input, body.senior select, body.senior textarea { min-height: 54px; }
body.senior .field-status, body.senior .panel-heading > p:last-child { font-size: .9rem; }
html[data-theme="contrast"] { --bg:#000; --surface:#000; --surface-solid:#000; --text:#fff; --muted:#eee; --line:rgba(255,255,255,.55); --green:#ffe071; --green-2:#ffe071; --gold:#ffe071; --gold-pale:#292300; --shadow:none; color-scheme: dark; }
html[data-theme="contrast"] .primary-button { color:#000; }
html[data-theme="contrast"] .voice-button { color:#000; }
html[data-theme="contrast"] .leaflet-tile-pane { filter: grayscale(1) contrast(1.25); }
html[data-theme="contrast"] .leaflet-control-attribution, html[data-theme="contrast"] .leaflet-tooltip { background: #000 !important; color: #fff; }
html[data-theme="contrast"] .favorite-editor, html[data-theme="contrast"] .favorite-library, html[data-theme="contrast"] .favorite-transfer, html[data-theme="contrast"] .favorite-form-grid input[readonly] { background:#000; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

@media (max-width: 900px) {
  .action-label { display: none; }
  .topbar { height: 62px; padding: 0 14px; }
  .app-shell { height: calc(100vh - 62px); min-height: 690px; grid-template-columns: 1fr; }
  .planner-panel { position: absolute; z-index: 15; left: 10px; top: 12px; width: min(410px, calc(100% - 20px)); height: auto; max-height: 47%; padding: 16px 16px 23px; border: 1px solid rgba(255,255,255,.72); border-radius: 22px; box-shadow: var(--shadow); background: rgba(255,255,252,.95); backdrop-filter: blur(16px); }
  .panel-heading > p:last-child, .quick-section, .contract-panel { display: none; }
  .panel-heading { margin-bottom: 11px; }
  .panel-heading h1 { font-size: 1.7rem; max-width: none; }
  .search-form .primary-button, .search-form .field-status { display: none; }
  .profile-section { margin-top: 12px; }
  .profile-section h2 { display: none; }
  .profile-list { padding-top: 0; }
  .planner-actions { grid-template-columns: 1fr 1fr; margin-top: 9px; }
  .map-stage { height: 100%; }
  .map-status-row { top: auto; bottom: 246px; }
  .source-badge { display: none !important; }
  .map-controls { top: auto; bottom: 307px; }
  .technical-strip { display: none; bottom: 235px; }
  .trip-card { max-height: 35%; bottom: 73px; left: 9px; right: 9px; padding: 16px; border-radius: 22px; }
  .route-cards { grid-template-columns: repeat(3, minmax(155px, 1fr)); }
  .bottom-nav { left: 9px; right: 9px; bottom: 8px; width: auto; }
}

@media (max-width: 560px) {
  .network-banner { align-items: flex-start; font-size: .7rem; }
  .planner-panel { max-height: 43%; }
  .panel-heading .eyebrow { display: none; }
  .profile-caveat { display: none; }
  .planner-actions { grid-template-columns: 1fr; }
  .planner-actions .secondary-button { display: none; }
  .map-status-row { bottom: 256px; }
  .status-badge { min-height: 42px; }
  .map-controls { bottom: 311px; }
  .trip-card { min-height: 176px; max-height: 36%; }
  .trip-card-heading { align-items: flex-start; }
  .route-actions .primary-button { flex: 1; }
  .nav-metrics { grid-template-columns: repeat(2, 1fr); }
  .simulation-tools { margin-bottom: 5px; }
  .shadow-notice { grid-template-columns: 1fr; }
  .score-details { grid-template-columns: 1fr; }
  .favorite-form-grid, .favorite-filters { grid-template-columns: 1fr; }
  .favorite-form-grid .wide { grid-column: auto; }
}

@media (min-width: 1500px) {
  .app-shell { grid-template-columns: 440px 1fr; }
  .planner-panel { padding-left: 34px; padding-right: 34px; }
  .trip-card { left: 50%; right: auto; width: min(900px, calc(100% - 80px)); transform: translateX(-50%); }
  .technical-strip { left: 50%; right: auto; width: min(900px, calc(100% - 80px)); transform: translateX(-50%); }
}
