/* Watch: Now / Season x Disease / Insects (layout_shots/mock-season-dashboard.html).
   Watch's own names for org.css's theme tokens (--ink and --line are the
   global ones), plus what only Watch draws: the model and pest series
   (the same in both themes) and the chart's grid, bloom band and note
   marks, with their dark values. */
.wt, .wt-drawer, .wt-tip, #wt-band {
  --card: var(--surface); --soft: var(--head); --mute: var(--ink2); --green: var(--accent);
  --gchip: var(--ok-bg); --gink: var(--ok-tx); --wbg: var(--warn-bg); --wink: var(--warn-tx);
  --r2bg: var(--bad-bg); --r2ink: var(--bad-tx); --askbg: var(--info-bg); --askink: var(--info-tx);
  --scab: #c98500; --fb: #c2412d; --bloom: #f3d9df; --pc: #2a78d6; --cm: #7a4fc4; --oblr: #0f8f7a; --ofm: #d0612a;
  --nbg: #eef0ee; --grid: #eceeec; --note: #c9cfca;
  --hibg: #fbe2d5; --hiink: #9a3b12; --infbg: #f8d9d9; --infink: #a32626;
  --estbg: #f3eefb; --estink: #5b3f99; --conbg: #e2eefc; --conink: #1f4f8a;
}
[data-theme=dark] :is(.wt, .wt-drawer, .wt-tip, #wt-band) {
  --bloom: #4a2f36; --nbg: #2a322c; --grid: #29312b; --note: #3a443d;
  --hibg: #4a2a18; --hiink: #f5b48c; --infbg: #4a2020; --infink: #f3a8a8;
  --estbg: #2e2640; --estink: #c7b3f0; --conbg: #1e2c40; --conink: #a9c4ea;
}
.wt { position: relative; color: var(--ink); }
.wt .card { background: var(--card); }
.wt .sub2, .wt-drawer .sub2 { font-size: 12px; color: var(--mute); }
.wt .dash, .wt-drawer .dash { color: var(--mute); opacity: .6; }
.wt .num { font-variant-numeric: tabular-nums; }

/* the band: the year picker beside the tabs; tile labels wrap on a laptop */
.wt-year select { font: inherit; font-size: 14px; min-height: 36px; background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; padding: 0 10px; width: auto; }
.wt-year select option { color: var(--ink); background: var(--surface); }
@media (min-width: 601px) { #wt-band + .stats .stat span, #wt-band + .stats .stat small { white-space: normal; overflow: visible; } }

/* the banner under the tiles (the mock's .off) */
.wt-banner { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--green); border-radius: 12px; padding: 12px 16px; margin: 6px 0 12px; font-size: 14px; }
.wt-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.wt-pills { display: inline-flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; scrollbar-width: none; }
.wt-pills button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; font: inherit; font-size: 14px;
  color: var(--mute); cursor: pointer; white-space: nowrap; min-height: 36px; }
.wt-pills button[aria-pressed="true"] { background: var(--green); color: var(--accent-ink); }
.wt-mode { display: flex; gap: 8px; margin: 6px 0 14px; flex-wrap: wrap; }
.wt-mode button { font: inherit; font-size: 16px; font-weight: 600; padding: 10px 22px; border-radius: 12px; min-height: 44px;
  border: 1px solid var(--line); background: var(--card); color: var(--mute); cursor: pointer; }
.wt-mode button[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }

.wt-card { overflow: hidden; }
.wt-card .lead { color: var(--mute); font-size: 13px; margin: -6px 0 12px; }
.wt-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.wt-scroll > svg { min-width: 820px; display: block; }

/* tables: the mock's floating rows */
.wt-tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.wt-tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute);
  padding: 4px 12px; font-weight: 600; white-space: nowrap; }
.wt-tbl td { background: var(--soft); padding: 10px 12px; white-space: nowrap; vertical-align: middle; }
.wt-tbl td.wrap { white-space: normal; min-width: 150px; }
.wt-tbl td:first-child { white-space: normal; min-width: 150px; }
.wt-tbl td, .wt-tbl th { padding-left: 9px; padding-right: 9px; }
.wt-tbl tr td:first-child { border-radius: 9px 0 0 9px; }
.wt-tbl tr td:last-child { border-radius: 0 9px 9px 0; }
.wt-tbl tbody tr { cursor: pointer; }
.wt-tbl tbody tr:hover td { background: var(--gchip); }
.wt-tbl tr.muted { cursor: default; }
.wt-tbl tr.muted:hover td { background: var(--soft); }
.wt .cell2 { display: flex; flex-direction: column; gap: 3px; }
.wt .risk { display: inline-block; min-width: 84px; text-align: center; font-size: 12px; padding: 3px 8px; border-radius: 8px; }
.wt .risk.r0 { color: var(--mute); opacity: .55; }
.wt .risk.r1 { background: var(--wbg); color: var(--wink); }
.wt .risk.r2 { background: var(--r2bg); color: var(--r2ink); font-weight: 600; }
.wt .risk.it { font-style: italic; opacity: .8; min-width: 0; text-align: left; }
.wt .bar { height: 8px; width: 140px; background: var(--grid); border-radius: 4px; overflow: hidden; display: inline-block;
  vertical-align: middle; margin-right: 8px; }
.wt .bar i { display: block; height: 100%; background: var(--pc); }

/* the season timeline */
.wt-legend { display: flex; gap: 6px 18px; font-size: 13px; color: var(--mute); flex-wrap: wrap; margin-bottom: 8px; }
.wt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wt-legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.wt-legend .sw.dia { border-radius: 2px; transform: rotate(45deg); width: 10px; height: 10px; }
.wt-legend .sw.tri { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
#wt-tl text { font: 11px "Public Sans", system-ui, sans-serif; fill: var(--mute); }
#wt-tl text.fname { fill: var(--ink); font-size: 13px; font-weight: 600; }
#wt-tl text.fsub { font-size: 11px; }
#wt-tl text.it { font-style: italic; }
#wt-tl text.pk { fill: var(--ink); }
#wt-tl text.lane { font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.wt-default { border-left-color: var(--scab); }
#wt-tl .row { cursor: pointer; }
#wt-tl .row:hover { fill: var(--gchip); fill-opacity: .5; }
/* Season above the fold and at 80 farms (round 6): slimmer tiles, the
   default-season notice as one line, one filter row (models, region, crop,
   search, events only) that sticks with the date axis while the farms scroll,
   regions folding under their headings */
.band-wrap:has(> #wt-band) .stat { padding: 9px 14px; }
.band-wrap:has(> #wt-band) .stat b { font-size: 21px; }
.band-wrap:has(> #wt-band) .stat small { margin-top: 1px; }
.band-wrap:has(> #wt-band) #wt-band.has-tiles { padding-bottom: 48px; }
.wt-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--mute); margin: -6px 2px 10px; }
.wt-note a { color: var(--green); }
.wt-note-x { border: 0; background: none; color: var(--mute); font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 8px;
  min-width: 32px; min-height: 32px; }
.wt-tlcard { overflow: visible; }
.wt-stick { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); z-index: 6; background: var(--card);
  border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; padding: 12px 20px 0; }
.wt-stick .wt-filters { margin: 0 0 6px; align-items: center; gap: 8px; }
.wt-stick .wt-pills button { padding: 5px 11px; font-size: 13.5px; }
.wt-stick .wt-mode { margin: 0; gap: 0; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: nowrap; }
.wt-stick .wt-mode button { font-size: 14px; padding: 6px 14px; min-height: 36px; border: 0; border-radius: 999px; }
.wt-search input { font: inherit; font-size: 14px; min-height: 38px; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; width: 150px; background: var(--card); color: var(--ink); }
.wt-tog { font: inherit; font-size: 14px; min-height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px;
  background: var(--card); color: var(--mute); cursor: pointer; white-space: nowrap; }
.wt-tog[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--accent-ink); }
.wt-axis { overflow: hidden; }
#wt-axis { display: block; }
#wt-axis text { font: 11px "Public Sans", system-ui, sans-serif; fill: var(--mute); }
.wt-tlcard .card-body { padding-top: 14px; }
.wt-tl-h { font-size: 19px; margin: 0 0 4px; font-weight: 700; }
.wt-tlcard .lead { margin: 0 0 10px; }
.wt-legend .sw.gt { border-radius: 2px; width: 4px; height: 14px; background: var(--green); }
#wt-tl text.ghead { fill: var(--ink); font-size: 13px; font-weight: 700; }
#wt-tl .grp { cursor: pointer; }
#wt-tl .grp:hover rect { fill: var(--gchip); }
.wt-grp td { padding: 4px 0 !important; background: none !important; }
.wt-grp-b { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 14px;
  font-weight: 700; color: var(--ink); cursor: pointer; min-height: 36px; padding: 0 4px; }
.wt-chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  margin: -3px 2px 0; transition: transform .15s; }
.wt-grp-b[aria-expanded="false"] .wt-chev { transform: rotate(-45deg); margin-top: 0; }
@media (max-width: 600px) {
  .wt-stick { padding: 10px 12px 0; }
  .wt-stick .wt-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .wt-stick .wt-filters > * { flex-shrink: 0; }
  .wt-search input { width: 140px; }
  .wt-axis > svg { min-width: 1100px; }
}
.wt-tip { position: fixed; pointer-events: none; background: var(--toast-bg); color: var(--toast-tx); font-size: 12px; padding: 7px 9px;
  border-radius: 8px; white-space: nowrap; z-index: 50; line-height: 1.5; }

/* Now's off-season card */
.wt-off-card { text-align: center; }
.wt-off-card h2 { font-size: 20px; margin: 22px 0 6px; }
.wt-off-card p { color: var(--mute); max-width: 560px; margin: 0 auto 16px; }

/* Insects' biofix cards */
.wt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wt-cols .wt-card { margin: 0; }
@media (max-width: 950px) { .wt-cols { grid-template-columns: 1fr; } }
.wt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.wt-row:first-of-type { border-top: 0; }
.wt-row-t { flex: 1; min-width: 200px; }
.wt-edit, .wt-regform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; width: 100%; margin-top: 8px; }
.wt-edit input, .wt-regform input, .wt-regform select { width: auto; min-height: 36px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 8px; font: inherit; font-size: 14px; background: var(--card); color: var(--ink); }
.wt-regform { border-top: 1px solid var(--line); padding-top: 12px; }

/* the drawer */
.wt-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.wt-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--card); color: var(--ink);
  box-shadow: var(--pop-shadow); transform: translateX(100%); transition: transform .2s; padding: 22px 24px;
  overflow-y: auto; z-index: 41; overscroll-behavior: contain; visibility: hidden; }
.wt-drawer.open { transform: none; visibility: visible; }
.wt-drawer h2 { margin: 0 0 2px; font-size: 20px; padding-right: 40px; }
.wt-drawer h3 { font-size: 15px; margin: 16px 0 6px; }
.wt-x { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 26px; cursor: pointer;
  color: var(--mute); min-width: 44px; min-height: 44px; }
.wt-eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.wt-kv { display: grid; grid-template-columns: 112px 1fr; gap: 8px 12px; font-size: 14px; margin: 14px 0; }
.wt-kv > div:nth-child(odd) { color: var(--mute); }
.wt-kv.one { margin: 6px 0 0; }
.wt-set { min-height: 28px; padding: 0 4px; font-size: 13px; }
.wt-drawer .chip { font-size: 11.5px; padding: 1px 8px; }
.wt-drawer .chip.src-c { background: var(--conbg); color: var(--conink); }
.wt-drawer .chip.src-o { background: var(--gchip); color: var(--gink); }
.wt-drawer .chip.src-r { background: var(--nbg); color: var(--mute); }
.wt-drawer .chip.src-e { background: var(--estbg); color: var(--estink); }
.wt-strip { display: flex; gap: 4px; align-items: center; margin: 4px 0; }
.wt-strip .k { width: 78px; flex: none; font-size: 13px; }
.wt-strip > span:not(.k) { flex: 1; text-align: center; font-size: 11.5px; }
.wt-strip.head > span:not(.k) { color: var(--mute); }
.wt-drawer .r { display: block; padding: 4px 2px; border-radius: 8px; line-height: 1.2; white-space: normal; }
.wt-drawer .r.no { color: var(--mute); }
.wt-drawer .r.lo { background: var(--gchip); color: var(--gink); }
.wt-drawer .r.mod { background: var(--wbg); color: var(--wink); }
.wt-drawer .r.hi { background: var(--hibg); color: var(--hiink); }
.wt-drawer .r.inf { background: var(--infbg); color: var(--infink); font-weight: 600; }
.wt-drawer .r.wide { flex: 5; text-align: left; padding-left: 8px; }
.wt-sent { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--mute); }
.wt-pd { border-top: 1px solid var(--line); padding: 12px 0; }
.wt-pd > b { display: block; margin-bottom: 6px; }
.wt-pd .sub2 { margin: 6px 0 0; }
.wt-drawer .c { border-radius: 9px; padding: 6px 8px; font-size: 12.5px; line-height: 1.3; }
.wt-drawer .c b { display: block; font-size: 13px; }
.wt-drawer .c .t { display: block; opacity: .85; font-variant-numeric: tabular-nums; }
.wt-drawer .c.none, .wt-drawer .c.needs { color: var(--mute); }
.wt-drawer .c.pre { background: var(--nbg); color: var(--mute); }
.wt-drawer .c.soon { background: var(--wbg); color: var(--wink); }
.wt-drawer .c.in { background: var(--hibg); color: var(--hiink); }
.wt-drawer .c.done { background: var(--gchip); color: var(--gink); }
.wt-drawer .c.ask { background: var(--askbg); color: var(--askink); }
.wt-drawer .pbar { height: 5px; background: var(--line); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.wt-drawer .pbar i { display: block; height: 100%; background: currentColor; opacity: .6; }
.wt-steps { display: flex; justify-content: space-between; margin: 16px 0 6px; position: relative; flex-wrap: wrap; row-gap: 10px; }
.wt-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 6px; height: 2px; background: var(--line); }
.wt-steps div { text-align: center; flex: 1; position: relative; font-size: 13px; min-width: 64px; }
.wt-steps i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin: 0 auto 5px; }
.wt-steps small { display: block; color: var(--mute); }
.wt-kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.wt-kv2 div { background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.wt-kv2 b { display: block; font-size: 20px; }
.wt-kv2 span { font-size: 12px; color: var(--mute); }
.wt-dsec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; font-size: 14px; }
.wt-dsec h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.wt-dsec li { margin: 3px 0; }
.wt-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 600px) {
  .wt-drawer { padding: 18px 16px; }
  .wt-kv { grid-template-columns: 96px 1fr; }
  .wt-mode button { flex: 1; }
  .wt-scroll > svg { min-width: 1100px; }   /* legible text; the card scrolls sideways */
}

/* the season recap page (round 5): the toolbar above the recap; printing
   leaves only the recap (no rail, no top bar, no toolbar, no edit hints) */
.rc-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: 760px; margin: 0 auto 12px; }
.rc-grow { flex: 1; }
.rc-saved { min-width: 90px; }
body.rc-mode .view .rc { max-width: 804px; margin: 0 auto; }
@media print {
  body.rc-mode .rail, body.rc-mode .top, body.rc-mode .rc-bar, body.rc-mode #toast, body.rc-mode #rail-sheet { display: none !important; }
  body.rc-mode, body.rc-mode .shell, body.rc-mode .main, body.rc-mode .view { display: block !important; margin: 0 !important; padding: 0 !important;
    max-width: none !important; background: #fff !important; height: auto !important; overflow: visible !important; }
  body.rc-mode .view .rc { max-width: none; }
  @page { margin: 14mm 12mm; }
}

/* ── This week (mock-program-week.html) ───────────────────────────────── */
.wt { --wk-over: #f6d2cc; --wk-over-ink: #8f2316; --wk-near: #fbecc8; --wk-near-ink: #7a5200;
      --wk-ok: #d8eedc; --wk-ok-ink: #1f5a2c; --wk-nt: #eef0ee; --wk-nt-ink: #4b544e; }
[data-theme=dark] .wt { --wk-over: #46201a; --wk-over-ink: #f3a99c; --wk-near: #3a2f12; --wk-near-ink: #f0cf7f;
      --wk-ok: #1e3a25; --wk-ok-ink: #a6dcb1; --wk-nt: #242b27; --wk-nt-ink: #b7c1ba; }
.wk-bar { align-items: center; justify-content: space-between; }
.wk-ctls { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wk-ctl select { font: inherit; font-size: 14px; min-height: 40px; width: auto; padding: 0 30px 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.wk-xl { min-height: 40px; }
.wk-empty { margin: 16px auto; }
.wk-grid { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; overscroll-behavior-x: contain; }
.wk-grid:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wk-tbl { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.wk-tbl th, .wk-tbl td { border-bottom: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
.wk-tbl thead th { background: var(--soft); font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; vertical-align: bottom; }
.wk-tbl thead .wk-grp { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--green); }
.wk-col { min-width: 84px; white-space: normal !important; line-height: 1.25; }
.wk-unit { display: block; font-weight: 400; font-size: 11px; color: var(--mute); }
.wk-sticky { position: sticky; left: 0; z-index: 1; background: var(--card); text-align: left !important;
  border-right: 1px solid var(--line); min-width: 170px; max-width: 240px; white-space: normal !important; }
.wk-tbl thead .wk-sticky { background: var(--soft); z-index: 2; }
.wk-region td { background: var(--gchip); color: var(--gink); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.wk-region td.wk-sticky { background: var(--gchip); }
.wk-farm td.wk-sticky { font-weight: 600; }
.wk-farm td.wk-sticky a { color: var(--ink); text-decoration: none; }
.wk-farm td.wk-sticky a:hover { text-decoration: underline; }
.wk-farm small { display: block; font-weight: 400; color: var(--mute); font-size: 11.5px; }
.wk-block td.wk-sticky { padding-left: 22px; }
.wk-stage { font-size: 12px; color: var(--mute); }
.wk-c { text-align: center; padding: 4px !important; }
.wk-v { display: inline-block; min-width: 52px; padding: 3px 6px; border-radius: 6px; font: inherit; font-weight: 600; font-size: 12.5px;
  border: 0; line-height: 1.3; }
button.wk-v { cursor: pointer; }
button.wk-v:hover { box-shadow: inset 0 0 0 2px currentColor; }
button.wk-v:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wk-over { background: var(--wk-over); color: var(--wk-over-ink); }
.wk-near { background: var(--wk-near); color: var(--wk-near-ink); }
.wk-ok { background: var(--wk-ok); color: var(--wk-ok-ink); }
.wk-nt { background: var(--wk-nt); color: var(--wk-nt-ink); }
.wk-dash { color: var(--mute); font-weight: 400; background: none; }
.wk-gr { text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }   /* entered by the grower */
.wk-key { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12.5px; color: var(--mute); margin: 10px 2px 0; }
@media (max-width: 600px) {
  .wk-sticky { min-width: 132px; max-width: 150px; }
  .wk-bar { flex-direction: column; align-items: stretch; }
  .wk-ctls { width: 100%; }
  .wk-ctl { flex: 1 1 140px; } .wk-ctl select { width: 100%; }
}
