* { box-sizing: border-box; }
body { margin: 8px; background: #ddd; color: #000; font: 14px Arial, Helvetica, sans-serif; }
h1 { display: inline; font-size: 24px; margin: 0 12px 0 0; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
time { margin-left: auto; }
nav { margin-bottom: 6px; }
button, input, select { font: inherit; }
button { cursor: pointer; padding: 1px 6px; }
button.selected, button[aria-pressed="true"] { background: #bbb; border-style: inset; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #555; }
input[type="range"] { width: 100px; vertical-align: middle; accent-color: #555; }
#frequency { width: 112px; }
#bandwidth { width: 80px; }
#floor, #range { width: 56px; }
#notice { padding: 4px; border: 1px solid #888; }
.plot { position: relative; }
canvas { display: block; width: 100%; image-rendering: pixelated; }
#spectrum { height: 80px; cursor: crosshair; touch-action: none; }
#listeners { height: 22px; background: #000; image-rendering: auto; }
#scale { height: 24px; }
#waterfall { height: 280px; cursor: crosshair; touch-action: none; image-rendering: auto; }
#bandmap { height: 48px; background: #000; cursor: pointer; }
#passband { position: absolute; top: 0; bottom: 0; background: #ffff0018; border-left: 1px solid #ff0; border-right: 1px solid #ff0; pointer-events: none; }
#tuning-line { position: absolute; top: 0; bottom: 0; width: 1px; background: #ff0; pointer-events: none; }
#empty { position: absolute; inset: 80px 0 0; display: grid; place-items: center; background: #000; color: #ccc; }
.controls { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin: 6px 0; }
fieldset { min-width: 0; margin: 0; padding: 5px 8px; background: #eee; border: 1px solid #999; }
legend { padding: 0 4px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0; }
.row label { white-space: nowrap; }
#meter { background: #000; color: #00ff00; padding: 6px; width: 232px; line-height: 18px; }
.meter-track { height: 8px; position: relative; background: #092009; }
#meter-bar { display: block; width: 0; height: 100%; background: #00ff00; }
#meter-peak { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #00ff00; }
.meter-scale { font-size: 16px; }
.gradient { width: 100px; height: 12px; display: inline-block; }
#filter-range { margin: 5px 0; }
.day-scale { display: flex; justify-content: space-between; }
.day-wrap { max-height: 650px; overflow: auto; background: #000; }
#day-image { width: 100%; min-height: 1px; }
footer { border-top: 1px solid #888; padding-top: 5px; margin-top: 8px; }
[hidden] { display: none !important; }
#landmarks { height: 66px; background: #000; cursor: pointer; image-rendering: auto; }
#ft8-map { height: 72vh; min-height: 520px; max-height: 900px; background: #ddd; }
#ft8-map canvas { width: auto; image-rendering: auto; }
.ft8-night { position: absolute; pointer-events: none; }
.ft8-moon { border-radius: 50%; box-shadow: 0 0 3px #000; pointer-events: none; }
#ft8 p { margin: 6px 0; }
.ft8-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 5px 0; }
.ft8-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ft8-legend i { display: inline-block; width: 12px; height: 12px; border: 1px solid #555; }
.ft8-legend .cq { background: #36cf68; }.ft8-legend .cqdx { background: #89dcff; }
.ft8-legend .other { background: #3688ef; }.ft8-legend .history { background: #f4cd46; }
.ft8-legend .mixed { background: linear-gradient(135deg,#f4cd46 50%,#36cf68 50%); }
.ft8-log { font: 13px/1.35 "Courier New",Courier,monospace; background: #eee; border: 1px solid #999; padding: 5px; margin: 5px 0; overflow: auto; max-height: 320px; }
#ft8-grid-panel { margin-top: 6px; }
.error { color: #a00; }
#propagation { margin-top: 8px; border-top: 1px solid #999; padding-top: 4px; font-size: 13px; }
#propagation summary { cursor: pointer; }
#solar-image { display: block; max-width: 100%; height: auto; margin-top: 4px; }
@media(max-width:600px){#ft8-map{height:70vh;min-height:420px}.ft8-log{font-size:12px}}
@media (max-width: 500px) { body { margin: 4px; } #waterfall { height: 240px; } fieldset { flex: 1 1 280px; } }
