/* Plan 040: the one-screen symptom form (symptoms/_sheet_form, controllers/symptom_sheet_controller.js), as the
   accepted prototype draws it (docs/prototypes/symptom-sheet). Inside Care's tracker sheet; tokens only, so light
   and dark follow the app. Tiles never move when she rates; motion only on things that happen a few times a day. */

/* Anything the form hides stays hidden, on the full page too (its buttons set their own display). */
.sc-form [hidden] { display: none !important; }

/* The sheet opens at its full height, so nothing it reveals moves the targets under her finger. */
.gs-sheet-panel.sc-sheet { height: min(85dvh, 760px); }
.sc-page { padding: 8px 0 24px; }

.sc-sheet .sc-sub { margin: 0; color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; text-wrap: pretty; }
.sc-sheet .sc-h { margin: 16px 0 0; color: var(--gs-text-primary); font-size: var(--gs-type-heading-md-size); line-height: 1.3; font-weight: 600; letter-spacing: -.2px; text-wrap: balance; }
.sc-sheet .sc-h + .sc-sub { margin-top: 4px; }
/* The question with Reset at its far end; the row keeps its height whether Reset shows or not. */
.sc-h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 8px; }
.sc-sheet .sc-h-row .sc-h { margin: 0; }
.sc-h-row + .sc-sub { margin-top: 0; }
.sc-sheet .sc-reset { flex: none; min-height: 44px; padding: 0 2px; font-size: var(--gs-type-body-small-size); font-weight: 500; }

/* The sheet scrolls without a scrollbar of its own: a desktop browser's classic scrollbar took room on the right
   only, so the form sat off-centre against the header and Save. */
.sc-sheet .gs-sheet-panel-content, .gs-sheet-panel.sc-sheet { scrollbar-width: none; }
.sc-sheet .gs-sheet-panel-content::-webkit-scrollbar, .gs-sheet-panel.sc-sheet::-webkit-scrollbar { display: none; }

/* Back, at the start of the header in a symptom's details and in More; drawn like the close square at the end. */
:root [data-tracker-sheet] .sc-head-back { grid-column: 1; grid-row: 1; justify-self: start; display: grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0; border: 1px solid var(--gs-border); border-radius: 14px; background: var(--gs-sand-light); color: var(--gs-text-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent; }
:root [data-tracker-sheet] .sc-head-back[hidden] { display: none; }
.sc-head-back svg { width: 20px; height: 20px; }
.sc-head-back svg:dir(rtl) { transform: scaleX(-1); }
.sc-page .sc-head-back { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border: 1px solid var(--gs-border); border-radius: 14px; background: transparent; color: var(--gs-text-secondary); }
.sc-page .sc-head-back[hidden] { display: none; }

/* Tell Bello (premium and trial): a button at the start of the sheet's header, Bello and two words. It folds the words
   box open under the header; one sentence fills in the form below, which she checks and saves. */
:root [data-tracker-sheet] .gs-sheet-header:has(.sc-say-open) { grid-template-columns: minmax(max-content, 1fr) auto minmax(48px, 1fr); }
:root [data-tracker-sheet] .gs-sheet-header:has(.sc-say-open) .gs-sheet-close { justify-self: end; }
.sc-say-open { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 12px 0 4px; border: 1px solid var(--gs-border); border-radius: 999px; background: var(--gs-card); color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-body-small-size); line-height: 1.4; font-weight: 600; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-say-open[data-open] { border-color: var(--gs-text-primary); }
.sc-say-open-bello { flex: none; width: 28px; height: 28px; border-radius: 50%; }
.sc-page .sc-say-open { margin-bottom: 8px; }
.sc-say { display: grid; grid-template-rows: 0fr; opacity: 0; }
.sc-say[data-open] { grid-template-rows: 1fr; opacity: 1; }
.sc-say-fold { min-height: 0; overflow: hidden; }
.sc-say[data-open] .sc-say-fold { padding: 2px 0 12px; }
.sc-say-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 16px; border: 1px solid var(--gs-border); border-radius: 20px; background: color-mix(in srgb, var(--gs-text-primary) 4%, var(--gs-card)); }
/* The rounded box shows focus (2px with its border); the field inside draws none of its own. */
.sc-say-box:focus-within { border-color: var(--gs-text-primary); box-shadow: 0 0 0 1px var(--gs-text-primary); }
.sc-say-bello { flex: none; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 50%; }
.sc-say-box textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; padding: 12px 2px; border: 0; background: transparent; color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-body-size); line-height: 1.5; resize: none; outline: none; field-sizing: content; }
.sc-say-box textarea:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
.sc-say-box textarea::placeholder { color: var(--gs-text-secondary); }
.sc-say-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border: 0; border-radius: 50%; background: var(--gs-tracker-action); color: var(--gs-tracker-on-action); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-say-send[hidden] { display: none; }
.sc-say-send svg { width: 20px; height: 20px; }
.sc-say[aria-busy="true"] .sc-say-send { opacity: .5; cursor: progress; }
.sc-say-hint { margin: 8px 4px 0; color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; text-wrap: pretty; }
.sc-say-hint:empty { display: none; }
.sc-say-hint strong { color: var(--gs-text-primary); font-weight: 600; }

/* Quick row: nothing today, or the same as last time. */
/* Above Save while nothing is picked; folds away (height and fade) once a symptom is, and back when none is left. */
.sc-quick-fold { display: grid; grid-template-rows: 0fr; opacity: 0; }
.sc-quick-fold[data-open] { grid-template-rows: 1fr; opacity: 1; }
.sc-quick-fold > .sc-quick { min-height: 0; overflow: hidden; }
.sc-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sc-quick-fold[data-open] > .sc-quick { padding-bottom: 12px; }
.sc-quick button { display: grid; gap: 2px; align-content: center; min-height: 52px; margin: 0; padding: 8px 16px; border: 1px solid var(--gs-border); border-radius: 16px; background: var(--gs-card); color: var(--gs-text-primary); font: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; overflow-wrap: normal; }
.sc-quick strong { display: inline-flex; align-items: center; gap: 8px; font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 500; }
.sc-quick strong svg { width: 18px; height: 18px; color: var(--gs-text-secondary); }
.sc-quick small { color: var(--gs-text-secondary); font-size: var(--gs-type-caption-size); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Her symptoms in a fixed two-column grid; how bad as its number on the right. */
.sc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sc-tile { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 48px; margin: 0; padding: 0 12px 0 16px; border: 1px solid var(--gs-border); border-radius: 14px; background: var(--gs-card); color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 500; text-align: start; overflow-wrap: normal; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-tile span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-tile:active { background: color-mix(in srgb, var(--gs-text-primary) 8%, var(--gs-card)); }
.sc-tile[aria-pressed="true"] { border-color: var(--gs-text-primary); background: var(--gs-text-primary); color: var(--gs-card); }
.sc-tile[data-focus] { box-shadow: 0 0 0 2px var(--gs-card), 0 0 0 4px var(--gs-text-primary); }
/* Something else: the whole width under her tiles. */
.sc-tile.sc-more { grid-column: 1 / -1; justify-content: center; gap: 8px; border-style: dashed; color: var(--gs-text-secondary); font-weight: 500; }
.sc-tile.sc-more svg { width: 16px; height: 16px; }
.sc-tile .sc-score { flex: none; font-size: var(--gs-type-label-size); line-height: 1.35; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .85; }
.sc-rest { margin: 8px 2px 0; color: var(--gs-text-secondary); font-size: var(--gs-type-caption-size); line-height: 1.35; }

/* Answers inside rows and detail. */
.sc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chip { overflow-wrap: normal; word-break: keep-all; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 16px; border: 1px solid var(--gs-border); border-radius: 999px; background: var(--gs-card); color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-body-small-size); line-height: 1.4; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-chip:active { background: color-mix(in srgb, var(--gs-text-primary) 8%, var(--gs-card)); }
.sc-chip[aria-pressed="true"] { border-color: var(--gs-text-primary); background: var(--gs-text-primary); color: var(--gs-card); font-weight: 600; }
/* Her own words: "+ Add your own" opens a field the size of a chip, in place. */
.sc-chip.sc-chip-add { border-style: dashed; color: var(--gs-text-secondary); }
.sc-chip.sc-chip-add svg { flex: none; width: 16px; height: 16px; margin-inline-start: -4px; }
.sc-sheet .sc-own-answer { flex: 1 1 160px; min-width: 0; max-width: 100%; min-height: 44px; margin: 0; padding: 0 16px; border: 1px solid var(--gs-text-primary); border-radius: 999px; background: var(--gs-card); color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-body-size); line-height: 1.5; }
.sc-sheet .sc-own-answer::placeholder { color: var(--gs-text-secondary); }
.sc-sheet .sc-own-answer:focus-visible { outline: 2px solid var(--gs-text-primary); outline-offset: 2px; box-shadow: none; }

/* A card for each symptom she picks, side by side; she swipes between them. The next card peeks in from the edge, so
   the swipe is there to see; dots underneath say how many and which is in front. */
.sc-cards { margin: 16px calc(-1 * var(--gs-page-px)) 0; }
.sc-cards-track { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gs-page-px); padding: 2px var(--gs-page-px) 4px; scrollbar-width: none; }
.sc-cards-track::-webkit-scrollbar { display: none; }
.sc-card { flex: 0 0 calc(100% - 28px); scroll-snap-align: start; min-width: 0; padding: 12px 16px 8px; border: 1px solid var(--gs-border); border-radius: 20px; background: var(--gs-card); }
.sc-cards[data-single] .sc-card { flex-basis: 100%; }
.sc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.sc-card-name { min-width: 0; margin: 0; color: var(--gs-text-primary); font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-card-remove { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: -4px -12px -4px 0; border: 0; border-radius: 12px; background: transparent; color: var(--gs-text-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-card-remove svg { width: 18px; height: 18px; }
.sc-card-kinds { margin-top: 8px; }
.sc-card-kinds .sc-chip { min-height: 36px; padding: 0 12px; font-size: var(--gs-type-label-size); }
.sc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.sc-card-prev { min-width: 0; margin: 0; color: var(--gs-text-secondary); font-size: var(--gs-type-caption-size); line-height: 1.35; white-space: nowrap; }
.sc-card-detail { display: inline-flex; align-items: center; gap: 2px; min-width: 0; min-height: 44px; margin: 0 -4px 0 auto; padding: 0 4px; border: 0; background: transparent; color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-label-size); line-height: 1.35; font-weight: 500; cursor: pointer; }
.sc-card-detail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-card-detail svg { flex: none; width: 14px; height: 14px; color: var(--gs-text-secondary); }
.sc-card-detail svg:dir(rtl) { transform: scaleX(-1); }
.sc-cards-dots { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.sc-cards-dots[hidden] { display: none; }
.sc-cards-dot { display: grid; place-items: center; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sc-cards-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--gs-text-primary) 22%, transparent); }
.sc-cards-dot[aria-current="true"]::after { background: var(--gs-text-primary); }

/* How bad, as Juno shows it: the word and the number over a pill of dots; the part up to the thumb fills with the
   band's colour. One severity scale with the Symptoms pages and Today's card (symptom_scale.css, review #8): mild
   yellow, moderate orange, severe plum (plan 054; red is for warnings); the word takes a deeper shade of it so it reads at 6:1 or better. Nothing is
   drawn until she rates. */
.sc-rate { --sc-band: var(--gs-text-secondary); margin-top: 8px; }
.sc-rate[data-band="mild"] { --sc-band: var(--gs-sev-mild); --sc-band-text: var(--gs-sev-mild-text); }
.sc-rate[data-band="moderate"] { --sc-band: var(--gs-sev-moderate); --sc-band-text: var(--gs-sev-moderate-text); }
.sc-rate[data-band="severe"] { --sc-band: var(--gs-sev-severe); --sc-band-text: var(--gs-sev-severe-text); }
/* The word and the number with Bello beside them; his face follows the band (symptom_sheet_controller BELLO_FACES). */
.sc-rate-said { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; margin: 0 0 8px; text-align: start; font-variant-numeric: tabular-nums; }
.sc-rate-bello { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
/* "7/10 · Severe" on one line: the number in ink, then the band's word in its colour (review #8). */
.sc-rate-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; overflow: hidden; }
.sc-rate-score { display: inline-block; }
.sc-rate-score:empty { display: none; }
.sc-rate-score::after { content: "·"; margin-inline-start: 8px; color: var(--gs-text-secondary); font-weight: 400; }
.sc-rate-word { color: var(--sc-band-text, var(--sc-band)); font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 600; }
.sc-rate[data-band="unset"] .sc-rate-word, .sc-rate[data-band="none"] .sc-rate-word { color: var(--gs-text-secondary); font-weight: 500; }
.sc-rate-score { color: var(--gs-text-primary); font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 700; }
.sc-slider { --sc-thumb: 34px; --sc-at: 0; --sc-dir: 1; --sc-range: calc(100cqw - var(--sc-thumb) - 12px); container-type: inline-size; position: relative; height: 46px; border-radius: 999px; background: color-mix(in srgb, var(--gs-text-primary) 7%, var(--gs-card)); cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.sc-slider-track { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.sc-slider:dir(rtl) { --sc-dir: -1; }
/* Fill and thumb move by translate only (no layout), so a drag stays at 60fps. The fill is the track's full width,
   slid back by what's left of the range; the thumb starts at 0 and slides by the value. */
.sc-slider-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; translate: calc((var(--sc-at) - 1) * var(--sc-range) * var(--sc-dir)) 0; border-radius: inherit; background: color-mix(in srgb, var(--sc-band) 28%, var(--gs-card)); }
/* On a dark sheet the band reads as Juno's: a bright pastel fill rather than a dim tint. */
.dark .sc-slider-fill { background: color-mix(in srgb, var(--sc-band) 72%, var(--gs-card)); }
.sc-slider-dots { position: absolute; inset-block: 0; inset-inline: calc(6px + var(--sc-thumb) / 2); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.sc-slider-dots i { width: 4px; height: 4px; margin-inline: -2px; border-radius: 50%; background: color-mix(in srgb, var(--gs-text-primary) 30%, transparent); }
.sc-slider-dots i:nth-child(odd) { width: 6px; height: 6px; margin-inline: -3px; }
.sc-slider-thumb { position: absolute; top: 50%; inset-inline-start: calc(6px + var(--sc-thumb) / 2); translate: calc(var(--sc-at) * var(--sc-range) * var(--sc-dir)) 0; width: var(--sc-thumb); height: var(--sc-thumb); margin-block-start: calc(var(--sc-thumb) / -2); margin-inline-start: calc(var(--sc-thumb) / -2); border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 2px 6px rgb(0 0 0 / .22); pointer-events: none; }
.sc-slider[data-unset] .sc-slider-thumb { visibility: hidden; }
.sc-slider[data-unset] .sc-slider-fill { opacity: 0; }
/* Each step lights its dot as the fill passes it; held, the thumb grows a little under the finger. */
.sc-slider-dots i[data-on] { background: color-mix(in srgb, var(--gs-card) 88%, transparent); }
.dark .sc-slider-dots i[data-on] { background: color-mix(in srgb, var(--gs-card) 70%, transparent); }
.sc-slider[data-held] .sc-slider-thumb { scale: 1.12; box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 4px 12px rgb(0 0 0 / .26); }
.sc-slider:focus-visible { outline: 2px solid var(--gs-text-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .sc-slider-fill { transition: translate 90ms ease-out, opacity 150ms ease-out; }
  .sc-slider-thumb { transition: translate 90ms ease-out, scale 150ms ease-out, box-shadow 150ms ease-out; }
  .sc-slider-dots i { transition: background-color 120ms ease-out; }
  /* 2026-11-21: held, the thumb and fill sit under her finger with nothing trailing (utils/symptom_slider.js); the
     slide is for a tap, a key, and settling on the whole number when she lets go. */
  .sc-slider[data-held] .sc-slider-fill { transition: opacity 150ms ease-out; }
  .sc-slider[data-held] .sc-slider-thumb { transition: scale 150ms ease-out, box-shadow 150ms ease-out; }
  .sc-say, .sc-quick-fold[data-ready] { transition: grid-template-rows 260ms cubic-bezier(.2, 0, 0, 1), opacity 200ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-say, .sc-quick-fold[data-ready] { transition: opacity 200ms ease-out; }
}

/* Each symptom's when, at the top of its details: two tiles side by side, Date and Time, each over the phone's own
   picker (the input covers the tile); "Use now" once she has picked one. Its card says it under the name. */
.sc-when-box { display: grid; gap: 2px; margin-top: 12px; }
.sc-when-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sc-sheet .sc-when-pick label.sc-when-tile { position: relative; display: grid; align-content: center; gap: 2px; min-height: 64px; margin: 0; padding: 12px 16px; border: 1px solid var(--gs-border); border-radius: 16px; background: color-mix(in srgb, var(--gs-text-primary) 4%, var(--gs-card)); color: var(--gs-text-primary); font-size: var(--gs-type-row-title-size); line-height: 1.3; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-when-tile small { display: inline-flex; align-items: center; gap: 8px; color: var(--gs-text-secondary); font-size: var(--gs-type-caption-size); line-height: 1.35; font-weight: 500; }
.sc-when-tile small svg { width: 14px; height: 14px; }
.sc-when-tile b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-when-tile:focus-within { border-color: var(--gs-text-primary); box-shadow: 0 0 0 1px var(--gs-text-primary); }
.sc-when-tile:has(.sc-when-input:disabled) { cursor: default; background: transparent; }
.sc-when-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: var(--gs-type-body-size); }
.sc-when-input:disabled { cursor: default; }
/* Set to now: a small pill under Time, at its end (2026-11-20 review: "Use now" floated under the date). */
.sc-sheet .sc-when-now { justify-self: end; min-height: 32px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--gs-border); border-radius: 999px; font-size: var(--gs-type-label-size); }
.sc-card-when { margin: -4px 0 0; color: var(--gs-text-secondary); font-size: var(--gs-type-caption-size); line-height: 1.35; font-variant-numeric: tabular-nums; }

/* Detail and More, inside the same sheet. */
.sc-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 4px -8px; padding: 0 8px; border: 0; background: transparent; color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-row-title-size); font-weight: 600; cursor: pointer; }
.sc-back svg { width: 18px; height: 18px; }
.sc-lede { margin: 4px 0 0; color: var(--gs-text-secondary); font-size: var(--gs-type-body-small-size); line-height: 1.4; }
.sc-q { margin: 16px 0 8px; color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; font-weight: 600; }
.sc-belly-wrap { display: grid; grid-template-columns: auto 220px auto; align-items: center; justify-content: center; gap: 8px; }
.sc-belly-side { color: var(--gs-text-secondary); font-size: var(--gs-type-caption-size); line-height: 1.35; writing-mode: vertical-rl; transform: rotate(180deg); }
.sc-belly-side:last-child { transform: none; }
.sc-belly { position: relative; width: 220px; aspect-ratio: 220 / 230; }
.sc-belly svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gs-text-secondary); }
.sc-belly-grid { position: absolute; inset: 14% 15% 8% 15%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px; }
.sc-belly-grid button { margin: 0; border: 1px dashed color-mix(in srgb, var(--gs-text-primary) 22%, transparent); border-radius: 10px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-belly-grid button[aria-pressed="true"] { border: 0; background: color-mix(in srgb, var(--gs-red, #c0392b) 55%, transparent); }
.sc-belly-picked { min-height: 20px; margin: 8px 0 0; color: var(--gs-text-primary); font-size: var(--gs-type-body-small-size); line-height: 1.4; text-align: center; }

/* Something else: a search box that also adds her own words, then sets she can swipe through, the body sections and
   the warning signs. A warning sign always carries the warning icon and red, never a number. */
.sc-search { position: relative; display: flex; align-items: center; margin-top: 8px; }
.sc-search svg { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--gs-text-secondary); pointer-events: none; }
.sc-sheet .sc-search input { width: 100%; min-height: 48px; padding: 0 16px; padding-inline-start: 42px; border: 1px solid var(--gs-border); border-radius: 14px; background: var(--gs-card); color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-body-size); line-height: 1.5; -webkit-appearance: none; appearance: none; }
.sc-sheet .sc-search input::placeholder { color: var(--gs-text-secondary); }
.sc-sheet .sc-search input:focus-visible { outline: 2px solid var(--gs-text-primary); outline-offset: 0; border-color: transparent; box-shadow: none; }
.sc-results { display: flex; flex-direction: column; margin-top: 8px; }
.sc-result { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 4px; border: 0; border-bottom: 1px solid var(--gs-border); background: transparent; color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-row-title-size); line-height: 1.3; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-result[aria-pressed="true"] { font-weight: 600; }
.sc-result svg { flex: none; width: 16px; height: 16px; }
.sc-result-own { color: var(--gs-text-secondary); border-bottom: 0; }
.sc-sheet .sc-more-h { margin: 24px 0 0; color: var(--gs-text-primary); font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 600; }
.sc-sheet .sc-more-sub { margin: 2px 0 0; color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; }
.sc-sheet .sc-more-h + .sc-opts { margin-top: 12px; }
.sc-sheet .sc-more-sub + .sc-opts, .sc-sheet .sc-more-sub + .sc-sets { margin-top: 12px; }
.sc-sets { display: flex; gap: 8px; margin-inline: calc(-1 * var(--gs-page-px)); padding: 2px var(--gs-page-px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gs-page-px); scrollbar-width: none; }
.sc-sets::-webkit-scrollbar { display: none; }
.sc-set { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; width: 168px; min-height: 76px; margin: 0; padding: 12px 12px; scroll-snap-align: start; border: 1px solid var(--gs-border); border-radius: 16px; background: var(--gs-card); color: var(--gs-text-primary); font: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-set b { font-size: var(--gs-type-body-small-size); line-height: 1.4; font-weight: 600; }
.sc-set small { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--gs-text-secondary); font-size: var(--gs-type-caption-size); line-height: 1.35; }
.sc-flag { color: var(--gs-red); }
.sc-chip.sc-flag { border-color: color-mix(in srgb, var(--gs-red) 35%, var(--gs-border)); }
.sc-flag svg { flex: none; width: 16px; height: 16px; }
.sc-flag span { color: var(--gs-text-primary); }
.sc-sheet .sc-tile[data-flag] { justify-content: flex-start; gap: 8px; }
.sc-tile[data-flag] svg { flex: none; width: 16px; height: 16px; color: var(--gs-red); }

/* A warning sign's card on the form: no slider, its tag and What to do. */
.sc-sheet .sc-card-tag { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--gs-red); font-size: var(--gs-type-label-size); line-height: 1.35; font-weight: 600; }
.sc-card-tag svg { width: 16px; height: 16px; }
.sc-card-care { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; margin: 12px 0 2px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--gs-red-bg); color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-card-care svg { flex: none; width: 14px; height: 14px; }
.sc-card-care svg:dir(rtl) { transform: scaleX(-1); }

/* The care card: NHS.uk's three levels, most urgent first. */
.sc-care-tier { margin-top: 12px; padding: 16px; border: 1px solid var(--gs-border); border-inline-start-width: 4px; border-radius: 16px; background: var(--gs-card); }
.sc-care-tier[data-tier="now"] { border-color: var(--gs-red); background: var(--gs-red-bg); }
.sc-care-tier[data-tier="today"] { border-color: var(--gs-amber); background: var(--gs-amber-bg); }
.sc-care-tier[data-tier="line"] { border-color: var(--gs-text-primary); }
:is(.sc-sheet, .sc-next) .sc-care-h { margin: 0; color: var(--gs-text-primary); font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 700; }
:is(.sc-sheet, .sc-next) .sc-care-line { margin: 8px 0 0; color: var(--gs-text-primary); font-size: var(--gs-type-body-small-size); line-height: 1.4; text-wrap: pretty; }
:is(.sc-sheet, .sc-next) .sc-care-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
:is(.sc-sheet, .sc-next) .sc-care-line + .sc-care-line { color: var(--gs-text-secondary); }
:is(.sc-sheet, .sc-next) .sc-care-tier + .sc-care-line { margin-top: 16px; padding-inline: 2px; }
.sc-care-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 12px; padding: 0 16px; border-radius: 999px; background: var(--gs-red); color: var(--gs-card); font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 700; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.sc-care-tier[data-tier="line"] .sc-care-call { background: var(--gs-text-primary); color: var(--gs-card); }
.sc-care-call svg { width: 18px; height: 18px; }
:is(.sc-sheet, .sc-next) .sc-care-unsure { margin: 16px 2px 0; color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; }

/* The one action. */
.sc-footer { padding-top: 12px; }
.sc-footer-hint { margin: 0 0 8px; color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; text-align: center; }
.sc-footer-hint:empty { margin: 0; }
.sc-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 0; border: 1.5px solid var(--gs-tracker-action, var(--gs-text-primary)); border-radius: 16px; background: var(--gs-tracker-action, var(--gs-text-primary)); color: var(--gs-tracker-on-action, var(--gs-card)); font: inherit; font-size: var(--gs-type-body-size); font-weight: 700; cursor: pointer; }
.sc-primary[aria-disabled="true"] { border-color: var(--gs-border); background: color-mix(in srgb, var(--gs-text-primary) 8%, var(--gs-card)); color: var(--gs-text-secondary); cursor: default; }

@media (prefers-reduced-motion: no-preference) {
  .sc-quick button, .sc-primary { transition: scale 150ms ease-out, background-color 120ms ease-out, border-color 120ms ease-out; }
  .sc-quick button:active, .sc-primary:not([aria-disabled="true"]):active { scale: .96; }
}
/* Tiles keep their element as she picks them, so the colour fades over 150ms instead of flipping; every tile, chip
   and choice gives under the finger (.96). A tile new to the grid (a set, her own word) fades in; a card she picks
   grows in from .96 over 200ms (removing one is handled in the controller: it shrinks away, the rest slide over). */
@media (prefers-reduced-motion: no-preference) {
  .sc-tile, .sc-chip, .sc-result, .sc-set { transition-property: scale, background-color, color, border-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
  .sc-tile:not([disabled]):active, .sc-chip:active, .sc-result:active, .sc-set:active { scale: .96; }
  .sc-tile[data-arriving] { animation: sc-fade 200ms ease-out both; }
  .sc-card[data-entering] { animation: sc-card-in 200ms cubic-bezier(.2, 0, 0, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-tile, .sc-chip { transition-property: background-color, color, border-color; transition-duration: 150ms; transition-timing-function: ease-out; }
  .sc-card[data-entering] { animation: sc-fade 200ms ease-out both; }
}
@keyframes sc-card-in { from { opacity: 0; scale: .96; } }
.sc-save-count { display: inline-block; font-variant-numeric: tabular-nums; }
.sc-save-more { display: inline-block; white-space: pre; }

/* Cards filled in all at once (Same as last time, a Today shortcut) arrive 100ms apart, once. */
@media (prefers-reduced-motion: no-preference) {
  .sc-card[data-arriving] { animation: sc-rise 300ms ease-out both; animation-delay: var(--sc-delay, 0ms); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-card[data-arriving] { animation: sc-fade 200ms ease-out both; animation-delay: var(--sc-delay, 0ms); }
}

/* No on the Today card and the Symptoms page saves at once (symptoms/_none_button): its form keeps the card's layout,
   and the count it leaves rises in once. */
.sc-none-form { display: contents; }
@media (prefers-reduced-motion: no-preference) {
  .sc-none-button { transition-property: scale, opacity; transition-duration: 150ms; transition-timing-function: ease-out; }
  .sc-none-button:not([disabled]):active { scale: .96; }
  [data-tracker-just-saved] { animation: sc-rise 300ms ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  [data-tracker-just-saved] { animation: sc-fade 200ms ease-out both; }
}
.sc-none-button[disabled] { opacity: .7; }


/* The saved sheet's line from her own data, and its rare moments (first log, a full week) with Bello glad. */
/* The saved sheet sits in Today's and the Symptoms page's .pj-experience, whose `p { margin: 10px 0 }` and `h3 { font-size:
   18px }` outrank a lone class: its paragraphs' and headings' rules name the element, so the type and spacing scales
   (review #10/#11) hold there too (review #14 live check, 2026-11-21). */
p.sc-saved-trend { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--gs-text-secondary); font-size: var(--gs-type-body-small-size); line-height: 1.4; font-weight: 500; font-variant-numeric: tabular-nums; }
.sc-saved-arrow { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--gs-text-primary) 7%, transparent); }
.sc-saved-arrow svg { width: 12px; height: 12px; }
.sc-saved-trend[data-direction="down"] .sc-saved-arrow { color: var(--gs-green, var(--gs-text-primary)); background: color-mix(in srgb, var(--gs-green, var(--gs-text-primary)) 14%, transparent); }
.sc-saved-trend[data-direction="up"] .sc-saved-arrow { color: var(--gs-amber-text, var(--gs-amber)); background: color-mix(in srgb, var(--gs-amber) 18%, transparent); }
.sc-moment { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; margin: 0 0 16px; padding: 0 4px; }
.sc-moment-bello { grid-row: span 2; width: 56px; height: 56px; }
p.sc-moment-line { margin: 0; color: var(--gs-text-primary); font-size: var(--gs-type-body-size); line-height: 1.5; font-weight: 500; text-wrap: pretty; }
.sc-moment-link { justify-self: start; color: var(--gs-text-primary); font-size: var(--gs-type-body-small-size); line-height: 1.4; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  /* The arrow turns into place as it lands (Family's chart arrow); Bello settles in with a small bob. */
  #symptom-save-result .sc-saved-trend { animation: sc-rise 300ms ease-out both; animation-delay: 180ms; }
  #symptom-save-result .sc-saved-trend[data-direction="down"] .sc-saved-arrow svg { animation: sc-arrow-down 360ms cubic-bezier(.2, 0, 0, 1) both; animation-delay: 260ms; }
  #symptom-save-result .sc-saved-trend[data-direction="up"] .sc-saved-arrow svg { animation: sc-arrow-up 360ms cubic-bezier(.2, 0, 0, 1) both; animation-delay: 260ms; }
  #symptom-save-result .sc-moment { animation: sc-rise 300ms ease-out both; animation-delay: 150ms; }
  #symptom-save-result .sc-moment-bello { animation: sc-bob 700ms cubic-bezier(.2, 0, 0, 1) both; animation-delay: 250ms; }
}
@keyframes sc-arrow-down { from { opacity: 0; rotate: 180deg; } }
@keyframes sc-arrow-up { from { opacity: 0; rotate: -180deg; } }
@keyframes sc-bob { 0% { opacity: 0; translate: 0 10px; } 55% { opacity: 1; translate: 0 -3px; } 100% { translate: 0 0; } }

/* The saved sheet (symptoms/_sheet_result): what she saved beside the tick, then "What could help": one grouped list
   (a routine from Care, then Bello), or a warning sign's care card. The sheet grows to fit all of it (up to the
   tracker sheet's 86dvh, then it scrolls above the buttons, which keep a hairline over it). Each part enters once,
   100ms after the one above it (opacity, a 4px blur and 12px up over 300ms); the tick scales in from a quarter. Under
   reduced motion they only fade. Pressing a row scales it to .96. */
#symptom-save-result .gs-tracker-result { margin-bottom: 24px; padding: 16px 16px; }
#symptom-save-result .gs-sheet-panel-content { padding-bottom: 8px !important; }
#symptom-save-result .gs-sheet-footer { box-shadow: 0 -1px 0 color-mix(in srgb, var(--gs-text-primary) 8%, transparent); }
.sc-saved { display: grid; gap: 2px; }
.sc-saved-note { color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); font-weight: 500; }
/* Rate it and View symptoms: quiet links, so the loop's next step is the sheet's one filled control (2026-11-20 review). */
.sc-saved-rate, .sc-saved-view { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -8px; color: var(--gs-text-primary); font-size: var(--gs-type-body-small-size); line-height: 1.4; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: from-font; -webkit-tap-highlight-color: transparent; }
.sc-saved-view { color: var(--gs-text-secondary); }
.gs-tracker-result:not(.gs-tracker-result--detailed) :is(.sc-saved-rate, .sc-saved-view) { justify-self: center; }
.sc-saved-rate:focus-visible, .sc-saved-view:focus-visible { outline: 2px solid var(--gs-text-primary); outline-offset: 2px; border-radius: 6px; }
/* The saved sheet's one-time offer: a plain line and a link-style button (Today's card asks the same way). */
.sc-saved-offer { margin: 12px 0 0; color: var(--gs-text-secondary); font-size: var(--gs-type-body-small-size); line-height: 1.4; font-weight: 500; }
p.sc-saved-offer-line { margin: 0; text-wrap: pretty; }
.sc-saved-offer-form { display: inline; margin: 0; }
.sc-saved-offer-add { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -12px; padding: 0; border: 0; background: none; color: var(--gs-text-primary); font: inherit; font-size: var(--gs-type-body-small-size); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: from-font; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-saved-offer-add:focus-visible { outline: 2px solid var(--gs-text-primary); outline-offset: 2px; border-radius: 6px; }
p.sc-saved-names { margin: 0; color: var(--gs-text-primary); font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 600; text-wrap: pretty; font-variant-numeric: tabular-nums; }
.sc-saved-dot { color: var(--gs-text-secondary); font-weight: 400; }
p.sc-saved-when { margin: 0 0 8px; color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; font-variant-numeric: tabular-nums; }
p.sc-saved-when:last-child { margin-bottom: 0; }
.sc-next { display: grid; gap: 8px; padding-bottom: 4px; }
h3.sc-next-h { margin: 0; color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; font-weight: 600; letter-spacing: .1px; }
.sc-next-list { display: grid; overflow: hidden; border: 1px solid transparent; border-radius: 20px; background: var(--gs-card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gs-text-primary) 9%, transparent), 0 1px 2px color-mix(in srgb, var(--gs-text-primary) 5%, transparent), 0 8px 24px -12px color-mix(in srgb, var(--gs-text-primary) 18%, transparent); }
.sc-next-form { margin: 0; }
.sc-next-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; margin: 0; padding: 12px 16px 12px 12px; border: 0; background: transparent; color: var(--gs-text-primary); font: inherit; text-align: start; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* A hairline between rows, inset to the text. */
.sc-next-list > * + * { position: relative; }
.sc-next-list > * + *::before { content: ""; position: absolute; z-index: 1; top: 0; inset-inline: 74px 0; height: 1px; background: color-mix(in srgb, var(--gs-text-primary) 9%, transparent); }
.sc-next-media { flex: none; width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--gs-sand-light); outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.dark .sc-next-media { outline-color: oklch(1 0 0 / .1); }
.sc-next-media--bello { display: grid; place-items: center; outline: 0; }
.sc-next-media--bello img { width: 40px; height: 40px; }
.sc-next-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.sc-next-text b { font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 650; }
.sc-next-text small { color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; font-weight: 450; text-wrap: pretty; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sc-next-go { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gs-text-primary); color: var(--gs-card); }
.sc-next-go svg { width: 15px; height: 15px; }
/* Ask Bello's arrow: outlined, so it doesn't compete with the next step's filled Play or Save. */
.sc-next-go--quiet { border: 1.5px solid color-mix(in srgb, var(--gs-text-primary) 22%, transparent); background: transparent; color: var(--gs-text-primary); }
.sc-next-row[data-symptom-next="routine"] .sc-next-go svg { translate: 1px 0; }
p.sc-next-kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--gs-text-secondary); font-size: var(--gs-type-caption-size); line-height: 1.35; font-weight: 600; letter-spacing: .1px; }
.sc-next-kicker svg { width: 16px; height: 16px; }
.sc-next-kicker--care { color: var(--gs-red); }
h3.sc-next-title { margin: 4px 0 0; color: var(--gs-text-primary); font-size: var(--gs-type-heading-md-size); line-height: 1.3; font-weight: 650; text-wrap: balance; }
.sc-next-care { display: grid; }
.sc-next-care .sc-care-tier { margin-top: 12px; }
/* Plan 045: the loop from a symptom to a routine and back (symptoms/_routine_loop), one card of the list. */
.sc-loop-card { display: grid; gap: 4px; padding: 16px 16px 16px; }
h4.sc-loop-title { margin: 4px 0 0; color: var(--gs-text-primary); font-size: var(--gs-type-heading-md-size); line-height: 1.3; font-weight: 650; text-wrap: balance; font-variant-numeric: tabular-nums; }
.sc-loop-title:focus { outline: none; }
/* Plan 054, milestone 3: the result's rating ring beside "Belly pain 7 → 3"; it counts down when it helped. */
.sc-loop-change { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.sc-loop-change h4.sc-loop-title { margin: 0; }
.sc-loop-ring .so-ring { --so-ring-size: 48px; font-size: var(--gs-type-heading-md-size); }
@media (prefers-reduced-motion: no-preference) { .sc-loop-ring .so-ring-arc { transition: stroke-dasharray 90ms linear, stroke 160ms ease-out; } }
.sc-loop-title:focus-visible { outline: 2px solid var(--gs-text-primary); outline-offset: 2px; border-radius: 4px; }
p.sc-loop-meta { margin: 0; color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; text-wrap: pretty; font-variant-numeric: tabular-nums; }
.sc-loop-card[data-result="helped"] .sc-loop-meta { color: var(--gs-text-primary); font-weight: 600; }
.sc-loop-card .sc-rate { margin-top: 12px; }
p.sc-loop-ask { margin: 12px 0 0; color: var(--gs-text-primary); font-size: var(--gs-type-row-title-size); line-height: 1.3; font-weight: 600; text-wrap: pretty; }
.sc-loop-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.sc-loop-save { margin-top: 16px; }
.sc-loop-card .sc-primary { min-height: 48px; font-size: var(--gs-type-body-size); }
.sc-primary.sc-primary--quiet { border-color: var(--gs-border); background: var(--gs-card); color: var(--gs-text-primary); }
.sc-primary[aria-busy="true"] { opacity: .6; cursor: progress; }
p.sc-loop-note { margin: 8px 0 0; color: var(--gs-text-secondary); font-size: var(--gs-type-label-size); line-height: 1.35; text-wrap: pretty; }
.sc-loop-care { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--gs-red) 7%, var(--gs-card)); }
.sc-loop-care .sc-care-line { margin: 0; }
.sc-loop > * + * { position: relative; }
.sc-loop > * + *::before { content: ""; position: absolute; top: 0; inset-inline: 74px 0; height: 1px; background: color-mix(in srgb, var(--gs-text-primary) 9%, transparent); }
p.sc-loop-error { margin: 0; color: var(--gs-red); font-size: var(--gs-type-label-size); line-height: 1.35; }
.sc-loop-error:empty { display: none; }
/* Plan 052: Gut-focused hypnosis's "It didn't feel right", a quiet link under Save, then What happened? as a choice
   list (the form's result rows, a tick on her answer) and its line. */
.sc-loop-concern { display: grid; }
.sc-loop-not-right { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 -8px; padding: 0 8px; border: 0; background: none; color: var(--gs-text-secondary); font: inherit; font-size: var(--gs-type-body-small-size); line-height: 1.4; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: from-font; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-loop-not-right:focus-visible { outline: 2px solid var(--gs-text-primary); outline-offset: 2px; border-radius: 6px; }
.sc-loop-concern-answers { display: grid; gap: 4px; margin-top: 16px; }
.sc-loop-concern-answers p.sc-loop-ask { margin: 0; }
.sc-loop-concern .sc-result span { flex: 1; min-width: 0; }
.sc-loop-concern .sc-result:last-child { border-bottom: 0; }
:is(.sc-loop-concern-answers .sc-loop-ask, .sc-loop-concern .sc-loop-note):focus { outline: none; }
:is(.sc-loop-concern-answers .sc-loop-ask, .sc-loop-concern .sc-loop-note):focus-visible { outline: 2px solid var(--gs-text-primary); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) {
  .sc-next-row:hover { background: color-mix(in srgb, var(--gs-text-primary) 4%, transparent); }
}
@media (prefers-reduced-motion: no-preference) {
  #symptom-save-result .gs-tracker-result > svg { animation: sc-tick-in 300ms cubic-bezier(.2, 0, 0, 1) both; }
  #symptom-save-result .sc-saved > * { animation: sc-rise 300ms ease-out both; animation-delay: 100ms; }
  #symptom-save-result .sc-next > * { animation: sc-rise 300ms ease-out both; animation-delay: 200ms; }
  #symptom-save-result .sc-next > * + * { animation-delay: 300ms; }
  .sc-next-row, .sc-care-call { transition-property: scale, background-color; transition-duration: 150ms; transition-timing-function: ease-out; }
  .sc-next-row:active, .sc-care-call:active { scale: .96; }
  .sc-loop-card[data-entering] { animation: sc-rise 300ms ease-out both; }
  .sc-loop-card .sc-primary { transition-property: scale; transition-duration: 150ms; transition-timing-function: ease-out; }
  .sc-loop-card .sc-primary:active { scale: .96; }
}
@media (prefers-reduced-motion: reduce) {
  #symptom-save-result :is(.gs-tracker-result > svg, .sc-saved > *, .sc-next > *, .sc-moment) { animation: sc-fade 200ms ease-out both; }
  .sc-loop-card[data-entering] { animation: sc-fade 200ms ease-out both; }
}
/* Back from the routine (plan 045) is the same sheet, not a new one: its parts don't come in again. */
#symptom-save-result[data-loop-returned] :is(.gs-tracker-result > svg, .sc-saved > *, .sc-next > *, .sc-moment) { animation: none; }
@keyframes sc-tick-in { from { opacity: 0; scale: .25; filter: blur(4px); } }
@keyframes sc-rise { from { opacity: 0; translate: 0 12px; filter: blur(4px); } }
@keyframes sc-fade { from { opacity: 0; } }

:is(.sc-next-row, .sc-head-back, .sc-say-open, .sc-say-send, .sc-chip, .sc-tile, .sc-text-button, .sc-quick button, .sc-primary, .sc-belly-grid button, .sc-back, .sc-card-remove, .sc-card-detail, .sc-cards-dot, .sc-result, .sc-set, .sc-card-care, .sc-care-call):focus-visible { outline: 2px solid var(--gs-text-primary); outline-offset: 2px; }
/* Plan 046: the after question under a Chat answer, as on the saved sheet. */
.gs-chat-loop { align-self: stretch; margin-top: 12px; }
/* Plan 048: Today's morning question after a bedtime 4-7-8; Skip hides it. */
.pj-morning-loop { margin-block: 12px 4px; }
.pj-morning-loop[hidden] { display: none; }
