/* Monday Morning Scouting Board — plain CSS, light/dark aware */
:root {
  color-scheme: light;
  --page: #f4f3ef;
  --surface: #fcfcfb;
  --surface-2: #f1f0ec;
  --ink: #141413;
  --ink-2: #52514e;
  --muted: #7d7b75;
  --line: #e1e0d9;
  --line-2: #c9c7bd;
  --ring: rgba(11, 11, 11, 0.10);
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 24px rgba(0,0,0,.06);
  /* project palette (docs/PLAN.md) */
  --records: #8a8a8a;
  --hybrid: #3b6ea8;
  --imagery: #2e7d32;
  --alert: #c0392b;
  --caution: #e0a100;
  --good-ink: #1f6b23;
  --alert-ink: #a93226;
  --caution-bg: #fdf3d6;
  --caution-ink: #6b4d00;
  --dnt-bg: #fbe4e1;
  --dnt-ink: #7a241b;
  --div-mid: #e7e5df;
  /* CVD-safe diverging surprise scale: orange-brown (worse) <-> blue-teal (better) */
  --worse: #b5520b;
  --better: #1f7a99;
  --nodata: #e9e8e3;
  --flag: #141413;
  --accent: #3b6ea8;
  --tile-gap: 0.12;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0f0f0e;
    --surface: #1a1a19;
    --surface-2: #232321;
    --ink: #f4f3ee;
    --ink-2: #c3c2b7;
    --muted: #8f8d86;
    --line: #2c2c2a;
    --line-2: #45443f;
    --ring: rgba(255, 255, 255, 0.10);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 24px rgba(0,0,0,.35);
    --records: #9a9a9a;
    --hybrid: #5b8fd0;
    --imagery: #43a047;
    --alert: #e05a4b;
    --caution: #f0b429;
    --good-ink: #7bd17f;
    --alert-ink: #ff8a7a;
    --caution-bg: #3a2f10;
    --caution-ink: #f6d488;
    --dnt-bg: #3e1a16;
    --dnt-ink: #ffb4a8;
    --div-mid: #3a3a37;
    --worse: #e8893a;
    --better: #4fb3cf;
    --nodata: #2a2a28;
    --flag: #ffffff;
    --accent: #6fa3e0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f0f0e;
  --surface: #1a1a19;
  --surface-2: #232321;
  --ink: #f4f3ee;
  --ink-2: #c3c2b7;
  --muted: #8f8d86;
  --line: #2c2c2a;
  --line-2: #45443f;
  --ring: rgba(255, 255, 255, 0.10);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 24px rgba(0,0,0,.35);
  --records: #9a9a9a;
  --hybrid: #5b8fd0;
  --imagery: #43a047;
  --alert: #e05a4b;
  --caution: #f0b429;
  --good-ink: #7bd17f;
  --alert-ink: #ff8a7a;
  --caution-bg: #3a2f10;
  --caution-ink: #f6d488;
  --dnt-bg: #3e1a16;
  --dnt-ink: #ffb4a8;
  --div-mid: #3a3a37;
  --worse: #e8893a;
  --better: #4fb3cf;
  --nodata: #2a2a28;
  --flag: #ffffff;
  --accent: #6fa3e0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.spacer { flex: 1; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top {
  display: grid;
  grid-template-columns: auto auto minmax(320px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand h1 { font-size: 19px; white-space: nowrap; }
.brand .sub { color: var(--ink-2); font-size: 13px; }
.brand-mark { display: grid; grid-template-columns: 11px 11px; gap: 3px; }
.brand-mark i { width: 11px; height: 11px; border-radius: 2.5px; background: var(--imagery); }
.brand-mark i:nth-child(2) { background: var(--alert); }
.brand-mark i:nth-child(3) { background: var(--records); }
.site { display: flex; flex-direction: column; gap: 3px; }
select {
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 6px 30px 6px 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
}
.timeline { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.asof { white-space: nowrap; }
#passNote { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.asof strong { font-size: 17px; }
.tl-track { position: relative; height: 44px; margin: 0 8px; }
.tl-track input[type=range] {
  position: absolute; left: -8px; right: -8px; top: 2px; width: calc(100% + 16px);
  margin: 0; z-index: 2; background: transparent; appearance: none; -webkit-appearance: none; height: 22px;
}
.tl-track input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.tl-track input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.tl-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; margin-top: -7px;
  background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--ink);
  cursor: grab;
}
.tl-track input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--ink);
  border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--ink); cursor: grab;
}
.pass-marks { position: absolute; left: 0; right: 0; top: 0; height: 44px; pointer-events: none; }
.pass-mark { position: absolute; top: 5px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.pass-mark .tick { width: 2px; height: 14px; background: var(--muted); border-radius: 1px; }
.pass-mark .pl { font-size: 11px; color: var(--muted); white-space: nowrap; margin-top: 8px; font-variant-numeric: tabular-nums; }
.pass-mark.past .tick { background: var(--imagery); }
.pass-mark.past .pl { color: var(--ink-2); }
.pass-mark.cur .pl { color: var(--ink); font-weight: 700; }
.pass-mark.harvest .tick { background: var(--caution); }

.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--ink-2); }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: 14px;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.gauge-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding-left: 10px; border-left: 1px solid var(--line); max-width: 390px; }
.gauge-text { width: 230px; }
.gauge-state { font-size: 24px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.gauge-expl { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
#gauge .needle { transition: transform .7s cubic-bezier(.3,1.4,.5,1); transform-origin: 60px 62px; }

.mode-bar {
  padding: 7px 20px; font-size: 13.5px; background: var(--caution-bg); color: var(--caution-ink);
  border-bottom: 1px solid var(--line);
}
.mode-bar b { font-weight: 700; }

/* ---------- layout ---------- */
.layout {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 14px;
  padding: 14px 20px 18px; min-height: 0; position: relative;
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.map-card { display: flex; flex-direction: column; min-height: 560px; min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; padding: 2px; background: var(--surface-2); }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.seg button:disabled { opacity: .38; cursor: not-allowed; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .knob { width: 36px; height: 20px; border-radius: 10px; background: var(--line-2); position: relative; transition: background .2s; }
.switch .knob::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + .knob { background: var(--caution); }
.switch input:checked + .knob::after { transform: translateX(16px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--accent); outline-offset: 2px; }

.regime {
  margin: 10px 14px 0; padding: 9px 12px; border-radius: 9px; display: flex; gap: 10px; align-items: flex-start;
  background: var(--caution-bg); color: var(--caution-ink); font-size: 14px;
}
.regime.dnt { background: var(--dnt-bg); color: var(--dnt-ink); }
.regime .ico { flex: none; margin-top: 1px; }
.regime b { font-weight: 750; }
.regime .ev { opacity: .85; font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.regime > div { min-width: 0; }

.map-wrap { flex: 1; min-height: 0; position: relative; padding: 8px 14px 0; }
#map { width: 100%; height: 100%; display: block; }
#map .tile { transition: fill .55s ease; cursor: pointer; }
#map .tile:hover { stroke: var(--ink-2); stroke-width: .06; }
#map .flag { fill: none; stroke: var(--flag); pointer-events: none; transition: opacity .3s; }
#map .sel { fill: none; stroke: var(--accent); pointer-events: none; }
#map .ranklbl { fill: var(--flag); font-weight: 750; pointer-events: none; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--surface); stroke-linejoin: round; }
#map .panel-lbl { fill: var(--ink-2); font-weight: 650; }
#map .hit { fill: var(--surface); stroke: var(--ink); pointer-events: none; }
#map .miss { fill: none; stroke: var(--ink); pointer-events: none; }
.map-foot { display: flex; align-items: center; gap: 18px; padding: 8px 14px 12px; flex-wrap: wrap; }
.legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend .ramp { display: flex; flex-direction: column; gap: 2px; }
.legend .bar { width: 300px; height: 10px; border-radius: 3px; }
.legend .ticks { display: flex; justify-content: space-between; gap: 10px; width: 300px; font-variant-numeric: tabular-nums; }
.legend .sw { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* ---------- side list ---------- */
.side { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.list-head { padding: 12px 16px 8px; border-bottom: 1px solid var(--line); }
.list-head h2 { font-size: 18px; }
.walk-list { list-style: none; margin: 0; padding: 4px 0; flex: none; }
.layout { overflow: hidden; }
@media (min-width: 981px) { body { height: 100vh; } }
.list-tabs { position: sticky; top: 0; background: var(--surface); z-index: 2; }
.walk-list li {
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto auto; gap: 2px 10px; align-items: center;
  padding: 8px 16px; cursor: pointer; border-left: 3px solid transparent;
}
.walk-list li:hover { background: var(--surface-2); }
.walk-list li.on { background: var(--surface-2); border-left-color: var(--accent); }
.walk-list .rk { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--ink); color: var(--surface); grid-row: span 2; }
.walk-list .t1 { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.walk-list .t2 { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.walk-list .val { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; grid-row: span 2; grid-column: 4; min-width: 78px; line-height: 1.25; }
.walk-list .val span { display: block; }
.walk-list .sp { grid-row: span 2; grid-column: 3; }
.walk-list .t2 { grid-column: 2; }
.walk-list .val .big { font-weight: 750; font-size: 15px; display: block; }
.walk-list .spark { display: block; }
.chip-n { display: inline-block; padding: 0 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 650; color: var(--ink-2); margin-right: 4px; }
.hitmark { font-weight: 800; }
.hitmark.yes { color: var(--good-ink); }
.hitmark.no { color: var(--muted); }
.empty { padding: 24px 16px; color: var(--muted); }

.reveal-card { padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(0deg, var(--surface), var(--surface-2)); }
.reveal-card h3 { font-size: 15px; margin-bottom: 4px; }
.reveal-card .punch { font-size: 22px; font-weight: 800; line-height: 1.15; margin: 2px 0 8px; }
.reveal-card .punch small { font-size: 13px; font-weight: 600; color: var(--ink-2); display: block; margin-top: 3px; }
.rbar { display: grid; grid-template-columns: 118px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; margin: 5px 0; }
.rbar .track { height: 14px; background: var(--surface-2); border-radius: 3px; position: relative; overflow: hidden; }
.rbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; transition: width .6s ease; }
.rbar .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.reveal-card .curve { margin-top: 8px; }

/* ---------- drawer ---------- */
.drawer {
  position: absolute; top: 14px; right: 20px; bottom: 18px; width: min(600px, calc(100% - 40px));
  transform: translateX(calc(100% + 30px)); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 20; pointer-events: none;
}
.drawer.open { transform: none; pointer-events: auto; }
.drawer-inner { height: 100%; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 16px 18px 20px; }
.d-head { display: flex; align-items: flex-start; gap: 12px; }
.d-head h2 { font-size: 20px; }
.d-head .rk { background: var(--ink); color: var(--surface); border-radius: 8px; padding: 3px 9px; font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.fact { background: var(--surface-2); border-radius: 8px; padding: 7px 10px; min-width: 0; }
.fact .v { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explain { font-size: 16px; line-height: 1.5; margin: 6px 0 12px; padding: 10px 14px; border-left: 4px solid var(--alert); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.explain.neg { border-left-color: var(--worse); }
.explain.pos { border-left-color: var(--better); }
.explain.neu { border-left-color: var(--records); }
.d-sec { margin-top: 14px; }
.d-sec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chipcol { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.chipcol .pair { display: flex; gap: 3px; }
.chipcol img { height: 118px; width: auto; image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 3px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0/8px 8px; }
.chipcol .cap { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: center; line-height: 1.2; }
.chipcol.future { opacity: .7; }
.chipcol.cur .cap { color: var(--ink); font-weight: 700; }
.nochip { height: 118px; width: 56px; border: 1px dashed var(--line-2); border-radius: 3px; display: grid; place-items: center; font-size: 10px; color: var(--muted); text-align: center; }
.yieldline { width: 100%; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { width: min(820px, 100%); height: min(760px, 100%); background: var(--surface); border-radius: 14px; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.35); border: 1px solid var(--line-2); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
#memoText { flex: 1; margin: 0; border: 0; resize: none; padding: 16px 20px; background: var(--surface); color: var(--ink); font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border-radius: 0 0 14px 14px; }

/* ---------- tooltip ---------- */
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.18); max-width: 300px; line-height: 1.35; }
.tip b { font-weight: 700; }
.tip .row { display: flex; justify-content: space-between; gap: 14px; }
.tip .row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1450px) {
  .top { gap: 16px; padding: 10px 16px; }
  .brand .long { display: none; }
  .brand .sub { font-size: 12px; }
  .gauge-text { width: 190px; }
  .gauge-expl { font-size: 11.5px; }
  #gauge { width: 104px; height: 61px; }
  #passNote { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 1180px) {
  .top { grid-template-columns: auto auto minmax(260px, 1fr) auto; }
  .brand .sub { display: none; }
  .gauge-wrap { grid-column: 1 / -1; border-left: 0; padding-left: 0; max-width: none; }
  .threat-line { flex: 1 1 auto; border-top: 0; margin-top: 0; }
  .gauge-text { width: auto; }
}
@media (max-width: 980px) {
  .top { grid-template-columns: 1fr; gap: 10px; padding: 10px 16px; }
  .layout { grid-template-columns: 1fr; padding: 10px 16px; }
  .map-card { min-height: 440px; }
  .side { max-height: 80vh; }
  .layout { overflow: visible; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); }
  .legend .bar, .legend .ticks { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- list tabs ---------- */
.list-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.list-tabs button {
  border: 0; background: transparent; padding: 11px 10px 9px; cursor: pointer; font-weight: 700; font-size: 15px;
  color: var(--ink-2); border-bottom: 3px solid transparent; text-align: left; line-height: 1.15;
}
.list-tabs button .tab-sub { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.list-tabs button.on { color: var(--ink); border-bottom-color: var(--alert); }
.list-tabs button[data-list=weak].on { border-bottom-color: var(--records); }
.list-tabs button:hover { background: var(--surface-2); }
.list-warn { margin-top: 8px; padding: 7px 10px; border-radius: 8px; background: var(--dnt-bg); color: var(--dnt-ink); font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.list-note { margin-top: 6px; font-size: 13px; color: var(--ink-2); font-style: italic; }
.walk-list.surp .rk { background: var(--alert); color: #fff; }
.rsec { margin-top: 10px; }
.rsec + .rsec { padding-top: 10px; border-top: 1px dashed var(--line-2); }
.rsec h4 { margin: 0 0 2px; font-size: 13.5px; }
.rsec .punch { font-size: 19px; }
.rsec.dim { opacity: .75; }
.pooled-note { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.act-band { position: absolute; top: 9px; height: 8px; border-radius: 4px; background: var(--imagery); opacity: .22; pointer-events: none; }
.act-band-lbl { position: absolute; top: -9px; font-size: 10px; color: var(--muted); white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.lvl { margin-top: 8px; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; font-size: 14px; }

/* ---------- Crop Doctor: field threats strip ---------- */
.threat-strip { background: var(--surface); border-bottom: 1px solid var(--line); padding: 6px 20px 6px; }
.ts-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.ts-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 2px 0; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.ts-toggle .chev { transition: transform .2s; }
.threat-strip.collapsed .ts-toggle .chev { transform: rotate(-90deg); }
.threat-strip.collapsed .ts-body { display: none; }
.ts-cap { font-weight: 650; color: var(--caution-ink); background: var(--caution-bg); padding: 1px 8px; border-radius: 999px; }
.ts-extra { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ts-chip { padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--muted); cursor: help; white-space: nowrap; }
.ts-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ts-legend { display: inline-flex; gap: 12px; color: var(--ink-2); }
.ts-legend .sw { display: inline-flex; align-items: center; gap: 5px; }
.ts-legend .sw i { width: 12px; height: 8px; border-radius: 2px; display: inline-block; }
.ts-body { margin-top: 3px; min-width: 0; }
#tsSvg { display: block; max-width: 100%; }
#tsSvg .ts-lbl { cursor: help; }
@media (max-width: 980px) { .threat-strip { padding: 6px 16px; } .ts-legend { display: none; } }

/* ---------- Crop Doctor: this week's threat (near the trust clock) ---------- */
.threat-line { flex: 1 1 100%; display: flex; gap: 7px; align-items: flex-start; margin-top: 5px; padding-top: 5px; border-top: 1px dashed var(--line-2); font-size: 12.5px; line-height: 1.3; color: var(--ink-2); cursor: default; }
.threat-line b { color: var(--ink); }
.threat-line .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 3px; background: var(--line-2); }
.threat-line.lv-h .dot { background: var(--alert); }
.threat-line.lv-m .dot { background: var(--caution); }
.threat-line.lv-none .dot { background: var(--imagery); }

/* ---------- Crop Doctor: what to check on this walk (plot drawer) ---------- */
.doc { background: var(--surface-2); border-radius: 10px; padding: 10px 14px 12px; }
.doc h3 { color: var(--ink); }
.doc-sub { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.doc-none, .doc-empty { font-size: 14px; color: var(--ink-2); margin: 4px 0; }
.causes { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.causes li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px auto; gap: 10px; align-items: center; font-size: 14px; }
.causes .cname { font-weight: 650; }
.causes.faint .cname { font-weight: 500; color: var(--ink-2); }
.cbar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.cbar i { display: block; height: 100%; background: var(--hybrid); border-radius: 4px; }
.cstr { font-size: 12px; color: var(--muted); }
.badge { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; cursor: help; border: 1px solid transparent; }
.badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.badge.b-v { background: color-mix(in srgb, var(--imagery) 16%, transparent); color: var(--good-ink); border-color: color-mix(in srgb, var(--imagery) 40%, transparent); }
.badge.b-p { background: var(--caution-bg); color: var(--caution-ink); border-color: color-mix(in srgb, var(--caution) 45%, transparent); }
.badge.b-h { background: transparent; color: var(--ink-2); border: 1px dashed var(--line-2); }
.doc-ev { font-size: 14.5px; line-height: 1.5; margin: 6px 0 10px; cursor: help; }
.weak-tag { font-weight: 700; color: var(--caution-ink); }
.checklist { border-top: 1px solid var(--line); padding-top: 8px; }
.cl-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.cl-count { font-weight: 600; font-size: 12.5px; }
.cl-item { display: flex; gap: 9px; align-items: flex-start; padding: 5px 0; font-size: 14px; line-height: 1.4; cursor: pointer; }
.cl-item input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--imagery); cursor: pointer; }
.cl-item input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.cl-note { margin-top: 4px; }
@media (max-width: 980px) { .causes li { grid-template-columns: minmax(0, 1fr) 60px auto; } .causes .cstr { display: none; } }
.threat-strip.collapsed .ts-legend { display: none; }

/* ---------- plain-language pass ---------- */
.regime .why { margin-top: 3px; font-size: 13px; }
.regime .why summary { cursor: pointer; font-weight: 650; opacity: .9; width: max-content; }
.regime .why summary:hover { text-decoration: underline; }
.regime .why > div { margin-top: 3px; line-height: 1.4; }
.gauge-wrap { cursor: default; }
.tip .row span:first-child { min-width: 0; }
/* keep the "Full season" label inside the slider track (no sideways page scroll) */
.pass-mark.harvest { transform: translateX(calc(-100% + 1px)); align-items: flex-end; }
