/* =====================================================================
   RESET Journey Dashboard — Design System
   Calm, minimal, teal-led. No emojis, no loud motion, no confetti.
   ===================================================================== */

:root {
  /* Brand palette */
  --dark-teal: #1A3535;
  --deep-teal: #2D7A7A;
  --muted-teal: #4A9E9E;
  --soft-teal: #8ECECE;
  --amber: #D4874A;
  --amber-soft: #E8B89A;
  --ivory: #FAF6EF;
  --sand: #EDE0CC;
  --slate: #3D5252;

  /* Derived */
  --border-soft: rgba(26, 53, 53, 0.12);
  --shadow-soft: 0 2px 14px rgba(26, 53, 53, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark-teal);
  margin: 0 0 0.4em 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 0.9em 0; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

a { color: var(--deep-teal); }

button {
  font-family: var(--font-body);
  cursor: pointer;
}

textarea, input[type="text"], input[type="email"], input[type="password"] {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate);
}

/* ---------------------------------------------------------------------
   Shell / header
   --------------------------------------------------------------------- */

.shell-header {
  background: var(--dark-teal);
  color: var(--ivory);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.shell-header .greeting {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--ivory);
}

.shell-header .position {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--soft-teal);
  display: flex;
  align-items: center;
  gap: 14px;
}

.shell-header .streak-pill {
  background: rgba(142, 206, 206, 0.16);
  border: 1px solid rgba(142, 206, 206, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  /* 2026-08-05, per Chris round 2: the "(?)" toggle now lives inside the
     pill (see markup in app.js) rather than floating in the open header
     space next to it, which read as unowned/ambiguous — equidistant from
     the pill and "Manage my Reset". inline-flex + a small gap lets the
     toggle sit snug against "completed" without wrapping oddly. */
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Wraps the streak pill + its "(?)" hint toggle (added 2026-08-05, per
   Chris) so the hint panel below can be positioned relative to the pill
   without disrupting the header's flex row. */
.days-completed-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Reuses .info-toggle-btn as-is everywhere else in the app (Sleep hint,
   Energy hint) — same shape/mechanism, per Chris: "no new UI pattern".
   Its default styling (faint --border-soft ring, --muted-teal glyph) is
   tuned for light card backgrounds, so — same fix already applied to
   .incomplete-day-pill .info-toggle-btn for the same reason — it needs a
   scoped color override to stay legible on this dark-teal header. Matches
   the border/color already used for .manage-menu-trigger on this exact
   background. */
.shell-header .info-toggle-btn {
  border-color: rgba(142, 206, 206, 0.35);
  color: var(--soft-teal);
}

/* 2026-08-05, per Chris round 2: "size it down to match the smaller
   icon-only treatment already used ... elsewhere on the dashboard" — the
   closest existing precedent is .band-info-toggle (summary band's day-
   count "(?)"), which is already a smaller dark-background variant of
   this same .info-toggle-btn (18px vs. the default 20px, tighter font).
   Applied as an additive modifier class (kept .info-toggle-btn for the
   shared shape/toggle mechanism, this just trims the size) rather than a
   one-off, so any other dark, tightly-spaced pill context can reuse it. */
.info-toggle-btn--sm {
  width: 15px;
  height: 15px;
  font-size: 0.62rem;
}

/* Same reasoning, applied to .sleep-hint-panel: its default sand
   background/static layout is meant to sit inline inside a card, which
   would both clash with this dark header and break its flex row if
   dropped in directly. Positioned as a small floating panel below the
   pill instead — same open/close mechanism (.open class), same content
   treatment, just adapted to float rather than sit inline, matching how
   .manage-menu-panel already floats off this same header. */
.shell-header .sleep-hint-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 230px;
  background: var(--ivory);
  color: var(--slate);
  /* .position (its ancestor here) sets --font-mono for the day-count/streak
     text — without this override the hint sentence would inherit that
     monospace font and read like a code snippet instead of a normal
     explanatory line. */
  font-family: var(--font-body);
  box-shadow: var(--shadow-soft);
  z-index: 20;
  margin-top: 0;
}

.shell-header .signout {
  background: none;
  border: none;
  color: var(--soft-teal);
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0;
}

/* Pause and Restart both live in the header so they're reachable from
   every state, but tucked into a single "Manage my Reset" dropdown
   instead of sitting inline as two links — both are edge-case actions
   that most visits won't need, so they shouldn't compete on the same
   crowded line as the day count and streak pill. Deliberately quiet
   (smaller, lower-contrast trigger) so it's available without reading
   as an easy escape hatch. Clicking a menu item opens its explainer
   modal rather than confirming inline here. */
.manage-menu {
  position: relative;
}

.manage-menu-trigger {
  background: none;
  border: 1px solid rgba(142, 206, 206, 0.35);
  border-radius: 999px;
  color: var(--soft-teal);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.85;
  padding: 4px 12px;
  cursor: pointer;
}

.manage-menu-trigger:hover,
.manage-menu-trigger[aria-expanded='true'] {
  opacity: 1;
  border-color: var(--soft-teal);
}

.manage-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-width: 200px;
  overflow: hidden;
  z-index: 20;
}

/* The panel's `hidden` attribute is toggled in JS (js/app.js) to open/close
   the menu, but a plain `display: flex` above always beats the browser's
   built-in `[hidden] { display: none }` default — author CSS wins over the
   user-agent stylesheet regardless of specificity. Without this override
   the panel was permanently visible, appearing open even before any click. */
.manage-menu-panel[hidden] {
  display: none;
}

.manage-menu-panel a {
  color: var(--dark-teal);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 10px 14px;
}

.manage-menu-panel a:hover {
  background: rgba(142, 206, 206, 0.16);
}

.manage-menu-panel a + a {
  border-top: 1px solid rgba(26, 53, 53, 0.08);
}

/* ---------------------------------------------------------------------
   Pause explainer modal
   --------------------------------------------------------------------- */
/* Students are curious what "Pause my Reset" actually does the first
   time they see it — per Chris, this spells it out in full (what's
   saved, what freezes, when pausing helps vs. when it might not) rather
   than a bare Yes/No confirm. */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 53, 53, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card h2 {
  color: var(--dark-teal);
  margin-top: 0;
  margin-bottom: 12px;
}

.modal-card p {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal-list {
  margin: 14px 0;
  padding-left: 20px;
}

.modal-list li {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.shell-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 22px 18px 60px 18px;
}

/* Coach digest only — added 2026-07-21, per Chris. The 640px cap above is
   sized for the client dashboard's single-column daily cards; the coach
   digest table has six columns (client, program day, completion, last
   check-in, evaluation, cohort access) and its natural content width
   overflows 640px, spilling text past the white card's edge onto the sand
   page background. Widened just for this view via a modifier class toggled
   in app.js (see init()), rather than loosening the shared client layout. */
.shell-main--wide {
  max-width: 960px;
}

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px 22px;
  margin-bottom: 18px;
  border: 1px solid var(--border-soft);
}

.card + .card { margin-top: 18px; }

/* Body Wisdom, RESET Intention, Sleep, the "Heads Up" note, and Today's
   Rhythm were split into five separate cards (see the big comment below)
   so the morning check-in wouldn't read as one dense form. That solved
   the density problem but created a new one: nothing tied those five
   cards together, or set them apart from Evening Check-In, strongly
   enough to read as two obviously separate sections at a glance.

   Two earlier passes tried to solve this with a wrapper around the
   morning cards alone: first a faint background wash (too subtle to
   register against the ivory page), then a visible border + shadow
   around the group with a small "Morning Check-In" pill buried inside
   the first card's own padding. Per Chris, that still wasn't
   unmistakable — the label lived inside one card's content, not as a
   heading over the whole group, so it was easy to miss that it applied
   to all five cards below it, and Evening Check-In had no matching
   counterpart of its own to contrast against.

   This is the decisive version: both the morning cards and the evening
   card each sit inside a `.section-group`, and every group gets a solid,
   full-width, colored title bar (`.section-group-header`) fused to the
   top of its container — not a small pill inside a card, an actual
   section heading no one can miss, the same pattern any well-designed
   form uses to group related fields. Morning's bar uses the lighter
   muted-teal (echoing sunrise); evening's uses dark-teal (echoing dusk)
   — one palette, shifting in depth, so the two sections read as two
   chapters of one day rather than two unrelated colors. The individual
   .morning-badge/.evening-badge pills that used to live inside the first
   card of each group are retired now that the header bar does that job
   at the section level instead. */
.section-group {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(26, 53, 53, 0.14);
  box-shadow: 0 4px 16px rgba(26, 53, 53, 0.1);
  margin-bottom: 22px;
}

/* Morning's border and body fill were originally borrowed from soft-teal
   (the Sleep card's own color) and a generic neutral border shared with
   Evening. That meant the "frame" wasn't actually built from the same
   color as its own header — it was two different teals meeting by
   coincidence, and the fill sat close enough in strength to the Sleep
   card's own soft-teal tint (12% vs. 16%) that the two nearly merged.
   This version builds the whole frame — border, fill, header — out of
   one single hue (muted-teal), just at three different strengths: solid
   in the header, a visible tinted line at the border, and a faint wash
   in the fill. One color carried through the whole frame reads as
   unmistakably "one object" the way the two-different-teals version
   didn't. The fill is kept below Today's Rhythm's own muted-teal tint
   (12%) on purpose, so the cards still visibly sit inside the frame
   rather than the frame competing with them for attention. */
.section-group--morning {
  margin-bottom: 48px;
  border-color: rgba(74, 158, 158, 0.55);
}

/* Coach-facing Cohorts section (coach.js) — Chris asked for the Cohorts
   title, intro copy, cohort summary rows, and their expanded detail card
   to visually read as one distinct teal-toned block, set apart from the
   plain white "Create a new cohort" form below it. Reuses the same
   section-group frame/header/body pattern as Morning Check-In rather than
   inventing a new container, just swapped to this view's content. */
.section-group--cohorts {
  border-color: rgba(74, 158, 158, 0.55);
}

.section-group--cohorts .section-group-header {
  background: var(--muted-teal);
  color: #ffffff;
}

.section-group--cohorts .section-group-body {
  background: rgba(74, 158, 158, 0.08);
}

.section-group-header {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 14px 22px;
}

.section-group--morning .section-group-header {
  background: var(--muted-teal);
  color: #ffffff;
}

.section-group--evening .section-group-header {
  background: var(--dark-teal);
  color: var(--ivory);
}

.section-group-body {
  padding: 20px 18px 18px 18px;
}

.section-group--morning .section-group-body {
  background: rgba(74, 158, 158, 0.08);
}

.section-group--evening .section-group-body {
  background: rgba(45, 122, 122, 0.08);
}

.section-group-body .card:first-child { margin-top: 0; }
.section-group-body .card:last-child { margin-bottom: 0; }

/* Downward-arrow connector: a plain ↓ glyph (no badge/circle behind it),
   centered in the 18px gap the .card + .card rule already creates,
   pointing from each morning card down into the next. Reinforces "these
   are one linked sequence, read top to bottom" beyond just the shared
   frame, without touching card content (the gap between cards is empty
   space, so nothing else is ever drawn there). Replaced an earlier
   bead-on-a-thread line+dot version — per Chris, the arrow reads more
   clearly as "go to the next one" than a static connector did. The
   circular badge version after that was dropped too — per Chris, just a
   clear, visible arrow on its own was simpler and easier to read than a
   badge. Sized and weighted (bold deep-teal, no outline/fill) to stay
   legible against the wrapper's near-neutral background without needing
   a shape behind it.
   Deliberately stops after the last card (Today's Rhythm) — the gap
   before #eveningCard is a real break, not another step in the same
   sequence, so no arrow should point into it. */
.section-group--morning .card {
  position: relative;
}

.section-group--morning .card:not(:last-child)::after {
  content: '↓';
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  color: var(--deep-teal);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Round 8 (2026-07-25) added a taller connector specifically for
   `.card--morning-complete + .card--note`, back when Heads Up sat right
   after the completion button. Already dead by the 2026-08-03 reorder
   (Heads Up moved to sit between Sleep and Rhythm instead — see the
   comment above .card--sleep), and stays dead after the 2026-08-04 reorder
   too (Heads Up now sits between RESET Intention and Sleep — see the
   comment above .card--note). `.card--morning-complete` is the last card
   in the morning sequence in every arrangement since, so this selector
   never matches. Removed rather than left in as unused/misleading rules. */

/* Each card used to hold a chunk that previously lived as a nested,
   differently-padded box inside one giant morning card (sleep block,
   reset-intention anchor, rhythm section). Now that those chunks are each
   the sole content of their own card, strip the leftover top margin their
   first child brings with it so every card's content sits flush against
   the card's own padding, instead of adding extra air at the top of some
   cards but not others. */
.card > *:first-child {
  margin-top: 0;
}

/* The morning check-in used to be one long white card from Body Wisdom
   all the way down through Today's Rhythm — per Chris, that read as one
   dense form with "a lot of different things to look at at once," and
   even once Today's Rhythm got its own tint, nesting it inside the same
   white card still made it feel like part of one long thing rather than
   its own section. It's now split into separate cards, in this order:
   Body Wisdom (white) → RESET Intention (sand) → Sleep (soft-teal) →
   the "two check-ins is enough" note (ivory) → Today's Rhythm (deeper
   muted-teal). RESET Intention sits right after Body Wisdom on purpose —
   per Chris, her "why" for the whole 21 days should ground her right
   after she commits for today, not show up after some of the check-in
   is already done. Every tint still avoids sitting next to a same-family
   neighbor: sand separates Body Wisdom's white from Sleep's teal, and
   the note's near-white ivory separates Sleep's teal from Rhythm's teal
   — otherwise those two would read as one continuous teal block, the
   same problem this split was built to avoid in the first place. All
   existing brand tokens, following the same light-to-deep teal arc
   already used for morning vs. evening, just applied at a finer grain.

   2026-08-03 update, per Chris: the "two check-ins is enough" card
   (.card--note) is now conditional — see shouldShowHeadsUp in
   dashboard.js — so on most days Sleep and Rhythm sit adjacent without
   their ivory buffer. Confirmed this made the two cards read as nearly
   the same color; fixed by deepening Rhythm's own tint (see the comment
   above .card--rhythm) rather than reintroducing a buffer card.

   2026-08-04 update, per Chris: Heads Up (.card--note) moved again — off
   sitting between Sleep and Rhythm, now between RESET Intention and Sleep
   (it's anticipatory reassurance, so it needs to land before the task
   phase starts, not partway through it — see the comment above
   .card--note). It was never actually load-bearing as a Sleep/Rhythm
   buffer past the 2026-08-03 fix above (Rhythm's own deepened tint does
   that job now, independent of whether Heads Up is showing), so this move
   doesn't reopen that problem. The order is now: Body Wisdom (white) →
   RESET Intention (sand) → Heads Up (ivory, conditional) → Sleep
   (soft-teal) → Rhythm (deeper muted-teal) → morning-complete (white,
   hosts the relocated Add-a-note trigger at the very end). The one new
   adjacency to watch is RESET Intention (sand) sitting directly next to
   Heads Up (ivory) on Heads-Up days — both warm/cream tones; see the
   comment above .card--note for how that was checked. */
.card--sleep {
  background: rgba(142, 206, 206, 0.16);
  border-color: rgba(142, 206, 206, 0.55);
}

.card--intention {
  background: var(--sand);
}

/* Rhythm's fill is the same muted-teal used for the morning wrapper's own
   fill (see .section-group--morning .section-group-body). Swapping the
   card's border from the generic neutral border-soft to a stronger tint
   of its own muted-teal keeps Rhythm reading as a card sitting on the
   wrapper, not a patch of the same wash. Sleep gets the same treatment
   for consistency, using its own soft-teal instead.

   2026-08-03 update, per Chris: now that the "two check-ins" card
   (.card--note) is conditional — see shouldShowHeadsUp in dashboard.js —
   Sleep and Rhythm sit directly adjacent on most days, with no ivory
   buffer between them. At the old opacity (0.12 fill / 0.45 border),
   Rhythm's tint landed within a couple points of brightness of Sleep's
   own fill (0.16 of soft-teal) — close enough that the two cards read as
   one continuous teal block sitting right next to each other, the exact
   problem the original five-card split was meant to avoid. Bumped
   Rhythm's fill and border further so it holds its own as a visibly
   *deeper* step in the same light-to-deep teal arc used everywhere else
   in this sequence, rather than a near-duplicate of Sleep's tint. This
   also fixes the Heads-Up-visible days (1, 2, 7, 14) — that ivory card
   was quietly doing all the work of keeping Sleep and Rhythm apart, so
   the two teals being this close was never actually visible until the
   buffer became conditional. */
.card--rhythm {
  background: rgba(74, 158, 158, 0.22);
  border-color: rgba(74, 158, 158, 0.6);
}

/* Sleep and RESET Intention are quick, low-effort moments (one slider,
   one quote) rather than dense content — per Chris, giving them the same
   full card padding as Today's Rhythm (which has three checklist items)
   made them feel heavier/bulkier than the two or three lines they
   actually hold. Slightly tighter padding keeps them visually "light." */
.card--sleep,
.card--intention {
  padding: 16px 18px;
}

/* The "two check-ins is enough" reassurance + the note trigger used to
   sit at the bottom of the morning check-in, after Today's Rhythm, then
   moved right after Body Wisdom, then right before Today's Rhythm (each
   move's reasoning superseded by the next — see git history if needed).
   Kept quiet and slim (near-page-background tint, tighter padding) since
   it's a supportive aside, not another zone to complete like
   Sleep/Intention/Rhythm are.

   2026-08-04, per Chris: moved again, this time to sit right after RESET
   Intention and before Sleep. Heads Up is anticipatory reassurance about
   how the check-in works (two check-ins is enough, nothing extra
   required) — per Chris, that needs to land before the task phase
   (Sleep, then Rhythm) starts, not partway through it, so a student reads
   it as "here's how this works" rather than "here's a reminder mid-task."
   The note-taking trigger itself no longer lives in this card at all (see
   .midday-note-standalone, now inside .card--morning-complete at the very
   end of the flow) — this card is copy-only now.

   This move sits Heads Up (ivory) directly beside RESET Intention (sand)
   on the days it shows — both warm/cream tones, checked per Chris's
   request not to assume it's fine just because neither value changed.
   Measured: ivory-vs-sand contrast is ~1.2:1, close enough to read as one
   wash if left on the shared neutral border-soft both cards use by
   default (same near-duplicate problem already fixed once between Sleep
   and Rhythm — see the comment above .card--sleep). Rather than deepen
   the ivory fill itself (would fight the "near-page-background, quiet
   aside" read this card is built around), gave the card its own
   amber-tinted border below — amber is already this card's accent color
   (see .note-badge) — so the boundary between the two cards is doing the
   separating work, not the fill. A real but visible step, not maximum
   contrast, consistent with how Sleep/Rhythm's own-hue borders work. */
.card--note {
  position: relative;
  background: var(--ivory);
  border-color: rgba(212, 135, 74, 0.35);
  padding: 16px 18px;
}

/* Every other card in the morning check-in has a heading of some kind
   (a .card-label, or a .morning-badge/.evening-badge above it) — this
   was the one exception, which per Chris made it unclear at a glance
   what kind of box you were reading. Rather than adding an inline
   .card-label (which would read as "just another section," the same
   weight as Body Wisdom/Sleep/Intention/Rhythm), it gets a small pill
   that straddles the card's own top edge, like a tab — a deliberately
   different shape from the other headings so it reads as an aside/
   callout, not a fifth thing-to-complete. "Heads Up" over the more
   obvious "Reminder" because the box isn't reminding her to do
   anything (there's nothing to complete here) — it's flagging two
   pieces of good-to-know context (two check-ins is enough, and she can
   jot a note any time). Straight, not slanted — a slant would read as
   more playful/promotional than the rest of the app's quiet editorial
   tone. Amber instead of a teal, deliberately: teal pills
   (.morning-badge/.evening-badge) already mean "which check-in period
   is this," so reusing teal here would wrongly suggest this is a third
   check-in period rather than an aside inside the morning one. */
.note-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  display: inline-block;
  background: var(--amber);
  color: var(--dark-teal);
  font-family: var(--font-mono);
  font-weight: 600;
  /* Was 0.72rem — under the ~12px floor that's comfortable for a 40+
     audience to read without straining, especially set in all-caps
     mono. Every other small mono label on the page (.card-label,
     .rhythm-item-label, .data-panel .panel-label) already sits at
     0.78rem or higher; this one was the outlier. */
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* Evening card is plain white again now that ".section-group--evening"
   itself carries the pale deep-teal wash (see .section-group-body) and
   the dark-teal header bar above it — that's what now signals "moving
   into a different moment of the day." Keeping the card itself tinted
   the same teal as its own container would wash the card into its
   background and lose the "this is its own card" edge, the same reason
   the morning cards each use a *different* tint from the neutral wrapper
   they sit inside rather than matching it. */
#eveningCard {
  background: #ffffff;
}

.card-quiet {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--border-soft);
}

/* The community card reuses .card-quiet's "lightest element on the
   screen" restraint (no shadow, thin border) but needed its own fill —
   fully transparent now reads as literally invisible, not just "quiet,"
   especially sandwiched between the solid dark-teal Evening Check-In
   section above and the dark-teal summary band below (both much bolder
   blocks). A faint wash of the card's own amber accent (the same color
   already used for its heading and link) keeps it the calmest card on
   the page while still giving it a visible edge against both the ivory
   page and its darker neighbors — a deliberately different, dedicated
   class rather than changing .card-quiet itself, since that class is
   also used by the coach-facing Day 21 evaluation card in coach.js,
   which has nothing to do with the community/amber accent. */
.card--community {
  background: rgba(212, 135, 74, 0.06);
  border: 1px solid rgba(212, 135, 74, 0.28);
}

/* Bumped from muted-teal/regular-weight to dark-teal/semibold: with each
   card now carrying its own background tint (see .card--sleep,
   .card--intention, .card--rhythm, #eveningCard), the old muted-teal was
   losing contrast on cards whose tint is itself a shade of teal — the
   heading was blending into its own background instead of anchoring it.
   Dark-teal holds up against every card tint in use, teal or sand, so
   every card's heading reads with the same weight instead of some
   standing out more than others by accident.
   2026-08-03 (round 5): .daily-thought-label is the one deliberate
   exception (deep-teal, not dark-teal) — see the comment above that class
   for why: it sits directly above .daily-thought-opening in the same box,
   and matching dark-teal made the two compete instead of reading as
   tag-then-headline. Your Reset Intention / Sleep / Rhythm don't have that
   same-box headline underneath their label, so they stay on the shared
   dark-teal system here rather than each getting a one-off color. */
.card-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--dark-teal);
  margin-bottom: 6px;
  display: block;
}

/* .morning-badge / .evening-badge (small pills that used to sit inside the
   first card of each check-in) were retired in favor of the full-width
   .section-group-header bars above — see the big comment above
   .section-group. The header bar now does that "which check-in is this"
   job at the section level, once, instead of a pill inside one card. */

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--deep-teal);
  color: #fff;
}
.btn-primary:hover { background: var(--dark-teal); }

/* Faded + lowered-opacity used to read as "disabled/greyed out" rather
   than "done" — easy to mistake for not-yet-clickable, the opposite of
   what a completion state should communicate. Kept solid + full opacity
   (paired with a ✓ prefix on the label, see completeMorningBtn) so this
   reads as an affirmative confirmation at a glance, not an inert state.
   cursor:default since the click handler is now a no-op, but "not worth
   clicking again" isn't the same look as "can't click this" (2026-06-18,
   per Chris: students shouldn't be left wondering if morning check-in
   actually went through). */
.btn-primary.confirmed {
  background: var(--muted-teal);
  cursor: default;
}
.btn-primary.confirmed:hover { background: var(--muted-teal); }

.btn-secondary {
  background: transparent;
  color: var(--deep-teal);
  border: 1.5px solid var(--deep-teal);
}

.btn-amber {
  background: var(--amber);
  color: #fff;
}

/* Padding bumped from 4px 0 to 6px 4px — these text links (View, Edit,
   Delete, Collapse, +Add a note, etc.) carry a lot of the app's everyday
   actions, but their actual tap area used to be barely taller than the
   text itself. That's a small, easy-to-miss target for anyone who isn't
   reaching for pixel-precise taps, which matters more for this app's
   students than for a typical tech-forward audience. Kept modest (not a
   full 44px box) so rows that pack two of these side by side (Edit /
   Delete, Yes delete / Cancel) don't visibly shift or crowd each other. */
.btn-text {
  background: none;
  border: none;
  color: var(--muted-teal);
  font-size: 0.95rem;
  padding: 6px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-block { width: 100%; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   Body Wisdom Check-In — morning card
   --------------------------------------------------------------------- */

/* 2026-08-03, per Chris (round 3): todaysIntention and dailyThought used
   to render as two separately-labelled sections — a "Today's Intention"
   headline, then a boxed "Today's Thought" beneath it, connected by a
   pair of trailing dots. Both fields are app-authored content that
   changes daily and both deliver "today's message," so two headers were
   doing the same job — and "Today's Intention" collided with the
   separate "Your Reset Intention" card further down the page, which uses
   the same word for something completely different (her own once-per-
   program anchor). Merged into one block under a single "Today's
   Thought" label: the short affirming line opens the paragraph in
   italics (.daily-thought-opening), then flows straight into the longer
   coaching text as one continuous piece. The trailing dots are gone —
   with the two blocks merged there was nothing left for them to connect.
   Kept the sand-panel + mono-label treatment from the previous round
   (still renders on every day, even Days 1 and 8-20 which have no real
   dailyThought text — see buildTodaysThoughtHtml in dashboard.js — so the
   card looks the same day to day rather than switching between a boxed
   and an unboxed treatment). */
.daily-thought {
  background: var(--sand);
  border-radius: 22px 30px 20px 26px / 28px 20px 26px 18px;
  padding: 16px 18px;
  margin-top: 0;
  margin-bottom: 22px;
}

/* 2026-08-03 (round 5), per Chris: this label originally read as a weak
   caption next to sibling titles like "Your Reset Intention" (.card-label:
   0.85rem, 700 weight, dark-teal). First fix matched it exactly to
   .card-label — but that made it compete with .daily-thought-opening
   directly below it (same box, same dark-teal, similar size/weight), so
   the label and the headline blurred into one visual mass instead of
   reading as tag-then-headline. Landed on bold + deep-teal instead of
   dark-teal: same size/weight/tracking as every other card-label (so it
   still reads as a confident title, not a caption), but a distinct accent
   color already used elsewhere in this app for confident small mono
   labels (.evening-signals-note-count) rather than the near-black reserved
   for .daily-thought-opening. Keeps three legible tiers in one box: label
   (deep-teal accent) -> opening line (dark-teal headline) -> body (slate
   prose). Scoped to this label only — see the comment above .card-label
   for why Sleep/Rhythm/Intention stay dark-teal. */
.daily-thought-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--deep-teal);
  margin-bottom: 6px;
}

.daily-thought-text {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.55;
}

/* 2026-08-03 (round 4): dailyThought can now optionally break into more
   than one .daily-thought-para (see buildTodaysThoughtHtml in
   dashboard.js) for entries long enough to want a breathing point. Modest
   gap between grafs — enough to read as two beats, not so much it feels
   like two stacked sections inside the one sand panel. */
.daily-thought-para {
  margin: 0 0 10px 0;
}

.daily-thought-para:last-child {
  margin-bottom: 0;
}

/* The former oversized standalone headline (.todays-intention, removed
   2026-08-03) is now just the paragraph's opening sentence — same body
   copy size as the rest of .daily-thought-text, kept in italics with a
   touch more weight/color so it still reads as a distinct opening beat,
   not a second section. */
.daily-thought-opening {
  font-style: italic;
  font-weight: 600;
  color: var(--dark-teal);
}

/* Quiet text link (not a button) for lesson days — sits above the merged
   .daily-thought block, at the top of the card, so it never competes with
   "I'm in" for visual weight. Only rendered at all on lesson days (1, 7,
   21 — see content.js's lessonLink field); on every other day
   buildLessonLinkHtml() returns '' and nothing takes this slot. Same
   quiet-reference treatment as .rhythm-tracker-link.
   2026-08-04 fix: on a lesson day where the real Podia URL isn't live yet
   (lessonLink still the 'PLACEHOLDER' sentinel), this used to render
   nothing at all — an unintended regression from when the link was moved
   off the old full button/pill treatment. Restored a disabled state
   (.lesson-link-text--disabled below) in the same quiet spot instead, so
   Days 1/7/21 always show something here, non-clickable until the real
   URL is swapped in. */
.lesson-link-text {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--muted-teal);
  text-decoration: none;
}
.lesson-link-text:hover { text-decoration: underline; }

/* Disabled placeholder state — same size/position as the real link so the
   layout doesn't shift once the URL goes live, just quieter (dimmed,
   no underline on hover, not a clickable element at all — it's a <span>,
   not an <a>, in dashboard.js). */
.lesson-link-text--disabled {
  color: var(--slate);
  opacity: 0.65;
  cursor: default;
}
.lesson-link-text--disabled:hover { text-decoration: none; }

.own-line-input {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--ivory);
  resize: vertical;
  min-height: 44px;
  margin-top: 10px;
}

/* 2026-08-03, per Chris: used only on the Body Wisdom card's optional
   line, now that its "In Your Own Words" label is gone. Meant to read as
   a quiet, low-key line — not a fourth labelled block sitting alongside
   Today's Intention / Today's Thought / Your Reset Intention. Shrinks
   font size, lightens the border and placeholder color, and trims the
   top margin slightly; the placeholder text itself still explains what
   the field is for. */
.own-line-input--quiet {
  font-size: 0.85rem;
  min-height: 38px;
  margin-top: 14px;
  border-color: var(--border-soft);
  color: var(--slate);
}
.own-line-input--quiet::placeholder {
  color: var(--muted-teal);
  opacity: 0.75;
}

/* 2026-08-03, per Chris (round 3): moved from below the "I'm in" button to
   above it — "Take a quick moment to commit to today" read like a caption
   describing something she'd already done by the time she reached it
   below the button. Above the button it reads as an instruction before
   the action instead. (The confirmed-state text, "That's today's
   commitment set," moves with it — same element, both states.) Otherwise
   unchanged: purely about the commitment ritual (morning_intention_
   confirmed), no completion claim, kept small/muted since confirming
   intention stays optional either way. Originally renamed from
   .morning-complete-hint 2026-06-18 when morning completion moved to its
   own button after the Sleep card (see .card--morning-complete) — "I'm
   in" no longer marks the day complete. */
.intention-hint {
  font-size: 0.8rem;
  margin-top: 18px;
  margin-bottom: 10px;
}

/* Caption under the real completion trigger, completeMorningBtn — this is
   the class name .morning-complete-hint used to sit on ("I'm in") before
   completion moved here, so the name now actually matches what it's next
   to. */
.morning-complete-hint {
  font-size: 0.8rem;
  margin-top: 8px;
}

/* Same caption treatment, under submitEveningBtn (2026-06-18) — kept as
   its own class rather than reusing .morning-complete-hint since it's a
   different button/section, even though the styling is identical. */
.evening-complete-hint {
  font-size: 0.8rem;
  margin-top: 8px;
}

/* 2026-07-28, per Chris: these three all sit under a primary CTA button
   ("I'm in" / "You're in for today" / the evening submit button) and share
   the exact same styling — a small nudge of warmth felt right applied to
   all three identically, not just the one she happened to screenshot.
   Swaps the global .muted teal for --slate, the warmer secondary-text tone
   already established elsewhere for quiet-but-readable captions
   (.accountability-line, .logged-late-pill, .rhythm-item-label). Compound
   selector (not just .intention-hint etc.) so this reliably wins over
   .muted's color regardless of the two rules' order in the file — .muted
   is defined much later below and would otherwise take precedence at
   equal specificity. */
.intention-hint.muted,
.morning-complete-hint.muted,
.evening-complete-hint.muted {
  color: var(--slate);
}

/* Last card in the morning sequence, after Today's Rhythm — the same
   light-padding treatment as .card--sleep/.card--intention (see comment
   above), since it's just a button + one line of text, not dense content.

   2026-08-04, per Chris: now also hosts the relocated Add-a-note trigger
   (see .midday-note-standalone) at its top, above the completion button/
   gate — it's a whole-day catch-all, not tied to any one step, so it
   belongs as the last "anything else before you go" beat right before the
   actual completion action, rather than sitting mid-flow above a specific
   card the way it used to (the Sleep card). Still just light content, so
   the padding stays as-is. */
.card--morning-complete {
  padding: 16px 18px;
}

/* Round 9 follow-up (2026-07-25), per Chris: the gate previously sat as
   bare text straight on the card background — "not just raw copy," she
   said, wanting a real background treatment. Rather than invent a new
   color/panel style, this borrows the same sand-panel convention already
   established for other app-authored guidance blocks in this file
   (.rhythm-coaching-block, .midday-note-intro) — inset padding + var(--sand)
   + var(--radius-md), sitting inside .card--morning-complete's own padding
   rather than bleeding edge-to-edge, matching how .rhythm-coaching-block
   sits inside .rhythm-detail. */
/* 2026-08-04, per Chris: both the Sleep gate and its new evening-side
   counterpart (.eveningSkipConfirmOpen in dashboard.js, same markup/class)
   read as too quiet to actually catch the eye at the moment they appear —
   they were replacing a plain button with an even plainer panel. Added a
   real but modest amber accent (left border + subtle lift) rather than
   maxing out contrast — same "real step, not maximum contrast" judgment
   already applied to .card--note's amber-tinted border. Still avoids
   amber *text* on this sand background (the ~2.2:1 contrast problem noted
   below still applies) — the added weight comes from the border, shadow,
   and the new .gate-alert-icon badge instead. */
.morning-complete-gate {
  padding: 14px 16px;
  background: var(--sand);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--amber);
  box-shadow: 0 1px 5px rgba(26, 53, 53, 0.1);
}

/* Small filled badge sitting inline before the gate's intro line — same
   amber-fill/dark-teal-text pairing as .note-badge (already proven to
   pass contrast, unlike amber text on this panel's own sand background).
   Deliberately not the "○" icon .signal-unset-hint uses elsewhere: this
   needs to read as "stop and look," not as one status marker among
   several, so a solid filled dot with a glyph reads more like an alert. */
.gate-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--dark-teal);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  margin-right: 8px;
  /* Optically aligns the badge with the first line of text rather than
     sitting a couple px high against the line-height above, now that
     .gate-intro-line is a flex row. */
  margin-top: 2px;
  flex-shrink: 0;
}

/* Round 4, same day (2026-07-25), per Chris: the round-3 copy fixed
   *what* the two paths meant but was still a full sentence to read before
   a student could act — "a lot of writing" for something that should
   grab attention instantly. Rebuilt on the Sleep card's own
   .signal-unset-hint pattern (bold lead-in + short instruction), which
   already does exactly this job elsewhere in the app, just shortened
   further since this panel's five number pills make the "how"
   self-evident without needing it spelled out in the sentence too. Kept
   the amber tone out of it, though, unlike the Sleep card's own hint —
   amber text doesn't have enough contrast against this panel's sand
   background (contrast ratio ~2.2:1, fails WCAG AA), while dark-teal
   against sand (~6.4:1) passes and still carries the same "pay
   attention" weight here.
   Round 6, same day, per Chris: dropped the "○" icon (and the flex/gap
   layout it needed) that this rule borrowed from .signal-unset-hint —
   back to plain block copy. The icon does real work on the Sleep/
   evening cards, where it's one status marker among several signals
   that can each be answered or not; this gate is a single self-
   contained panel that only ever says one thing, so a repeat icon here
   had nothing to contrast against and read as a decorative bullet
   rather than information. See the code comment above this markup in
   dashboard.js for the full reasoning. */
.gate-intro-line {
  display: flex;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.4;
  margin-bottom: 12px;
}
.gate-intro-line strong {
  color: var(--dark-teal);
  font-weight: 700;
}

/* Shared by two "sleep isn't scored yet" prompts (2026-06-18): the live
   dashboard's one-tap gate that replaces the Complete morning check-in
   button (.morning-complete-gate), and Previous Day editing's one-time
   inline prompt next to the sleep slider in history.js. Three plain text
   buttons rather than one primary + secondaries — all three choices are
   equally valid, no default is implied. Wraps on narrow screens rather
   than truncating. Left unscoped to a parent class since it's the same
   flex-row treatment in both places. */
.gate-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Round 9 (2026-07-25), per Chris: replaces the old single "Yes, 3 is
   right" text button, which assumed a specific number that nothing on
   screen actually anchored to (the untouched slider shows no value at all,
   not a visible 3) and read as a flat, plain-text choice among three.
   These five pill buttons let the student make their own one-tap real
   choice across the full 1-5 scale, styled distinctly enough from
   .gate-btn-row's plain text links below it to read as the primary way to
   resolve the gate, with "Let me set it"/"Skip today" as lighter fallbacks. */
.gate-pick-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gate-pick-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--deep-teal);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gate-pick-btn:hover {
  background: var(--deep-teal);
  border-color: var(--deep-teal);
  color: #fff;
}

/* Round 4, same day (2026-07-25), per Chris: "Let me set it"/"Skip today"
   were still .btn-text plain links, which read as an afterthought next to
   the five solid number pills above them — she asked specifically whether
   these should become pills/chips too, "not just for the sake of looking
   good but ... for grabbing attention in the right way." Decision: yes,
   chip, but deliberately smaller/lighter than .gate-pick-btn so the
   hierarchy stays clear — the numbers are the fast one-tap path this
   whole redesign is built around, these two are the slower fallback
   paths. Same chip language as the summary band's .band-link--pill
   (no border, tinted fill, full radius, no underline) so tappable
   secondary actions look consistent across the app, but re-colored for
   this panel's sand background: deep-teal tint here instead of
   .band-link--pill's amber-soft, which was tuned for a dark-teal band
   background and would be low-contrast on sand. */
.gate-secondary-btn {
  display: inline-flex;
  align-items: center;
  color: var(--deep-teal);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(45, 122, 122, 0.1);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.gate-secondary-btn:hover {
  background: rgba(45, 122, 122, 0.18);
}

/* Sleep slider's Save/Cancel row status label (2026-06-18). Amber matches
   the "needs attention" tone used elsewhere (summary band's open-item
   nudges) — reads as "pending, nothing recorded yet." Swaps to
   .sleep-save-status--saved (teal, matching the summary band's "both
   done" line) the instant the write actually succeeds. */
.sleep-save-status {
  font-size: 0.8rem;
  color: var(--amber);
}
.sleep-save-status--saved {
  color: var(--muted-teal);
}

/* Top-of-card instructional note for evening signals (2026-07-25,
   rebuilt same day per Chris after seeing the first pass live): was
   small mono/muted-teal inline text, which blended straight into the
   descriptor/scale copy around it — "too much of the same thing to
   read." Switched to the sand-panel treatment already used elsewhere in
   this app for app-authored guidance (.accountability-nudge,
   .rhythm-coaching-block, .midday-note-intro) so it reads as its own
   distinct block of information rather than another line of body copy —
   reusing an existing pattern instead of inventing a one-off look. */
.evening-signals-note {
  margin-bottom: 18px;
  padding: 12px 16px;
  background: var(--sand);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.5;
}

/* Incomplete-day summary pill (History read-only view) — 2026-07-27, per
   Chris: was a plain muted-mono sentence ("This day is incomplete..."),
   easy to miss and only named the evening check-in, not the other items
   that were also left blank that day. Deliberately amber-soft, not the
   app's usual --sand panel tone that every .data-panel below it already
   uses — needs to visually stand apart as a flag, not blend in as just
   another info panel. Amber already reads as "worth a look" everywhere
   else in this app (band-nudge-line's default color, milestone CTAs). */
.incomplete-day-pill {
  background: var(--amber-soft);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  margin-bottom: 12px;
  color: var(--dark-teal);
}

.incomplete-day-pill-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.incomplete-day-pill-title {
  font-weight: 700;
}

/* 2026-07-27, per Chris: the full item-by-item list ("Morning intention ·
   Sleep quality · Enhancement practices · ...") read as overwhelming laid
   out all at once, every time. The one item that actually drives
   isDayComplete (evening check-in) now stands alone as the pill's headline
   in .incomplete-day-pill-title-row; everything else lives behind this
   collapsible panel, same show/hide mechanism as .sleep-hint-panel
   (info-toggle-btn + ui.incompleteDetailsOpen in history.js) — collapsed
   by default so the pill reads as one calm sentence unless she actively
   wants the specifics. */
.incomplete-day-pill-list {
  display: none;
  margin-top: 8px;
  font-size: 0.9rem;
}
.incomplete-day-pill-list.open { display: block; }

/* The default .info-toggle-btn (faint --border-soft ring, --muted-teal
   glyph) is tuned for sitting on white cards. On this pill's amber-soft
   background that same faint teal read as "too light to be seen"
   (Chris, 2026-07-27 round 4). Bump both border and glyph to --dark-teal
   — the same color already used for this pill's body text — for a toggle
   that's actually visible against amber-soft. */
.incomplete-day-pill .info-toggle-btn {
  border-color: var(--dark-teal);
  color: var(--dark-teal);
}

/* "Not started" day pill (History read-only view). Originally kept on the
   quiet --sand tone (deliberately not amber, since "nothing was ever
   started" isn't the same flag as "something was left unfinished") — but
   --sand is the same tone as the .data-panel cards below it, so it had the
   same blending problem .logged-late-pill had. 2026-07-27 round 4, per
   Chris: made it match .incomplete-day-pill's background so both flag
   pills read consistently as "needs a look" against the sand cards, and so
   this one no longer disappears into the page. Still deliberately NOT an
   itemized list — every field on the day is blank, so naming each one is
   redundant; the student will see that for herself the moment she opens
   Edit this day. */
.day-not-started-pill {
  background: var(--amber-soft);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  margin-bottom: 12px;
  color: var(--dark-teal);
}

/* "Logged late" note (History — appears in the edit form before saving,
   and in the read-only view after saving). 2026-07-27, per Chris: was a
   plain `.muted.mono` sentence — read as flat/clinical ("horrible font"),
   and didn't visually acknowledge that this is a normal, expected part of
   filling in a past day rather than an error. Informational, not a
   warning, so no amber. Regular body font (not mono) since mono in this
   app is reserved for data/status readouts, not prose.
   Background revised same day (round 3): --sand blended straight into
   the .data-panel cards this pill usually sits right beside/under
   ("doesn't stand out as its in same background as cards above" — Chris).
   Reusing the pale deep-teal wash already established for
   .section-group--evening .section-group-body gives it a calm but
   visually distinct background instead; --slate text still reads
   clearly on this wash (same pairing already used on .slider-row). */
.logged-late-pill {
  background: rgba(45, 122, 122, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 8px;
  margin-bottom: 12px;
  color: var(--slate);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* The "(X of 7 scored)" progress count now sits on its own line inside
   the panel, in bold mono deep-teal, instead of trailing off the end of
   the same sentence as the instructions — splits "what to do" from "how
   far along you are" so each is legible at a glance. */
.evening-signals-note-count {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--deep-teal);
}

/* Evening signal sliders' own Save/Cancel row (2026-07-25) — same
   amber-pending/teal-saved treatment as .sleep-save-status above, just
   named for its own class since up to 7 of these can exist on one card. */
.signal-save-status {
  font-size: 0.8rem;
  color: var(--amber);
}
.signal-save-status--saved {
  color: var(--muted-teal);
}

/* Round 1 (2026-07-25 earlier same day) built this as a solid amber
   callout box — fill, left accent bar, bold lead-in — because the
   original plain-text version didn't read as distinct from the teal
   descriptor/scale copy around it. Softened again 2026-07-25 round 3,
   per Chris, after seeing that box live alongside everything else on the
   card: with the numbered scale removed and real spacing added between
   signals, the slider itself is now the only thing that needs to command
   attention on an unset signal — a solid colored box right underneath it
   was competing with it rather than supporting it ("very bold colour...
   takes away from what to look at"). Dropped the fill/border/box
   entirely; this is now a quiet single-line caption, same visual weight
   as .slider-scale and .signal-descriptor, with only its color (amber)
   and small hollow-circle icon left to carry the "needs attention"
   meaning. Still distinguishable at a glance, no longer a second focal
   point. Pairs with .signal-saved-tag's "✓" — ○ = not yet answered,
   ✓ = saved. */
.signal-unset-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--amber);
}
.signal-unset-hint strong {
  font-weight: 600;
}
.signal-unset-hint-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--amber);
}

/* Per-signal "saved" indicator (2026-07-25) — deliberately NOT the bold
   .sleep-saved-line pill treatment. With one slider per card, a solid pill
   reads as a distinct "badge earned" moment; with up to 7 signals stacked
   in one evening card, 7 solid pills would compete with each other and
   start to feel like noise/gamification rather than quiet status. Kept
   small and textual instead, same visual weight as the hint/status copy
   used elsewhere on this card. */
.signal-saved-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-teal);
  margin-top: 4px;
}

/* Persistent "done" indicator in the sleep card itself (2026-06-18, per
   Chris) — separate from .sleep-save-status above, which only lives inside
   the Save/Cancel row while it's open. This line is what's still visible
   after that row closes, so sleep's own card always shows its own status
   without depending on the morning check-in button.
   Upgraded to a solid pill (2026-06-18, per Chris: the first pass — plain
   small teal text — didn't stand out enough against the Sleep card's own
   pale soft-teal wash (.card--sleep is soft-teal at 16% opacity), so a
   same-family teal text on top of it read as low-contrast/easy to miss,
   which was the whole complaint. A solid-fill pill (same shape language as
   .streak-pill/.note-badge elsewhere in the app) reads as its own distinct
   "badge earned" object rather than another line of body copy, and solid
   deep-teal-on-ivory gives real contrast against the soft-teal card
   instead of blending into it. Deep-teal chosen over muted-teal for the
   fill so it's noticeably darker/richer than the card's own soft-teal
   background — muted-teal alone was tested and still sat too close to the
   card tint to pop. */
.sleep-saved-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  background: var(--deep-teal);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* Wraps a saved indicator (.sleep-saved-line pill or .signal-saved-tag
   text) together with its new "Clear score" link (2026-07-26, per Chris:
   a student who saves a score should be able to change their mind and
   revert it to no score at all). Just a flex row — the indicator's own
   margin-top is zeroed below since it now sits inside this wrapper, not
   directly under the scale itself; that margin moves onto the wrapper here
   instead so the row keeps proper breathing room above it rather than
   losing that spacing altogether.
   2026-07-28, per Chris's screenshot: 6px (the old .sleep-saved-line
   figure this replaced) read too tight against .slider-scale's own 8px
   margin-top above it — bumped to 12px for real separation between the
   Restless/Restful scale and this saved-status row below it.
   flex-wrap allows the link to drop to its own line on narrow phone widths
   rather than forcing the pill to shrink. */
.score-saved-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.score-saved-row .sleep-saved-line,
.score-saved-row .signal-saved-tag {
  margin-top: 0;
}

/* The "Clear score" link itself — small and quiet on purpose, same weight
   as other .btn-text links on these cards, so it doesn't visually compete
   with the saved indicator it sits next to. Not colored as a warning here;
   the destructive framing only shows up once "Clear this saved score?" is
   actually on screen (see .clear-score-confirm-row below), consistent with
   how "Delete" reads as neutral until its own confirm row appears. */
.clear-score-link {
  font-size: 0.78rem;
}

/* Inline "are you sure?" confirm row, swapped in for the saved
   indicator/link above the instant "Clear score" is tapped (mirrors
   .midday-note-row's identical delete-confirm swap). A quiet sand
   background distinguishes it as a momentary, different-from-normal state
   without needing a modal — "Yes, clear" reuses the same #A64B4B warning
   red as "Yes, delete" elsewhere in the app, so destructive actions read
   consistently wherever they appear. */
.clear-score-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
}
.clear-score-confirm-text {
  color: var(--slate);
  min-width: 0;
}

/* No longer a nested box inside the morning card — it's the sole content
   of its own card (see .card--sleep) now, so no top margin or extra
   padding of its own is needed; the card's padding already does that. */
.sleep-slider-block { margin: 0 0 6px 0; }

.card-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.info-toggle-btn {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--muted-teal);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sleep-hint-panel {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--slate);
}

.sleep-hint-panel.open { display: block; }

.sleep-hint-list {
  margin: 0;
  padding-left: 18px;
}

.sleep-hint-list li {
  margin-bottom: 2px;
}

/* Round 6 (2026-07-25), per Chris: matches the same divider now added to
   `.signal-note-block` on the evening cards (see that comment) — a thin
   line between the scored slider/hint area above and the note area below,
   in every state (open textarea, saved-note preview, or just the
   "+ Add a sleep note" button), so the sleep card reads with the same
   "scored part, then optional written part" structure as the evening
   ones. */
.sleep-note-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.sleep-note-preview-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.sleep-note-preview-text {
  font-size: 0.92rem;
  color: var(--slate);
  min-width: 0;
}

.sleep-note-block .btn-text { white-space: nowrap; }

/* No longer its own nested sand box — it's the sole content of its own
   card now (see .card--intention), which already carries the sand
   background and padding. The class stays only as a hook for the
   typography rules below (.anchor-text, .accountability-line, etc.). */

/* No longer needed as an override — dark-teal is now .card-label's base
   color — kept as a no-op selector so a future base-color change doesn't
   silently wash out the label on the sand background without a reminder
   to re-check this card specifically. */
.reset-intention-anchor .card-label { color: var(--dark-teal); }

.reset-intention-anchor .anchor-text {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--dark-teal);
  font-size: 1.1rem;
  /* Same free-text-can-be-one-unbroken-word risk as .accountability-line
     just below (2026-07-28) — the intention itself is also typed by the
     student with no length limit, so it gets the same overflow guard. */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Quiet accountability-person reminder, sitting inside the same anchor
   panel as the RESET intention just below it — deliberately plain (no
   italics, smaller, muted) since it's a passive reminder, not something
   she wrote in her own reflective voice like the intention above it. */
.accountability-line {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--slate);
  /* 2026-07-28, per Chris's screenshot: a long plan/name typed with no
     spaces (one unbroken "word") doesn't wrap at all by default — CSS
     only breaks lines at spaces unless told otherwise — so it ran straight
     off the edge of the card instead of onto a second line. This is free
     text from the intention ✎ Edit form / Day 1 setup, so there's no
     reliable length limit to lean on instead. overflow-wrap lets a run
     that has nowhere else to break wrap mid-word rather than overflow. */
  overflow-wrap: break-word;
  word-break: break-word;
}
/* 2026-07-27, per Chris: the line read too flat to scan — "Sarah" and
   "Weekly text on Sundays" carried identical weight, nothing to land on
   at a glance. Bolding just the name (not the cadence) gives the one
   personal, actually-distinguishing detail a landing point, same
   dark-teal-on-bold treatment already used for emphasized terms elsewhere
   (.signal-note-unsaved-hint strong). Applies to whatever name is on the
   `accountability_person_name` field — driven by the template, not a
   fixed string, so it bolds automatically no matter what's typed into
   "Your person" on Day 1 setup or the intention ✎ Edit form. */
.accountability-line strong {
  font-weight: 700;
  color: var(--dark-teal);
}

/* Day 7 / Day 14 evening-only nudge to message her accountability person.
   Same quiet sand-panel treatment as .midday-note-intro — plain reference
   copy sitting in the flow of the form, not a checkbox or required field,
   so it shouldn't visually compete with the actual inputs above it. */
.accountability-nudge {
  margin-top: 4px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: var(--sand);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.5;
}

/* Today's Rhythm is now its own full card (see .card--rhythm) rather
   than a tinted box nested inside the morning card — per Chris, being
   nested under the same white card still read as "part of the same
   long form" even with its own tint. This class is now just a plain
   layout wrapper for the summary row + detail below it. */
.rhythm-section {
  padding-bottom: 8px;
}

.rhythm-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.rhythm-summary-text {
  font-size: 0.95rem;
  color: var(--slate);
  min-width: 0;
}

.rhythm-summary-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rhythm-detail {
  margin-top: 14px;
  display: none;
}

.rhythm-detail.open { display: block; }

/* One coaching question for the whole Today's Rhythm section (not one per
   item) — shown once she taps "View" to expand it, before the three
   checklist items. Deliberately borrows two already-established patterns
   rather than inventing a new visual language: the sand-panel treatment
   used for app-authored guidance (.permission-reminder, .midday-note-intro)
   for the container, and the .reflection-prompt heading-font italic
   treatment for the question itself, since this is functionally the same
   kind of thing — a genuine coaching question — just shown in the morning
   rather than the evening. */
.rhythm-coaching-block {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--sand);
  border-radius: var(--radius-md);
}

.rhythm-coaching-label {
  display: block;
  font-family: var(--font-mono);
  /* Was 0.75rem — bumped for the same legibility reason as .note-badge
     above, so no small mono label on the daily screen reads noticeably
     smaller than its neighbors. */
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-teal);
  margin-bottom: 6px;
}

.rhythm-coaching-question {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--dark-teal);
  line-height: 1.5;
}

.rhythm-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.rhythm-item:last-child { border-bottom: none; }

/* Warm sand-colored badge holding the small Meals/Enhancement/Sleep icon —
   "Option B" from docs/rhythm-icons-mockup.html. Kept intentionally quiet
   (single muted stroke color, no multi-color illustration) to stay in the
   editorial register of the rest of the app. */
.rhythm-icon-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.rhythm-icon-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--deep-teal);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rhythm-item .content-col { width: 100%; }

/* Slate + semibold (was muted-teal, regular weight) — Today's Rhythm's
   own card background is a muted-teal wash, so the old muted-teal text
   was landing right on top of a close relative of itself (checked:
   ~2.6:1 contrast, well under the 4.5:1 normally wanted for body-sized
   text). Slate is already the app's go-to secondary-text color
   (.accountability-line, .permission-reminder), so this borrows a
   color that's already "in the family" for readable-but-quiet text,
   rather than introducing a one-off — and lands at ~6.9:1 against this
   card's tint. Deliberately stops short of the card-label's dark-teal
   above it, so "Today's Rhythm" still reads as the card's one true
   heading and these stay clearly one notch down from it. */
.rhythm-item .rhythm-item-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 3px;
}

.rhythm-item-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Groups the optional "(?)" hint toggle (Meals only, see buildRhythmFieldHtml's
   `hint` param) with ✎ Edit so they read as one action cluster on the right
   of .rhythm-item-label-row, rather than the row's space-between pushing
   them apart from each other. */
.rhythm-item-label-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Bolder and darker than the tracker link below it (deep-teal + semibold
   vs. the link's muted-teal + italic) so the two don't read as two equally-
   weighted options — ✎ Edit is the one real "set today's value" action;
   the tracker link is a quieter, secondary reference. Per Chris, having
   them look like near-twins was part of what made it unclear which one
   actually changes today's plan. */
.rhythm-edit-btn,
.intention-edit-btn {
  background: none;
  border: none;
  color: var(--deep-teal);
  font-weight: 600;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.rhythm-edit-field,
.intention-edit-field {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rhythm-edit-field input[type="text"],
.rhythm-edit-field textarea,
.intention-edit-field input[type="text"],
.intention-edit-field textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: var(--ivory);
  font-size: 0.95rem;
  font-family: inherit;
}

.rhythm-edit-field textarea.autogrow,
.intention-edit-field textarea.autogrow {
  resize: none;
  overflow: hidden;
  min-height: 36px;
}

.rhythm-edit-field label,
.intention-edit-field label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-teal);
  display: block;
  margin-bottom: 3px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--deep-teal);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-row span {
  white-space: pre-wrap;
  word-break: break-word;
}

.meal-prompt-line {
  font-style: italic;
  color: var(--slate);
}

/* Shown in place of the checkbox row when a rhythm item (Meals,
   Enhancement Practices, Sleep & Stress) has no value for the current day
   yet — Day 2 onward deliberately starts empty rather than carrying
   forward yesterday's (or Day 1's) entry, so she actively re-confirms her
   plan each day via ✎ Edit rather than a stale value quietly persisting. */
.rhythm-empty-row {
  padding: 2px 0;
}

.rhythm-empty-text {
  font-size: 0.92rem;
  color: var(--muted-teal);
  font-style: italic;
}

/* Quiet, always-visible nudge back to the Phase 2 Pattern Reframe Card
   (Permission Around Food) — sits with the Meals item since that's when
   permission/perfectionism thinking is most likely to show up. Same sand
   treatment as .midday-note-intro: app-authored guidance, not the
   student's own words, so no italics. */
.permission-reminder {
  margin-top: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.5;
}

/* Hydration + Flax Flush — moved here from a standalone line under Today's
   Rhythm to sit with the Meals item instead, per Chris: both are about
   what she's taking in, so they belong with the rest of the meal guidance
   rather than floating on their own. Same quiet muted-teal treatment the
   line always had, just relocated. */
.meal-hydration-line {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted-teal);
}

/* Today's Rhythm — the "go back to your tracker" link. Every rhythm item
   (Meals, Enhancement Practices, Sleep & Stress) uses this exact same
   class, wording, and placement, since they're all doing the same job:
   sending the student back to Podia to view or change their personal
   choice. Deliberately quiet/secondary — it's a reference action, not
   part of the daily habit loop. */
.rhythm-tracker-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted-teal);
  text-decoration: none;
}
.rhythm-tracker-link:hover { text-decoration: underline; }

/* "Two check-ins is enough" reassurance line — 2026-08-03, per Chris: no
   longer shown every day. It only renders inside the Heads Up card
   (.card--note), which itself is now conditional (see shouldShowHeadsUp
   in dashboard.js — visible Days 1, 2, 7, 14 only). Originally given the
   same quiet sand-panel treatment used elsewhere in this file for
   app-authored guidance (.rhythm-coaching-block, .permission-reminder,
   .accountability-nudge, .evening-signals-note, .morning-complete-gate all
   still use it) — deliberately matching .reset-intention-anchor's sand at
   the time, back when Heads Up sat lower in the flow.

   2026-08-04, per Chris: Heads Up moved to sit directly under RESET
   Intention (see the comment above .card--note in this file), so that
   deliberate sand-match became the exact problem it wasn't before — this
   box and the Intention card's own sand fill sitting flush against each
   other read as one blended block, not two cards. This is the one
   exception in the sand-panel-guidance family: swapped to the same ivory
   tone already used for this same card's own .midday-note-standalone-hint
   box (see that rule below), plus a thin neutral border since the card
   itself (.card--note) is also ivory now — without the border the box
   would have no edge to read as its own panel sitting on a same-color
   card. The amber card border and "HEADS UP" pill stay as the only accent
   color here; this inner box is neutral on purpose. */
.midday-note-intro {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.5;
}

/* TWO_CHECKINS_LINE is built from three separate inline elements (see
   constants.js) instead of one dense paragraph — per Chris, the original
   single block read as long enough to skip. Each piece is forced onto
   its own line with a little breathing room between them so it reads as
   three quick beats. */
.midday-note-intro .two-checkins-line {
  display: block;
}
.midday-note-intro .two-checkins-line:not(:last-child) {
  margin-bottom: 8px;
}

/* The "you can check in any time something stands out" clause inside
   .midday-note-intro — per Chris, this is the part he most wants
   students to actually register (the two-check-ins-is-enough framing
   was already well understood and this "any time" option was getting
   buried in the paragraph). Deep teal + medium weight, not a full
   sand-panel-within-a-panel, so it reads as gentle emphasis rather than
   a separate alert. */
.two-checkins-highlight {
  color: var(--deep-teal);
  font-weight: 600;
}

/* Mid-day note */

.midday-note-trigger {
  margin-top: 18px;
}

/* 2026-08-03, per Chris: the note trigger's permanent home, now that Heads
   Up (.card--note) is conditional and can't be relied on to carry it every
   day (see shouldShowHeadsUp in dashboard.js). Quiet and small (no heading,
   just the "Add a note +" link, or the open field/saved notes once there's
   something to show) since it's a permanent utility, not a section to
   complete on its own. The bottom border gives it a clear edge to end at
   before whatever sits below it, since unlike its old home inside
   .card--note it no longer has its own card boundary to stop at.

   2026-08-04, per Chris: relocated again — off the Sleep card, now sitting
   at the top of .card--morning-complete (a plain white card), right above
   the completion button/gate. It's a whole-day catch-all, not tied to
   sleep specifically, so it belongs as the last "anything else" beat
   before the actual completion action. Border color switched from the
   soft-teal tint that matched the old Sleep-card background to the app's
   plain neutral border (var(--border-soft)) to match its new white-card
   home instead. */
.midday-note-standalone {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

/* Only rendered on days Heads Up is hidden (see shouldShowHeadsUp in
   dashboard.js) — originally the same quiet mono/muted-teal treatment as
   .intention-hint, since it's doing the same job: a short app-authored
   caption, not a section of its own.

   2026-08-03 (round 3), per Chris: that plain mono/muted-teal line read as
   flat and clinical — the same complaint she had about .logged-late-pill
   before it moved off mono to a warmer, boxed treatment. Applied the same
   fix here: regular body font instead of mono (mono in this app is
   reserved for data/status readouts, not prose), and a soft boxed
   background instead of bare text sitting on the card's own teal wash.

   2026-08-03 (round 4), per Chris: the first pass used a sand background,
   reasoning it matched the app's other "note" moments
   (.sleep-note-preview-row, .card--intention). Chris flagged that this
   actually clashes/reads as a repeat, since .card--intention sits just one
   card above this one in the stack and sand is already doing identity work
   for that card specifically — reusing it this close by reads as leakage,
   not intentional echo. Switched to the neutral "own box sitting on a
   colored card" language already used elsewhere on this exact card
   (.own-line-input, the note/sleep-note textareas): ivory fill + a thin
   border, instead of a second color competing with the card's own tint. */
.midday-note-standalone-hint {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--slate);
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 10px;
}

.midday-note-field {
  margin-top: 10px;
}

/* Saved mid-day note — compact single-line row, not a full open card, so
   several entries in one day stay a slim stack rather than a tall one. */
.midday-note-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.midday-note-row-text {
  color: var(--slate);
  min-width: 0;
}

.midday-note-row .btn-text { white-space: nowrap; }

/* ---------------------------------------------------------------------
   Evening section
   --------------------------------------------------------------------- */

.evening-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.evening-placeholder .placeholder-text {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--dark-teal);
}

.evening-complete-line {
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--dark-teal);
  font-size: 1.1rem;
  animation: gentle-fade-in 1.1s ease;
}

@keyframes gentle-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Day-complete status chip inside .evening-complete-line (2026-07-27, per
   Chris — was a plain small mono/muted line, easy to read as a footnote
   rather than the actual "you're done" status it is). Solid deep-teal fill
   (not a translucent tint) since it needs to read clearly against this
   card's --sand background; ivory text mirrors the app's other solid-fill
   status chips (e.g. header day-count caps). display:inline-block lets it
   size to its own text and center itself via .evening-complete-line's
   existing text-align:center, rather than spanning the full card width. */
.evening-complete-daycount-pill {
  display: inline-block;
  background: var(--deep-teal);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: 12px;
}

.milestone-glow {
  animation: gentle-fade-in 1.4s ease, soft-glow 2.4s ease 0.2s;
}

@keyframes soft-glow {
  0% { box-shadow: 0 0 0 rgba(212, 135, 74, 0); }
  30% { box-shadow: 0 0 26px rgba(212, 135, 74, 0.28); }
  100% { box-shadow: 0 0 0 rgba(212, 135, 74, 0); }
}

/* Gap between signals opened up 2026-07-25 round 3, per Chris ("crammed
   together between scales") — 22/18px read fine for one signal in
   isolation but too tight once 7 of these stack in one card; each
   signal now gets clearly its own space before the next one starts. */
.signal-block {
  margin-bottom: 30px;
}
.signal-block:last-of-type { margin-bottom: 0; }

/* The two free-text prompts at the bottom of the card (the day's
   reflection question + "one thing to remember") aren't one of the 7
   scored signals, so they don't get a row-tint below — kept on the
   plain hairline-divider treatment this whole section used before the
   tinting existed. */
.signal-block--plain {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.signal-block--plain:last-of-type {
  padding-bottom: 0;
  border-bottom: none;
}

/* Alternating row-card tints (2026-07-25 round 4, per Chris): "digestion
   on teal, energy on sand, cognitive back to teal and so on." Each of the
   5 signal groups (Digestion/Energy/Cognitive/Mood/Hunger) now sits on its
   own rounded, gently-tinted card rather than being told apart purely by
   whitespace + a hairline rule — reinforces round 3's spacing fix rather
   than replacing it, so scanning down the list reads as "5 distinct
   rows" at a glance. Kept deliberately subtle (8-10% tint, no border) so
   the white `.slider-row` control still reads as the brightest, most
   prominent object inside each row — the tint differentiates rows from
   each other, it doesn't compete with the slider. Teal tint reuses the
   exact value already used for `.section-group--morning`'s body wash, for
   consistency; sand tint is a diluted version of `--sand` (the solid sand
   used at full strength for the top `.evening-signals-note` panel) —
   diluted specifically so a signal row never reads as "the same kind of
   box" as that instructional note above it. */
.signal-block--tint-a,
.signal-block--tint-b {
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
}
.signal-block--tint-a {
  background: rgba(74, 158, 158, 0.1);
}
.signal-block--tint-b {
  background: rgba(237, 224, 204, 0.55);
}

/* Bumped 2026-07-25 round 4, per Chris ("digestion, energy, cognitive
   clarity bigger in size") — these names are the first thing to read on
   each row, so they get a clearer size step up from the descriptor line
   beneath them. */
.signal-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--dark-teal);
}

.signal-descriptor {
  font-size: 0.9rem;
  color: var(--muted-teal);
  margin-top: 2px;
  margin-bottom: 10px;
}

/* Wrapper for a signal's optional note (2026-07-25 round 4) — see
   buildSignalNoteHtml in dashboard.js for why the question moved out of
   the placeholder attribute and into its own persistent line here.
   Round 6 (2026-07-25), per Chris: she noticed the Energy block had a
   divider line between its scored area (sliders + "Not answered yet" hint)
   and its note prompt, but the single-signal cards (Cognitive clarity,
   Digestion, Mood, Hunger) didn't, and asked whether that line is worth
   having consistently everywhere. Decided yes — it's a genuinely useful
   piece of structure, not decoration: it visually separates "the scored
   part" from "the optional written part" in every card, which is a real
   grouping distinction worth showing, and a single hairline costs very
   little against the clutter concern. Made intentional and consistent by
   moving the divider here (border-top on the note wrapper itself, which
   every signal block — energy included — always renders, since every
   entry in EVENING_SIGNALS has hasNote:true), rather than leaving it as an
   accidental side effect of a `:last-of-type` selector on `.energy-subrow`
   that, on inspection, never actually matched (the true last div child of
   an energy `.signal-block` was always `.signal-note-block`, not the third
   `.energy-subrow` — so that old override was dead code producing the line
   by accident, not by design). See the `.energy-subrow` block below for the
   matching cleanup. Sleep's own note wrapper (`.sleep-note-block`) gets the
   same treatment for the same reason, so the two check-in cards match. */
.signal-note-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

/* The question itself, always visible above the field — kept small,
   italic, and muted (well below `.signal-descriptor`'s weight) so it
   reads clearly as "here's what to write about" without competing with
   the slider or the signal name above it. */
.signal-note-prompt {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.84rem;
  color: var(--slate);
  opacity: 0.85;
  line-height: 1.4;
  margin-bottom: 6px;
}

.signal-note-field {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--ivory);
  resize: vertical;
  min-height: 52px;
}

/* "Not saved yet" hint for an evening signal note (2026-07-27, per Chris)
   — mirrors .signal-save-status's amber "pending" tone (same color, same
   small size) so it reads as the same kind of status message students
   already know from the score above, not a new pattern. Hidden by default;
   toggled on via wireSignalNoteHints's `input` listener in dashboard.js. */
.signal-note-unsaved-hint {
  display: none;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--amber);
}
.signal-note-unsaved-hint.visible {
  display: block;
}
/* 2026-07-27, per Chris: "Complete evening check-in" (the actual button
   label this hint is pointing at) needed to read more clearly than the
   surrounding sentence — bolded the same way other button/action names are
   emphasized elsewhere (e.g. the today-nudge's "Haven't tapped Complete
   morning check-in yet?"). */
.signal-note-unsaved-hint strong {
  font-weight: 700;
  color: var(--dark-teal);
}

/* The three energy signals (morning/afternoon/evening), collapsed into
   one "Energy" block — each mini-row keeps its own slider and scale
   anchors but shares one heading, one info-hint, and one note field
   underneath (see .signal-note-field above), since the note is meant to
   reflect on the whole day's energy shape, not just the evening reading. */
/* Opened up 2026-07-25 round 3, per Chris — the Energy block's three
   mini-rows (morning/afternoon/evening) were the most visibly "crammed"
   spot in her screenshot, three near-identical sliders stacked with
   barely a gap between them. More room here specifically so each of the
   three reads as its own moment rather than one dense strip. */
/* Round 5 (2026-07-25), per Chris: the dashed divider plus one uniform
   muted-teal label still weren't enough — her exact words were that "the
   eyes are still struggling to focus and adjust to what is different"
   between the three rows. A stronger divider on its own would only have
   made the boundary clearer, not the identity of each row, so this pairs
   two things: a solid (not dashed) divider that reads as a real break
   rather than a texture, and a left accent border + colored label that's
   unique to each of the three rows, so which-row-is-this doesn't depend on
   reading "Morning"/"Afternoon"/"Evening" at all. The three colors reuse
   the exact convention already established for the Morning/Evening section
   header bars elsewhere in this file (search "echoing sunrise" /
   "echoing dusk") — muted-teal for morning, dark-teal for evening — rather
   than inventing a new palette. Afternoon sits at deep-teal, the one shade
   between those two in the same family, so the three rows read as one
   hue moving through the day (light → mid → dark) exactly like that
   existing pattern, not three arbitrary colors. */
.energy-subrow {
  margin-bottom: 24px;
  padding-bottom: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
/* Round 6 (2026-07-25) fix: `:last-of-type` here never actually matched —
   the true last `div` child of an energy `.signal-block` is always
   `.signal-note-block` (see above), not the third `.energy-subrow`, so
   this rule was dead code and the third row's own border/padding was
   showing by accident the whole time. Targeting energy_evening by
   data-signal directly (same pattern already used for its accent color
   just below) is what actually zeroes it out, now that the intentional
   divider lives on `.signal-note-block` instead. */
.energy-subrow[data-signal="energy_evening"] {
  border-bottom: none;
  padding-bottom: 0;
}
.energy-subrow[data-signal="energy_morning"] { border-left-color: var(--muted-teal); }
.energy-subrow[data-signal="energy_afternoon"] { border-left-color: var(--deep-teal); }
.energy-subrow[data-signal="energy_evening"] { border-left-color: var(--dark-teal); }

.energy-subrow-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.energy-subrow[data-signal="energy_morning"] .energy-subrow-label { color: var(--muted-teal); }
.energy-subrow[data-signal="energy_afternoon"] .energy-subrow-label { color: var(--deep-teal); }
.energy-subrow[data-signal="energy_evening"] .energy-subrow-label { color: var(--dark-teal); }

/* Slider */

/* Enlarged 2026-07-25, per Chris ("sliders don't look like the main
   feature and a bit unnoticeable"): track height and thumb size both
   bumped up noticeably — these sliders ARE the primary input on every
   check-in card, so they need to visually out-rank the surrounding body
   copy, not sit at the same quiet scale as a caption. Track's default
   background (used whenever a slider doesn't carry its own inline
   value-fill style — see .slider-row below and signal-slider-fill in
   dashboard.js) stays a plain static two-tone gradient rather than
   trying to imply a value. */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--soft-teal), var(--muted-teal));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--deep-teal);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(26,53,53,0.35);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--deep-teal);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(26,53,53,0.35);
  cursor: pointer;
}

/* Applied to any score slider while its value is null (2026-06-18, sleep
   only; extended 2026-07-25 to all 7 evening signal sliders) — the input
   still has to render at some position (anchored at 1), so without this it
   would look like a legitimate "1" sitting there rather than an unanswered
   question. Hollow thumb + dashed, dimmed track reads as "empty" instead,
   matching the "—" value label next to it. Removed once that slider's own
   Save actually succeeds (see markSleepSliderTouched / the signal-save-btn
   handler in dashboard.js) — from then on it's a real value and should look
   like every other slider in the app. */
input[type="range"].slider-unset {
  background: repeating-linear-gradient(
    90deg,
    var(--muted-teal) 0px,
    var(--muted-teal) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.6;
}

input[type="range"].slider-unset::-webkit-slider-thumb {
  background: #fff;
  border: 4px solid var(--muted-teal);
  box-shadow: none;
}

input[type="range"].slider-unset::-moz-range-thumb {
  background: #fff;
  border: 4px solid var(--muted-teal);
}

/* Two-word scale anchors only (reworked 2026-07-25 round 3, per Chris,
   reversing the same-day "show numbers 1,2,3,4,5" request above): once
   seen live across 7 stacked signals, the 1-2-3-4-5 row read as more
   clutter to parse rather than useful — and the live number readout next
   to the slider already shows exactly where she is the instant she drags
   it, so a second numeric scale underneath was redundant. Now just the
   two named anchors ("Low energy" / "High energy", etc., from each
   signal's scaleLow/scaleHigh), left and right, doing the same job in
   fewer words. Color bumped from --muted-teal to --slate — the lighter
   teal read at very low contrast against this section's own teal-tinted
   background wash (.section-group--evening .section-group-body), which
   was part of why the scale was hard to distinguish; --slate matches the
   body-text color already used for this app's other secondary captions
   (.evening-signals-note) and reads clearly on both the tinted section
   background and the white .slider-row card. margin-top opened up from
   2px to 8px so the scale has real breathing room below the slider
   instead of crowding straight under it. */
.slider-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  margin-top: 8px;
}

/* Bumped up 2026-07-25 alongside the slider itself — the number readout
   is the other half of "what did I answer", so it gets the same
   size/weight boost as the slider it sits next to. */
.slider-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-teal);
  min-width: 32px;
  text-align: center;
}

/* Given its own boxed "control card" 2026-07-25, per Chris: on its own,
   even a bigger/bolder slider still read as a thin line lost between the
   descriptor text above and the scale/hint text below. Wrapping the row
   itself in a white card with a border and soft shadow — the same
   shadow/border language as this app's other cards (.card,
   .data-panel) — gives it a real visual boundary, so it reads as the
   one interactive control on the block rather than another strip of the
   page. */
.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 6px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.slider-row input[type="range"] { flex: 1; }

/* Reflection prompts */

.reflection-prompt {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--dark-teal);
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------------
   Community card body copy — this used to be a small teal "footnote"
   tucked at the bottom of another card, hence the muted-teal text. Now
   that it's promoted to its own amber-tinted card (.card--community),
   a teal-colored paragraph between the amber heading and amber link read
   as a mismatched leftover, so the body copy uses the standard slate
   body-text color like every other card, leaving amber for the heading
   and link only.
   --------------------------------------------------------------------- */

.community-footnote {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
  font-size: 0.9rem;
  color: var(--slate);
}

/* Weight bumped 400 → 600 (2026-07-27, per Chris: felt "faint") — same
   amber hue and same very-light card background as before, so the calm
   feel holds; a heavier weight was the lever here rather than a darker or
   more saturated color, matching .card-label's own 600 weight so this
   heading carries the same visual solidity as every other card's. */
.community-footnote .community-heading {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 4px;
  display: block;
}

/* Superseded by the .btn.btn-secondary treatment below (2026-07-27) for
   any link inside this card — kept as a fallback rule in case a plain,
   un-classed <a> ever lands here again. */
.community-footnote a {
  color: var(--amber);
  font-weight: 700;
  text-decoration: none;
}
.community-footnote a:hover { text-decoration: underline; }

/* "Share in the community →" promoted from a plain link to the app's
   .btn-secondary outlined pill (2026-07-27, per Chris — see the comment
   above buildCommunityHtml in dashboard.js). Recolored from the base
   .btn-secondary's deep-teal to this card's own amber accent so it matches
   .card--community's existing heading/link color instead of clashing with
   it. Scoped to this card only — .btn-secondary elsewhere in the app
   (editEveningBtn, etc.) stays deep-teal. */
.card--community .btn-secondary {
  color: var(--amber);
  border-color: var(--amber);
}
.card--community .btn-secondary:hover {
  background: rgba(212, 135, 74, 0.08);
}

/* ---------------------------------------------------------------------
   Weekly summary band — always visible
   --------------------------------------------------------------------- */

.summary-band {
  background: var(--dark-teal);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-top: 22px;
  line-height: 1.5;
}

/* Cleanup pass (2026-06-18, per Chris — "a lot of words, make it cleaner"):
   the day-count row now shares one line with a (?) toggle instead of a
   permanently-visible explainer sentence underneath it (see
   .band-info-panel below), which was the single biggest source of
   always-on copy in the band. */
.summary-band .band-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.summary-band .band-day-count {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--soft-teal);
}

/* Same shape/interaction as .info-toggle-btn (sleep/energy hint toggles),
   recolored for the band's dark-teal background instead of a light card. */
.summary-band .band-info-toggle {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(142, 206, 206, 0.4);
  background: transparent;
  color: var(--soft-teal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Collapsed by default — expands in place when .band-info-toggle is
   clicked. Same explainer copy as before, just no longer always-on.
   Recolored + resized 2026-06-18, per Chris: muted-teal at 0.78rem sat too
   close in brightness to .band-day-count's soft-teal right above it, so
   the two ran together instead of reading as header + caption. Dimmed
   ivory (low opacity, not a teal at all) plus a bit more top margin now
   makes it unmistakably a secondary aside once opened, not a second
   headline. */
.summary-band .band-info-panel {
  display: none;
  font-size: 0.76rem;
  color: rgba(250, 246, 239, 0.55);
  margin-top: 6px;
  margin-bottom: 8px;
}
.summary-band .band-info-panel.open { display: block; }

/* Upgraded to the same italic-serif "quote" treatment already used for
   reflective/affirming one-liners elsewhere (.anchor-text, .evening-
   complete-line, .placeholder-text) — 2026-06-18, per Chris flagging the
   band's rotating line as visually flat/boring. Was plain body-font text
   at the same weight as everything else in the band; italic Playfair
   Display + a touch more size sets it apart as the band's one "brand
   voice" moment instead of reading like another status line.
   Given its own hairline divider + real top space (2026-06-18, per Chris
   asking for "some space or a fancy line" above it) — previously it sat
   right under the today-status line with only 4px between them, so the
   status block and the quote read as one run-on paragraph instead of two
   distinct moments (what's true today, vs. this program's voice). The
   divider is a faint soft-teal hairline, not a full-strength rule, so it
   reads as a quiet seam rather than a hard section break. */
.summary-band .band-line {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--soft-teal);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(142, 206, 206, 0.2);
}

.summary-band a.band-link {
  color: var(--amber-soft);
  font-size: 0.9rem;
}

/* Row of revisit links at the bottom of the band ("View previous days" /
   "View Week 1 summary" / "View your 21-day summary") — a wrap-friendly
   flex row with real gap between items, replacing the old per-link
   `margin-right:16px` inline styles (which also didn't wrap cleanly and
   left uneven spacing after whichever link happened to render last). */
.band-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Round 6 (2026-07-25), per Chris asking to see these as a button/pill
   instead of plain underlined text. These are secondary/tertiary
   navigation (revisiting past data), not primary actions — the band's
   real "action" moment is the today-nudge line above ("finish it →"),
   which stays a plain underlined link on purpose so it doesn't visually
   compete with these.
   Round 8 (2026-07-25): swapped from the pill (tint + outline border) to
   a chip — border dropped entirely, kept only the tint + full radius +
   padding, per Chris wanting to compare the two side by side. No outline
   at all reads even lighter than the pill did, so bumped the background
   tint up slightly (0.12 → 0.16 opacity) to make sure the shape still
   reads clearly against the dark-teal band without a border doing that
   job. Class name kept as `--pill` rather than renamed to `--chip` so this
   stays a one-rule swap if she prefers going back to the outlined version. */
.band-link--pill {
  display: inline-flex;
  align-items: center;
  color: var(--amber-soft);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(232, 184, 154, 0.16);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.band-link--pill:hover {
  background: rgba(232, 184, 154, 0.26);
}

.summary-band .band-nudge-line {
  font-size: 0.85rem;
  color: var(--amber-soft);
  margin-bottom: 8px;
}

.summary-band .band-nudge-line a.band-link {
  font-size: inherit;
  text-decoration: underline;
}

/* Amber (band-nudge-line's default) reads as "needs your attention"
   everywhere else in this app (milestone CTAs, the open-item nudges
   above) — reusing it for the "both done" state would send a mixed
   signal right when the message is meant to say the opposite. Soft-teal
   instead, matching .band-line's already-calm tone. (2026-06-18)

   2026-07-27, per Chris: also reused (not a new class) for the
   evening-done/morning-not-yet state in buildTodayNudgeHtml
   (js/views/dashboard.js) now that isDayComplete is evening-only — that
   state is no longer an open item either, so it gets the same calm
   treatment rather than a third color for what's really the same
   "nothing left to worry about" tone. */
.summary-band .band-nudge-line--done {
  color: var(--soft-teal);
}

/* "Today's already complete, morning tap still optional" state, presented
   as its own card (2026-07-27, per Chris) rather than a bare paragraph
   sitting directly on the band's dark-teal background — the plain-text
   version read as "a lot of words" next to the short, punchy day-count
   line above it.
   Round 2, same day: a translucent soft-teal tint (rgba 0.14) turned out
   to barely register against the dark-teal band — same hue family as the
   background, so brightening it slightly wasn't enough to read as a
   distinct shape (unlike .band-link--pill's amber-soft tint further down,
   which pops because amber is a different hue from dark-teal, not just
   lighter). Switched to a solid soft-teal fill instead — inverted to
   dark-teal text on top, same light-chip-on-dark-band contrast trick as
   the day-count pill's dark-chip-on-light-card. `strong`/the link inside
   are recolored too since the default ivory/amber-soft link color (tuned
   for text sitting directly on dark-teal) would wash out on this now-light
   background. */
.summary-band .band-nudge-pill {
  display: block;
  background: var(--soft-teal);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--dark-teal);
}

.summary-band .band-nudge-pill strong {
  color: var(--dark-teal);
}

.summary-band .band-nudge-pill a.band-link {
  color: var(--deep-teal);
  font-weight: 600;
  font-size: inherit;
}

/* ---------------------------------------------------------------------
   Trend summary screens (Day 7 / Day 21)
   --------------------------------------------------------------------- */

.trend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.trend-label {
  width: 150px;
  font-size: 0.85rem;
  color: var(--slate);
  flex-shrink: 0;
}

.trend-bars {
  flex: 1;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 34px;
}

.trend-bar {
  flex: 1;
  background: var(--muted-teal);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
}

.trend-bar.missing { background: var(--border-soft); }

/* ---------------------------------------------------------------------
   Previous days (history) view
   --------------------------------------------------------------------- */

/* Keeps "← Back to today" visually separated from "+ Add a note for this
   day" — both are .btn-text buttons that would otherwise sit on the same
   line right after one another. */
.history-back-row {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-soft);
}

/* ---------------------------------------------------------------------
   Day 21 evaluation
   --------------------------------------------------------------------- */

.data-panel {
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.data-panel .panel-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-teal);
  margin-bottom: 6px;
  display: block;
}

/* Marks the two evening free-text prompts (reflection + remember note,
   js/views/dashboard.js buildEveningSectionHtml) as distinct from the
   scored signal cards directly above them — 2026-07-27, per Chris.
   Round 1 was a plain small mono label (matching .data-panel .panel-label)
   with the "not scored, saves at Complete" explanation spelled out in the
   copy itself — Chris felt that read as "ugly copy," not a real title.
   Round 2 (same day): the explanatory half moved to the two fields' own
   .signal-note-unsaved-hint (same "Not saved yet" mechanism the 7 signal
   notes already use, wired in attachListeners), which freed this up to be
   just a short title — "2 more optional questions" — given the same solid
   deep-teal chip treatment as .evening-complete-daycount-pill elsewhere on
   this card, so it reads as a real title, not another line of body copy. */
.evening-notes-title-pill {
  display: inline-block;
  background: var(--deep-teal);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.eval-question-block {
  margin-bottom: 34px;
}

.eval-question-block textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fff;
  margin-top: 8px;
}

/* ---------------------------------------------------------------------
   Setup / login / auth forms
   --------------------------------------------------------------------- */

.auth-shell, .setup-shell {
  max-width: 480px;
  margin: 40px auto;
  padding: 0 18px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 0.9rem;
  color: var(--dark-teal);
  margin-bottom: 6px;
  font-weight: 700;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: #fff;
  font-size: 1rem;
}

.form-field textarea.autogrow {
  resize: none;
  overflow: hidden;
  min-height: 44px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--muted-teal);
  margin-top: 4px;
}

.tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--slate);
  font-weight: 700;
}

.tab-btn.active {
  background: var(--dark-teal);
  color: #fff;
  border-color: var(--dark-teal);
}

.error-text { color: #A64B4B; font-size: 0.9rem; margin-top: 6px; }

/* ---------------------------------------------------------------------
   Coach digest view
   --------------------------------------------------------------------- */

.coach-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.coach-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-teal);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
}

.coach-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.coach-table tr:hover { background: var(--ivory); }

/* Cohort milestone dates — was one long middot-separated line, hard to
   scan for any single date. Each date gets its own labelled block instead,
   wrapping into as many columns as fit. */
.cohort-dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px 18px;
  margin: 8px 0 12px;
}

.cohort-date-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cohort-date-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-teal);
}

.cohort-date-value {
  font-size: 0.88rem;
  color: var(--slate);
}

/* Client detail panel's status/compliance summary (2026-07-22) — used to be
   3 stacked middot-separated lines (Cycle/Day/Meal plan, Cohort/Access,
   Enhancement/Sleep/Meal compliance), same "wall of text" problem the
   cohort dates grid above solved. Same label-over-value pattern, generic
   name since it's reused for non-date facts too. */
.client-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 18px;
  margin: 10px 0;
}

/* Top status row (2026-07-22) — flexbox instead of the grid above. Grid's
   auto-fit divides the row into a fixed number of equal-width tracks based
   on a minimum column width, which was wrapping the last item (Access) to
   its own line even when there was visibly room left. Flex only wraps an
   item once the row truly runs out of space, since each item just takes
   the width its own content needs — the more reliable way to "fit as many
   on one line as possible." */
.client-meta-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
  row-gap: 10px;
  margin: 10px 0;
}

.client-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-meta-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-teal);
}

.client-meta-value {
  font-size: 0.88rem;
  color: var(--slate);
}

.meta-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-teal);
  margin: 14px 0 0;
}

/* Extra breathing room below the compliance grid, before the trend chart's
   Digestion/Cognitive/Hunger/Mood rows start (2026-07-22, per Chris — the
   two ran together with no visual gap). */
.client-meta-grid--compliance {
  margin-bottom: 28px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--soft-teal);
  color: var(--dark-teal);
  line-height: 1.4;
}

/* ---------------------------------------------------------------------
   Misc
   --------------------------------------------------------------------- */

.muted { color: var(--muted-teal); }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

.loading-line {
  text-align: center;
  color: var(--muted-teal);
  padding: 60px 20px;
  font-family: var(--font-mono);
}

@media (max-width: 480px) {
  .shell-main { padding: 16px 14px 50px 14px; }
  .card { padding: 18px 16px; }
  .trend-label { width: 110px; font-size: 0.78rem; }
}

/* Access code locked when it arrives via a cohort signup link (2026-11-23).
   Read-only, so it is still submitted with the form. */
.form-field input.access-code-locked {
  background: var(--sand);
  color: var(--slate);
  cursor: not-allowed;
}
