/* One severity scale for every symptom screen (review #8, 2026-11-20): the form's bar, Today's Symptoms card, the
   Symptoms pages, History and the chart all draw from these, in light and dark. Each band has its fill; -on is the ink
   on that fill; -text is the band as text on a card, deepened to read at 4.5:1 or better.
   Plan 054, milestone 4 (the owner, 2026-11-25): severe is a calm plum, not red, so red means only a warning. A
   warning keeps the red it always had (--gs-sev-warn, -warn-text): the flag ring, flagged days, the alert. Plum: fill
   5.0:1 on a white card, text 8.0:1; dark fill 5.6:1, text 9.2:1, deep plum ink on it 6.0:1. */
:root {
  --gs-sev-none: #2A7F45; --gs-sev-none-on: #FFFFFF;
  --gs-sev-mild: #F2C94C; --gs-sev-mild-on: #3D2E00; --gs-sev-mild-text: #7A5C00;
  --gs-sev-moderate: #F0893A; --gs-sev-moderate-on: #2E1500; --gs-sev-moderate-text: #9A4A0E;
  --gs-sev-severe: #8E5C9E; --gs-sev-severe-on: #FFFFFF; --gs-sev-severe-text: #6B3E7E;
  --gs-sev-warn: #C93A31; --gs-sev-warn-text: #A3291F;
}
.dark {
  --gs-sev-none: #3E9A5C;
  --gs-sev-mild: #E8C14A; --gs-sev-mild-text: #F2C94C;
  --gs-sev-moderate: #EE8D45; --gs-sev-moderate-text: #F5A766;
  --gs-sev-severe: #B48CC4; --gs-sev-severe-on: #2A1433; --gs-sev-severe-text: #D9BDE4;
  --gs-sev-warn: #D9534A; --gs-sev-warn-text: #FFB0A8;
}

/* One score, one look (review #8): her rating as an arc with the number inside, wherever a symptom's 0–10 shows on its
   own: the week strip, the Symptoms rows and Today's card. A clear check-in is a tick on the none band; a warning sign
   its icon; a symptom picked without a number the track alone. History's calendar and the chart keep their own marks.
   Sized by --so-ring-size; symptom_overview_helper#symptom_overview_ring draws it. */
.so-ring { --so-ring-band: transparent; position: relative; display: grid; place-items: center; width: var(--so-ring-size, 40px); height: var(--so-ring-size, 40px); flex: none; border-radius: 50%; color: var(--gs-text-primary); font-size: var(--gs-type-body-small-size); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.so-ring > svg[data-illustration] { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.so-ring .so-ring-track { fill: none; stroke: color-mix(in srgb, var(--gs-text-primary) 12%, transparent); stroke-width: 3.5; }
.so-ring .so-ring-arc { fill: none; stroke: var(--so-ring-band); stroke-width: 3.5; stroke-linecap: round; }
.so-ring[data-band="mild"] { --so-ring-band: var(--gs-sev-mild); }
.so-ring[data-band="moderate"] { --so-ring-band: var(--gs-sev-moderate); }
.so-ring[data-band="severe"] { --so-ring-band: var(--gs-sev-severe); }
.so-ring[data-band="none"] { background: var(--gs-sev-none); color: var(--gs-sev-none-on); }
/* A warning sign: the warning red softly behind it (mixed here, on the surface it sits on) and deep as its ink. */
.so-ring[data-band="flag"] { background: var(--so-alert-bg, color-mix(in srgb, var(--gs-sev-warn) 8%, var(--gs-card))); color: var(--gs-sev-warn-text); }
.so-ring > svg:not([data-illustration]) { width: 20px; height: 20px; }
/* A ring Today's card repaints in place carries every part; the band shows the right ones. */
.so-ring .so-ring-tick { display: none; }
.so-ring[data-band="none"] .so-ring-tick { display: block; }
.so-ring[data-band="none"] :is(svg[data-illustration], .so-ring-n) { display: none; }

/* Type and spacing (review #10 and #11, 2026-11-20). The symptom screens use the app's own type roles
   (--gs-type-*, application.tailwind.css), which also grow with her Larger text setting; each role maps once, with a
   unitless line-height:
     caption       --gs-type-caption-size      kickers, day letters, legends, the form's small print   1.35
     label         --gs-type-label-size        meta lines, section labels, hints, chip text            1.35
     body-small    --gs-type-body-small-size   secondary sentences, pills, links, rings' numbers       1.4
     row-title     --gs-type-row-title-size    row, tile, card and answer titles; "7/10 · Severe"      1.3
     body          --gs-type-body-size         Bello's note, a moment's line, inputs, the primary      1.5
     heading-md    --gs-type-heading-md-size   a card's heading ("What could help", a loop's title)    1.3
     section-title --gs-type-section-title-size a page section's heading                               1.25
     page-title    --gs-type-page-title-size   a big number                                            1.1
   Spacing steps are 4, 8, 12, 16, 24 and 32; 1–2px only as an optical nudge or a hairline. */

