:root { font: 14px/1.5 system-ui, sans-serif; color: #172c3b; background: #f7f8f6; }
* { box-sizing: border-box; }
body { margin: 0; display: flex; height: 100vh; }
aside { width: 350px; padding: 20px; overflow-y: auto; border-right: 1px solid #bec9ce; flex-shrink: 0; }
main { flex: 1; min-width: 0; }
h1 { font-size: 22px; margin: 0 0 8px; } h2 { font-size: 15px; margin: 22px 0 8px; }
p { margin: 6px 0 12px; } .notice { padding: 8px; background: #fff0c6; font-weight: 650; }
label { display: block; margin: 8px 0; } input[type=range], input[type=search] { width: 100%; }
input[type=search] { padding: 7px; border: 1px solid #b6c3cc; border-radius: 4px; }
button { cursor: pointer; border: 1px solid #b6c3cc; border-radius: 4px; background: white; padding: 5px 8px; color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 5px; }
.strip { margin: 2px 0 2px 14px; font-size: 12px; } .strip label { display: inline-block; }
.flight-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.flight-table th { padding: 5px 3px; text-align: left; vertical-align: top; background: #eaf0f2; border-bottom: 1px solid #b6c3cc; }
.flight-table th:nth-child(1) { width: 34%; } .flight-table th:nth-child(2) { width: 20%; }
.flight-table th:nth-child(3) { width: 25%; } .flight-table th:nth-child(4) { width: 21%; }
.flight-table th button { border: 0; background: none; padding: 0; font: inherit; font-weight: 650; text-align: inherit; }
.flight-table th button:hover { text-decoration: underline; }
.flight-table th[aria-sort=ascending], .flight-table th[aria-sort=descending] { background: #d5eaf3; }
.column-unit { display: block; color: #546670; font-size: 11px; }
.flight-table td { padding: 7px 3px 2px; vertical-align: top; }
.flight-table .flight.hovered { background: #fff0e7; }
.flight-table .numeric { text-align: right; white-space: nowrap; }
.flight-table th:nth-child(3), .flight-table th:nth-child(4) { text-align: right; }
.flight-table .flight-name label { display: flex; align-items: baseline; gap: 4px; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.flight-table input[type=checkbox] { flex-shrink: 0; margin: 0; }
.flight-table .flight-year { overflow-wrap: anywhere; }
.flight-table .flight-tools { padding: 1px 3px 7px; border-bottom: 1px solid #d7dee2; }
.flight-tools > button { float: right; padding: 2px 7px; font-size: 11px; }
.flight-tools details { margin-right: 40px; }
.flight-tools summary { cursor: pointer; font-size: 11px; color: #546670; }
.flight-tools .strip { display: flex; gap: 4px; align-items: baseline; justify-content: space-between; }
.flight-tools .strip label { min-width: 0; overflow-wrap: anywhere; }
.flight-tools .strip button { flex-shrink: 0; font-size: 11px; padding: 2px 6px; }
.flight-stat-note { font-size: 11px; margin-bottom: 8px; }
.frame { display: flex; gap: 8px; align-items: center; padding: 4px; border-bottom: 1px solid #dee4e5; }
.frame button { flex: 1; text-align: left; } .frame.selected { background: #d5eaf3; }
.warning { color: #945300; } .muted { color: #657984; } #metadata { overflow-wrap: anywhere; }
#metadata dl { display: grid; grid-template-columns: 105px 1fr; gap: 4px 8px; } dt { color: #546670; } dd { margin: 0; }
#metadata img { width: 100%; margin-top: 8px; } .quicklook-image { pointer-events: none; position: absolute; transform-origin: 0 0; }
.map-label { background: #fff9; padding: 4px 8px; font-size: 12px; }
.public-only { display: none; }
/* Keep transformed map imagery in its own paint/stacking context. The sidebar
 * needs an opaque surface above it while its independent scroll area repaints. */
.public-quicklook aside { width: 350px; position: relative; z-index: 1; background: #f7f8f6; }
.public-quicklook #map { position: relative; z-index: 0; isolation: isolate; contain: paint; }
.public-quicklook .public-only { display: block; }
.public-quicklook .public-hide,
.public-quicklook #unplaced,
.public-quicklook .flight-tools details { display: none; }
.public-quicklook .public-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.public-quicklook #metadata img { max-width: 100%; }
.public-quicklook .flight-table th:nth-child(1) { width: 32%; }
.public-quicklook .flight-table th:nth-child(2) { width: 24%; }
.public-quicklook #photoSelect { display: block; width: 100%; padding: 8px; margin-top: 5px; }

@media (max-width: 700px) { body { flex-direction: column-reverse; } aside { height: 42vh; width: 100%; } main { min-height: 58vh; } }
.primary-controls { padding-bottom: 8px; border-bottom: 1px solid #d7dee2; }
.primary-controls select { width: 100%; margin-top: 4px; padding: 7px; border: 1px solid #b6c3cc; border-radius: 4px; background: white; font: inherit; color: inherit; }
.year-controls { display: flex; align-items: end; gap: 8px; }
.year-controls label { flex: 1; min-width: 0; font-size: 12px; }
.year-controls input { width: 100%; padding: 6px; margin-top: 4px; border: 1px solid #b6c3cc; border-radius: 4px; font: inherit; }
.year-controls button { margin-bottom: 8px; white-space: nowrap; font-size: 11px; padding: 7px; }
.compact { font-size: 12px; } #opacityValue { float: right; font-size: 12px; }
.open-collection { margin-top: 10px; font-size: 12px; } .open-collection summary { cursor: pointer; }
#manifestPath { width: 100%; padding: 7px; margin-top: 4px; border: 1px solid #b6c3cc; border-radius: 4px; }

@media (max-width: 700px) { .public-quicklook aside { width: 100%; height: 42dvh; } .public-quicklook main { min-height: 58dvh; } }

.public-quicklook .flight-values { cursor: pointer; }
.public-quicklook .flight-values td { padding: 10px 4px; border-bottom: 1px solid #d7dee2; vertical-align: middle; }
.public-quicklook .flight-table .flight.selected { background: #d5eaf3; }
.public-quicklook .flight-table .flight-name label { align-items: center; gap: 6px; }
.public-quicklook .flight-table input[type=radio] { width: 22px; height: 22px; flex-shrink: 0; margin: 0; accent-color: #216c88; cursor: pointer; }
.public-quicklook .flight-area { font-variant-numeric: tabular-nums; }
.public-quicklook .coverage-value { font-weight: 600; }
.public-quicklook .coverage-unit { display: block; color: #657984; font-size: 10px; line-height: 1.2; }
.public-quicklook .flight-table th:nth-child(1) { width: 31%; }
.public-quicklook .flight-table th:nth-child(2) { width: 21%; }
.public-quicklook .flight-table th:nth-child(3) { width: 29%; }
.public-quicklook .flight-table th:nth-child(4) { width: 19%; }
.public-quicklook #metadata dl { grid-template-columns: 90px 1fr; }
