/* ============================================================
   The Inmost Moment — application design system
   ------------------------------------------------------------
   Sits on top of inmost.css (brand tokens + generic components)
   and adds the mobile dashboard shell reproduced from the
   "Inner Richness Framework" mock-ups:
     · app bar + bottom tab bar
     · Inner Richness ring gauge
     · pillar list rows and the milestone checklist
     · the four daily Moment experiences
     · the Journey chart and month detail
   Two appearances share one token set: `light` (warm paper) and
   `dark` (deep espresso — Silence's own second appearance, and
   only Silence's).
   ============================================================ */

/* ---------------- tokens ----------------
   Re-pointed at the palette read from the Figma export (see inmost.css
   and docs/design-gap.md). The names are the ones the app already used,
   so every screen picks the design up without a view changing — which
   is the whole reason the stylesheet was built on tokens.

   Two things are worth knowing about the light theme. The field is
   FLAT rather than a gradient: the design's Home is 59.5% one colour,
   and the wash that used to sit behind it was invented here. And the
   ring is teal, not brown — the design puts the practice in a second
   accent, and the Inner Richness gauge is part of the practice. */
:root{
  --app-max:480px;
  --shell-max:1180px;
  --gutter:18px;

  --a-bg:var(--paper-warm);
  --a-surface:var(--paper-raised);
  --a-surface-2:var(--tint-warm);
  --a-surface-3:rgba(255,253,249,.72);
  --a-hair:var(--brand-hair);
  --a-hair-2:rgba(48,25,15,.07);

  --a-ink:var(--brand-ink);
  --a-ink-2:var(--brand-ink-muted);
  /* A third ink for the quietest things — captions, counts, the "2 min"
     under a tile. It is used for real words in twenty-odd places, so it
     has to clear the 4.5:1 floor for body copy on every surface it sits
     on: 7.19:1 on the page, 5.12:1 on the warm tint, 4.70:1 on the sand.
     The design's own grey measured 3.31:1 and is used for nothing that
     carries meaning. `tests/tokens.test.mjs` holds this line. */
  --a-ink-3:#655649;
  --a-title:var(--brand-ink);

  --a-accent:var(--brand-brown);
  --a-gold:#B98A4B;
  --a-on-accent:#FFFFFF;
  --a-track:rgba(48,25,15,.12);
  --a-ring:var(--brand-teal);

  --a-good:var(--brand-green);
  --a-good-bg:rgba(47,85,84,.12);

  --a-shadow:0 1px 2px rgba(48,25,15,.04), 0 10px 30px rgba(48,25,15,.06);
  --a-shadow-2:0 2px 6px rgba(48,25,15,.06), 0 22px 52px rgba(48,25,15,.10);

  /* The four Moments are drawn on a pale blue-grey, not on cream —
     it is the clearest single signal in the design that something
     different is happening here. */
  --a-moment-bg:var(--field-moment);

  --tabbar-h:66px;
  --topbar-h:70px;
}

body[data-theme="dark"]{
  --a-bg:radial-gradient(1100px 640px at 70% -12%, #33200F 0%, #22120A 46%, #170A03 100%);
  --a-surface:rgba(255,246,235,.055);
  --a-surface-2:rgba(255,246,235,.085);
  --a-surface-3:rgba(255,246,235,.04);
  --a-hair:rgba(238,220,202,.16);
  --a-hair-2:rgba(238,220,202,.09);

  --a-ink:#F4E8D8;
  --a-ink-2:#CBB49D;
  --a-ink-3:#9E8468;
  --a-title:#F7EEE1;

  --a-accent:#E3B47C;
  --a-gold:#E3B47C;
  --a-on-accent:#2A1508;
  --a-track:rgba(238,220,202,.18);
  --a-ring:#E3B47C;

  /* The brand inks are the light palette's, so anything that reaches for
     them directly — the figures inside Silence's ring, for instance — kept
     its dark brown on the dark field and all but vanished. In dark they
     mean the same as the page's inks, so they are pointed at them. */
  --brand-ink:#F4E8D8;
  --brand-ink-muted:#CBB49D;

  --a-good:#A9C39A;
  --a-good-bg:rgba(169,195,154,.14);

  --a-shadow:0 1px 2px rgba(0,0,0,.3), 0 12px 34px rgba(0,0,0,.34);
  --a-shadow-2:0 2px 8px rgba(0,0,0,.4), 0 26px 60px rgba(0,0,0,.5);

  --a-moment-bg:
    radial-gradient(900px 520px at 14% 6%, rgba(84,54,30,.55), transparent 62%),
    radial-gradient(760px 500px at 90% 26%, rgba(58,34,16,.5), transparent 64%),
    linear-gradient(168deg,#2C1809 0%, #1E0F05 52%, #140A03 100%);
}

/* ---------------- shell ---------------- */
body.app{
  margin:0;
  /* A warmer cream behind the field rather than the old deep brown:
     the design's field is light all the way through, so the only
     place this shows is the overscroll at the top of a phone, and a
     dark band there would read as a mistake. */
  background:var(--tint-warm);
  color:var(--a-ink);
  font-size:15px;
  min-height:100dvh;
}
body.app::before{display:none}

.app-shell{
  position:relative;
  max-width:var(--app-max);
  margin:0 auto;
  min-height:100dvh;
  background:var(--a-bg);
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
  isolation:isolate;
}

/* On a phone the top bar is not a thing: it dissolves so the app bar and
   the bottom tab bar behave exactly as they always have. */
.topbar{display:contents}

/* The page container is the one element that knows how wide a website may
   be. On a phone the screens carry their own 18px gutters, so it does
   nothing at all. */
.page{width:100%}

/* The field is flat in the design, so there is no invented wash
   standing in for a photograph behind it any more. The art belongs
   in the cards and the doors, which have their own. */
.app-shell::before{display:none}

.screen{
  position:relative;
  z-index:1;
  flex:1;
  display:flex;
  flex-direction:column;
  padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 18px);
}
/* Moment screens run edge to edge without the tab bar */
.moment .screen,.bare .screen{padding-bottom:40px}

/* ---------------- app bar ---------------- */
.appbar{
  position:sticky;
  top:0;
  z-index:40;
  /* the crown is held in the middle by two equal sides, so a screen can
     carry one button or two without pushing the mark off centre */
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  padding:12px 12px 8px;
  background:linear-gradient(to bottom, var(--a-dark-bar, rgba(251,245,238,.86)), transparent);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.bar-side{display:flex;align-items:center;gap:8px;min-width:0}
.bar-left{justify-self:start}
.bar-right{justify-self:end}
/* the crown is the way home, from wherever a person is */
.brandbtn{
  display:flex;align-items:center;justify-content:center;
  border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;
  cursor:pointer;border-radius:16px;
}
.brandbtn:hover{opacity:.86}
.brandbtn:focus-visible{outline:2px solid var(--a-accent);outline-offset:4px}
body[data-theme="dark"] .appbar{--a-dark-bar:rgba(32,18,8,.72)}
.appbar.transparent{background:transparent}
.appbar .crown{
  display:flex;flex-direction:column;align-items:center;gap:4px;
  line-height:1;color:var(--a-accent);
}
.appbar .crown .word{font-family:var(--serif);font-size:.95rem;color:var(--a-title)}
.iconbtn{
  width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;
  border:1px solid transparent;background:transparent;
  color:var(--a-ink);cursor:pointer;
  transition:background .15s,color .15s,border-color .15s;
}
.iconbtn:hover{background:var(--a-surface-3);border-color:var(--a-hair)}
.iconbtn.round{background:var(--a-surface);border-color:var(--a-hair);box-shadow:var(--a-shadow)}
.iconbtn svg{width:20px;height:20px}
.iconbtn:disabled{opacity:.35;cursor:default}

/* ---------------- cards & type ---------------- */

/* The Crown mark ships as one SVG file; rendered through a mask it
   inherits the current text colour, so one asset serves every theme. */
.glyph{
  display:inline-block;flex-shrink:0;
  background:currentColor;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
}
.glyph.crown{
  -webkit-mask-image:url('../img/crown-icon.svg');
  mask-image:url('../img/crown-icon.svg');
  width:30px;height:13px;
}
.glyph.crown.sm{width:24px;height:10px}
.glyph.crown.lg{width:40px;height:17px}
.acard{
  background:var(--a-surface);
  border:1px solid var(--a-hair-2);
  border-radius:22px;
  box-shadow:var(--a-shadow);
  padding:18px;
}
.acard + .acard{margin-top:12px}
.acard.tint{background:linear-gradient(160deg,var(--a-surface-2),var(--a-surface) 72%)}
.pad-x{padding-left:18px;padding-right:18px}

.eyebrow-a{
  font-size:.66rem;font-weight:700;letter-spacing:.2em;
  text-transform:uppercase;color:var(--a-ink-3);
}
.serif{font-family:var(--serif)}
.h1-a{font-family:var(--serif);font-weight:500;font-size:2.3rem;line-height:1.08;color:var(--a-title);margin:6px 0 8px}
.h2-a{font-family:var(--serif);font-weight:500;font-size:1.58rem;line-height:1.16;color:var(--a-title);margin:0 0 6px}
.h3-a{font-family:var(--serif);font-weight:500;font-size:1.22rem;color:var(--a-title);margin:0 0 4px}
.body-a{color:var(--a-ink-2);line-height:1.6}
.small-a{font-size:.82rem;color:var(--a-ink-3)}

.section-hd{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding:0 18px;margin:24px 0 12px;
}
.section-hd .ttl{font-family:var(--serif);font-size:1.35rem;color:var(--a-title)}
/* a quiet text button — in a section header, or standing on its own
   at the foot of a Moment, where it must still look like a link and
   not like a browser button */
.link{
  font:inherit;font-size:.84rem;font-weight:600;color:var(--a-accent);
  background:none;border:0;cursor:pointer;padding:0;
  display:inline-flex;align-items:center;gap:4px;
}
.link.small-a{font-size:.82rem}
.link:hover{color:var(--a-title)}
.link svg{width:15px;height:15px}

/* ---------------- bottom tab bar ---------------- */
.tabbar{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:100%;
  max-width:var(--app-max);
  height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);
  z-index:60;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:1fr;
  align-items:center;
  background:color-mix(in srgb, var(--a-surface-2) 88%, transparent);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-top:1px solid var(--a-hair);
}
body[data-theme="dark"] .tabbar{background:rgba(26,14,6,.82)}
.tab{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  background:none;border:0;padding:6px 2px;cursor:pointer;
  color:var(--a-ink-3);font-size:.63rem;font-weight:600;letter-spacing:.01em;
  transition:color .16s;
  -webkit-tap-highlight-color:transparent;
}
.tab svg{width:22px;height:22px;stroke-width:1.5}
.tab:hover{color:var(--a-ink-2)}
.tab.on{color:var(--a-accent)}
.tab.on svg{stroke-width:1.9}
.tab.center svg{
  width:26px;height:26px;
}

/* ---------------- greeting (Home) ---------------- */
.greeting{padding:6px 18px 2px}
.greeting .hi{
  font-family:var(--serif);
  font-size:1.9rem;
  line-height:1.12;
  color:var(--a-title);
}
.greeting .sub{margin-top:6px;font-size:.86rem;color:var(--a-ink-2)}
.pill-a{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 13px 6px 9px;border-radius:999px;
  background:var(--a-surface);border:1px solid var(--a-hair);
  font-size:.72rem;font-weight:600;color:var(--a-accent);
  box-shadow:var(--a-shadow);margin-top:12px;
}
.pill-a svg{width:14px;height:14px}
.pills{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.pills .pill-a{margin-top:0}
/* the practice in focus, as the design marks it on its own screen */
.pill-focus{
  margin-left:auto;font-size:.7rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--brand-green);
  background:none;border-color:color-mix(in srgb, var(--brand-green) 40%, transparent);
}

/* ---------------- Inner Richness ring card ---------------- */
.ringcard{
  position:relative;
  margin:16px 18px 0;
  padding:18px 18px 16px;
  border-radius:26px;
  background:linear-gradient(150deg, color-mix(in srgb, var(--a-surface-2) 92%, #fff), var(--a-surface) 68%);
  border:1px solid var(--a-hair-2);
  box-shadow:var(--a-shadow);
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  overflow:hidden;
}
.ringcard::after{
  content:"";
  position:absolute;right:-40px;top:-60px;width:180px;height:180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(185,138,75,.20), transparent 68%);
  pointer-events:none;
}
.ringcard .eyebrow-a{margin-bottom:8px}
/* the ring carries the number, so the card leads with the sentence
   that explains it rather than with a second copy of the figure */
.ringcard .note{margin-top:10px;font-size:.86rem;color:var(--a-ink-2);line-height:1.5;max-width:44ch}
.ringcard .go{
  display:inline-flex;align-items:center;gap:6px;margin-top:14px;
  background:none;border:0;padding:0;cursor:pointer;
  font-size:.82rem;font-weight:600;color:var(--a-accent);
}
.ringcard .go svg{width:15px;height:15px}

.ring{position:relative;width:104px;height:104px;flex-shrink:0}
.ring svg{transform:rotate(-90deg);display:block}
.ring .track{stroke:var(--a-track);fill:none}
.ring .val{stroke:var(--a-ring);fill:none;stroke-linecap:round;transition:stroke-dashoffset .7s cubic-bezier(.3,.8,.3,1)}
.ring .mid{
  position:absolute;inset:0;display:grid;place-items:center;
  font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--a-ink-3);
}

/* ---- the measure, as `IM_HOME_01` draws it ----
   The eyebrow and "View your growth" share one line, the figure leads with
   "/ 100" beside it, and the ring sits left of the sentence it explains. */
.ringcard{display:block}
.ringcard .hd{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.ringrow{display:flex;align-items:center;gap:16px;margin-top:10px}
.ringtext{flex:1;min-width:0}
.scoreline{display:flex;align-items:baseline;gap:6px}
.scoreline b{
  font-family:var(--serif);font-size:2.3rem;font-weight:500;
  line-height:1;color:var(--a-title);font-variant-numeric:tabular-nums;
}
.scoreline span{font-size:.9rem;color:var(--a-ink-3)}
.ringrow .ring .mid{
  font-family:var(--serif);font-size:1.5rem;font-weight:500;
  letter-spacing:0;text-transform:none;color:var(--a-title);
}

/* ---- the greeting, in the design's two lines ---- */
.greeting .hi-eb{
  display:block;margin-top:14px;
  font-size:.74rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--a-ink-3);
}
.greeting .hi{font-size:2.15rem;line-height:1.05}

/* the three Moments are numbered, because they are a sequence of a day */
.mrows .mrow .n{
  width:20px;height:20px;border-radius:50%;
  display:grid;place-items:center;
  border:1.5px solid var(--a-hair);
  font-size:.62rem;font-weight:700;color:var(--a-ink-3);
  font-variant-numeric:tabular-nums;
}
.mrows .mrow .n.done{border-color:var(--a-ring);background:var(--a-ring);color:#fff}
.mrows .mrow .n.part{border-color:var(--a-ring);border-width:3px;border-top-color:var(--a-track)}
.mrow .nt{display:block;margin-top:2px;font-size:.82rem;color:var(--a-ink-3)}
.mrow .nm{font-family:var(--serif);font-size:1.06rem;color:var(--a-title)}
.area-today-lead{margin:2px 18px 10px}

/* ---- the story behind the day ---- */
.storycard{
  margin:14px 18px 0;padding:16px;
  border-radius:22px;background:var(--a-surface-2);
  border:1px solid var(--a-hair);
}
.storycard .eyebrow-a{margin-bottom:6px}

/* ---- an announcement, with a way to put it away ---- */
.anncard{
  margin:14px 18px 0;padding:16px;
  border-radius:22px;background:var(--a-surface);
  border:1px solid color-mix(in srgb, var(--a-gold) 32%, transparent);
  box-shadow:var(--a-shadow);
}
.anncard-hd{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.anncard-tt{font-family:var(--serif);font-size:1.16rem;color:var(--a-title);margin-top:6px}
.anncard .body-a{margin-top:6px;color:var(--a-ink-2)}

/* ---- the first paint ----
   `IM_SYS_01`. A skeleton in the page itself, so the shell is never a
   blank screen while IndexedDB opens; the first render replaces it. */
.bootskel{padding:8px 18px 0}
.skel{
  border-radius:12px;
  background:linear-gradient(90deg, var(--a-surface-2), var(--a-surface), var(--a-surface-2));
  background-size:200% 100%;
  animation:skelslide 1.6s ease-in-out infinite;
}
.skel-card{border-radius:22px}
@keyframes skelslide{
  0%{background-position:0% 0}
  100%{background-position:-100% 0}
}
@media (prefers-reduced-motion: reduce){
  .skel{animation:none}
}

/* ---- a refresh that failed (`IM_SYS_02`) ---- */
.refreshbar{
  display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;
  margin:12px 18px 0;padding:12px 14px;border-radius:16px;
  background:var(--a-surface-2);border:1px solid var(--a-hair);
}
.refreshbar b{font-size:.9rem;color:var(--a-title)}
.refreshbar span{font-size:.82rem;color:var(--a-ink-2)}
.refreshbar .link{margin-left:auto}

/* a sitting that runs past midnight says so, and still counts for the
   day it began (`IM_SIL_12`) */
.midnight{
  margin:0 0 12px;padding:10px 14px;border-radius:12px;
  background:var(--a-surface-2);border:1px solid var(--a-hair);
  font-size:.82rem;line-height:1.45;color:var(--a-ink-2);text-align:left;
}

/* ---- the day's four steps ----
   A numbered row each: what it is, where it stands, and the one action
   that follows from that state. `IM_MOMENT_01`. */
.hubsteps{display:block}
.hubstep{
  padding:16px;border-radius:22px;
  background:var(--a-surface);border:1px solid var(--a-hair);
  box-shadow:var(--a-shadow);margin-bottom:12px;
}
.hubstep:last-child{margin-bottom:0}
.hubstep-hd{display:flex;align-items:baseline;gap:10px}
.hubstep-hd .step-n{
  font-size:.68rem;font-weight:700;letter-spacing:.1em;color:var(--a-ink-3);
  font-variant-numeric:tabular-nums;
}
.hubstep-hd .step-tt{
  font-family:var(--serif);font-size:1.16rem;color:var(--a-title);flex:1;min-width:0;
}
.hubstep-hd .step-state{
  font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--a-ink-3);
}
.hubstep.done .step-state{color:var(--a-good)}
.hubstep.paused .step-state{color:var(--a-ring)}
.hubstep .step-line{margin:6px 0 0;font-size:.9rem;color:var(--a-ink-2)}
.hubstep .step-note{
  margin:6px 0 0;font-size:.84rem;font-weight:600;color:var(--a-ring);
}
.hubstep .step-go{
  display:inline-flex;align-items:center;gap:6px;margin-top:10px;
  background:none;border:0;padding:0;cursor:pointer;
  font:inherit;font-size:.84rem;font-weight:600;color:var(--a-accent);
}
.hubstep .step-go svg{width:14px;height:14px}
.crumb-eb{
  display:block;font-size:.68rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--a-ink-3);
}

/* ---- the gentle check-in ---- */
.checkin{
  margin:14px 18px 0;padding:16px;
  border-radius:22px;background:var(--a-surface);
  border:1px solid var(--a-hair);box-shadow:var(--a-shadow);
}
.checkin .body-a{margin-top:8px;color:var(--a-ink)}
.checkacts{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:12px}
.checkacts .btn-a{width:100%;justify-content:center}
.checkin[data-reply] .body-a{color:var(--a-ink-2)}

/* ---- "please confirm your email" ---- */
.verifybar{
  margin:14px 18px 0;padding:14px 16px;
  border-radius:20px;background:var(--a-good-bg);
  border:1px solid color-mix(in srgb, var(--a-good) 30%, transparent);
}
.verifybar b{display:block;font-size:.95rem;color:var(--a-title)}
.verifybar p{margin:4px 0 10px;font-size:.86rem;color:var(--a-ink-2)}

/* ---- how the figure is arrived at ---- */
.measure-row{padding:10px 0;border-bottom:1px solid var(--a-hair-2)}
.measure-row:last-of-type{border-bottom:0}
.measure-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.measure-top b{font-size:.94rem;color:var(--a-title)}
.measure-top span{font-size:.9rem;color:var(--a-ink-3);font-variant-numeric:tabular-nums}
.measure-row .small-a{margin-top:3px}

/* ---------------- current focus card ---------------- */
.focus{
  margin:12px 18px 0;
  padding:16px;
  border-radius:22px;
  background:var(--a-surface);
  border:1px solid var(--a-hair-2);
  box-shadow:var(--a-shadow);
  display:flex;
  gap:14px;
  align-items:center;
  cursor:pointer;
  text-align:left;
  width:calc(100% - 36px);
  font:inherit;color:inherit;
  transition:transform .16s, box-shadow .16s;
}
.focus:hover{transform:translateY(-1px);box-shadow:var(--a-shadow-2)}
.badge{
  width:46px;height:46px;border-radius:15px;flex-shrink:0;
  display:grid;place-items:center;
  background:linear-gradient(150deg, color-mix(in srgb, var(--a-accent) 16%, transparent), color-mix(in srgb, var(--a-gold) 10%, transparent));
  color:var(--a-accent);
  border:1px solid var(--a-hair);
}
.badge svg{width:22px;height:22px}
.badge.lg{width:56px;height:56px;border-radius:18px}
.badge.lg svg{width:26px;height:26px}
.focus .txt{flex:1;min-width:0}
.focus .lbl{display:block;font-size:.66rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--a-ink-3)}
.focus .nm{display:block;font-family:var(--serif);font-size:1.16rem;color:var(--a-title);margin:3px 0 8px}
.focus .foot{display:block;margin-top:8px;font-size:.76rem;color:var(--a-ink-3)}
.focus .right{display:grid;place-items:center;color:var(--a-ink-3)}

.progress-a{height:6px;border-radius:999px;background:var(--a-track);overflow:hidden}
.progress-a .fill{
  height:100%;border-radius:999px;
  background:linear-gradient(90deg,var(--a-accent),var(--a-gold));
  transition:width .5s cubic-bezier(.3,.8,.3,1);
}
.progress-a.thin{height:4px}

/* ---------------- moment tiles ---------------- */
.tiles{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  padding:0 18px;
}

/* ---------------- pillar rows ---------------- */
.pillars{padding:0 18px}
.prow{
  display:grid;
  grid-template-columns:44px 1fr auto;
  gap:13px;
  align-items:center;
  padding:14px 16px;
  margin-bottom:10px;
  border-radius:20px;
  background:var(--a-surface);
  border:1px solid var(--a-hair-2);
  box-shadow:var(--a-shadow);
  cursor:pointer;
  text-align:left;width:100%;font:inherit;color:inherit;
  transition:transform .16s,box-shadow .16s;
}
.prow:hover{transform:translateY(-1px);box-shadow:var(--a-shadow-2)}
.prow .nm{font-family:var(--serif);font-size:1.08rem;color:var(--a-title);display:flex;align-items:center;gap:8px}
.prow .desc{font-size:.78rem;color:var(--a-ink-3);margin:3px 0 9px;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prow .right{display:flex;align-items:center;gap:8px;color:var(--a-ink-3)}
.prow .right svg{width:16px;height:16px}
.prow .pct{font-size:.82rem;font-weight:700;color:var(--a-accent);font-variant-numeric:tabular-nums}
.tag{
  font-size:.6rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:3px 8px;border-radius:999px;
  background:var(--a-good-bg);color:var(--a-good);
}
.tag.muted{background:var(--a-track);color:var(--a-ink-3)}

/* ---------------- milestone checklist ----------------
   One milestone is open at a time: the first one not yet claimed.
   It is the only row carrying the hint and a Claim button, so the
   page offers a single sentence to sit with and a single thing to
   do. The rows around it keep their words and lose their noise. */
.check{
  display:grid;
  grid-template-columns:34px 1fr auto;
  gap:12px;
  align-items:start;
  padding:15px 16px;
  border-bottom:1px solid var(--a-hair-2);
}
.check:last-child{border-bottom:0}
/* the header is sticky, so a row brought into view must clear it */
.check{scroll-margin-top:78px}
.check .n{
  position:relative;
  width:30px;height:30px;border-radius:10px;
  display:grid;place-items:center;
  background:var(--a-surface-2);border:1px solid var(--a-hair);
  font:inherit;font-size:.74rem;font-weight:700;color:var(--a-ink-3);
  font-variant-numeric:tabular-nums;
  padding:0;appearance:none;
  transition:background .2s,color .2s,border-color .2s;
}
.check .tx{
  font-size:.92rem;line-height:1.5;color:var(--a-ink);padding-top:3px;
  transition:color .2s;
}
.check .meta{
  display:flex;align-items:center;gap:10px;margin-top:8px;
  font-size:.72rem;color:var(--a-ink-3);
}
.check .meta svg{width:13px;height:13px}
.check .claim{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 11px;border-radius:999px;
  border:1px solid var(--a-hair);background:transparent;
  font:inherit;font-size:.76rem;font-weight:600;color:var(--a-ink-3);
  cursor:pointer;transition:all .16s;margin-top:6px;white-space:nowrap;
}
.check .claim:hover{border-color:var(--a-accent);color:var(--a-accent)}
.check .claim svg{width:13px;height:13px}

/* the open one — where the person is, and the only place to act. It
   warms in for a moment as it arrives, which the reduced-motion block
   near the end of this file reduces to nothing. */
.check.active{animation:check-open .6s ease-out both}
.check.active .n{border-color:var(--a-accent);color:var(--a-accent);background:var(--a-surface)}
@keyframes check-open{
  from{background:color-mix(in srgb, var(--a-accent) 10%, transparent)}
  to{background:transparent}
}

/* claimed — the chip keeps its mark and becomes the way back out of the
   claim, so its target is grown to 44px around the 30px it is drawn at */
.check.done .n{
  background:var(--a-accent);border-color:var(--a-accent);
  color:var(--a-on-accent);cursor:pointer;
}
.check.done .n::after{content:'';position:absolute;inset:-7px;border-radius:14px}
.check.done .n:hover{filter:brightness(1.08)}
.check.done .n:focus-visible{outline:2px solid var(--a-accent);outline-offset:4px}
.check.done .tx{color:var(--a-ink-2)}

/* folded — the same sentence, quieter, and nothing to press. The ink is
   --a-ink-2 rather than --a-ink-3 because these rows are body copy: on the
   cream surface --a-ink-3 measures 3.5:1, under the 4.5:1 AA floor, while
   --a-ink-2 measures 6.6:1 and still reads as quieter than the open row. */
/* what is still ahead is counted, never listed — a practice meets a
   person one sentence at a time, and the count keeps the screen honest */
.checklist-more{
  margin:0;padding:13px 16px 14px;
  font-size:.78rem;color:var(--a-ink-3);
  border-top:1px solid var(--a-hair-2);text-align:center;
}

.checklist{
  border-radius:22px;overflow:hidden;
  background:var(--a-surface);border:1px solid var(--a-hair-2);box-shadow:var(--a-shadow);
}

/* ============================================================
   The Moment — four daily experiences
   These screens own the full viewport: a warm photographic
   field, a quiet centred composition, one clear action.
   ============================================================ */
.moment{
  min-height:100dvh;
  background:var(--a-moment-bg);
  background-attachment:fixed;
}
.moment .screen{padding-bottom:40px}
.wrap-narrow{
  width:100%;max-width:430px;margin:0 auto;padding:0 22px;
  display:flex;flex-direction:column;flex:1;
}
.center-col{
  flex:1;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;
  gap:18px;padding:22px 0;
}

/* ---- A Thought ---- */
.quote-a{
  font-family:var(--serif);
  font-size:1.72rem;
  line-height:1.34;
  color:var(--a-title);
  text-align:center;
  margin:0;
  font-weight:400;
}
.quote-a::before,.quote-a::after{content:'”';color:var(--a-gold);font-size:2.4rem;line-height:0;vertical-align:-.2em}
.quote-a::before{content:'“'}
.quote-a::after{content:'”'}
.byline{
  display:inline-flex;align-items:center;gap:10px;
  font-size:.68rem;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--a-ink-3);
}
.byline::before,.byline::after{
  content:"";width:26px;height:1px;background:var(--a-hair);
}
.body-a p{margin:0 0 1em}
.body-a p:last-child{margin-bottom:0}
.divider-dots{
  display:flex;align-items:center;justify-content:center;gap:8px;
  color:var(--a-gold);opacity:.7;margin:6px 0;
}
.divider-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;display:block}
.qmark{
  width:52px;height:52px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--a-surface);border:1px solid var(--a-hair);
  color:var(--a-gold);font-family:var(--serif);font-size:1.7rem;line-height:1;
  box-shadow:var(--a-shadow);
}
@keyframes breathe{
  0%,100%{height:8px;opacity:.35}
  50%{height:30px;opacity:.85}
}
@keyframes halo{
  0%,100%{transform:scale(1);opacity:.9}
  50%{transform:scale(1.05);opacity:.45}
}

/* ---- How You Feel ---- */
.chips-a{
  display:flex;flex-wrap:wrap;gap:9px;
}
.chip-a{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 15px;border-radius:999px;
  background:var(--a-surface);border:1.5px solid var(--a-hair);
  font:inherit;font-size:.88rem;font-weight:500;color:var(--a-ink);
  cursor:pointer;transition:all .16s;
}
.chip-a svg{width:17px;height:17px;color:var(--a-ink-3);transition:color .16s}
.chip-a:hover{border-color:var(--a-accent)}
.chip-a.on{background:var(--a-accent);border-color:var(--a-accent);color:var(--a-on-accent)}
.chip-a.on svg{color:var(--a-on-accent)}

/* ---- the four groups of feeling ----
   `IM_FEEL_01` separates the words that feel good from the ones that
   hurt from the states that are neither, and gives each group a line of
   its own so the choice is understood before it is made. */
.feel-group{margin-top:18px}
.feel-group-hd{display:block;margin-bottom:9px}
.feel-group-hd b{
  display:block;font-size:.82rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--a-ink-2);
}
.feel-group-hd span{display:block;margin-top:2px;font-size:.85rem;color:var(--a-ink-3)}
.feel-grid{gap:8px}
.feel-grid .chip-a{padding:8px 13px;font-size:.85rem}
.counter{margin-top:16px;color:var(--a-ink-3)}

/* ---- the five things that might help ----
   One ruled row each, title over its line, the way `IM_FEEL_06` draws
   them — a list to read rather than five buttons competing. */
.optlist{
  display:block;border-radius:var(--radius);
  background:var(--a-surface);border:1px solid var(--a-hair);overflow:hidden;
}
.optrow{
  display:flex;align-items:center;gap:12px;width:100%;
  padding:15px 16px;border:0;border-bottom:1px solid var(--a-hair-2);
  background:none;font:inherit;text-align:left;cursor:pointer;color:inherit;
}
.optrow:last-child{border-bottom:0}
.optrow:hover{background:var(--a-surface-2)}
.optrow .tx{display:block;flex:1;min-width:0}
.optrow .tx b{
  display:block;font-family:var(--serif);font-size:1.06rem;font-weight:500;
  color:var(--a-title);line-height:1.25;
}
.optrow .tx span{display:block;margin-top:3px;font-size:.85rem;color:var(--a-ink-3)}
.optrow .chev,.optrow .ck{color:var(--a-ink-3);flex:none}
.optrow.on{border-color:var(--a-accent)}
.optrow.on .ck{color:var(--a-good)}

/* the design's four ways to be kind, and the four ways to let it out */
.waylist{margin:0;padding:0 0 0 4px;list-style:none}
.waylist li{
  position:relative;padding:11px 0 11px 22px;
  border-bottom:1px solid var(--a-hair-2);font-size:.94rem;color:var(--a-ink-2);
}
.waylist li:last-child{border-bottom:0}
.waylist li::before{
  content:"";position:absolute;left:2px;top:18px;
  width:6px;height:6px;border-radius:50%;background:var(--a-ink-3);
}

/* ---- the people a person trusts ----
   First names only, kept on the device, and the screen says twice that
   Inmost never contacts them. */
.trusted{margin-top:6px}
.trusted-add{display:flex;gap:8px;align-items:flex-end}
.trusted-add .field-a{flex:1;margin-bottom:0}
.trusted-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.trusted-name{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 8px 6px 12px;border-radius:999px;
  background:var(--a-surface-2);border:1px solid var(--a-hair);
  font-size:.85rem;color:var(--a-ink-2);
}
.trusted-name .x{
  display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border:0;border-radius:50%;
  background:none;color:var(--a-ink-3);cursor:pointer;
}
.trusted-name .x:hover{background:var(--a-hair-2);color:var(--a-ink)}

/* the one switch that asks Home to raise the subject again */
.followrow{
  display:flex;align-items:center;gap:12px;
  margin-top:18px;padding-top:14px;border-top:1px solid var(--a-hair-2);
}
.followrow .followic{display:inline-flex;color:var(--a-ink-3);flex:none}
.followrow .followtext{flex:1;min-width:0}
.followrow .followtext b{
  display:block;font-size:.94rem;font-weight:600;color:var(--a-title);line-height:1.3;
}
.followrow .followtext span{
  display:block;margin-top:3px;font-size:.82rem;color:var(--a-ink-3);line-height:1.4;
}
.followrow .switch{flex:none}
.mode-a{
  display:inline-flex;padding:3px;border-radius:999px;
  background:var(--a-surface-2);border:1px solid var(--a-hair);
}
.mode-a button{
  border:0;background:transparent;padding:7px 15px;border-radius:999px;
  font:inherit;font-size:.8rem;font-weight:600;color:var(--a-ink-3);cursor:pointer;
  display:inline-flex;align-items:center;gap:6px;transition:all .16s;
}
.mode-a button svg{width:15px;height:15px}
.mode-a button.on{background:var(--a-surface);color:var(--a-title);box-shadow:var(--a-shadow)}

/* ---- Today's Story ---- */
.story-hd{
  font-family:var(--serif);font-size:1.84rem;line-height:1.2;
  color:var(--a-title);margin:0 0 14px;
}
.story-body{
  font-size:1rem;line-height:1.72;color:var(--a-ink-2);
}
.story-body p{margin:0 0 1.1em}
.readmore{
  width:100%;text-align:left;
  position:relative;max-height:96px;overflow:hidden;
}
.readmore::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:56px;
  background:linear-gradient(to bottom, transparent, var(--a-moment-fade, #F2E6D5));
}
body[data-theme="dark"] .readmore::after{--a-moment-fade:#1B0E05}
.readmore.open{max-height:none}
.readmore.open::after{display:none}

/* ---- share-to-story cards ---- */
.sharecards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sharecard{
  border-radius:18px;padding:14px;
  border:1px solid var(--a-hair);
  background:linear-gradient(155deg, var(--a-surface-2), var(--a-surface));
  text-align:left;font:inherit;color:var(--a-ink);
  cursor:pointer;transition:transform .16s,box-shadow .16s,border-color .16s;
  display:flex;flex-direction:column;gap:8px;
}
.sharecard:hover{transform:translateY(-2px);box-shadow:var(--a-shadow);border-color:var(--a-accent)}
.sharecard .ic{
  width:34px;height:34px;border-radius:11px;display:grid;place-items:center;
  background:var(--a-surface);border:1px solid var(--a-hair);color:var(--a-accent);
}
.sharecard .ic svg{width:17px;height:17px}
.sharecard .t{font-family:var(--serif);font-size:.98rem;line-height:1.2;color:var(--a-title)}
.sharecard .s{font-size:.72rem;color:var(--a-ink-3);line-height:1.4}

/* ---- a thought is read in the brand's own voice ---- */
.thought-body{
  font-family:var(--serif);
  font-size:1.26rem;line-height:1.55;
  color:var(--a-ink-2);
  max-width:36ch;margin-left:auto;margin-right:auto;
}

/* ---- a voice note you can actually hear ---- */
.audiobox{
  border-radius:14px;padding:8px;
  background:var(--a-surface-2);border:1px solid var(--a-hair);
}
.audiobox audio{display:block;width:100%;height:38px}

/* ---- Common Ground ---- */
.cg-list{list-style:none;margin:0;padding:0}
.cg-list li{
  padding:13px 16px;border-radius:16px;
  background:var(--a-surface);border:1px solid var(--a-hair-2);
  font-family:var(--serif);font-size:1.04rem;line-height:1.3;color:var(--a-title);
}
.cg-list li + li{margin-top:8px}
.cg-mine + .cg-mine{margin-top:12px}
.cg-mine .row.wrap{gap:6px}
/* a Moment column carries its own gutters, so a section inside one does not */
.wrap-narrow .section-hd{padding-left:0;padding-right:0}

/* ---- reflection box ---- */
.field-a{margin-bottom:14px}
.field-a label{
  display:block;font-size:.68rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--a-ink-3);margin-bottom:7px;
}
.field-a textarea,.field-a input,.field-a select{
  width:100%;box-sizing:border-box;
  font-family:var(--sans);font-size:.94rem;color:var(--a-ink);
  padding:13px 14px;border-radius:16px;
  border:1px solid var(--a-hair);background:var(--a-surface);
  resize:vertical;line-height:1.55;
}
.field-a textarea::placeholder,.field-a input::placeholder{color:var(--a-ink-3);opacity:.8}
.field-a textarea:focus,.field-a input:focus,.field-a select:focus{
  outline:none;border-color:var(--a-accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--a-accent) 16%, transparent);
}
.field-a .hint{font-size:.74rem;color:var(--a-ink-3);margin-top:6px}
/* a range input, drawn in the app's own hand rather than the browser's */
.field-a .slider{
  -webkit-appearance:none;appearance:none;
  height:26px;padding:0;border:0;background:none;box-shadow:none;
}

/* ---- buttons ---- */
.btn-a{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:100%;box-sizing:border-box;
  padding:15px 20px;border-radius:999px;
  background:var(--a-accent);color:var(--a-on-accent);
  border:1px solid transparent;
  font:inherit;font-size:.94rem;font-weight:600;cursor:pointer;
  transition:transform .14s,opacity .14s,box-shadow .14s;
  box-shadow:0 6px 20px color-mix(in srgb, var(--a-accent) 26%, transparent);
}
.btn-a:hover{transform:translateY(-1px)}
.btn-a:active{transform:translateY(0)}
.btn-a:disabled{opacity:.45;cursor:default;box-shadow:none;transform:none}
.btn-a svg{width:17px;height:17px}
.btn-a.ghost{
  background:transparent;color:var(--a-ink);
  border-color:var(--a-hair);box-shadow:none;
}
.btn-a.ghost:hover{border-color:var(--a-accent);color:var(--a-accent)}
.btn-a.quiet{
  background:var(--a-surface);color:var(--a-title);
  border-color:var(--a-hair);box-shadow:var(--a-shadow);
}
.btn-a.sm{padding:11px 16px;font-size:.86rem;width:auto}
.btn-a.danger{background:transparent;color:#B4472F;border-color:rgba(180,71,47,.35);box-shadow:none}
.btn-a.danger:hover{background:rgba(180,71,47,.07)}
.btnrow{display:flex;gap:10px}
.btnrow > *{flex:1}
.btnrow.center{justify-content:center}

/* ---- bottom sheet ---- */
.sheet-scrim{
  position:fixed;inset:0;z-index:90;
  background:rgba(28,12,4,.42);
  backdrop-filter:blur(2px);
  opacity:0;pointer-events:none;transition:opacity .2s;
}
.sheet-scrim.open{opacity:1;pointer-events:auto}
.sheet{
  position:fixed;left:50%;transform:translate(-50%,101%);
  bottom:0;z-index:91;
  width:100%;max-width:var(--app-max);
  max-height:82dvh;overflow-y:auto;
  background:var(--a-surface-2);
  border-radius:26px 26px 0 0;
  padding:8px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow:0 -20px 60px rgba(48,25,15,.28);
  transition:transform .28s cubic-bezier(.25,.9,.3,1);
}
.sheet.open{transform:translate(-50%,0)}
.sheet .grip{
  width:42px;height:4px;border-radius:999px;background:var(--a-track);
  margin:8px auto 16px;
}
.sheet h3{margin:0 0 4px}
.sheet .lead{font-size:.85rem;color:var(--a-ink-2);margin:0 0 18px}
.sheet .opts{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.sheet .opt{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;border-radius:16px;
  background:var(--a-surface);border:1px solid var(--a-hair);
  font:inherit;font-size:.94rem;color:var(--a-ink);cursor:pointer;text-align:left;
  transition:border-color .16s,color .16s;
}
.sheet .opt:hover{border-color:var(--a-accent)}
.sheet .opt.on{border-color:var(--a-accent);color:var(--a-accent);font-weight:600}
.sheet .opt .ck{width:18px;height:18px;color:var(--a-accent);opacity:0}
.sheet .opt.on .ck{opacity:1}

/* ============================================================
   Journey
   ============================================================ */
.chart-a{
  padding:20px 18px 12px;
  border-radius:22px;
  background:var(--a-surface);
  border:1px solid var(--a-hair-2);
  box-shadow:var(--a-shadow);
}
.chart-a svg{display:block;width:100%;height:150px;overflow:visible}
.chart-a .area{fill:color-mix(in srgb, var(--a-accent) 14%, transparent)}
.chart-a .line{fill:none;stroke:var(--a-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chart-a .lbl{fill:var(--a-ink-3);font-size:9px;font-family:var(--sans)}
.chart-a .head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}
.chart-a .head b{
  font-family:var(--serif);font-size:2.5rem;font-weight:500;
  color:var(--a-title);font-variant-numeric:tabular-nums;line-height:1;
}

/* ============================================================
   You — stats & settings rows
   ============================================================ */
.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 18px}
.stat{
  padding:16px;border-radius:20px;
  background:var(--a-surface);border:1px solid var(--a-hair-2);
  box-shadow:var(--a-shadow);
}
.stat b{
  display:block;font-family:var(--serif);font-size:1.85rem;font-weight:500;
  color:var(--a-title);line-height:1;font-variant-numeric:tabular-nums;
}
.stat span{display:block;margin-top:7px;font-size:.74rem;color:var(--a-ink-3);line-height:1.35}

.grouplist{
  border-radius:22px;overflow:hidden;
  background:var(--a-surface);border:1px solid var(--a-hair-2);box-shadow:var(--a-shadow);
}
.grouplist .hd{
  padding:14px 16px 10px;font-size:.66rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--a-ink-3);
}
.grow{
  display:flex;align-items:center;gap:14px;
  width:100%;text-align:left;font:inherit;color:inherit;
  padding:14px 16px;border:0;background:transparent;cursor:pointer;
  border-top:1px solid var(--a-hair-2);
  transition:background .14s;
}
.grouplist .hd + .grow{border-top:0}
.grow:hover{background:var(--a-surface-2)}
/* a settings row may be a button or a link — they must look identical */
a.grow{text-decoration:none}
a.grow:hover{text-decoration:none}
a.sharecard,a.tile,a.prow,a.focus,a.monthrow,a.btn-a{text-decoration:none}
.grow .ic{
  width:34px;height:34px;border-radius:11px;flex-shrink:0;
  display:grid;place-items:center;
  background:var(--a-surface-2);border:1px solid var(--a-hair);color:var(--a-accent);
}
.grow .ic svg{width:17px;height:17px}
.grow .tx{flex:1;min-width:0}
.grow .tx b{display:block;font-weight:600;font-size:.92rem;color:var(--a-ink)}
.grow .tx span{display:block;font-size:.76rem;color:var(--a-ink-3);margin-top:2px}
.grow .chev{width:16px;height:16px;color:var(--a-ink-3);flex-shrink:0}

.switch{
  width:44px;height:26px;border-radius:999px;flex-shrink:0;
  background:var(--a-track);border:0;position:relative;cursor:pointer;
  transition:background .18s;padding:0;
}
.switch::after{
  content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .18s;
}
.switch.on{background:var(--a-accent)}
.switch.on::after{transform:translateX(18px)}

/* ============================================================
   Empty & loading states
   ============================================================ */
.empty{text-align:center;padding:40px 26px;color:var(--a-ink-3)}
.empty .g{
  width:60px;height:60px;border-radius:20px;margin:0 auto 16px;
  display:grid;place-items:center;
  background:var(--a-surface-2);border:1px solid var(--a-hair);color:var(--a-accent);
}
.empty .g svg{width:26px;height:26px}
.empty b{
  display:block;font-family:var(--serif);font-size:1.24rem;font-weight:500;
  color:var(--a-title);margin-bottom:7px;
}
.empty p{font-size:.87rem;line-height:1.6;margin:0 auto;max-width:34ch}

.skel{border-radius:16px;background:var(--a-surface-2);animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:.6}50%{opacity:.28}}

/* ============================================================
   Reach-out (calm, never alarming)
   ============================================================ */
.care{
  margin:18px;
  padding:18px;
  border-radius:22px;
  background:linear-gradient(160deg, color-mix(in srgb, var(--a-gold) 12%, transparent), transparent);
  border:1px solid var(--a-hair);
}
.care b{display:block;font-family:var(--serif);font-size:1.1rem;font-weight:500;color:var(--a-title);margin-bottom:6px}
.care p{font-size:.86rem;line-height:1.6;color:var(--a-ink-2);margin:0 0 14px}
.care .lines{display:flex;flex-wrap:wrap;gap:8px}
.care .lines button{
  font:inherit;font-size:.8rem;font-weight:600;
  padding:9px 14px;border-radius:999px;
  background:var(--a-surface);border:1px solid var(--a-hair);
  color:var(--a-accent);cursor:pointer;
}
.care .lines button:hover{border-color:var(--a-accent)}

/* ============================================================
   Utilities
   ============================================================ */
.stack-sm > * + *{margin-top:8px}
.stack > * + *{margin-top:14px}
.row{display:flex;align-items:center;gap:10px}
.row.between{justify-content:space-between}
.row.wrap{flex-wrap:wrap}
.row.end{justify-content:flex-end}
.mt-1{margin-top:8px}
.mt-2{margin-top:16px}
.mt-3{margin-top:24px}
.mb-2{margin-bottom:16px}
.center{text-align:center}
.hide{display:none!important}
.mono-num{font-variant-numeric:tabular-nums}
a.plain{color:var(--a-accent);text-decoration:none}
a.plain:hover{text-decoration:underline}

/* toast sits above the tab bar */
.toast{bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 22px);z-index:120}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
}

/* ============================================================
   The website
   ------------------------------------------------------------
   Below 768px this file describes a phone: a 480px column with a
   tab bar along the bottom. From 768px up the same markup becomes
   a website — the navigation moves into a header on one line with
   the crown, the column opens up to 1180px, and the dashboards
   lay themselves out in columns.
   ============================================================ */
@media (min-width:768px){
  :root{--gutter:32px}

  body.app{background:var(--a-bg)}
  .app-shell{max-width:none}

  /* ---- header ---- */
  .topbar{
    position:sticky;top:0;z-index:60;
    display:flex;align-items:center;gap:22px;
    padding:0 max(20px, calc((100% - var(--shell-max)) / 2 + var(--gutter)));
    background:color-mix(in srgb, var(--a-surface-2) 90%, transparent);
    backdrop-filter:blur(16px) saturate(140%);
    -webkit-backdrop-filter:blur(16px) saturate(140%);
    border-bottom:1px solid var(--a-hair);
  }
  body[data-theme="dark"] .topbar{background:rgba(26,14,6,.8)}
  #appbarhost{flex:0 0 auto}
  #tabhost{margin-left:auto;display:block}

  /* the crown lock-up turns sideways and the bar stops being a bar */
  .appbar{
    display:flex;align-items:center;gap:12px;
    padding:13px 0;
    background:none;backdrop-filter:none;-webkit-backdrop-filter:none;
  }
  .appbar .crown{flex-direction:row;align-items:center;gap:10px}
  .appbar .spacer-a{display:none}
  .appbar.transparent{background:none}

  /* the navigation becomes a row of links */
  .tabbar{
    position:static;left:auto;bottom:auto;transform:none;
    width:auto;height:auto;max-width:none;
    margin-left:auto;padding:0;
    display:flex;align-items:center;gap:2px;
    background:none;backdrop-filter:none;-webkit-backdrop-filter:none;
    border-top:0;
  }
  body[data-theme="dark"] .tabbar{background:none}
  .tab{
    flex-direction:row;gap:8px;
    padding:9px 15px;border-radius:999px;
    font-size:.85rem;letter-spacing:0;
    transition:background .15s,color .15s;
  }
  .tab svg,.tab.center svg{width:18px;height:18px;stroke-width:1.6}
  .tab:hover{background:var(--a-surface-3);color:var(--a-ink-2)}
  .tab.on{background:var(--a-surface);box-shadow:var(--a-shadow)}
  .tab.on svg{stroke-width:1.9}
  .tab .dot{display:none}

  /* ---- the page ---- */
  .page{max-width:var(--shell-max);margin:0 auto;padding:0 var(--gutter) 72px}
  .screen{padding-bottom:0}
  .moment .screen,.bare .screen{padding-bottom:48px}

  /* the screens carry phone gutters of their own; on the web the page does */
  .pad-x,.pillars,.tiles,.stats,.section-hd,.greeting{padding-left:0;padding-right:0}
  .ringcard,.focus{margin-left:0;margin-right:0}
  .focus{width:100%}
  .care{margin:26px 0 0}
  .section-hd{margin:30px 0 14px}

  /* ---- the sheet becomes a dialog ---- */
  .sheet{
    top:50%;bottom:auto;
    opacity:0;visibility:hidden;pointer-events:none;
    transform:translate(-50%,-46%) scale(.98);
    max-width:520px;
    padding:26px 28px 24px;
    border-radius:24px;
    max-height:80dvh;
    box-shadow:0 30px 80px rgba(48,25,15,.34);
    transition:opacity .22s,visibility .22s,transform .28s cubic-bezier(.25,.9,.3,1);
  }
  .sheet.open{
    opacity:1;visibility:visible;pointer-events:auto;
    transform:translate(-50%,-50%) scale(1);
  }
  .sheet .grip{display:none}

  /* nothing to clear at the bottom any more */
  .toast{bottom:34px}

  /* ============================================================
     The dashboards
     ------------------------------------------------------------
     The screens that carry a lot of pieces arrange them in
     columns here. Each screen names its own grid through the
     `data-screen` on `.page`, and the markup it is given the
     same names — so a phone, which never sees any of this,
     keeps its single column exactly as it was.
     ============================================================ */

  /* ---- Home: gauge and focus together, the word beside the care note ---- */
  /* ---- Home, at a desk ----
     Measured off `IM_HOME_01` at 1440: content is 1180 wide, the left
     column 740, a 28px gap, and the right column 392. So the ratio is
     1.89:1, and the right column carries the Inner Richness card and
     the Moment list — not the four-wide row the app used to draw.

     The date rule spans the whole content width; everything after it
     splits into the two columns. */
  .page[data-screen="home"]{
    display:block;
  }
  .page[data-screen="home"] > .home-cols{margin-top:0}
  .page[data-screen="home"] .greeting{padding-bottom:26px}
  .area-ann{width:100%;margin:16px 0 0}
  .area-ring{margin:0}
  .area-focus{margin:16px 0 0}
  .area-word{padding:0;margin:20px 0 0}
  .area-today-hd{margin:26px 0 0}
  .area-tiles{margin-top:14px}
  .area-care{margin:26px 0 0}
  .area-word .acard{
    box-sizing:border-box;
    display:flex;flex-direction:column;justify-content:center;
  }

  /* the four doors are wide enough now to breathe a little */
  .tile{padding:20px 12px 17px;gap:11px}
  .tile svg{width:26px;height:26px}
  .tile .nm{font-size:.92rem}
  .tile .sm{font-size:.68rem}

  /* ---- Practices & The Moment: two doors to a row ---- */
  .page[data-screen="practices"] .pillars,
  .page[data-screen="moment"] .pillars{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .page[data-screen="practices"] .prow,
  .page[data-screen="moment"] .prow{margin-bottom:0;height:100%}
  .page[data-screen="practices"] .pillars .empty,
  .page[data-screen="moment"] .pillars .empty{grid-column:1/-1}

  /* ---- one pillar: the practice on the left, its milestones on the right ---- */
  .page[data-screen="pillar"]{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
    column-gap:32px;
    grid-template-areas:
      "hero mshd"
      "prog ms"
      ".    ms"
      "how  how";
  }
  .pillar-hero{grid-area:hero}
  .pillar-progress{grid-area:prog;margin-top:24px}
  .pillar-ms-hd{grid-area:mshd;margin:6px 0 14px}
  .pillar-ms{grid-area:ms;align-self:start}
  /* the note closes the page, so the column beside the milestones is allowed
     to end wherever the milestones do */
  .pillar-how{grid-area:how;margin-top:26px;max-width:820px}

  /* ---- Journey: the chart beside what makes it up ---- */
  .page[data-screen="journey"]{
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
    column-gap:32px;
    grid-template-areas:
      "greet greet"
      "chart makeup-hd"
      "chart makeup"
      "months-hd months-hd"
      "months months"
      "foot foot";
  }
  .page[data-screen="journey"] > .greeting{grid-area:greet}
  .journey-chart{grid-area:chart;margin-top:26px;align-self:start}
  .journey-chart svg{height:210px}
  .journey-makeup-hd{grid-area:makeup-hd;margin:26px 0 14px;align-self:end}
  .journey-makeup{grid-area:makeup;align-self:start}
  .journey-months-hd{grid-area:months-hd}
  .journey-months{
    grid-area:months;
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;align-content:start;
  }
  .journey-months .monthrow{margin-bottom:0}
  .journey-months .empty{grid-column:1/-1}
  .journey-foot{grid-area:foot}

  /* one month is a single reading, not a dashboard */
  .page[data-screen="journey-month"]{max-width:820px}

  /* ---- You: one column, because that is what the design draws ----
     `IM_YOU_01` is a list — an identity header, a hairline, then the
     rows — and a phone has always drawn it that way. A desk was given
     four columns of doors instead, which is not in the design and did
     not survive being looked at: the list of doors has no area name of
     its own, so the grid auto-placed it into the `stats` row that
     nothing ever filled, stranding the first two rows in the first
     column, and the pencil was pushed to the far edge of a 1180px
     shell because the identity block spans all four. So it is a list
     again, at the reading width the month screen and the pillar's
     closing note already use. */
  .page[data-screen="you"]{max-width:820px}
  .you-id{padding-top:6px}

  /* ---- the four Moments: one quiet column, a little wider ---- */
  .wrap-narrow{max-width:640px}
}

/* ============================================================
   Admin — pillar CRUD
   A wider, plainer surface than the phone shell: it is used at
   a desk, by the person who curates the framework.
   ============================================================ */
body.admin{
  margin:0;
  background:var(--a-bg);
  color:var(--a-ink);
  min-height:100dvh;
  font-size:15px;
}
body.admin::before{display:none}

.admin-wrap{max-width:1000px;margin:0 auto;padding:0 22px 90px}
.admin-top{
  position:sticky;top:0;z-index:40;
  background:color-mix(in srgb, var(--a-surface-2) 92%, transparent);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--a-hair-2);
}
.admin-top .in{
  max-width:1000px;margin:0 auto;padding:14px 22px;
  display:flex;align-items:center;gap:14px;
}
.admin-top .crown{color:var(--a-accent);display:flex;align-items:center;gap:10px}
.admin-top .crown .word{font-family:var(--serif);font-size:1.06rem;color:var(--a-title)}
.admin-top .who{
  margin-left:auto;font-size:.76rem;color:var(--a-ink-3);
  display:flex;align-items:center;gap:10px;
}
.admin-lead{padding:26px 0 4px}
.admin-lead h1{margin:0 0 8px}
.admin-lead p{color:var(--a-ink-2);font-size:.92rem;line-height:1.6;margin:0;max-width:64ch}

.admin-tools{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 6px}
.admin-tools .spacer{flex:1}

.panel{
  background:var(--a-surface);border:1px solid var(--a-hair-2);
  border-radius:20px;box-shadow:var(--a-shadow);padding:20px;margin-top:16px;
}
.panel > h2{
  font-family:var(--serif);font-size:1.3rem;font-weight:500;
  color:var(--a-title);margin:0 0 4px;
}
.panel > .lead{font-size:.84rem;color:var(--a-ink-3);margin:0 0 18px}

.ptable{width:100%;border-collapse:collapse;font-size:.9rem}
.ptable th{
  text-align:left;padding:10px 12px;
  font-size:.66rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--a-ink-3);border-bottom:1px solid var(--a-hair);
  white-space:nowrap;
}
.ptable td{padding:13px 12px;border-bottom:1px solid var(--a-hair-2);vertical-align:middle}
.ptable tr:last-child td{border-bottom:0}
.ptable .nm{display:block;font-family:var(--serif);font-size:1.04rem;color:var(--a-title)}
.ptable .sub{display:block;font-size:.76rem;color:var(--a-ink-3);margin-top:3px}
.ptable td.act{text-align:right;white-space:nowrap}
.ptable .iconbtn{display:inline-grid}
.ptable .iconbtn svg{width:18px;height:18px}

.led{display:flex;align-items:center;gap:8px;font-size:.82rem;font-weight:600}
.led i{width:8px;height:8px;border-radius:50%;background:var(--a-track);display:block}
.led.on{color:var(--a-good)}
.led.on i{background:var(--a-good)}

.pgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:720px){.pgrid{grid-template-columns:1fr}}

.mrow{
  display:grid;grid-template-columns:26px 1fr auto;gap:10px;align-items:start;
  padding:12px;border-radius:14px;background:var(--a-surface-2);
  border:1px solid var(--a-hair-2);margin-bottom:9px;
}
.mrow .n{
  width:24px;height:24px;border-radius:8px;display:grid;place-items:center;
  font-size:.72rem;font-weight:700;color:var(--a-ink-3);
  background:var(--a-surface);border:1px solid var(--a-hair);
}
.mrow textarea{
  width:100%;box-sizing:border-box;border:1px solid var(--a-hair);
  border-radius:11px;padding:9px 11px;font:inherit;font-size:.88rem;
  background:var(--a-surface);color:var(--a-ink);resize:vertical;line-height:1.5;
}
.mrow textarea:focus{outline:none;border-color:var(--a-accent)}
.mrow .del{
  background:none;border:0;cursor:pointer;color:var(--a-ink-3);
  padding:4px;border-radius:8px;
}
.mrow .del:hover{color:#B4472F;background:rgba(180,71,47,.08)}
.mrow .del svg{width:17px;height:17px}

.seedbox{
  display:flex;flex-wrap:wrap;gap:9px;
}
.seedbox .chip-a{font-size:.82rem;padding:8px 13px}
.seedbox .chip-a svg{width:15px;height:15px}

/* ============================================================
   The doors — Welcome, and the eight auth screens
   ------------------------------------------------------------
   `IM_PUBLIC_01` and `IM_AUTH_01–18`. These sit outside the app
   shell: no app bar, no tab bar, their own field and their own
   mark. The palette comes from inmost.css, measured off the
   design rather than guessed at.

   The photography the design uses is not in this repo yet, so the
   art panels are the same kind of warm wash the Moment screens
   already use as a stand-in. Swapping in the real images is a
   background-image on `.whero-art` and `.auth-art`.
   ============================================================ */

.page[data-screen="welcome"],
.page[data-screen^="auth-"]{
  background:var(--paper-warm);
  color:var(--brand-ink);
  font-family:var(--sans);
}

/* ---------------- the first page ----------------
   `IM_PUBLIC_01` is one screen, not a page with sections. Every number
   below is read off the frame: a 1168 container (136 of gutter at
   1440), a 168 monogram, 56/60.5 Newsreader, 360×52 buttons at radius
   10 with two filled ink doors, and the gaps that put those baselines
   where the design draws them. The phone values come from the 390 and
   320 frames, which differ in size and in what the header carries —
   the wordmark and a three-line button, and nothing else. */

.winvite{display:flex;flex-direction:column;min-height:100dvh}

/* the shell's header and its 1180 column are for the app, not for this */
#shell.chromeless .topbar{display:none}
.page[data-screen="welcome"]{max-width:none;margin:0;padding:0}

.wtop{
  position:relative;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:16px max(20px, calc((100% - 1168px) / 2)) 0;
}
/* the box the frame measures from: 150×60 at a desk, 120×48 on a phone,
   so the monogram below it lands on the frame's own y */
.wtop .wamark{align-self:flex-start;height:60px;text-decoration:none}
.wtop .wamark .am1{font-size:1.9rem;letter-spacing:.13em}
.wtop .wamark .am2{font-size:.6rem;letter-spacing:.3em;gap:8px}

.wtop-doors{display:flex;align-items:center;gap:24px;margin-left:auto}
.wlink{
  display:inline-flex;align-items:center;height:44px;
  font-size:1rem;font-weight:700;color:var(--brand-ink);text-decoration:none;
}
.wpil{
  display:inline-flex;align-items:center;justify-content:center;
  height:44px;padding:0 22px;border-radius:10px;
  background:var(--brand-ink);color:var(--paper-warm);
  font-size:1rem;font-weight:700;text-decoration:none;
}
.wlink:hover,.wpil:hover{opacity:.86}

/* the three-line button the phone frame draws, and the panel it opens */
.wburger{
  display:none;align-items:center;justify-content:center;
  width:44px;height:44px;padding:0;margin-right:-9px;
  background:none;border:0;color:var(--brand-ink);cursor:pointer;line-height:0;
}
.wmenu{
  position:absolute;left:12px;right:12px;top:74px;z-index:60;
  padding:12px 24px 18px;border-radius:14px;
  background:#fff;border:1px solid #E3D8CB;
  box-shadow:0 18px 40px rgba(48,25,15,.12);
}
.wmenu-row{
  display:block;padding:12px 0;font-size:1rem;line-height:1.25;
  color:var(--brand-ink);text-decoration:none;
}

.whero{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:0 20px 40px;
}
.wmono{display:block;width:168px;height:168px;margin-top:44px}
.weyebrow{
  margin:21px 0 0;font-size:.8125rem;line-height:1.2;font-weight:400;
  letter-spacing:.14em;color:var(--brand-ink);
}
.wh1{
  margin:6px 0 0;max-width:min(600px,79.5vw);
  font-family:var(--serif-display);font-weight:400;
  font-size:3.5rem;line-height:1.08;letter-spacing:0;color:var(--brand-ink);
}
.wlead{
  margin:35px 0 0;max-width:min(406px,79.5vw);
  font-size:1.0625rem;line-height:1.219;color:var(--brand-ink);
}
.wdoors{display:flex;flex-direction:column;gap:10px;width:360px;margin-top:35px}
.wbtn{
  display:flex;align-items:center;justify-content:center;height:52px;
  border-radius:10px;background:var(--brand-ink);color:var(--paper-warm);
  font-size:1rem;font-weight:400;text-decoration:none;
}
.wbtn:hover{opacity:.88}

@media (max-width:860px){
  .wtop-doors{display:none}
  .wburger{display:inline-flex}
  .wtop .wamark{height:48px}
  .wtop .wamark .am1{font-size:1.5rem}
  .wtop .wamark .am2{font-size:.48rem;letter-spacing:.28em}
  .whero{padding-bottom:24px}
  .wmono{width:120px;height:120px;margin-top:20px}
  .weyebrow{margin-top:8px;font-size:.625rem}
  /* 84vw keeps the frame's own line break: "An invitation to journey" /
     "back to yourself." at 390, three lines at 320 */
  .wh1{font-size:2rem;margin-top:5px;max-width:84vw}
  .wlead{margin-top:27px;font-size:.9375rem;line-height:1.244}
  .wdoors{width:calc(100% - 28px);margin-top:23px}
}

/* ---------------- the eight auth screens ---------------- */

.auth{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.84fr);
  min-height:100dvh;align-items:stretch;
}
.auth-col{
  width:100%;max-width:560px;justify-self:end;
  padding:52px 56px;display:flex;flex-direction:column;justify-content:center;
}
.auth-art{
  margin:26px 26px 26px 0;
  border-radius:150px 40px 40px 40px;
  background:
    radial-gradient(120% 80% at 74% 10%, #F7E2C4 0%, transparent 56%),
    linear-gradient(160deg,#F0D6B2,#C08B5C 58%,#6F4A2C 100%);
}

/* the stacked mark: INMOST over a ruled MOMENT */
.amark{display:inline-flex;flex-direction:column;gap:6px;color:var(--brand-ink)}
.amark .am1{
  font-family:var(--serif-display);font-size:1.9rem;line-height:1;
  letter-spacing:.14em;text-transform:uppercase;
}
.amark .am2{
  display:flex;align-items:center;gap:10px;
  font-size:.68rem;letter-spacing:.34em;text-transform:uppercase;
  color:var(--brand-ink-muted);
}
.amark .am2 i{flex:1;height:1px;background:var(--brand-hair)}
.amarklink{text-decoration:none;align-self:flex-start;margin-bottom:26px}
.amarklink:hover{opacity:.82}

.ah1{
  font-family:var(--serif-display);font-weight:500;
  font-size:clamp(1.9rem,3.6vw,2.6rem);line-height:1.08;
  color:var(--brand-ink);margin:0 0 10px;
}
.alead{
  font-family:var(--serif-display);font-style:italic;
  font-size:1.05rem;color:var(--brand-ink-muted);margin:0 0 24px;
}
.acame{
  font-size:.88rem;color:var(--brand-ink-muted);
  background:var(--tint-rose);border-radius:12px;padding:11px 14px;margin:0 0 18px;
}

/* a refusal, said once, above the thing it is about */
.anotice{
  font-size:.87rem;line-height:1.45;color:var(--brand-ink);
  background:var(--tint-warm);border:1px solid var(--brand-hair);
  border-radius:12px;padding:11px 14px;margin:0 0 18px;
}

.aform{display:flex;flex-direction:column;gap:16px}
.afield{display:flex;flex-direction:column;gap:6px}
.alabel{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.alabel label{font-size:.8rem;font-weight:600;color:var(--brand-ink)}
.alink{
  font-size:.8rem;font-weight:600;color:var(--brand-brown);
  background:none;border:0;padding:0;cursor:pointer;text-decoration:none;
}
.alink:hover{text-decoration:underline}
.alabel .alink + .alink{margin-left:12px}
.afield input{
  width:100%;font:inherit;font-size:.95rem;color:var(--brand-ink);
  background:#FBF7F2;border:1px solid var(--brand-hair);border-radius:10px;
  padding:12px 14px;
}
.afield input:focus{outline:2px solid var(--brand-brown);outline-offset:1px}
.afield input[aria-invalid="true"]{border-color:#9B3D2B}
.ahint{margin:0;font-size:.78rem;line-height:1.4;color:var(--brand-ink-muted)}
.afield input[aria-invalid="true"] ~ .ahint{color:#9B3D2B}

/* three segments: guidance, not a gate — length is what is enforced */
.ameter{display:flex;gap:5px;margin-top:2px}
.ameter i{flex:1;height:3px;border-radius:999px;background:var(--brand-hair)}
.ameter[data-score="1"] i:nth-child(1){background:var(--brand-brown)}
.ameter[data-score="2"] i:nth-child(-n+2){background:var(--brand-brown)}
.ameter[data-score="3"] i{background:var(--brand-green)}

.acheck{display:flex;align-items:flex-start;gap:10px;font-size:.85rem;color:var(--brand-ink-muted)}
.acheck input{width:16px;height:16px;margin-top:2px;accent-color:var(--brand-brown)}

.afoot{margin:22px 0 0;font-size:.87rem;color:var(--brand-ink-muted)}
.afoot .alink{font-size:.87rem}

.acard.soft{
  background:var(--tint-warm);border:1px solid var(--brand-hair);
  border-radius:16px;padding:16px 18px;margin:0 0 6px;
}
.acard.soft .abody{font-size:.88rem;line-height:1.6;color:var(--brand-ink-muted);margin:0 0 8px}
.acard.soft .abody:last-child{margin-bottom:0}

/* the doors' own buttons: full width, and a pill rather than a card */
.page[data-screen^="auth-"] .btn-a,
.page[data-screen="welcome"] .btn-a{
  border-radius:999px;font-size:.9rem;padding:13px 22px;
}
.btn-a.wide{width:100%;margin-top:6px}
.page[data-screen^="auth-"] .btn-a.ghost{background:transparent;border:1px solid var(--brand-hair)}
.page[data-screen^="auth-"] .btn-a.ghost:hover{border-color:var(--brand-brown)}
.page[data-screen^="auth-"] .btn-a[disabled]{opacity:.55;cursor:default}

@media (max-width:900px){
  .auth{grid-template-columns:minmax(0,1fr)}
  .auth-art{display:none}
  .auth-col{max-width:none;padding:34px 22px 52px;justify-self:stretch}
}

/* ============================================================
   Phase 3b — the components, redrawn from the design
   ------------------------------------------------------------
   The palette is already the design's (Phase 3a). What follows is
   the *shape*: the dated masthead, the Moment rows, the Inner
   Richness card, and the type weights that carry them.

   Where a measurement was read off the render it says so. Where it
   was reasoned from proportion instead — because I could not read
   the image in the session that wrote this — it says `inferred`,
   and those are the numbers to check first.
   ============================================================ */

/* ---- the dated masthead ----
   Small caps, wide tracking, a hairline under it. Measured: the rule
   spans the content column and the label sits ~14px above it. */
.masthead{
  font-size:.68rem;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--a-ink-2);
  padding-bottom:12px;margin-bottom:18px;
  border-bottom:1px solid var(--a-hair);
}

/* the greeting is the largest thing on the screen after the heading,
   and the design sets it in the serif at display weight */
.greeting .hi{
  font-family:var(--serif-display);
  font-size:clamp(2rem,7vw,2.5rem);
  font-weight:500;line-height:1.06;letter-spacing:-.01em;
  color:var(--a-title);
}
.greeting .sub{
  margin-top:10px;
  font-family:var(--serif-display);font-style:italic;
  font-size:1.02rem;color:var(--a-ink-2);
}

/* a secondary line beside a section heading, for the design's
   "Any order. Skipping is fine." */
.section-hd .aside-a{
  margin-left:auto;font-size:.78rem;color:var(--a-ink-3);
  font-weight:500;letter-spacing:0;
}

/* ---- the Moment rows ----
   Measured off `IM_HOME_01`: rows sit on the page, not in a card, and
   are separated by hairlines. Pitch is 56px; the label is 20px serif;
   the right-hand text is 14px and BOLD, which is what makes the list
   read as a set of facts rather than a menu of links. The circle is
   drawn small — 20px — because it is a state mark, not a button. */
.mrows{
  background:none;border:0;box-shadow:none;
  border-top:1px solid var(--a-hair);
}
.mrow{
  display:grid;grid-template-columns:20px minmax(0,1fr) auto;
  gap:20px;align-items:center;
  width:100%;text-align:left;
  padding:12px 0;
  background:none;border:0;border-bottom:1px solid var(--a-hair-2);
  font:inherit;color:var(--a-ink);cursor:pointer;
  transition:background .16s;
}
.mrow:last-child{border-bottom:0}
.mrow:hover{background:var(--a-surface-2)}

.mrow .mtx{min-width:0;display:flex;flex-direction:column;gap:3px}
.mrow .nm{
  font-family:var(--serif-display);font-size:1.25rem;
  color:var(--a-title);line-height:1.15;
}
.mrow.done .nm{color:var(--a-ink-2)}
.mrow .nt{font-size:.8rem;color:var(--a-ink-3);line-height:1.35}
.mrow .rgt{
  font-size:.87rem;font-weight:700;color:var(--a-ink-2);
  white-space:nowrap;font-variant-numeric:tabular-nums;
}
.mrow.part .rgt{color:var(--a-ring)}

/* ---- today's thought, as the hero ----
   Measured off `IM_HOME_01`: a photograph with a large radius, and the
   thought beside it — an eyebrow with a small dot, a serif headline,
   one line of context, one button. The photograph is not in this repo
   yet, so `.hero-art` is the same warm wash the doors use; swapping in
   the real image is one `background-image`. */
.area-hero{
  display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);
  gap:26px;align-items:center;
  padding:0 18px;
}

/* ---- the Inner Richness card ----
   Measured off `IM_HOME_01`, card ~392px wide on a 1440 page:
     eyebrow at the top, full width, 13px caps, 26px inset
     then the ring (left) with the numeral (68px serif) and a narrow
     body column (14px, 21px leading) beside it
     then the "How this is measured" link back at the left inset.
   The numeral is not decoration: at 68px it is the card's subject,
   which is why the figure leads and the ring is drawn small beside it. */
.ringcard{
  /* the original rule made this a flex row; every child was being
     squeezed into it, which is why the eyebrow wrapped to three lines
     and the note to six */
  display:block;
  background:var(--a-surface-2);
  border:1px solid var(--brand-hair);
  box-shadow:none;
  padding:34px 26px 26px;
  border-radius:20px;
}
.ringcard > .eyebrow-a{
  font-size:.81rem;font-weight:700;letter-spacing:.14em;
  color:var(--a-ink-2);margin-bottom:16px;
}
/* the body column sits under the numeral, not beside the ring */
.ringcard .note{
  font-size:.87rem;line-height:1.5;color:var(--a-ink-2);
  max-width:22ch;margin:0;
}

/* ============================================================
   What is waiting to be saved
   ------------------------------------------------------------
   The design's offline banner: a thin dark-green strip across the
   very top, saying what happens next rather than what went wrong.
   It scrolls away with the page, the way the design draws it, so it
   is a note on arrival rather than a bar that follows you.
   ============================================================ */
.syncbar{
  padding:9px 18px;
  font-size:.78rem;line-height:1.4;text-align:center;
  background:var(--brand-green);color:#EAF1EE;
}
.syncbar.hide{display:none}

/* ============================================================
   Phase 5 — Library, and You as a list
   ------------------------------------------------------------
   Measured off `IM_YOU_01` at 390 wide: an identity header, a
   hairline, then seven rows on a **68px pitch**, each carrying a
   title, a subtitle and a chevron. The four numbers are not on the
   overview at all — they are `IM_YOU_03`, a screen of their own on a
   71px pitch.

   So `You` becomes a list of doors, and its figures move to
   `#/you/activity`. Library takes the same geometry: 68px rows,
   hairlines, no card.
   ============================================================ */

/* ---- Library ---- */
.liblist{border-top:1px solid var(--a-hair)}
.librow{
  display:grid;grid-template-columns:22px minmax(0,1fr) auto;
  gap:14px;align-items:start;
  width:100%;text-align:left;font:inherit;color:inherit;
  padding:14px 0;border:0;border-bottom:1px solid var(--a-hair-2);
  background:none;cursor:pointer;transition:background .16s;
}
.librow:last-child{border-bottom:0}
.librow:hover{background:var(--a-surface-2)}
.librow .kind{color:var(--a-ink-3);padding-top:2px}
.librow .kind svg{width:16px;height:16px}
.librow .tx{min-width:0;display:flex;flex-direction:column;gap:3px}
.librow .tt{
  font-family:var(--serif-display);font-size:1.05rem;
  line-height:1.25;color:var(--a-title);
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.librow .meta{font-size:.73rem;color:var(--a-ink-3)}
.librow .chev{color:var(--a-ink-3);padding-top:3px}
.librow .chev svg{width:15px;height:15px}

/* the sync states the design draws for the Library */
.libnote{
  font-size:.84rem;line-height:1.45;color:var(--a-ink-2);
  background:var(--a-surface-2);border:1px solid var(--a-hair);
  border-radius:12px;padding:11px 14px;margin:0 0 18px;
}
.libnote.failed{border-color:#9B3D2B;color:var(--a-ink)}

/* ---- Library: search, filters, month groups, rows ----
   `IM_LIB_01` puts a search box over four drop-downs, groups the list by
   the month it happened in, and gives every row a date, a kind, what was
   kept, and what was felt. */
.libframe .mtitle{max-width:26ch}
.libsearch{display:flex;align-items:center;gap:10px;margin-top:18px}
.libsearch input{
  flex:1;min-width:0;font:inherit;font-size:.92rem;
  padding:11px 14px;border-radius:999px;
  border:1px solid var(--a-hair);background:var(--a-surface);color:var(--a-ink);
}
.libsearch input:focus{outline:none;border-color:var(--a-accent)}
.libfilters{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.libfilters .filt{display:inline-flex}
.libfilters select{
  font:inherit;font-size:.8rem;color:var(--a-ink-2);
  padding:7px 26px 7px 12px;border-radius:999px;
  border:1px solid var(--a-hair);background:var(--a-surface);
  appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--a-ink-3) 50%),
                   linear-gradient(135deg,var(--a-ink-3) 50%,transparent 50%);
  background-position:calc(100% - 15px) 52%, calc(100% - 11px) 52%;
  background-size:4px 4px, 4px 4px;
  background-repeat:no-repeat;
}
.libfilters select:focus{outline:none;border-color:var(--a-accent)}
.libfiltered{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:12px;margin-top:14px;
}
.liblist{margin-top:16px;border-top:0}
.libmonth{margin-bottom:26px}
.libmonth-hd{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding-bottom:6px;border-bottom:1px solid var(--a-hair);
  font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--a-ink-3);
}
.libcount{font-weight:600;letter-spacing:.04em;text-transform:none;font-size:.76rem}
.librow{
  display:grid;grid-template-columns:56px minmax(0,1fr) auto;
  gap:12px;align-items:start;
}
.libdate{
  font-size:.72rem;font-weight:600;letter-spacing:.02em;
  color:var(--a-ink-3);padding-top:3px;font-variant-numeric:tabular-nums;
}
.libtx{min-width:0;display:flex;flex-direction:column;gap:3px}
.libkind{
  display:flex;align-items:center;gap:8px;
  font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--a-ink-3);
}
.pinmark{
  padding:1px 7px;border-radius:999px;
  background:var(--a-surface-2);border:1px solid var(--a-hair);
  font-size:.62rem;letter-spacing:.06em;color:var(--a-ink-2);
}
.libtt{
  font-family:var(--serif-display);font-size:1.05rem;
  line-height:1.25;color:var(--a-title);
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.libbb{
  font-size:.82rem;line-height:1.45;color:var(--a-ink-2);
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.libfeel{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.fchip{
  padding:2px 9px;border-radius:999px;
  background:var(--a-surface-2);border:1px solid var(--a-hair);
  font-size:.7rem;color:var(--a-ink-2);
}
.librow.pinned .libtt{color:var(--a-accent)}
.libnone,.libempty{padding:26px 0 8px;text-align:left}
.libnone .libtt,.libempty .mtitle{margin-bottom:8px}
.libempty .mtitle{max-width:22ch}
.libempty .btn-a{margin-top:12px}

/* ---- the Bin ---- */
.binlist{margin-top:18px}
.binrow{padding:14px 0;border-bottom:1px solid var(--a-hair-2)}
.binrow:last-child{border-bottom:0}
.binrow-hd{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.binrow .libtt{margin-top:4px}
.binrow .btnrow{margin-top:10px}

/* ---- one entry, opened ---- */
.libdetail-hd{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin-bottom:10px;
}
.libfelt{margin-top:16px;padding-top:12px;border-top:1px solid var(--a-hair-2)}
.libfelt .eyebrow-a{display:block;margin-bottom:8px}
.chip-a.locked{opacity:.62;cursor:not-allowed}
.libplan p{margin:0 0 6px}

/* ---- sharing: the card, the link, and the note about Status ----
   `IM_THOUGHT_03` puts a preview of the card first, then two ways to send
   it, then the link itself with a copy beside it. */
.shareprev{
  padding:18px;border-radius:18px;
  background:var(--paper-warm);border:1px solid var(--a-hair);
}
.shareprev-eb{
  font-size:.64rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--a-ink-3);
}
.shareprev-tt{
  margin-top:8px;font-family:var(--serif-display);font-size:1.24rem;line-height:1.24;
  color:var(--a-title);
}
.shareprev-ft{margin-top:12px;font-size:.74rem;color:var(--a-ink-3)}
.shareacts{display:flex;flex-direction:column;gap:8px}
.shareacts .btn-a{width:100%;justify-content:center;text-decoration:none}
/* the ghost variant has to read as a button on the sheet's own surface */
.shareacts .btn-a.ghost{
  color:var(--a-title);background:var(--a-surface);
  border:1px solid var(--a-hair);box-shadow:none;
}
.sharelink{display:flex;gap:8px;align-items:center}
.sharelink input{
  flex:1;min-width:0;font:inherit;font-size:.8rem;
  padding:9px 12px;border-radius:10px;
  border:1px solid var(--a-hair);background:var(--a-surface-2);color:var(--a-ink-2);
}
.sharenote{
  padding:12px 14px;border-radius:14px;
  background:var(--a-surface-2);border:1px solid var(--a-hair);
}
.sharenote b{display:block;font-size:.84rem;color:var(--a-title)}
.sharenote p{margin:4px 0 0;font-size:.8rem;line-height:1.45;color:var(--a-ink-2)}

/* ---- the public preview ----
   The one screen a stranger meets: one thought or story, an opening, and
   a door in. No tab bar, no Library, nothing of anyone's own. */
.prevframe{padding:10px 0 0}
.prevhead{
  margin-top:10px;font-family:var(--serif-display);font-size:2rem;line-height:1.16;
  color:var(--a-title);
}
.prevbody{
  margin-top:16px;font-size:1rem;line-height:1.7;color:var(--a-ink-2);
  white-space:pre-line;
}

   `IM_JOUR_01` lays the year out as a table of three columns rather than
   a chart: a month is a row of facts, and a line would imply a direction
   that a quieter month does not have. */
.jrfig{display:flex;align-items:baseline;gap:12px;margin:10px 0 4px;flex-wrap:wrap}
.jrfig b{
  font-family:var(--serif-display);font-size:3.2rem;font-weight:500;line-height:1;
  color:var(--a-title);font-variant-numeric:tabular-nums;
}
.jrfig span{font-size:.86rem;color:var(--a-ink-2)}
.jrnow{
  margin-top:18px;padding:16px;border-radius:20px;
  background:var(--a-surface);border:1px solid var(--a-hair);box-shadow:var(--a-shadow);
}
.jrnow-v{
  margin-top:4px;font-family:var(--serif-display);font-size:1.24rem;color:var(--a-title);
}
.jrlead{margin:2px 0 8px}
.jtable{
  border-top:1px solid var(--a-hair);
}
.jhead,.jrow{
  display:grid;grid-template-columns:minmax(0,1fr) auto 92px;
  gap:10px;align-items:baseline;
  padding:12px 0;border-bottom:1px solid var(--a-hair-2);
}
.jhead{
  font-size:.66rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--a-ink-3);
}
.jhead span:last-child,.jrow .jrd{text-align:right;font-variant-numeric:tabular-nums}
.jrow{
  width:100%;text-align:left;font:inherit;color:inherit;
  background:none;border-left:0;border-right:0;border-top:0;cursor:pointer;
}
.jrow:hover{background:var(--a-surface-2)}
.jrm{font-family:var(--serif-display);font-size:1.08rem;color:var(--a-title)}
.jrc{font-size:.8rem;color:var(--a-ink-3);white-space:nowrap}
.jrup{color:var(--a-good);font-weight:600}
.jrdown{color:var(--a-ink-2);font-weight:600}
.jrsteady,.jrfirst{color:var(--a-ink-3);font-size:.76rem}
.jrd{font-size:.86rem;color:var(--a-ink-2)}
.jrempty{padding:8px 0 0}
.jrempty .libtt{font-size:1.3rem;color:var(--a-title);margin-bottom:6px}
.jrblock{margin-top:16px}
.jrblock .eyebrow-a{display:block;margin-bottom:8px}
.jrgrew{display:flex;flex-wrap:wrap;gap:8px}
.jrframe .mcrumb .back{
  display:inline-flex;align-items:center;gap:6px;
  background:none;border:0;padding:0;cursor:pointer;
  font:inherit;font-size:.82rem;font-weight:600;color:var(--a-accent);
}

/* ---- You: the identity header, the doors, the five figures ---- */
.ypage .you-list .grow{
  display:flex;align-items:center;gap:14px;
}
.ypage .you-list .grow .ic{flex:none}
.ypage .you-list .grow .tx{flex:1;min-width:0}
.ypage .you-list .grow .chev{flex:none}
.ypage .youid{
  display:flex;align-items:center;gap:14px;padding:0 18px 16px;
  border-bottom:1px solid var(--a-hair);
}
.youid-tx{flex:1;min-width:0}
.youid-name{
  font-family:var(--serif-display);font-size:1.6rem;line-height:1.1;color:var(--a-title);
}
.youid-line{margin-top:2px;font-size:.86rem;color:var(--a-ink-2)}
.avatar{
  width:56px;height:56px;border-radius:50%;flex:none;overflow:hidden;
  display:grid;place-items:center;
  background:var(--a-surface-2);border:1px solid var(--a-hair);
}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.initial{
  font-family:var(--serif-display);font-size:1.5rem;color:var(--a-title);
}
.avatar.lg{width:64px;height:64px}
.yfigs{
  display:grid;grid-template-columns:minmax(0,1fr);gap:0;
  padding:0 18px;
}
.yfig{padding:16px 0;border-bottom:1px solid var(--a-hair-2)}
.yfig:last-child{border-bottom:0}
.yfig-hd{
  font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--a-ink-3);
}
.yfig-v{
  margin-top:4px;font-family:var(--serif-display);font-size:1.3rem;color:var(--a-title);
}
.yfig-s{margin-top:2px;font-size:.82rem;color:var(--a-ink-2)}
.yfig .link{margin-top:6px}

/* ---- a settings screen ---- */
.setpage{padding-bottom:8px}
.setform{padding:0 18px}
.setform .field-a{margin-bottom:14px}
.setform .btn-a{width:100%;justify-content:center}
.yemail{font-size:.9rem;color:var(--a-ink)}
.yphoto{
  display:flex;gap:16px;align-items:flex-start;padding:0 18px;
}
.yphoto-side{flex:1;min-width:0}
.yphoto-side b{font-size:.94rem;color:var(--a-title)}
.yphoto-side p{margin:4px 0 8px}
.hidden-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.opts{display:flex;gap:8px;flex-wrap:wrap}
.opt-pill{
  font:inherit;font-size:.8rem;color:var(--a-ink-2);
  padding:7px 14px;border-radius:999px;
  border:1px solid var(--a-hair);background:var(--a-surface);cursor:pointer;
}
.opt-pill.on{background:var(--a-green, var(--brand-green));border-color:var(--brand-green);color:var(--paper-warm)}
.ytime{
  font:inherit;font-size:.86rem;padding:7px 10px;border-radius:10px;
  border:1px solid var(--a-hair);background:var(--a-surface);color:var(--a-ink);
}
.pill-a.soon{
  margin-left:auto;margin-top:0;font-size:.66rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--a-ink-3);box-shadow:none;
}
.grow.danger .tx b{color:#9B3D2B}
.grow[disabled]{opacity:.55;cursor:not-allowed}

/* reduce motion: chosen, and applied to everything at once */
body[data-motion="reduce"] *,
body[data-motion="reduce"] *::before,
body[data-motion="reduce"] *::after{
  animation-duration:.001ms !important;
  animation-iteration-count:1 !important;
  transition-duration:.001ms !important;
  scroll-behavior:auto !important;
}

/* ---- You: a list of doors, 68px pitch, each with a subtitle ---- */
.you-list{border-top:1px solid var(--a-hair);padding:0 18px}
.you-list .grow{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  gap:12px;align-items:center;
  width:100%;text-align:left;font:inherit;color:inherit;
  padding:14px 0;border:0;border-bottom:1px solid var(--a-hair-2);
  background:none;cursor:pointer;transition:background .16s;
}
.you-list .grow:last-child{border-bottom:0}
.you-list .grow:hover{background:var(--a-surface-2)}
.you-list .tx{min-width:0;display:flex;flex-direction:column;gap:2px}
.you-list .tx b{
  font-family:var(--serif-display);font-weight:400;
  font-size:1.06rem;line-height:1.3;color:var(--a-title);
}
.you-list .tx span{font-size:.76rem;line-height:1.35;color:var(--a-ink-3)}
.you-list .chev{color:var(--a-ink-3)}
.you-list .chev svg{width:15px;height:15px}
.act-row{
  display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  padding:16px 0;border-bottom:1px solid var(--a-hair-2);
}
.act-row:last-child{border-bottom:0}
.act-row .lbl{font-size:.79rem;color:var(--a-ink-3);letter-spacing:.02em}
.act-row .val{
  font-family:var(--serif-display);font-size:1.5rem;line-height:1;
  color:var(--a-title);font-variant-numeric:tabular-nums;
}

/* Library joins the header on a desk, after a divider. On a phone the
   bar keeps its five, which is what the design draws. */
.tab.desktop-only{display:none}
@media (min-width:768px){
  .tab.desktop-only{
    display:flex;margin-left:10px;padding-left:18px;
    border-left:1px solid var(--a-hair);
    border-radius:0;
  }
  .tab.desktop-only:hover{background:none;color:var(--a-ink-2)}
  .tab.desktop-only.on{background:none;box-shadow:none}
}

/* ---- the Journey's number ----
   The design leads with the figure at ~72px and sets the reassurance
   beside it, because a number without a promise is a score. */
.jr-num{padding:0 18px}

/* ============================================================
   Phase 4 — You, and the two quiet screens
   ------------------------------------------------------------
   The same language as the rest: a hairline-ruled list on the page
   rather than a card per row, and the display serif carrying names
   and figures. `You` in the design is an overview first — who you
   are, then doors — with the figures one row deeper, on the Activity
   screen, where they are gone to rather than glanced at.
   ============================================================ */

/* the identity block: no card, just the name and where it sits */
.you-id .acard{
  background:none;border:0;box-shadow:none;
  border-radius:0;padding:0;
}

/* a list of doors, ruled between — not a card per door */
.grouplist{
  border-radius:0;overflow:visible;
  background:none;border:0;box-shadow:none;
  border-top:1px solid var(--a-hair);
}
.grouplist .grow{
  border-radius:0;border:0;border-bottom:1px solid var(--a-hair-2);
  padding:14px 0;background:none;
}
.grouplist .grow:last-child{border-bottom:0}
.grouplist .grow:hover{background:var(--a-surface-2)}
.grouplist .tx b{
  font-family:var(--serif-display);font-weight:400;
  font-size:1.02rem;color:var(--a-title);
}
.grouplist .tx span{font-size:.76rem;color:var(--a-ink-3)}

/* ============================================================
   Phase 4 — the four Moments
   ------------------------------------------------------------
   Measured off `IC_MOMENT_11` (Feel) and `IC_MOMENT_04` (Silence):

     a breadcrumb at the left and "3 of 4" at the right, on the same
     line, at the top
     then a centred column, 752px wide on a 1440 page, with
     the eyebrow at 13px, the title at 52px, the lead italic at 21px

   The frame is what changed, not the colour: the Moments used to run
   edge to edge under their own bar, and the design gives them a
   centred measure with a quiet way back and a count of where you are.

   Silence runs to a much narrower measure — 224px for its title — and
   is centred right through, because there is only one thing happening
   on that screen at a time.
   ============================================================ */

.mframe{
  width:100%;max-width:752px;
  margin:0 auto;padding:26px 18px 40px;
}
.mframe-narrow{max-width:752px}

/* Silence is the one Moment whose content is a single narrow column.
   `IC_MOMENT_04` sets the ring and the buttons in the middle of the
   frame while the breadcrumb and the appearance switch stay out at
   the edges, so the column is capped and centred inside the frame
   rather than the frame being narrowed around everything. */
.mframe-narrow .center-col{
  max-width:430px;margin-left:auto;margin-right:auto;width:100%;
}

/* the way back and the count share one line */
.mcrumb{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;margin-bottom:26px;
}
.mcrumb .back{
  display:inline-flex;align-items:center;gap:6px;
  background:none;border:0;padding:0;font:inherit;
  font-size:.82rem;font-weight:600;color:var(--a-ink-2);
  cursor:pointer;
}
.mcrumb .back:hover{color:var(--a-title)}
.mcrumb .back svg{width:13px;height:13px}
.mcrumb .count{font-size:.82rem;color:var(--a-ink-3)}

/* the eyebrow, the title, the lead — the rhythm every Moment shares */
.meyebrow{
  font-size:.81rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--a-ink-2);
  margin-bottom:10px;
}
.mtitle{
  font-family:var(--serif-display);
  font-size:clamp(2rem,4.6vw,3.25rem);
  line-height:1.06;letter-spacing:-.01em;
  color:var(--a-title);margin:0 0 8px;
}
.mlead{
  font-family:var(--serif-display);font-style:italic;
  font-size:1.28rem;line-height:1.45;color:var(--a-ink-2);
  margin:0 0 26px;max-width:44ch;
}
.center-col .meyebrow,
.center-col .mtitle,
.center-col .mlead{text-align:center;margin-left:auto;margin-right:auto}

/* ============================================================
   Phase 3b — the practice rows, the checklist, the Journey
   ------------------------------------------------------------
   The same correction three times over: the design does not put a
   list in a card. It rules hairline between rows and lets the page
   be the container. Measured on Home's Moment list — 55-57px pitch,
   hairlines, no box — and the same geometry appears on the Journey's
   month rows at a 62px pitch.

   So `.prow`, `.check` and `.monthrow` stop being floating cards. A
   card behind every item was the app's old habit; the design's list
   reads as one thing with divisions rather than many things loose.
   ============================================================ */

/* ---- the chapter list ---- */
.pillars{padding:0 18px}
.prow{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
  padding:16px 0;
  margin-bottom:0;
  border:0;
  border-top:1px solid var(--a-hair);
  border-radius:0;
  background:none;
  box-shadow:none;
  cursor:pointer;
  text-align:left;width:100%;font:inherit;color:inherit;
  transition:background .16s;
}
.prow:hover{transform:none;box-shadow:none;background:var(--a-surface-2)}
.prow .n{
  font-family:var(--serif-display);font-size:1.05rem;
  color:var(--a-accent);font-variant-numeric:tabular-nums;
  line-height:1.3;
}
.prow .nm{
  font-family:var(--serif-display);font-size:1.16rem;
  color:var(--a-title);line-height:1.25;
  display:block;
}
.prow .desc{
  font-size:.83rem;color:var(--a-ink-2);
  margin:4px 0 0;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.prow .right{display:flex;align-items:center;gap:10px;color:var(--a-ink-3);padding-top:3px}
.prow .right svg{width:16px;height:16px}
.prow .pct{
  font-size:.83rem;font-weight:700;color:var(--a-ink-2);
  font-variant-numeric:tabular-nums;
}
/* the thin progress line sits close under the description — the
   design keeps it as a quiet measure, not a bar that owns a band of
   its own */
.prow .progress-a{margin-top:9px}

/* ---- the milestone checklist ----
   The design sets a claimed statement in the display serif and dates
   it underneath — "I keep promises I make to myself" / "Self-Trust ·
   12 October". The open one is the only row with something to press,
   and it is a quiet underlined link rather than a filled button,
   because claiming is a decision the person makes rather than a task
   the app asks them to complete. */
.checklist{
  border-radius:0;overflow:visible;
  background:none;border:0;box-shadow:none;
  border-top:1px solid var(--a-hair);
}
.check{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  gap:16px;
  align-items:start;
  padding:18px 0;
  border-bottom:1px solid var(--a-hair-2);
}
.check:last-child{border-bottom:0}
.check{scroll-margin-top:78px}
.check .n{
  position:relative;
  width:22px;height:22px;border-radius:50%;
  display:grid;place-items:center;
  background:none;border:1.5px solid var(--a-ink-3);
  font:inherit;font-size:.7rem;font-weight:700;color:var(--a-ink-2);
  font-variant-numeric:tabular-nums;
  padding:0;appearance:none;margin-top:2px;
  transition:background .2s,color .2s,border-color .2s;
}
.check .tx{
  font-family:var(--serif-display);
  font-size:1.05rem;line-height:1.35;color:var(--a-ink);
  transition:color .2s;
}
.check > div > .tx{padding-top:0}
.check .meta{
  display:flex;align-items:center;gap:8px;margin-top:6px;
  font-size:.76rem;color:var(--a-ink-3);
}
.check .meta svg{width:13px;height:13px}
.check .claim{
  display:inline-flex;align-items:center;gap:5px;
  padding:0;border:0;background:none;
  font:inherit;font-size:.83rem;font-weight:700;color:var(--a-accent);
  cursor:pointer;transition:color .16s;margin-top:4px;white-space:nowrap;
  text-decoration:underline;text-underline-offset:3px;
}
.check .claim:hover{color:var(--a-title)}
.check .claim svg{width:13px;height:13px}

.check.active .n{border-color:var(--a-accent);color:var(--a-accent)}
.check.done .n{
  background:var(--a-ring);border-color:var(--a-ring);
  color:#FFFFFF;cursor:pointer;
}
.check.done .n::after{content:'';position:absolute;inset:-9px;border-radius:50%}
.check.done .n:hover{filter:brightness(1.08)}
.check.done .n:focus-visible{outline:2px solid var(--a-accent);outline-offset:4px}
/* a claimed statement keeps its weight and loses its brightness — it
   is still what the person said, just done being new */
.check.done .tx{color:var(--a-ink-2);font-style:italic}

.checklist-more{
  margin:0;padding:14px 0;border-top:0;
  font-size:.79rem;color:var(--a-ink-3);text-align:left;
}

/* ---- the Journey chart ----
   Teal, not brown: the chart is the practice measured, and the design
   keeps the practice in the second accent. No area fill — the design
   draws a line with a dot per month, so the line is the subject and
   the space beneath it is left alone. */
.chart-a{
  background:var(--paper-raised);
  border:1px solid var(--a-hair);
  border-radius:18px;
  padding:18px 16px 12px;
}
.chart-a svg{display:block;width:100%;height:150px;overflow:visible}
.chart-a .area{fill:none}
.chart-a .line{
  fill:none;stroke:var(--a-ring);stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}
.chart-a .lbl{fill:var(--a-ink-3);font-size:9px;font-family:var(--sans)}
.chart-a .head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}

/* ---- the month rows ----
   Measured off `IC_JOUR_01` at 390 wide: a 62px pitch between rows,
   the month in the display serif, "N reflective days" beneath it, the
   score set large on the right with a small ring beside it. Hairlines,
   no card — the same correction as everywhere else here.

   The ring is drawn in CSS rather than as an SVG per row: one conic
   gradient carries the whole of it, which matters when a year is
   twelve rows. */
.monthrow{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;
  width:100%;text-align:left;font:inherit;color:inherit;
  padding:11px 0;margin-bottom:0;border-radius:0;
  background:none;border:0;border-top:1px solid var(--a-hair);
  box-shadow:none;cursor:pointer;
  transition:background .16s;
}
/* a quiet month is not a failure: the design says "A quieter month —
   nothing lost", and the ring goes pale rather than empty */
.monthrow.calm .rng{background:conic-gradient(var(--a-track) 0, var(--a-track) 100%)}

/* ============================================================
   Home's two columns
   ------------------------------------------------------------
   Deliberately at the end of this file and NOT inside the
   `min-width:768px` block: a `max-width` rule nested inside a
   `min-width` one can never match, which is exactly how the phone
   layout first broke here.
   ============================================================ */

.home-cols{display:block}

@media (min-width:768px){
  /* Two independent columns: the measure on the left, the day on the
     right, each scrolling past the other. */
  .hgrid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
    column-gap:36px;
    align-items:start;
    padding:0 18px;
  }
  .hcol{padding:0}
  .hgrid .ringcard{margin:16px 0 0}
}
@media (max-width:767px){
  /* One column, in the order the design draws: greeting, the measure,
     then today's three steps and the story behind them. */
  .hgrid{display:flex;flex-direction:column;gap:6px}
  .hcol{display:block;padding:0 18px}
  .hgrid .ringcard{margin:16px 0 0}
  .hgrid .storycard{margin:14px 0 0}
  .hgrid .section-hd{padding:0}
  .hgrid .area-today-lead{margin-left:0;margin-right:0}
}
/* ============================================================
   Phase 6 — the first three minutes
   ------------------------------------------------------------
   `IC_ONB_01–05`, measured off `IC_ONB_02`. Everything here is a
   number read off that render at 390 wide: the 200px band, the
   20px gutter, the 8px pills 5px apart, the 13/34/17 type, the
   36px and 28px pitches, the 54px button.
   ============================================================ */

.page[data-screen="onboarding"]{
  background:var(--paper-warm);
  color:var(--brand-ink);
  font-family:var(--sans);
}

.onb{min-height:100dvh;display:flex;flex-direction:column}

/* The band is photography in the file. Until that photography is in
   this repo it is the same warm wash the landing page and the doors
   already use, turned a little differently on each step so three
   screens in a row do not look like one screen reloading. Swapping
   the real images in is a background-image here and nothing else. */
.onb-art{
  flex:none;height:200px;
  background:
    radial-gradient(110% 80% at 76% 8%, #F7E2C4 0%, transparent 58%),
    linear-gradient(152deg,#EED7B6,#BC8C60 58%,#6E4A2C 100%);
}
.onb[data-step="2"] .onb-art{
  background:
    radial-gradient(110% 80% at 22% 10%, #F3DEC0 0%, transparent 60%),
    linear-gradient(200deg,#E7D0AE,#B08055 60%,#63402A 100%);
}
.onb[data-step="3"] .onb-art{
  background:
    radial-gradient(120% 90% at 50% 0%, #F9E7CC 0%, transparent 62%),
    linear-gradient(168deg,#F0DABC,#C29367 62%,#7A5334 100%);
}
.onb[data-step="pick"] .onb-art{height:150px}

/* One measure, the same on a phone and on a desk. Onboarding is
   three sentences at a time; a wider column would only make the
   lines longer than they should be read. */
.onb-col{
  flex:1;width:100%;max-width:390px;margin:0 auto;
  padding:0 20px 40px;display:flex;flex-direction:column;
}

/* the gap the design leaves between the band and the first line */
.onb-top{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding-top:129px;
}

.onb-pips{display:flex;align-items:center;gap:5px}
.onb-pips i{
  display:block;height:8px;width:9px;border-radius:999px;
  background:var(--brand-hair);
  transition:width .18s ease,background .18s ease;
}
.onb-pips i.done{background:var(--brand-brown)}
.onb-pips i.now{width:25px;background:var(--brand-brown)}

.onb-skip{
  font:inherit;font-size:.94rem;color:var(--brand-ink-muted);
  background:none;border:0;padding:0;cursor:pointer;
}
.onb-skip:hover{color:var(--brand-brown)}

.onb-eyebrow{
  margin:27px 0 0;font-size:.81rem;letter-spacing:.15em;
  text-transform:uppercase;color:var(--brand-ink-muted);
}
/* The render wraps the title well before the column does — "Ten
   pillars," then "claimed when true." on a line with room to spare —
   so the heading carries a tighter measure than the body under it.
   Measured: the second line is 274px wide and the first breaks at
   296, which puts the measure between the two. */
.onb-h{
  font-family:var(--serif-display);font-weight:500;
  font-size:2.13rem;line-height:1.06;letter-spacing:-.01em;
  color:var(--brand-ink);margin:4px 0 0;max-width:292px;
}
.onb-p{
  font-size:1.06rem;line-height:1.65;color:var(--brand-ink);
  margin:18px 0 0;
}

.onb-acts{margin:23px 0 0;display:flex;flex-direction:column;gap:16px}
.onb-back{
  font:inherit;font-size:.94rem;color:var(--brand-ink-muted);
  background:none;border:0;padding:0;cursor:pointer;align-self:center;
}
.onb-back:hover{color:var(--brand-brown)}
.onb-back-space{display:block;height:1.45em}

/* ---- the choice ----
   Every pillar in the framework, each a row you can put a finger on
   rather than a chip you have to aim at. The check is drawn always
   and coloured only when chosen, so nothing in the row moves when
   it is picked. */
.onb-pillars{display:grid;gap:10px;margin:30px 0 0}
.onb-pillar{
  display:flex;align-items:flex-start;gap:14px;width:100%;text-align:left;
  font:inherit;cursor:pointer;
  background:transparent;border:1px solid var(--brand-hair);
  border-radius:16px;padding:15px 16px;
  transition:border-color .16s ease,background .16s ease;
}
.onb-pillar:hover{border-color:var(--brand-brown)}
.onb-pillar.on{background:var(--tint-warm);border-color:var(--brand-brown)}
.onb-pillar .pn{
  font-family:var(--serif-display);font-size:1rem;color:var(--brand-brown);
  font-variant-numeric:tabular-nums;line-height:1.4;
}
.onb-pillar .ptx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.onb-pillar .pnm{
  font-family:var(--serif-display);font-size:1.08rem;color:var(--brand-ink);
}
/* Ten rows carrying a paragraph each is a screen two and a half
   screens long, which is not a question anyone wants to answer on a
   phone. The name is the choice; the description is there on a desk,
   and in Practices afterwards, for anyone who wants it. */
.onb-pillar .pdv{display:none;font-size:.82rem;line-height:1.5;color:var(--brand-ink-muted)}
.onb-pillar .pmk{
  flex:none;width:20px;height:20px;border-radius:999px;margin-top:2px;
  display:flex;align-items:center;justify-content:center;
  color:transparent;border:1px solid var(--brand-hair);
}
.onb-pillar.on .pmk{
  color:var(--paper-warm);background:var(--brand-brown);border-color:var(--brand-brown);
}

@media (min-width:900px){
  .onb-art{height:280px}
  .onb[data-step="pick"] .onb-art{height:200px}
  .onb-top{padding-top:96px}
  .onb-col{max-width:560px;padding:0 24px 64px}
  .onb-h{font-size:2.6rem}
  .onb-pillars{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .onb-pillar .pdv{display:block}
}
/* The measured frame is 390 wide, so 390 must be exactly what the
   design draws. This only rescues the genuinely small phones, where
   the same 34px title would leave two words to a line. */
@media (max-width:360px){
  .onb-top{padding-top:96px}
  .onb-h{font-size:1.85rem}
  .onb-p{font-size:1rem}
}

/* ============================================================
   Phase 7 — the state screens
   ------------------------------------------------------------
   `IC_MOMENT_02–10`, `IC_JOUR_*`, `IM_HOME_12`, `IM_LIB_19`. The
   ring's 210px and 8px stroke, the type sizes and every gap in the
   stack below come off `IC_MOMENT_06` and `_07` at 390 wide, read
   back from the 2x export.
   ============================================================ */

/* ---- the appearance switch on the Moments' frame ----
   `IC_MOMENT_04`: two words in a pill, the live one filled. It is a
   setting rather than a view toggle, so it is remembered. */
.themeswitch{
  display:inline-flex;align-items:center;gap:2px;
  padding:3px;border-radius:999px;border:1px solid var(--brand-hair);
  background:transparent;
}
.themeswitch button{
  font:inherit;font-size:.78rem;font-weight:600;
  color:var(--brand-ink-muted);background:none;border:0;cursor:pointer;
  padding:5px 14px;border-radius:999px;
}
.themeswitch button.on{background:var(--brand-green);color:var(--paper-warm)}
.themeswitch button:hover:not(.on){color:var(--brand-ink)}

/* ---- the stillness ring ----
   210px across, an 8px stroke, drawn from twelve o'clock. The track
   is the whole sitting; the arc is what has been given of it. */
.sring{
  position:relative;width:210px;height:210px;margin:24px auto 0;flex:none;
}
.sring svg{width:100%;height:100%;display:block}
.sring .trk{fill:none;stroke:rgba(47,85,84,.16)}
.sring .val{
  fill:none;stroke:var(--brand-green);stroke-linecap:butt;
  transition:stroke-dashoffset .3s linear;
}
.sring .smid{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:2px;text-align:center;
}
.sring .smid b{
  font-family:var(--serif-display);font-weight:400;
  font-size:3.1rem;line-height:1;color:var(--brand-ink);
  font-variant-numeric:tabular-nums;
}
.sring .smid i{
  font-style:normal;font-size:.72rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--brand-ink-muted);
}

/* the ways out of a state, under the ring */
.sacts{
  display:flex;align-items:center;justify-content:center;
  gap:14px;margin-top:24px;flex-wrap:wrap;
}
.sacts.rows{flex-direction:column;gap:12px}
.sacts .btn-a{width:auto;min-width:150px;margin-top:0}
.sacts .link{color:var(--brand-ink-muted);text-decoration:none}
.sacts .link:hover{color:var(--brand-brown)}

/* `IC_MOMENT_07` keeps its title at the same size as the others even
   though it is a sentence: the sentence is the heading. It only needs
   a touch less width to stay on one line in this face. */
.stitle{font-size:1.8rem}

/* ---- a phone, inside a Moment ----
   `IC_MOMENT_06` draws the breadcrumb and the appearance switch at
   the very top with no product header above them, and keeps the tab
   bar at the bottom. A desk is the other way round: the header
   carries the navigation and there is no tab bar. The shell already
   moves the navigation between the two; what it does not do is drop
   the header on a phone, so that is done here and only for a Moment.

   The display face this app ships is wider than the one in the file,
   so a title that fits on one line there wraps here. The size comes
   down a little and the tracking tightens to buy the measure back,
   because the design's own wrap point is what the screen below it is
   laid out around. */
@media (max-width:899px){
  #shell.moment #appbarhost{display:none}
  #shell.moment .mframe{padding-top:4px}
  .mframe-narrow .mtitle{font-size:1.9rem;letter-spacing:-.02em}
  .mframe-narrow .stitle{font-size:2rem}
  .mframe-narrow .mcrumb{margin-bottom:16px}
  /* the eyebrow's line box carries more slack than the design's, so it
     is closed up and the title is pulled back to where the render puts
     it — measured ink to ink, 17px between the two */
  .mframe-narrow .meyebrow{line-height:1;margin-bottom:-12px}
  .mframe-narrow .mtitle{margin-bottom:-6px}
  .mframe-narrow .mlead{font-size:1.14rem;line-height:1.26;margin-bottom:0}
  /* and the same again under the ring: 24px from the lead to the ring
     and 24px from the ring to the ways out, both measured ink to ink */
  .mframe-narrow .sring{margin-top:1px}
  .mframe-narrow .sacts{margin-top:6px}
  /* a stack of three sits closer to the ring than a row of two */
  .mframe-narrow .sacts.rows{margin-top:-16px}
}

/* `IC_MOMENT_06` sets the appearance switch 48px tall — the same
   height as a finger target, which is what it is. */
.themeswitch{padding:4px}
.themeswitch button{
  display:inline-flex;align-items:center;height:38px;padding:0 16px;
}

@media (min-width:900px){
  .sring{width:280px;height:280px}
  .sring .smid b{font-size:4rem}
}

/* ---- a sitting that is still open, on Home ----
   `IM_HOME_12` draws the Silence row differently from the other
   three: washed in the Moment's own field, with the time that is
   left and a way back in. */
.mrow.carried{background:var(--field-moment);border-radius:14px;padding-left:12px;padding-right:12px}
.mrow.carried .resume{
  font:inherit;font-size:.86rem;font-weight:600;color:var(--brand-green);
  background:none;border:0;padding:0;cursor:pointer;
}
.mrow.carried .resume:hover{text-decoration:underline}

/* ---- a refused microphone ----
   `IC_MOMENT_16`. Not an error, and not dressed up as a working
   recorder: a sentence, and the way that still works beside it. */
.micno{
  background:var(--tint-warm);border:1px solid var(--brand-hair);
  border-radius:14px;padding:14px 16px;
}
.micno b{
  display:block;font-family:var(--serif-display);font-weight:500;
  font-size:1.06rem;color:var(--brand-ink);margin-bottom:4px;
}
.micno p{margin:0 0 12px;font-size:.87rem;line-height:1.55;color:var(--brand-ink-muted)}
.micno .btnrow{display:flex;gap:10px;flex-wrap:wrap}
.micno .btn-a{width:auto}

/* ---- a quiet month ----
   `IC_JOUR_04`: a month where nothing happened says so, and says
   that it is not a loss. */
.monthrow .quiet{color:var(--brand-ink-3)}
