:root {
    --bg: #f4f7f8;
    --surface: #ffffff;
    --surface-2: #eef3f4;
    --text: #152125;
    --muted: #63757b;
    --line: #dce5e7;
    --brand: #0f6c78;
    --brand-dark: #094852;
    --brand-soft: #e5f4f6;
    --yes: #18864b;
    --yes-soft: #e8f6ee;
    --no: #c73a3a;
    --no-soft: #fdecec;
    --warning: #a66a00;
    --repeater: #b0005a;
    --repeater-soft: #fde8f2;
    --shadow: 0 16px 50px rgba(24, 50, 58, .08);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #eaf4f5, transparent 38rem), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(220, 229, 231, .85);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
}
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-row { min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.brand-picture { display: grid; place-items: center; flex: 0 0 auto; }
.brand-logo { display: block; object-fit: contain; }
.brand-logo-horizontal { width: clamp(210px, 22vw, 308px); height: auto; max-height: 68px; }
.brand-picture-compact { display: none; }
.brand-logo-compact { width: 48px; height: 57px; }
.brand-logo-round { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--brand); }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong, .brand-copy small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { color: var(--muted); }
nav { display: flex; gap: 6px; flex: 0 0 auto; }
nav a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; white-space: nowrap; }
nav a:hover, nav a:focus-visible { background: var(--surface-2); color: var(--text); }

main { padding-block: 42px 64px; }
.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; }
.page-actions { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.hero > div { max-width: 850px; }
.hero.compact h1 { margin: 4px 0 8px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; }
.hero p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.eyebrow { color: var(--brand) !important; text-transform: uppercase; letter-spacing: .14em; font-weight: 850; font-size: .78rem !important; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.12; }
.section-description { margin: 8px 0 0; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { padding: clamp(22px, 4vw, 42px); }
.form-grid { display: grid; gap: 20px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label, fieldset { display: grid; gap: 8px; min-width: 0; font-weight: 750; }
label small, .muted { color: var(--muted); font-weight: 400; }
.optional { color: var(--muted); font-size: .78rem; font-weight: 600; }
input, select, textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd8db;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,108,120,.12); }
textarea { min-height: 112px; resize: vertical; }
form { display: grid; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { margin-bottom: 10px; font-weight: 800; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; cursor: pointer; }
.choice input { width: auto; min-height: auto; margin: 0; }
.choice span { display: grid; }
.choice small { display: block; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input:checked).positive { border-color: var(--yes); background: var(--yes-soft); }
.choice:has(input:checked).negative { border-color: var(--no); background: var(--no-soft); }
.station-type-row .station-choice { flex: 1 1 190px; }
.coverage-row .choice { flex: 1 1 200px; }
.honeypot { position: absolute; left: -10000px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.button, .icon-button, .chip, .text-button, .report-item { border: 0; cursor: pointer; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 18px; border-radius: 12px; background: var(--brand); color: white; text-decoration: none; font-weight: 850; box-shadow: 0 8px 20px rgba(15,108,120,.18); }
.button:hover, .button:focus-visible { background: var(--brand-dark); }
.button.secondary { background: var(--surface); color: var(--brand); border: 1px solid var(--line); box-shadow: none; }
.alert { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.alert.success { background: var(--yes-soft); border-color: #bde3cb; color: #0f6737; }
.alert.error { background: var(--no-soft); border-color: #f2bcbc; color: #9e2525; }
.text-link { color: var(--brand); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.location-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.location-panel strong { display: block; }
.location-panel p { margin: 3px 0 0; font-size: .9rem; font-weight: 400; }
.location-status.success { color: var(--yes); }
.location-status.error { color: var(--no); }
.location-status.working { color: var(--warning); }
.location-button { flex: 0 0 auto; }
.location-button[disabled] { opacity: .65; cursor: progress; }

.repeater-card { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr); gap: clamp(22px, 4vw, 46px); align-items: stretch; margin-bottom: 28px; padding: clamp(16px, 2.5vw, 24px); overflow: hidden; }
.repeater-photo-wrap { position: relative; min-height: 260px; border-radius: calc(var(--radius) - 5px); overflow: hidden; background: var(--surface-2); }
.repeater-photo { display: block; width: 100%; height: 100%; min-height: 260px; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-pending { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(10, 31, 36, .78); color: #fff; font-size: .78rem; font-weight: 800; backdrop-filter: blur(8px); }
.repeater-details { display: flex; flex-direction: column; justify-content: center; padding: clamp(4px, 2vw, 18px) 0; }
.repeater-details h2 { margin: 4px 0 20px; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.045em; }
.repeater-specs { display: grid; gap: 10px; margin: 0; }
.repeater-specs div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 13px 15px; border-radius: 12px; background: var(--surface-2); }
.repeater-specs dt { color: var(--muted); }
.repeater-specs dd { margin: 0; font-weight: 850; }
.repeater-photo-help { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }

.latest-section, .odx-section { margin-top: 44px; }
.latest-heading { align-items: end; }
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.latest-report { display: flex; flex-direction: column; min-width: 0; padding: 18px; }
.latest-report-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.latest-report-top > div { display: grid; min-width: 0; }
.latest-callsign { font-size: 1.18rem; }
.latest-locator { color: var(--muted); font-weight: 750; }
.latest-report-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.latest-report-data div { min-width: 0; padding: 9px 10px; border-radius: 10px; background: var(--surface-2); }
.latest-report-data dt { color: var(--muted); font-size: .75rem; }
.latest-report-data dd { margin: 2px 0 0; font-weight: 800; }
.latest-report time { margin-top: auto; color: var(--muted); font-size: .82rem; }
.distance-value { color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty-state { padding: 28px; text-align: center; color: var(--muted); }
.empty-state p { margin: 0; }

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.map-card { overflow: hidden; }
.map-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.filters, .map-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .icon-button { min-height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 8px 12px; font-weight: 750; }
.chip.active, .chip:hover, .icon-button:hover { background: var(--surface-2); color: var(--text); border-color: #bdcdd0; }
.map-notice { margin: 12px 14px 0; padding: 11px 13px; border: 1px solid; border-radius: 11px; font-size: .9rem; font-weight: 700; }
.map-notice[hidden] { display: none; }
.map-notice.warning { color: #795000; background: #fff5d9; border-color: #ecd18b; }
.map-notice.error { color: #982d2d; background: var(--no-soft); border-color: #efb8b8; }
.map-shell { position: relative; aspect-ratio: 2 / 1; min-height: 430px; background: #dcecef; overflow: hidden; isolation: isolate; }
.osm-map { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; background: #dcecef; outline: none; }
.osm-map:focus-visible { box-shadow: inset 0 0 0 4px rgba(15,108,120,.3); }
.osm-map.dragging { cursor: grabbing; }
.osm-tile-layer, .osm-marker-layer { position: absolute; inset: 0; overflow: hidden; }
.osm-tile-layer { z-index: 1; pointer-events: none; background: #dcecef; }
.osm-marker-layer { z-index: 3; pointer-events: none; }
.osm-tile { position: absolute; top: 0; left: 0; width: 256px; height: 256px; max-width: none; opacity: 0; transition: opacity .14s linear; will-change: transform; }
.osm-tile.loaded { opacity: 1; }
.osm-tile.failed { opacity: 0; }
.osm-marker { position: absolute; top: 0; left: 0; z-index: 2; display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; pointer-events: auto; transform-origin: 0 0; }
.report-marker { display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; }
.osm-marker-dot { display: block; width: 18px; height: 18px; flex: 0 0 auto; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 9px rgba(10,35,42,.36); }
.marker-yes .osm-marker-dot { background: var(--yes); }
.marker-no .osm-marker-dot { background: var(--no); }
.osm-marker-label { display: block; max-width: 190px; overflow: hidden; padding: 3px 7px; border: 1px solid rgba(255,255,255,.9); border-radius: 7px; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(10,35,42,.16); color: #20343a; font-size: .74rem; font-weight: 850; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.osm-marker:hover .osm-marker-label, .osm-marker:focus-visible .osm-marker-label { max-width: 260px; background: #fff; }
.osm-marker:focus-visible { outline: none; }
.osm-marker:focus-visible .osm-marker-dot, .report-marker.is-active .osm-marker-dot { box-shadow: 0 0 0 4px rgba(15,108,120,.28), 0 2px 9px rgba(10,35,42,.36); }
.repeater-map-marker { z-index: 5; cursor: default; margin: var(--repeater-marker-offset, -24px) 0 0 var(--repeater-marker-offset, -24px); }
.repeater-map-icon { display: block; width: var(--repeater-marker-size, 48px); height: var(--repeater-marker-size, 48px); flex: 0 0 auto; filter: drop-shadow(0 3px 5px rgba(25,24,30,.34)); }
.repeater-map-icon svg { display: block; width: var(--repeater-marker-size, 48px); height: var(--repeater-marker-size, 48px); overflow: visible; }
.repeater-map-icon circle { fill: var(--repeater); stroke: #fff; stroke-width: 3; }
.repeater-map-icon path { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.repeater-map-label { color: var(--repeater); font-size: .8rem; }
.osm-map.hide-marker-labels .report-marker .osm-marker-label { display: none; }
.osm-zoom-controls { position: absolute; z-index: 7; top: 12px; left: 12px; display: grid; overflow: hidden; border: 1px solid rgba(50,70,76,.25); border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: 0 5px 18px rgba(17,39,45,.18); }
.osm-zoom-controls button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; color: #20343a; font-size: 1.5rem; font-weight: 850; cursor: pointer; }
.osm-zoom-controls button + button { border-top: 1px solid rgba(50,70,76,.18); }
.osm-zoom-controls button:hover, .osm-zoom-controls button:focus-visible { background: #edf3f4; outline: none; }
.osm-attribution { position: absolute; z-index: 7; right: 0; bottom: 0; padding: 2px 6px; background: rgba(255,255,255,.88); color: #294149; font-size: .68rem; line-height: 1.35; }
.osm-attribution a { color: inherit; }
.map-loading { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(255,255,255,.68); font-weight: 800; text-align: center; pointer-events: none; }
.map-loading[hidden] { display: none; }
.map-loading.error { color: var(--no); }
.map-tooltip { position: absolute; z-index: 9; width: min(300px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow: auto; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 14px 40px rgba(19,42,49,.22); color: var(--text); }
.map-tooltip > strong { display: block; font-size: 1.15rem; margin-right: 24px; }
.map-tooltip dl { margin: 10px 0 0; display: grid; gap: 5px; font-size: .9rem; }
.map-tooltip dl div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
.map-tooltip dt { color: var(--muted); }
.map-tooltip dd { margin: 0; font-weight: 750; }
.map-tooltip p { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; }
.tooltip-close { position: absolute; top: 7px; right: 8px; border: 0; background: transparent; font-size: 1.35rem; cursor: pointer; color: var(--muted); }
.repeater-status { color: var(--repeater); background: var(--repeater-soft); }
.map-help { margin: 0; padding: 11px 14px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }

.stats-card { padding: 20px; position: sticky; top: 96px; }
.stats-card h2, .stats-card h3 { margin-top: 0; }
.stats-card h3 { margin-top: 24px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats-grid div { padding: 14px; background: var(--surface-2); border-radius: 12px; }
.stats-grid strong { display: block; font-size: 1.55rem; }
.stats-grid span { color: var(--muted); font-size: .82rem; }
.report-list { display: grid; gap: 7px; max-height: 520px; overflow: auto; overscroll-behavior: contain; }
.report-item { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; text-align: left; background: transparent; padding: 10px 6px; border-radius: 9px; color: var(--text); }
.report-item:hover { background: var(--surface-2); }
.report-item-body { display: grid; min-width: 0; }
.report-item-title { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.report-item-title b { color: var(--brand); white-space: nowrap; }
.report-item small { color: var(--muted); }
.report-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; }
.report-dot.yes { background: var(--yes); }
.report-dot.no { background: var(--no); }

.status { display: inline-flex; width: fit-content; padding: 3px 8px; border-radius: 999px; font-size: .78rem; font-weight: 850; white-space: nowrap; }
.status.yes { color: #0d6b39; background: var(--yes-soft); }
.status.no { color: #a92929; background: var(--no-soft); }
.status.pending { color: #7a4d00; background: #fff1d3; }

.login-card, .install-card { max-width: 650px; padding: 28px; }
.admin-config-card { margin-bottom: 22px; padding: clamp(20px, 3vw, 30px); }
.admin-config-heading { margin-bottom: 24px; }
.admin-config-heading h2 { margin: 4px 0 8px; }
.admin-config-heading p { margin-bottom: 0; }
.admin-config-form { gap: 28px; }
.settings-group { gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.settings-group:first-of-type { padding-top: 0; border-top: 0; }
.settings-group legend { margin: 0; font-size: 1.08rem; }
.admin-config-actions { display: flex; justify-content: flex-end; }
.admin-settings-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 28px; align-items: end; margin-bottom: 22px; padding: 24px; }
.admin-settings-card h2 { margin: 4px 0 8px; }
.admin-settings-card p { margin-bottom: 0; }
.admin-settings-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.admin-settings-form .button { white-space: nowrap; }
.admin-map-settings-card { margin-bottom: 22px; padding: clamp(20px, 3vw, 30px); }
.admin-map-settings-form { display: grid; gap: 20px; }
.admin-map-picker-wrap { width: min(100%, 620px); }
.admin-map-preview-shell { position: relative; width: 100%; height: 330px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #dcecef; }
.admin-map-preview { position: absolute; inset: 0; overflow: hidden; cursor: crosshair; touch-action: none; user-select: none; background: #dcecef; outline: none; }
.admin-map-preview.dragging { cursor: grabbing; }
.admin-map-preview:focus-visible { box-shadow: inset 0 0 0 4px rgba(15,108,120,.3); }
.admin-preview-marker-layer { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.admin-preview-repeater { position: absolute; top: 0; left: 0; z-index: 4; display: block; filter: drop-shadow(0 3px 5px rgba(25,24,30,.34)); }
.admin-preview-repeater svg { display: block; width: 100%; height: 100%; overflow: visible; }
.admin-preview-repeater circle { fill: var(--repeater); stroke: #fff; stroke-width: 3; }
.admin-preview-repeater path { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.admin-preview-selected { position: absolute; top: 0; left: 0; z-index: 6; display: block; border: 4px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(15,108,120,.88), 0 4px 12px rgba(0,0,0,.35); }
.admin-preview-selected::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.admin-preview-selected::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 0; height: 0; border: 7px solid transparent; border-top-color: var(--brand); transform: translateX(-50%); }
.admin-preview-help { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.admin-coordinate-field { width: min(100%, 620px); }
.admin-coordinate-field input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.admin-map-options { width: min(100%, 620px); }
.admin-map-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.map-repeater-information { margin-top: 28px; }
.table-card { overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: 13px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.odx-position { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.details-cell { min-width: 230px; max-width: 380px; }
.cell-muted { color: var(--muted); font-size: .82rem; }
.admin-actions { display: grid; gap: 8px; min-width: 140px; }
.admin-actions form { display: flex; flex-wrap: wrap; gap: 8px; }
.text-button { padding: 0; background: transparent; color: var(--brand); font-weight: 750; }
.text-button.danger { color: var(--no); }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.config-list { display: grid; gap: 10px; }
.config-list div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.config-list dt { color: var(--muted); }
.config-list dd { margin: 0; font-weight: 800; }
code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { min-height: 96px; }
.footer-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.footer-logo-picture { display: grid; place-items: center; flex: 0 0 auto; }
.footer-logo { display: block; width: 54px; height: 64px; object-fit: contain; }
.footer-brand > span { display: grid; min-width: 0; }
.footer-brand strong { color: var(--text); }
.footer-brand small { color: var(--muted); }
.footer-row-simple { min-height: 72px; justify-content: center; text-align: center; font-weight: 750; color: var(--text); }

@media (max-width: 980px) {
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-layout { grid-template-columns: 1fr; }
    .stats-card { position: static; }
    .report-list { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .container { width: min(100% - 22px, 1180px); }
    main { padding-block: 28px 46px; }
    .header-row { align-items: stretch; flex-direction: column; gap: 10px; padding-block: 10px; }
    .brand-picture-horizontal { display: none; }
    .brand-picture-compact { display: grid; }
    .brand-logo-compact { width: 46px; height: 55px; }
    .brand-logo-round { width: 48px; height: 48px; }
    nav { width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
    nav a { flex: 0 0 auto; }
    .hero { align-items: stretch; flex-direction: column; gap: 18px; }
    .hero .button { width: 100%; }
    .page-actions .button { width: 100%; }
    .form-grid.two { grid-template-columns: 1fr; }
    .choice-row { display: grid; grid-template-columns: 1fr; }
    .choice { width: 100%; }
    .location-panel { align-items: stretch; flex-direction: column; }
    .location-button, .form-actions .button { width: 100%; }
    .repeater-card { grid-template-columns: 1fr; }
    .repeater-photo-wrap, .repeater-photo { min-height: 210px; }
    .repeater-specs div { grid-template-columns: 90px minmax(0, 1fr); }
    .latest-grid { grid-template-columns: 1fr; }
    .section-heading, .latest-heading { align-items: flex-start; flex-direction: column; }
    .map-toolbar { align-items: stretch; flex-direction: column; }
    .filters, .map-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .chip, .icon-button { padding-inline: 7px; }
    .map-shell { min-height: 390px; aspect-ratio: 1 / 1; }
    .osm-marker-label { max-width: 150px; font-size: .7rem; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-list { grid-template-columns: 1fr; }

    .table-card { overflow: visible; background: transparent; border: 0; box-shadow: none; }
    .table-wrap { overflow: visible; }
    .responsive-table, .responsive-table tbody { display: block; width: 100%; }
    .responsive-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .responsive-table tr { display: grid; gap: 0; margin-bottom: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
    .responsive-table td { display: grid; grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .responsive-table td:last-child { border-bottom: 0; }
    .responsive-table td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
    .responsive-table .empty { display: block; text-align: center; }
    .responsive-table .empty::before { content: none; }
    .odx-position { width: 26px; height: 26px; }
    .admin-actions { min-width: 0; }
    .details-cell { min-width: 0; max-width: none; }
    .admin-config-actions { display: grid; }
    .admin-config-actions .button { width: 100%; }
    .admin-settings-card { grid-template-columns: 1fr; }
    .admin-settings-form { grid-template-columns: 1fr; }
    .admin-settings-form .button { width: 100%; }
    .admin-map-shortcuts { display: grid; grid-template-columns: 1fr; }
    .admin-map-shortcuts .button { width: 100%; }
    .admin-map-preview-shell { height: 280px; }
    .footer-row { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding-block: 18px; }
    .footer-row.footer-row-simple { align-items: center; flex-direction: row; min-height: 68px; padding-block: 14px; }
    .footer-brand { width: 100%; }
    .footer-logo { width: 46px; height: 55px; }
}

@media (max-width: 440px) {
    .brand-copy strong { font-size: .92rem; }
    .brand-copy small { font-size: .75rem; }
    .filters, .map-buttons { grid-template-columns: 1fr; }
    .map-shell { min-height: 360px; }
    .osm-zoom-controls { top: 8px; left: 8px; }
    .osm-zoom-controls button { width: 38px; height: 38px; }
    .latest-report-data { grid-template-columns: 1fr; }
    .stats-card { padding: 16px; }
    .responsive-table td { grid-template-columns: 82px minmax(0, 1fr); }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1719;
        --surface: #172225;
        --surface-2: #202d31;
        --text: #ecf3f4;
        --muted: #9cb0b5;
        --line: #2c3b3f;
        --brand: #66c3d0;
        --brand-dark: #45a9b7;
        --brand-soft: #18383d;
        --yes-soft: #133a29;
        --no-soft: #472323;
        --repeater-soft: #4a1731;
        --shadow: 0 16px 50px rgba(0,0,0,.24);
    }
    body { background: radial-gradient(circle at top left, #132c31, transparent 38rem), var(--bg); }
    .site-header { background: rgba(23,34,37,.91); border-bottom-color: var(--line); }
    input, select, textarea { background: #10191b; color: var(--text); border-color: #3b4b4f; }
    .map-tooltip { background: rgba(23,34,37,.98); }
    .map-loading { background: rgba(15,23,25,.72); }
    .osm-marker-label { border-color: rgba(255,255,255,.7); background: rgba(245,249,250,.94); color: #142126; }
    .osm-zoom-controls { background: rgba(245,249,250,.96); }
    .osm-attribution { background: rgba(245,249,250,.9); color: #20343a; }
    .map-notice.warning { color: #f2d88f; background: #3b321b; border-color: #67552b; }
    .map-notice.error { color: #ffc1c1; background: #472323; border-color: #7a3b3b; }
}
