/* Aunyx patient app v2: tokens and the component set (Oct 27 2026).
   Source: the design canvas (design-handoff/patient-app-v2/canvas/*.dc.html),
   board "Direction and system". Every screen is built from these classes;
   no screen carries CSS of its own. */

:root {
  --bone: #F3EEE4;
  --cream: var(--bone);
  --paper: #FBF8F2;
  --forest: #1E3F38;
  --peat: #16201C;
  --clay: #B9633B;
  --clay-text: #9E4F2B;
  --ochre: #D9A24A;
  --ochre-2: #E7B86A;
  --ochre-text: #8A5F1C;
  --sage: #7FA08C;
  --sage-text: #3F6B52;
  --slate: #4B6474;
  --muted: #5F6763;
  --faint: #9FA6A2;
  --ink: var(--peat);
  --on-dark: var(--bone);
  --on-dark-muted: #D6DBD6;
  --on-dark-faint: #B7BDB8;
  --ring: rgba(22, 32, 28, .07);
  --ring-strong: rgba(22, 32, 28, .14);
  --tint: rgba(30, 63, 56, .12);
  --tint-ink: rgba(22, 32, 28, .06);
  --sand: rgba(30, 63, 56, .12);
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --r-hero: 28px;
  --r-card: 20px;
  --r-tile: 14px;
  --r-pill: 999px;
  --gutter: 20px;
  --tab-h: 70px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dusk: radial-gradient(110% 70% at 0% 0%, rgba(185, 99, 59, .62), transparent 58%), radial-gradient(70% 60% at 100% 30%, rgba(217, 162, 74, .32), transparent 60%), linear-gradient(180deg, #1E3F38 0%, #16201C 100%);
  --dusk-soft: radial-gradient(90% 70% at 100% 100%, rgba(185, 99, 59, .5), transparent 60%), radial-gradient(60% 50% at 0% 0%, rgba(217, 162, 74, .28), transparent 60%), linear-gradient(180deg, #1E3F38 0%, #16201C 100%);
  --dusk-page: radial-gradient(90% 60% at 100% 0%, rgba(217, 162, 74, .4), transparent 60%), radial-gradient(70% 60% at 0% 90%, rgba(185, 99, 59, .3), transparent 60%), linear-gradient(180deg, #1E3F38 0%, #16201C 100%);
  --progress: linear-gradient(90deg, #B9633B, #D9A24A 50%, #7FA08C);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  min-height: 100%;
  background: #0E1412;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
/* A placeholder is a hint, not text to delete: it clears the moment the field is focused (Dallin, Oct 28 2026). */
input:focus::placeholder, textarea:focus::placeholder { color: transparent; opacity: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { display: block; }
[hidden] { display: none !important; }

/* The phone column. On a desktop the app is the same width, centred. */
.app { position: fixed; inset: 0; max-width: 460px; margin: 0 auto; background: var(--bone); overflow: hidden; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; background: var(--bone); }
.screen::-webkit-scrollbar { width: 0; }
/* Horizontal strips (the card rows, the day pills) scroll without a visible track, as the boards draw them. */
.bcs, .days, .pcs { scrollbar-width: none; -ms-overflow-style: none; }
.bcs::-webkit-scrollbar, .days::-webkit-scrollbar, .pcs::-webkit-scrollbar { display: none; }
.screen.on { display: flex; animation: fade .3s cubic-bezier(.2, .7, .3, 1); }
.screen.dark { background: var(--dusk-page); color: var(--on-dark); }
.screen.has-tabs { padding-bottom: calc(var(--tab-h) + 32px + var(--safe-bottom)); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.on { animation: none; } }

/* ---- type ---- */
/* the italic accent word: clay on the light screens, as designed; bone where the screen is dark */
.ser { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--clay-text); }
.hero .ser, .dark .ser, .intro .ser, .rhero .ser, .card.forest .ser, .box.dk .ser, .promo .ser, .bene-hero .ser { color: inherit; }
h1.h { font-size: 34px; line-height: 1.04; letter-spacing: -.03em; font-weight: 600; }
h1.h.sm { font-size: 32px; }
h1.h.xs { font-size: 30px; }
h2.h2 { font-size: 16px; font-weight: 600; }
.sub { font-size: 15px; line-height: 1.45; color: var(--muted); }
.dark .sub, .hero .sub { color: var(--on-dark-muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero .eyebrow, .dark .eyebrow { color: var(--ochre-2); }
.lab { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mut { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.lnk { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.lnk.sm { font-size: 13px; }
.dark .lnk { color: #C9CFC9; }

/* ---- hero header (dusk) ---- */
.hero { position: relative; flex: none; padding: calc(58px + var(--safe-top)) var(--gutter) 24px; color: var(--on-dark); background: var(--dusk); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 262px; border-radius: 0; }
.hero.soft { background: var(--dusk-soft); }
.hero.photo { background-size: cover; background-position: center; min-height: 340px; padding-left: 24px; padding-right: 24px; }
.hero.photo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(22, 32, 28, .15) 0%, rgba(22, 32, 28, .25) 45%, rgba(22, 32, 28, .88) 100%); }
.hero > * { position: relative; }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; mix-blend-mode: soft-light; pointer-events: none; border-radius: inherit; }
.hero .top { display: flex; align-items: center; justify-content: space-between; }
.hero .logo { height: 24px; width: auto; }
.hero .copy { display: flex; flex-direction: column; gap: 12px; }
.hero .cta { align-self: flex-start; }

/* ---- plain header (bone) ---- */
.head { flex: none; padding: calc(58px + var(--safe-top)) 24px 0; display: flex; flex-direction: column; gap: 18px; }
.head .topbar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.head .copy { display: flex; flex-direction: column; gap: 8px; }

/* round icon buttons */
.rb { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; flex: none; background: var(--paper); border: 1px solid rgba(22, 32, 28, .08); color: var(--ink); }
.hero .rb, .dark .rb { background: rgba(243, 238, 228, .14); border-color: rgba(243, 238, 228, .18); color: var(--on-dark); }
.rb .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); border: 2px solid var(--forest); }
.rb.avatar { background: var(--bone); color: var(--ink); font-size: 13px; font-weight: 600; border: 0; }
.hero .rb.avatar { background: var(--bone); color: var(--ink); }
.icons { display: flex; gap: 8px; }

/* ---- main column ---- */
.main { padding: 16px var(--gutter) 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
/* a screen that ends in its main (no footer, no tab bar) keeps room under the last field */
.screen:not(.has-tabs) > .main:last-child { padding-bottom: calc(28px + var(--safe-bottom)); }
.main.tight { padding-top: 14px; gap: 10px; }
.main.form { padding: 18px 24px 0; gap: 14px; }
.foot { margin-top: auto; padding: 12px 24px calc(32px + var(--safe-bottom)); text-align: center; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.foot.stack { align-items: stretch; text-align: left; }
.dark .foot { color: var(--on-dark-faint); }

/* ---- buttons ---- */
.btn { height: 56px; padding: 0 22px; border-radius: var(--r-pill); background: var(--peat); color: var(--on-dark); font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; transition: transform .12s, opacity .12s; }
.btn:active { transform: scale(.985); }
.btn:disabled, .btn.busy { opacity: .6; pointer-events: none; }
.btn.light { background: var(--bone); color: var(--ink); }
.btn.ghost { height: 52px; background: var(--paper); border: 1px solid var(--ring-strong); color: var(--ink); font-size: 15px; }
.dark .btn.ghost { background: transparent; border-color: rgba(243, 238, 228, .25); color: var(--on-dark); }
.btn.fit { width: auto; height: 52px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; width: auto; }
.btn.tint { background: var(--tint); color: var(--forest); }

/* ---- fields ---- */
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label { font-size: 12px; font-weight: 600; color: var(--muted); }
.fld .in { height: 52px; border-radius: var(--r-tile); background: var(--paper); border: 1px solid var(--ring-strong); padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.fld .in:focus-within { border: 1.5px solid var(--peat); padding: 0 15.5px; }
.fld input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; font-size: 15px; color: var(--ink); }
.fld input::placeholder { color: var(--faint); }
.form-err { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--clay-text); }
.form-err[hidden] { display: none; }
.fld .in button { color: var(--muted); display: flex; }
.fld .hint { font-size: 12px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--forest); }
.row-end { display: flex; justify-content: flex-end; }

/* ---- cards and rows ---- */
.card { background: var(--paper); border: 1px solid var(--ring); border-radius: var(--r-card); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.card.row { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; }
.card.row > .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card.row b { font-size: 15px; font-weight: 600; }
.card.row span { font-size: 13px; color: var(--muted); line-height: 1.3; }
/* an order on the Orders list: the item line, then its status on its own line */
.card.ordr { gap: 10px; padding: 12px 14px 12px 12px; }
.ordr .top { display: flex; align-items: center; gap: 14px; }
.ordr .top .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ordr .top b { font-size: 15px; font-weight: 600; }
.ordr .top span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ordr .row-end .pill { height: auto; min-height: 32px; padding: 7px 12px; white-space: normal; text-align: right; line-height: 1.25; }
.card .ch { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.card .ch span { font-size: 13px; color: var(--muted); }
.tile { width: 56px; height: 56px; border-radius: 16px; background: var(--tint); color: var(--forest); display: flex; align-items: center; justify-content: center; flex: none; }
.tile.sm { width: 40px; height: 40px; border-radius: 12px; }
.tile.lg { width: 56px; height: 56px; border-radius: 18px; }
/* An icon square inside a list row stays a centred square: .ln span and .card.row span
   style the row's TEXT (display block, muted, small) and were reaching the tile too,
   which put every icon in the top-left corner (Dallin, 2026-10-28: "once and for all"). */
.ln .tile, .card.row .tile, .ln span.tile, .card.row span.tile { display: flex; align-items: center; justify-content: center; margin: 0; font-size: inherit; line-height: 1; color: var(--forest); }
.ln .tile.photo, .card.row .tile.photo { color: inherit; }
.chev { color: var(--muted); flex: none; }

/* path / checklist rows */
.prow { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.prow .k { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--muted); }
.prow .k.done { background: var(--forest); color: var(--on-dark); }
.prow .k.now { background: var(--clay); color: var(--on-dark); }
.prow .txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.prow b { font-size: 15px; font-weight: 600; }
.prow span { font-size: 13px; color: var(--muted); }
.prow.todo b { color: var(--muted); font-weight: 500; }
.prow.now { background: var(--bone); margin: 4px -8px; padding: 6px 8px; border-radius: var(--r-tile); }
.prow.now .chev { color: var(--clay-text); }

/* list rows */
.ln { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ring); font-size: 14px; }
.ln:first-child { border-top: 0; }
.ln b { font-weight: 600; display: block; }
.ln span { color: var(--muted); font-size: 12px; display: block; margin-top: 1px; line-height: 1.3; }
.ln .txt { flex: 1; min-width: 0; }
.ln.off { opacity: .5; }

/* ---- pills, chips, badges ---- */
.pill { height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex: none; background: var(--tint); color: var(--forest); }
/* tier pills are filled, bone text (the boards) */
.pill.optimal { background: var(--sage); color: var(--on-dark); }
.pill.inrange { background: var(--ochre); color: var(--peat); }
.pill.outofrange { background: var(--clay); color: var(--on-dark); }
.pill.soon { background: var(--tint-ink); color: var(--muted); }
.chip { height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid rgba(22, 32, 28, .18); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; background: var(--bone); }
.chip.on { background: var(--peat); color: var(--on-dark); border-color: var(--peat); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.badges { display: flex; justify-content: space-between; gap: 6px; }
.badges div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.badges span { font-size: 9.5px; line-height: 1.2; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 8px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid rgba(22, 32, 28, .1); font-size: 13px; font-weight: 600; }
.badge i { width: 20px; height: 20px; border-radius: 50%; background: var(--forest); display: inline-flex; align-items: center; justify-content: center; }
.tag { position: absolute; top: 10px; right: 10px; }

/* ---- segmented control ---- */
.seg { display: flex; height: 40px; padding: 3px; border-radius: var(--r-pill); background: var(--tint-ink); }
.seg button { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 32, 28, .08); }

/* ---- progress ---- */
.pb { position: relative; height: 4px; border-radius: 2px; background: rgba(22, 32, 28, .1); overflow: hidden; }
.hero .pb, .dark .pb { background: rgba(243, 238, 228, .22); }
.pb .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--progress) no-repeat left center; border-radius: 2px; }
/* progress strips: see the block at the end of this file */

/* ---- quote block (the provider's words) ---- */
.q { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px 10px 14px; border-radius: var(--r-tile); background: rgba(127, 160, 140, .18); border-left: 3px solid var(--sage); }
.q img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.q p { font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.32; }
.q span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---- sig grid (dose facts) ---- */
.sig { border-top: 1px solid rgba(22, 32, 28, .1); border-bottom: 1px solid rgba(22, 32, 28, .1); display: grid; grid-template-columns: 1fr 1fr; }
.sig div { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px 7px 0; border-bottom: 1px solid rgba(22, 32, 28, .1); }
.sig div:nth-last-child(-n+2) { border-bottom: 0; }
.sig div:nth-child(2n) { padding-left: 12px; border-left: 1px solid rgba(22, 32, 28, .1); }
.sig i { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sig b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- empty state ---- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 20px; }
.empty b { font-size: 16px; font-weight: 600; }
.empty p { font-size: 14px; color: var(--muted); max-width: 300px; }

/* ---- tab bar ---- */
.tabs { position: absolute; left: 16px; right: 16px; bottom: calc(16px + var(--safe-bottom)); height: var(--tab-h); border-radius: 26px; background: rgba(251, 248, 242, .95); border: 1px solid rgba(22, 32, 28, .08); box-shadow: 0 12px 32px rgba(22, 32, 28, .14); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; padding: 0 4px; z-index: 5; }
.tabs[hidden] { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 56px; border-radius: 18px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.tab.on { color: var(--ink); background: var(--tint-ink); }
.tab svg { width: 22px; height: 22px; }
.tab .bd { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--clay); color: var(--on-dark); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--paper); }

/* ---- sheet ---- */
.sheet-bg { position: absolute; inset: 0; background: rgba(22, 32, 28, .55); display: none; align-items: flex-end; z-index: 20; }
.sheet-bg.show { display: flex; }
.sheet { width: 100%; max-height: 88%; overflow-y: auto; border-radius: 24px 24px 0 0; background: var(--paper); padding: 12px 20px calc(24px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -16px 40px rgba(0, 0, 0, .3); animation: up .28s cubic-bezier(.2, .7, .3, 1); }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(22, 32, 28, .18); margin: 0 auto 8px; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- toast ---- */
.toast { position: absolute; left: 20px; right: 20px; bottom: calc(var(--tab-h) + 32px + var(--safe-bottom)); background: var(--peat); color: var(--on-dark); border-radius: var(--r-tile); padding: 12px 16px; font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; z-index: 30; text-align: center; }
.toast.show { opacity: 1; transform: none; }

/* ---- the mark, on its own (404, error, boot) ---- */
.mark-ring { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.mark-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(243, 238, 228, .14); }
.centre { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 24px; text-align: center; }
.centre .copy { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.centre .sub { max-width: 300px; }

/* ---- boot splash ---- */
/* The dusk gradient with its grain (Loading.dc.html), the mark turning at the
   centre, the wordmark breathing at the foot of the screen. */
#boot { position: absolute; inset: 0; z-index: 40; background: var(--dusk-page); display: flex; align-items: center; justify-content: center; transition: opacity .3s; overflow: hidden; }
#boot.gone { opacity: 0; pointer-events: none; }
#boot .grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; mix-blend-mode: soft-light; pointer-events: none; }
#boot .stack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
#boot .mark-ring { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; animation: turn 2.4s linear infinite; transform-origin: 50% 50%; }
#boot .mark-ring::before { content: none; } /* the faint ring belongs to the consent mark, not the turning logo */
#boot .mark-ring svg { display: block; width: 72px; height: 72px; }
/* Dallin, Oct 28: the mark alone turns at the centre; the wordmark sits at the bottom, centred */
#boot .word { position: absolute; left: 50%; bottom: calc(56px + var(--safe-bottom)); transform: translateX(-50%); height: 26px; width: 101px; animation: breathe 2.4s ease-in-out infinite; }
/* The same screen while any screen loads its data (Dallin, Oct 28 2026). */
.loading-screen { position: relative; flex: 1; min-height: 100%; background: var(--dusk-page); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.loading-screen .grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; mix-blend-mode: soft-light; pointer-events: none; }
.loading-screen .stack { position: relative; display: flex; flex-direction: column; align-items: center; }
.loading-screen .mark-ring { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; animation: turn 2.4s linear infinite; transform-origin: 50% 50%; }
.loading-screen .mark-ring::before { content: none; }
.loading-screen .mark-ring svg { display: block; width: 72px; height: 72px; }
.loading-screen .word { position: absolute; left: 50%; bottom: calc(56px + var(--safe-bottom)); transform: translateX(-50%); height: 26px; width: 101px; animation: breathe 2.4s ease-in-out infinite; }
/* a quiet centred link with no underline (the boards' Close) */
.lnk.plain { text-decoration: none; color: var(--muted); height: 44px; display: flex; align-items: center; justify-content: center; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #boot .mark-ring, #boot .word { animation: none; } }

/* a utility screen's top bar: back circle, centred 17px title */
.head .ttl { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.head .ttl b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.head .ttl small { font-size: 12px; color: var(--muted); }

/* Progress strips (Dallin, Oct 27 2026): the lit run is ONE gradient laid
   across the whole track, each segment showing its slice; the segment in
   progress carries the warm gradient; the gaps are a mask on the track.
   Photo intros, heroes and dark boxes run orange to sage; light screens
   (the intake chrome, order and kit boxes) run orange to forest. */
.segs, .steps { position: relative; display: block; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(243, 238, 228, .22);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0, #000 calc((100% + 4px) / var(--n, 8) - 4px), transparent calc((100% + 4px) / var(--n, 8) - 4px), transparent calc((100% + 4px) / var(--n, 8)));
  mask: repeating-linear-gradient(90deg, #000 0, #000 calc((100% + 4px) / var(--n, 8) - 4px), transparent calc((100% + 4px) / var(--n, 8) - 4px), transparent calc((100% + 4px) / var(--n, 8))); }
.segs i, .steps i { position: absolute; top: 0; bottom: 0; display: block; }
.segs .run, .steps .run { left: 0; background-image: linear-gradient(90deg, #B9633B, #D9A24A 50%, #7FA08C); background-repeat: no-repeat; background-position: left center; }
.segs .now, .steps .now { background: linear-gradient(90deg, #E7B86A, #B9633B); }
.head .segs, .head .steps, .main .segs, .main .steps, .card .steps, .box .steps { background: rgba(22, 32, 28, .06); }
.head .segs .run, .head .steps .run, .main .segs .run, .main .steps .run, .card .steps .run, .box .steps .run { background-image: linear-gradient(90deg, #B9633B, #D9A24A 50%, #1E3F38); }
.hero .segs, .hero .steps, .dark .segs, .dark .steps, .intro .segs, .intro .steps, .rhero .steps, .box.dk .steps, .card.forest .steps { background: rgba(243, 238, 228, .22); }
.hero .segs .run, .hero .steps .run, .dark .segs .run, .dark .steps .run, .intro .segs .run, .intro .steps .run, .rhero .steps .run, .box.dk .steps .run, .card.forest .steps .run { background-image: linear-gradient(90deg, #B9633B, #D9A24A 50%, #7FA08C); }
.box .steps { height: 5px; }
/* the sign-up's own four-step strip keeps its flex markup */
.steps.dark-steps { display: flex; gap: 4px; height: auto; background: none; -webkit-mask: none; mask: none; overflow: visible; }
.steps.dark-steps i { position: static; flex: 1; height: 4px; border-radius: 2px; background: rgba(22, 32, 28, .14); }
.steps.dark-steps i.on-ink { background: var(--peat); }
/* the street field's suggestions */
.fld { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 6px; background: var(--paper); border: 1px solid var(--ring-strong); border-radius: var(--r-tile); box-shadow: 0 10px 30px rgba(22, 32, 28, .14); overflow: hidden; }
.ac-list[hidden] { display: none; }
.ac-item { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-top: 1px solid var(--ring); background: none; font: inherit; color: inherit; cursor: pointer; }
.ac-item:first-child { border-top: 0; }
.ac-item b { display: block; font-size: 14px; font-weight: 600; }
.ac-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.hint.ok { color: var(--sage-text); font-weight: 600; }
/* ======================================================================
   Phase 1: joining, intake, labs, sign-up
   ====================================================================== */

/* photo hero that fades to the page, as the WaitLabs and WaitProtocol boards do:
   a touch of shade at the top for the cream logo, then the photo dissolves into
   the paper and the copy reads in ink. The two fade stops are the boards' own
   (46% / 74% on WaitLabs); a screen whose board differs sets --fade-a / --fade-b. */
.hero.photo.light { color: var(--ink); }
.hero.photo.light::before { background: linear-gradient(180deg, rgba(22, 32, 28, .32) 0%, rgba(22, 32, 28, 0) 24%, rgba(243, 238, 228, 0) var(--fade-a, 46%), rgba(243, 238, 228, .86) var(--fade-b, 74%), #F3EEE4 100%); }
.hero.photo.light .sub { color: var(--muted); }
.hero.photo.light .ser { color: var(--clay-text); }
/* the boards pin the logo to the top left; the copy sits at the foot on its own */
.hero.photo.light .top { position: absolute; top: calc(58px + var(--safe-top)); left: 24px; right: 24px; }

/* full-bleed intro: photo, shade, copy at the bottom, tap anywhere */
.screen.full { padding: 0; }
.intro { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; flex: 1; padding: 0 24px calc(40px + var(--safe-bottom)); background: var(--peat) center / cover no-repeat; color: var(--on-dark); }
.intro .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 32, 28, .1) 0%, rgba(22, 32, 28, .2) 40%, rgba(22, 32, 28, .9) 100%); }
.intro .logo-top { position: absolute; left: 24px; top: calc(58px + var(--safe-top)); }
.intro .copy { position: relative; display: flex; flex-direction: column; gap: 14px; }
.intro .sub { color: var(--on-dark-muted); font-size: 16px; max-width: 320px; }
h1.h.lg { font-size: 46px; line-height: .98; letter-spacing: -.035em; }
.h .say { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--on-dark-muted); white-space: nowrap; }
.strip-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--on-dark-faint); }
.intro .pb { background: rgba(243, 238, 228, .22); }

/* the welcome checklist */
.chip-dark { height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(243, 238, 228, .14); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark); }
.now-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--ring); }
.now-row .n { width: 32px; height: 32px; border-radius: 50%; background: var(--peat); color: var(--on-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; }
.now-row .n.done { background: var(--forest); }
.now-row .txt { flex: 1; min-width: 0; }
.now-row b { display: block; font-size: 15px; font-weight: 600; }
.now-row span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.now-row em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); flex: none; }
.later-wrap { padding: 10px 4px 0; }
.later { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); padding: 6px 0; }
.later i { width: 8px; height: 8px; border-radius: 50%; background: var(--tint); flex: none; margin: 5px 12px 0; }

/* forms */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* City, State, ZIP: City on its own line, State and ZIP share the next. Three
   columns pushed ZIP past the edge of a 375px screen, with no way to scroll
   to it (found in the phase 1 walk). min-width: 0 lets a field shrink below its input's
   own width. */
.grid3 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 > :first-child { grid-column: 1 / -1; }
.grid2 > *, .grid3 > * { min-width: 0; }
.fld.ro .in { background: var(--tint-ink); border-color: transparent; color: var(--muted); }
.fld select { flex: 1; height: 100%; background: transparent; border: 0; outline: none; font-size: 15px; -webkit-appearance: none; appearance: none; }
.inline-field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(22, 32, 28, .12); background: var(--bone); margin-top: 6px; }
.inline-field span { font-size: 12px; font-weight: 600; color: var(--muted); flex: none; }
.inline-field input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; font-weight: 500; outline: none; font-variant-numeric: tabular-nums; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; }
.opt input { width: 22px; height: 22px; accent-color: var(--forest); flex: none; margin-top: 1px; }
.opt b { font-weight: 600; font-size: 14px; }
.opt span span { color: var(--muted); font-size: 13px; }

/* consent list and the document */
.frm { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ring); }
.frm:first-child { border-top: 0; }
.frm .n { width: 36px; height: 36px; border-radius: 12px; background: var(--tint-ink); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.frm .n.ok { background: var(--forest); color: var(--on-dark); }
.frm .txt { flex: 1; min-width: 0; }
.frm b { display: block; font-size: 15px; font-weight: 600; }
.frm span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.pillbtn { flex: none; height: 34px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--ring-strong); background: var(--paper); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.pillbtn.done { border-color: transparent; background: transparent; color: var(--forest); }
.doc { background: var(--paper); border: 1px solid var(--ring); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.doc-body h2 { font-size: 13px; font-weight: 600; letter-spacing: .02em; margin: 10px 0 4px; }
.doc-body p { font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.sig-name { height: 54px; padding: 0 16px; border-radius: var(--r-tile); border: 1px solid rgba(22, 32, 28, .12); background: var(--bone); font-family: var(--serif); font-style: italic; font-size: 26px; display: flex; align-items: center; }
.done-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--bone); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.st { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--ring); }
.st:first-child { border-top: 0; }
.st .n { width: 28px; height: 28px; border-radius: 50%; background: var(--tint-ink); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; font-size: 12px; font-weight: 600; }
.st .n.ok { background: var(--forest); color: var(--on-dark); }
.st .n.now, .st .n.next { background: linear-gradient(135deg, var(--ochre), var(--clay)); color: var(--on-dark); }
.st b { display: block; font-size: 15px; font-weight: 600; }
.st span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

/* the intake */
.qb { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; min-height: 18px; flex-wrap: wrap; }
.lbl small { font-weight: 500; color: var(--muted); font-size: 12px; flex: 1; text-align: right; }
.lbl .opt-tag { flex: none; text-align: left; }
.help { font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.4; margin-top: -2px; }
.saved { height: 40px; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--forest); display: inline-flex; align-items: center; gap: 5px; }
.seg.wrap { height: auto; flex-wrap: wrap; }
.seg.wrap button { min-height: 34px; flex: 1 1 auto; padding: 0 10px; }
input.in, textarea.ta { width: 100%; padding: 0 14px; border-radius: var(--r-tile); font: 600 15px var(--sans); color: var(--ink); outline: none; }
input.in { height: 50px; }
input.in.set, textarea.ta.set { background: var(--paper); border: 1px solid var(--ring-strong); }
input.in.blank, textarea.ta.blank { background: transparent; border: 1.5px dashed rgba(22, 32, 28, .28); font-weight: 500; }
input.in::placeholder, textarea.ta::placeholder { color: var(--muted); }
textarea.ta { min-height: 72px; padding: 12px 14px; font-weight: 400; line-height: 1.45; resize: none; display: block; }
.unit { position: relative; display: flex; }
.unit input { padding-right: 44px; font-variant-numeric: tabular-nums; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 500; color: var(--muted); }
.ogrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ogrid .g { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r-tile); background: var(--paper); border: 1px solid rgba(22, 32, 28, .1); font: 600 13px var(--sans); text-align: left; }
.ogrid .g i, .olist .o i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(22, 32, 28, .2); flex: none; display: flex; align-items: center; justify-content: center; }
.ogrid .g.on, .olist .o.on { border: 2px solid var(--peat); padding: 0 11px; }
.ogrid .g.on i, .olist .o.on i { background: var(--peat); border-color: var(--peat); color: var(--on-dark); }
.olist { display: flex; flex-direction: column; gap: 8px; }
.olist .o { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: var(--r-tile); background: var(--paper); border: 1px solid rgba(22, 32, 28, .1); font: 600 15px var(--sans); text-align: left; }
.olist .o i { width: 22px; height: 22px; }
.rk { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 14px; border-radius: var(--r-tile); background: var(--paper); border: 1px solid var(--ring-strong); font: 600 15px var(--sans); text-align: left; margin-bottom: 8px; }
.rk .n { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--ochre), var(--clay)); color: var(--on-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; font-variant-numeric: tabular-nums; }
.rk .h { margin-left: auto; color: var(--muted); display: flex; gap: 3px; }
.rk .h i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor; display: block; }
.rk.un { background: transparent; border: 1.5px dashed rgba(22, 32, 28, .25); font-weight: 500; color: var(--muted); }
.rk.un .n { background: var(--tint-ink); color: var(--muted); }
.scale { display: flex; align-items: center; gap: 6px; }
.scale button { flex: 1; height: 42px; border-radius: 12px; border: 1px solid rgba(22, 32, 28, .12); background: var(--paper); font: 600 15px var(--sans); font-variant-numeric: tabular-nums; }
.scale button.on { background: var(--peat); border-color: var(--peat); color: var(--on-dark); }
.ends { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--muted); padding: 0 2px; }
.fu { background: var(--paper); border: 1px solid var(--ring); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.fu .hd { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.fu .hd span { font-size: 12px; color: var(--muted); font-weight: 500; }
.fu .qb .lbl { font-size: 13px; font-weight: 500; }
.grp { background: var(--paper); border: 1px solid var(--ring); border-radius: var(--r-card); padding: 12px 16px 10px; display: flex; flex-direction: column; gap: 8px; }
.grp h2 { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.grp h2 span { font-size: 12px; font-weight: 500; color: var(--muted); }
.grp .row { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.grp .row b { display: block; font-size: 14px; font-weight: 600; }
.grp .x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(22, 32, 28, .12); background: var(--paper); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.add { display: flex; gap: 8px; }
.add input { flex: 1; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px dashed rgba(22, 32, 28, .28); background: transparent; font: 400 14px var(--sans); outline: none; min-width: 0; }
.add button { height: 44px; padding: 0 14px; border-radius: 12px; background: var(--peat); color: var(--on-dark); font: 600 13px var(--sans); flex: none; }
.grp-lab { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.search { position: relative; display: block; margin-bottom: 2px; }
.search span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search input { height: 44px; padding: 0 14px 0 40px; border-radius: var(--r-tile); border: 1px solid rgba(22, 32, 28, .12); background: var(--paper); font: 400 14px var(--sans); width: 100%; outline: none; }
.qb .a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: var(--r-tile); background: var(--paper); border: 1px solid rgba(22, 32, 28, .1); font: 600 14px var(--sans); text-align: left; width: 100%; margin-top: 8px; }
.qb .a i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(22, 32, 28, .25); display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.qb .a.on { border: 2px solid var(--peat); padding: 0 13px; }
.qb .a.on i { background: var(--peat); border-color: var(--peat); color: var(--on-dark); }
.btn.between { justify-content: space-between; padding: 0 22px; }
.btn .status { font-size: 13px; color: var(--on-dark-faint); font-weight: 500; }
.foot.fade-top { background: linear-gradient(180deg, rgba(243, 238, 228, 0) 0%, var(--bone) 30%); }

/* sign-up */
.steps.dark-steps i { background: rgba(22, 32, 28, .14); }
.steps.dark-steps i.on-ink { background: var(--peat); }
.rules { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.rule { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rule i { width: 18px; height: 18px; border-radius: 50%; background: rgba(22, 32, 28, .08); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ink); }
.rule i.ok { background: var(--sage); }
.card.forest { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.price-big { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sub-price { font-size: 13px; font-weight: 500; color: #C9CFC9; letter-spacing: 0; margin-left: 6px; }
.pt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.pt i { width: 20px; height: 20px; border-radius: 50%; background: var(--sage); color: var(--peat); display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }

/* get your labs */
.lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lopt { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 176px; padding: 14px; border-radius: var(--r-card); background: var(--paper); border: 1px solid rgba(22, 32, 28, .08); text-align: left; color: inherit; gap: 12px; }
.lopt .ic { width: 40px; height: 40px; border-radius: 14px; background: var(--tint-ink); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.lopt b { display: block; font-size: 16px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.lopt small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.lopt .price { position: absolute; top: 12px; right: 12px; height: 30px; padding: 0 11px; border-radius: var(--r-pill); background: var(--peat); color: var(--on-dark); font-size: 14px; font-weight: 700; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.lopt.sel { border: 2px solid var(--clay); padding: 13px; }
.lopt.sel .price { background: var(--clay); color: var(--on-dark); }
/* the at-home draw card carries its photo, as on the canvas */
.lopt.photo { background: linear-gradient(180deg, rgba(22, 32, 28, .1) 0%, rgba(22, 32, 28, .82) 100%), url(/v2/assets/draw-home.jpg) center 30% / cover no-repeat; color: var(--on-dark); }
.lopt.photo small { color: #E4D9CC; }
.lopt.photo .ic { background: rgba(243, 238, 228, .2); color: var(--on-dark); }
.lopt.soon, .lopt.off { background: transparent; border: 1.5px dashed rgba(22, 32, 28, .25); color: var(--muted); }
.lopt.soon .ic, .lopt.off .ic { background: rgba(22, 32, 28, .04); color: var(--muted); }
.lopt.soon b, .lopt.off b { color: var(--muted); }
.soon-tag { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.det { gap: 10px; }
.det p { font-size: 14px; line-height: 1.5; }
.inc { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.inc i { width: 20px; height: 20px; border-radius: 50%; background: var(--tint-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; color: var(--ink); }
.how { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; padding: 4px 0; }
.how b { font-weight: 600; }
.how span { color: var(--muted); }
details { border-top: 1px solid var(--ring); padding: 10px 0 2px; }
details:first-of-type { border-top: 0; padding-top: 0; }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] summary .chev { transform: rotate(90deg); }
details p { font-size: 14px; line-height: 1.5; color: var(--muted); padding: 8px 0 6px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 4px; }
.pickrow { cursor: pointer; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.pickrow .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(22, 32, 28, .2); flex: none; display: flex; align-items: center; justify-content: center; font-style: normal; }
.pickrow.on .radio { background: var(--peat); border-color: var(--peat); color: var(--on-dark); }

/* kit tracker, booking, booked */
.steps-lab { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }
.steps-lab span { flex: 1; text-align: center; }
.steps-lab span:first-child { text-align: left; }
.steps-lab span:last-child { text-align: right; }
.days { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.days .d { flex: 1 0 52px; height: 64px; border-radius: 16px; background: var(--paper); border: 1px solid rgba(22, 32, 28, .1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.days .d span { font-size: 11px; font-weight: 600; color: var(--muted); }
.days .d b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.days .d.on { background: var(--peat); border-color: var(--peat); color: var(--on-dark); }
.days .d.on span { color: var(--on-dark-faint); }
.days .d.off { opacity: .4; }
.wins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.wins .w { height: 46px; border-radius: var(--r-tile); background: var(--paper); border: 1px solid rgba(22, 32, 28, .1); font: 600 14px var(--sans); }
.wins .w.on { background: var(--peat); border-color: var(--peat); color: var(--on-dark); }
.ap .acts { display: flex; gap: 8px; padding-top: 4px; }
.tl { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--ring); }
.tl:first-of-type { border-top: 0; }
.tl .pk { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(22, 32, 28, .18); background: var(--paper); flex: none; margin-top: 4px; }
.tl .pk.now { background: var(--clay); border-color: var(--clay); }
.tl b { display: block; font-size: 14px; font-weight: 600; }
.tl span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.card.strong { border: 2px solid var(--peat); }

/* what your membership includes */
.bene-hero { position: absolute; top: 0; left: 0; right: 0; height: 470px; background: center 22% / cover no-repeat; }
.bene-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 32, 28, .28) 0%, rgba(22, 32, 28, 0) 18%, rgba(22, 32, 28, 0) 42%, rgba(22, 32, 28, .84) 70%, var(--peat) 100%); }
.bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.bgrid .box { background: rgba(243, 238, 228, .09); border: 1px solid rgba(243, 238, 228, .14); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bgrid .box.wide { grid-column: span 2; }
.bgrid .box b { font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--on-dark); }
.bgrid .box p { font-size: 13px; line-height: 1.45; color: #C9CFC9; }
.marks { display: flex; flex-wrap: wrap; gap: 5px; }
.marks span { white-space: nowrap; font-size: 10px; font-weight: 600; padding: 4px 7px; border-radius: var(--r-pill); border: 1px solid rgba(243, 238, 228, .2); color: var(--on-dark); }

/* results while you wait */
.stages { display: flex; gap: 8px; }
.stage { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.stage i { display: block; height: 4px; border-radius: 2px; background: rgba(22, 32, 28, .12); }
.stages.dark .stage i { background: rgba(243, 238, 228, .22); }
.stage i.on { background: linear-gradient(90deg, var(--ochre), var(--clay)); }
.stage i.half { background: linear-gradient(90deg, var(--ochre) 40%, rgba(22, 32, 28, .12) 40%); }
.stages.dark .stage i.half { background: linear-gradient(90deg, var(--ochre-2) 40%, rgba(243, 238, 228, .22) 40%); }
.stage span { font-size: 12px; color: var(--muted); }
.stages.dark .stage span { color: var(--on-dark-faint); }
.stage span.on { color: var(--ink); font-weight: 600; }
.stages.dark .stage span.on { color: var(--on-dark); }
.bcs { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
.bc { flex: none; width: 132px; padding: 12px; border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.bc i { display: block; width: 10px; height: 10px; border-radius: 50%; }
.bc b { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.bc span { font-size: 11px; line-height: 1.35; color: var(--muted); }

/* intro eyebrows read ochre on the photo (every board), never the page's muted ink */
.intro .eyebrow { color: var(--ochre); }
/* the intake chrome: the section eyebrow centred in the top bar */
.head .topbar .eyebrow.mid { flex: 1; text-align: center; }
/* a required answer still missing after Continue: outlined, with a mark beside its label */
.qb.missing .a, .qb.missing .in, .qb.missing .fld .in { border-color: var(--clay); }
.qb.missing > .lbl > span:first-child::after { content: "Needed"; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--clay-text); }

/* The intake's designed controls (Oct 28 2026): the dropdown field, the
   date wheel, feet and inches on one line, and rows that drag to rank. */
.dd { height: 50px; width: 100%; padding: 0 14px; border-radius: var(--r-tile); display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 500 15px var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.dd span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd.set { background: var(--paper); border: 1px solid var(--ring-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.dd.blank { background: transparent; border: 1.5px dashed rgba(22, 32, 28, .28); color: var(--muted); }
.dd svg { flex: none; color: var(--muted); transform: rotate(90deg); transition: transform .18s ease; }
.dd[aria-expanded="true"] svg { transform: rotate(-90deg); }
.qb.missing .dd { border-color: var(--clay); }
.pair { display: flex; gap: 8px; }
.pair .unit { flex: 1; }
.wheel { position: relative; height: 150px; border-radius: var(--r-tile); background: var(--paper); border: 1px solid var(--ring-strong); display: grid; grid-template-columns: 1.4fr .7fr 1fr; overflow: hidden; margin-top: 6px; }
.wheel::before { content: ""; position: absolute; left: 8px; right: 8px; top: 55px; height: 40px; border-radius: 12px; background: rgba(22, 32, 28, .07); pointer-events: none; }
.wheel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper) 0%, rgba(251, 248, 242, 0) 35%, rgba(251, 248, 242, 0) 65%, var(--paper) 100%); pointer-events: none; }
.wheel .col { position: relative; height: 150px; padding: 60px 0; box-sizing: border-box; overflow-y: auto; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; display: flex; flex-direction: column; align-items: center; cursor: ns-resize; outline: none; }
.wheel .col:focus-visible { box-shadow: inset 0 0 0 2px var(--forest); border-radius: 10px; }
.wheel .it { cursor: pointer; }
.wheel .col::-webkit-scrollbar { display: none; }
.wheel .it { flex: none; height: 30px; line-height: 30px; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--muted); scroll-snap-align: center; white-space: nowrap; }
.wheel .it.on { color: var(--ink); font-weight: 600; font-size: 19px; }
.rk { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; will-change: transform; }
.rk.drag { transition: box-shadow .18s ease; cursor: grabbing; z-index: 3; position: relative; box-shadow: 0 12px 28px rgba(22, 32, 28, .18); background: var(--paper); border-color: var(--ring-strong); color: var(--ink); }
.rk.drag .n { background: linear-gradient(135deg, var(--ochre), var(--clay)); color: var(--on-dark); }
[data-rankq].dragging .rk:not(.drag) { pointer-events: none; }
/* Intake complete: one lit box per finished section under the bar, as on the canvas. */
.chk { display: flex; gap: 6px; margin-top: 2px; }
.chk span { flex: 1; height: 34px; border-radius: 10px; background: rgba(243, 238, 228, .12); display: flex; align-items: center; justify-content: center; color: #E7B86A; }
/* the activity search: picks first, then the rows that match */
[data-search] [data-picks], [data-search] [data-results] { display: flex; flex-direction: column; gap: 8px; }
[data-search] [data-picks]:not(:empty) { margin-bottom: 8px; }
/* The pay sheet (LabsPay.dc.html): the option tile in the forest tint, the included lines with small forest checks. */
.sheet .card .ln .tile { background: rgba(30, 63, 56, .12); color: var(--ink); }
.sheet .inc i { width: 16px; height: 16px; background: var(--forest); color: var(--on-dark); margin-top: 2px; }

/* ======================================================================
   Phase 2: results and your consult
   ====================================================================== */
.rhero { position: relative; border-radius: var(--r-card); padding: 18px; background: var(--dusk-soft); color: var(--on-dark); overflow: hidden; }
.rhero .copy { position: relative; display: flex; flex-direction: column; gap: 12px; }
.rhero .eyebrow { color: var(--ochre-2); }
.dgrid { display: flex; flex-wrap: wrap; gap: 4px; }
.dgrid i { width: 9px; height: 9px; border-radius: 3px; background: rgba(243, 238, 228, .25); }
.dgrid.sq i { width: 7px; height: 7px; border-radius: 2px; background: rgba(22, 32, 28, .12); }
.dgrid i.optimal { background: var(--sage); }
.dgrid i.inrange { background: var(--ochre); }
.dgrid i.outofrange { background: var(--clay); }
.cnt { display: flex; gap: 10px; }
/* three columns under a coloured rule (sage / ochre / clay), no boxes, as the boards */
.cnt div { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 0 0; border-top: 3px solid var(--sage); }
.cnt div:nth-child(2) { border-top-color: var(--ochre); }
.cnt div:nth-child(3) { border-top-color: var(--clay); }
.cnt b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.cnt span { font-size: 11px; color: var(--muted); }
.cnt.dark span { color: var(--on-dark-faint); }
.syslist { display: flex; flex-direction: column; gap: 8px; }
.sys { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--ring); }
.sys .pip, .pip { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.sys .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sys b { font-size: 15px; font-weight: 600; }
.sys span { font-size: 12px; color: var(--muted); }
.mlist { display: flex; flex-direction: column; gap: 8px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--ring); }
.mrow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mrow b { font-size: 15px; font-weight: 600; }
.mrow .tx > span { font-size: 12px; color: var(--muted); }
.mrow .vv { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.mrow .vv b { font-size: 16px; }
.mrow .vv small, .mk .val small, .bigval span + span { font-size: 11px; color: var(--muted); margin-left: 3px; font-weight: 500; }
.mrow .vv em, .mk .st { font-style: normal; font-size: 11px; font-weight: 600; }
.optimal.st, em.optimal { color: var(--sage-text); }
.inrange.st, em.inrange { color: var(--ochre-text); }
.outofrange.st, em.outofrange { color: var(--clay-text); }
.mbar { position: relative; height: 6px; border-radius: 3px; background: rgba(22, 32, 28, .08); margin-top: 2px; }
.mbar .rg { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: rgba(127, 160, 140, .45); }
.mbar .pt { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--paper); background: var(--muted); }
.mbar .pt.optimal { background: var(--sage); }
.mbar .pt.inrange { background: var(--ochre); }
.mbar .pt.outofrange { background: var(--clay); }
.tlab { display: flex; align-items: center; gap: 8px; padding: 6px 2px 0; }
.tlab i { width: 8px; height: 8px; border-radius: 50%; }
.tlab i.optimal { background: var(--sage); }
.tlab i.inrange { background: var(--ochre); }
.tlab i.outofrange { background: var(--clay); }
.mk { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--ring); }
.mk .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mk b { font-size: 15px; font-weight: 600; }
.mk .val { font-size: 16px; font-weight: 600; }
.head .ttl { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; }
.head .ttl b { font-size: 15px; font-weight: 600; }
.head .ttl span { font-size: 12px; color: var(--muted); }
.bigval { display: flex; align-items: baseline; gap: 6px; }
.bigval span:first-child { font-size: 60px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--peat); }
.gauge { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(185, 99, 59, .55), rgba(217, 162, 74, .5) 28%, rgba(127, 160, 140, .55) 50%, rgba(217, 162, 74, .5) 72%, rgba(185, 99, 59, .55)); margin: 6px 0 4px; }
.gauge .rg { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: rgba(127, 160, 140, .5); }
.gauge .pt { position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 3px solid var(--paper); background: var(--muted); box-shadow: 0 1px 3px rgba(22, 32, 28, .2); }
.gauge .pt.optimal { background: var(--sage); }
.gauge .pt.inrange { background: var(--ochre); }
.gauge .pt.outofrange { background: var(--clay); }
.ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card.dark { position: relative; background: var(--dusk-soft); color: var(--on-dark); border-color: transparent; overflow: hidden; }
.card.paper { gap: 8px; }
.it { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ring); }
.it:first-of-type { border-top: 0; }
.it b { display: block; font-size: 15px; font-weight: 600; }
.it span { display: block; font-size: 12px; color: var(--muted); }
.it > div { flex: 1; min-width: 0; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--ring); }
.bk .dots { display: flex; flex-wrap: wrap; gap: 3px; }
.bk .dots i { width: 7px; height: 7px; border-radius: 2px; background: rgba(22, 32, 28, .12); }
.bk .dots i.optimal { background: var(--sage); }
.bk .dots i.inrange { background: var(--ochre); }
.bk .dots i.outofrange { background: var(--clay); }
.bk b { font-size: 14px; font-weight: 600; }
.bk span { font-size: 12px; color: var(--muted); }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--ring); }
.file > div { flex: 1; min-width: 0; }
.file b { display: block; font-size: 14px; font-weight: 600; }
.file span { display: block; font-size: 12px; color: var(--muted); }
.file em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--sage-text); flex: none; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); padding: 0 2px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend i.optimal { background: var(--sage); }
.legend i.inrange { background: var(--ochre); }
.legend i.outofrange { background: var(--clay); }
.cmp .h { display: grid; grid-template-columns: 1.4fr repeat(3, .6fr) 20px; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 0 8px; }
.cmp .h > span:first-child { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }
.cmp .r { display: grid; grid-template-columns: 1.4fr repeat(3, .6fr) 20px; align-items: center; gap: 4px; padding: 9px 0; border-top: 1px solid var(--ring); font-size: 13px; }
.cmp .nm b { font-weight: 600; font-size: 13px; }
.cmp .v { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.cmp .v i { width: 7px; height: 7px; border-radius: 50%; }
.cmp .v i.optimal { background: var(--sage); }
.cmp .v i.inrange { background: var(--ochre); }
.cmp .v i.outofrange { background: var(--clay); }
.cmp .v.na { font-size: 11px; color: var(--faint); }
.cmp .r.open .chev { transform: rotate(90deg); }
.cmp .x { margin: 0 0 8px; }

/* care */
.next-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(243, 238, 228, .1); border: 1px solid rgba(243, 238, 228, .16); }
.next-row > div { flex: 1; min-width: 0; }
.next-row b { display: block; font-size: 15px; font-weight: 600; }
.next-row span { display: block; font-size: 12px; color: #C9CFC9; }
.next-row > span { height: 30px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(243, 238, 228, .14); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; flex: none; color: var(--on-dark); }
.msg { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--ring); }
.msg .av { width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--forest); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; }
.msg .txt { flex: 1; min-width: 0; }
.msg b { display: block; font-size: 14px; font-weight: 600; }
.msg .txt span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msg .t { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.msg .t span { font-size: 11px; color: var(--muted); }
.msg .t i { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.times .t { min-height: 46px; border-radius: var(--r-tile); background: var(--paper); border: 1px solid rgba(22, 32, 28, .1); font: 600 14px var(--sans); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.times .t small { font-size: 10px; font-weight: 500; color: var(--muted); }
.times .t.on { background: var(--peat); border-color: var(--peat); color: var(--on-dark); }
.times .t.on small { color: var(--on-dark-faint); }
.cov { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-dark-muted); }
.cov i { width: 8px; height: 8px; border-radius: 50%; background: var(--ochre-2); flex: none; }
.cov.ink { color: var(--ink); }
.cov.ink i { background: var(--forest); }
.act { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--ring); font-size: 15px; font-weight: 600; }
.act > span:nth-child(2) { flex: 1; }
.pt.ink i { background: var(--forest); color: var(--on-dark); }

/* a section head anywhere: the title at the left, its link at the right */
.ch { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
/* a person's photo in a tile, and the Care tab's provider card as a photo card */
.tile.photo { overflow: hidden; padding: 0; }
.tile.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.forest.photo { min-height: 220px; justify-content: flex-end; background-size: cover; background-position: center 20%; position: relative; overflow: hidden; }
.card.forest.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 32, 28, .05) 0%, rgba(22, 32, 28, .2) 45%, rgba(22, 32, 28, .9) 100%); }
.card.forest.photo > * { position: relative; }

/* gauge tick labels at their own positions; the lab's thresholds in bold */
.ticks.pos { position: relative; height: 16px; display: block; }
.ticks.pos .tick { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ticks.pos .tick:first-child { transform: none; }
.ticks.pos .tick:last-child { transform: translateX(-100%); }
.ticks.pos .tick.th { font-weight: 700; color: var(--ink); }
/* a text link under a main button; a button with its icon at the left */
.centre-link { margin: 4px 0 0; text-align: center; }
.btn.icon-left { flex-direction: row-reverse; justify-content: center; }

/* a tier pill inside a card head keeps its own text colour (.card .ch span would mute it) */
.card .pill.optimal, .ch .pill.optimal { background: var(--sage); color: var(--on-dark); font-size: 13px; }
.card .pill.inrange, .ch .pill.inrange { background: var(--ochre); color: var(--peat); font-size: 13px; }
.card .pill.outofrange, .ch .pill.outofrange { background: var(--clay); color: var(--on-dark); font-size: 13px; }

/* Dallin's walk, Oct 28 2026: room under the marker's last card; the consult card's who-and-how block; the cancel row in clay */
#s-marker .main { padding-bottom: calc(40px + var(--safe-bottom)); }
.card .who { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ring); }
.card .who .row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.card .who .row b { font-weight: 600; }
.tile.sm.round { width: 28px; height: 28px; border-radius: 50%; background: rgba(22, 32, 28, .06); color: var(--ink); }
.act.clay { color: var(--clay-text); }
/* ===========================================================================
   Phase 3, row 4: the protocol
   =========================================================================== */
.hero.plan { min-height: 262px; }
.hero.plan .chip-dark { align-self: flex-start; margin-bottom: 6px; }
.week { display: flex; gap: 4px; margin-top: 10px; }
.week .day { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; }
.week .day i { width: 30px; height: 30px; border-radius: 50%; display: block; background: rgba(243,238,228,.22); -webkit-mask: radial-gradient(circle, transparent 11.5px, #000 12px); mask: radial-gradient(circle, transparent 11.5px, #000 12px); }
.week .day i.full { background: conic-gradient(from 200deg, #E7B86A, #D9A24A, #B9633B, #E7B86A); }
.week .day i.half { background: conic-gradient(from 0deg, #E7B86A 0 50%, rgba(243,238,228,.22) 50% 100%); }
.week .day.now:after { content: ""; position: absolute; top: -4px; left: 50%; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; border: 1.5px solid rgba(231,184,106,.45); }
.week .day span { font-size: 11px; font-weight: 600; color: #B7BDB8; }
.week .day span.now { color: var(--cream); }
.strip { height: 6px; border-radius: 3px; background: rgba(243,238,228,.18); position: relative; overflow: hidden; }
.strip u { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--progress) no-repeat left center; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.grp { background: var(--paper); border: 1px solid rgba(22,32,28,.07); border-radius: 20px; padding: 4px 14px; }
.grp h2 { margin: 0; padding: 10px 2px 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grp .it { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(22,32,28,.07); color: inherit; text-decoration: none; }
.grp .it:first-of-type { border-top: 0; }
.grp .it img, .grp .it .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.grp .it img { object-fit: contain; background: rgba(22,32,28,.05); padding: 3px; box-sizing: border-box; }
.grp .it .ic { background: rgba(30,63,56,.12); color: var(--forest); display: flex; align-items: center; justify-content: center; }
.grp .it .tx { flex: 1; min-width: 0; }
.grp .it b { display: block; font-size: 15px; font-weight: 600; }
.grp .it span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.grp .it .s { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 72px; }
.grp .it .s em { font-style: normal; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.grp .it .s i { display: block; width: 72px; height: 4px; border-radius: 2px; background: rgba(22,32,28,.1); position: relative; overflow: hidden; }
.grp .it .s i u { position: absolute; right: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #E7B86A, #B9633B); border-radius: 2px; }
.grp .it .s i u.low { background: var(--clay); }
.grp .it.row em.num { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.dose { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(22,32,28,.07); }
.dose:first-of-type { border-top: 0; }
.dose .tx { flex: 1; min-width: 0; }
.dose .ck { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(22,32,28,.2); box-sizing: border-box; flex: none; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--cream); padding: 0; cursor: pointer; }
.dose .ck.on { background: var(--forest); border-color: var(--forest); }
.dose b { display: block; font-size: 15px; font-weight: 600; }
.dose span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.dose .when { font-size: 12px; color: var(--muted); flex: none; }
.dose .btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sum div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid rgba(22,32,28,.07); }
.sum b { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.sum span { font-size: 11px; color: var(--muted); }
.sec { display: flex; flex-direction: column; gap: 8px; }
.sec .h { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 2px 0; }
.sec .h span { font-size: 12px; color: var(--muted); }
.sec .it { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(22,32,28,.07); text-align: left; }
.sec .it .top { display: flex; align-items: center; gap: 12px; padding-right: 34px; }
.sec .it .top .tx { flex: 1; min-width: 0; }
.sec .it img { width: 52px; height: 52px; border-radius: 14px; flex: none; object-fit: contain; background: rgba(22,32,28,.05); padding: 3px; box-sizing: border-box; }
.sec .it .ic { width: 52px; height: 52px; border-radius: 14px; flex: none; background: rgba(30,63,56,.12); color: var(--forest); display: flex; align-items: center; justify-content: center; }
.sec .it b { display: block; font-size: 15px; font-weight: 600; }
.sec .it .dose { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; padding: 0; border: 0; }
.sec .it .pr { flex: none; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.sec .it .pr small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }
.sec .it .why { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.sec .it .x { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(22,32,28,.12); background: var(--bone); display: flex; align-items: center; justify-content: center; color: var(--muted); padding: 0; cursor: pointer; }
.sec .it.off { background: rgba(22,32,28,.035); border-style: dashed; }
.sec .it.off .top, .sec .it.off .q, .sec .it.off .why { opacity: .42; }
.sec .it.off img { filter: grayscale(1); }
.sec .it .back { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: #9E4F2B; }
.card.summary { gap: 10px; background: linear-gradient(180deg, rgba(127,160,140,.26), rgba(127,160,140,.1)); }
.card.summary .who { display: flex; align-items: center; gap: 10px; }
.card.summary .who b { font-size: 13px; }
.card.summary p { margin: 0; font-size: 15px; line-height: 1.5; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.foot.sticky { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(243,238,228,0), var(--bone) 30%); padding-top: 18px; }
.foot .tot { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 2px; font-size: 14px; color: var(--muted); }
.foot .tot b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.opts { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.opts .opt { text-align: left; height: 48px; border-radius: 14px; background: var(--paper); border: 1px solid rgba(22,32,28,.14); padding: 0 16px; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.opts .opt.on { border: 1.5px solid var(--ink); background: var(--bone); font-weight: 600; }
.card.totals { gap: 8px; }
.card.totals div { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.card.totals div em { font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.card.totals .big { border-top: 1px solid rgba(22,32,28,.08); padding-top: 10px; font-size: 15px; color: var(--ink); font-weight: 600; }
.card.totals .big b { font-size: 20px; }
.box { background: var(--paper); border: 1px solid rgba(22,32,28,.07); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.box.dk { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.box .hd { display: flex; align-items: center; gap: 12px; }
.box .hd b { display: block; font-size: 15px; font-weight: 600; }
.box .hd span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.box.dk .hd span { color: #C9CFC9; }
.box .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(30,63,56,.12); color: var(--forest); display: flex; align-items: center; justify-content: center; flex: none; }
.box.dk .ic { background: rgba(243,238,228,.12); color: var(--cream); }
.box .lbls { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 600; }
.box.dk .lbls { color: #C9CFC9; }
.box .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.box .meta span { color: var(--muted); }
.box.dk .meta span { color: #C9CFC9; }
.box .meta em { font-style: normal; font-weight: 600; }
.box .meta a { font-weight: 600; color: #8A5F1C; text-decoration: underline; text-underline-offset: 3px; }
.box.dk .meta a { color: #E7B86A; }
/* Items inside a shipment card (arrival is by item, Nov 1 2026): the name, then received on its day or the button to say so. */
.box .gis { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(22,32,28,.08); padding-top: 10px; }
.box.dk .gis { border-top-color: rgba(243,238,228,.16); }
.box .gi { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.box .gi > span { flex: 1; min-width: 0; font-weight: 600; }
.box .gi em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.box.dk .gi em { color: #C9CFC9; }
/* The arrival sheet: one row per item, a tick and the day. */
.arr-row { display: flex; align-items: flex-end; gap: 12px; }
.arr-row .fld { flex: 1; min-width: 0; }
.arr-ck { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 14px; font-weight: 600; flex: 1; min-width: 0; }
.arr-ck input { width: 22px; height: 22px; accent-color: var(--forest); flex: none; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts div span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts div b { font-size: 14px; }
.facts.sm { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.facts.sm span { font-size: 12px; color: var(--muted); }
.marks { display: flex; flex-wrap: wrap; gap: 6px; }
/* the history's stat tiles (inside .grid2 only: the bare .tile is the icon square used by
   every sheet and row, and this rule once bled into it and pushed those icons off centre) */
.grid2 .tile { background: var(--paper); border: 1px solid rgba(22,32,28,.07); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; width: auto; height: auto; align-items: stretch; justify-content: flex-start; }
.grid2 .tile strong { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.grid2 .tile strong small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 3px; }
.grid2 .tile em { font-style: normal; font-size: 11px; color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dh { font-size: 10px; font-weight: 600; color: var(--muted); text-align: center; letter-spacing: .06em; }
.cal .dc { aspect-ratio: 1; border: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: rgba(22,32,28,.05); color: var(--muted); padding: 0; cursor: pointer; }
.cal .dc i { font-style: normal; }
.cal .dc.full { background: var(--forest); color: var(--cream); }
.cal .dc.part { background: #D9A24A; color: var(--ink); }
.cal .dc.miss { background: rgba(185,99,59,.28); color: #9E4F2B; }
.cal .dc.pre, .cal .dc.fut { background: transparent; color: #B7BDB8; }
.cal .dc.open { outline: 2px solid var(--ink); }
.legend i.full { background: var(--forest); }
.legend i.part { background: #D9A24A; }
.legend i.miss { background: rgba(185,99,59,.5); }
.sw { width: 46px; height: 28px; border-radius: 999px; border: 0; background: rgba(22,32,28,.18); position: relative; flex: none; cursor: pointer; padding: 0; }
.sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transition: left .15s; }
.sw.on { background: var(--forest); }
.sw.on i { left: 21px; }
.bigval { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; min-width: 48px; text-align: center; }

/* Today on a protocol: the ochre day eyebrow, the big count beside the greeting */
.hero .eyebrow.ochre { color: var(--ochre); }
.greet-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.greet-row .h { flex: 1; min-width: 0; }
.greet-row .taken { text-align: right; flex: none; }
.greet-row .taken b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.greet-row .taken span { display: block; font-size: 12px; color: var(--on-dark-muted); margin-top: 3px; }
/* still to take: one flat list, the time at the right, done rows dimmed */
.grp.flat .dose { position: relative; padding-right: 72px; }
.grp.flat .dose::after { content: attr(data-when); position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--muted); }
.grp.flat .dose.done .tx { opacity: .55; }
.grp.flat .dose.done .ck.on { background: var(--sage); border-color: var(--sage); color: var(--on-dark); }
/* dark forest groups: prescriptions and daily habits on the Protocol tab */
.grp.dk { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.grp.dk h2 { color: #C9CFC9; }
.grp.dk .it { border-top-color: rgba(243, 238, 228, .12); color: var(--cream); }
.grp.dk .it span { color: #C9CFC9; }
.grp.dk .it .ic { background: rgba(243, 238, 228, .12); color: var(--cream); }
.grp.dk .it .s i { background: rgba(243, 238, 228, .18); }
/* a sheet's title line */
.sheet-head { padding: 4px 0 8px; }
.sheet-head b { font-size: 17px; font-weight: 600; }

/* the Protocol tab's day count, right of the title */
.daybig { text-align: right; flex: none; }
.daybig b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.daybig span { display: block; font-size: 12px; color: var(--on-dark-muted); margin-top: 3px; }
.grp.flat .dose .when { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--muted); }
/* The Protocol tab before the consult: four tinted cards saying what a protocol holds (WaitProtocol.dc.html). */
.pc { flex: none; width: 148px; padding: 12px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.pc .ic { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--on-dark); }
.pc .ic svg { width: 16px; height: 16px; }
.pc b { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.pc span { font-size: 11px; line-height: 1.35; color: var(--muted); }
.pc.supplements { background: rgba(30, 63, 56, .12); } .pc.supplements .ic { background: #1E3F38; }
.pc.prescriptions { background: rgba(185, 99, 59, .12); } .pc.prescriptions .ic { background: #B9633B; }
.pc.habits { background: rgba(217, 162, 74, .16); } .pc.habits .ic { background: #D9A24A; }
.pc.reminders { background: rgba(75, 100, 116, .13); } .pc.reminders .ic { background: #4B6474; }

/* Orders as the one list of payments (Dallin, Oct 28 2026): the amount above its status pill, at the right */
.ordr .top .amt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ordr .top .amt b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ordr .top .amt .pill.ok { background: var(--sage); color: var(--on-dark); }
.head .seg { margin-top: -4px; }

/* the order detail's payment and address blocks (2026-10-28) */
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv > span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv > b { font-size: 14px; font-weight: 500; white-space: pre-line; line-height: 1.4; }
/* ===========================================================================
   Phase 4, row 5: the shop
   =========================================================================== */
.shop-head { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.shop-head .topbar { display: flex; align-items: center; justify-content: space-between; }
.shop-head .icons { display: flex; gap: 8px; }
.rb.bone { background: var(--paper); border: 1px solid rgba(22,32,28,.08); color: var(--ink); position: relative; }
.rb .n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.seg.bone { background: rgba(22,32,28,.06); border: 0; }
.seg.bone button { color: var(--muted); }
.seg.bone button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(22,32,28,.08); }
.promo { position: relative; overflow: hidden; border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; color: var(--cream); background: radial-gradient(80% 90% at 100% 0%, rgba(217,162,74,.35), transparent 60%), linear-gradient(180deg, #1E3F38 0%, #16201C 100%); text-decoration: none; }
.promo .tile { background: rgba(243,238,228,.14); color: var(--cream); }
.promo b { display: block; font-size: 15px; font-weight: 600; color: var(--cream); }
.promo span { display: block; font-size: 13px; color: #D6DBD6; line-height: 1.4; margin-top: 3px; }
.promo .lnk { color: #E7B86A; font-size: 13px; margin-top: 4px; display: inline-block; }
.sortrow { display: flex; align-items: center; justify-content: space-between; }
.sortrow .cnt { font-size: 12px; color: var(--muted); }
.sort { height: 36px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid rgba(22,32,28,.12); font-size: 13px; font-weight: 600; color: var(--ink); font-family: inherit; appearance: none; -webkit-appearance: none; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.pd { display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid rgba(22,32,28,.07); border-radius: 20px; padding: 10px; position: relative; color: inherit; text-decoration: none; }
.pd.wide { grid-column: 1 / -1; }
.pd img, .pd .art { width: 100%; height: 150px; border-radius: 14px; object-fit: contain; padding: 10px; box-sizing: border-box; background: rgba(22,32,28,.05); display: block; }
.pd .art { display: flex; align-items: center; justify-content: center; color: var(--forest); background: rgba(30,63,56,.1); }
.pd b { font-size: 14px; font-weight: 600; line-height: 1.2; }
.pd .pr { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px 2px 4px; margin-top: auto; }
.pd .add { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; flex: none; }
.pd .pr span { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd .pr small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.pd .tagrow { position: absolute; top: 16px; left: 16px; display: flex; gap: 4px; }
.pd .tag, .ptag { height: 22px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; }
.pd .tag.soft, .ptag.soft { background: rgba(217,162,74,.9); color: var(--ink); }
.pd .tag.out, .ptag.out { background: rgba(185,99,59,.9); color: var(--cream); }
.pd .btn.sm { height: 36px; font-size: 13px; }
.phero { background: var(--paper); border-bottom: 1px solid rgba(22,32,28,.07); padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.phero .pic { width: 100%; height: 220px; border-radius: 20px; background: rgba(22,32,28,.05); display: flex; align-items: center; justify-content: center; color: var(--forest); overflow: hidden; }
.phero .pic img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; }
.tr { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tr span { display: inline-flex; align-items: center; gap: 4px; }
.opts .opt.buy { display: flex; align-items: center; gap: 12px; min-height: 66px; height: auto; padding: 12px 14px; border-radius: 16px; }
.opts .opt.buy.on { border: 2px solid var(--ink); padding: 11px 13px; }
.opts .opt.buy i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(22,32,28,.2); box-sizing: border-box; flex: none; display: flex; align-items: center; justify-content: center; color: var(--cream); }
.opts .opt.buy.on i { background: var(--ink); border-color: var(--ink); }
.opts .opt.buy .tx { flex: 1; min-width: 0; }
.opts .opt.buy b { display: block; font-size: 15px; font-weight: 600; }
.opts .opt.buy span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.opts .opt.buy .pr { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.opts .opt.buy .pr strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.opts .opt.buy .pr small { display: block; font-size: 11px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(22,32,28,.14); background: var(--paper); color: var(--ink); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty b { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.foot.sticky.bone { background: linear-gradient(180deg, rgba(243,238,228,0), var(--bone) 30%); }
.cline { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(22,32,28,.07); }
.cline:first-of-type { border-top: 0; }
.cline img, .cline .art { width: 56px; height: 56px; border-radius: 14px; flex: none; object-fit: contain; background: rgba(22,32,28,.05); padding: 4px; box-sizing: border-box; }
.cline .art { display: flex; align-items: center; justify-content: center; color: var(--forest); }
.cline .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cline .tx b { font-size: 15px; font-weight: 600; }
.cline .tx span { font-size: 12px; color: var(--muted); }
.cline .pr { text-align: right; flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.cline .pr small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.cline .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cline .auto { display: flex; align-items: center; gap: 8px; font-size: 13px; }
/* a checkbox with its label (the survey note's "can reply to me", the review's name switch) */
label.auto { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; cursor: pointer; }
label.auto input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--forest); }
.ship-bar { display: flex; flex-direction: column; gap: 6px; }
.ship-bar .lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.ship-bar .lbl b { color: var(--ink); }
.asrow { background: var(--paper); border: 1px solid rgba(22,32,28,.07); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.asrow .hd { display: flex; align-items: center; gap: 12px; }
.asrow .hd .tx { flex: 1; min-width: 0; }
.asrow .hd b { display: block; font-size: 15px; font-weight: 600; }
.asrow .hd span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.asrow .hd em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.asrow .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.asrow .acts .btn { height: 38px; padding: 0 14px; font-size: 13px; flex: 1; }
.asrow .meta { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }

/* shop cards: the tag pills sit in their row at the top-left, never thrown to the card's edge by the generic .tag rule */
.pd .tagrow .tag { position: static; }


/* The product page, as the ShopProduct board draws it (Dallin, Oct 28 2026) */
.pdp { position: relative; flex: none; min-height: 420px; box-sizing: border-box; padding: calc(58px + var(--safe-top)) 20px 0; color: var(--on-dark); background: radial-gradient(80% 60% at 0% 100%, rgba(185, 99, 59, .45), transparent 60%), radial-gradient(60% 50% at 100% 0%, rgba(217, 162, 74, .3), transparent 60%), linear-gradient(180deg, #1E3F38 0%, #16201C 100%); overflow: hidden; }
.pdp > :not(.grain) { position: relative; }
.pdp .topbar { display: flex; justify-content: space-between; align-items: center; }
.pdp .rb { background: rgba(243, 238, 228, .14); border-color: rgba(243, 238, 228, .18); color: var(--on-dark); }
.pdp .rb .n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pdp .art-slot { position: absolute; left: 20px; bottom: 34px; width: 140px; display: flex; align-items: flex-end; justify-content: center; }
.pdp .art-slot img { max-height: 226px; max-width: 126px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .45)); }
.pdp .art-slot .art { width: 110px; height: 110px; border-radius: 24px; background: rgba(243, 238, 228, .12); display: flex; align-items: center; justify-content: center; color: var(--on-dark); }
.pdp .tx { position: absolute; left: 166px; right: 20px; bottom: 34px; display: flex; flex-direction: column; gap: 6px; }
.pdp .tx .eyebrow { color: #E7B86A; }
.pdp .tx h1 { margin: 0; font-size: 26px; line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; }
.pdp .tx span:not(.eyebrow) { font-size: 14px; color: #D6DBD6; }
.trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 0 2px; color: inherit; text-decoration: none; }
.trust-row .tr { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); }
.trust-row .tr i { width: 16px; height: 16px; border-radius: 50%; background: rgba(30, 63, 56, .14); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.save { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(127, 160, 140, .28), rgba(127, 160, 140, .12)); border: 1px solid rgba(22, 32, 28, .06); font-size: 14px; line-height: 1.4; }
.save .amt { min-width: 32px; height: 32px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: var(--sage); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; font-size: 12px; font-weight: 700; }
.pdp-opts { margin: 0; }
.pdp-opts .opt.buy { height: auto; min-height: 58px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.pdp-opts .opt .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pdp-opts .opt .tx span { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.pdp-opts .opt .pr { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.pdp-opts .opt .pr strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp-opts .opt .pr small { font-size: 11px; color: var(--muted); }
.pdp-opts .opt i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(22, 32, 28, .2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pdp-opts .opt.on i { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.cb { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid rgba(22, 32, 28, .14); text-align: left; width: 100%; color: var(--ink); }
.cb i { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid rgba(22, 32, 28, .3); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cb.on i { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.cb .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cb .tx b { font-size: 14px; font-weight: 600; }
.cb .tx span { font-size: 12.5px; color: var(--muted); }
.pnote { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px 0; }
.pnote img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.pnote .face { width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--on-dark); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.facts-img { display: block; width: 100%; border-radius: 6px; border: 2px solid var(--ink); background: #fff; }
.pnote p { margin: 0; font-size: 14px; line-height: 1.45; }
.facts-panel { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.facts-panel h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; border-bottom: 6px solid var(--ink); padding-bottom: 4px; }
.facts-panel .sv { font-size: 13px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.facts-panel table { width: 100%; border-collapse: collapse; font-size: 13px; }
.facts-panel td { padding: 5px 0; border-bottom: 1px solid rgba(22, 32, 28, .2); vertical-align: top; }
.facts-panel td.hd { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--ink); }
.facts-panel td.r { text-align: right; white-space: nowrap; padding-left: 10px; }
.facts-panel .ft { font-size: 11px; color: var(--muted); line-height: 1.45; }
.main .card h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.main .card > p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
/* How to take it: the board's numbered steps. Not ".steps", which is the progress bar. */
.card.howto { gap: 2px; }
.card.howto h2 { padding-bottom: 6px; }
.howto .step { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--ring); }
.howto .step:nth-of-type(1) { border-top: 0; }
.card.howto .step i { font-style: normal; font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1; color: #8A5F1C; width: 22px; height: auto; flex: none; background: none; border-radius: 0; display: block; margin: 0; }
.howto .step p { margin: 0; font-size: 14px; line-height: 1.45; }
/* Why trust it: the board's four seals (assets/badges). */
.card .badges { display: flex; justify-content: space-between; gap: 6px; }
.card .badges div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 9.5px; font-weight: 600; color: var(--muted); }
.card .badges span { font-size: 9.5px; line-height: 1.2; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.badges img { width: 38px; height: 39px; display: block; }
.card .trust-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
/* Common questions: a row opens on tap. */
.card.faqs { gap: 0; }
.card.faqs h2 { padding-bottom: 4px; }
.faq { border-top: 1px solid var(--ring); }
.faq:first-of-type { border-top: 0; }
.faq button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.faq button svg { flex: none; color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.faq.open button svg { transform: rotate(-90deg); }
.faq .a { display: none; margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.faq.open .a { display: block; }
.foot .ship-note { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* The cart (Cart.dc.html): the forest shipping box, the lines with a chip and a quantity pill, plain totals. */
.shipbox { background: var(--forest); color: var(--on-dark); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.shipbox .lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.shipbox .lbl b { font-weight: 600; }
.shipbox .lbl span { color: #B7BDB8; }
.shipbox .bar { height: 5px; border-radius: 3px; background: rgba(243, 238, 228, .18); overflow: hidden; }
.shipbox .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #E7B86A, #B9633B); }
.card.lines { padding: 2px 16px; gap: 0; }
.cl { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ring); }
.cl:first-child { border-top: 0; }
.cl img, .cl .art { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: rgba(22, 32, 28, .05); padding: 4px; box-sizing: border-box; flex: none; }
.cl .art { display: flex; align-items: center; justify-content: center; color: var(--forest); }
.cl .tx { flex: 1; min-width: 0; }
.cl .tx b { display: block; font-size: 15px; font-weight: 600; }
.cl .tx span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cl .ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cl .chip { height: 26px; padding: 0 9px; font-size: 11px; gap: 5px; background: var(--cream); border: 1px solid rgba(22, 32, 28, .1); color: var(--ink); cursor: pointer; }
.cl .chip.on { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.cl .ctl .qty { display: inline-flex; align-items: center; height: 26px; border-radius: 999px; border: 1px solid rgba(22, 32, 28, .12); background: var(--paper); gap: 0; }
.cl .qty button { width: 28px; height: 26px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cl .qty span { display: inline-block; margin: 0; color: var(--ink); min-width: 16px; text-align: center; font-size: 12px; font-weight: 600; }
.cl .pr { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; text-align: right; }
.cl .pr small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.tots { padding: 2px 4px 0; display: flex; flex-direction: column; }
.tot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); padding: 4px 0; font-variant-numeric: tabular-nums; }
.tot .ok { color: var(--forest); font-weight: 600; }
.tot.big { color: var(--ink); font-size: 15px; font-weight: 600; padding-top: 6px; }
/* The order before paying (ProtocolPay.dc.html's rows): a 40px thumbnail, the address and the card with a Change. */
.ln img.thumb { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; background: rgba(22, 32, 28, .05); padding: 3px; box-sizing: border-box; flex: none; }
.ln .pr { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; color: var(--ink); }
.ln span.chip { display: inline-flex; align-items: center; margin: 0; height: 26px; padding: 0 9px; font-size: 11px; line-height: 1; flex: none; }
/* Three address fields side by side without the last one running off the sheet. */
.addr-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 8px; min-width: 0; }
.addr-grid > .fld { min-width: 0; }
.addr-grid .fld .in { padding: 0 12px; min-width: 0; }
.ln .chip { margin: 0; height: 26px; padding: 0 9px; font-size: 11px; }
.card.steps { gap: 2px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--ring); }
.step:nth-of-type(1) { border-top: 0; }
.step i { width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: var(--on-dark); font-style: normal; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.step p { margin: 0; font-size: 14px; line-height: 1.45; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.badges div { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--forest); }
/* ===========================================================================
   Phase 5, rows 6 and 8: behind the avatar, in Care
   =========================================================================== */
.acct-hero { display: flex; align-items: center; gap: 14px; }
.acct-hero .avatar.lg { width: 56px; height: 56px; font-size: 18px; border-radius: 50%; background: var(--tint); color: var(--forest); font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.acct-hero b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.acct-hero span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.list { background: var(--paper); border: 1px solid rgba(22,32,28,.07); border-radius: 20px; padding: 2px 4px; }
.list .ln { padding: 12px 10px; border-top: 1px solid rgba(22,32,28,.07); display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.list .ln:first-of-type { border-top: 0; }
.list .ln .txt { flex: 1; min-width: 0; }
.list .ln b { display: block; font-size: 15px; font-weight: 600; }
.list .ln span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.list .ln .tile.sm { width: 36px; height: 36px; border-radius: 10px; }
.list .ln em { font-style: normal; font-size: 13px; color: var(--muted); flex: none; }
.wear { background: var(--paper); border: 1px solid rgba(22,32,28,.07); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.wear .hd { display: flex; align-items: center; gap: 12px; }
.wear .hd .tx { flex: 1; min-width: 0; }
.wear .hd b { display: block; font-size: 15px; font-weight: 600; }
.wear .hd span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.wear .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--forest); color: var(--cream); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex: none; }
.wear .mark.soft { background: rgba(30,63,56,.12); color: var(--forest); }
.wear .nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wear .nums div { display: flex; flex-direction: column; gap: 2px; }
.wear .nums strong { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.wear .nums strong small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.wear .nums em { font-style: normal; font-size: 11px; color: var(--muted); }
.wear .acts { display: flex; gap: 8px; }
.wear .acts .btn { height: 40px; font-size: 13px; flex: 1; }
.stage { display: flex; flex-direction: column; gap: 4px; }
.stage .bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: rgba(22,32,28,.08); }
.stage .bar i { display: block; height: 100%; }
.stage .bar i.deep { background: var(--forest); }
.stage .bar i.rem { background: #7FA08C; }
.stage .bar i.light { background: #D9A24A; }
.stage .bar i.awake { background: rgba(185,99,59,.5); }
.stage .lbls { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 48px; }
.spark i { flex: 1; background: rgba(30,63,56,.25); border-radius: 2px 2px 0 0; min-height: 2px; }
.spark i.now { background: var(--forest); }
.thread { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(22,32,28,.07); font-size: 15px; line-height: 1.45; align-self: flex-start; }
.bubble.me { align-self: flex-end; background: var(--forest); color: var(--cream); border-color: var(--forest); }
.bubble .who { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.bubble.me .who { color: #C9E0CF; }
.bubble .when { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bubble.me .when { color: #C9E0CF; }
/* press and hold a message: react, edit your own, copy (Nov 2 2026) */
.thread-hint { text-align: center; font-size: 11.5px; color: var(--faint); margin: 0 0 10px; }
.thread .mwrap { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; min-width: 0; align-self: flex-start; }
.thread .mwrap.me { align-self: flex-end; align-items: flex-end; }
.thread .mwrap .bubble { max-width: 100%; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: transform 120ms ease; }
.thread .mwrap .bubble.pressing { transform: scale(.97); }
.bubble .edited { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bubble.me .edited { color: #C9E0CF; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; padding: 0 6px; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border-radius: var(--r-pill); border: 1px solid var(--ring-strong); background: var(--paper); font-size: 15px; line-height: 1; color: var(--ink); }
.react.mine { border-color: var(--forest); background: var(--tint); }
.react .n { font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.react-row { display: flex; justify-content: space-between; gap: 6px; padding: 4px 0 14px; border-bottom: 1px solid var(--ring); margin-bottom: 4px; }
.react-row button { width: 48px; height: 48px; border-radius: 50%; background: var(--tint-ink); font-size: 24px; line-height: 1; }
.react-row button.on { background: var(--tint); box-shadow: inset 0 0 0 2px var(--forest); }
.sheet-acts { display: flex; flex-direction: column; }
.sheet-act { display: block; width: 100%; text-align: left; padding: 15px 6px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--ring); }
.sheet-act:last-child { border-bottom: 0; }
.sheet-act.quiet { color: var(--muted); font-weight: 500; }
.edit-msg { display: flex; flex-direction: column; gap: 10px; }
.edit-msg textarea { width: 100%; min-height: 120px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--ring-strong); font: 400 16px var(--sans); line-height: 1.45; color: var(--ink); outline: none; resize: vertical; }
.daysep { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.reply { display: flex; gap: 8px; align-items: flex-end; }
.reply textarea { flex: 1; min-height: 48px; max-height: 140px; border-radius: 16px; border: 1px solid rgba(22,32,28,.14); background: var(--paper); padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); resize: none; }
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px dashed rgba(22,32,28,.25); }
.codebox b { font-size: 22px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.codebox small { display: block; font-size: 12px; color: var(--muted); word-break: break-all; }
.notif { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(22,32,28,.07); color: inherit; text-decoration: none; }
.notif:first-of-type { border-top: 0; }
.notif i.dot { width: 8px; height: 8px; border-radius: 50%; background: #D9A24A; flex: none; margin-top: 7px; }
.notif i.dot.read { background: transparent; }
.notif .tx { flex: 1; min-width: 0; }
.notif b { display: block; font-size: 15px; font-weight: 600; }
.notif span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.notif em { font-style: normal; font-size: 11px; color: var(--muted); flex: none; }
.bkcodes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bkcodes span { padding: 8px 10px; border-radius: 10px; background: var(--paper); border: 1px solid rgba(22,32,28,.1); font-variant-numeric: tabular-nums; letter-spacing: .06em; text-align: center; font-weight: 600; }

/* the New message composer: room between its two fields and the button (Dallin, Oct 28 2026) */
.sheet form[data-form="msgNew"] { display: flex; flex-direction: column; gap: 14px; }
.sheet form[data-form="msgNew"] .btn { margin-top: 4px; }

/* Messages with nothing yet (MessagesEmpty board, Dallin, Oct 28 2026) */
.head.dusk { background: radial-gradient(90% 60% at 100% 0%, rgba(217, 162, 74, .35), transparent 60%), linear-gradient(180deg, #1E3F38 0%, #16201C 100%); color: var(--on-dark); padding-bottom: 16px; }
.head.dusk .ttl b { color: var(--on-dark); }
.head.dusk .ttl small { color: #C9CFC9; }
.head.dusk .rb { background: rgba(243, 238, 228, .14); border-color: rgba(243, 238, 228, .18); color: var(--on-dark); }
.card.team { border-radius: 24px; padding: 28px 20px 20px; align-items: center; text-align: center; gap: 16px; }
.card.team .copy { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.card.team .copy .sub { max-width: 290px; }
.card.team .btn { width: 100%; }
.faces-row { display: flex; align-items: center; justify-content: center; }
.teamav { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--paper); box-shadow: 0 2px 8px rgba(22, 32, 28, .12); position: relative; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; background: var(--forest); color: var(--on-dark); flex: none; }
.teamav + .teamav { margin-left: -14px; }
.topics { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.topic { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 16px; background: var(--cream); border: 1px solid rgba(22, 32, 28, .07); font-size: 14px; font-weight: 600; color: var(--ink); }
.topic > span:nth-child(2) { flex: 1; }
.topic .ic { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--on-dark); flex: none; }
.topic .ic.forest { background: var(--forest); } .topic .ic.clay { background: var(--clay); } .topic .ic.ochre { background: var(--ochre); }
.topic .chev { color: var(--muted); flex: none; }

/* message attachments and emojis (Dallin, Oct 28 2026) */
.msg-tools { display: flex; align-items: center; gap: 8px; }
.msg-tools .rb.tool { width: 36px; height: 36px; background: var(--tint-ink); border: 0; color: var(--ink); font-size: 18px; }
.msg-tools .hint { font-size: 12px; color: var(--muted); }
.msg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.msg-chips:empty { display: none; }
.msg-chips .chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--ring); font-size: 12.5px; font-weight: 600; max-width: 100%; }
.msg-chips .chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.msg-chips .chip button { display: flex; color: var(--muted); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 8px; border-radius: 16px; background: var(--paper); border: 1px solid var(--ring); }
.emoji-grid[hidden] { display: none; }
.emoji-grid button { font-size: 22px; height: 36px; border-radius: 10px; }
.emoji-grid button:active { background: var(--tint-ink); }
.bubble .att-img { display: block; max-width: 220px; max-height: 220px; border-radius: 12px; margin-top: 6px; object-fit: cover; }
.bubble .att { display: inline-flex; align-items: center; gap: 4px; }
.reply { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.reply .line { display: flex; gap: 8px; align-items: flex-end; }
.reply textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 22px; background: var(--paper); border: 1px solid var(--ring-strong); font: 400 15px var(--sans); color: var(--ink); outline: none; resize: none; }

/* Wearables (Wearables.dc.html): the lead device as a forest card, the others as rows, the rest coming soon. */
.wdk { background: var(--forest); color: var(--on-dark); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.wdk .hd { display: flex; align-items: center; gap: 12px; }
.wdk .hd .tx { flex: 1; min-width: 0; }
.wdk .hd b { display: block; font-size: 15px; font-weight: 600; }
.wdk .hd span:not(.won) { display: block; font-size: 12px; color: #C9CFC9; margin-top: 2px; }
.wdk .ic, .wcon .ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(243, 238, 228, .12); display: flex; align-items: center; justify-content: center; flex: none; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.won { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(127, 160, 140, .25); color: var(--on-dark); font-size: 11px; font-weight: 600; flex: none; white-space: nowrap; }
.won i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.won.lt { background: rgba(30, 63, 56, .12); color: var(--forest); }
.won.lt i { background: #3F6B52; }
.won.lt-on { background: none; padding: 0; color: #C9CFC9; font-size: 12px; }
.wdk .sts { display: flex; gap: 8px; }
.wst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(243, 238, 228, .1); font-variant-numeric: tabular-nums; }
.wst small { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #C9CFC9; }
.wst strong { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.wst strong small { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: inherit; margin-left: 2px; }
.wst em { font-style: normal; font-size: 11px; color: #C9CFC9; min-height: 13px; }
.wdk .btn.light { height: 48px; font-size: 15px; }
.wdk .end { display: flex; justify-content: flex-end; font-size: 12px; }
.wdk .end a { color: var(--on-dark); }
.wcon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border: 1px solid rgba(22, 32, 28, .07); border-radius: 16px; }
.wcon .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(30, 63, 56, .12); color: var(--forest); font-size: 11px; }
.wcon .tx { flex: 1; min-width: 0; }
.wcon b { display: block; font-size: 14px; font-weight: 600; }
.wcon span:not(.won):not(.wsoon) { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.wcon .btn.sm { height: 36px; padding: 0 14px; font-size: 13px; flex: none; }
.wcon.off { opacity: .75; }
.wsoon { flex: none; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(217, 162, 74, .22); color: #8A5F1C; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
/* Wearable stats (WearableStats.dc.html): the seg in the hero, the dark sleep card, the trend, the tiles, the steps. */
.hero .copy .seg { margin-top: 12px; background: rgba(243, 238, 228, .12); border: 1px solid rgba(243, 238, 228, .16); }
.hero .copy .seg button { color: #C9CFC9; }
.hero .copy .seg button.on { background: var(--cream); color: var(--ink); }
.card.dk { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.card.dk .lab { color: #C9CFC9; }
.card.dk .big { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 6px; }
.card.dk .rt { text-align: right; font-size: 13px; color: #C9CFC9; line-height: 1.4; }
.card.dk .rt b { color: var(--on-dark); font-weight: 600; }
.card.dk .kvs { display: flex; flex-direction: column; margin-top: 4px; }
.card.dk .kv { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 7px 0; border-top: 1px solid rgba(243, 238, 228, .12); }
.card.dk .kv > span { color: #C9CFC9; }
.card.dk .kv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.card.dk .kv .rt { display: flex; align-items: center; }
.card.dk .kv .bar { width: 90px; height: 4px; border-radius: 2px; background: rgba(243, 238, 228, .16); position: relative; overflow: hidden; margin-left: 10px; display: block; }
.card.dk .kv .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: #E7B86A; }
.card.sage { background: linear-gradient(180deg, rgba(127, 160, 140, .26), rgba(127, 160, 140, .1)); border-color: rgba(22, 32, 28, .06); }
.card.sage .avg { font-size: 13px; font-weight: 600; color: #3F6B52; font-variant-numeric: tabular-nums; }
.wbars { display: flex; align-items: flex-end; gap: 3px; height: 56px; margin-top: 4px; }
.wbars i { flex: 1; min-height: 3px; border-radius: 2px 2px 0 0; background: rgba(30, 63, 56, .25); }
.wbars i.now { background: var(--forest); }
.card.dk .wbars i { background: rgba(243, 238, 228, .25); }
.card.dk .wbars i.now { background: #E7B86A; }
.days { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; color: #C9CFC9; letter-spacing: .04em; }
.days.lt { color: var(--muted); }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wtile { background: var(--paper); border: 1px solid rgba(22, 32, 28, .07); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; }
.wtile .lab { font-size: 10px; }
.wtile strong { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.wtile strong small { font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 3px; color: var(--muted); }
.wtile em { font-style: normal; font-size: 11px; color: var(--muted); }
.wtile em.up { color: #3F6B52; font-weight: 600; }
.wtile em.dn { color: #9E4F2B; font-weight: 600; }
.card .mid { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.card .mid span { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.card .rt.lt { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.4; }
.card .rt.lt b { color: var(--ink); }
/* ===========================================================================
   Phase 7, row 9: the day after a consult
   =========================================================================== */
.card.survey { gap: 10px; }
.card.survey .ch b { display: block; font-size: 16px; font-weight: 600; }
.card.survey .ch span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.faces .face { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; border: 1px solid rgba(22,32,28,.12); background: var(--bone); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.faces .face:active { background: rgba(22,32,28,.06); }
.stars { display: flex; gap: 6px; justify-content: center; padding: 6px 0; }
.stars .star { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: rgba(22,32,28,.2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.stars .star.on { color: #D9A24A; }
.stars .star.on svg { fill: #D9A24A; }

/* the post-consult survey as a sheet over Today */
.survey-sheet { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 8px; }
.survey-sheet .ch .txt b { display: block; font-size: 16px; font-weight: 600; }
.survey-sheet .ch .txt span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
/* a tall bordered textarea, a dark check tile, text links under the main button */
.fld .in textarea { min-height: 120px; }
label.auto input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid rgba(22, 32, 28, .3); background: var(--paper); margin: 0; flex: none; }
label.auto input[type="checkbox"]:checked { border-color: var(--peat); background: var(--peat) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3EEE4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.centre-link { margin: 4px 0 0; text-align: center; }
/* ===========================================================================
   Phase 8: Learn and marker suggestions
   =========================================================================== */
.lgrid-1 { display: flex; flex-direction: column; gap: 10px; }
.lrn { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid rgba(22,32,28,.07); border-radius: 20px; padding: 10px; color: inherit; text-decoration: none; }
.lrn img, .lrn .art { width: 72px; height: 72px; border-radius: 14px; flex: none; object-fit: cover; background: rgba(30,63,56,.1); color: var(--forest); display: flex; align-items: center; justify-content: center; }
.lrn .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lrn .tx b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.lrn .tx span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.lrn .tx em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lrn .ptag { align-self: flex-start; }
.card.prose p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.card.prose p:last-child { margin-bottom: 0; }
.card.prose h2 { margin: 6px 0 2px; }
.card.prose ul { margin: 0 0 10px; padding-left: 18px; font-size: 15px; line-height: 1.55; }
.tag-k { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex: none; }

/* Learn (Learn.dc.html): the search pill, the chip row, the Watch row of video cards, sections of rows. */
.lsearch { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 999px; background: var(--paper); border: 1px solid rgba(22, 32, 28, .1); color: var(--muted); }
.lsearch input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.lsearch input::placeholder { color: var(--faint); }
.lchips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.lchips::-webkit-scrollbar { display: none; }
.lchips .chip { flex: none; height: 34px; font-size: 12px; white-space: nowrap; }
.lwatch { display: flex; flex-direction: column; gap: 8px; }
.lvcs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.lvcs::-webkit-scrollbar { display: none; }
.lvc { flex: none; width: 150px; height: 240px; border-radius: 18px; overflow: hidden; position: relative; background: var(--forest) center / cover no-repeat; color: var(--on-dark); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; box-sizing: border-box; text-decoration: none; }
.lvc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 32, 28, 0) 40%, rgba(22, 32, 28, .85) 100%); }
.lvc b { position: relative; font-size: 14px; font-weight: 600; line-height: 1.2; }
.lvc span { position: relative; font-size: 11px; color: #D6DBD6; margin-top: 3px; }
.lvc .pl { position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(243, 238, 228, .9); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.lsec { background: var(--paper); border: 1px solid rgba(22, 32, 28, .07); border-radius: 20px; padding: 14px 16px 4px; display: flex; flex-direction: column; }
.lsec > .lab { margin-bottom: 6px; }
.lar { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(22, 32, 28, .07); color: inherit; text-decoration: none; }
.lsec .lar:first-of-type { border-top: 0; }
.lar .th { width: 64px; height: 64px; border-radius: 14px; flex: none; background: rgba(22, 32, 28, .05) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--forest); }
.lar .tx { flex: 1; min-width: 0; }
.lar b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.lar span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.lar > svg { flex: none; color: var(--muted); }
/* One article (LearnArticle.dc.html): the cover hero fading into the page, the facts, why it is in the protocol, the video, the body. */
.lhero { position: relative; flex: none; min-height: 380px; box-sizing: border-box; padding: calc(58px + var(--safe-top)) 20px 0; background: var(--forest) center / cover no-repeat; display: flex; flex-direction: column; justify-content: space-between; }
.lhero.plain { background: linear-gradient(180deg, #1E3F38 0%, #16201C 55%, var(--cream) 100%); }
.lhero .fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 32, 28, .3) 0%, rgba(22, 32, 28, 0) 25%, rgba(243, 238, 228, 0) 50%, rgba(243, 238, 228, .9) 80%, var(--cream) 100%); }
.lhero .topbar, .lhero .copy { position: relative; }
.lhero .topbar { display: flex; justify-content: space-between; align-items: center; }
.lhero .rb.glass { background: rgba(22, 32, 28, .38); backdrop-filter: blur(8px); border-color: rgba(243, 238, 228, .22); color: var(--on-dark); }
.lhero .mine { height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(127, 160, 140, .9); font-size: 12px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.lhero .copy { display: flex; flex-direction: column; gap: 8px; padding-bottom: 2px; }
.lhero .copy .lab { color: #8A5F1C; }
.lhero .copy .h { font-size: 34px; }
.lhero .copy .h .it { font-family: var(--serif); font-style: italic; font-weight: 400; }
.lfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lfacts .fact { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(22, 32, 28, .05); min-width: 0; }
.lfacts .fact b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.lfacts .fact b.warn { color: #9E4F2B; }
.lfacts .fact span { font-size: 12px; color: var(--muted); }
.lwhy { display: flex; gap: 12px; align-items: flex-start; border-radius: 20px; padding: 16px; background: linear-gradient(180deg, rgba(127, 160, 140, .26), rgba(127, 160, 140, .1)); border: 1px solid rgba(22, 32, 28, .06); }
.lwhy img, .lwhy .face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.lwhy .face { background: var(--forest); color: var(--on-dark); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lwhy .tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lwhy p { margin: 0; font-size: 14px; line-height: 1.5; }
.lwhy .chips { margin-top: 2px; }
.lchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(251, 248, 242, .8); font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.lchip i.warn { background: var(--clay); }
.lvideo { position: relative; border-radius: 20px; overflow: hidden; height: 200px; display: flex; align-items: center; justify-content: center; color: var(--on-dark); background: var(--forest) center / cover no-repeat; text-decoration: none; }
.lvideo::before { content: ""; position: absolute; inset: 0; background: rgba(22, 32, 28, .45); }
.lvideo .pl { position: relative; width: 56px; height: 56px; border-radius: 50%; background: rgba(243, 238, 228, .92); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.lvideo .cap { position: absolute; left: 14px; bottom: 12px; font-size: 13px; font-weight: 600; }
.lbody { display: flex; flex-direction: column; gap: 16px; }
.lbody h2 { margin: 0 0 -10px; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.lbody p, .lbody ul { margin: 0; font-size: 15px; line-height: 1.55; }
.lbody ul { padding-left: 20px; }
.lfoot { padding-bottom: 20px; }

/* The protocol review (ProtocolReady.dc.html): rows fill the card, the provider's face beside "Built by" and the summary. */
.sec .it { align-items: stretch; }
.pface { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.pface.ini { background: var(--forest); color: var(--on-dark); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.hero .by { display: flex; align-items: center; gap: 10px; }
.hero .by .pface { width: 32px; height: 32px; }
.hero .by .pface.ini { background: rgba(243, 238, 228, .14); color: var(--on-dark); font-size: 11px; }
.hero .top button.chip-dark { border: 1px solid rgba(243, 238, 228, .2); cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; height: 36px; padding: 0 12px; }
.card.summary { flex-direction: row; align-items: flex-start; gap: 12px; text-align: left; padding: 16px; }
.card.summary .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.card.summary p { font-size: 14px; }
.card.summary .pface.ini { background: var(--forest); }
/* One order (OrderDetail.dc.html): the items with their status lines, the paid row, where it ships. */
.card.odl { padding: 4px 16px; gap: 0; }
.od-it { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--ring); }
.od-it:first-child { border-top: 0; }
.od-it .top { display: flex; align-items: center; gap: 12px; }
.od-it .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(30, 63, 56, .12); color: var(--forest); display: flex; align-items: center; justify-content: center; flex: none; }
.od-it .tx { flex: 1; min-width: 0; }
.od-it b { display: block; font-size: 15px; font-weight: 600; }
.od-it .tx span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.od-it .pr { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.od-it .st { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.od-it .st i { width: 8px; height: 8px; border-radius: 50%; background: rgba(22, 32, 28, .25); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.od-it .st.ship { color: var(--ink); }
.od-it .st.ship i { background: var(--ochre); }
.od-it .st.done { color: #3F6B52; }
.od-it .st.done i { width: 18px; height: 18px; background: var(--sage); color: var(--ink); }
.od-it .trk { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.od-it .trk a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.od-it .rec { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600; border: 0; cursor: pointer; }
.od-it .rec.lt { background: transparent; color: var(--muted); border: 1px solid rgba(22, 32, 28, .14); }
.od-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--paper); border: 1px solid rgba(22, 32, 28, .07); border-radius: 16px; font-size: 13px; }
.od-row > span { flex: 1; min-width: 0; }

/* The post-consult survey sheet (PostVisitSurvey.dc.html): the provider's photo, three face tiles. */
.survey-sheet .ch { display: flex; align-items: center; gap: 12px; }
.survey-sheet .ch .pface { width: 44px; height: 44px; }
.survey-sheet .ch .txt { flex: 1; min-width: 0; }
.survey-sheet .ch .txt b { font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; }
.survey-sheet .faces { display: flex; gap: 10px; }
.survey-sheet .faces .face { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(22, 32, 28, .1); color: var(--muted); cursor: pointer; font: inherit; }
.survey-sheet .faces .face svg { width: 44px; height: 44px; stroke-width: 1.6; }
.survey-sheet .faces .face span { font-size: 12px; font-weight: 600; color: var(--muted); }
.survey-sheet > .hint { text-align: center; }
/* The protocol order (ProtocolPay.dc.html): one card of rows with the thumbnail, the dose, the price and an X. */
.card.pay { padding: 2px 16px 6px; gap: 0; }
.card.pay .hd { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 0 2px; }
.card.pay .ln.first { border-top: 0; }
.card.pay .ln .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(22, 32, 28, .06); color: var(--forest); display: flex; align-items: center; justify-content: center; flex: none; }
.card.pay .ln .x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(22, 32, 28, .12); background: var(--paper); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; padding: 0; cursor: pointer; }
.card.pay .ln.off { opacity: .5; }
.card.pay .ln.off img { filter: grayscale(1); }
.card.pay .ln .ch { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; flex: none; color: #9E4F2B; }

/* The paid confirmation (ProtocolPaid.dc.html): the check mark over the title, two bottles side by side on a row. */
.hero .okmark { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.od-it .pics { display: flex; flex: none; }
.od-it .pics img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: rgba(22, 32, 28, .05); padding: 3px; box-sizing: border-box; }
.od-it .pics img + img { margin-left: -14px; }

/* ---- Reminders (DoseReminders board): one card per item, the open one bordered in ink ---- */
.card.rem { gap: 12px; padding: 14px 16px; }
.card.rem.open { border: 1.5px solid var(--ink); }
.rem .hd { display: flex; align-items: center; gap: 12px; }
.rem .hd img, .rem .hd .ic { width: 40px; height: 40px; border-radius: 12px; flex: none; object-fit: contain; background: rgba(22, 32, 28, .05); padding: 3px; box-sizing: border-box; }
.rem .hd .ic { background: rgba(30, 63, 56, .12); color: var(--forest); display: flex; align-items: center; justify-content: center; }
.rem .hd .tx { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.rem .hd .tx b { display: block; font-size: 15px; font-weight: 600; }
.rem .hd .tx span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.rem .tm { height: 36px; padding: 0 12px; border-radius: var(--r-pill); background: var(--bone); border: 1px solid rgba(22, 32, 28, .12); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer; }
.rem .tm svg { transform: rotate(90deg); color: var(--muted); }
.rem .lab { margin-top: 2px; }
.rem .dow { display: flex; gap: 6px; }
.rem .dow button { flex: 1; height: 34px; border-radius: 10px; border: 1px solid rgba(22, 32, 28, .14); font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bone); cursor: pointer; }
.rem .dow button.on { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.rem .kvs { display: flex; flex-direction: column; }
.rem .kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border: 0; border-top: 1px solid rgba(22, 32, 28, .07); background: none; width: 100%; text-align: left; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.rem .kv span { color: var(--muted); font-size: 13px; flex: none; }
.rem .kv b { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-align: right; min-width: 0; }
.rem .kv b svg { color: var(--muted); flex: none; }
.rem .reads { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
/* the sheets: a time per part of the day; days and weeks on steppers */
.tslot { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ring); }
.tslot:first-child { border-top: 0; }
.tslot b { flex: 1; font-size: 15px; font-weight: 600; }
.tslot input[type="time"] { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ring-strong); background: var(--bone); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stp { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ring); }
.stp:first-child { border-top: 0; }
.stp b { font-size: 15px; font-weight: 600; }
.stp .ctl { display: flex; align-items: center; gap: 10px; }
.stp .ctl button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ring-strong); background: var(--paper); color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.stp .ctl strong { min-width: 28px; text-align: center; font-size: 17px; font-variant-numeric: tabular-nums; }
/* a card row's in-card link (HomeActive board's "Change"): ink, not the muted sub line */
.card.row .lnk { color: var(--ink); font-size: 13px; flex: none; }

/* ---- the Protocol list: ochre titles on the green groups, the item as the link, a button where the countdown would be ---- */
.grp.dk h2 { color: var(--ochre); }
.grp .it .go { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.grp .it .s .btn { height: 34px; padding: 0 12px; font-size: 13px; width: auto; }
.grp.dk .it .s i { background: rgba(243, 238, 228, .16); }

/* the on-its-way card, green so it stands out (Dallin, Oct 29 2026) */
.card.forest.row .tile, .card.forest.row span.tile { background: rgba(243, 238, 228, .14); color: var(--cream); }
.card.forest.row span { color: #C9CFC9; }
.card.forest.row .lnk { color: #E7B86A; }

/* the retest count sits in its tile; today's ring is an outline on the circle, never a drifting overlay */
.card.row .tile.num, .card.row span.tile.num { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.week .day b { display: block; width: 30px; height: 30px; border-radius: 50%; }
.week .day.now b { outline: 1.5px solid rgba(231, 184, 106, .45); outline-offset: 4px; }
.week .day.now:after { display: none; }
.dose.off { opacity: .6; }

/* ---- one item on a live protocol (Item board) ---- */
.ihero .ih { display: flex; gap: 16px; align-items: flex-end; position: relative; }
.ihero .ih .bottle { width: 104px; height: 140px; object-fit: contain; flex: none; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .4)); }
.ihero .ih > .ic { width: 72px; height: 72px; border-radius: 20px; background: rgba(243, 238, 228, .12); color: var(--cream); display: flex; align-items: center; justify-content: center; flex: none; }
.ihero .ih .col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ihero .ih .col .eyebrow { color: #E7B86A; }
.ihero .ih .col .sub { margin: 0; color: #D6DBD6; }
.ihero .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ihero .badge { height: 28px; padding: 0 10px 0 6px; gap: 6px; font-size: 12px; background: rgba(243, 238, 228, .12); border-color: rgba(243, 238, 228, .18); color: var(--cream); }
.ihero .badge i { width: 16px; height: 16px; background: #E7B86A; color: var(--ink); }
.card.iwhy { flex-direction: row; gap: 12px; align-items: flex-start; }
.card.iwhy .pface { width: 36px; height: 36px; flex: none; }
.card.iwhy .col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card.iwhy .q { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.35; }
.card.iwhy .who { font-size: 12px; color: var(--muted); }
.card.isup { gap: 12px; }
.card.isup .left { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card.isup .left.low { color: #9E4F2B; }
.card.isup .sbar { height: 6px; border-radius: 3px; background: rgba(22, 32, 28, .1); position: relative; overflow: hidden; }
.card.isup .sbar u { position: absolute; right: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #E7B86A, #B9633B); border-radius: 3px; }
.card.isup .sbar u.low { background: var(--clay); }
.card.isup .srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
.card.isup .srow b { display: block; font-size: 15px; font-weight: 600; }
.card.isup .srow span { display: block; font-size: 13px; color: var(--muted); }
.card.ilearn { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(217, 162, 74, .2), rgba(217, 162, 74, .08)); border-color: rgba(138, 95, 28, .12); text-decoration: none; color: inherit; }
.card.ilearn .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(251, 248, 242, .8); display: flex; align-items: center; justify-content: center; flex: none; color: var(--forest); }
.card.ilearn .txt { flex: 1; min-width: 0; }
.card.ilearn b { display: block; font-size: 14px; font-weight: 600; }
.card.ilearn span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.card.ilearn .chev { color: var(--muted); flex: none; }
.foot.row2 { flex-direction: row; gap: 10px; align-items: stretch; text-align: left; }
.foot.row2 .btn { flex: 1; }

/* ---- RetestOrder (Oct 31 2026): the follow-up consult card above the draw options, with the
   provider's face (photo, else initials on green) and a price pill like the option tiles; the
   same face on the pay screen's first line. The footer's Decide later link sits centred. ---- */
.pav { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--forest); color: var(--on-dark); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.card.fup .price { height: 30px; padding: 0 11px; border-radius: var(--r-pill); background: var(--peat); color: var(--on-dark); font-size: 14px; font-weight: 700; display: flex; align-items: center; font-variant-numeric: tabular-nums; flex: none; }
.foot.stack > .lnk { text-align: center; }

/* ---- An icon square rendered as a <span> is ALWAYS centred (Oct 31 2026) ----
   Every row container has a "subtitle" rule (.ln span, .list .ln span, .wcon span,
   .box .hd span, .wear .hd span, .grp .it span, ...) that sets the spans inside it to
   display:block. Those rules sit later in this file, often at a higher specificity than
   the square's own rule, so they won and the icon sat in the square's top-left corner:
   first on Account, then on Wearables, and on every card with a .hd. One locked rule for
   every square class that is rendered as a span, so no row rule written later can ever
   do it again. Stat tiles (.grid2 .tile) and ring days (.week .day b) are not spans. ---- */
span.tile, span.ic, span.av, span.teamav, span.pface, span.face, span.art, span.mark, span.pl, span.add { display: flex !important; align-items: center !important; justify-content: center !important; margin: 0 !important; }

/* ---- LearnArticle hero (Nov 1 2026): the product cut out over the lifestyle photo, right side, under the chip. ---- */
.lhero .lprod { position: absolute; right: 12px; top: calc(96px + var(--safe-top)); height: 230px; width: auto; max-width: 48%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(22, 32, 28, .28)); pointer-events: none; }
.lhero.plain .lprod { height: 200px; }

/* Learn rows (Nov 1 2026): a supplement's thumbnail is its bottle on the light square, as the Learn board draws it. */
.lar .th.prod { background: rgba(22, 32, 28, .05); overflow: hidden; }
.lar .th.prod img { height: 54px; width: auto; max-width: 56px; object-fit: contain; display: block; }
/* ---- scanning a bottle's barcode (the intake's What you take, Oct 28 2026) ---- */
/* The scan button sits in the add row between the field and Add, drawn like the field. */
.add .rb.scan { width: 44px; height: 44px; border: 1.5px dashed rgba(22, 32, 28, .28); background: transparent; color: var(--ink); }
/* The camera fills the app frame; the toast (z 30) still shows over it on a miss. */
.scan { position: absolute; inset: 0; z-index: 25; background: #0d1512; color: var(--on-dark); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan .frame { position: absolute; left: 50%; top: 42%; width: 74%; aspect-ratio: 1.7; transform: translate(-50%, -50%); border-radius: 18px; border: 2px solid rgba(243, 238, 228, .92); box-shadow: 0 0 0 200vmax rgba(13, 21, 18, .52); }
.scan .scan-top { position: absolute; top: calc(14px + var(--safe-top)); right: 16px; }
.scan .rb { background: rgba(243, 238, 228, .16); border-color: rgba(243, 238, 228, .2); color: var(--on-dark); }
.scan .scan-txt { position: relative; text-align: center; padding: 0 28px calc(44px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 6px; }
.scan .scan-txt b { font-size: 17px; font-weight: 600; }
.scan .scan-txt p { margin: 0; font-size: 14px; line-height: 1.4; color: rgba(243, 238, 228, .8); }

/* ---- row 11: gifting and the steady-state Today (Nov 2 2026) ---------------- */
.gift-card { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); background: radial-gradient(90% 80% at 100% 0%, rgba(231, 184, 106, .95), transparent 60%), radial-gradient(80% 70% at 0% 100%, rgba(185, 99, 59, .55), transparent 60%), linear-gradient(160deg, #E7B86A 0%, #D9A24A 50%, #B9633B 100%); }
.gift-card > :not(.grain) { position: relative; }
.gift-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gift-card .top > div { display: flex; flex-direction: column; gap: 6px; }
.gift-card .lab { color: rgba(22, 32, 28, .7); }
.gift-card h3 { margin: 0; font-size: 22px; line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; }
.gift-card p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(22, 32, 28, .78); }
.gift-card .box { width: 44px; height: 44px; border-radius: 14px; background: rgba(22, 32, 28, .14); display: flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.gift-card .go { height: 44px; padding: 0 18px; border-radius: 999px; background: var(--peat); color: var(--on-dark); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; text-decoration: none; }
.gift-card.row { flex-direction: row; align-items: center; padding: 14px 16px; gap: 12px; }
.gift-card.row .box { width: 40px; height: 40px; border-radius: 12px; }
.gift-card.row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gift-card.row b { font-size: 15px; font-weight: 600; }
.gift-card.row span { font-size: 12px; color: rgba(22, 32, 28, .75); line-height: 1.4; }
/* The recipient's own card (Account): the same light green as the member savings on a product page, not the giver's gold. */
.gift-card.gifted { background: radial-gradient(90% 80% at 100% 0%, rgba(127, 160, 140, .45), transparent 60%), linear-gradient(180deg, rgba(127, 160, 140, .30), rgba(127, 160, 140, .14)); border: 1px solid rgba(22, 32, 28, .06); }
.gift-card.gifted .box { background: var(--sage); }
.chip-dark.gold { background: rgba(231, 184, 106, .28); align-self: flex-start; }
.pt.soft i { background: rgba(22, 32, 28, .08); color: var(--ink); }
.pt.soft span { color: var(--muted); }
.pt b { font-weight: 600; }
.card.note { flex-direction: row; gap: 12px; align-items: flex-start; background: rgba(217, 162, 74, .18); border-color: rgba(138, 95, 28, .12); }
.card.note .who { width: 36px; height: 36px; border-radius: 50%; background: var(--ochre); color: var(--peat); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; }
.card.note p { margin: 0; font-size: 17px; line-height: 1.3; }
.card.note span:not(.who) { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.applied { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(127, 160, 140, .22); font-size: 13px; font-weight: 600; }
.applied i { width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: var(--peat); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.h2.tick { display: flex; align-items: center; gap: 8px; }
.h2.tick .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: var(--on-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dose.done { opacity: .55; }
.wdk.steady { background: radial-gradient(90% 60% at 100% 0%, rgba(217, 162, 74, .4), transparent 60%), radial-gradient(70% 60% at 0% 90%, rgba(185, 99, 59, .3), transparent 60%), linear-gradient(180deg, #1E3F38 0%, #16201C 100%); gap: 12px; }
.wdk.steady > * { position: relative; }
.wdk.steady .sub { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--on-dark-muted); }
.wdk.steady .acts { display: flex; gap: 8px; }
.wdk.steady .acts .btn.light { flex: 1; height: 48px; font-size: 15px; }
.wdk.steady .acts .btn.ghost.lt { height: 48px; padding: 0 16px; border-color: rgba(243, 238, 228, .35); color: var(--on-dark); flex: none; }
.wdk.steady .lnk.lt { color: var(--on-dark); font-size: 13px; }
.wdk.steady .big { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.wdk.steady .rt { text-align: right; font-size: 13px; color: #C9CFC9; }
.wdk.steady .rt b { color: var(--on-dark); }
.sbars { display: flex; gap: 5px; align-items: flex-end; height: 56px; }
.sbars i { flex: 1; border-radius: 2.5px; background: rgba(243, 238, 228, .75); display: block; }
.sbars i.now { background: var(--ochre-2); }
.wdk.steady .days { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; color: #C9CFC9; letter-spacing: .04em; margin-top: -6px; }
.wdk.steady .days span { flex: 1; text-align: center; }
.wst em.up { color: #9FD0B2; font-weight: 600; }
.spark { display: block; margin-top: 4px; }
.spark .area { fill: rgba(243, 238, 228, .12); }
.spark .line { fill: none; stroke: var(--ochre-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .dot { fill: var(--ochre-2); }
.wdk.steady .foot-line { display: flex; justify-content: space-between; font-size: 13px; padding-top: 10px; border-top: 1px solid rgba(243, 238, 228, .12); color: #C9CFC9; }
.wdk.steady .foot-line b { color: var(--on-dark); font-variant-numeric: tabular-nums; }
