/* ════════════════════════════════════════════════════════════════
   pv-light.css: the PeptaVive light look (Stage 2, Nov 2026)

   From the approved mocks: mocks/home-dashboard-mock.html (the member
   home) and mocks/app-listing-mock-v11.html (tokens). Component sample:
   mocks/pv-light-kit.html (never deployed).

   OPT IN: load this AFTER shared.css and put class="pvl" on <body>.
   Every rule is scoped to .pvl, so a page that doesn't opt in is
   untouched.

   RULES THE KIT KEEPS:
   - No text under 15.2px. shared.css sets the root to 19px, so the
     floor is 0.8rem (--pvl-min).
   - Every text color is at least 4.5:1 on every background it is used
     on. Where the mocks fell short, the shade was darkened (noted below).
   - Gold #C9A84C is decoration only (2:1 as text). Gold text uses
     --pvl-gold-text; light gold sits only on ink.
   - Text is left-aligned. Line-heights stay at 1.8 or below.
   - Weights already loaded by shared.css: Cormorant Garamond 400–600
     (plus italics) and Josefin Sans 300–600. No extra font downloads.
   ════════════════════════════════════════════════════════════════ */

.pvl {
  /* surfaces */
  --pvl-page: #FBF8F2;
  --pvl-card: #FFFFFF;
  --pvl-sunk: #EFE9DF;          /* tab track, bar track */
  --pvl-thumb: #F3EEE5;
  --pvl-line: rgba(42, 35, 26, .12);
  --pvl-line-strong: rgba(42, 35, 26, .28);
  --pvl-shadow: 0 1px 4px rgba(60, 45, 20, .08);
  --pvl-shadow-up: 0 2px 14px rgba(60, 45, 20, .16);

  /* text */
  --pvl-ink: #2A231A;
  --pvl-ink2: #5A4E3E;
  --pvl-muted: #6E6254;         /* mocks: #857868 (3.5–4.3) and #76695A (4.3 on tints): darkened */
  --pvl-gold-text: #7D5F1C;
  --pvl-cream: #F5EFE6;         /* on ink only */

  /* gold */
  --pvl-gold: #C9A84C;          /* decoration only */
  --pvl-gold-hi: #E8C97A;       /* on ink only */
  --pvl-seal: radial-gradient(circle at 35% 30%, #f6e3a1, #c9a84c 55%, #A98937);   /* mocks' edge #8a6a22 put the P at 3.1:1; lifted to pass even at the edge */

  /* status: badges carry white text */
  --pvl-ok: #276848;
  --pvl-warn: #8E6517;          /* mock #A0721A was 4.27 with white: darkened */
  --pvl-ask: #3D5F80;
  --pvl-track: #6E5A3C;
  --pvl-rose: #A74C44;          /* as text on light: mock #B4524A was 4.1 */

  /* tints (backgrounds) and dots, in pairs */
  --pvl-t1: #F2DAD1; --pvl-d1: #C9806A;
  --pvl-t2: #E7DCEB; --pvl-d2: #7E5A8C;
  --pvl-t3: #D6E8E8; --pvl-d3: #4F8A8B;
  --pvl-t4: #F6E6C4; --pvl-d4: #D9A247;
  --pvl-t5: #DDE8DA; --pvl-d5: #93AE8E;
  --pvl-t6: #EBD3D9; --pvl-d6: #8A3A4F;
  /* results (decoration; always beside words): kept · stopped · still testing */
  --pvl-res-keep: #4FA27A; --pvl-res-kill: #C9806A; --pvl-res-open: #D9A247;

  /* type: root is 19px (shared.css), so 0.8rem = 15.2px */
  --pvl-serif: 'Cormorant Garamond', Georgia, serif;
  --pvl-sans: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
  --pvl-min: 0.8rem;            /* 15.2px: the floor. captions, sub-lines, labels, tabs */
  --pvl-body: 0.9rem;           /* 17.1px */
  --pvl-name: 1rem;             /* 19px: item names */
  --pvl-h3: 1.26rem;            /* 24px: section heads (Cormorant 600) */
  --pvl-hi: 1.68rem;            /* 32px: greeting (Cormorant 500) */
  --pvl-big: 2rem;              /* 38px: numbers */

  --pvl-radius: 16px;
  --pvl-tap: 44px;              /* smallest tap target */
  --pvl-tabbar-h: 68px;
}

/* ── the page ─────────────────────────────────────────────────── */
html:has(body.pvl) { background: #FBF8F2; }
body.pvl {
  background: var(--pvl-page);
  color: var(--pvl-ink);
  font-family: var(--pvl-sans);
  font-size: var(--pvl-body);
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}
/* the dark site's shells step aside on light pages */
body.pvl .pv-bg,
body.pvl > .site-nav,
body.pvl .ask-launcher { display: none !important; }
body.pvl .page-main { padding-top: 0; }
.pvl input::placeholder,
.pvl textarea::placeholder { color: var(--pvl-muted); opacity: 1; }
.pvl ::selection { background: var(--pvl-t4); color: var(--pvl-ink); }
.pvl :focus-visible { outline: 3px solid var(--pvl-ask); outline-offset: 2px; border-radius: 6px; }
.pvl a { color: inherit; }

/* one column on phones; two from 900px (.pvl-cols) */
.pvl .pvl-app {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px calc(var(--pvl-tabbar-h) + 40px + env(safe-area-inset-bottom, 0px));
}
.pvl .pvl-app--wide { max-width: 1040px; }
.pvl .pvl-cols { display: grid; grid-template-columns: 1fr; gap: 0 32px; }
.pvl .pvl-col { min-width: 0; }
@media (min-width: 900px) {
  .pvl .pvl-cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .pvl .pvl-app { padding-bottom: 48px; }
}

/* ── top bar: ☰ · seal · bell ─────────────────────────────────── */
.pvl .pvl-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: rgba(251, 248, 242, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pvl .pvl-icbtn {
  position: relative;
  width: var(--pvl-tap); height: var(--pvl-tap); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--pvl-card); box-shadow: var(--pvl-shadow);
  color: var(--pvl-ink); cursor: pointer; text-decoration: none;
}
.pvl .pvl-icbtn svg { width: 20px; height: 20px; }
.pvl .pvl-icbtn .pvl-dot-on {   /* bell dot: only when something is due */
  position: absolute; top: 9px; right: 10px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--pvl-gold); border: 2px solid var(--pvl-card);
}
.pvl .pvl-seal {
  width: var(--pvl-tap); height: var(--pvl-tap); flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pvl-seal); color: #2a1f08;
  font-family: var(--pvl-serif); font-style: italic; font-weight: 600; font-size: 1.2rem; line-height: 1;
  text-decoration: none;
}
.pvl .pvl-toplinks { display: none; }
@media (min-width: 900px) {
  .pvl .pvl-top-mid { display: flex; align-items: center; gap: 28px; }
  .pvl .pvl-toplinks { display: flex; gap: 6px; }
  .pvl .pvl-toplinks a {
    font-size: var(--pvl-min); color: var(--pvl-ink2); text-decoration: none;
    padding: 0 16px; min-height: var(--pvl-tap); display: inline-flex; align-items: center; border-radius: 999px;
  }
  .pvl .pvl-toplinks a[aria-current="page"] { background: var(--pvl-sunk); color: var(--pvl-ink); font-weight: 600; }
}

/* ── greeting, labels, section heads ─────────────────────────── */
.pvl .pvl-hi { font-family: var(--pvl-serif); font-weight: 500; font-size: var(--pvl-hi); line-height: 1.15; margin: 8px 0 4px; }
.pvl .pvl-hs { font-size: var(--pvl-min); color: var(--pvl-ink2); margin: 0 0 18px; }
.pvl .pvl-label {
  font-size: var(--pvl-min); letter-spacing: .12em; text-transform: uppercase;
  color: var(--pvl-muted); font-weight: 400; margin: 0 0 6px;
}
.pvl .pvl-h {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 28px 2px 10px;
}
.pvl .pvl-h h2, .pvl .pvl-h h3, .pvl .pvl-h b {
  font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-h3); line-height: 1.2; margin: 0;
}
.pvl .pvl-link {
  font-size: var(--pvl-min); color: var(--pvl-gold-text); text-decoration: none; font-weight: 600;
  min-height: var(--pvl-tap); display: inline-flex; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--pvl-sans);
}
.pvl .pvl-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pvl .pvl-p { font-size: var(--pvl-body); color: var(--pvl-ink2); line-height: 1.6; margin: 0 0 12px; max-width: 46em; }

/* ── cards and list rows ──────────────────────────────────────── */
.pvl .pvl-card { background: var(--pvl-card); border-radius: var(--pvl-radius); box-shadow: var(--pvl-shadow); padding: 4px 16px; }
.pvl .pvl-card--pad { padding: 16px; }
.pvl .pvl-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--pvl-line);
}
.pvl .pvl-row:last-child { border-bottom: 0; }
button.pvl-row, a.pvl-row {
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.pvl .pvl-thumb {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--pvl-thumb);
  display: flex; align-items: center; justify-content: center;
}
.pvl .pvl-thumb svg { width: 26px; height: 30px; }
.pvl .pvl-txt { min-width: 0; flex: 1; }
.pvl .pvl-name { font-size: var(--pvl-name); line-height: 1.3; color: var(--pvl-ink); display: block; }
.pvl .pvl-sub { font-size: var(--pvl-min); line-height: 1.35; color: var(--pvl-muted); display: block; margin-top: 2px; }
.pvl .pvl-why { font-family: var(--pvl-serif); font-style: italic; font-size: var(--pvl-name); color: var(--pvl-ink2); display: block; margin-top: 2px; }
.pvl .pvl-row--stopped .pvl-name { color: var(--pvl-ink2); }
/* a row with a button: on phones the button drops under the text, lined
   up with it, so the name never gets squeezed onto two lines */
/* several buttons for one row sit together in .pvl-acts */
.pvl .pvl-acts { display: flex; flex-wrap: wrap; gap: 8px; flex: none; margin-left: auto; }
@media (max-width: 520px) {
  .pvl .pvl-row:has(> .pvl-btn), .pvl .pvl-row:has(> .pvl-acts) { flex-wrap: wrap; }
  .pvl .pvl-row:has(> .pvl-btn) > .pvl-txt, .pvl .pvl-row:has(> .pvl-acts) > .pvl-txt { flex-basis: calc(100% - 56px); }
  .pvl .pvl-row > .pvl-btn, .pvl .pvl-row > .pvl-acts { margin-left: 56px; }
  .pvl .pvl-row > .pvl-acts { flex: 1 1 calc(100% - 56px); min-width: 0; }   /* lets two buttons wrap instead of running past the card */
  .pvl .pvl-acts .pvl-btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }   /* a long label wraps inside its button */
}
.pvl .pvl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }   /* the hidden <svg> holding the row icons */
.pvl .pvl-acts--start { margin: 10px 0 0; justify-content: flex-start; }
.pvl .pvl-acts--flush { margin-top: 0; }
.pvl .pvl-confirm-q { margin: 4px 0 10px; }
/* a panel that opens under a row (e.g. "Add why") */
.pvl .pvl-rowpanel { flex-basis: 100%; padding: 4px 0 6px 56px; }
@media (max-width: 520px) { .pvl .pvl-rowpanel { padding-left: 0; } }
.pvl .pvl-rowpanel .pvl-chips { margin: 4px 0 10px; }

/* "Show all N ⌄" / "Show fewer ⌃" under the first three (the Day One
   picker's pattern). The chevron is drawn: Josefin has no ⌄ / ⌃. */
.pvl .pvl-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: var(--pvl-tap); padding: 0 2px; margin-top: 4px; border: 0; background: none; cursor: pointer;
  font-family: var(--pvl-sans); font-weight: 600; font-size: var(--pvl-min); letter-spacing: .12em; text-transform: uppercase;
  color: var(--pvl-gold-text); text-align: left;
}
.pvl .pvl-chev {
  width: .42em; height: .42em; flex: none; margin-left: .15em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-.233em) rotate(45deg);
}
.pvl .pvl-toggle[aria-expanded="true"] .pvl-chev { transform: rotate(-135deg); }

/* A long one-line answer shows two lines; tapping the row reads the rest. */
.pvl .pvl-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pvl .pvl-row--more { cursor: pointer; }
.pvl .pvl-row--more[aria-expanded="true"] .pvl-clamp { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }

/* verdict badges: ✓ ! ? ◷ */
.pvl .pvl-badge {
  width: 30px; height: 30px; flex: none; margin-left: auto; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 600; line-height: 1;
}
.pvl .pvl-badge--ok { background: var(--pvl-ok); }
.pvl .pvl-badge--warn { background: var(--pvl-warn); }
.pvl .pvl-badge--ask { background: var(--pvl-ask); }
.pvl .pvl-badge--track { background: var(--pvl-track); }

/* ── tabs (the cabinet's three) ───────────────────────────────── */
/* A row of pills that scrolls sideways when it doesn't fit (three tabs
   at 15.2px don't fit one row on a 375px phone). Use role="tablist" /
   role="tab" / aria-selected. */
.pvl .pvl-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pvl .pvl-tabs::-webkit-scrollbar { display: none; }
/* Every tab in view: the row wraps instead of scrolling. */
.pvl .pvl-tabs--wrap { flex-wrap: wrap; overflow-x: visible; }
.pvl .pvl-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--pvl-tap); padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--pvl-sunk); color: var(--pvl-ink2);
  font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 400; white-space: nowrap; cursor: pointer;
}
.pvl .pvl-tab[aria-selected="true"] { background: var(--pvl-ink); color: var(--pvl-cream); font-weight: 600; }
.pvl .pvl-tab-n { opacity: .9; }

/* ── chips ────────────────────────────────────────────────────── */
.pvl .pvl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pvl .pvl-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--pvl-tap); padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--pvl-line-strong);
  background: var(--pvl-card); color: var(--pvl-ink);
  font-family: var(--pvl-sans); font-size: var(--pvl-min); line-height: 1.2; cursor: pointer; text-decoration: none;
}
.pvl .pvl-chip--1 { background: var(--pvl-t1); border-color: var(--pvl-d1); }
.pvl .pvl-chip--2 { background: var(--pvl-t2); border-color: var(--pvl-d2); }
.pvl .pvl-chip--3 { background: var(--pvl-t3); border-color: var(--pvl-d3); }
.pvl .pvl-chip--4 { background: var(--pvl-t4); border-color: var(--pvl-d4); }
.pvl .pvl-chip--5 { background: var(--pvl-t5); border-color: var(--pvl-d5); }
.pvl .pvl-chip--6 { background: var(--pvl-t6); border-color: var(--pvl-d6); }
.pvl .pvl-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

/* ── buttons ──────────────────────────────────────────────────── */
.pvl .pvl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--pvl-tap); padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--pvl-ink); color: var(--pvl-gold-hi);
  font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 600; letter-spacing: .04em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.pvl .pvl-btn--outline { background: transparent; color: var(--pvl-ink); border: 1.5px solid var(--pvl-line-strong); }
/* A link styled as a button keeps the button's colours ('.pvl a' inherits). */
.pvl a.pvl-btn { color: var(--pvl-gold-hi); }
.pvl a.pvl-btn--outline { color: var(--pvl-ink); }
.pvl .pvl-btn--block { display: flex; width: 100%; }
.pvl .pvl-btn:disabled { opacity: .55; cursor: default; }

/* ── banner (a check-in is ready) ─────────────────────────────── */
.pvl .pvl-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--pvl-radius);
  background: linear-gradient(135deg, #4A6A8A, #3D5F80); color: #fff;
}
.pvl .pvl-banner-t { font-family: var(--pvl-serif); font-weight: 600; font-size: 1.1rem; line-height: 1.15; display: block; }
.pvl .pvl-banner-s { font-size: var(--pvl-min); display: block; margin-top: 2px; }
.pvl .pvl-banner .pvl-btn { margin-left: auto; background: #fff; color: var(--pvl-ask); flex: none; }
@media (max-width: 520px) {   /* phones: the button goes under the words instead of squeezing them */
  .pvl .pvl-banner { flex-wrap: wrap; }
  .pvl .pvl-banner > div { flex: 1 1 100%; }
  .pvl .pvl-banner .pvl-btn { margin-left: 0; }
}

/* ── today: two slot cards with tick boxes ────────────────────── */
.pvl .pvl-today { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 359px) { .pvl .pvl-today { grid-template-columns: 1fr; } }
.pvl .pvl-slot { background: var(--pvl-card); border-radius: var(--pvl-radius); box-shadow: var(--pvl-shadow); padding: 12px 12px 8px; min-width: 0; }
.pvl .pvl-slot .pvl-label { margin-bottom: 4px; }
.pvl .pvl-check {
  display: flex; align-items: center; gap: 10px; min-height: var(--pvl-tap);
  font-size: var(--pvl-min); line-height: 1.25; cursor: pointer;
}
.pvl .pvl-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pvl .pvl-box {
  width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid #B9AE9C; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.pvl .pvl-check input:checked + .pvl-box, .pvl .pvl-tick input:checked + .pvl-box { background: var(--pvl-ok); border-color: var(--pvl-ok); }
.pvl .pvl-check input:checked + .pvl-box::after, .pvl .pvl-tick input:checked + .pvl-box::after { content: "\2713"; color: #fff; font-size: var(--pvl-min); line-height: 1; }
.pvl .pvl-check input:focus-visible + .pvl-box, .pvl .pvl-tick input:focus-visible + .pvl-box { outline: 3px solid var(--pvl-ask); outline-offset: 2px; }
/* A tick box as a list row's lead: 44px to tap, the same 22px box inside. */
.pvl .pvl-tick { width: var(--pvl-tap); height: var(--pvl-tap); flex: none; display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; margin: 0 -4px 0 -11px; }
.pvl .pvl-tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* No box yet: an item that needs a time from her first (dashed, not tickable). */
.pvl .pvl-box--set { border-style: dashed; background: transparent; }
.pvl .pvl-check--set { width: 100%; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; }
.pvl .pvl-settext { color: var(--pvl-gold-text); font-weight: 600; }
/* "2× daily", "weekly": once-a-day items wear no tag. */
.pvl .pvl-tag {
  display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 999px; vertical-align: 1px;
  background: var(--pvl-sunk); color: var(--pvl-ink2); font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 400; line-height: 1.5; white-space: nowrap;
}
.pvl .pvl-slot-n { color: var(--pvl-muted); font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 400; margin-left: 6px; }
.pvl .pvl-day-slot + .pvl-day-slot { margin-top: 6px; }
.pvl .pvl-day-slot .pvl-h { margin-top: 18px; }
.pvl .pvl-day-slot .pvl-slot-sub { font-size: var(--pvl-min); color: var(--pvl-muted); margin: -6px 2px 8px; }
.pvl .pvl-callout {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--pvl-t4); color: var(--pvl-ink); font-size: var(--pvl-min); line-height: 1.45;
}

/* ── running low ──────────────────────────────────────────────── */
.pvl .pvl-bar { height: 8px; border-radius: 4px; background: var(--pvl-sunk); overflow: hidden; margin-top: 8px; max-width: 180px; }
.pvl .pvl-bar > i { display: block; height: 100%; background: var(--pvl-d1); }

/* ── ask ──────────────────────────────────────────────────────── */
.pvl .pvl-askbox {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  background: var(--pvl-card); border-radius: 999px; box-shadow: var(--pvl-shadow);
  padding: 4px 4px 4px 18px; min-height: 52px; color: var(--pvl-muted); font-size: var(--pvl-body);
  border: 0; width: 100%; font-family: var(--pvl-sans); text-align: left; cursor: pointer;
}
.pvl .pvl-askbox-go {
  margin-left: auto; width: var(--pvl-tap); height: var(--pvl-tap); flex: none; border-radius: 50%;
  background: var(--pvl-ink); color: var(--pvl-gold-hi);
  display: inline-flex; align-items: center; justify-content: center; font-size: var(--pvl-name);
}

/* ── so far: donut + legend ───────────────────────────────────── */
.pvl .pvl-sofar { display: flex; align-items: center; gap: 18px; }
.pvl .pvl-sofar svg { width: 92px; height: 92px; flex: none; }
.pvl .pvl-leg { font-size: var(--pvl-min); line-height: 1.8; }
.pvl .pvl-leg .pvl-dot { margin-right: 8px; }
.pvl .pvl-donut-n { font-family: var(--pvl-serif); font-weight: 600; font-size: 26px; fill: var(--pvl-ink); }
.pvl .pvl-sofar--stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.pvl .pvl-arc { fill: none; stroke-width: 12; }
.pvl .pvl-arc--track { stroke: var(--pvl-sunk); }
.pvl .pvl-arc--keep { stroke: var(--pvl-res-keep); }
.pvl .pvl-arc--kill { stroke: var(--pvl-res-kill); }
.pvl .pvl-arc--open { stroke: var(--pvl-res-open); }
.pvl .pvl-dot--keep { background: var(--pvl-res-keep); }
.pvl .pvl-dot--kill { background: var(--pvl-res-kill); }
.pvl .pvl-dot--open { background: var(--pvl-res-open); }
/* the "next check-in" box beside So far */
.pvl .pvl-next-item { font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-name); line-height: 1.25; margin: 2px 0 4px; }
.pvl .pvl-next-when { font-size: var(--pvl-min); color: var(--pvl-ink2); margin: 0 0 10px; }
.pvl .pvl-slot > .pvl-btn { margin-top: 4px; }

/* ── top card: photo band, greeting, results, Snapshot ─────────────
   From mocks/dashboard-top-card-phone.html. The fade is at least 92%
   cream behind every letter of the greeting, so the text keeps 4.5:1
   whatever part of the photo sits under it. */
.pvl .pvl-topcard {
  --pvl-band: 150px;
  position: relative; overflow: hidden; margin: 8px 0 22px;
  background: var(--pvl-page); border-radius: 18px;
  box-shadow: 0 2px 10px rgba(42, 35, 26, .08);
}
.pvl .pvl-topcard::after {   /* the hairline runs unbroken around photo and card */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px #E6DCCB; pointer-events: none;
}
@media (min-width: 900px) { .pvl .pvl-topcard { --pvl-band: 180px; } }
.pvl .pvl-topcard-band { position: relative; height: var(--pvl-band); }
.pvl .pvl-topcard-band img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.pvl .pvl-topcard-band::after {
  content: ""; position: absolute; inset: 0 0 -2px;   /* past the photo's edge, so no seam shows */
  background: linear-gradient(180deg, rgba(251, 248, 242, 0) calc(100% - 98px), rgba(251, 248, 242, .92) calc(100% - 24px), #FBF8F2 calc(100% - 4px));
}
.pvl .pvl-topcard-edge {
  position: absolute; left: 0; top: var(--pvl-band); bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--pvl-gold-hi), var(--pvl-gold), var(--pvl-gold-text));
}
.pvl .pvl-topcard-in { position: relative; margin-top: -24px; padding: 0 22px 8px 26px; }
.pvl .pvl-topcard-hi {
  font-family: var(--pvl-serif); font-weight: 500; font-size: 2.3rem; line-height: 1.05;
  margin: 0; color: var(--pvl-ink); overflow-wrap: break-word;
}
.pvl .pvl-topcard-hi em { font-style: italic; color: var(--pvl-gold-text); }
.pvl .pvl-topcard-date { font-size: var(--pvl-min); letter-spacing: .14em; text-transform: uppercase; color: var(--pvl-ink2); margin: 8px 0 0; }
.pvl .pvl-topcard-counts { font-size: var(--pvl-min); color: var(--pvl-ink2); margin: 6px 0 0; }
.pvl .pvl-topcard .pvl-label { color: var(--pvl-gold-text); font-weight: 600; letter-spacing: .16em; margin: 20px 0 0; }
.pvl .pvl-topcard-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pvl .pvl-topcard-tile {
  flex: 1 1 84px; min-width: 84px; padding: 12px 10px 10px; border-radius: 12px;
  background: var(--pvl-card); box-shadow: inset 0 0 0 1px #E6DCCB;
}
.pvl .pvl-topcard-n {
  display: block; font-family: var(--pvl-serif); font-weight: 600; font-size: 1.79rem; line-height: 1;
  font-variant-numeric: lining-nums; color: var(--pvl-ink);
}
.pvl .pvl-topcard-tile--keep .pvl-topcard-n { color: var(--pvl-ok); }
.pvl .pvl-topcard-tile--kill .pvl-topcard-n { color: var(--pvl-d6); }
.pvl .pvl-topcard-tile--open .pvl-topcard-n { color: var(--pvl-ask); }
.pvl .pvl-topcard-tile--next .pvl-topcard-n { font-size: 1.37rem; line-height: 34px; }
.pvl .pvl-topcard-l { display: block; font-size: var(--pvl-min); line-height: 1.25; color: var(--pvl-ink2); margin-top: 4px; }
.pvl .pvl-topcard-note { font-size: var(--pvl-min); color: var(--pvl-ink2); margin: 8px 0 10px; }
.pvl .pvl-topcard-due { margin-top: 16px; padding: 16px 16px 14px; border-radius: 14px; background: #EAF0F6; box-shadow: inset 0 0 0 1px #C9D6E3; }
.pvl .pvl-topcard-q { font-family: var(--pvl-serif); font-weight: 600; font-size: 1.47rem; line-height: 1.1; color: var(--pvl-ink); margin: 0; }
.pvl .pvl-topcard-s { font-size: var(--pvl-min); line-height: 1.4; color: var(--pvl-ink2); margin: 6px 0 12px; }
.pvl .pvl-topcard-due .pvl-btn { background: var(--pvl-ask); color: #fff; }
.pvl .pvl-topcard-snap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px;
  margin-top: 16px; padding-top: 6px; border-top: 1px solid #E6DCCB;
  font-size: var(--pvl-min); color: var(--pvl-ink2);
}
.pvl .pvl-topcard-snap .pvl-link { white-space: nowrap; }

/* ── dashboard home: donut, next check-in, Today, tool tiles ───────
   From mocks/Top card with the donut.html (Nov 19 2026).

   Icons: Lucide (lucide.dev), copied as inline SVG into dashboard.html;
   no library is loaded.
   ISC License
   Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as
   part of Feather (MIT). All other copyright (c) for Lucide are held by
   Lucide Contributors 2022.
   Permission to use, copy, modify, and/or distribute this software for any
   purpose with or without fee is hereby granted, provided that the above
   copyright notice and this permission notice appear in all copies.
   THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
   WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
   MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
   ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
   ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
   IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
/* the results donut: the whole card opens Results */
.pvl .pvl-res {
  position: relative; display: flex; align-items: center; gap: 18px; width: 100%; margin-top: 10px;
  padding: 16px 16px 16px 14px; border: 0; border-radius: 16px; background: var(--pvl-card);
  box-shadow: inset 0 0 0 1px #E6DCCB; color: var(--pvl-ink); font: inherit; text-align: left; cursor: pointer;
}
.pvl .pvl-res svg { flex: none; width: 112px; height: 112px; }
.pvl .pvl-res-arc { fill: none; stroke-width: 15; }
.pvl .pvl-res-arc--track { stroke: #F1EADC; }
.pvl .pvl-res-arc--keep { stroke: #62A07E; }
.pvl .pvl-res-arc--kill { stroke: #C08575; }
.pvl .pvl-res-arc--open { stroke: #D1A556; }
.pvl .pvl-res-n { font-family: var(--pvl-serif); font-weight: 600; font-size: 40px; font-variant-numeric: lining-nums; fill: var(--pvl-ink); }
.pvl .pvl-res-leg { display: block; min-width: 0; }
.pvl .pvl-res-leg > span { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 17px; line-height: 1.3; font-variant-numeric: lining-nums; }
.pvl .pvl-res-leg .pvl-dot { width: 13px; height: 13px; }
.pvl .pvl-res-leg .pvl-dot--keep { background: #62A07E; }
.pvl .pvl-res-leg .pvl-dot--kill { background: #C08575; }
.pvl .pvl-res-leg .pvl-dot--open { background: #D1A556; }
.pvl .pvl-res-go { position: absolute; right: 14px; top: 12px; color: var(--pvl-gold-text); font-size: 20px; line-height: 1; }
/* Next check-in under the donut: opens that Day One */
.pvl .pvl-next {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; margin-top: 10px;
  padding: 13px 16px; border: 0; border-radius: 14px; background: var(--pvl-card);
  box-shadow: inset 0 0 0 1px #E6DCCB; color: var(--pvl-ink); font: inherit; text-align: left; cursor: pointer;
}
.pvl .pvl-next-k { display: block; font-size: var(--pvl-min); letter-spacing: .12em; text-transform: uppercase; color: var(--pvl-ink2); }
.pvl .pvl-next-v { display: block; margin-top: 2px; font-family: var(--pvl-serif); font-weight: 600; font-size: 22px; line-height: 1.2; font-variant-numeric: lining-nums; color: var(--pvl-ink); }
.pvl .pvl-next-go { color: var(--pvl-gold-text); font-size: 20px; flex: none; }
.pvl .pvl-topcard-due { margin-top: 10px; }
/* Today: the thin gold progress bar under "X of Y taken today" */
.pvl .pvl-prog { height: 8px; margin: -4px 2px 14px; border-radius: 6px; background: #EADFCC; overflow: hidden; }
.pvl .pvl-prog > span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--pvl-gold-hi), var(--pvl-gold)); }
/* Today: a tint and an icon per slot. Label colors pass 4.5:1 on their tint;
   on a tint, "Set a time" and "Show all" take the slot's own color. */
.pvl [class*="pvl-slot--"] { box-shadow: none; padding: 14px 14px 10px; }
.pvl .pvl-slot--wake      { background: #F6E3CF; --pvl-slot-ink: #85501F; }
.pvl .pvl-slot--breakfast { background: #F3E6C6; --pvl-slot-ink: #745614; }
.pvl .pvl-slot--midday    { background: #F8F0BA; --pvl-slot-ink: #6A560A; }   /* 6.2:1 */
.pvl .pvl-slot--evening   { background: #EFDCD3; --pvl-slot-ink: #8E4A3A; }
.pvl .pvl-slot--bed       { background: #E4DBEA; --pvl-slot-ink: #6E5585; }
.pvl .pvl-slot--anytime   { background: #D3E8E2; --pvl-slot-ink: #336159; }   /* 5.5:1 */
.pvl .pvl-slot--schedule  { background: #D2E1F0; --pvl-slot-ink: #3D5F80; }   /* 5.0:1 */
.pvl [class*="pvl-slot--"] > .pvl-label { display: flex; align-items: center; gap: 8px; letter-spacing: .14em; font-weight: 600; color: var(--pvl-slot-ink); }
.pvl .pvl-slot-ic { flex: none; }
.pvl [class*="pvl-slot--"] .pvl-settext, .pvl [class*="pvl-slot--"] .pvl-toggle { color: var(--pvl-slot-ink); }
/* Today: round checks that fill gold; a taken item turns gray, no strikethrough */
.pvl .pvl-check--round .pvl-box { width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid rgba(42, 35, 26, .35); background: rgba(255, 255, 255, .7); position: relative; }
.pvl .pvl-check--round .pvl-box--set { border-style: dashed; background: transparent; }
/* a shade deeper than --pvl-gold, so the white tick is 3.3:1 against it */
.pvl .pvl-check--round input:checked + .pvl-box { background: #AA8A32; border-color: #AA8A32; }
.pvl .pvl-check--round input:checked + .pvl-box::after {
  content: ""; position: absolute; left: 5.5px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pvl .pvl-check--round input:checked + .pvl-box + span { color: #5A4F42; text-decoration: none; }
/* Your tools: tinted icon tiles */
.pvl .pvl-tile { width: 48px; height: 48px; flex: none; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.pvl .pvl-tile--teal     { background: #D8E6E6; color: #3F6E6B; }
.pvl .pvl-tile--honey    { background: #F3E6C6; color: #745614; }
.pvl .pvl-tile--lavender { background: #E4DBEA; color: #6E5585; }
.pvl .pvl-tile--rose     { background: #EFDCD3; color: #8E4A3A; }

/* ── forms ────────────────────────────────────────────────────── */
.pvl .pvl-field { display: flex; gap: 8px; }
.pvl .pvl-input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--pvl-line-strong); border-radius: 12px; background: var(--pvl-card);
  color: var(--pvl-ink); font-family: var(--pvl-sans); font-size: var(--pvl-body);
}
.pvl .pvl-input:focus { border-color: var(--pvl-ink2); outline: none; }

/* ── empty state, toast ───────────────────────────────────────── */
.pvl .pvl-empty {
  border: 1.5px dashed var(--pvl-line-strong); border-radius: var(--pvl-radius);
  padding: 16px; color: var(--pvl-ink2); font-size: var(--pvl-min); line-height: 1.5;
}
.pvl .pvl-toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(var(--pvl-tabbar-h) + 28px + env(safe-area-inset-bottom, 0px));
  background: var(--pvl-ink); color: var(--pvl-cream); border-radius: 999px;
  padding: 12px 20px; font-size: var(--pvl-min); box-shadow: var(--pvl-shadow-up);
  max-width: calc(100% - 32px);
}
@media (min-width: 900px) { .pvl .pvl-toast { bottom: 28px; } }

/* ── bottom tab bar (phones; top links take over from 900px) ──── */
.pvl .pvl-tabbar {
  position: fixed; z-index: 30; left: 12px; right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  max-width: 536px; margin: 0 auto; height: var(--pvl-tabbar-h);
  display: flex; align-items: center; justify-content: space-around;
  background: var(--pvl-card); border-radius: 999px; box-shadow: var(--pvl-shadow-up);
}
.pvl .pvl-tabbar a, .pvl .pvl-tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 64px; min-height: 56px; padding: 4px 8px; border-radius: 999px; border: 0; background: none;
  color: var(--pvl-muted); font-family: var(--pvl-sans); font-size: var(--pvl-min); line-height: 1.1;
  text-decoration: none; cursor: pointer;
}
.pvl .pvl-tabbar svg { width: 22px; height: 22px; }
.pvl .pvl-tabbar [aria-current="page"] { background: var(--pvl-sunk); color: var(--pvl-ink); font-weight: 600; }
@media (min-width: 900px) { .pvl .pvl-tabbar { display: none; } }

/* ── sheet: a centred card over the page (the welcome-back card) ── */
/* Nov 14, 2026. Built from the kit's tokens: card, ink, radius, 15.2px floor,
   buttons as .pvl-btn. Text left-aligned; every text 4.5:1 or better. */
.pvl .pvl-sheet-scrim {
  position: fixed; inset: 0; z-index: 10002;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(42, 35, 26, .45);
}
.pvl .pvl-sheet {
  box-sizing: border-box; width: 100%; max-width: 440px;
  background: var(--pvl-card); color: var(--pvl-ink);
  border-radius: var(--pvl-radius); box-shadow: var(--pvl-shadow-up);
  padding: 24px 20px 16px; text-align: left;
}
.pvl .pvl-sheet-h { font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-h3); line-height: 1.2; color: var(--pvl-ink); margin: 0 0 10px; }
.pvl .pvl-sheet-p { font-family: var(--pvl-sans); font-size: var(--pvl-body); line-height: 1.55; color: var(--pvl-ink2); margin: 0 0 20px; }
.pvl .pvl-sheet .pvl-btn { margin: 0 0 10px; white-space: normal; text-align: center; line-height: 1.25; padding: 8px 18px; }
.pvl .pvl-sheet .pvl-btn:focus-visible { outline: 2px solid var(--pvl-ask); outline-offset: 3px; }
.pvl .pvl-sheet-err { font-family: var(--pvl-sans); font-size: var(--pvl-min); line-height: 1.4; color: var(--pvl-rose); margin: 4px 0 0; }
.pvl .pvl-sheet-err:empty { display: none; }

/* ══ TOOL PIECES (Nov 16, 2026) ═══════════════════════════════════
   Added for the tools (Peptide Mix & Measure, then the Tracker), from the
   kit's own tokens only. Reusable on any light screen. */

/* a full-screen tool over a dark page: the light surface and its top bar */
.pvl.pvl-surface { background: var(--pvl-page); color: var(--pvl-ink); }
.pvl .pvl-modalbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 8px; background: var(--pvl-page); border-bottom: 1px solid var(--pvl-line);
}
.pvl .pvl-modalbar-btn {
  min-height: var(--pvl-tap); min-width: var(--pvl-tap); padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  color: var(--pvl-ink); font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 600; letter-spacing: .04em;
}
.pvl .pvl-modalbar-btn:hover { background: var(--pvl-sunk); }
/* the words inside take the button's ink and size (site-wide label styles stay out) */
.pvl .pvl-modalbar-btn > span { color: inherit; font-size: inherit; letter-spacing: inherit; font-family: inherit; }
.pvl .pvl-modalbar-logo {
  font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-name); letter-spacing: .2em;
  color: var(--pvl-ink); text-decoration: none; min-height: var(--pvl-tap); display: inline-flex; align-items: center;
}
.pvl .pvl-burger { display: inline-flex; flex-direction: column; gap: 4px; width: 20px; }
.pvl .pvl-burger span { display: block; width: 20px; height: 2px; border-radius: 1px; background: var(--pvl-ink); }
@media (max-width: 600px) { .pvl .pvl-modalbar-btn .pvl-hide-sm { display: none; } }

/* a tool's body, headings and small type */
.pvl .pvl-tool { padding: 8px 0 32px; font-family: var(--pvl-sans); color: var(--pvl-ink); }
.pvl .pvl-rule { border: 0; border-top: 1px solid var(--pvl-line); margin: 12px 0 16px; }
.pvl .pvl-q { font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-h3); line-height: 1.2; color: var(--pvl-ink); margin: 0 0 10px; }
.pvl .pvl-value { font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-name); line-height: 1.3; color: var(--pvl-ink); }
.pvl .pvl-lead { font-size: var(--pvl-body); font-weight: 600; line-height: 1.45; color: var(--pvl-ink); }
.pvl .pvl-fine { font-size: var(--pvl-min); line-height: 1.55; color: var(--pvl-ink2); }
.pvl .pvl-note { font-size: var(--pvl-min); line-height: 1.55; color: var(--pvl-muted); font-style: italic; }
.pvl .pvl-card--gap { margin-bottom: 12px; }
.pvl .pvl-gap-y { margin: 16px 0; }
.pvl .pvl-sep { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--pvl-line); }
.pvl .pvl-ask-text { color: var(--pvl-ask); }

/* fields that fill their row; selects get the kit's arrow */
.pvl .pvl-input--block { display: block; width: 100%; box-sizing: border-box; margin-bottom: 6px; }
.pvl select.pvl-input {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232A231A' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

/* two-way choice, built like the tabs */
.pvl .pvl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 10px; background: var(--pvl-sunk); border-radius: 14px; }
.pvl .pvl-seg-opt {
  min-height: var(--pvl-tap); padding: 8px 10px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--pvl-ink2); text-align: center; line-height: 1.3;
  font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 600;
}
.pvl .pvl-seg-opt.active, .pvl .pvl-seg-opt[aria-pressed="true"] { background: var(--pvl-ink); color: var(--pvl-cream); }
.pvl .pvl-seg-sub { display: block; font-weight: 400; }

/* callouts in the other tints */
.pvl .pvl-callout--ask { background: var(--pvl-t3); }
.pvl .pvl-callout--ok { background: var(--pvl-t5); }
.pvl .pvl-callout .pvl-p, .pvl .pvl-callout .pvl-fine { color: var(--pvl-ink2); margin: 0; }

/* a list on a tint: a heading row, then one row per item */
.pvl .pvl-tlist-h { margin-top: 12px; padding: 10px 14px; border-radius: 12px 12px 0 0; background: var(--pvl-t4); color: var(--pvl-ink); font-size: var(--pvl-min); letter-spacing: .12em; text-transform: uppercase; }
.pvl .pvl-tlist-i { display: flex; gap: 10px; padding: 10px 14px; background: var(--pvl-t4); color: var(--pvl-ink); font-size: var(--pvl-min); line-height: 1.5; border-top: 1px solid var(--pvl-line); }
.pvl .pvl-tlist-i:last-child, .pvl .pvl-tlist-i--last { border-radius: 0 0 12px 12px; }
.pvl .pvl-tlist-h--ok, .pvl .pvl-tlist-i--ok { background: var(--pvl-t5); }
.pvl .pvl-tlist-mark { color: var(--pvl-ink2); flex: none; }

/* numbers: big figure, stat tiles */
/* Cormorant's digits are old-style by default (a 1 reads as I); numbers here use lining figures */
.pvl .pvl-big { font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-big); line-height: 1.1; color: var(--pvl-ink); font-variant-numeric: lining-nums; }
.pvl .pvl-value, .pvl .pvl-step-n, .pvl .pvl-q { font-variant-numeric: lining-nums; }
.pvl .pvl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pvl .pvl-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pvl .pvl-stat { background: var(--pvl-sunk); border-radius: 12px; padding: 12px 10px; min-width: 0; }
.pvl .pvl-stat .pvl-label { margin: 0 0 4px; }

/* numbered steps */
.pvl .pvl-step-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--pvl-line); font-size: var(--pvl-body); line-height: 1.5; color: var(--pvl-ink); }
.pvl .pvl-step-row:last-child { border-bottom: 0; }
.pvl .pvl-step-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pvl-ink); color: var(--pvl-gold-hi); font-size: var(--pvl-min); font-weight: 600;
}

/* a wide table that scrolls sideways on phones, with its hint */
.pvl .pvl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 12px; }
.pvl .pvl-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--pvl-min); line-height: 1.45; color: var(--pvl-ink); }
.pvl .pvl-table th {
  text-align: left; white-space: nowrap; padding: 8px 10px; border-bottom: 1.5px solid var(--pvl-line-strong);
  color: var(--pvl-muted); font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
}
.pvl .pvl-table td { padding: 10px; border-bottom: 1px solid var(--pvl-line); vertical-align: top; }
.pvl .pvl-table tr:last-child td { border-bottom: 0; }
.pvl .pvl-table td:first-child { font-weight: 600; }
.pvl .pvl-table-hint { display: none; }
/* A long table shows its first three rows, then "Show all N" (.pvl-toggle). */
.pvl .pvl-table--fold:not(.is-open) tr:nth-child(n+5) { display: none; }
.pvl .pvl-table--fold:not(.is-open) tr:nth-child(4) td { border-bottom: 0; }
.pvl .pvl-table-more { margin-top: 6px; position: sticky; left: 0; }
@media (max-width: 600px) { .pvl .pvl-table-hint { display: block; margin-top: 8px; font-size: var(--pvl-min); color: var(--pvl-muted); font-style: italic; } }

/* the syringe drawing (Mix & Measure): kit colours; labels every 20 units */
.pvl .pvl-syringe svg { max-width: 360px; overflow: visible; }
.pvl .pvl-syringe .syr-body { fill: var(--pvl-card); stroke: var(--pvl-line-strong); }
.pvl .pvl-syringe .syr-fill { fill: var(--pvl-t4); }
.pvl .pvl-syringe .syr-cap { fill: var(--pvl-sunk); stroke: var(--pvl-line-strong); }
.pvl .pvl-syringe .syr-mid { stroke: var(--pvl-line); }
.pvl .pvl-syringe .syr-tick { stroke: var(--pvl-muted); }
.pvl .pvl-syringe .syr-zero { stroke: var(--pvl-ink2); }
.pvl .pvl-syringe .syr-lab { fill: var(--pvl-ink2); font-family: var(--pvl-sans); font-size: 16px; }
.pvl .pvl-syringe .syr-odd { display: none; }
.pvl .pvl-syringe .syr-dose { stroke: var(--pvl-ink); fill: var(--pvl-ink); }
.pvl .pvl-syringe .syr-doselab { fill: var(--pvl-ink); font-family: var(--pvl-sans); font-size: 16px; font-weight: 600; }
/* the drawing scales with the screen; keep its words at 15.2px or more */
@media (max-width: 370px) { .pvl .pvl-syringe .syr-lab, .pvl .pvl-syringe .syr-doselab { font-size: 18px; } }
@media (max-width: 340px) { .pvl .pvl-syringe .syr-lab, .pvl .pvl-syringe .syr-doselab { font-size: 19.5px; } }

/* the Tracker's pieces: field labels, messages, status colours, a full-width
   supply bar, status pills (Nov 16, 2026). Kit tokens only. */
.pvl .pvl-label--field { display: block; margin: 14px 0 6px; }
/* form fields two across from 600px, one column on phones; the labels space the rows */
.pvl .pvl-fgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
@media (max-width: 600px) { .pvl .pvl-fgrid { grid-template-columns: 1fr; } }
.pvl div.pvl-seg-opt { display: flex; align-items: center; justify-content: center; }
.pvl .pvl-gap-t { margin-top: 12px; }
.pvl .pvl-err, .pvl .pvl-okmsg { font-size: var(--pvl-min); line-height: 1.45; margin: 8px 0 0; }
.pvl .pvl-err { color: var(--pvl-rose); }
.pvl .pvl-okmsg { color: var(--pvl-ok); }
.pvl .pvl-err:empty, .pvl .pvl-okmsg:empty { display: none; }
.pvl .pvl-st-ok { color: var(--pvl-ok); }
.pvl .pvl-st-warn { color: var(--pvl-warn); }
.pvl .pvl-st-bad { color: var(--pvl-rose); }
.pvl .pvl-bar--full { max-width: none; }
.pvl .pvl-bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--pvl-d4); }
.pvl .pvl-bar-fill--warn { background: var(--pvl-warn); }
.pvl .pvl-bar-fill--bad { background: var(--pvl-rose); }
/* status words keep a white ground: amber and rose fall under 4.5:1 on the tints */
.pvl .pvl-pill { display: inline-block; padding: 2px 12px; border-radius: 999px; border: 1.5px solid currentColor; background: var(--pvl-card); font-size: var(--pvl-min); font-weight: 600; line-height: 1.5; }
.pvl .pvl-pill--ok { color: var(--pvl-ok); }
.pvl .pvl-pill--warn { color: var(--pvl-warn); }
.pvl .pvl-pill--bad { color: var(--pvl-rose); }
/* a stat tile's status: a stripe at its left edge (the figure stays ink) */
.pvl .pvl-stat--ok { box-shadow: inset 4px 0 0 var(--pvl-ok); }
.pvl .pvl-stat--warn { box-shadow: inset 4px 0 0 var(--pvl-warn); }
.pvl .pvl-stat--bad { box-shadow: inset 4px 0 0 var(--pvl-rose); }

/* ══ INTERACTION CHECKER, light (Nov 2026) ═════════════════════════
   Only on #modal-interactions.pvl, so the dark checker is untouched. Its own
   style block loads later, so every rule here carries the id. !important
   appears only over colors written directly on the markup. */
#modal-interactions.pvl .iaw { background: transparent; color: var(--pvl-ink); font-family: var(--pvl-sans); padding: 16px 0 32px; text-align: left; }
#modal-interactions.pvl .iat { font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-hi); line-height: 1.15; letter-spacing: .03em; color: var(--pvl-ink); text-align: left; margin: 4px 0 6px; }
#modal-interactions.pvl .ias { font-size: var(--pvl-min); line-height: 1.4; letter-spacing: .08em; color: var(--pvl-muted); text-align: left; margin: 0 0 14px; }
#modal-interactions.pvl .iagl { border-top: 1px solid var(--pvl-line); opacity: 1; margin: 0 0 16px; }
#modal-interactions.pvl .iaib { background: #FBE8E5; border: 1.5px solid #B3261E; border-radius: var(--pvl-radius); padding: 16px; margin-bottom: 16px; }
#modal-interactions.pvl .iaib h2 { font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-h3); line-height: 1.2; letter-spacing: .03em; color: #7E1712; margin: 0 0 8px; }
#modal-interactions.pvl .iaib p { font-size: var(--pvl-body); line-height: 1.6; color: var(--pvl-ink); margin: 0 0 8px; }
#modal-interactions.pvl .iaib p:last-child { font-size: var(--pvl-min); font-style: italic; color: #5C2B26; margin: 0; }
#modal-interactions.pvl .iasc { background: var(--pvl-card); border: 0; border-radius: var(--pvl-radius); box-shadow: var(--pvl-shadow); padding: 16px; margin-bottom: 12px; }
#modal-interactions.pvl .iasn, #modal-interactions.pvl .iala { font-size: var(--pvl-min); line-height: 1.3; letter-spacing: .1em; color: var(--pvl-gold-text); font-weight: 600; }
#modal-interactions.pvl .iasn { margin-bottom: 6px; }
#modal-interactions.pvl .iala { margin: 12px 0 6px; }
#modal-interactions.pvl .iast { font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-h3); line-height: 1.2; color: var(--pvl-ink); margin-bottom: 4px; }
#modal-interactions.pvl .iata { background: #fff; border: 1.5px solid var(--pvl-line-strong); border-radius: 12px; color: var(--pvl-ink); font-family: var(--pvl-sans); font-size: 1rem; line-height: 1.45; padding: 12px 14px; min-height: 92px; }
#modal-interactions.pvl .iata::placeholder { color: var(--pvl-muted); opacity: 1; }
#modal-interactions.pvl .iaab { min-height: 52px; background: #A32A24; color: #fff; font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 700; letter-spacing: .08em; line-height: 1.25; padding: 12px 16px; border-radius: 999px; margin: 16px 0; }
#modal-interactions.pvl .iaab:hover { background: #8A211C; }

#modal-interactions.pvl .iarh { text-align: left; margin: 8px 0 14px; }
#modal-interactions.pvl .iarh h2 { font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-hi); line-height: 1.15; letter-spacing: .03em; color: var(--pvl-ink); }
#modal-interactions.pvl #ia-summary { color: var(--pvl-gold-text) !important; font-weight: 600; line-height: 1.4; margin-top: 6px !important; }
#modal-interactions.pvl .iasec { border-radius: var(--pvl-radius); border: 1.5px solid var(--ia-line); background: var(--pvl-card); box-shadow: var(--pvl-shadow); }
#modal-interactions.pvl .iash { background: var(--ia-tint); color: var(--ia-ink); font-size: var(--pvl-min); line-height: 1.35; letter-spacing: .05em; font-weight: 700; padding: 11px 14px; }
#modal-interactions.pvl .iait { background: var(--pvl-card); border-top: 1px solid var(--pvl-line); padding: 12px 14px; }
#modal-interactions.pvl .ianm { color: var(--pvl-ink); font-size: var(--pvl-name); font-weight: 600; line-height: 1.3; margin: 0 28px 4px 0; }
#modal-interactions.pvl .iash2 { color: var(--pvl-ink2); font-size: var(--pvl-body); line-height: 1.5; }
#modal-interactions.pvl .iaei { color: var(--ia-ink); font-size: 1.05rem; line-height: 1.2; }
#modal-interactions.pvl .ia-cite { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; margin-top: 2px; font-size: var(--pvl-min); }
#modal-interactions.pvl .ia-cite a { display: inline-flex; align-items: center; min-height: var(--pvl-tap); color: var(--pvl-ask); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#modal-interactions.pvl .iadet { border-top: 1px solid var(--pvl-line); }
#modal-interactions.pvl .iadr { background: var(--ia-tint); color: var(--pvl-ink); font-size: var(--pvl-min); line-height: 1.55; padding: 10px 12px; border-radius: 10px; margin: 0; }
#modal-interactions.pvl .sec-crit { --ia-tint: #F9D9D5; --ia-ink: #7E1712; --ia-line: #B3261E; }
#modal-interactions.pvl .sec-ser { --ia-tint: #F9E3CB; --ia-ink: #713C04; --ia-line: #B8681A; }
#modal-interactions.pvl .sec-mod { --ia-tint: #F7EDC4; --ia-ink: #594800; --ia-line: #A68A1B; }
#modal-interactions.pvl .sec-time { --ia-tint: #DDE9F4; --ia-ink: #234D70; --ia-line: #4F7EA6; }
#modal-interactions.pvl .sec-waste { --ia-tint: var(--pvl-sunk); --ia-ink: var(--pvl-ink2); --ia-line: var(--pvl-line-strong); }
#modal-interactions.pvl .sec-good { --ia-tint: var(--pvl-t5); --ia-ink: var(--pvl-ok); --ia-line: var(--pvl-ok); }

#modal-interactions.pvl .iaall { background: var(--pvl-t5); border: 1.5px solid var(--pvl-ok); border-radius: var(--pvl-radius); padding: 16px; text-align: left; }
#modal-interactions.pvl .iaall h3 { font-family: var(--pvl-serif); font-weight: 600; font-size: var(--pvl-h3); letter-spacing: .03em; color: #1E5439; }
#modal-interactions.pvl .iaall p { color: var(--pvl-ink); font-size: var(--pvl-body); line-height: 1.55; }
#modal-interactions.pvl .iaall.iaall-partial { background: var(--pvl-card); border-color: var(--pvl-line-strong); }
#modal-interactions.pvl .ia-sugg, #modal-interactions.pvl .ia-unk { background: #FBF3DF; border: 1.5px solid #C9A84C; border-radius: var(--pvl-radius); padding: 14px 16px; }
#modal-interactions.pvl .ia-sugg p, #modal-interactions.pvl .ia-unk p { color: var(--pvl-ink); font-size: var(--pvl-body); line-height: 1.5; }
#modal-interactions.pvl .ia-sugg b { color: var(--pvl-ink); font-weight: 700; }
#modal-interactions.pvl .ia-sugg button { min-height: var(--pvl-tap); min-width: 72px; font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 600; border-radius: 999px; padding: 0 18px; }
#modal-interactions.pvl .ia-yes { background: var(--pvl-ink); color: var(--pvl-gold-hi); border: 1.5px solid var(--pvl-ink); }
#modal-interactions.pvl .ia-no { background: transparent; color: var(--pvl-ink); border: 1.5px solid var(--pvl-line-strong); }

#modal-interactions.pvl #ia-cta-visitor, #modal-interactions.pvl #ia-cta-member { background: var(--pvl-card) !important; border: 1px solid var(--pvl-line) !important; border-radius: var(--pvl-radius) !important; box-shadow: var(--pvl-shadow); padding: 18px 16px !important; text-align: left !important; }
#modal-interactions.pvl #ia-cta-visitor > div:first-child, #modal-interactions.pvl #ia-cta-member > div:first-child { font-family: var(--pvl-sans) !important; font-size: var(--pvl-min) !important; letter-spacing: .1em !important; font-weight: 600; color: var(--pvl-gold-text) !important; }
#modal-interactions.pvl #ia-cta-visitor h3, #modal-interactions.pvl #ia-cta-member h3 { font-family: var(--pvl-serif) !important; font-style: normal !important; font-weight: 600 !important; font-size: var(--pvl-h3) !important; color: var(--pvl-ink) !important; }
#modal-interactions.pvl #ia-cta-visitor h3 span, #modal-interactions.pvl #ia-cta-member h3 span { color: var(--pvl-gold-text) !important; font-style: italic; }
#modal-interactions.pvl #ia-cta-visitor p, #modal-interactions.pvl #ia-cta-member p { font-family: var(--pvl-sans) !important; font-size: var(--pvl-body) !important; line-height: 1.55 !important; color: var(--pvl-ink2) !important; margin-left: 0 !important; }
#modal-interactions.pvl #ia-cta-visitor > a, #modal-interactions.pvl #ia-cta-member > a { display: inline-flex !important; align-items: center; justify-content: center; min-height: var(--pvl-tap); padding: 8px 22px !important; background: var(--pvl-ink) !important; color: var(--pvl-gold-hi) !important; font-family: var(--pvl-sans) !important; font-size: var(--pvl-min) !important; letter-spacing: .04em !important; font-weight: 600 !important; text-transform: none !important; border-radius: 999px !important; }
#modal-interactions.pvl #ia-cta-visitor > div:last-child a { display: inline-flex; align-items: center; min-height: var(--pvl-tap); font-family: var(--pvl-sans) !important; font-size: var(--pvl-min) !important; font-style: normal !important; font-weight: 600; color: var(--pvl-gold-text) !important; border-bottom: 0 !important; }
#modal-interactions.pvl .iadisc { color: var(--pvl-muted); font-size: var(--pvl-min); line-height: 1.5; letter-spacing: .03em; text-align: left; padding: 16px 0; }
#modal-interactions.pvl .iasvbtn { min-height: 48px; background: var(--pvl-ink); color: var(--pvl-gold-hi); font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 600; letter-spacing: .05em; border-radius: 999px; }
#modal-interactions.pvl .iasvbtn:hover { background: #41382b; }
#modal-interactions.pvl .iarsb { min-height: 48px; background: transparent; border: 1.5px solid var(--pvl-line-strong); color: var(--pvl-ink); font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 600; letter-spacing: .05em; border-radius: 999px; }
#modal-interactions.pvl .iarsb:hover { border-color: var(--pvl-ink); color: var(--pvl-ink); }

/* "Add these to my stack?" (signed in) */
#modal-interactions.pvl .pvso { background: var(--pvl-card); border: 1px solid var(--pvl-line); border-radius: var(--pvl-radius); box-shadow: var(--pvl-shadow); color: var(--pvl-ink); text-align: left; }
#modal-interactions.pvl .pvso-eb, #modal-interactions.pvl .pvso-g { font-family: var(--pvl-sans); font-size: var(--pvl-min); letter-spacing: .08em; font-weight: 600; color: var(--pvl-gold-text); }
#modal-interactions.pvl .pvso-p, #modal-interactions.pvl .pvso-st { font-family: var(--pvl-sans); font-size: var(--pvl-min); line-height: 1.5; color: var(--pvl-ink2); }
#modal-interactions.pvl .pvso-r { border-color: var(--pvl-line); }
#modal-interactions.pvl .pvso-n { font-family: var(--pvl-sans); font-size: var(--pvl-body); color: var(--pvl-ink); }
#modal-interactions.pvl .pvso-in { font-family: var(--pvl-sans); font-size: var(--pvl-min); color: var(--pvl-ok); }
#modal-interactions.pvl .pvso-b, #modal-interactions.pvl .pvso-all { min-height: var(--pvl-tap); font-family: var(--pvl-sans); font-size: var(--pvl-min); font-weight: 600; letter-spacing: .03em; text-transform: none; background: var(--pvl-ink); color: var(--pvl-gold-hi); border: 0; border-radius: 999px; padding: 0 18px; }

/* the install banner stays out of the way of the light checker */
body:has(#modal-interactions.pvl.open) #pwa-install-banner { display: none !important; }

/* Save my report as PDF: the report on white, without the page around it */
@media print {
  body:has(#modal-interactions.pvl.open) { overflow: visible !important; background: #fff !important; }
  body:has(#modal-interactions.pvl.open) > *:not(#modal-interactions) { display: none !important; }
  #modal-interactions.pvl.open { position: static; overflow: visible; background: #fff; }
  #modal-interactions.pvl .pvl-modalbar, #modal-interactions.pvl .iat, #modal-interactions.pvl .ias, #modal-interactions.pvl .iagl,
  #modal-interactions.pvl .iaib, #modal-interactions.pvl .iasc, #modal-interactions.pvl .iaab, #modal-interactions.pvl #ia-add,
  #modal-interactions.pvl #ia-cta-visitor, #modal-interactions.pvl #ia-cta-member, #modal-interactions.pvl .iasvbtn, #modal-interactions.pvl .iarsb { display: none !important; }
  #modal-interactions.pvl .iasec { box-shadow: none; break-inside: avoid; }
  #modal-interactions.pvl .iash, #modal-interactions.pvl .iadr, #modal-interactions.pvl .iaall { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #modal-interactions.pvl .iadet { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .pvl *, .pvl *::before, .pvl *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
