:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #f5f8fb;
  --muted: #9cabb9;
  --panel: rgba(7, 21, 37, 0.96);
  --accent: #ffcf4a;
  --accent-deep: #f7a928;
  --line: rgba(255, 255, 255, 0.13);
}

* { box-sizing: border-box; }
html, body, main { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #071525; color: var(--ink); }
button, input { font: inherit; }

.location-gate { position: fixed; z-index: 3000; inset: 0; display: block; overflow-y: auto; padding: calc(20px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 70% 15%, #183b5b, #071525 58%); }
.location-gate[hidden] { display: none; }
.gate-card { width: min(520px, 100%); margin: 0 auto; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(7,21,37,.9); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.gate-card h1 { margin: 3px 0 10px; font-size: 29px; letter-spacing: -.03em; }
.gate-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.45; }
.gate-card > button { width: 100%; }
.gate-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 10px; }
.gate-divider::before, .gate-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#place-search-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
#place-search-form input { min-width: 0; }
#place-search-form button { padding: 7px 14px; }
.place-results { display: grid; gap: 6px; margin-top: 8px; }
.place-result { min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); background: #162b3e; color: var(--ink); text-align: left; font-weight: 600; }
.place-result small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
#last-location { margin-top: 10px; }
.gate-status { margin-bottom: 0; color: #b9d8ef !important; }
.gate-status:empty { display: none; }
.gate-attribution { margin-bottom: 0; font-size: 10px !important; }
.gate-attribution a { color: #a9cce6; }

#map { position: absolute; inset: 0 0 42vh; background: #ced8df; }
.leaflet-control-zoom { margin-top: 88px !important; }
.leaflet-control-attribution { font-size: 9px; }

.topbar {
  position: absolute;
  z-index: 500;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  pointer-events: none;
  background: linear-gradient(rgba(5, 15, 27, 0.78), transparent);
}

.topbar h1 { margin: 0; font-size: 21px; line-height: 1.1; letter-spacing: -0.02em; }
.topbar > div:first-child { min-width: 0; }
.eyebrow { margin: 0 0 3px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.13em; }
.icon-button { pointer-events: auto; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(7,21,37,.88); color: white; font-size: 26px; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top-actions { display: flex; gap: 8px; pointer-events: auto; }

@media (max-width: 420px) {
  .top-actions { gap: 6px; }
  .top-actions .icon-button { width: 42px; height: 42px; min-height: 42px; }
  .topbar h1 { font-size: 19px; }
}

.panel {
  position: absolute;
  z-index: 600;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44vh;
  min-height: 340px;
  overflow-y: auto;
  padding: 8px 18px calc(14px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--panel);
  box-shadow: 0 -12px 36px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}

.drag-handle { width: 38px; height: 4px; margin: 0 auto 11px; border-radius: 10px; background: #536271; }
.event-card { padding: 0 0 11px; border-bottom: 1px solid var(--line); }
.event-card strong, .event-card span { display: block; }
.event-card > strong { color: var(--accent); font-size: 19px; letter-spacing: -.02em; }
.event-card span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.event-facts { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 9px; }
.event-facts.total { grid-template-columns: 1fr; }
.event-facts > div { padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.05); }
.event-facts span { margin: 0; }
.event-facts b { display: block; margin-top: 2px; color: white; font-size: 14px; }
.event-facts > div:last-child b { color: var(--accent); font-size: 20px; }
.ar-primary { width: 100%; margin-top: 11px; font-size: 14px; }
.ar-primary span { margin-right: 5px; }
label { font-size: 13px; font-weight: 700; }
label span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
input { min-width: 190px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #10253a; color: var(--ink); }

.readings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 13px 0; }
.readings > div { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); }
.reading-label, .readings small { display: block; color: var(--muted); font-size: 11px; }
.readings strong { display: inline-block; margin: 3px 0 1px; color: var(--accent); font-size: 27px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
button { min-height: 43px; border: 0; border-radius: 10px; background: var(--accent); color: #17202a; font-weight: 750; cursor: pointer; }
button.secondary { border: 1px solid var(--line); background: #162b3e; color: var(--ink); }
button.active { background: #f47d4b; }
button.inline-link { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #b9d8ef; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; vertical-align: baseline; }

.terrain-card, .sightline-card, .technical-details { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.weather-card { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.weather-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.weather-controls label { color: var(--muted); font-size: 10px; }
.weather-controls select { display: block; width: 100%; min-width: 0; margin-top: 4px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: #10253a; color: white; font-size: 11px; }
#analyze-weather { width: 100%; margin-top: 10px; }
.weather-legend { display: block; margin: 9px 0 2px; }
.weather-legend[hidden] { display: none; }
.weather-legend-gradient { height: 11px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: linear-gradient(90deg, #fff 0%, #eadcf4 16%, #caa8ec 32%, #ad72e3 47%, #9e19d7 63%, #781394 82%, #5d198e 100%); }
.weather-legend.base .weather-legend-gradient { background: linear-gradient(90deg, #e55b57, #efd45e 28%, #74b989 56%, #91c9ef 78%, #ece8ff); }
.weather-legend-labels { display: flex; justify-content: space-between; margin-top: 3px; color: var(--muted); font-size: 8px; }
.weather-map-status { min-height: 13px; margin: 5px 0 0; color: #d7bc72; font-size: 9px; }
.weather-results { display: grid; gap: 7px; margin-top: 9px; }
.weather-result { display: grid; gap: 7px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.04); }
.weather-result strong { color: white; }
.weather-result .weather-score { color: var(--accent); font-size: 16px; }
.weather-result small { grid-column: 1 / -1; color: var(--muted); line-height: 1.35; }
.weather-result-main { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; width: 100%; min-height: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.weather-result-main span { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.weather-result details { color: var(--muted); font-size: 10px; }
.weather-result details summary { cursor: pointer; color: #b9d8ef; }
.weather-detail-grid { display: grid; grid-template-columns: minmax(82px,1fr) repeat(3,auto); gap: 4px 8px; margin-top: 7px; }
.weather-detail-grid b, .weather-detail-grid span:not(:first-child) { text-align: right; }
.weather-debug-detail pre { max-height: 240px; overflow: auto; padding: 7px; background: #06111e; white-space: pre-wrap; font: 8px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
.weather-debug-toggle { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--muted); font-size: 9px; }
.weather-debug-toggle input { width: auto; min-width: 0; }
.digest-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.digest-actions button { min-height: 36px; padding: 5px; font-size: 10px; }
.weather-source { margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.weather-source a { color: #a9cce6; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: 14px; }
.section-heading span { color: var(--muted); font-size: 10px; }
.section-explainer { margin: 7px 0 0; color: #d7e2ea; font-size: 11px; line-height: 1.4; }
.result-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.09); font-weight: 750; }
.result-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9cabb9; }
.result-badge.clear { color: #72d6a0; background: rgba(52,170,108,.13); }
.result-badge.clear::before { background: #43c881; }
.result-badge.concerning { color: #ffd36b; background: rgba(224,169,46,.13); }
.result-badge.concerning::before { background: #e5aa32; }
.result-badge.blocked { color: #ff8e79; background: rgba(220,75,57,.14); }
.result-badge.blocked::before { background: #e45d4c; }
.note, .status, .hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.status { color: #b9d8ef; }
.status:empty { display: none; }
.hint { margin-bottom: 2px; }
.safety-note { margin: 9px 0 2px; color: #ffe3a0; font-size: 10px; line-height: 1.35; }
.terrain-profile { height: 126px; margin-top: 8px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.04); }
.terrain-profile svg { display: block; width: 100%; height: 100%; }
.profile-ranges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 9px; }
.profile-ranges button { min-height: 30px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 10px; }
.profile-ranges button.active { border-color: var(--accent); background: rgba(255,207,74,.14); color: var(--accent); }
.profile-cloud-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; padding: 6px 8px; border-radius: 7px 7px 0 0; background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(158,25,215,.18)); color: white; font-size: 10px; }
.profile-cloud-caption[hidden] { display: none; }
.profile-cloud-caption span { color: var(--muted); text-align: right; }
.profile-cloud-strip { height: 25px; margin: 0 0 4px; overflow: hidden; border-radius: 0 0 7px 7px; background: rgba(255,255,255,.04); }
.profile-cloud-strip[hidden] { display: none; }
.profile-cloud-strip svg { display: block; width: 100%; height: 100%; }
.profile-cloud-load { width: 100%; min-height: 34px; margin-top: 7px; font-size: 10px; }
.profile-key { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.profile-key a { margin-left: auto; color: #a9cce6; }
.profile-key span::before { content: ""; display: inline-block; width: 13px; height: 3px; margin: 0 5px 2px 0; border-radius: 2px; }
.terrain-key::before { background: #8fa6b8; }
.ray-key::before { background: var(--accent); }
.cloud-key::before { background: linear-gradient(90deg, #fff, #9e19d7, #5d198e); }
#terrain-result { font-weight: 750; }
#terrain-result.clear { color: #72d6a0; }
#terrain-result.concerning { color: #ffd36b; }
#terrain-result.blocked { color: #ff806b; }
.sightline-card, .technical-details { color: var(--muted); font-size: 11px; }
.sightline-card > summary, .technical-details summary { cursor: pointer; color: #b9d8ef; font-weight: 700; }
.sightline-card > summary h2 { display: inline; margin: 0; color: var(--ink); font-size: 14px; }
.technical-details > summary { color: var(--ink); font-size: 14px; }
.technical-details .section-heading { margin-top: 12px; }
.phase-technical { display: grid; gap: 5px; padding-top: 2px; }
.phase-technical > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.035); }
.phase-technical span { color: #d7e2ea; }
.phase-technical b { color: white; font-size: 10px; }
.phase-technical small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.saved-locations-card { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.saved-eclipse-group { margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.saved-eclipse-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.saved-eclipse-heading strong { color: var(--accent); font-size: 12px; }
.saved-eclipse-heading button { min-height: 31px; padding: 4px 8px; font-size: 9px; }
.saved-location-list { display: grid; gap: 7px; margin-top: 9px; }
.saved-location { padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.04); }
.saved-location-header { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 6px; }
.saved-location-name-cell { min-width: 0; }
.saved-location-header .saved-location-open { width: 100%; min-height: 40px; padding: 7px 8px; background: transparent; color: #b9d8ef; font-size: 14px; font-weight: 750; text-align: left; text-decoration: underline; text-decoration-color: rgba(185,216,239,.45); text-underline-offset: 3px; }
.saved-location-name { width: 100%; min-width: 0; padding: 5px 7px; border: 1px solid transparent; background: transparent; color: white; font-size: 12px; font-weight: 700; }
.saved-location-name:focus { border-color: var(--line); background: #10253a; }
.saved-location-header button { min-height: 31px; padding: 4px 8px; font-size: 9px; }
.saved-location-header .saved-location-icon { display: grid; place-items: center; width: 32px; min-height: 32px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 1; }
.saved-location textarea { width: 100%; height: 52px; margin-top: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #10253a; color: var(--ink); font: 10px/1.35 inherit; resize: vertical; }
.saved-location small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.saved-location-notes { margin-top: 5px; color: var(--muted); font-size: 10px; }
.saved-location-notes summary { cursor: pointer; color: #a9cce6; }
.saved-comparison { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.panel-actions button { min-height: 39px; padding: 6px; font-size: 11px; }
.share-status { min-height: 0; margin: 0; color: #b9d8ef; font-size: 10px; text-align: center; }
.share-status:not(:empty) { position: fixed; z-index: 900; top: calc(66px + env(safe-area-inset-top)); right: 14px; max-width: 180px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(7,21,37,.94); box-shadow: 0 5px 18px rgba(0,0,0,.3); }

.sheet-view { position: fixed; z-index: 1800; inset: 0; overflow-y: auto; padding: calc(18px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)); background: #071525; }
.sheet-view[hidden] { display: none; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; max-width: 620px; margin: 0 auto; }
.sheet-header h2 { margin: 0; font-size: 25px; }
.sheet-close { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0 0 3px; border: 1px solid var(--line); border-radius: 50%; background: #162b3e; color: white; font-size: 27px; line-height: 1; }
.sheet-intro, .sheet-view section, .sheet-note { max-width: 620px; margin-right: auto; margin-left: auto; }
.sheet-intro { color: var(--muted); }
.sheet-view section { margin-top: 24px; }
.sheet-view h3 { margin: 0 0 3px; font-size: 16px; }
.sheet-view section > p, .sheet-note { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.eclipse-list { display: grid; gap: 8px; }
.eclipse-choice { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); background: #10253a; color: white; text-align: left; }
.eclipse-choice strong, .eclipse-choice span { display: block; }
.eclipse-choice strong { color: var(--accent); font-size: 13px; }
.eclipse-choice span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.eclipse-choice b { align-self: center; color: white; font-size: 12px; white-space: nowrap; }
.sheet-note { margin-top: 26px; }


.observer-pin { width: 20px; height: 20px; border: 3px solid white; border-radius: 50%; background: #087dce; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.place-pin { position: relative; width: 24px; height: 24px; border: 3px solid white; border-radius: 50% 50% 50% 0; background: #087dce; box-shadow: 0 2px 8px rgba(0,0,0,.45); transform: rotate(-45deg); }
.place-pin::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: white; }
.ar-location-note { padding-left: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239cabb9' stroke-width='2'%3E%3Cpath d='M12 21s7-5.2 7-12a7 7 0 1 0-14 0c0 6.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") left top/17px 17px no-repeat; }
.eclipse-symbol { display: grid; place-items: center; width: 22px; height: 22px; filter: drop-shadow(0 1px 3px #071525); }
.map-eclipse-icon { display: block; width: 22px; height: 22px; overflow: visible; }
.eclipse-symbol.central .map-eclipse-icon { filter: drop-shadow(0 0 4px var(--accent)); }
.eclipse-sun-disc { fill: var(--accent); }
.eclipse-moon-disc { fill: #071525; }
.eclipse-disc-outline { fill: none; stroke: white; stroke-width: 2; }
.eclipse-symbol.central .eclipse-disc-outline { stroke: var(--accent); stroke-width: 2.5; }
.inspect-popup .leaflet-popup-content-wrapper, .inspect-popup .leaflet-popup-tip { background: #0d2235; color: white; }
.inspect-popup .leaflet-popup-content { margin: 11px 14px; line-height: 1.5; }

.ar-view { position: fixed; z-index: 2000; inset: 0; overflow: hidden; background: #02070c; }
.ar-view[hidden] { display: none; }
.ar-view video, .ar-shade, .ar-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.ar-view video { object-fit: cover; }
.ar-shade { pointer-events: none; background: linear-gradient(rgba(0,0,0,.42), transparent 28%, transparent 62%, rgba(0,0,0,.78)); }
.ar-stage { overflow: hidden; pointer-events: none; }
.ar-close { position: absolute; z-index: 4; top: calc(12px + env(safe-area-inset-top)); right: 14px; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(4,12,20,.72); color: white; }
.ar-close svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.ar-calibration-target { position: absolute; z-index: 2; width: 48px; height: 48px; border: 3px solid #77d7ff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(119,215,255,.22), 0 0 18px rgba(119,215,255,.8); }
.ar-calibration-target::before, .ar-calibration-target::after { content: ""; position: absolute; top: 50%; left: 50%; background: #77d7ff; transform: translate(-50%, -50%); }
.ar-calibration-target::before { width: 62px; height: 1px; }
.ar-calibration-target::after { width: 1px; height: 62px; }
.ar-marker { position: absolute; z-index: 2; min-width: 82px; transform: translate(-50%, -50%); text-align: center; transition: opacity .12s; }
.ar-eclipse-icon { display: block; width: 25px; height: 25px; margin: 0 auto 5px; overflow: visible; filter: drop-shadow(0 2px 5px #000); }
.ar-marker.primary .ar-eclipse-icon { width: 34px; height: 34px; filter: drop-shadow(0 0 7px var(--accent)) drop-shadow(0 2px 5px #000); }
.ar-marker.primary .eclipse-disc-outline { stroke: var(--accent); stroke-width: 2.5; }
.ar-marker b, .ar-marker small { display: block; color: white; font-size: 10px; text-shadow: 0 1px 4px #000, 1px 0 3px #000; }
.ar-marker small { color: #dce8f1; font-size: 9px; }
.ar-marker.primary .ar-marker-label { transform: translateY(-62px); }
.ar-offscreen-arrow { position: absolute; z-index: 3; min-width: 96px; transform: translate(-50%, -50%); text-align: center; filter: drop-shadow(0 2px 4px #000); }
.ar-offscreen-arrow span { display: block; color: var(--accent); font-size: 34px; line-height: 1; transform: rotate(var(--arrow-angle)); }
.ar-offscreen-arrow b { display: block; margin-top: 3px; color: white; font-size: 10px; text-shadow: 0 1px 4px #000; }
.ar-controls { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; padding: 12px 14px calc(13px + env(safe-area-inset-bottom)); background: rgba(5,15,27,.88); backdrop-filter: blur(10px); }
.ar-warning { margin: 0 0 5px; color: #ffe3a0; font-size: 10px; line-height: 1.2; }
#ar-status, .ar-help { margin: 5px 0; color: #d1dee8; font-size: 10px; line-height: 1.3; }
#ar-status.ar-status-error, #ar-status.ar-status-warning { margin: 9px 0; padding: 10px 11px; border: 1px solid rgba(255,211,107,.55); border-radius: 9px; background: rgba(224,169,46,.18); color: #fff1c4; font-size: 13px; font-weight: 700; line-height: 1.4; }
#ar-status.ar-status-error { border-color: rgba(255,128,107,.65); background: rgba(202,61,46,.24); color: #ffe0da; }
#ar-status.ar-status-ready { color: #a8e7c4; }
.ar-control-row { display: grid; grid-template-columns: 1.6fr .8fr; align-items: center; gap: 7px 10px; }
.ar-control-row button { grid-row: span 2; padding: 5px 8px; }
.ar-control-row label { display: flex; justify-content: space-between; font-size: 10px; color: #d1dee8; }
.ar-control-row label span { display: inline; margin: 0; color: var(--accent); }
.ar-control-row input { width: 100%; min-width: 0; padding: 0; accent-color: var(--accent); }
.ar-calibration-panel p { margin: 7px 0 9px; color: white; font-size: 12px; line-height: 1.35; }
.ar-calibration-panel > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ar-calibration-panel button { min-height: 40px; padding: 6px 10px; }
.ar-view.calibrating .ar-offscreen-arrow { display: none; }
.ar-settings-button { width: 100%; min-height: 36px; padding: 5px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--ink); font-size: 11px; }
.ar-settings-button span { display: block; color: var(--muted); font-size: 9px; font-weight: 500; }
.ar-filter-check strong, .ar-calibration-unavailable strong { color: #ffe3a0; }
.ar-filter-check p, .ar-calibration-unavailable p { margin: 6px 0 10px; color: white; font-size: 12px; line-height: 1.4; }
.ar-filter-check button, .ar-calibration-unavailable button { width: 100%; margin-top: 6px; padding: 6px 9px; }
.ar-settings-done { width: 100%; min-height: 34px; margin-top: 7px; font-size: 10px; }

@media (min-width: 760px) {
  #map { inset: 0; }
  .panel { top: 82px; right: 18px; bottom: auto; left: auto; width: 390px; height: auto; max-height: calc(100vh - 100px); border-radius: 18px; }
}

@media (max-height: 700px) and (max-width: 759px) {
  #map { bottom: 48vh; }
  .panel { height: 50vh; min-height: 300px; }
}

@media (max-width: 390px) {
  .event-card { align-items: stretch; flex-direction: column; }
  .event-actions { width: 100%; flex-basis: auto; }
}
