/* Weather Desk: the forecast office's broadcast desk (station plot screen + regional map screen + front clock).
   Scene by art.js, colours from the --wd-* properties below. */
html {
  --wd-wall1: #2b3f52; --wd-wall2: #18263a; --wd-glow: #bfe3ff; --wd-bezel: #0e151d;
  --wd-screen1: #173a52; --wd-screen2: #0f2638; --wd-grid: rgba(143, 198, 224, .16); --wd-plot: #f4f7f9; --wd-plot-p: #ffd23f; --wd-echo: #8fd8ff;
  --wd-sky1: #cfe6f7; --wd-sky2: #eaf4fb; --wd-land1: #cfe0b8; --wd-land2: #a9c48f; --wd-contour: rgba(84, 104, 60, .4); --wd-river: #6aa8d8;
  --wd-cloud1: #ffffff; --wd-cloud2: #d6dee6; --wd-cloud-line: rgba(60, 76, 92, .45); --wd-strat: #a9b4bf;
  --wd-front-ink: #1b232b; --wd-label: #14202a; --wd-halo: rgba(255, 255, 255, .9); --wd-track: #3d4b57;
  --wd-desk1: #8a5a3a; --wd-desk2: #6e4529; --wd-desk3: #4a2d1a; --wd-desk-edge: #b07a52;
  --wd-ink: #17242c; --wd-panel1: #f6f9fb; --wd-panel2: #e6eef2; --wd-accent: #21576b; --wd-ok: #13704a; --wd-bad: #b3261e;
  --wd-chip: #ffffff; --wd-chip-on: #d6eaf0;
}
html[data-theme="dark"] {
  --wd-wall1: #18222d; --wd-wall2: #0b1219; --wd-glow: #6fa8d6; --wd-bezel: #05090c;
  --wd-sky1: #3a5164; --wd-sky2: #2a3b4a; --wd-land1: #4d6140; --wd-land2: #36472e; --wd-contour: rgba(200, 225, 170, .28); --wd-river: #4f86b5;
  --wd-cloud1: #e7ecf1; --wd-cloud2: #9aa7b4; --wd-cloud-line: rgba(10, 16, 22, .5); --wd-strat: #8090a0;
  --wd-front-ink: #f4f7f9; --wd-label: #f4f7f9; --wd-halo: rgba(11, 21, 32, .9); --wd-track: #b9cedb;
  --wd-ink: #e8eff3; --wd-panel1: #1d2a32; --wd-panel2: #162128; --wd-accent: #8cc8dc; --wd-ok: #4fd08c; --wd-bad: #ff8a80;
  --wd-chip: #172027; --wd-chip-on: #1b3d4a;
}
.wd { position: absolute; inset: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; padding: 10px; color: var(--tlg-text); font-size: 16px; }
.wd input, .wd button { font: inherit; }
.wd-controls { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow: auto; padding: 5px 12px;
  background: linear-gradient(var(--wd-panel1), var(--wd-panel2)); color: var(--wd-ink); border: 3px solid var(--wd-accent); border-radius: 14px; box-shadow: 0 3px 8px rgba(0,0,0,.16); }
.wd-right { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 0; overflow: auto; }
.wd-kicker { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wd-accent); }
.wd-step, .wd-step-b { display: grid; gap: 3px; }
.wd-step { gap: 4px; }
.wd-step-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; line-height: 1.2; }
.wd-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wd-accent); color: #fff; font-size: 16px; font-weight: 800; }
html[data-theme="dark"] .wd-n { color: #0d1a24; }
.wd-step.is-done .wd-n { background: var(--wd-ok); }
.wd-mark { margin-left: auto; font-weight: 800; white-space: nowrap; }
.wd-mark.is-ok, .wd-fmark.is-ok { color: var(--wd-ok); }
.wd-mark.is-bad, .wd-fmark.is-bad { color: var(--wd-bad); }
.wd-dial { display: grid; gap: 0; }
.wd-dial-h { display: flex; align-items: baseline; gap: 8px; font-weight: 700; }
.wd-dial-h > span:first-child { margin-right: auto; }
.wd-dial-v { font-weight: 800; color: var(--wd-accent); white-space: nowrap; }
.wd-dial.is-unset .wd-dial-v, .wd-clockbar.is-unset .wd-dial-v { font-weight: 600; font-style: italic; color: var(--wd-ink); opacity: .8; }
.wd-fmark { font-weight: 800; white-space: nowrap; }
.wd-dial-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 6px; }
.wd-dial input, .wd-clockbar input { width: 100%; min-height: 30px; margin: 0; accent-color: var(--wd-accent); cursor: pointer; }
.wd-dial.is-unset input, .wd-clockbar.is-unset input { opacity: .55; }
.wd-step-btn { min-height: 32px; border-radius: 10px; border: 2px solid var(--wd-accent); background: var(--wd-chip); color: var(--wd-ink); font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.wd-step-btn:disabled, .wd-stop-btn:disabled { opacity: .45; cursor: default; }
.wd input:focus-visible, .wd button:focus-visible { outline: 3px solid var(--tlg-focus, #1a73e8); outline-offset: 2px; }
.wd-num { display: grid; gap: 1px; min-width: 0; }
.wd-num-l { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; font-weight: 700; line-height: 1.2; }
.wd-num-row { display: flex; align-items: center; gap: 6px; }
.wd-num.is-inline { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; }
.wd-num.is-inline input { min-height: 34px; }
.wd-num input { flex: 1 1 auto; min-width: 0; width: 100%; font-size: 17px; min-height: 38px; padding: 3px 8px; border: 2px solid #8796a1; border-radius: 8px; background: #fff; color: #17242c; }
html[data-theme="dark"] .wd-num input { background: #10171c; color: #eef3f6; border-color: #6d7f8c; }
.wd-num input:disabled { opacity: .8; }
.wd-unit { flex: none; font-weight: 700; }
.wd-chips { display: grid; gap: 4px; }
.wd-chips.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wd-chip { position: relative; display: flex; align-items: center; min-height: 33px; padding: 3px 24px 3px 9px; border: 2px solid #9fb0bc; border-radius: 10px;
  background: var(--wd-chip); color: var(--wd-ink); font-size: 16px; line-height: 1.15; text-align: left; cursor: pointer; }
html[data-theme="dark"] .wd-chip { border-color: #4d606d; }
.wd-chip:hover:not(:disabled) { border-color: var(--wd-accent); }
.wd-chip.is-on { border-color: var(--wd-accent); background: var(--wd-chip-on); font-weight: 700; box-shadow: inset 0 0 0 1px var(--wd-accent); }
.wd-chip.is-on::before { content: '●'; margin-right: 5px; color: var(--wd-accent); }
.wd-chip-m { position: absolute; right: 6px; font-weight: 800; }
.wd-chip.is-key { border-color: var(--wd-ok); box-shadow: inset 0 0 0 2px var(--wd-ok); }
.wd-chip.is-key .wd-chip-m { color: var(--wd-ok); }
.wd-chip.is-wrong { border-color: var(--wd-bad); border-style: dashed; }
.wd-chip.is-wrong .wd-chip-m { color: var(--wd-bad); }
.wd-chip:disabled { cursor: default; opacity: 1; }
.wd-brief { flex: none; padding: 4px 12px; border: 2px solid var(--wd-accent); border-radius: 12px; background: var(--wd-panel1); color: var(--wd-ink); }
.wd-brief p { margin: 0; line-height: 1.3; }
.wd-scene { flex: none; border-radius: 12px; overflow: hidden; border: 2px solid var(--wd-bezel); }
.wd-svg { display: block; width: 100%; height: auto; }
.wd-svg text { font-family: var(--tlg-font); }
.wd-bezel { fill: var(--wd-bezel); }
.wd-plot-grid path { stroke: var(--wd-grid); stroke-width: 1; }
.wd-title { font-size: 18px; font-weight: 800; fill: var(--wd-plot); letter-spacing: .02em; paint-order: stroke; stroke: rgba(10, 20, 30, .55); stroke-width: 3px; }
.wd-title.wd-title--map { fill: var(--wd-label); stroke: var(--wd-halo); stroke-width: 4px; }
.wd-north path { fill: var(--wd-plot); } .wd-north text { font-size: 18px; font-weight: 800; fill: var(--wd-plot); }
.wd-sta-ring { fill: none; stroke: var(--wd-plot); stroke-width: 3.5; }
.wd-staff, .wd-barb { stroke: var(--wd-plot); stroke-width: 4; stroke-linecap: round; fill: none; }
.wd-plot-n { font-size: 24px; font-weight: 800; fill: var(--wd-plot); }
.wd-plot-p { fill: var(--wd-plot-p); }
.wd-echo { font-size: 18px; font-weight: 700; fill: var(--wd-echo); }
.wd-contour { fill: none; stroke: var(--wd-contour); stroke-width: 1.5; }
.wd-river { fill: none; stroke: var(--wd-river); stroke-width: 4; stroke-linecap: round; opacity: .8; }
.wd-track { stroke: var(--wd-track); stroke-width: 2.5; stroke-dasharray: 8 6; }
.wd-tick { stroke: var(--wd-track); stroke-width: 2.5; }
.wd-tick-l { font-size: 18px; font-weight: 700; fill: var(--wd-label); paint-order: stroke; stroke: var(--wd-halo); stroke-width: 4px; stroke-linejoin: round; }
.wd-tick-cap { font-size: 16px; font-weight: 600; }
.wd-house { fill: #f4ede0; stroke: #5b4636; stroke-width: 1.5; }
.wd-window { fill: #ffd23f; }
.wd-sta-dot { fill: #ffd23f; stroke: #14202a; stroke-width: 2.5; }
.wd-front-line { fill: none; stroke: var(--wd-front-ink); stroke-width: 5; stroke-linecap: round; }
.wd-front-mark { fill: var(--wd-front-ink); }
.wd-front-line.wd-c-cold { stroke: #2563eb; } .wd-front-line.wd-c-warm { stroke: #dc2626; } .wd-front-line.wd-c-occl { stroke: #7e22ce; }
.wd-front-mark.wd-c-cold { fill: #2563eb; } .wd-front-mark.wd-c-warm { fill: #dc2626; } .wd-front-mark.wd-c-occl { fill: #7e22ce; }
html[data-theme="dark"] .wd-front-line.wd-c-cold { stroke: #60a5fa; } html[data-theme="dark"] .wd-front-line.wd-c-warm { stroke: #f87171; } html[data-theme="dark"] .wd-front-line.wd-c-occl { stroke: #c084fc; }
html[data-theme="dark"] .wd-front-mark.wd-c-cold { fill: #60a5fa; } html[data-theme="dark"] .wd-front-mark.wd-c-warm { fill: #f87171; } html[data-theme="dark"] .wd-front-mark.wd-c-occl { fill: #c084fc; }
.wd-lbl { font-size: 18px; font-weight: 800; fill: var(--wd-label); paint-order: stroke; stroke: var(--wd-halo); stroke-width: 5px; stroke-linejoin: round; }
.wd-lbl--air { font-style: italic; }
.wd-strat { fill: var(--wd-strat); stroke: var(--wd-cloud-line); stroke-width: 1.5; }
.wd-rain { stroke: #2f6fb0; stroke-width: 2.5; stroke-linecap: round; }
.wd-drizzle { stroke: #2f6fb0; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 4; }
html[data-theme="dark"] .wd-rain, html[data-theme="dark"] .wd-drizzle { stroke: #8cc4ec; }
.wd-therm-tube { fill: #fff; stroke: #3d4b57; stroke-width: 2; }
.wd-therm-fill, .wd-therm-bulb { fill: #dc2626; }
.wd-therm-bulb { stroke: #3d4b57; stroke-width: 2; }
.wd-trend { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.wd-trend.wd-c-cold { stroke: #2563eb; } .wd-trend.wd-c-warm { stroke: #dc2626; }
.wd-clock-face { fill: #fdfbf4; stroke: #14202a; stroke-width: 2.5; }
.wd-clock-sweep { fill: rgba(255, 176, 46, .55); }
.wd-clock-tick { stroke: #14202a; stroke-width: 2; }
.wd-clock-hand { stroke: #b3261e; stroke-width: 3.5; stroke-linecap: round; }
.wd-clock-pin { fill: #14202a; }
.wd-clock-lbl { font-size: 16px; font-weight: 700; fill: var(--wd-label); paint-order: stroke; stroke: var(--wd-halo); stroke-width: 4px; }
.wd-plate rect { fill: #14202a; stroke: #ffd23f; stroke-width: 2; }
.wd-plate text { font-size: 16px; font-weight: 800; letter-spacing: .12em; fill: #ffd23f; }
.wd-clockbar { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 4px 12px; border: 2px solid var(--wd-accent); border-radius: 12px; background: var(--wd-panel1); color: var(--wd-ink); }
.wd-clock-h { display: flex; align-items: baseline; gap: 8px; font-weight: 700; white-space: nowrap; }
.wd-stops { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; }
.wd-stop-btn { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 2px solid #9fb0bc; background: var(--wd-chip); color: var(--wd-ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.wd-stop-btn:hover:not(:disabled) { border-color: var(--wd-accent); }
.wd-readout { flex: none; padding: 4px 12px; border-radius: 10px; background: var(--wd-panel2); color: var(--wd-ink); }
.wd-readout p { margin: 0; line-height: 1.3; }
.wd-about { flex: none; padding: 2px 10px; border: 1px solid var(--tlg-border); border-radius: 8px; }
.wd-about summary { cursor: pointer; min-height: 30px; font-weight: 700; display: flex; align-items: center; }
.wd-about p { margin: 4px 0; }
.wd-ex { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; }
.wd-ex-art svg { width: 100%; height: auto; display: block; }
.wd-ex-t { border-collapse: collapse; font-size: 16px; }
.wd-ex-t th, .wd-ex-t td { padding: 3px 8px; border-bottom: 1px solid var(--tlg-border); text-align: left; }
@media (max-width: 900px) {
  .wd-clockbar { grid-template-columns: 1fr; }
  .wd { position: static; grid-template-columns: 1fr; }
  .wd-controls, .wd-right { overflow: visible; }
  .wd-ex { grid-template-columns: 1fr; }
  .wd-ex-art { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) { .wd *, .wd *::before { animation: none !important; transition: none !important; } }
