/* ===== v1.90 Sunstone - Solar tab (2026-09-12) =====
   Card-level layout for the Solar tab only (js/cards/solar.js). Tokens and the
   global sheet-on-paper pass live in tokens.css / app.css. The flow diagram
   (.fl-*) is untouched. Classes are v190-* or scoped under a card class. */

/* ---- shared pieces ---------------------------------------------------- */
.v190-head { align-items: baseline; margin-bottom: 12px; }
.v190-head .card-title { font-size: 18px; }
.v190-ctx { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }

/* label left, value right, hairline between rows */
.v190-rows { display: flex; flex-direction: column; }
.v190-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.v190-row:first-child { border-top: 0; }
.v190-row[hidden] { display: none; }
.v190-row > span:first-child { min-width: 0; }
.v190-row .v { font-weight: 600; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; flex: none; }
/* review1115: sub text stacks UNDER the number, right aligned (was inline, overflowed on phones) */
.v190-row .v small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin: 2px 0 0; text-align: right; }
.v190-row { align-items: flex-start; }
.v190-row .v small[hidden] { display: none; }
.v190-green, .v190-row .v.v190-green .num { color: var(--green); }
/* a rows block that follows a lead / stats block gets its own top rule */
.v190-meters + .v190-rows, .v190-lead + .v190-rows, .v190-track + .v190-rows, .grid3 + .v190-rows, .wk-row + .v190-rows { margin-top: 8px; }
.v190-meters + .v190-rows .v190-row:first-child, .v190-track + .v190-rows .v190-row:first-child, .v190-lead + .v190-rows .v190-row:first-child { border-top: 1px solid var(--line); }

/* meter: label left, value+pct right, 4px track under */
.v190-meters { margin-top: 12px; }
.v190-meter { margin: 0 0 10px; }
.v190-meter:last-child { margin-bottom: 0; }
.v190-ml { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.v190-ml b { font-weight: 600; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.v190-ml em { font-style: normal; font-weight: 600; font-size: 13px; }
.v190-meter .bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.v190-meter .bar i { display: block; height: 100%; border-radius: 2px; }

/* lead number row: 28px ink number, small unit, optional right-hand figure */
.v190-lead { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.v190-lead-num { font-size: 28px; line-height: 1.05; }
.v190-lead-unit { font-size: 13px; color: var(--muted); margin-left: 2px; }
.v190-lead-right { margin-left: auto; font-size: 16px; font-weight: 600; }
.v190-lead-right.v190-ctx { font-weight: 500; font-size: 12px; max-width: none; }
.v190-track { margin-top: 8px; }
.v190-track .bar { height: 4px; border-radius: 2px; background: var(--line); }

/* one muted note line at the foot of a card */
.v190-note { font-size: 12px; line-height: 1.45; color: var(--muted); margin-top: 10px; }
.v190-note[hidden] { display: none; }

/* ---- hero (today_glance) ---------------------------------------------- */
.card.card--hero {
  background: linear-gradient(180deg, var(--sun-soft), var(--card) 60%);
  padding: 14px 16px 10px;
}
/* the flow card sits directly under the hero so they read as one block */
.cardwrap[data-key="today_glance"] + .cardwrap[data-key="energy_flow"] { margin-top: -4px; }
.v190-hero .v190-eyebrow.ai-ticker {
  min-height: 0; padding: 0; margin: 0 0 8px; background: transparent; border: 0; border-radius: 0;
  box-shadow: none; font-size: 12.5px; color: var(--muted); gap: 7px;
}
.v190-hero .v190-eyebrow .ait-h { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.v190-hero .v190-eyebrow .ait-ic { display: none; }
.v190-hero-lead { display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.v190-hero-num { font-size: 52px; line-height: 1; letter-spacing: -.03em; }
.v190-hero-alt { font-size: 24px; opacity: .55; }
.v190-hero-alt[hidden] { display: none; }
/* ss1125 D2: every number says what it is */
.v190-hero-pct { font-size: 26px; font-weight: 700; line-height: 1; margin-left: 1px; }
.v190-hero-unit { font-size: 17px; font-weight: 600; color: var(--text); margin-left: 10px; line-height: 1.2; flex: 1 1 140px; min-width: 0; }
.v190-hero-sub { font-size: 15px; color: var(--muted); margin-top: 8px; }
.v190-hero-sub b { color: var(--text); font-weight: 700; }
.v190-hero-sub[hidden] { display: none; }
.v190-hero-side { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, var(--hairline, rgba(127,127,127,.2))); font-size: 15px; color: var(--muted); }
.v190-hero-side b { font-weight: 600; font-size: 17px; color: var(--text); }
.v190-hero-side b.v190-green { color: var(--green); }
.v190-sep { opacity: .5; }

/* ---- Today card --------------------------------------------------------- */
.v190-today .grid3 { gap: 0; }
.v190-today .grid3 .stat-tile { padding: 2px 12px 2px 0; align-items: flex-start; text-align: left; }
.v190-today .grid3 .stat-tile + .stat-tile { padding-left: 12px; }
.v190-today .stat-tile .lbl { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.v190-today .stat-tile .val .num { font-size: 26px; line-height: 1.05; color: var(--text); }
.v190-today .stat-tile .val .vu-unit { font-size: 12px; color: var(--muted); }
.v190-today .v190-meters { margin-top: 14px; }

/* ---- Solar forecast ------------------------------------------------------- */
.v190-wk .wk-row { gap: 6px; }
.v190-wk .wk-bar { width: 18px; border-radius: 2px; background: var(--amber); opacity: .45; }
.v190-wk .wk-col:first-child .wk-bar { opacity: 1; }
.v190-wk .wk-row + .v190-rows { margin-top: 10px; }
/* forecast rows: the suffix (best window, temps) sits on its own line under the value */
.v190-wk .v190-row { align-items: flex-start; }
.v190-wk .v190-row .v small { display: block; margin: 2px 0 0; white-space: nowrap; }
.v190-wk .v190-row .v small[hidden] { display: none; }

/* ---- Hot water ------------------------------------------------------------ */
.v190-hw .v190-lead { margin-top: 0; }

/* v1.105.6: a row whose value is too long to sit beside its label stacks instead.
   The off-peak windows row on the hot-water sheet grew a third window ("00:38–02:28,
   04:28–04:40, 05:48–06:50") and .v190-row .v is flex:none + nowrap, so the value took
   its full intrinsic width, crushed the label to ~2 characters wide (it wrapped to
   "Of / peak / today") and then overflowed straight across the top of it. Label on its
   own line, windows underneath, free to wrap at the commas.
   Doubled class beats the later .v190-row in v190-tabs.css on specificity. */
.v190-row.v190-row--stack { flex-direction: column; align-items: stretch; gap: 3px; }
.v190-row.v190-row--stack .v {
  flex: 0 1 auto; max-width: 100%; text-align: left; white-space: normal;
  line-height: 1.4; overflow-wrap: anywhere;
}
.v190-row.v190-row--stack .v small { margin-left: 6px; white-space: nowrap; }

/* ---- Bill ---------------------------------------------------------------- */
.v190-bill .v190-chips { margin: -2px 0 12px; }
.v190-bill .v190-lead { margin-top: 0; }
.v190-bill .fold { margin-top: 4px; }
.v190-bill .v190-note + .fold { margin-top: 10px; }

/* ---- Granny flat ---------------------------------------------------------- */
.v190-gf .v190-lead { margin-top: 0; }
.v190-gf .v190-lead + .v190-rows { margin-top: 10px; }
.v190-gf .fold { margin-top: 2px; }
/* review1115 text style (his rule: every label and sub line starts with a capital) */
.v190-row .v small::first-letter,.v190-note::first-letter,.v190-ctx::first-letter,.v190-row>span:first-child::first-letter{text-transform:uppercase}
.v190-ctx{display:inline-block}
