/* ===== v1.90 Sunstone — Weather / System / Insights tabs (2026-09-12) =====
   Card-internal layout for the three tabs ported to the design-v2 mockups
   (design-v2/weather.html, system.html, insights.html). Tokens + card chrome
   live in app.css / tokens.css; this file only adds v190-* pieces and scopes
   overrides under the card classes the JS emits. The roof drawing (sysov svg),
   the sky-cam card and the flow diagram are deliberately untouched. */

/* ---- shared primitives -------------------------------------------------- */
.v190-rows { display: flex; flex-direction: column; }
.v190-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.v190-row:first-child { border-top: 0; }
.v190-row b { font: 600 15px 'Space Grotesk', 'Hanken Grotesk', sans-serif; color: var(--text); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v190-unit { font: 500 12px 'Hanken Grotesk', 'Inter', sans-serif; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.v190-ctx { font-size: 12px; color: var(--muted); white-space: nowrap; }
.v190-note { font-size: 12px; line-height: 1.4; color: var(--muted); }
.v190-sentence { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 12px; }
.v190-sentence b { color: var(--text); font-weight: 600; }

/* two-up hairline stats: label, big number, optional note under */
.v190-stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 10px; }
.v190-stats2--2 { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.v190-stat { min-width: 0; padding: 4px 0; display: flex; flex-direction: column; gap: 2px; }
.v190-stat + .v190-stat { border-left: 1px solid var(--line); padding-left: 12px; }
.v190-stat .lbl { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.v190-stat-v { display: flex; align-items: baseline; gap: 2px; min-width: 0; flex-wrap: wrap; }
.v190-stat-v .num { font-size: 28px; line-height: 1.05; color: var(--text); }
.v190-stat .v190-note { margin-top: 2px; }

/* thin meter track */
.v190-track { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin: 6px 0; }
.v190-track i { display: block; height: 100%; border-radius: 2px; background: var(--blue); }

/* lead figure (label over a big number) */
.v190-lead { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; }
.v190-lead .lbl { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.v190-lead-v { display: flex; align-items: baseline; gap: 2px; margin-top: 2px; }
.v190-lead-v .num { font-size: 28px; line-height: 1.05; color: var(--text); }

/* a card that visually attaches to the one above (hourly under the hero) */
.card--hero-follow { margin-top: -4px; }
.cardwrap:has(> .card--hero-follow) { margin-top: -4px; }

/* fold (details) inside a card: summary reads like a .v190-row, chevron turns when open */
.v190-fold { border-top: 1px solid var(--line); margin-top: 8px; }
.v190-fold > summary { list-style: none; cursor: pointer; padding: 10px 0; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.v190-fold > summary::-webkit-details-marker { display: none; }
.v190-fold > summary::after { content: "›"; font: 600 18px 'Space Grotesk', sans-serif; line-height: 1; color: var(--muted); transition: transform .18s ease; }
.v190-fold[open] > summary::after { transform: rotate(90deg); }
.v190-fold > summary + * { padding-top: 6px; }

/* ---- Weather ------------------------------------------------------------ */
/* the open-meteo head hero (no sunrise arc, no sky-cam frame) is replaced by
   the hero card; the Davis hero keeps its arc / camera and stays */
.wx-hero:not(.wx-hero--sky):not(:has(.wx-sunrow, .sunarc)) { display: none; }

.v190-wxhero-top { display: flex; align-items: flex-start; gap: 14px; }
.v190-wxhero-temp { font-size: 52px; line-height: 1; color: var(--text); }
.v190-wxhero-ic { color: var(--amber); margin-top: 6px; display: inline-flex; }
.v190-wxhero-ic svg { display: block; }
.v190-wxhero-line { font-size: 14px; color: var(--muted); margin-top: 6px; }
.v190-wxhero-top + .v190-wxhero-line { margin-top: 4px; }
.v190-wxhero-sum { font-size: 14px; line-height: 1.45; color: var(--text); margin-top: 10px; }
.v190-wxhero-wear { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.v190-wxhero-shirt { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: var(--muted); }

/* hourly columns — no boxes, thin rule above when inside the hero */
.v190-hrs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
.v190-hrs::-webkit-scrollbar { display: none; }
.v190-hrs--in { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.v190-hr { flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 0; }
.v190-hr-t { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.v190-hr-ic { color: var(--muted); display: inline-flex; }
.v190-hr-ic svg { display: block; }
.v190-hr-v { font-size: 16px; color: var(--text); }
.v190-hr-r { font-size: 11px; color: var(--blue); min-height: 13px; line-height: 13px; }
.v190-hrcard { padding-top: 12px; }

/* Conditions */
.v190-cond .v190-uvnote { margin-top: 2px; }
.v190-aq { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.v190-aq-l { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.v190-aq-l b { font-size: 16px; color: var(--text); }

/* Week rows */
.v190-wk-rows { margin-top: 4px; }
.v190-wk-row {
  width: 100%; display: flex; align-items: center; gap: 0; padding: 9px 0;
  border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; border-radius: 0;
}
.v190-wk-row:first-child { border-top: 0; }
.v190-wk-d { width: 48px; flex: none; font-size: 14px; color: var(--muted); }
.v190-wk-ic { width: 26px; flex: none; color: var(--muted); display: inline-flex; }
.v190-wk-ic svg { display: block; }
.v190-wk-p { width: 38px; flex: none; font-size: 12px; color: var(--blue); text-align: right; font-variant-numeric: tabular-nums; }
.v190-wk-p:empty::before { content: "–"; color: var(--line); }
.v190-wk-lo { width: 30px; flex: none; font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.v190-wk-bar { flex: 1; height: 4px; background: var(--line); border-radius: 2px; position: relative; margin: 0 8px; min-width: 40px; }
.v190-wk-bar i { position: absolute; top: 0; height: 100%; background: var(--muted); border-radius: 2px; }
.v190-wk-hi { width: 30px; flex: none; font-size: 15px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

/* Tides */
.v190-tide-l { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.v190-tide-ar { font: 600 15px 'Space Grotesk', sans-serif; width: 14px; text-align: center; }
.v190-tide-ar.up { color: var(--blue); }
.v190-tide-ar.dn { color: var(--muted); }

/* the sky-cam card only picks up the card radius */
.skycam-card { border-radius: var(--r-card); }

/* ---- System ------------------------------------------------------------- */
.v190-sysov .card-head { flex-wrap: wrap; }   /* v1.98: the "Since Sep 2025" context drops to its own line instead of truncating */
.v190-sysov .card-head .card-title { white-space: normal; }
.v190-sysov .card-head .v190-ctx { max-width: none; overflow: visible; text-overflow: clip; }
.v190-sysov-sub { font-size: 14px; line-height: 1.4; color: var(--text); margin-top: 8px; }
.v190-sysov .v190-note { margin-top: 2px; }
.v190-strings-chart { margin-top: 14px; }
.v190-strings .v190-stats2 { margin-top: 12px; }

/* ---- Insights ----------------------------------------------------------- */
/* section tabs: transparent underline tabs, amber marker (markup in ui.js) */
.ins-cats2 { gap: 8px; border-bottom: 1px solid var(--line); padding: 0 2px; }
.ins-cats-sc { gap: 14px; }   /* v1.98: tabs scroll inside the row, AI button pinned outside */
.ins-tab { padding: 8px 0 10px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.ins-tab.on { color: var(--text); font-weight: 600; border-bottom-color: var(--amber); }
.v190-seg { display: flex; gap: 14px; border-bottom: 1px solid var(--line); }
.v190-seg > * { padding: 8px 0 10px; font-size: 14px; color: var(--muted); border: 0; background: transparent; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.v190-seg > .on { color: var(--text); font-weight: 600; border-bottom-color: var(--amber); }
/* period chips inside cards: active = amber on white */
.pa-pill { background: var(--tile); border-color: transparent; color: var(--muted); font-weight: 600; }
.pa-pill.on { background: var(--amber); border-color: var(--amber); color: #fff; }
/* "More in …" list: a sheet card with a real title and hairline rows */
.ins-others { border: 0; border-radius: var(--r-card); box-shadow: 0 1px 0 rgba(34,28,20,.05), 0 10px 24px -16px rgba(34,28,20,.28); padding: 4px 16px 6px; }
[data-theme="dark"] .ins-others { box-shadow: none; border: 1px solid var(--line); }
.ins-others-h { padding: 12px 0 4px; font: 600 18px 'Space Grotesk', 'Hanken Grotesk', sans-serif; letter-spacing: -.01em; color: var(--text); }
.ins-others .ins-mitem { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); }
.ins-others .ins-mitem:last-child { border-bottom: 0; }
.ins-others .ins-mitem .num { font-weight: 600; color: var(--text); }

/* v1.90.2: accuracy sits in the fold summary, right-aligned, since the card head is shared with the zoom button */
.v190-fold > summary .v190-ctx { margin-left: auto; padding-right: 8px; font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---- v1.91 Stevens Station: weather tab additions --------------------------- */
.wx-periodbar { margin: -2px 0 6px; }
.wx-archive-note { margin: -4px 0 4px; }
.wx-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 11px; color: var(--muted); }
.wx-legend span { display: inline-flex; align-items: center; gap: 5px; }
.wx-sw { display: inline-block; width: 14px; height: 2px; background: var(--muted); }
.wx-sw--amber { background: var(--amber); }
.wx-sw--teal { background: var(--teal); }
.wx-sw--band { height: 8px; background: color-mix(in srgb, var(--muted) 22%, transparent); }
.wx-sw--grey { height: 8px; background: color-mix(in srgb, var(--muted) 24%, transparent); }
.wx-rose-blk { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.wx-strip .num { font-weight: 600; color: var(--text); }
.chart-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 12.5px; }

/* ======================= v1.101 Apple controls (2026-09-17) =======================
   His ask: "buttons look dull, need that apple feel", his pick: segmented pills everywhere.
   These live HERE because this sheet loads last and the v1.90 underline-tab rules above
   would otherwise win over app.css. The Insights category row becomes the same segmented
   control as every .periodbar (track + raised thumb, tokens in tokens.css). */
.ins-cats2 { gap: 8px; border-bottom: 0; padding: 0; margin-bottom: 12px; }
.ins-cats-sc { background: var(--seg-track); border-radius: 12px; padding: 3px; gap: 3px; }
.ins-tab {
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border: 0;
  border-radius: 9px;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.ins-tab.on {
  color: var(--text);
  font-weight: 700;
  background: var(--seg-thumb);
  box-shadow: var(--thumb-shadow);
  border: 0;
}
.ins-tab:active { transform: scale(0.97); }
/* in-card period chips: a real surface when off, a lifted amber pill when on */
.pa-pill { background: var(--card); border-color: transparent; box-shadow: var(--btn-shadow); }
.pa-pill.on { box-shadow: var(--btn-shadow-lift); }
.pa-pill:active { transform: scale(0.96); }
/* the chart pager reads as one control: raised surface, muted chevrons, spring press */
.ins-pgbtn, .ins-title { background: var(--card); border-color: transparent; box-shadow: var(--btn-shadow); }
.ins-pgbtn:active, .ins-title:active { transform: scale(0.97); }
.ins-pgbtn, .ins-title, .ins-aibtn {
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out);
}

/* ======================= v1.111 Samsung-style weather head (2026-10-04) =======================
   His pick from a Samsung weather screenshot: big "Now" header, tall hourly columns
   (temp / icon / time) that scroll through the whole forecast, and a day row that jumps
   the strip to a day and follows it as he scrolls. */
.wxnow { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; text-align: left; padding: 0 16px; box-sizing: border-box; }
.v190-wxhero .wxnow { padding: 0; }
.wxnow-l { display: flex; flex-direction: column; min-width: 0; }
.wxnow-lbl { font-size: 17px; font-weight: 600; color: var(--text); }
.wxnow-tr { display: flex; align-items: center; gap: 10px; }
.wxnow-t { font-size: 76px; font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--text); }
.wxnow-ic { display: inline-flex; margin: 0; }
.wxnow-ic svg { display: block; }
.wxnow-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-bottom: 10px; text-align: right; min-width: 0; }
.wxnow-cond { font-size: 19px; font-weight: 600; color: var(--text); line-height: 1.2; }
.wxnow-feels { font-size: 15px; color: var(--muted); }
.wx-hero .wxnow + .wx-hero-meta { margin-top: 10px; }
@media (max-width: 380px) { .wxnow-t { font-size: 62px; } .wxnow-cond { font-size: 17px; } }
/* v1.111.1 (his screenshot "layout looks bad"): on a phone the condition column wrapped
   under the temp and sat half right-aligned, with the meta lines centred below. Now one
   left edge: Now / temp + icon / "Clear · Feels like" / greeting, H-L, sun row, arc. */
@media (max-width: 999px) {
  .wxnow { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 4px; }
  .wxnow-r { flex-direction: row; align-items: baseline; gap: 10px; padding-bottom: 0; text-align: left; }
  .wxnow-r .wxnow-feels::before { content: "·"; margin-right: 10px; }
  .wx-hero:has(.wxnow) { align-items: stretch; text-align: left; }
  .wx-hero:has(.wxnow) .wx-hero-meta { align-items: flex-start; padding: 0 16px; margin-top: 14px; }
  .wx-hero:has(.wxnow) .wx-sunrow { justify-content: flex-start; }
}
@media (min-width: 1000px) { .wx-hero:has(.wxnow) .wx-hero-meta { flex: none; } }
.wx-stale { margin-top: 6px; color: var(--amber); }
/* the dashed arc track vanished into the sky-cam photo */
.wx-hero--sky .sunarc .sa-track { stroke: var(--muted); opacity: .7; }

.wct-sun { color: var(--amber); }
.wct-cloud { color: var(--muted); }
.wct-wet { color: var(--blue); }
.wct-storm { color: var(--amber); }

/* tall hourly columns: temp on top, big icon, rain %, time under */
.v190-hrs { scroll-behavior: auto; }
.v190-hr { width: 64px; gap: 8px; padding: 4px 0; }
.v190-hr-v { order: 0; font-size: 18px; font-weight: 600; }
.v190-hr-ic { order: 1; }
.v190-hr-r { order: 2; min-height: 12px; line-height: 12px; margin-top: -4px; }
.v190-hr-t { order: 3; font-size: 13px; color: var(--muted); }
.v190-hr--day { border-left: 1px solid var(--line); }
.v190-hr--day .v190-hr-t { color: var(--text); font-weight: 700; }

/* day row: tap a day, the strip scrolls there; the outline follows the strip */
.wxdays { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px -4px 0; padding: 2px 4px; }
.wxdays::-webkit-scrollbar { display: none; }
.wxday {
  flex: 0 0 calc((100% - 24px) / 5); min-width: 62px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 2px 10px; border: 1.5px solid transparent; border-radius: 16px;
  background: transparent; color: var(--text); font: inherit; cursor: pointer;
  transition: border-color 180ms var(--ease-out, ease), background 180ms var(--ease-out, ease);
}
.wxday.on { border-color: color-mix(in srgb, var(--blue) 70%, var(--line)); background: color-mix(in srgb, var(--blue) 7%, transparent); }
.wxday:active { transform: scale(.97); }
.wxday-n { font-size: 14px; font-weight: 600; }
.wxday-ic { display: inline-flex; }
.wxday-ic svg { display: block; }
.wxday-t { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wxday.on .wxday-t { color: var(--text); }

/* v1.113.2: battery card (System tab) data reads bigger, his ask 2026-10-08 */
.sysbatt .v190-row { font-size: 16px; }
.sysbatt .v190-row b { font-size: 18px; }
.sysbatt .v190-unit { font-size: 14px; }
.sysbatt .v190-sentence { font-size: 16px; }
.sysbatt .lbl { font-size: 14px; }
.sheet--dev[data-dev="battery"] .krow { font-size: 16px; padding-top: 9px; padding-bottom: 9px; }
.sheet--dev[data-dev="battery"] .krow .v { text-align: right; }

/* ======================= ss1125 Fable design pass (2026-11-25) =======================
   Loads last on purpose (same reason as the v1.101 block above). */
/* D3: Insights phone header - category row is underline tabs (reads differently from the
   Weather/Solar segmented switch right above it), all five fit 332 px, AI lives in the app bar */
#cards-insights .ins-cats2 { border-bottom: 1px solid var(--line); padding: 0; margin-bottom: 10px; gap: 0; }
#cards-insights .ins-cats-sc { background: none; border-radius: 0; padding: 0; gap: 0; flex: 1; justify-content: space-between; }
#cards-insights .ins-cats-sc { -webkit-mask-image: none; mask-image: none; }
#cards-insights .ins-tab { padding: 10px 3px; font-size: 13.5px; font-weight: 500; color: var(--muted); border-radius: 0;
  background: none; box-shadow: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
#cards-insights .ins-tab.on { background: none; box-shadow: none; color: var(--text); font-weight: 700; border-bottom-color: var(--amber); }
#cards-insights .ins-cats2 .ins-aibtn { display: none; }

/* D1: one period switch everywhere - the Station graphs segmented bar (track + raised thumb) */
.ss-seg { margin-top: 12px; }
.ss-seg .pill { font-size: 14px; font-weight: 600; padding: 8px 4px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: clip; }
.ss-subrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ss-range { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; min-height: 36px; border-radius: 10px;
  background: var(--seg-track); color: var(--text); border: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ss-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 7px 4px; min-height: 36px; background: none; border: 0;
  font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.ss-toggle i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--muted); box-sizing: border-box; }
.ss-toggle.on { color: var(--text); }
.ss-toggle.on i { background: var(--amber); border-color: var(--amber); }

/* D5: chart readout - the time gets its own line, values in two even right-aligned columns,
   15 px, nothing ellipsised (long sentences wrap onto their own full-width row) */
.chart-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 18px; font-size: 14px; line-height: 1.35; margin: 8px 0 4px; }
@media (min-width: 900px) { .chart-readout { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.chart-readout .ro-t { grid-column: 1 / -1; font-size: 13px; }
.chart-readout .ro-v { white-space: normal; column-gap: 7px; grid-template-columns: 8px minmax(0, 1fr) auto; }
.chart-readout .ro-v i { width: 8px; height: 8px; }
.chart-readout .ro-v .ro-n { overflow: visible; text-overflow: clip; white-space: nowrap; }
.chart-readout .ro-v b { font-family: 'Space Grotesk', 'Hanken Grotesk', sans-serif; font-size: 15px; white-space: nowrap; }
.chart-readout .ro-v:has(b.ro-wide) { grid-column: 1 / -1; }
.chart-readout .ro-v b.ro-wide { white-space: normal; overflow: visible; text-overflow: clip; font-size: 14px; }

/* D6: weather hero - dark facts row, sunrise / arc / sunset on one line, desktop edge */
.wx-hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; font-weight: 500; color: var(--text); }
.wx-hero-facts b { font-weight: 700; }
.wx-hero .wx-hero-meta, .wx-hero .wx-hero-rain { color: var(--text); }
.wx-sunline { display: flex; align-items: flex-end; gap: 10px; width: 100%; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.wx-sun-t { display: inline-flex; align-items: center; gap: 5px; flex: none; padding-bottom: 2px; }
.wx-sun-arc { flex: 1; min-width: 0; display: flex; justify-content: center; }
.wx-sun-arc .sunarc { margin-top: 0; width: 100%; max-width: 150px; height: auto; }
@media (min-width: 900px) { .wx-hero-meta, .wx-hero:has(.wxnow) .wx-hero-meta { padding-right: 24px; max-width: 340px; } }
.wx-hero .wxnow-feels { color: color-mix(in srgb, var(--text) 75%, transparent); }

/* D11: conditions tiles - labels never wrap, range values one size down */
.v190-cond .lbl, .v190-cond .v190-row > span, .cond-wind-rows .v190-row > span { white-space: nowrap; }
.v190-stat-v--range .num { font-size: 18px; }
.v190-stat-v--range { white-space: nowrap; }

/* D15: desktop Conditions - an even grid. Now tiles 4 across (2 full rows), the wind block
   vertically centred beside them, extremes and rain 4 across, Tides sized to its content */
@media (min-width: 1200px) {
  .v190-cond .cond-top { align-items: center; }
  .v190-cond .v190-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v190-cond .v190-tiles .v190-stat { border-left: 0; padding-left: 0; border-top: 0; }
  .v190-cond .v190-tiles .v190-stat:not(:nth-child(4n+1)) { border-left: 1px solid var(--line); padding-left: 12px; }
  .v190-cond .v190-tiles .v190-stat:nth-child(n+5) { border-top: 1px solid var(--line); }
  /* 7 Now tiles (wind chill hidden): the last one spans 2 so the row still closes */
  .v190-cond .cond-top-now .v190-tiles .v190-stat:last-child:nth-child(4n+3) { grid-column: span 2; }
  #panel-weather .cards > .cardwrap[data-key="tides"], #panel-weather .cards > .cw-group { align-self: start; }
}

/* D4: the (i) lives at the right end of the card head; 22 px mark, 40 px hit area */
.card-head .info-i--head { position: relative; margin: 0 0 0 8px; width: 22px; height: 22px; padding: 0; flex: none; }
.card-head .info-i--head::before { content: ""; position: absolute; inset: -9px; }
.card-head:has(.info-i--head) { align-items: center; }
.info-pop { white-space: pre-line; font-size: 13.5px; color: var(--text); }

/* D7: every sheet head = 17 px title left, close X right; section picker = underline tabs */
.sheet-head { display: flex; align-items: center; gap: 10px; }
.sheet-title { font-size: 17px; font-weight: 700; color: var(--text); }
.sheet-x { margin-left: auto; flex: none; width: 40px; height: 40px; margin-right: -8px; background: none; border: 0;
  color: var(--muted); font-size: 17px; cursor: pointer; border-radius: 50%; }
.sheet-head #hw-state + .sheet-x { margin-left: 0; }
.sheet-tabs { display: flex; gap: 0; overflow-x: auto; position: sticky; top: 0; z-index: 1; background: var(--card);
  border-bottom: 1px solid var(--line); margin: 6px 0 10px; scrollbar-width: none; }
.sheet-tabs::-webkit-scrollbar { display: none; }
.sheet-tabs .ins-tab { flex: 1 0 auto; padding: 10px 10px; font-size: 14px; font-weight: 500; color: var(--muted); background: none;
  border: 0; border-radius: 0; box-shadow: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sheet-tabs .ins-tab.on { color: var(--text); font-weight: 700; background: none; box-shadow: none; border-bottom-color: var(--amber); }
.wx-banner > .info-i { margin: 0; flex: none; }

/* D8: card zoom = one row, slider + icon Full screen */
.zs-row--one { gap: 10px; margin: 4px 0 0; }
.zs-row--one .zs-track { flex: 1; min-width: 0; }
.zs-full--icon { width: 40px; height: 40px; padding: 0; justify-content: center; flex: none; margin-left: 0; border-radius: 10px; }

/* D13: card head tags are short facts and never ellipsise; a long title wraps instead */
.card-head .v190-ctx { flex: 0 1 auto; min-width: 0; overflow: visible; text-overflow: clip; max-width: none; white-space: normal; text-align: right; line-height: 1.3; }
.card-head .card-title { flex: none; }
.v190-bill .ss-seg + .v190-lead { margin-top: 14px; }

/* D10: This quarter - the saving is the second answer, under the bill so far */
.ss-bill-saved { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; font-size: 15px; color: var(--muted); }
.ss-bill-saved b { font-size: 20px; font-weight: 700; color: var(--green); }
.card-head > span:first-child:not(.v190-ctx) { flex: 0 0 auto; max-width: 62%; }
