/* ionospotter — the shack's look (the same family as IP-rotator and
 * wifilt): dark slate, Roboto Condensed, small capitals tracked wide, hairlines
 * instead of cards, green for "on air". Fonts are built in (web/fonts) — the
 * page works with no internet. */
@font-face { font-family: 'RC'; src: url(fonts/RC-R.ttf) format('truetype'); font-weight: 400; }
@font-face { font-family: 'RC'; src: url(fonts/RC-B.ttf) format('truetype'); font-weight: 700; }
:root {
  color-scheme: dark;
  --bg: #0d1520; --panel: #111c2a; --deep: #0a111a; --well: #05090e; --ln: #1f2e42; --ln2: #2c3f57;
  --fg: #d7e2ee; --mut: #7d8fa6; --faint: #4d5f76; --off-bg: #262c34;
  --hot: #39d98a; --hot-ink: #04140b; --ok: #39d98a; --warn: #f2b33d; --bad: #ff5d5d; --cq: #5fc8ff;
  --accent: #39d98a;
  --mono: 'RC', ui-monospace, monospace;
  /* charts: band colours (follow the band, never its rank), ramps, recessive ink */
  --s1: #4f8dff; --s2: #ff7a2f; --s3: #27c26b; --s4: #ffb21f;
  --s5: #e24fd8; --s6: #18b0c9; --s7: #8e6cff; --s8: #ff5d5d;
  /* the two modes, the same everywhere on Statistics: CW a pastel blue,
     RTTY a pastel peach — apart at a glance; the active-decoders heatmap
     has one calm ramp for both (the strip's place in a band says the mode) */
  --cw: #8fb9ff; --rtty: #ffb88a; --ft8: #c59bff; --ft4: #ff8fd0; --js8: #f2d46b; --wspr: #e05a5a; --jtty: #7fe0d0;
  /* the bands table's stacked bars: six modes side by side in one bar, so
     six hues far apart at one weight — not the pastels above, whose blue,
     violet and pink run together when they touch */
  --m-cw: #4f9dff; --m-rtty: #ff9838; --m-ft8: #a46bff; --m-ft4: #2fcf9f; --m-js8: #e3c22a; --m-wspr: #f0485e; --m-jtty: #3fc9b4;
  --seq-lo: #121b28; --seq-hi: #9fb4d2;
  --grid: #1a283a; --axis: #2f4560; --tick: #6a7d96;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font: 15px/1.38 'RC', 'Roboto Condensed', 'Arial Narrow', sans-serif; margin: 0; color: var(--fg);
       background: var(--bg); }
a { color: var(--cq); }

/* ---- the top bar ---- */
header { display: flex; align-items: stretch; gap: 22px; padding: 0 18px; min-height: 50px;
         border-bottom: 1px solid var(--ln); background: var(--deep); position: sticky; top: 0; z-index: 5;
         flex-wrap: wrap; }
.title { display: flex; align-items: center; gap: 8px; }
/* the IonoSpotter icon in the top left corner, on every tab; what it is in a
   card under it on hover (or keyboard focus) */
.brand { position: relative; display: flex; align-items: center; margin-right: -10px; outline: none; }
.brand img { display: block; width: 30px; height: 30px; }
.brand:focus-visible img { outline: 2px solid var(--hot); outline-offset: 2px; border-radius: 7px; }
.brand-tip { position: absolute; top: 100%; left: 0; z-index: 30; width: max-content;
  max-width: min(380px, calc(100vw - 36px)); padding: 8px 12px; background: var(--panel); border: 1px solid var(--ln2);
  box-shadow: 0 6px 18px rgba(0,0,0,.45); color: var(--fg); font-size: 14px; line-height: 1.4; letter-spacing: .02em;
  opacity: 0; visibility: hidden; transition: opacity .12s, visibility 0s .12s; pointer-events: none; }
.brand-tip b { color: var(--hot); }
.brand-own { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ln); color: var(--mut); }
.brand:hover .brand-tip, .brand:focus-visible .brand-tip { opacity: 1; visibility: visible; transition-delay: .15s, .15s;
  pointer-events: auto; }
.unsaved { flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 -18px;
           padding: 6px 18px; background: var(--warn); color: #111; font-size: 14px; letter-spacing: .02em; }
.unsaved[hidden] { display: none; }
.unsaved b { font-weight: 700; }
.unsaved button { font-size: 13px; padding: 3px 10px; }
#settings input.upper { text-transform: uppercase; }
#settings input.upper::placeholder { text-transform: none; }
h1 { font-size: 20px; margin: 0; font-weight: 700; letter-spacing: .04em; }
h1 small, #version { color: var(--mut); font-weight: 400; font-size: 13px; letter-spacing: .08em; }
.strip { flex: 1; display: flex; align-items: center; gap: 18px; color: var(--mut); font-size: 13px;
         letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; min-width: 0; }
.strip b { color: var(--fg); font-weight: 700; }
.radio { display: flex; align-items: center; gap: 7px; min-width: 0; text-transform: none; letter-spacing: .02em; }
.radio #radio-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--hot); box-shadow: 0 0 6px var(--hot); } .dot.bad { background: var(--bad); }
nav { display: flex; }
nav button { font: inherit; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border: 0;
             border-bottom: 2px solid transparent; background: transparent; color: var(--mut); padding: 0 14px;
             cursor: pointer; }
nav button:hover { color: var(--fg); }
nav button.on { color: var(--fg); border-bottom-color: var(--hot); }
nav a.navlink { display: flex; align-items: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
                color: var(--mut); text-decoration: none; padding: 0 14px; border-bottom: 2px solid transparent; }
nav a.navlink:hover { color: var(--fg); }

main { padding: 0 0 24px; }
main > section { padding: 0; }
.pad { padding: 14px 18px; }
footer { padding: 10px 18px 24px; font-size: 12px; color: var(--faint); letter-spacing: .06em; }
footer a { color: inherit; }
.mut { color: var(--mut); }
.off-hot, .ladder td.n.off-hot { color: var(--warn); font-weight: 700; }
h2 { font-size: 12px; margin: 0 0 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut);
     font-weight: 700; }
h2 .mut, h2 small { font-weight: 400; letter-spacing: .06em; text-transform: none; font-size: 13px; }
h2.sect { margin: 4px 0 8px; }
.note { font-size: 12px; margin: 6px 0 14px; color: var(--mut); }

/* ---- readouts ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0;
         border: 1px solid var(--ln); margin-bottom: 14px; background: var(--panel); }
.tile { padding: 8px 12px; border-right: 1px solid var(--ln); border-bottom: 1px solid var(--ln); margin: 0 -1px -1px 0; }
.tile .k { font-size: 11px; color: var(--mut); letter-spacing: .14em; text-transform: uppercase; }
.tile .v { font-size: 22px; font-variant-numeric: tabular-nums; font-weight: 700; }
.tile .v small { font-size: 12px; color: var(--mut); font-weight: 400; letter-spacing: .04em; }
.tile .v small.hot { color: var(--bad); font-weight: 700; }
.tile .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rp-tiles .tile .v { font-size: 19px; line-height: 1.15; }
.contents { display: contents; }
/* Statistics' summary (Dan, 2026-11-28: the tiles were a column of numbers
 * each): a table a mode — now, spots, calls — then the station, then what
 * the decoders let go in the range */
.st-sum { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 0;
  border: 1px solid var(--ln); background: var(--panel); margin-bottom: 14px; }
@media (max-width: 1100px) { .st-sum { grid-template-columns: 1fr 1fr; } .st-sum .sum-modes { grid-column: 1 / -1; } }
@media (max-width: 640px) { .st-sum { grid-template-columns: 1fr; } }
.sum-box { padding: 8px 12px; border-right: 1px solid var(--ln); min-width: 0; }
.sum-box:last-child { border-right: 0; }
.sum-box .k { font-size: 11px; color: var(--mut); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.sum-box .k small { text-transform: none; letter-spacing: .02em; margin-left: 4px; }
.sum-modes { overflow-x: auto; }
.sum-t { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.sum-t th { font-size: 11px; font-weight: 400; color: var(--mut); letter-spacing: .12em; text-transform: uppercase;
  text-align: right; padding: 0 10px 4px; white-space: nowrap; }
.sum-t th:first-child { text-align: left; padding-left: 0; }
.sum-t td { padding: 3px 10px; text-align: right; border-top: 1px solid var(--ln); white-space: nowrap; }
.sum-t td.m { text-align: left; padding-left: 0; font-weight: 700; letter-spacing: .08em; }
.sum-t td.m i { display: inline-block; width: 12px; height: 8px; margin-right: 7px; vertical-align: 1px; }
.sum-t td b { font-size: 18px; }
.sum-t td small { color: var(--mut); margin-left: 4px; }
.sum-t td.now { text-align: left; }
.sum-t tr.cw td.m, .sum-t tr.cw td.now b { color: var(--cw); }
.sum-t tr.rtty td.m, .sum-t tr.rtty td.now b { color: var(--rtty); }
.sum-t tr.ft8 td.m, .sum-t tr.ft8 td.now b { color: var(--ft8); }
.sum-t tr.js8 td.m, .sum-t tr.js8 td.now b { color: var(--js8); }
.sum-t tr.wspr td.m, .sum-t tr.wspr td.now b { color: #e05a5a; }
.sum-kv { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 13px; align-items: baseline; }
.sum-kv span { color: var(--mut); }
.sum-kv b { font-variant-numeric: tabular-nums; text-align: right; }
.sum-kv b.ok { color: var(--ok); } .sum-kv b.warn { color: var(--warn); } .sum-kv b.bad { color: var(--bad); }
.sum-kv b small { color: var(--mut); font-weight: 400; margin-left: 3px; }
.sum-kv3 { grid-template-columns: 1fr auto auto; }
.sum-kv3 em { font-style: normal; font-size: 11px; color: var(--mut); text-align: right; letter-spacing: .06em; }
.sum-box > .small { font-size: 12px; margin-top: 6px; }
.sum-box > .small.ok { color: var(--ok); }
.tile.hero { grid-column: span 2; background: linear-gradient(90deg, #10251c, var(--panel)); }
.tile.hero .k { color: var(--hot); }
.tile.hero .k small { color: var(--mut); margin-left: 4px; letter-spacing: .04em; text-transform: none; }
.tile.hero .parts { display: flex; gap: 2px 24px; margin-top: 2px; }
.tile.hero .part { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; }
.tile.hero .n { font-size: 32px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile.hero .cw .n { color: var(--cw); } .tile.hero .rtty .n { color: var(--rtty); }
/* the label and its detail wrap inside their half (8 bands and a pause made
   the CW line run over the RTTY one) */
.tile.hero .l { font-size: 13px; font-weight: 700; line-height: 1.25; letter-spacing: .08em; overflow-wrap: anywhere; }
.tile.hero .l small { font-weight: 400; font-size: 12px; color: var(--mut); margin-left: 5px; letter-spacing: 0; }

/* CW and RTTY one under the other (statistics tiles and table) */
.tile .v.ml { font-size: 19px; line-height: 1.2; }
.tile .v.ml.cw, .grid .ml.cw { color: var(--cw); }
.tile .v.ml.rtty, .grid .ml.rtty { color: var(--rtty); }
.tile .v.ml.ft8, .grid .ml.ft8 { color: var(--ft8); }
.tile .v.ml.js8, .grid .ml.js8 { color: var(--js8); }
.tile .v.ml small { color: inherit; opacity: .75; }
.grid td .ml { line-height: 1.3; }
.grid td .ml + .ml { border-top: 1px dotted var(--ln); }

/* ---- tables ---- */
.wrap { overflow-x: auto; }
table.grid { border-collapse: collapse; width: 100%; background: var(--panel); border: 1px solid var(--ln); }
.grid th, .grid td { padding: 5px 10px; border-bottom: 1px solid var(--ln); text-align: right;
                     white-space: nowrap; font-variant-numeric: tabular-nums; }
.grid th:first-child, .grid td:first-child { text-align: left; }
.grid th.l, .grid td.l { text-align: left; }
.grid th { color: var(--mut); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
           background: var(--deep); }
.grid tr:last-child td { border-bottom: 0; }
#peers-box, #workers-box { margin-bottom: 14px; }
.cq { color: var(--cq); font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0; border: 1px solid var(--ln); }
.card { background: var(--panel); border-right: 1px solid var(--ln); border-bottom: 1px solid var(--ln);
        padding: 8px 10px; margin: 0 -1px -1px 0; }
.card h2 { color: var(--fg); }
.card table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.card td, .card th { padding: 2px 4px; text-align: right; white-space: nowrap; }
.card td:first-child, .card th:first-child { text-align: left; }
.card th { color: var(--mut); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.more { margin-top: 16px; }
.more summary { cursor: pointer; color: var(--mut); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 8px 0;
      font-variant-numeric: tabular-nums; }
.kv dt { color: var(--mut); }
.kv dd { margin: 0; font-size: 14px; word-break: break-all; }
.log { background: var(--well); border: 1px solid var(--ln); padding: 10px 14px;
       font: 14px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; color: #b6f5cf;
       max-height: 78vh; overflow: auto; margin: 0; }
.log .warn { color: var(--warn); } .log .crit, .log .error { color: var(--bad); }
.warnbox { border: 1px solid var(--warn); border-left-width: 4px; padding: 8px 12px; margin: 12px 18px;
           background: #1d1708; }
.warnbox code { font-family: var(--mono); font-size: 13px; color: var(--warn); }
/* one sentence of what the page is, a visitor's first look (index.html #whatis): a slim line, × for good */
.whatis { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; padding: 6px 18px;
          background: var(--panel); border-bottom: 1px solid var(--ln); font-size: 14px; color: var(--fg); }
.whatis b { color: var(--hot); }
.whatis #whatis-text { flex: 1 1 28em; min-width: 0; }
.whatis-more, .whatis-x { font: inherit; border: 0; background: transparent; cursor: pointer; padding: 0; }
.whatis-more { color: var(--cq); font-size: 13px; text-decoration: underline; }
.whatis-x { color: var(--mut); font-size: 19px; line-height: 1; padding: 0 4px; }
.whatis-x:hover { color: var(--bad); }

/* ---- segmented switches and chips ---- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; }
.seg button, .chip { font: inherit; font-size: 13px; letter-spacing: .06em; color: var(--mut); cursor: pointer;
                     border: 1px solid var(--ln); background: transparent; padding: 3px 10px; }
.seg button:hover, .chip:hover { color: var(--fg); border-color: var(--ln2); }
.seg button.on, .chip.on { color: var(--hot-ink); background: var(--hot); border-color: var(--hot); }

/* ---- charts ---- */
.chart-card { background: var(--panel); border: 1px solid var(--ln); padding: 10px 14px; margin-bottom: 14px; min-width: 0; }
.chart-card .sub { margin: -4px 0 6px; font-size: 12px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart svg text { font-family: 'RC', sans-serif; }
.chart.loading { opacity: .5; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; font-size: 12px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; display: inline-block; }
.legend i.ramp { width: 46px; }
.legend i.line { width: 14px; height: 0; border-top: 2px solid var(--fg); opacity: .75; }
.legend i.line.dash { border-top: 2px dashed var(--bad); opacity: 1; }
.timebar { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.timebar .t-track { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.timebar input[type=range] { display: none; }        /* the frame in the history is the control */
.t-over { cursor: ew-resize; touch-action: none; user-select: none; }
.t-over svg { display: block; width: 100%; background: var(--deep); }
.t-over .win { fill: rgba(57,217,138,.20); stroke: var(--hot); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.timebar #t-label { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 16em; }
.timebar button { margin-top: 0; }
.tip { position: absolute; pointer-events: none; background: var(--deep); border: 1px solid var(--ln2);
       padding: 6px 9px; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.5); white-space: nowrap; z-index: 6; }
.tip .h { color: var(--mut); margin-bottom: 3px; }
.tip .r { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.tip .r b { min-width: 3.5em; text-align: right; }
.tip .r i { width: 10px; height: 2px; display: inline-block; }

/* ---- the status page: map ---- */
.st-top { display: grid; grid-template-columns: minmax(300px, 700px) 1fr; border-bottom: 1px solid var(--ln); }
.st-map { padding: 14px 18px; border-right: 1px solid var(--ln); min-width: 0; position: relative; }
.st-split { position: absolute; top: 0; bottom: 0; right: -5px; width: 9px; cursor: col-resize; z-index: 3; touch-action: none; }
.st-split:hover::before, .st-split.on::before { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 3px;
  background: var(--hot); opacity: .7; }
/* the grip on the line: it can be taken and moved (Dan, 2026-11-30) — in
 * the middle of the window while the line is in it (the line runs the whole
 * height of the map and the bands) */
.st-split .grip { position: sticky; top: calc(50vh - 24px); display: block; margin: 0 auto;
  width: 11px; height: 48px; border-radius: 6px; border: 1px solid var(--ln2); background-color: var(--deep);
  background-image: radial-gradient(circle, var(--mut) 1.1px, transparent 1.5px); background-size: 4px 6px;
  background-position: center; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.st-split:hover .grip, .st-split.on .grip { border-color: var(--hot);
  background-image: radial-gradient(circle, var(--hot) 1.1px, transparent 1.5px); }
.st-side { padding: 14px 18px; min-width: 0; }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.map-bar .seg, .map-voa .seg { gap: 4px; }
.map-bar .seg button, .map-voa .seg button { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px;
                       border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--faint); }
.map-bar .seg button:hover, .map-voa .seg button:hover { color: var(--fg); border-color: var(--ln2); }
.map-bar .seg button.on, .map-voa .seg button.on { background: transparent; color: var(--hot); border-bottom-color: var(--hot); }
.map-bar .small { margin-top: 0; }
[data-k=zoom] { font-size: 12px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.map-canvas { position: relative; }
.map-canvas canvas { display: block; cursor: crosshair; }
.map-read { position: absolute; left: 0; top: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 100%;
            background: rgba(10,17,26,.88); border: 1px solid var(--ln2); padding: 4px 9px; font-size: 13px;
            letter-spacing: .06em; color: var(--mut); pointer-events: none; }
.map-read b { color: var(--fg); font-variant-numeric: tabular-nums; }
.map-read .spot { flex-basis: 100%; letter-spacing: .02em; }
.map-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; letter-spacing: .04em; flex-wrap: wrap; }
@media (max-width: 1000px) { .st-top { grid-template-columns: 1fr !important; } .st-map { border-right: 0; } .st-split { display: none; } }
/* back to the top: once the page is scrolled, on the line between the map
 * and the bands at the window's bottom edge (one column: at the right) */
.to-top { position: fixed; bottom: 14px; z-index: 6; width: 34px; height: 34px; margin-left: -17px; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--ln2);
  background: var(--deep); color: var(--hot); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.5); opacity: .9; }
.to-top:hover, .to-top:focus-visible { opacity: 1; border-color: var(--hot); }
.to-top.one { left: auto !important; right: 16px; margin-left: 0; }
.to-top[hidden] { display: none; }

/* ---- the status page: the band ladder and readouts ---- */
.ladder { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.ladder td { padding: 5px 6px; border-bottom: 1px solid var(--ln); white-space: nowrap; }
.ladder td.b { font-weight: 700; font-size: 17px; width: 56px; }
.ladder td.bar { width: 20%; min-width: 56px; }
.ladder td.bar i { display: block; height: 7px; background: var(--hot); min-width: 1px; }
.ladder td.bar.rtty i { background: var(--warn); }
/* the decoders' bars muted: how busy, not what came out — the spots are */
.ladder td.bar.cw i, .ladder td.bar.rtty i { opacity: .38; filter: saturate(.5); }
.ladder td.n.sp { color: var(--fg); }
/* WSPR's stations (while its decoder runs): dark red, like its passband on the waterfall */
.ladder td.bar.wspr i { background: #b02a2a !important; }
.ladder td.n.wspr { color: #e05a5a; }
.ladder td.bar.ft8 i { background: #7d52c9 !important; }
.ladder td.n.ft8 { color: var(--ft8); }
/* WSPR and PSK Reporter on others' maps: links in the links' colour, not a mode's red (Dan, 2026-12-02) */
.map-links { margin: 6px 0 0; font-size: 12px; }
.map-links > span:not([hidden]) + span:not([hidden])::before { content: ' · '; }
.ladder td.bar.cw, .ladder td.bar.rtty, .ladder td.bar.spots { background: linear-gradient(var(--deep), var(--deep)) center / 100% 7px no-repeat; }
.ladder td.n { text-align: right; color: var(--mut); font-size: 13px; width: 44px; padding-right: 4px; }
.ladder td.bar { padding-left: 0; }
.ladder td.last { color: var(--hot); letter-spacing: .03em; }
.ladder td.w { font-size: 12px; }
.ladder td.eye { width: 24px; padding: 2px 0; }
.ladder td.eye button { display: flex; padding: 2px; border: 0; background: transparent; color: var(--mut); cursor: pointer; }
.ladder td.eye button:hover { color: var(--fg); }
.ladder tr.off-map td.eye button { color: var(--faint); }
.ladder tr.off-map td:not(.eye) { opacity: .4; }
/* every mode of the band paused (the thermal guard): grey, not its colour */
.ladder tr.paused td.b { color: var(--mut) !important; }
.ladder tr.paused td.bar i { background: var(--faint) !important; opacity: 1; }
/* the stacked bars: each mode its part, in the legend's order and colour;
 * a mode left out (its eye shut) stays, grey */
.ladder td.bar.stack span { display: flex; height: 8px; background: var(--deep); overflow: hidden; }
.ladder td.bar.stack i { display: block; flex: none; height: 8px; min-width: 1px; opacity: 1; filter: none; }
/* a cut of the page's ground between two parts, inside the second one's width */
.ladder td.bar.stack i + i { box-shadow: inset 2px 0 0 var(--bg); min-width: 3px; }
.m-cw { background: var(--m-cw) !important; } .m-rtty { background: var(--m-rtty) !important; }
.m-ft8 { background: var(--m-ft8) !important; } .m-ft4 { background: var(--m-ft4) !important; }
.m-wspr { background: var(--m-wspr) !important; }
.m-js8 { background: var(--m-js8) !important; }
.m-jtty { background: var(--m-jtty) !important; }
/* a mode left out: the number counted, then all of them in dark grey */
.ladder td.n .all { color: var(--faint); margin-left: 3px; }
.ladder td.bar.stack i.x { background: var(--faint) !important; opacity: .55; }
/* the active decoders: the modes' colours muted, under the spots */
.ladder td.bar.stack.act i { opacity: .38; filter: saturate(.55); }
.ladder td.bar.stack.act span { height: 6px; }
.ladder td.bar.stack.act i { height: 6px; }
.ladder td.n.act { color: var(--faint); }
.ladder tr.paused td.bar.stack i { background: var(--faint) !important; }
/* the legend over the bars: a mode, its colour and its eye */
.ladder tr.legend-row th { border-bottom: 0; padding-bottom: 0; cursor: default; }
/* the modes and "clear filters" on one centre line (Dan, 2026-12-02) */
.ladder .lad-legend { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 10px; padding-bottom: 2px; }
/* a mode's column: the mode, and under it "hidden ×" while it is left out —
   so what is filtered stands under what it filters (v0.11.2, Dan); the other
   filters' chips beside the columns, on the tags' line */
.ladder .lad-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 14px; }
.ladder .lg-col { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ladder .lg-tag { display: inline-flex; align-items: center; gap: 1px; margin: 0 0 3px 2px; padding: 0 2px 0 6px; font: inherit; font-size: 11px;
  line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); border: 1px solid var(--warn); border-radius: 9px;
  background: #1d1708; cursor: pointer; white-space: nowrap; }
.ladder .lg-tag b { font-size: 13px; font-weight: 400; padding: 0 3px; }
.ladder .lg-tag:hover { color: var(--fg); }
.ladder .lg { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 1px 2px;
  border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 11px; letter-spacing: .1em; cursor: pointer; }
.ladder .lg i { display: inline-block; width: 14px; height: 8px; }
.ladder .lg svg { color: var(--mut); }
.ladder .lg:hover svg { color: var(--fg); }
.ladder .lg.x { color: var(--faint); }
.ladder .lg.x i { background: var(--faint) !important; opacity: .55; }
.ladder .lg.x svg { color: var(--faint); }
.ladder .lad-clear { margin: 0 0 0 6px; padding: 1px 8px; font-size: 11px; line-height: 1.3; }
.ladder .lad-clear:disabled { opacity: .35; cursor: default; }
/* what is filtered now, in words, under the legend (Dan, 2026-12-05): a chip a
   restriction with its ×, "clear all" at their end; no row while nothing is */
.ladder .lad-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 5px; padding: 1px 0 4px;
  text-transform: none; letter-spacing: .02em; cursor: default; }
.ladder .lad-chips .lc-h { color: var(--warn); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-right: 2px; }
.ladder .fchip { display: inline-flex; align-items: center; gap: 1px; padding: 0 2px 0 7px; font-size: 12px; line-height: 1.5;
  color: var(--fg); border: 1px solid var(--warn); border-radius: 10px; background: #1d1708; white-space: nowrap; cursor: help; }
.ladder .fchip button { font: inherit; font-size: 14px; line-height: 1; border: 0; background: transparent; color: var(--warn);
  cursor: pointer; padding: 0 4px; }
.ladder .fchip button:hover { color: var(--fg); }
/* the map's age: 5, 10, 15 or 30 min, in the heading */
.age-seg { vertical-align: 2px; gap: 2px; margin: 0 2px; }
.age-seg button { font-size: 12px; padding: 1px 6px; letter-spacing: .04em; }

/* … and on a dark grey ground, the whole row */
.ladder tr.paused td { background-color: var(--off-bg) !important; }
/* where the band goes: a column a continent, the stations heard from it in
 * 30 min (CW, RTTY, WSPR) — drawn as one heat map over the cells (a canvas
 * on top that lets the mouse through to each cell's tip) */
.st-side { position: relative; }
.ladder th.hm { width: 26px; padding: 2px 0 4px; text-align: center; letter-spacing: 0; }
.ladder td.hm { width: 26px; padding: 0; }
/* each continent's eye over its label: the page's continent filter */
.ladder th.hm button { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 1px;
  border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: 0; cursor: pointer; }
.ladder th.hm button svg { color: var(--mut); }
.ladder th.hm button:hover svg { color: var(--fg); }
.ladder th.hm.x button, .ladder th.hm.x button svg { color: var(--faint); }
/* room either side of the continents, so the heat map's edge blobs fade
 * out into the ground instead of being cut at the first and last column */
.ladder .hm-pad { width: 14px; padding: 0; }
.ladder-heat { position: absolute; pointer-events: none; }
/* Statistics → Red Pitaya: the ADC's and the events' charts under the network's */
#rp-adc, #rp-ev { margin-top: 14px; }
.ladder tr.head-row th { padding: 2px 6px 4px; border-bottom: 1px solid var(--ln); color: var(--mut); font-weight: 400;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-align: left; vertical-align: bottom; cursor: help; }
.readouts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 16px; color: var(--mut); font-size: 13px;
            letter-spacing: .06em; text-transform: uppercase; }
.readouts b { color: var(--fg); text-transform: none; letter-spacing: .02em; }
.st-side .grid { font-size: 14px; }
.st-side .grid th, .st-side .grid td { padding: 4px 8px; }

/* ---- the status page: DX cluster ---- */
.dxc-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.dxc-bar h2 { margin: 0; flex: 1 1 auto; }
.dxc-bar .small { margin-top: 0; }
.dxc-colmenu { position: relative; }
.dxc-colmenu summary { list-style: none; cursor: pointer; display: inline-block; }
.dxc-colmenu summary::-webkit-details-marker { display: none; }
.dxc-cols { position: absolute; right: 0; top: 28px; z-index: 7; background: var(--deep); border: 1px solid var(--ln2);
            padding: 8px 12px; display: grid; grid-template-columns: repeat(2, max-content); gap: 3px 16px;
            box-shadow: 0 6px 18px rgba(0,0,0,.5); font-size: 14px; }
table.dxc { border-collapse: collapse; width: 100%; background: var(--well); font-variant-numeric: tabular-nums; }
.dxc th { text-align: left; color: #dcffdf; background: var(--deep); font-size: 12px; font-weight: 700;
          padding: 4px 6px 4px 8px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
          border-bottom: 1px solid #285230; }
.dxc th .fbtn { font: inherit; font-size: 10px; border: 0; background: transparent; color: var(--faint);
                margin-left: 3px; padding: 0 3px; cursor: pointer; vertical-align: 1px; }
.dxc th .fbtn:hover { color: var(--fg); }
.dxc th .fbtn.on { background: var(--warn); color: #1d1300; }
/* the cells' colours are wifilt's DX cluster's (ok1hra/wifilt data/dxc.html):
 * one light green for every cell, the rows striped, distance and dB toned
 * by dxc.js from dark to bright over the rows shown */
.dxc td { padding: 3px 8px; color: #b8f7c0; font-size: 16px; border-bottom: 1px solid #0d1d11; white-space: nowrap; }
.dxc tbody tr:nth-child(2n) td { background: #0a100b; }
/* wifilt's alignment: UTC and DX left, the numbers and the mode right; a gap
 * between kHz and DX (here the speaker sits in it) */
.dxc .c-khz, .dxc .c-km, .dxc .c-db, .dxc .c-speed, .dxc .c-mode { text-align: right; }
.dxc th.c-khz, .dxc th.c-km, .dxc th.c-db, .dxc th.c-speed, .dxc th.c-mode { text-align: right; }
.dxc .c-khz { padding-right: 8px; }
.dxc td.c-call { padding-left: 8px; }
.dxc td.c-km .arr { display: inline-block; margin-left: 4px; font-size: 1.3em; line-height: 1; color: #d8ffd8; transform-origin: 50% 50%; }
.dxc td.c-db .v { display: inline-block; min-width: 3ch; text-align: right; }
.dxc td.c-db .m { display: inline-block; min-width: 6ch; text-align: right; }
.dxc td.c-call { font-weight: 700; letter-spacing: .03em; }
.dxc td.c-db { font-weight: 700; }
/* Φ dB: what phasing gave the spot — better green, worse red, about none grey */
.dxc .c-phase { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dxc td.c-phase.up { color: var(--ok); font-weight: 700; }
.dxc td.c-phase.dn { color: var(--bad); font-weight: 700; }
.dxc td.c-phase.z { color: var(--mut); }
.dxc td.c-db .m { letter-spacing: -1px; margin-right: 6px; font-weight: 400; opacity: .9; }
.dxc tr.old td { opacity: .55; }
.dxc tbody tr { cursor: pointer; }
.dxc tbody tr:hover td { background: #142619; }
.dxc tbody tr.hi td { background: #164a30; }
/* Watch calls (Dan, 2026-12-02): the row in the map's gold */
.dxc tbody tr.watch td { box-shadow: inset 0 1px 0 #ffd23f55, inset 0 -1px 0 #ffd23f55; }
.dxc tbody tr.watch td.c-call { color: #ffd23f; font-weight: 700; }
/* a station heard not calling CQ (·DE): quieter */
.dxc tbody tr.nocq td.c-call { font-style: italic; opacity: .85; }
.dxc td.c-mode small.nocq { color: var(--mut); margin-left: 2px; }
.dxc-nocq { display: inline-flex; align-items: center; gap: 4px; color: var(--mut); }
.dxc-watch .dxc-nocq { gap: 4px; }
.dxc-watch .dxc-nocq input { width: auto; max-width: none; margin: 0; }
.dxc-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -2px 0 8px; }
.dxc-watch label { display: flex; align-items: center; gap: 8px; color: var(--mut); }
.dxc-watch input { width: 18em; max-width: 60vw; text-transform: uppercase; }
.dxc-watch .small { margin-top: 0; }
.dxc-watch .dxc-watch-only.on { border-color: #ffd23f; color: #ffd23f; }
/* the bell: silent (or nothing to watch) is grey, not a coloured crossed bell */
.dxc-watch .dxc-watch-snd:not(.on) { color: var(--mut); }
.dxc-watch .dxc-watch-snd:not(.on) .ico { filter: grayscale(1); opacity: .55; }
.dxc-watch .dxc-watch-snd:disabled { cursor: default; opacity: .6; }
.dxc-watch .dxc-watch-snd:disabled:hover { border-color: var(--ln2); }
.fmenu { position: absolute; z-index: 20; background: var(--deep); border: 1px solid var(--ln2); padding: 10px 12px;
         min-width: 220px; box-shadow: 0 8px 22px rgba(0,0,0,.6); display: grid; gap: 7px; font-size: 14px; }
.fmenu .fm-t { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--hot); }
.fmenu .fm-grid { display: grid; grid-template-columns: repeat(3, max-content); gap: 3px 14px; }
.fmenu .fm-range { display: flex; align-items: center; gap: 6px; }
.fmenu .fm-range input { width: 76px; }
.fmenu .fm-act { display: flex; gap: 6px; flex-wrap: wrap; }
.fmenu .fm-act button { font: inherit; font-size: 12px; letter-spacing: .06em; border: 1px solid var(--ln2); background: transparent;
                        color: var(--fg); padding: 2px 9px; cursor: pointer; }
.fmenu .fm-act button.on { background: var(--hot); color: var(--hot-ink); border-color: var(--hot); }
/* the eyes' small menu on the status page: OFF/ON · ONLY · ALL */
.fmenu.eyemenu { min-width: 0; padding: 6px 8px; gap: 5px; }
.fmenu.eyemenu .fm-t { text-transform: none; }      /* 20m, not 20M */
.fmenu.eyemenu .fm-act { flex-wrap: nowrap; gap: 4px; }
.fmenu.eyemenu .fm-act button { padding: 2px 8px; }
.fmenu.eyemenu .fm-act button:hover, .fmenu.eyemenu .fm-act button:focus-visible { border-color: var(--fg); }

/* ---- settings ---- */
/* Settings → System → CPU: what the CPU runs at now, the one-time command */
.cpu-state { font-size: 13px; color: var(--mut); margin: 4px 0 6px; }
.cpu-state b { color: var(--fg); font-weight: 400; }
.cpu-state code { display: block; margin: 4px 0; padding: 6px 8px; background: var(--deep); border: 1px solid var(--ln2);
  font: 12px var(--mono), monospace; white-space: pre-wrap; word-break: break-all; color: var(--fg); user-select: all; }
.cpu-state button { font: inherit; font-size: 12px; padding: 1px 8px; border: 1px solid var(--ln2); background: none; color: var(--fg); cursor: pointer; }
/* Settings → Spots out: where each mode goes (one column per destination) */
.routes-fs { grid-column: 1 / -1; }
.routes-wrap { overflow-x: auto; }
.routes { border-collapse: collapse; font-size: 13px; }
.routes th, .routes td { padding: 4px 10px; text-align: center; border-bottom: 1px solid var(--ln); }
.routes th { font-weight: 400; color: var(--mut); vertical-align: bottom; }
.routes th button { font: inherit; color: var(--fg); background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: .04em; }
.routes th button:hover { color: var(--hot); }
.routes th small { display: block; font-size: 11px; color: var(--faint); max-width: 13em; margin: 2px auto 0; line-height: 1.25; }
.routes th small.warn { color: var(--warn); }
.routes td.m { text-align: left; white-space: nowrap; letter-spacing: .08em; }
.routes td.m i { display: inline-block; width: 14px; height: 8px; margin-right: 6px; vertical-align: 1px; }
.routes td.no { color: var(--faint); }
.routes td.off input { opacity: .45; }
.routes input { margin: 0; cursor: pointer; }
#tab-settings, #tab-stats, #tab-log, .pad { padding: 14px 18px; }
fieldset { border: 1px solid var(--ln); background: var(--panel); margin: 0 0 12px; padding: 8px 14px 12px; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--hot); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 12px; }
.set-grid fieldset { margin-bottom: 12px; }
/* Settings in tabs: related settings a page each (app.js showPane); the
 * buttons under them serve every tab and stay in sight */
.set-tabs { display: flex; flex-wrap: wrap; gap: 0 2px; border-bottom: 1px solid var(--ln); margin: 0 0 12px; }
.set-tabs button { font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut);
  background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 7px 12px 6px; cursor: pointer;
  position: relative; }
.set-tabs button:hover { color: var(--fg); }
.set-tabs button.on { color: var(--fg); border-bottom-color: var(--hot); }
.set-tabs button.chg::after, .set-tabs button.err::after { content: ''; position: absolute; top: 5px; right: 3px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.set-tabs button.err::after { background: var(--bad); }
.set-pane .set-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 420px)); gap: 0 18px; }
/* a note under a field or a tile: its first sentence in sight, the rest under "(i) more" (app.js noteFold);
   the i in its circle is drawn here — a symbol font may not be there */
#settings a.note-more::before { content: 'i'; display: inline-block; width: 1.2em; height: 1.2em; line-height: 1.15em; margin-right: .35em;
  text-align: center; font-size: .82em; font-weight: 700; font-style: normal; letter-spacing: 0; border: 1px solid currentColor; border-radius: 50%; }
#settings a.note-more { margin-left: 3px; color: var(--mut); text-decoration: none; white-space: nowrap; letter-spacing: .04em; }
#settings a.note-more:hover, #settings a.note-more:focus-visible { color: var(--hot); }
#settings a.note-more[aria-expanded=true] { margin-right: 3px; }
/* a link from one part of the settings to another (the matrix, the routes) */
#settings a.set-link { white-space: nowrap; }
/* a tab with two groups of tiles: each group's heading */
.set-h { margin: 6px 0 8px; font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
/* Decoders → FT8 / JS8 / WSPR: where each decodes now, for everyone; under it how it runs */
.dig-now { margin: 2px 0 6px; font-size: 13px; line-height: 1.4; color: var(--fg); }
.dig-now .dig-run { display: block; margin-top: 2px; font-size: 12px; color: var(--mut); }
/* Bands & modes: how two antennas combine, under the table while a band is on both */
#settings label.phase-mode { max-width: 660px; margin: 10px 0 4px; padding: 8px 10px; border: 1px solid var(--ln); background: var(--deep); }
#settings label.phase-mode select { max-width: 100%; }
/* off its recommended setting (app.js recShow): the box and the choice in the warning colour */
#settings label.phase-mode.off-rec { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
#settings label.phase-mode.off-rec select { border-color: var(--warn); color: var(--warn); }
#settings .rec-note { display: block; margin: 5px 0 2px; color: var(--warn); font-size: 12px; }
#settings .rec-note button { margin-left: 6px; }
/* a setting that costs CPU as it stands (index.html data-cost, app.js
   costShow — Dan, 2026-12-05): an amber edge, and "CPU" with what it costs */
#settings label.costly { box-shadow: inset 3px 0 0 var(--warn); }
#settings label.costly:not(.phase-mode) { padding-left: 9px; }
#settings label.costly select { border-color: var(--warn); }
#settings label.check.costly { flex-wrap: wrap; }
#settings label.check.costly > .cost-note { flex-basis: 100%; margin-left: 24px; }
.cost-note { display: block; margin: 4px 0 2px; color: var(--warn); font-size: 12px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.cost-note[hidden] { display: none; }
.cost-note b { display: inline-block; margin-right: 6px; padding: 0 5px; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: #1d1708; background: var(--warn); border-radius: 3px; vertical-align: 1px; }
.mx-t.mx-eng.cost { color: var(--warn); border-bottom-color: var(--warn); }
#settings .actions { position: sticky; bottom: 0; z-index: 2; background: var(--bg); margin: 0; padding: 10px 0 12px;
  border-top: 1px solid var(--ln); }
#settings label { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; font-size: 12px; color: var(--mut);
                  letter-spacing: .06em; }
#settings label.check { flex-direction: row; align-items: center; gap: 7px; color: var(--fg); font-size: 14px; letter-spacing: 0; }
#settings label.check > input[type=checkbox] { flex: none; }
/* a tile switched off: its fields dimmed, kept (Dan, 2026-12-04) */
#settings fieldset.tile-off > :not(legend):not(.tile-sw) { opacity: .45; }
#settings small { font-size: 12px; color: var(--faint); letter-spacing: 0; }
input, select { font: inherit; color: var(--fg); background: var(--deep); border: 1px solid var(--ln);
                padding: 4px 7px; min-width: 0; }
input:focus, select:focus { outline: 1px solid var(--hot); border-color: var(--hot); }
input[type=checkbox] { accent-color: var(--hot); }
input:disabled, select:disabled { opacity: .55; }
input.bad { border-color: var(--bad); }
.bands-edit input[type=text], .bands-edit input:not([type]) { width: 7em; }
.bands-edit td { padding: 3px 6px; }
.bands-edit td.segname { font-weight: 700; padding-left: 10px; text-align: left; }
.bands-edit td.span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bands-edit tr.off td { background: var(--deep); }
.bands-edit tr.off input:not([data-k=on]), .bands-edit tr.off select { opacity: .5; }
button.small, .bands-edit button { font: inherit; font-size: 13px; letter-spacing: .04em; border: 1px solid var(--ln2);
                                   background: var(--deep); color: var(--fg); padding: 2px 9px; cursor: pointer; margin-top: 6px; }
button.small:hover, .bands-edit button:hover { border-color: var(--hot); }
.bands-edit button { margin: 0 1px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.actions button { font: inherit; letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
                  border: 1px solid var(--ln2); background: var(--deep); color: var(--fg); padding: 7px 14px; cursor: pointer; }
.actions .sep { width: 1px; align-self: stretch; background: var(--ln); margin: 0 4px; }
.actions button.primary { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); font-weight: 700; }
button:disabled { opacity: .45; cursor: default; }
/* the sign-in for visitors from outside the LAN: over everything */
#signin { position: fixed; inset: 0; z-index: 20; background: rgba(5,9,14,.92); display: flex;
          align-items: center; justify-content: center; padding: 16px; }
/* behind the sign-in, the page's picture over the whole window */
#signin.pic { background: linear-gradient(rgba(5,9,14,.55), rgba(5,9,14,.75)), var(--pic) center / cover no-repeat, #05090e; }
#signin.pic.diagram { background: linear-gradient(rgba(5,9,14,.35), rgba(5,9,14,.55)), var(--pic) center / contain no-repeat, #0b1420; }
#signin .signin-own { margin: 0 0 14px; }
/* the receiver offline (status.json "offline", or no answer): the page's
   picture behind a card with the logo, the reason and an apology */
#offline { position: fixed; inset: 0; z-index: 19; background: rgba(5,9,14,.92); display: flex;
           align-items: center; justify-content: center; padding: 16px; }
#offline[hidden] { display: none; }
#offline.pic { background: linear-gradient(rgba(5,9,14,.55), rgba(5,9,14,.75)), var(--pic) center / cover no-repeat, #05090e; }
#offline.pic.diagram { background: linear-gradient(rgba(5,9,14,.35), rgba(5,9,14,.55)), var(--pic) center / contain no-repeat, #0b1420; }
#offline .offline-card { background: var(--panel); border: 1px solid var(--ln2); padding: 22px 24px; width: 100%;
                         max-width: 460px; }
#offline .signin-logo { display: block; height: 40px; width: auto; max-width: 100%; margin: 0 auto 16px; }
#offline h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: .04em; color: var(--bad); }
#offline p { margin: 0 0 10px; line-height: 1.4; }
#offline .small { font-size: 12px; margin: 12px 0 0; }
#offline button { font: inherit; font-size: 12px; letter-spacing: .06em; margin-top: 14px; padding: 4px 12px;
                  color: var(--mut); background: none; border: 1px solid var(--ln2); cursor: pointer; }
#offline button:hover { color: var(--hot); border-color: var(--hot); }
.own-link a { color: var(--cq); }
/* a window refused ([access]): the offline card's look, over everything */
#access { position: fixed; inset: 0; z-index: 21; background: rgba(5,9,14,.94); display: flex;
          align-items: center; justify-content: center; padding: 16px; }
#access[hidden] { display: none; }
#access .offline-card { background: var(--panel); border: 1px solid var(--ln2); padding: 22px 24px; width: 100%; max-width: 480px; }
#access .signin-logo { display: block; height: 40px; width: auto; max-width: 100%; margin: 0 auto 16px; }
#access h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: .04em; color: var(--hot); }
#access p { margin: 0 0 10px; line-height: 1.4; }
#access .small { font-size: 12px; }
#access button { font: inherit; font-weight: 700; margin-top: 8px; padding: 6px 18px; background: var(--hot);
                 color: var(--hot-ink); border: 1px solid var(--hot); cursor: pointer; }
/* the page's top, unfolded: the picture, its words, at most 2/3 of the window.
   An uploaded photo is never cropped (Dan, 2026-12-02): as tall as its own
   aspect allows (--ar, from the image), the rest of the width a blurred copy */
.banner { position: relative; height: min(66vh, 58vw); border-bottom: 1px solid var(--ln);
  background: var(--pic) center / contain no-repeat, #05090e; }
.banner.photo { height: min(66vh, calc(100vw / var(--ar, 1.7778))); background: #05090e; }
.banner.diagram { background: var(--pic) center / contain no-repeat, #0b1420; }
.banner[hidden] { display: none; }
.banner.rolling { overflow: hidden; transition: height 1.6s cubic-bezier(.45, 0, .25, 1), opacity 1.6s ease-in; opacity: .35; }
.banner-fill { display: none; }
.banner.photo .banner-fill { display: block; position: absolute; inset: 0; overflow: hidden; }
.banner-fill::before { content: ''; position: absolute; inset: -40px; background: var(--pic) center / cover no-repeat;
  filter: blur(28px) brightness(.45) saturate(1.1); }
.banner.photo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--pic) center / contain no-repeat; }
.banner-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 40px 22px 26px; white-space: pre-line;
  font-size: clamp(15px, 2vw, 24px); line-height: 1.3; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9);
  background: linear-gradient(transparent, rgba(5,9,14,.85)); }
.banner-text:empty { display: none; }
/* the first line a title, the rest smaller */
.bw-title, .bw-rest { display: block; }
.bw-rest { font-size: .72em; line-height: 1.35; margin-top: .35em; opacity: .92; }
/* fold: a round tab in the middle of the picture's lower edge, an arrow only */
.banner-close { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 3;
  width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--fg); background: rgba(13,21,32,.92); border: 1px solid var(--ln2);
  box-shadow: 0 2px 10px rgba(0,0,0,.55); transition: color .15s, border-color .15s, transform .15s; }
.banner-close:hover, .banner-close:focus-visible { color: var(--hot); border-color: var(--hot); outline: none;
  transform: translate(-50%, 50%) translateY(-2px); }
.banner-open { font: inherit; color: var(--mut); background: none; border: 1px solid var(--ln2); border-radius: 50%;
  width: 24px; height: 24px; padding: 0; display: inline-grid; place-items: center; cursor: pointer; align-self: center; }
.banner-open:hover, .banner-open:focus-visible { color: var(--hot); border-color: var(--hot); outline: none; }
.banner-open[hidden] { display: none; }
.banner-open svg { transition: transform .2s; }
.banner-open.up svg { transform: rotate(180deg); }
.bn-set { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 6px; }
.bn-prev { width: 160px; height: 90px; flex: none; border: 1px solid var(--ln2); background: var(--pic) center / cover no-repeat, #0b1420; }
.bn-prev.diagram { background: var(--pic) center / contain no-repeat, #0b1420; }
#signin form { background: var(--panel); border: 1px solid var(--ln2); padding: 22px 24px; width: 100%;
               max-width: 420px; }
#signin .signin-logo { display: block; height: 40px; width: auto; max-width: 100%; margin: 0 auto 16px; }
#signin h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: .04em; }
#signin .signin-row { display: flex; gap: 8px; margin: 14px 0 6px; }
#signin input { flex: 1; min-width: 0; font: inherit; font-size: 20px; letter-spacing: .08em; padding: 6px 10px;
                background: var(--deep); color: var(--fg); border: 1px solid var(--ln2); text-transform: uppercase; }
#signin input::placeholder { text-transform: none; color: var(--faint); }
#signin button { font: inherit; font-weight: 700; padding: 6px 18px; background: var(--hot); color: var(--hot-ink);
                 border: 1px solid var(--hot); cursor: pointer; }
#signin .bad { color: var(--bad); margin: 6px 0 0; }
#signin .small { font-size: 12px; margin: 12px 0 0; }
.feed-address { font-size: 13px; letter-spacing: .04em; margin-left: 6px; white-space: nowrap;
  color: var(--accent); text-decoration: none; }
.feed-address:hover { text-decoration: underline; }
.feed-address .mut { font-size: 12px; }
.visitor { color: var(--mut); font-size: 13px; letter-spacing: .04em; margin-left: 6px; white-space: nowrap; }
.visitor b { color: var(--accent); }
.visitor button { font: inherit; font-size: 12px; background: none; border: 0; color: var(--cq); cursor: pointer;
                  padding: 0 0 0 4px; text-decoration: underline; }
#overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center;
           justify-content: center; z-index: 10; }
#overlay > div { background: var(--panel); border: 1px solid var(--ln2); padding: 18px 22px; max-width: 90vw; }
#overlay p { margin: 6px 0 0; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } .strip { display: none; } }
@media (max-width: 600px) {
  .tile.hero { grid-column: 1 / -1; }
  .tile .v { font-size: 18px; }
}
td.bad, .bad { color: var(--bad); } .ok { color: var(--ok); }
.warn, #settings small.warn { color: var(--warn); }
.dcw { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--ln); display: grid; gap: 4px; }
.dcw .k { font-size: 12px; color: var(--mut); }
.dcw progress { width: 100%; max-width: 280px; accent-color: var(--hot); }
#legend-temp { margin-top: 12px; }
#settings.locked input:read-only:not([type=checkbox]) { opacity: .7; }
#settings.locked select { opacity: .8; }
.filter-row { display: flex; align-items: center; gap: 14px; }
.filter-row .small { margin-top: 0; }
#settings small.note-s { display: block; margin: 6px 0 0; }
.fmenu .fm-note { font-size: 12px; color: var(--mut); max-width: 300px; }
.arch { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ln); font-size: 13px; word-break: break-all; }
#settings code { font-family: var(--mono); color: var(--fg); }
.filter-row.mycall { margin-top: 10px; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.filter-row.mycall input:not([type=checkbox]) { width: 2.6em; text-align: center; }

/* ---- waterfall ---- */
#tab-waterfall { padding: 8px 18px 0; position: relative; }
.wf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 6px 0 8px; font-size: 12px;
          letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.wf-bar label { display: inline-flex; align-items: center; gap: 6px; }
.wf-bar select { font-size: 13px; text-transform: none; letter-spacing: 0; padding: 2px 5px; }
/* quiet sliders: a hairline track, a small grey knob */
.wf-bar input[type=range] { width: 90px; padding: 0; border: 0; background: none; height: 14px;
                            -webkit-appearance: none; appearance: none; cursor: pointer; }
.wf-bar input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--ln2); }
.wf-bar input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px;
                                                  border-radius: 50%; background: var(--mut); border: 0; }
.wf-bar input[type=range]::-moz-range-track { height: 2px; background: var(--ln2); }
.wf-bar input[type=range]::-moz-range-progress { height: 2px; background: var(--faint); }
.wf-bar input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--mut); border: 0; }
.wf-bar input[type=range]:hover::-moz-range-thumb { background: var(--fg); }
.wf-bar input[type=range]:hover::-webkit-slider-thumb { background: var(--fg); }
.wf-bar .wf-net { margin-left: auto; text-transform: none; font-variant-numeric: tabular-nums; }
.wf-spec { display: block; width: 100%; height: 110px; border: 1px solid var(--ln); border-bottom: 0; }
.wf-scale { display: block; width: 100%; height: 22px; border: 1px solid var(--ln); border-bottom: 0; cursor: ew-resize; }
.wf-box { border: 1px solid var(--ln); background: #00000c; }
.wf-box canvas { display: block; width: 100%; cursor: crosshair; touch-action: none; image-rendering: auto; }
b.temp.cool { color: var(--ok); } b.temp.warm { color: var(--warn); } b.temp.hot { color: var(--bad); }
#dxc.side { margin-top: 18px; }
#dxc.side .dxc td { font-size: 15px; }
.wf-auto { font: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 0; border-bottom: 2px solid transparent;
           background: transparent; color: var(--faint); padding: 1px 3px; cursor: pointer; }
.wf-auto:hover { color: var(--fg); }
.wf-auto.on { color: var(--hot); border-bottom-color: var(--hot); }
.wf-box { position: relative; }
.wf-pass { position: absolute; top: 0; bottom: 0; pointer-events: none; background: rgba(160,170,185,.06);
           border-left: 1px solid rgba(160,170,185,.35); border-right: 1px solid rgba(160,170,185,.35); }
.wf-pass.on { background: rgba(255,196,64,.08); border-color: rgba(255,196,64,.55); }
.wf-listen { display: inline-flex; align-items: center; gap: 6px; }
/* the S-meter (waterfall.js smDraw): an ICOM's, beside the passband */
.wf-smeter { width: 232px; height: 34px; border: 1px solid var(--ln2); border-radius: 2px; background: #05080c; }
/* the speaker: grey and crossed out while muted; the same speaker green, not
   crossed, while listening */
.wf-spk { line-height: 0; border: 1px solid var(--ln2); background: var(--deep); padding: 3px 5px; cursor: pointer;
          color: var(--mut); }
.wf-spk:hover { color: var(--fg); }
.wf-spk.on { color: var(--ok); border-color: var(--ok); }
.wf-spk.on path + path { display: none; }
/* recording what is heard (waterfall.js rec*): a red dot, the time while it runs */
.wf-rec { font: inherit; font-size: 12px; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 5px;
          border: 1px solid var(--ln2); background: var(--deep); color: var(--mut); padding: 3px 8px; cursor: pointer; }
.wf-rec .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.wf-rec:hover:not(:disabled) { color: var(--fg); }
.wf-rec.on { color: #fff; background: #b3261e; border-color: #e0463d; }
.wf-rec.on .dot { animation: wfrec 1s steps(2, start) infinite; }
@keyframes wfrec { to { visibility: hidden; } }
/* the frequency heard: big, and a field to type one in */
.wf-freq { width: 7.2em; font: 700 20px RC, sans-serif; letter-spacing: .02em; text-transform: none; text-align: right;
           font-variant-numeric: tabular-nums; padding: 1px 6px; color: var(--mut); background: var(--deep);
           border: 1px solid var(--ln2); }
.wf-freq.on { color: var(--ok); }
.wf-freq:focus { color: var(--fg); border-color: var(--fg); outline: 0; }
.wf-freq.bad { border-color: var(--bad); color: var(--bad); }
.wf-unit { text-transform: none; margin-left: -2px; }
.wf-spec { cursor: ns-resize; }
/* the DX cluster's listen button: the waterfall, tuned to the spot */
.dxc td.c-play { padding: 0 0 0 4px; width: 1px; }
.dxc .dxc-play { line-height: 0; border: 0; background: transparent; padding: 3px 4px; cursor: pointer; color: #4f8f69; }
.dxc .dxc-play:hover { color: var(--ok); }
/* a field the save refused: red, with what is wrong under it */
#settings small.ferr { color: var(--bad); font-weight: 700; letter-spacing: 0; }
.bands-edit input.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--deep)); }
#settings input.bad, #settings select.bad { background: color-mix(in srgb, var(--bad) 12%, var(--deep)); }
/* a chart's title with its switch at the right */
.chart-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-h .seg button { font-size: 12px; padding: 1px 8px; }
.chart-tools { display: flex; gap: 10px; }
.band-from { margin: 6px 0 4px; color: var(--hot); font-size: 13px; }
.band-from:empty { display: none; }
/* the totals table: a bar beside each value, in its mode's colour */
.grid td .ml.tb { display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.grid td .ml.tb .trk { flex: 1 1 60px; min-width: 40px; max-width: 120px; height: 7px; background: var(--grid); }
.grid td .ml.tb .trk i { display: block; height: 100%; background: currentColor; opacity: .7; }
.grid td .ml.tb .tv { min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; flex: none; }

/* ---- the RTTY palette over the waterfall (rtty-palette.js) ----
   WIFILT's QRPlog palette (data/log.css .rtty-panel) in this page's colours.
   Its tokens live on the palette: rtty-rxlog.js reads --muted and --panel2
   from it for the weak-signal colour of each character. */
.rtty-pal {
  --panel2: #0a111a; --line: #2c3f57; --text: #d7e2ee; --muted: #7d8fa6; --cyan: #39d98a;
  --red: #ff6b6b; --amber: #f2b33d;
  position: fixed; z-index: 20; display: flex; flex-direction: column; overflow: hidden; resize: both;
  min-width: 360px; min-height: 260px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.55); color: var(--text); user-select: none;
}
.rtty-pal[hidden] { display: none !important; }
.rp-head { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 8px; border-bottom: 1px solid var(--line);
           cursor: move; font-size: 11px; letter-spacing: .08em; color: var(--muted); flex: none; background: var(--deep); }
.rp-title { color: var(--fg); font-weight: 700; }
.rp-zoom { display: inline-flex; gap: 3px; }
.rp-zoom button, .rp-pill { font: 700 10px/1.5 RC, sans-serif; letter-spacing: .04em; border: 1px solid var(--line);
  border-radius: 999px; padding: 0 6px; background: var(--panel2); color: var(--muted); cursor: pointer; flex: none; }
.rp-zoom button:hover, .rp-pill:hover { color: var(--fg); }
.rp-zoom button.on, .rp-pill.on { border-color: var(--hot); color: var(--hot); background: #0f2a1d; }
.rp-state { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
            letter-spacing: .02em; font-size: 12px; font-variant-numeric: tabular-nums; }
.rp-state.bad, .rp-state.warn { color: var(--warn); }
/* a palette's head: the state takes the room, ⚙ and × at the right edge —
 * Settings → Red Pitaya's own .rp-state (below) must not reach in here */
.rp-head .rp-state, .fp-head .fp-state { margin: 0 0 0 auto; min-height: 0; flex: 1 1 auto; text-align: right; }
.rp-close { background: none; border: 0; color: var(--muted); font: 16px/1 RC, sans-serif; padding: 0 3px; cursor: pointer; }
.rp-close:hover { color: var(--bad); }
.rp-scope { position: relative; flex: none; cursor: crosshair; }
.rp-live { position: relative; height: 81px; margin-bottom: 2px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.rp-live canvas, .rp-wf canvas { display: block; width: 100%; height: 100%; }
.rp-wf { position: relative; height: 64px; overflow: hidden; background: #01030d; }
.rp-overlay { display: block; position: absolute; inset: 0; pointer-events: none; }
.rp-rx { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 6px; background: var(--panel2);
         font: 13px/1.5 ui-monospace, 'DejaVu Sans Mono', monospace; color: var(--text); user-select: text; }
/* the two-column tape rtty-rxlog.js lays out (WIFILT's DOM contract) */
.rp-rx .rtty-tape-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px;
  padding: 4px 0 2px; margin-bottom: 3px; background: var(--panel2); border-bottom: 1px solid var(--line);
  font: 700 10px/1.2 RC, sans-serif; letter-spacing: .08em; color: var(--muted); }
.rp-rx .rtty-tape-head span { cursor: help; }
.rp-rx .rtty-tape-empty { color: var(--muted); padding-top: 6px; }
.rp-rx .rtty-tape-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px;
  background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat; }
.rp-rx .rtty-tape-cell { min-width: 0; white-space: pre-wrap; word-break: break-all; }
.rp-rx.rtty-tape-single .rtty-tape-head { display: none; }
.rp-rx.rtty-tape-single .rtty-tape-row { grid-template-columns: 1fr; background: none; }
.rp-rx.rtty-tape-single .rtty-tape-s2 { display: none; }
.rp-rx .rtty-tape-gap { border-top: 1px dashed var(--line); margin-top: 3px; padding-top: 3px; }
.rp-rx .rtty-tape-probe { visibility: hidden; height: 0; overflow: hidden; }
.rp-rx .rtty-tape-body:not(:empty) { padding-bottom: calc(1.5em + 7px); }
.rp-rx.rtty-tape-aiming { box-shadow: inset 0 0 0 1px var(--amber); }
.rp-rx .rtty-diff { background: rgba(240,180,40,.17); border-radius: 2px; }
.rp-rx .rtty-tok:hover, .rp-rx .rtty-tok.hover { text-decoration: underline; }
.rp-rx .rtty-rx-char { color: var(--rtty-rx-char-color, inherit); }
/* the CW palette (cw-palette.js): the RTTY palette's frame, a strip of the
   audio around the tone, the text DeepCW reads */
.cw-pal .cp-sub { color: var(--cw); font-size: 10px; letter-spacing: .06em; }
.cw-strip { position: relative; flex: none; height: 56px; background: #01030d; border-bottom: 1px solid var(--line); cursor: crosshair; }
.cw-strip canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.cw-strip .cw-ov { pointer-events: none; image-rendering: auto; }
.cw-rx { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px; background: var(--panel2); white-space: pre-wrap;
         word-break: break-all; font: 15px/1.45 var(--mono); color: var(--text); user-select: text; }
.cw-rx .mid { color: #a9b8c9; }
.cw-rx .lo { color: var(--muted); }
.cw-rx .cw-tail { color: var(--muted); opacity: .7; }
/* RTTY: a button of its own, in the RTTY colour; open = filled */
/* listening from another tab: a palette over it (waterfall.js awayUi) — the
 * spot heard in its head (dragged by it), the live cut-out, what the open
 * decoder reads, back to the waterfall and mute; pulled wider at its corner */
#wf-away { position: fixed; z-index: 20; display: flex; flex-direction: column; gap: 0; width: 330px; min-width: 260px;
           max-width: calc(100vw - 8px); resize: horizontal; overflow: hidden; background: var(--panel);
           border: 1px solid #ffc440; border-radius: 2px; box-shadow: 0 6px 22px rgba(0,0,0,.55); }
#wf-away .wa-head { flex: none; padding: 4px 8px; cursor: move; user-select: none; touch-action: none; background: var(--deep);
                    border-bottom: 1px solid rgba(255,196,64,.45); font-size: 13px; line-height: 1.35; }
#wf-away .wa-spot { display: flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; }
#wf-away .wa-call { color: var(--fg); font-weight: 700; letter-spacing: .03em; font-size: 14px; flex: none; }
#wf-away .wa-info { color: #c9d6e4; min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
#wf-away .wa-age { color: var(--faint); font-size: 11px; flex: none; }
#wf-away .wa-none { color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
/* under the cut-out: the decoder named, its last lines */
#wf-away .wa-dec { flex: none; background: #0a111a; border-top: 1px solid #2c3f57; }
#wf-away .wa-dec[hidden] { display: none; }
#wf-away .wa-dec-t { height: calc(4 * 1.4em + 6px); overflow: hidden; padding: 2px 8px 4px; color: #d7e2ee;
                     font: 13px/1.4 ui-monospace, 'DejaVu Sans Mono', monospace; font-variant-numeric: tabular-nums;
                     white-space: pre-wrap; word-break: break-word; user-select: text; }
#wf-away .wa-dec-n { padding: 3px 8px 0; font: 700 9px/1.2 RC, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
#wf-away .wa-dec-t .soft { color: #7d8fa6; opacity: .75; }
#wf-away .wf-away-btns { display: flex; gap: 1px; flex: none; }
#wf-away .wf-away-btns .wf-away-go { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the live cut-out, ±1 kHz, the passband's edges as two lines */
#wf-away .wf-away-mini { position: relative; flex: none; height: 80px; background: #00000c; overflow: hidden; }
#wf-away .wf-away-mini canvas { display: block; width: 100%; height: 80px; image-rendering: pixelated; }
#wf-away .wf-away-mini .pb { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid rgba(255,196,64,.9); }
#wf-away .wf-away-mini .mid { position: absolute; top: 0; left: 50%; width: 0; height: 6px; border-left: 1px solid #ffc440; }
#wf-away .wf-away-mini span { position: absolute; bottom: 2px; font-size: 10px; color: rgba(215,226,238,.75);
                              text-shadow: 0 0 3px #000; pointer-events: none; }
#wf-away .wf-away-mini .lo { left: 4px; }
#wf-away .wf-away-mini .hi { right: 4px; }
#wf-away[hidden] { display: none; }
#wf-away button { font: inherit; font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border: 0; cursor: pointer; }
#wf-away .wf-away-go { color: var(--hot-ink); background: #ffc440; }
#wf-away .wf-away-mute { color: #ffc440; background: var(--panel); border-top: 1px solid #ffc440; }
#wf-away button:hover { filter: brightness(1.15); }
.wf-bar .wf-rtty { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--rtty);
                   border: 1px solid var(--rtty); border-radius: 2px; padding: 3px 9px; background: rgba(255,184,138,.08); }
.wf-bar .wf-rtty:hover { color: var(--fg); background: rgba(255,184,138,.2); }
.wf-bar .wf-rtty.on { color: var(--hot-ink); background: var(--rtty); border-color: var(--rtty); }
.wf-bar .wf-cwp { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--cw);
                  border: 1px solid var(--cw); border-radius: 2px; padding: 3px 9px; background: rgba(143,185,255,.08); }
.wf-bar .wf-cwp:hover { color: var(--fg); background: rgba(143,185,255,.2); }
.wf-bar .wf-cwp.on { color: var(--hot-ink); background: var(--cw); border-color: var(--cw); }
/* WSPR's passbands over the waterfall (waterfall.js placeWspr) */
.wf-wspr > div { position: absolute; top: 0; bottom: 0; pointer-events: none; background: rgba(120,10,10,.22);
                 border-left: 1px solid rgba(160,20,20,.7); border-right: 1px solid rgba(160,20,20,.7); }
/* the tip at the mouse: the calls near the cursor, the frequency there */
.wf-tip { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 1px;
          padding: 4px 7px; background: rgba(5,9,14,.88); border: 1px solid var(--ln2); border-radius: 2px;
          font-size: 13px; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wf-tip b { color: var(--fg); letter-spacing: .02em; }
.wf-tip b.rtty { color: var(--rtty); }
.wf-tip b.wspr { color: #e05a5a; }
.wf-tip b.ft8 { color: var(--ft8); }
.wf-tip b.js8 { color: var(--js8); }
/* FT8/FT4's windows over the waterfall, violet (waterfall.js placeWspr) */
.wf-wspr > div.ft8 { background: rgba(90,40,150,.08); border-left-color: rgba(140,90,220,.7); border-right-color: rgba(140,90,220,.7); }
/* JS8's windows over the waterfall, gold (waterfall.js placeWspr) */
.wf-wspr > div.js8 { background: rgba(160,130,20,.08); border-left-color: rgba(227,194,42,.7); border-right-color: rgba(227,194,42,.7); }
/* FT8: a button of its own, in the FT8 colour; open = filled */
.wf-bar .wf-ft8 { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ft8);
                  border: 1px solid var(--ft8); border-radius: 2px; padding: 3px 9px; background: rgba(197,155,255,.08); }
.wf-bar .wf-ft8:hover { color: var(--fg); background: rgba(197,155,255,.2); }
.wf-bar .wf-ft8.on { color: var(--hot-ink); background: var(--ft8); border-color: var(--ft8); }
.wf-bar .wf-ft8[hidden] { display: none; }
/* JS8: its button in the JS8 colour; open = filled */
.wf-bar .wf-js8 { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--js8);
                  border: 1px solid var(--js8); border-radius: 2px; padding: 3px 9px; background: rgba(242,212,107,.08); }
.wf-bar .wf-js8:hover { color: var(--fg); background: rgba(242,212,107,.2); }
.wf-bar .wf-js8.on { color: var(--hot-ink); background: var(--js8); border-color: var(--js8); }
.wf-bar .wf-js8[hidden] { display: none; }
/* WSPR: its button in the WSPR colour; open = filled */
.wf-bar .wf-wsprp { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--wspr);
                  border: 1px solid var(--wspr); border-radius: 2px; padding: 3px 9px; background: rgba(224,90,90,.08); }
.wf-bar .wf-wsprp:hover { color: var(--fg); background: rgba(224,90,90,.2); }
.wf-bar .wf-wsprp.on { color: var(--hot-ink); background: var(--wspr); border-color: var(--wspr); }
.wf-bar .wf-wsprp[hidden] { display: none; }
/* JTTY: its button in the JTTY colour; open = filled */
.wf-bar .wf-jtty { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--jtty);
                  border: 1px solid var(--jtty); border-radius: 2px; padding: 3px 9px; background: rgba(127,224,208,.08); }
.wf-bar .wf-jtty:hover { color: var(--fg); background: rgba(127,224,208,.2); }
.wf-bar .wf-jtty.on { color: var(--hot-ink); background: var(--jtty); border-color: var(--jtty); }
.wf-bar .wf-jtty[hidden] { display: none; }
.wf-wspr > div.jtty { background: rgba(20,140,120,.08); border-left-color: rgba(63,201,180,.7); border-right-color: rgba(63,201,180,.7); }
.wf-tip b.jtty { color: var(--jtty); }
/* the JTTY palette (jtty-palette.js): the FT8 one's frame, WIFILT's receive
 * log inside (jtty-rxlog.js: .jtty-line, its columns, growing/expired) */
.jtty-pal .fp-title { color: var(--jtty); }
.jtty-pal .jt-cols { grid-template-columns: 4.6em 2.6em 3.4em 1fr; }
.jtty-pal .fp-cols.jt-cols span:nth-child(-n+3) { text-align: right; }
.jtty-pal .fp-cols.jt-cols span:nth-child(4) { text-align: left; }
.jtty-rx .jtty-line { display: grid; grid-template-columns: 4.6em 2.6em 3.4em 1fr; column-gap: 6px; font: 12px/1.45 RC, sans-serif; }
.jtty-rx .jtty-col { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.jtty-rx .jtty-text { white-space: normal; word-break: break-word; }
.jtty-rx .jtty-line.jtty-cq { background: rgba(57,217,138,.10); }
.jtty-rx .jtty-line.jtty-cq .jtty-text { color: #9ff0c4; }
.jtty-rx .jtty-line.jtty-growing .jtty-text { color: var(--jtty); }
.jtty-rx .jtty-line.jtty-expired { opacity: .65; }
.jtty-rx .jtty-tok { cursor: pointer; }
.jtty-rx .jtty-tok:hover { text-decoration: underline; }
.jtty-rx .jtty-tok.hl { color: var(--jtty); font-weight: 700; }
.jtty-rx .jtty-rx-empty { color: var(--muted); font: 12px RC, sans-serif; padding-top: 6px; }
.wf-bar .wf-phase-ctl { display: inline-flex; }
.wf-bar .wf-phase-ctl[hidden] { display: none; }
.wf-bar .wf-phase-ant { font-size: 12px; color: #ffd24a; text-transform: none; letter-spacing: .02em; white-space: nowrap; max-width: 22em; overflow: hidden; text-overflow: ellipsis; }
.wf-bar .wf-phase { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #ffd24a;
  border-color: rgba(255,210,74,.5); min-width: 52px; }
.wf-bar .wf-phase:hover:not(:disabled) { color: var(--fg); background: rgba(255,210,74,.2); }
.wf-bar .wf-phase.on { color: var(--hot-ink); background: #ffd24a; border-color: #ffd24a; }
/* Φ as a number: what combining gives over the better antenna, measured */
.wf-bar .wf-phase { text-transform: none; font-variant-numeric: tabular-nums; }
.wf-bar .wf-phase.good { color: var(--hot-ink); background: var(--ok); border-color: var(--ok); }
.wf-bar .wf-phase.bad { color: #fff; background: #b3262b; border-color: var(--bad); }
.wf-bar .wf-phase.flat { color: var(--fg); border-color: var(--ln2); }
.wf-bar .wf-phase.warn { color: #1b1203; background: var(--warn); border-color: var(--warn); }
.wf-bar .wf-phase.off { color: var(--mut); border-color: var(--ln2); }
.wf-phase .wf-try { margin-left: 5px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #1b1203; background: var(--warn); padding: 0 3px; border-radius: 2px; }
.wf-phase .wf-man { margin-left: 5px; font-size: 10px; opacity: .85; }
/* the monitor: Σ | A | B, this viewer's picture and sound */
.wf-mon { display: inline-flex; }
.wf-mon button { font: inherit; font-size: 12px; font-weight: 700; min-width: 24px; padding: 1px 6px; cursor: pointer;
  background: transparent; color: var(--mut); border: 1px solid var(--ln2); margin-left: -1px; }
.wf-mon button:first-child { margin-left: 0; }
.wf-mon button:hover:not(:disabled) { color: var(--fg); }
.wf-mon button.on { color: var(--hot-ink); background: var(--c, #ffd24a); border-color: var(--c, #ffd24a); position: relative; }
.wf-mon button:disabled { opacity: .45; cursor: default; }
.wf-mon-badge { position: absolute; left: 8px; top: 6px; z-index: 5; font-size: 12px; font-weight: 700; padding: 2px 7px;
  background: #05090ed9; border: 1px solid; pointer-events: none; }
.wf-mon-badge[hidden] { display: none; }
/* the bar's groups: what the picture is, what is heard, what decodes here, the antennas */
.wf-grp { display: inline-flex; flex-direction: column; gap: 1px; padding-left: 14px; border-left: 1px solid var(--ln); }
.wf-bar > .wf-grp:first-child { padding-left: 0; border-left: 0; }
.wf-grp[hidden] { display: none; }
.wf-grp-l { font-size: 9px; letter-spacing: .16em; color: var(--faint); line-height: 1.1; }
.wf-grp-c { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 26px; }
.wf-pop-wrap { position: relative; display: inline-flex; }
.wf-bar .wf-gear { font-size: 17px; padding: 0 5px; letter-spacing: 0; color: var(--fg); }
.wf-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 250px; padding: 10px 12px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px; background: var(--panel); border: 1px solid var(--ln2);
  box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.wf-pop[hidden] { display: none; }
/* the first look at the waterfall: what the mouse does */
.wf-hint { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 6; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 8px 22px; padding: 12px 18px; background: #05090ee6; border: 1px solid var(--ln2);
  font-size: 15px; color: var(--mut); max-width: 90%; }
.wf-hint b { color: var(--fg); }
.wf-hint[hidden] { display: none; }
.wf-bar .wf-phase:disabled { cursor: default; opacity: .85; }
.wf-bar .wf-phase.open { box-shadow: 0 0 0 2px rgba(255,210,74,.55); }

/* ---- the FT8 palette over the waterfall (ft8-palette.js): WSJT-X's Band Activity ---- */
.ft8-pal {
  --panel2: #0a111a; --line: #2c3f57; --text: #d7e2ee; --muted: #7d8fa6;
  position: fixed; z-index: 20; display: flex; flex-direction: column; overflow: hidden; resize: both;
  min-width: 380px; min-height: 220px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.55); color: var(--text);
}
.ft8-pal[hidden] { display: none !important; }
.fp-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 8px; border-bottom: 1px solid var(--line);
           cursor: move; font-size: 11px; letter-spacing: .08em; color: var(--muted); flex: none; background: var(--deep);
           user-select: none; }
.fp-title { color: var(--ft8); font-weight: 700; }
.fp-dial { font: 12px RC, sans-serif; background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.fp-state { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
            letter-spacing: .02em; font-size: 12px; font-variant-numeric: tabular-nums; }
.fp-state.bad { color: var(--warn); }
.fp-close { background: none; border: 0; color: var(--muted); font: 16px/1 RC, sans-serif; padding: 0 3px; cursor: pointer; }
.fp-close:hover { color: var(--bad); }
.fp-cols, .fp-row { display: grid; grid-template-columns: 4.6em 2.6em 2.8em 3.4em 1fr; column-gap: 6px; }
.fp-cols { padding: 3px 8px; border-bottom: 1px solid var(--line); font: 700 10px/1.2 RC, sans-serif;
           letter-spacing: .08em; color: var(--muted); flex: none; }
.fp-cols span:nth-child(-n+4), .fp-row span:nth-child(-n+4) { text-align: right; }
.fp-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 6px; background: var(--panel2);
           font: 13px/1.45 ui-monospace, 'DejaVu Sans Mono', monospace; font-variant-numeric: tabular-nums; }
.fp-cyc { margin-top: 4px; border-top: 1px dashed var(--line); color: var(--muted); font: 10px/1.6 RC, sans-serif;
          letter-spacing: .06em; }
.fp-row span { white-space: nowrap; }
.fp-row .m { overflow: hidden; text-overflow: ellipsis; }
.fp-row.cq { background: rgba(57,217,138,.10); }
.fp-row.cq .m { color: #9ff0c4; }
.fp-row.ap { opacity: .65; }
.fp-row.hl { background: rgba(197,155,255,.18); }
.fp-row b { font-weight: 400; cursor: pointer; }
.fp-row b:hover { text-decoration: underline; }
.fp-row b.from { font-weight: 700; }
.fp-row b.hl { color: var(--ft8); }
.fp-empty { color: var(--muted); font: 12px RC, sans-serif; padding-top: 6px; }
/* the JS8 palette (js8-palette.js): the FT8 one's frame, JS8's gold, a
   submode column; a deep call not confirmed yet faded with "?" */
.js8-pal .fp-title { color: var(--js8); }
.js8-pal .fp-cols, .js8-pal .fp-row { grid-template-columns: 4.6em 2em 2.6em 3.4em 1fr; }
.js8-pal .fp-row .m { white-space: normal; overflow: visible; }
.js8-pal .fp-row span { white-space: normal; }
.js8-pal .fp-row.hl { background: rgba(242,212,107,.16); }
.js8-pal .fp-row b.hl { color: var(--js8); }
.js8-pal .fp-row b.q { opacity: .7; font-style: italic; }
/* the WSPR palette (wspr-palette.js): the FT8 one's frame, WSPR's red,
 * WSJT-X's WSPR columns */
.wspr-pal .fp-title { color: var(--wspr); }
.wspr-pal .fp-cols, .wspr-pal .fp-row { grid-template-columns: 3.2em 2.4em 2.6em 5.6em 2em 1fr; }
.wspr-pal .fp-cols span:nth-child(-n+5), .wspr-pal .fp-row span:nth-child(-n+5) { text-align: right; }
.wspr-pal .fp-row.hl { background: rgba(224,90,90,.16); }
.wspr-pal .fp-row b.hl { color: var(--wspr); }
.wf-tip .f { color: var(--mut); font-size: 11px; }
.wf-bar select:disabled { opacity: .6; }

/* the WSPR stations (Statistics): a column head sorts */
.grid th.sort { cursor: pointer; user-select: none; }
.grid th.sort.on { color: var(--fg); }
.wspr-t td { white-space: nowrap; }

/* Settings → System → Updates, and the header's note of a newer release (managers) */
.upd { margin-top: 6px; display: grid; gap: 4px; }
.upd .k { font-size: 12px; color: var(--mut); margin-right: 4px; }
.upd small { overflow-wrap: anywhere; }
.upd-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.hdr-update { margin-left: 10px; font-size: 12px; color: var(--hot); text-decoration: none;
  border: 1px solid currentColor; border-radius: 3px; padding: 0 6px; white-space: nowrap; }
.hdr-update:hover { text-decoration: underline; }

/* ---- About (index.html #about): a palette over the page ---- */
.about { max-width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; overflow: hidden;
         background: var(--panel); color: var(--fg); border: 1px solid var(--ln2); box-shadow: 0 10px 32px rgba(0,0,0,.6); }
.about[open] { display: flex; flex-direction: column; }
.about::backdrop { background: rgba(3, 6, 10, .6); }
.ab-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; background: var(--deep);
           border-bottom: 1px solid var(--ln); }
.ab-title { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--hot); }
.ab-ver { font-size: 12px; }
.ab-close { margin-left: auto; background: none; border: 0; color: var(--mut); font: 20px/1 RC, sans-serif; cursor: pointer; padding: 0 4px; }
.ab-close:hover { color: var(--bad); }
.ab-body { padding: 6px 18px 14px; overflow: auto; font-size: 14px; line-height: 1.45; }
.ab-body a { color: var(--cq); }
.ab-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0; }
.ab-list dt { color: var(--hot); font-weight: 700; white-space: nowrap; }
.ab-list dd { margin: 0; }
.ab-dev { border-top: 1px solid var(--ln); padding-top: 10px; }
@media (max-width: 560px) { .ab-list { grid-template-columns: 1fr; } .ab-list dd { margin-bottom: 4px; } }

/* ---- two tips for a newcomer, each at its place (app.js COACH): a callout
   under the first band's eye, then under the DX cluster's first speaker, a
   ring around the thing itself — in the page, under the top bar ---- */
.coach { position: absolute; z-index: 4; display: flex; gap: 12px; align-items: flex-start; width: max-content;
         max-width: min(380px, calc(100vw - 16px)); padding: 10px 8px 10px 12px; background: var(--panel); color: var(--fg);
         border: 1px solid var(--hot); box-shadow: 0 8px 24px rgba(0,0,0,.6); font-size: 14px; line-height: 1.4;
         letter-spacing: .01em; text-transform: none; }
.coach::before { content: ''; position: absolute; top: -7px; left: calc(var(--arrow, 30px) - 6px); width: 12px; height: 12px;
                 background: var(--panel); border-left: 1px solid var(--hot); border-top: 1px solid var(--hot); transform: rotate(45deg); }
.coach-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; color: var(--hot);
             border: 1px solid var(--ln2); border-radius: 50%; background: var(--deep); }
.coach-ico svg { width: 22px; height: 22px; }
.coach-txt { min-width: 0; }
.coach-txt b { color: var(--hot); }
.coach-txt i { color: var(--hot); font-style: normal; font-weight: 700; }
.coach-btns { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.coach-btns .mut { margin-right: auto; font-size: 12px; }
.coach-btns button { font: inherit; font-size: 13px; letter-spacing: .06em; padding: 3px 12px; cursor: pointer;
                     color: var(--fg); background: var(--deep); border: 1px solid var(--ln2); }
.coach-btns button.primary { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); font-weight: 700; }
.coach-x { flex: none; align-self: flex-start; margin-top: -4px; background: none; border: 0; color: var(--mut);
           font: 20px/1 RC, sans-serif; cursor: pointer; padding: 0 4px; }
.coach-x:hover { color: var(--bad); }
.coach-ring { position: absolute; z-index: 4; border: 2px solid var(--hot); border-radius: 50%; pointer-events: none;
              box-shadow: 0 0 8px var(--hot); animation: coach-pulse 1.6s ease-in-out infinite; }
@keyframes coach-pulse { 0%, 100% { opacity: .95; transform: scale(1); } 50% { opacity: .45; transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .coach-ring { animation: none; } }

/* ---- the guided tour (tour.js): the "?" in the menu, the page dimmed and
   blurred around one part, a card with what it is ---- */
nav .tour-q { align-self: center; width: 26px; height: 26px; padding: 0; margin: 0 8px; font-weight: 700;
              font-size: 15px; letter-spacing: 0; line-height: 1; color: var(--accent);
              border: 1px solid var(--accent); border-radius: 50%; }
nav .tour-q:hover { background: var(--accent); color: var(--hot-ink); }
.tour { position: fixed; inset: 0; z-index: 1000; }
.tour[hidden] { display: none !important; }
.tour-shade { position: fixed; background: rgba(4,8,13,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
              transition: all .18s ease; }
.tour-ring { position: fixed; border: 2px solid var(--accent); border-radius: 4px; box-shadow: 0 0 0 4px rgba(57,217,138,.18);
             transition: all .18s ease; }
.tour-card { position: fixed; width: min(400px, calc(100vw - 16px)); padding: 12px 14px 10px; background: var(--deep);
             border: 1px solid var(--accent); border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.6); color: var(--fg); }
.tour-n { font-size: 11px; letter-spacing: .1em; color: var(--mut); }
.tour-card h3 { margin: 2px 0 6px; font-size: 17px; letter-spacing: .03em; color: var(--accent); }
.tour-x { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.tour-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.tour-btns button { font: 13px 'RC', sans-serif; padding: 4px 10px; border-radius: 2px; cursor: pointer;
                    background: none; color: var(--fg); border: 1px solid var(--ln2); }
.tour-btns .tour-end { margin-right: auto; color: var(--mut); border-color: transparent; }
.tour-btns .tour-end:hover { color: var(--bad); }
.tour-btns .primary { background: var(--accent); color: var(--hot-ink); border-color: var(--accent); font-weight: 700; }
body.touring { overflow: hidden; }

/* Settings → Receiver → Red Pitaya: the board's diagram, its state, the buttons */
.rp-diagram { width: 100%; max-width: 660px; height: auto; display: block; margin: 4px 0 8px; }
.rp-diagram .box { fill: var(--deep); stroke: var(--ln2); }
.rp-diagram .box.on { stroke: var(--accent); }
.rp-diagram .box.busy { stroke: var(--warn); }
.rp-diagram .box.off { stroke: var(--faint); stroke-dasharray: 4 3; }
.rp-diagram text { fill: var(--fg); font: 13px var(--mono); }
.rp-diagram text.mut { fill: var(--mut); font-size: 11px; }
.rp-diagram path { fill: none; stroke: var(--ln2); stroke-width: 2; }
.rp-diagram path.on { stroke: var(--accent); }
.rp-diagram path.busy { stroke: var(--warn); }
.rp-state { min-height: 1.3em; margin: 2px 0 6px; }
.rp-state.bad { color: var(--bad); }
.rp-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rp-actions input[type=password] { width: 14em; }
#settings .rp-take, .rp-take { display: inline-flex; flex-direction: row; gap: 4px; align-items: center; font-size: 13px; color: var(--mut); margin: 0; }
#settings .rp-take input { margin: 0; width: auto; }
.rp-take.hi { color: var(--warn); }
.rp-ext { margin: 8px 0 0; }
.rp-ext-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 4px 0; font-size: 13px; }
.rp-ext-row b { width: 3.5em; }
#settings.no-rp .rp-only, .no-rp .rp-only { display: none; }
/* SKRS (IonoSpotter's own bitstream): each band its own rate, no IPs */
.skrs-only { display: none; }
body.skrs .skrs-only { display: table-cell; }
body.skrs .p1-only, body.skrs #settings label.p1-only { display: none; }
td.rxl { white-space: nowrap; }
/* Statistics → Phasing: the coarse waterfall of what phasing gave */
.phase-ctl { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; font-size: 13px; }
.phase-cv { display: block; width: 100%; image-rendering: pixelated; }
/* Statistics → Phasing: does it pay, band by band */
.phase-verdict { margin: 4px 0 10px; }
.phase-verdict table { width: auto; }
.phase-verdict td, .phase-verdict th { padding: 3px 10px 3px 0; font-size: 13px; text-align: right; white-space: nowrap; }
.phase-verdict td.l, .phase-verdict th.l { text-align: left; white-space: normal; }
.phase-verdict .good { color: var(--ok); } .phase-verdict .bad { color: var(--bad); } .phase-verdict .flat { color: var(--mut); }
/* Status: the measured gain beside ΦAuto stays as quiet as the mode's name
   (Dan, 2026-12-04) — only a band that phasing costs says so in colour */
.ph-mode b { font-weight: 400; } .ph-mode b.bad { color: var(--bad); }
/* Waterfall → the phasing panel */
.wf-bar .wf-phase-set { font-size: 13px; padding: 0 6px; }
.wf-bar .wf-phase-set.on { color: var(--hot-ink); background: #ffd24a; border-color: #ffd24a; }
/* the phasing palette: over the waterfall's right side (it takes no room
   of the picture's), moved by its head */
.wf-phase-panel { position: absolute; right: 18px; z-index: 30; width: min(470px, calc(100vw - 36px));
  max-height: min(78vh, 760px); overflow: auto; border: 1px solid rgba(255,210,74,.45); background: #0f1722f2;
  box-shadow: 0 10px 30px rgba(0,0,0,.55); padding: 0 10px 8px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.wf-phase-panel .pp-head { display: flex; align-items: center; gap: 8px; padding: 6px 0 5px; cursor: move; user-select: none;
  position: sticky; top: 0; background: #0f1722; border-bottom: 1px solid rgba(255,210,74,.25); color: #ffd24a; touch-action: none; }
.wf-phase-panel .pp-head .pp-sp { flex: 1; }
.wf-phase-panel .pp-sec { display: flex; flex-direction: column; gap: 6px; }
.wf-phase-panel .pp-sec[hidden] { display: none; }
.wf-phase-panel .pp-sec + .pp-sec, .wf-phase-panel .pp-expert { border-top: 1px solid var(--ln); padding-top: 7px; }
.pp-try { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #1b1203; background: var(--warn); padding: 0 5px; border-radius: 2px; }
.pp-try[hidden] { display: none; }
.wf-phase-panel .pp-now { font-size: 12px; line-height: 1.4; color: var(--mut); }
.wf-phase-panel .pp-now b { color: var(--fg); } .wf-phase-panel .pp-now b.warn { color: var(--warn); }
.wf-phase-panel .pp-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); }
.wf-phase-panel .pp-expert summary { cursor: pointer; color: var(--mut); font-size: 12px; }
.wf-phase-panel .pp-expert[open] summary { margin-bottom: 6px; color: var(--fg); }
.wf-phase-panel .pp-expert .pp-row + .pp-row { margin-top: 6px; }
.wf-phase-panel #pp-fixed.on .pp-lbl::after { content: ' ●'; }
.wf-phase-panel .pp-msg { font-size: 12px; min-height: 1em; }
.pp-bars { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.pp-bars-h b { font-variant-numeric: tabular-nums; }
.pp-bar { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 8px; }
.pp-bar-l { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-bar-t { height: 10px; background: var(--well); border: 1px solid var(--ln); }
.pp-bar-f { display: block; height: 100%; opacity: .85; }
.pp-bar-v { font-variant-numeric: tabular-nums; white-space: nowrap; width: 64px; text-align: right; }
.pp-bars-g { color: var(--mut); }
.pp-g.good { color: var(--ok); } .pp-g.bad { color: var(--bad); } .pp-g.flat { color: var(--mut); font-weight: 400; }
.wf-phase-panel[hidden] { display: none; }
.wf-phase-panel .pp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wf-phase-panel .pp-lbl { min-width: 84px; color: #ffd24a; font-weight: 700; letter-spacing: .04em; }
.wf-phase-panel .pp-grp { display: inline-flex; gap: 3px; align-items: center; }
.wf-phase-panel input[type=number] { width: 64px; }
.wf-phase-panel button { font: inherit; font-size: 12px; padding: 2px 8px; cursor: pointer; color: var(--fg); background: var(--well);
  border: 1px solid var(--ln2); }
.wf-phase-panel button:hover:not(:disabled) { border-color: var(--mut); }
.wf-phase-panel button:disabled { opacity: .45; cursor: default; }
.wf-phase-panel .pp-head button { background: none; border: 0; font-size: 18px; padding: 0 4px; color: var(--mut); }
.wf-phase-panel .pp-modes { display: inline-flex; }
.wf-phase-panel .pp-modes button { padding: 3px 12px; margin-left: -1px; font-weight: 700; }
.wf-phase-panel .pp-grp { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wf-phase-panel #pp-fixed .pp-lbl { flex-basis: 100%; }
.wf-phase-panel #pp-fixed .pp-grp { min-width: 100%; }
.wf-phase-panel .pp-modes button.on, .wf-phase-panel .pp-m.set { color: var(--hot-ink); background: #ffd24a; border-color: #ffd24a; }
.wf-phase-panel .pp-m.empty { opacity: .55; }
.wf-phase-panel .pp-vec-row { align-items: flex-start; margin: 4px 0; }
.wf-phase-panel .pp-vec { width: 220px; height: 220px; background: #05090e; border: 1px solid rgba(200,210,230,.15); cursor: crosshair; }
.wf-phase-panel .pp-vec.off { cursor: default; }
.wf-phase-panel .pp-vec-side { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; font-size: 12px; line-height: 1.4; }
.wf-phase-panel .pp-vec-row { flex-wrap: nowrap; }
.wf-phase-panel .pp-scope { color: var(--mut, #9aa7b8); font-size: 12px; line-height: 1.35; margin-bottom: 4px; display: block; }

/* Statistics → Red Pitaya: the bands' slots on the board (SKRS) */
.rp-slots { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 10px; font-size: 13px; }
.rp-slot { white-space: nowrap; }
.rp-slot.on { color: var(--ok); }

/* ---- Settings → Bands & modes → Modes and schedules: the band × mode matrix ---- */
#mx-card { position: relative; }
table.mx { border-collapse: collapse; }
table.mx th, table.mx td { padding: 4px 8px; border-bottom: 1px solid var(--ln); text-align: center; vertical-align: middle; }
table.mx thead th { color: var(--mut); font-weight: 400; }
table.mx th.mx-b { text-align: left; white-space: nowrap; color: var(--fg); text-transform: none; letter-spacing: 0; font-size: 14px; }
table.mx small { display: block; color: var(--mut); font-size: 11px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 auto; }
table.mx th.mx-b small { margin: 0; }
.mx-col { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--mut); cursor: pointer; padding: 2px 4px; }
.mx-col:hover { color: var(--fg); }
.mx-col input { margin: 0; }
td.mx-c { min-width: 64px; }
td.mx-c.on { background: color-mix(in srgb, var(--accent) 7%, transparent); }
td.mx-c.nodial input { opacity: .45; }
td.mx-c.nodial { color: var(--faint); }
td.mx-c.now-off, th.mx-b.now-off { background: var(--off-bg); }
td.mx-c.now-off small, th.mx-b.now-off small { color: var(--warn); }
.mx-t { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 13px; padding: 0 2px; margin-left: 4px; }
.mx-t.set { color: var(--accent); }
.mx-t:hover:not(:disabled) { color: var(--fg); }
/* the engine's name under a CW / RTTY tick: the way to that band's own engine (app.js drawMatrix) */
.mx-t.mx-eng { display: block; margin: 2px auto 0; padding: 0 2px; font-size: 11px; color: var(--mut); border-bottom: 1px dotted var(--faint); }
.mx-t.mx-eng.own { color: var(--accent); border-bottom-color: var(--accent); }
.mx-t.mx-dig { white-space: nowrap; }
.mx-pop-dig { display: grid; gap: 4px; }
.mx-pop-dig[hidden] { display: none; }
.mx-subs { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.mx-pop { position: absolute; z-index: 20; width: min(380px, calc(100% - 16px)); background: var(--deep); border: 1px solid var(--ln2);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45); padding: 8px 12px 10px; display: grid; gap: 6px; }
.mx-pop[hidden] { display: none; }
.mx-pop-h { display: flex; justify-content: space-between; align-items: center; }
.mx-pre { display: flex; flex-wrap: wrap; gap: 4px; }
.mx-pop-sun { font-size: 12px; }
.mx-pop .bad { font-size: 12px; min-height: 1em; }
@media (max-width: 600px) { table.mx th, table.mx td { padding: 3px 4px; } td.mx-c { min-width: 44px; } }

/* ---- the board's diagram: antennas, receivers / slots, IPs ---- */
.rp-diag { margin: 4px 0 10px; }
.rp-diag svg.board { width: 100%; max-width: 900px; height: auto; display: block; }
.board text { fill: var(--fg); font-size: 12px; }
.board text.mut { fill: var(--mut); font-size: 11px; }
.board text.legend { font-size: 11px; }
.board .cell rect { fill-opacity: .22; stroke-width: 1.2; }
.board .cell rect.stripe { fill-opacity: 1; stroke: none; }
.board .cell text { font-size: 12px; font-weight: 600; }
.board .cell.over rect { stroke: var(--bad) !important; stroke-dasharray: 3 2; }
.board rect.cell.free { fill: none; stroke: var(--ln2); stroke-dasharray: 3 3; }
.board rect.cell.other { fill: none; stroke: var(--ln2); stroke-dasharray: 5 4; }
.board text.cap { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.board path.bus-v { stroke: var(--ln2); stroke-width: 3; stroke-linecap: round; }
.board text.free-t { font-size: 10px; fill: var(--faint); }
.board .box { fill: var(--deep); stroke: var(--ln2); }
.board .box.on { stroke: var(--accent); }
.board .box.busy { stroke: var(--warn); }
.board .box.off { stroke: var(--faint); stroke-dasharray: 4 3; }
.board path { fill: none; stroke: var(--ln2); stroke-width: 1.5; }
.board path.on { stroke: var(--accent); }
.board path.busy { stroke: var(--warn); }
.board path.bus { stroke-width: 2.2; opacity: .85; }
/* an IP left to another program (or free): the input its receivers take, dashed */
.board path.bus.other { stroke-dasharray: 5 4; opacity: .55; }
.board path.phi { stroke: var(--fg); stroke-width: 1.2; opacity: .7; }
.board text.phi { font-size: 12px; font-weight: 700; }
.board text.who.on { fill: var(--accent); }
.board text.who.busy { fill: var(--warn); }
.board text.who.off { fill: var(--faint); }
.board .ant path { stroke: var(--faint); stroke-width: 2; }
.board .ant circle { fill: var(--faint); }
.board .ant.on path { stroke: var(--c); }
.board .ant.on circle { fill: var(--c); }
.board text.ant-n { font-size: 12px; }

/* ---- the setup guide ---- */
.wz-start { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px;
  border: 1px solid var(--ln); background: var(--panel); font-size: 14px; }
.wizard { width: min(760px, calc(100vw - 32px)); max-width: none; }
.wizard .ab-body { min-height: 340px; }
.wizard h3 { margin: 12px 0 6px; font-size: 15px; color: var(--fg); }
.wz-opt { display: block; margin: 6px 0; padding: 8px 10px; border: 1px solid var(--ln); cursor: pointer; }
.wz-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.wz-opt small { display: block; color: var(--mut); margin: 2px 0 0 22px; }
.wz-opt.big { flex: 1; }
.wz-opt.dis { opacity: .45; cursor: not-allowed; }
.wz-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wz-row > * { flex: 1; min-width: 200px; }
.wz-f { display: flex; flex-direction: column; gap: 3px; margin: 8px 0; font-size: 13px; color: var(--mut); }
.wz-f small { color: var(--mut); }
.wz-bands, .wz-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-bands label, .wz-modes label { border: 1px solid var(--ln); padding: 6px 10px; cursor: pointer; user-select: none; }
.wz-bands label:has(input:checked), .wz-modes label:has(input:checked) { border-color: var(--accent); }
.wz-modes label small { display: block; color: var(--mut); font-size: 11px; }
.wz-cap { margin: 10px 0 0; font-size: 13px; color: var(--mut); }
.wz-cap .bad { color: var(--bad); }
.wz-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--ln);
  background: var(--deep); }
.wz-foot-r { display: inline-flex; flex-wrap: wrap; gap: 0 8px; justify-content: flex-end; }
.wz-foot button.primary { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); font-weight: 700; }
/* the guide's own advice beside a choice */
.rec { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ok); border: 1px solid var(--ok); vertical-align: 1px; }
/* Save and restart: what changes, before it does (app.js saveAsk) */
.save-sum { width: min(640px, calc(100vw - 32px)); max-width: none; }
.ss-list { margin: 6px 0 10px; padding: 0; list-style: none; border: 1px solid var(--ln); background: var(--deep); }
.ss-list li { padding: 5px 10px; border-bottom: 1px solid var(--ln); font-size: 13px; overflow-wrap: anywhere; }
.ss-list li:last-child { border-bottom: 0; }
.ss-list .ss-k { display: block; font-size: 12px; letter-spacing: .04em; color: var(--mut); }
.ss-list .ss-a { color: var(--mut); }
#wz-plan ul { margin: 4px 0; padding-left: 18px; }
#wz-plan li { margin: 3px 0; }
.ppm-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 8px; font-size: 12px; }
.ppm-m .bad { color: var(--bad); }
.dxc .c-ab { white-space: nowrap; color: var(--fg); }
/* A|B %: each antenna's part of the spot in the combination, in the inputs' colours */
.dxc .c-mix { white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; color: var(--mut); }
.dxc .c-mix .mx-a { color: #18b0c9; }
.dxc .c-mix .mx-b { color: #ffb21f; }
.dxc .c-ab svg { vertical-align: middle; }
.dxc .c-ab line.mid { stroke: var(--faint); stroke-width: 1; }
.rp-gear { background: none; border: 0; color: var(--mut); cursor: pointer; font-size: 14px; padding: 0 4px; }
.rp-gear:hover { color: var(--fg); }
.rp-set { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--mut); }
.rp-set[hidden] { display: none; }
.rp-set label { display: inline-flex; align-items: center; gap: 4px; }
.rp-set input[type=number] { width: 52px; }

/* basic / advanced settings (Dan, 2026-11-27): the expert ones hidden, their values kept */
#settings:not(.adv-on) .adv:not(.costly) { display: none !important; }   /* a setting that costs CPU now stays in sight (costShow) */
.adv-tg { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); cursor: pointer; }
/* the bar's two ways in, stressed (Dan, 2026-11-28): the guide a filled button,
   "advanced settings" a switch in capitals, green while on */
.wz-start #wz-open { margin: 0; padding: 6px 16px; font-size: 14px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: var(--hot); border-color: var(--hot); color: var(--hot-ink); }
.wz-start #wz-open:hover { filter: brightness(1.12); box-shadow: 0 0 10px color-mix(in srgb, var(--hot) 45%, transparent); }
.wz-start .adv-tg { padding: 5px 12px; border: 1px solid var(--ln2); background: var(--deep); color: var(--fg);
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wz-start .adv-tg:hover { border-color: var(--hot); }
.wz-start .adv-tg:has(input:checked) { border-color: var(--hot); color: var(--hot); }
.find-r { margin: 4px 0 2px; }
.radio-list { display: grid; gap: 4px; margin: 6px 0; }
.radio-row { text-align: left; background: var(--deep); border: 1px solid var(--ln); color: var(--fg); padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.radio-row:hover { border-color: var(--accent); }
.radio-row .ok { color: var(--ok); } .radio-row .warn { color: var(--warn); }
small.inline-w { display: block; color: var(--warn); margin: 0 0 6px; font-size: 12px; }

/* the manager's sign-in (manager.c, Dan 2026-12-03) */
.mgr-open { color: var(--hot) !important; }
.mgr .ab-body label { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.mgr .ab-body input, .mgr-set input { font: inherit; padding: 5px 8px; background: var(--deep); color: var(--fg);
  border: 1px solid var(--ln2); }
.mgr-row { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.mgr .bad { color: var(--bad); }
.mgr code, .mgr-set code { word-break: break-all; }
.mgr-row button { font: inherit; padding: 5px 14px; background: var(--deep); color: var(--fg); border: 1px solid var(--ln2);
  cursor: pointer; }
.mgr-row button.primary { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); font-weight: 700; }

/* ---- VOACAP (voacap.js): the map's bar, the DX cluster's icon, the wheel ---- */
.map-voa { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -2px 0 8px; font-size: 12px; }
.map-voa[hidden] { display: none; }
.map-voa select { font-size: 12px; padding: 1px 4px; }
.map-voa input[type=range] { flex: 1 1 120px; max-width: 260px; accent-color: var(--hot); }
.map-voa button { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; }
.map-voa button.on { color: var(--hot); border-bottom-color: var(--hot); }
.map-voa .voa-hl { color: var(--fg); font-variant-numeric: tabular-nums; min-width: 4.5em; }
.voa-scale { display: inline-flex; align-items: center; gap: 4px; color: var(--mut); }
.voa-scale i { display: inline-block; width: 90px; height: 8px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(43,108,255), rgb(24,190,200) 30%, rgb(60,200,90) 50%, rgb(235,215,50) 72%, rgb(255,70,50)); }
.dxc .dxc-voa { line-height: 0; border: 0; background: transparent; padding: 2px 3px; margin-left: 4px; cursor: pointer;
  color: var(--faint); vertical-align: -1px; }
.dxc .dxc-voa:hover { color: var(--hot); }
.voa { max-width: min(520px, calc(100vw - 32px)); }
.voa-body { display: flex; flex-direction: column; gap: 6px; }
.voa-path { font-size: 14px; margin-top: 4px; }
.voa-path .warn { color: var(--warn); }
.voa-wrap { display: flex; justify-content: center; }
.voa-wheel { width: min(410px, calc(100vw - 72px)); height: auto; }
.voa-wheel .c { stroke: var(--deep); stroke-width: .6; opacity: .92; }
.voa-wheel .c.e { fill: var(--well); stroke: var(--ln); }
.voa-wheel .c:hover { stroke: var(--fg); stroke-width: 1.2; }
.voa-wheel .voa-now { fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-dasharray: 3 2; pointer-events: none; }
.voa-wheel .voa-band { fill: none; stroke-width: 1.6; pointer-events: none; }
.voa-wheel .voa-cell { fill: none; stroke: #fff; stroke-width: 2.6; pointer-events: none; }
.voa-wheel text { font: 12px RC, sans-serif; text-anchor: middle; fill: var(--mut); pointer-events: none; }
.voa-wheel .voa-h.now { fill: var(--hot); font-weight: 700; }
.voa-wheel .voa-bl { font-size: 9px; fill: var(--fg); paint-order: stroke; stroke: var(--deep); stroke-width: 2.5px; }
.voa-wheel .voa-bl.on { fill: var(--hot); font-weight: 700; }
.voa-wheel .voa-c1 { fill: var(--mut); font-size: 12px; }
.voa-wheel .voa-c2 { fill: var(--fg); font-size: 15px; font-weight: 700; }
.voa-wheel .voa-c3 { fill: var(--hot); font-size: 15px; font-weight: 700; }
.voa-read { min-height: 1.4em; font-size: 13px; text-align: center; }
.voa-read b { font-variant-numeric: tabular-nums; }
.voa-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px; font-size: 11px; }
.voa-legend i { font-style: normal; color: #05090e; padding: 1px 4px; min-width: 30px; text-align: center; }
.voa-legend .mut { margin-right: 6px; }
.voa-note { font-size: 12px; line-height: 1.4; margin: 4px 0 0; }
/* SP/LP and the station's size (Dan, 2026-12-04), the project's link */
.voa-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 4px; }
.voa-opts .seg { gap: 4px; }
.voa-opts .seg button { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; }
.voa-opts .seg button.on { background: transparent; color: var(--hot); border-bottom-color: var(--hot); }
.voa-opts .voa-link { margin-left: auto; font-size: 12px; }
#settings .speed { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; }
#settings .speed small { flex-basis: 100%; }
#speed-state { font-variant-numeric: tabular-nums; }
header.has-banner { cursor: pointer; }
header.has-banner nav, header.has-banner .brand-tip { cursor: auto; }
#call { cursor: pointer; }
/* the logo's card (a click on the logo or the call): the sign-in's look */
.brand-card { background: var(--panel); color: var(--fg); border: 1px solid var(--ln2); padding: 22px 24px;
  width: min(460px, calc(100vw - 32px)); box-shadow: 0 10px 40px rgba(0,0,0,.6); font-size: 15px; line-height: 1.45;
  letter-spacing: .02em; cursor: pointer; }
.brand-card::backdrop { background: rgba(5,9,14,.75); }
.brand-card .signin-logo { display: block; height: 48px; width: auto; max-width: 100%; margin: 0 auto 18px; }
.brand-card b { color: var(--hot); }
.brand-card .brand-own { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ln); color: var(--mut); }
.brand-card a { color: var(--cq); cursor: pointer; }
.brand-card:focus { outline: none; }
/* the password manager's user name (always "manager"): there for the browser, never seen */
.pw-user { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }

/* DX cluster (Dan, 2026-12-05): the mode's cell in its colour (the bands'
 * ladder), CW left plain; a digital mode's message over the phasing columns;
 * the band's phasing as an icon in A↔B */
.dxc td.c-mode.mc { color: #0b0f14; font-weight: 700; }
.dxc tbody tr td.mc-rtty { background: color-mix(in srgb, var(--m-rtty) 80%, transparent); }
.dxc tbody tr td.mc-ft8 { background: color-mix(in srgb, var(--m-ft8) 80%, transparent); }
.dxc tbody tr td.mc-ft4 { background: color-mix(in srgb, var(--m-ft4) 80%, transparent); }
.dxc tbody tr td.mc-js8 { background: color-mix(in srgb, var(--m-js8) 80%, transparent); }
.dxc tbody tr td.mc-wspr { background: color-mix(in srgb, var(--m-wspr) 80%, transparent); }
.dxc tbody tr td.mc-jtty { background: color-mix(in srgb, var(--m-jtty) 80%, transparent); }
.dxc td.c-msg { max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, monospace; font-size: .85em; color: var(--mut); }
/* … over the one phasing column a first look shows (Φ dB): narrower, the whole message in its tip */
.dxc td.c-msg[colspan="1"] { max-width: 12em; text-align: left; }
.dxc th.c-msgh { text-align: left; }
.dxc tr.dxc-none td { white-space: normal; cursor: default; }
.dxc tr.dxc-none .dxc-clearall { margin: 0 0 0 8px; }
.dxc .c-ab .ph-mrc path, .dxc .c-ab .ph-mvdr path { fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }
.dxc .c-ab .ph-mvdr path:first-child { fill: currentColor; fill-opacity: .25; }
.dxc .c-ab text.ph-l { font-size: 10px; font-weight: 700; fill: currentColor; }
.dxc .c-ab text.ph-a { fill: #18b0c9; }                /* one antenna alone: its input's colour, as the bar */
.dxc .c-ab text.ph-b { fill: #ffb21f; }

/* a row another page sent you to (Statistics → Phasing: "run it on one antenna alone") */
.bands-edit tr.flash td { background: rgba(242,179,61,.18); transition: background .4s; }

/* the spot database's search (dbsearch.js) */
.dbs { margin-top: 6px; }
.dbs-bar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.dbs-q { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.dbs-q input { width: 16em; text-transform: uppercase; }
.dbs-count { color: var(--mut); font-size: 13px; }
.dbs-count b { color: var(--fg); font-weight: 600; }
.dbs-rh { display: flex; gap: 12px; align-items: baseline; margin: 8px 0 4px; }
.dbs-t td.l a.nocq { font-style: italic; }
.dbs-t tr.dbs-pick { cursor: pointer; }
.dbs-t tr.dbs-pick:hover td { background: rgba(127, 127, 127, .08); }
.dbs-callbox { margin: 8px 0; padding: 8px 10px; border: 1px solid var(--ln); border-radius: 6px; }
.dbs-callh { margin-bottom: 6px; }
.dbs-hours { display: flex; align-items: flex-end; gap: 2px; height: 40px; }
.dbs-hours i { flex: 1; background: var(--accent); min-height: 1px; opacity: .8; }
.dbs-hl { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.dbs-diff { white-space: pre-wrap; font-size: 12px; max-height: 18em; overflow: auto; }
.dbs-spot { max-width: 720px; }
