/* Navo Carbon app. Layout follows Maps Platform / DistanceMCP: sidebar left, map right. DS tokens from navo-ds.css. */
:root { --side-w: 440px; --m-sea: #113EC9; --m-air: #7044EC; --m-road: #F17B34; --m-rail: #18B6B8; --m-river: #3567EF; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font-sans, Switzer, system-ui, sans-serif); color: var(--text-primary); background: var(--bg-sunken); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, select, input { font-family: inherit; }
.app { display: grid; grid-template-columns: var(--side-w) 1fr; height: 100vh; height: 100dvh; }
.side { display: flex; flex-direction: column; min-height: 0; background: var(--bg-base); border-right: 1px solid var(--border-default); z-index: 5; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 10px; }
.side-head > div { flex: 1; }
.brand-title { font-family: var(--font-display, Ranade, serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--text-tertiary); }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-track); color: var(--text-secondary); cursor: pointer; display: grid; place-items: center; }
.side-scroll { flex: 1; overflow-y: auto; padding: 14px 20px 40px; }
.side-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 20px; font-size: 11px; color: var(--text-tertiary); border-top: 1px solid var(--border-default); }
.side-foot b { color: var(--text-secondary); font-weight: 600; }
.side-foot a { color: var(--link); text-decoration: none; }
.tabs { display: flex; gap: 4px; margin: 0 20px; padding: 4px; border-radius: 999px; background: var(--bg-track); }
.tab { flex: 1; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; }
.tab.active { background: var(--bg-base); color: var(--text-primary); box-shadow: var(--shadow-1); }
.pane { display: flex; flex-direction: column; gap: 10px; }
.label { font-size: 11px; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.field { position: relative; }
.field input { width: 100%; height: 44px; padding: 0 12px 0 36px; border: 1px solid var(--border-default); border-radius: var(--r-control, 999px); background: var(--bg-base); color: var(--text-primary); font: 500 14px var(--font-sans); outline: none; }
.field input:focus, .sel select:focus, .sel input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.dot { position: absolute; left: 15px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; }
.dot.o { background: var(--accent); } .dot.d { background: var(--brand-red, #E2231A); }
.menu { position: absolute; left: 0; right: 0; top: 48px; z-index: 30; background: var(--bg-raised); border-radius: var(--r-float, 12px); box-shadow: var(--shadow-surface-hover); max-height: 300px; overflow-y: auto; padding: 4px; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; text-align: left; border-radius: 8px; cursor: pointer; color: var(--text-primary); font-size: 13px; }
.menu button:hover, .menu button.on { background: var(--bg-track); }
.menu .flag { width: 18px; height: 13px; border-radius: 2px; flex: none; object-fit: cover; }
.menu small { color: var(--text-tertiary); margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-k { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: var(--bg-track); color: var(--text-secondary); font-size: 12px; font-weight: 500; cursor: pointer; }
.chip-k.on { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-wash-border); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sel { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; font-size: 11px; color: var(--text-tertiary); font-weight: 500; }
.sel select, .sel input { height: 40px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 999px; background: var(--bg-base); color: var(--text-primary); font-size: 13px; outline: none; min-width: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.btn-primary, .btn-secondary, .btn-tertiary { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-accent-hover); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-secondary { background: var(--bg-base); color: var(--text-primary); box-shadow: var(--shadow-surface-rest); }
.btn-tertiary { background: var(--bg-track); color: var(--text-primary); }
.hint { margin: 0; font-size: 12px; color: var(--text-tertiary); min-height: 16px; }
.hint.err { color: var(--badge-error-text); }
#out { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--bg-base); border: 1px solid var(--border-subtle-line); border-radius: var(--r-card, 24px); padding: 20px; box-shadow: var(--shadow-surface-rest); }
.big { font-family: var(--font-display, Ranade, serif); font-size: 38px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.big small { font-size: 16px; color: var(--text-secondary); font-weight: 500; margin-left: 4px; }
.sub { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
.kv dt { color: var(--text-tertiary); } .kv dd { margin: 0; text-align: right; }
.split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin-top: 12px; background: var(--bg-track); }
.split i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); }
.leg { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--divider); font-size: 13px; }
.leg:first-of-type { border-top: 0; }
.leg .c { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; }
.leg small { display: block; color: var(--text-tertiary); font-size: 12px; margin-top: 2px; }
.leg b { font-variant-numeric: tabular-nums; }
.cmp { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 999px; background: var(--bg-track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.cmp.na { color: var(--text-tertiary); }
.note { font-size: 12px; color: var(--text-tertiary); line-height: 1.5; margin: 0; }
.mini-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--badge-neutral-bg); color: var(--badge-neutral-text); margin-left: 6px; }
.mapwrap { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; }
.ovl { position: fixed; inset: 0; background: rgba(11,13,16,.4); display: grid; place-items: center; z-index: 100; }
.ovl-card { background: var(--bg-base); border-radius: var(--r-modal, 20px); padding: 28px; max-width: 420px; box-shadow: var(--shadow-ovl); }
.ovl-card h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 24px; }
.ovl-card p { color: var(--text-secondary); margin: 0 0 18px; }
.ovl-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 45vh; height: auto; }
  .side { border-right: 0; } .mapwrap { order: 2; height: 45vh; } .side-scroll { overflow: visible; }
}
