:root {
  color-scheme: dark;
  --bg: #060804;
  --bg-2: #0a0f08;
  --panel: #11190d;
  --panel-2: #172113;
  --panel-3: rgba(18, 28, 14, .92);
  --line: rgba(176, 213, 88, .24);
  --line-strong: rgba(204, 242, 88, .46);
  --text: #f0f5e8;
  --muted: #aebba2;
  --dim: #75806d;
  --primary: #ccf258;
  --primary-deep: #293b13;
  --secondary: #d6a647;
  --warning: #ffbd4a;
  --success: #7ff27a;
  --danger: #ff574a;
  --ink: #070a04;
  --shadow: 0 24px 70px rgba(0, 0, 0, .52);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, .34);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --nav-h: 88px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
html, body { margin: 0; overflow-x: hidden; }
body {
  min-height: 100%;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(204,242,88,.07) 0 1px, transparent 1px 28px),
    linear-gradient(45deg, rgba(214,166,71,.035) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #081007 0%, var(--bg) 42%, #030502 100%);
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, transparent, rgba(204,242,88,.08), transparent);
  mix-blend-mode: screen;
}
body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(204,242,88,.18);
  box-shadow: inset 0 0 90px rgba(0,0,0,.68);
}
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
#app-shell {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px calc(var(--nav-h) + 42px + env(safe-area-inset-bottom));
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0 14px;
}
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 6px; position: relative; flex: 0 0 auto;
  background: linear-gradient(145deg, rgba(204,242,88,.16), rgba(214,166,71,.08));
  border: 1px solid var(--line-strong); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), var(--shadow-soft);
  overflow: hidden;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.brand-mark:before, .brand-mark:after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(204,242,88,.58); border-radius: 50%; }
.brand-mark:after { inset: 20px 6px auto; height: 1px; border: 0; background: var(--primary); transform: rotate(-18deg); box-shadow: 0 0 14px var(--primary); }
.brand-mark span { position: absolute; left: 20px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(transparent, rgba(214,166,71,.9), transparent); transform: rotate(42deg); transform-origin: 50% 50%; }
.eyebrow { margin: 0 0 5px; color: var(--primary); font-size: 11px; text-transform: uppercase; letter-spacing: 0; font-weight: 900; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: 38px; line-height: 1; letter-spacing: 0; font-weight: 850; text-transform: none; }
h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.08; letter-spacing: 0; font-weight: 820; }
h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.15; letter-spacing: 0; }
p { margin: 0 0 12px; color: var(--muted); line-height: 1.48; }
p:last-child { margin-bottom: 0; }
.status-pill, .pill, .chip {
  border: 1px solid var(--line); background: rgba(18, 28, 14, .82); color: var(--text); border-radius: 4px; padding: 8px 10px; font-size: 12px; white-space: nowrap;
  text-transform: uppercase;
}
.status-pill { color: var(--primary); box-shadow: inset 0 0 22px rgba(204,242,88,.07); flex: 0 1 auto; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.screen { display: grid; gap: 13px; min-width: 0; }
.card {
  position: relative; min-width: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(19, 30, 15, .98), rgba(8, 13, 7, .96));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.card:after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent 55%, var(--secondary));
  opacity: .72;
}
.card.subtle { background: rgba(11, 18, 9, .84); }
.hero {
  min-height: 285px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(204,242,88,.11), transparent 1px),
    linear-gradient(180deg, rgba(22, 34, 17, .99), rgba(5, 9, 4, .98));
}
.hero:before {
  content: ""; position: absolute; inset: auto -24px -44px -24px; height: 190px;
  border-top: 1px solid rgba(204,242,88,.42);
  background:
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 18px, rgba(204,242,88,.09) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(204,242,88,.08) 30px 31px);
}
.hero:after {
  content: ""; position: absolute; width: 170px; height: 2px; right: -36px; bottom: 88px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent); filter: blur(.2px); transform: rotate(-18deg); opacity: .8; animation: scanSweep 4.8s ease-in-out infinite;
}
.hero > * { position: relative; z-index: 1; }
.hero h2 { max-width: 12ch; font-size: 47px; line-height: .96; letter-spacing: 0; margin-bottom: 12px; text-transform: uppercase; }
.hero-copy { max-width: 100%; color: #d7dfce; }
.hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 17px; }
.telemetry-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 15px 0 0; }
.risk-band { display: grid; gap: 7px; margin-top: 14px; }
.band-track { height: 9px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.band-fill { display: block; height: 100%; width: var(--fill, 42%); background: linear-gradient(90deg, var(--success), var(--primary), var(--warning), var(--danger)); border-radius: inherit; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric {
  min-width: 0; background: rgba(3, 6, 3, .62); border: 1px solid var(--line); border-radius: 6px; padding: 13px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.metric b { display: block; color: var(--text); font-size: 25px; letter-spacing: 0; line-height: 1; }
.metric span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.metric span, .chip, .pill { overflow-wrap: anywhere; }
.metric .mono, .mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0; }
.primary, .secondary, .ghost, .danger, .file-label {
  min-height: 46px; border-radius: 5px; padding: 14px 16px; width: 100%; font-weight: 900; cursor: pointer; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-transform: uppercase;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.primary { border: 0; background: linear-gradient(135deg, var(--primary), #efff9b); color: var(--ink); box-shadow: 0 12px 26px rgba(204,242,88,.18); }
.secondary, .file-label { background: rgba(25, 36, 18, .94); color: var(--text); border: 1px solid var(--line-strong); }
.ghost { background: rgba(3,6,3,.34); color: var(--primary); border: 1px solid var(--line); }
.danger { background: rgba(255,87,74,.14); color: #ffd8d4; border: 1px solid rgba(255,87,74,.44); }
.capture-surface {
  display: grid; place-items: center; min-height: 220px; margin: 13px 0; border: 1px dashed rgba(204,242,88,.45); border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(204,242,88,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(204,242,88,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7,12,5,.76), rgba(3,6,3,.58));
  background-size: 30px 30px, 30px 30px, auto;
}
.capture-reticle { width: 128px; height: 128px; border-radius: 50%; border: 1px solid rgba(204,242,88,.54); position: relative; display: grid; place-items: center; color: var(--primary); font-weight: 900; text-transform: uppercase; font-size: 11px; letter-spacing: 0; }
.capture-reticle:before, .capture-reticle:after { content: ""; position: absolute; background: rgba(204,242,88,.72); }
.capture-reticle:before { width: 1px; height: 100%; }
.capture-reticle:after { height: 1px; width: 100%; }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; min-width: 0; }
.stack { display: grid; gap: 10px; }
.small { font-size: 12px; color: var(--muted); line-height: 1.35; }
input[type=file] { width: 100%; padding: 14px; border-radius: 6px; border: 1px dashed var(--line); background: rgba(0,0,0,.22); color: var(--text); }
.text-input, .select-input { width: 100%; min-height: 46px; border-radius: 5px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.36); color: var(--text); padding: 12px 13px; margin: 8px 0 10px; }
.select-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.preview { width: 100%; max-height: 360px; object-fit: contain; background: rgba(0,0,0,.28); border-radius: 6px; border: 1px solid var(--line); }
.result { border-color: rgba(204,242,88,.44); }
.result.dominant { border-color: rgba(255,189,74,.62); }
.result.none { border-color: rgba(174,187,162,.24); }
.result-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.badge { border-radius: 4px; padding: 7px 9px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; background: rgba(204,242,88,.12); color: var(--primary); border: 1px solid rgba(204,242,88,.34); white-space: nowrap; }
.badge.warning { background: rgba(255,189,74,.13); color: var(--warning); border-color: rgba(255,189,74,.42); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; padding-top: 8px; }
.kv div { color: var(--muted); min-width: 0; }
.kv b { text-align: right; min-width: 0; }
.kv.compact { font-size: 13px; gap: 6px 10px; }
.confidence { display: grid; gap: 7px; margin: 13px 0; }
.confidence-bar { height: 9px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.confidence-bar span { display: block; height: 100%; width: var(--confidence, 50%); background: linear-gradient(90deg, var(--success), var(--primary), var(--secondary)); border-radius: inherit; }
.list { display: grid; gap: 10px; }
.item { min-width: 0; background: rgba(3,6,3,.54); border: 1px solid var(--line); border-radius: 6px; padding: 13px; }
.item p { margin-bottom: 8px; }
.sighting-item { display: grid; gap: 9px; }
.sighting-thumb { width: 100%; max-height: 190px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: rgba(0,0,0,.28); }
.hash-chip { display: inline-block; max-width: 100%; border-radius: 4px; padding: 7px 9px; background: rgba(214,166,71,.11); color: #ffe2a0; border: 1px solid rgba(214,166,71,.24); overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.empty-state { text-align: left; border-style: dashed; }
.locked { background: linear-gradient(180deg, rgba(29, 33, 16, .96), rgba(8,13,7,.98)); }
.locked:before { content: "Premium"; display: inline-block; color: var(--ink); background: var(--warning); padding: 6px 9px; border-radius: 4px; font-size: 11px; font-weight: 950; margin-bottom: 11px; letter-spacing: 0; text-transform: uppercase; }
.split-grid, .button-grid { display: grid; gap: 10px; }
.button-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.button-grid .primary, .button-grid .secondary, .button-grid .danger { min-width: 0; padding-left: 10px; padding-right: 10px; }
.primary[disabled], .secondary[disabled] { opacity: .72; cursor: default; }
.alert-card { border-color: rgba(255,189,74,.34); }
.map-card { padding: 13px; }
.map-stage {
  position: relative; height: min(78vw, 420px); min-height: 330px; border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(204,242,88,.38);
  background:
    radial-gradient(circle at 50% 50%, rgba(204,242,88,.12), transparent 4%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 42px, rgba(204,242,88,.11) 43px 44px),
    linear-gradient(135deg, rgba(3,6,3,.96), rgba(19,28,14,.96));
}
.map-stage:before {
  content: ""; position: absolute; inset: 0; opacity: .32;
  background-image: linear-gradient(rgba(255,255,255,.052) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.044) 1px, transparent 1px);
  background-size: 28px 28px;
}
.radius-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(204,242,88,.36); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.radius-ring.outer { width: 88%; height: 88%; }
.radius-ring.inner { width: 48%; height: 48%; border-color: rgba(214,166,71,.34); }
.user-dot, .sun-dot, .wind-arrow, .aircraft-marker { position: absolute; z-index: 2; }
.user-dot { left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 7px rgba(204,242,88,.14), 0 0 24px rgba(204,242,88,.52); }
.user-dot span { position: absolute; left: 18px; top: -4px; font-size: 11px; color: var(--text); font-weight: 900; text-transform: uppercase; }
.sun-dot { left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,189,74,.17); color: var(--warning); border: 1px solid rgba(255,189,74,.48); font-size: 11px; font-weight: 900; }
.wind-arrow { left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--wind)); padding: 7px 10px; border-radius: 4px; background: rgba(204,242,88,.13); color: #edffc0; border: 1px solid rgba(204,242,88,.36); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.wind-arrow:after { content: ""; display: inline-block; margin-left: 5px; border-left: 8px solid #edffc0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.aircraft-marker {
  left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: auto; min-width: 70px; min-height: 30px;
  border: 1px solid rgba(204,242,88,.55); background: rgba(3,6,3,.84); color: var(--text); border-radius: 4px; padding: 6px 9px; font-size: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.38);
}
.aircraft-marker b { position: relative; z-index: 2; font-size: 10px; }
.trail-line { position: absolute; left: 50%; top: 50%; width: 92px; height: 3px; transform: translateY(-50%) rotate(var(--track)); transform-origin: left center; background: linear-gradient(90deg, rgba(240,245,232,.92), rgba(240,245,232,.16), transparent); border-radius: 999px; pointer-events: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 16px; height: 8px; display: inline-block; border-radius: 999px; }
.legend-aircraft { background: var(--primary); }
.legend-trail { background: linear-gradient(90deg, #fff, transparent); border: 1px solid rgba(255,255,255,.24); }
.settings-list { display: grid; gap: 9px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.075); }
.setting-row:last-child { border-bottom: 0; }
.switch { width: 48px; height: 28px; padding: 3px; border-radius: 999px; background: rgba(204,242,88,.16); border: 1px solid rgba(204,242,88,.36); flex: 0 0 auto; }
.switch span { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); margin-left: 18px; box-shadow: 0 0 18px rgba(204,242,88,.32); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: 520px; margin: 0 auto;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(5, 8, 4, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(204,242,88,.22); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; z-index: 20;
}
.tabbar button { min-width: 0; border: 0; background: transparent; color: var(--muted); border-radius: 5px; padding: 8px 1px; font-size: 9px; font-weight: 900; display: grid; gap: 2px; place-items: center; text-transform: uppercase; }
.tabbar button span { font-size: 15px; line-height: 1; }
.tabbar button.active { background: rgba(204,242,88,.13); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(204,242,88,.2); }
.toast { position: fixed; left: 14px; right: 14px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); max-width: 492px; margin: 0 auto; background: #10170d; border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px; box-shadow: var(--shadow); z-index: 70; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: rgba(0,0,0,.3); padding: 12px; border-radius: 6px; color: #efffc0; }
.feedback-root { position: fixed; z-index: 60; right: max(14px, env(safe-area-inset-right)); bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); width: min(390px, calc(100vw - 28px)); pointer-events: none; }
.feedback-fab { pointer-events: auto; float: right; width: 46px; min-height: 46px; border: 1px solid rgba(204,242,88,.6); border-radius: 6px; padding: 0; color: transparent; overflow: hidden; background: linear-gradient(135deg, var(--primary), #efff9b); box-shadow: 0 14px 34px rgba(0,0,0,.36), 0 0 0 0 rgba(204,242,88,.34); font-weight: 950; animation: feedbackPulse 3.4s ease-in-out infinite; }
.feedback-fab:before { content: "?"; color: var(--ink); font-size: 20px; line-height: 1; }
.feedback-panel { pointer-events: auto; clear: both; margin-top: 10px; padding: 14px; border-radius: 6px; border: 1px solid var(--line-strong); background: rgba(10, 15, 8, .98); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.feedback-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.feedback-header b { display: block; }
.feedback-header span, .feedback-meta { display: block; color: var(--muted); font-size: 12px; }
.feedback-close { width: auto; min-height: 32px; border: 0; background: var(--panel-2); color: var(--text); border-radius: 4px; padding: 5px 10px; font-size: 18px; line-height: 1; }
.feedback-panel label { display: block; margin: 0 0 6px; color: var(--text); font-weight: 850; }
.feedback-panel textarea { width: 100%; resize: vertical; border-radius: 6px; border: 1px solid var(--line); background: rgba(0,0,0,.32); color: var(--text); padding: 12px; min-height: 104px; }
.feedback-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.feedback-actions .danger { grid-column: 1 / -1; min-height: 40px; padding: 10px 12px; }
.feedback-list { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.feedback-list article { border: 1px solid var(--line); background: rgba(0,0,0,.22); border-radius: 6px; padding: 10px; }
.feedback-list article span { display: block; color: var(--muted); font-size: 11px; margin: 2px 0 6px; }
.feedback-list p { margin: 0; }
@media (hover: hover) {
  .card, .primary, .secondary, .ghost, .danger, .tabbar button, .feedback-fab { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
  .card:hover { transform: translateY(-1px); border-color: rgba(204,242,88,.34); }
  button:hover, .file-label:hover { transform: translateY(-1px); }
}
@keyframes scanSweep { 0%, 100% { transform: translateX(0) rotate(-18deg); opacity: .35; } 50% { transform: translateX(-190px) rotate(-18deg); opacity: .92; } }
@keyframes feedbackPulse { 0%, 100% { box-shadow: 0 14px 34px rgba(0,0,0,.36), 0 0 0 0 rgba(204,242,88,.28); } 50% { box-shadow: 0 14px 34px rgba(0,0,0,.36), 0 0 0 8px rgba(204,242,88,0); } }
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 540px) {
  :root { --nav-h: 118px; }
  #app-shell { margin: 0; width: min(430px, 100vw); max-width: min(430px, 100vw); }
  .status-pill { display: none; }
  .telemetry-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry-row .chip { white-space: normal; text-align: center; padding-left: 8px; padding-right: 8px; }
  .telemetry-row .chip:last-child { grid-column: 1 / -1; }
  .hero-copy { max-width: 100%; }
  .tabbar { left: 0; right: auto; width: min(430px, 100vw); max-width: min(430px, 100vw); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabbar button { min-height: 44px; padding-top: 5px; padding-bottom: 5px; }
}
@media (max-width: 390px) {
  #app-shell { padding-left: 10px; padding-right: 10px; }
  .topbar { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 5px; }
  h1 { font-size: 34px; }
  .hero h2 { font-size: 39px; }
  .metric-grid { grid-template-columns: 1fr; }
  .button-grid { grid-template-columns: 1fr; }
  .feedback-actions { grid-template-columns: 1fr; }
  .tabbar { gap: 1px; padding-left: 3px; padding-right: 3px; }
  .tabbar button { font-size: 7px; }
  .map-stage { min-height: 300px; }
}
