/* RAiSE LiFE · phone first.
   One rule for color: a color is a stage. Pregnancy, Baby, Little, Child, Teen and Beyond
   each own one hue, and everything a moment wears takes its stage's hue. */
:root {
  --paper: #FBF6EE; --paper2: #F3EADC; --card: #FFFDF9;
  --ink: #2B2A33; --ink2: #57525C; --muted: #6B636A; --rule: rgba(43,42,51,.12);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 20px; --tab: 62px; --pad: 18px;
  --st: #C9766A; --st-deep: #7E3F37; --st-soft: #F6E3DC; --st-floor: #EDCFC5;
  --st-on: #AB6056; /* the stage hue dark enough for white words (4.5:1) */
}
.st-pregnancy, body[data-stage="pregnancy"] { --st: #C9766A; --st-deep: #7E3F37; --st-soft: #F6E3DC; --st-floor: #EDCFC5; --st-on: #AB6056; }
.st-baby,      body[data-stage="baby"]      { --st: #D49B2E; --st-deep: #80590B; --st-soft: #FAEFD2; --st-floor: #F2DFAE; --st-on: #996D15; }
.st-little,    body[data-stage="little"]    { --st: #6F9A6B; --st-deep: #38593A; --st-soft: #E2EEDD; --st-floor: #CDE0C6; --st-on: #577D55; }
.st-child,     body[data-stage="child"]     { --st: #4F86AE; --st-deep: #264F70; --st-soft: #DCEAF4; --st-floor: #C4DAEA; --st-on: #467AA0; }
.st-teen,      body[data-stage="teen"]      { --st: #7A66A0; --st-deep: #453763; --st-soft: #E7E1F1; --st-floor: #D5CBE6; --st-on: #7A66A0; }
.st-beyond,    body[data-stage="beyond"]    { --st: #5B6470; --st-deep: #30363F; --st-soft: #E6E8EC; --st-floor: #D3D7DE; --st-on: #5B6470; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.45 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; flex: none; }

.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

/* ── Preview strip */
.strip { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #F4EEE6; padding: calc(7px + env(safe-area-inset-top)) var(--pad) 8px; }
.s-line { font-size: 12.5px; line-height: 1.3; color: rgba(244,238,230,.82); }
.s-line b { color: #fff; font-weight: 700; letter-spacing: .04em; }
.s-see { display: flex; align-items: center; gap: 6px; margin-top: 7px; overflow-x: auto; scrollbar-width: none; }
.s-see::-webkit-scrollbar { display: none; }
.s-see > span { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,238,230,.6); white-space: nowrap; margin-right: 2px; }
.s-see button { flex: none; border: 1px solid rgba(244,238,230,.26); background: none; color: #F4EEE6; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.s-see button[aria-pressed="true"] { background: #F4EEE6; color: var(--ink); border-color: #F4EEE6; }

.view { flex: 1; display: flex; flex-direction: column; padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); }

/* ── Sample pill: dashed, small, never loud */
.pill.sample { display: inline-block; vertical-align: middle; border: 1px dashed currentColor; border-radius: 999px; padding: 1px 7px; font: 700 9.5px/1.5 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ── Tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 560px; margin: 0 auto; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: rgba(251,246,238,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--rule); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px 3px; font: 600 11px/1.2 var(--body); color: var(--muted); border-radius: 12px; }
.tabbar a .ti { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 14px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] .ti { background: var(--st-soft); color: var(--st-deep); }

/* ── Home */
.home { flex: 1; display: flex; flex-direction: column; padding: 14px var(--pad) 14px; background: linear-gradient(180deg, var(--st-soft) 0, var(--paper) 46%); }
.h-top { display: flex; justify-content: space-between; align-items: baseline; }
.wm { font: 600 13px/1 var(--body); letter-spacing: .2em; color: var(--ink2); }
.wm b { font-weight: 700; color: var(--st-deep); }
.h-date { font-size: 13px; color: var(--ink2); }
.h-hello { margin-top: 16px; font: 500 17px/1.2 var(--body); color: var(--ink2); }
.h-stage { display: block; margin-top: 4px; }
.hs-title { font: 600 clamp(44px, 13.5vw, 58px)/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.hs-sub { margin-top: 6px; font: 500 16.5px/1.3 var(--body); color: var(--st-deep); }

/* Talk it leads: first and biggest, under the greeting. sizeOrb() sets --ob so Home fits one phone screen. */
.home { --ob: min(60vw, 30dvh, 280px); }
.h-talk { display: flex; justify-content: center; padding: 14px 0 18px; }
.h-top { margin-bottom: auto; } .h-left { margin-bottom: auto; }   /* a tall screen (a tablet) centers the block instead of leaving a gap at the bottom */
.orb { width: var(--ob); height: var(--ob); border: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; background: radial-gradient(circle at 50% 30%, var(--st-on), var(--st-deep) 118%); box-shadow: 0 20px 38px -14px var(--st-deep), 0 0 0 9px var(--st-soft), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .12s ease; cursor: pointer; }
.orb .ic { width: calc(var(--ob) * .24); height: calc(var(--ob) * .24); stroke-width: 1.5; }
.orb .o-main { font: 600 calc(var(--ob) * .13)/1 var(--display); margin-top: 6px; }
.orbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 10px 24px -16px rgba(43,42,51,.4); text-align: left; transition: transform .12s ease; cursor: pointer; }
.tile:active, .orb:active { transform: scale(.97); }
.tile .t-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--st-soft); color: var(--st-deep); }
.tile .t-main { display: block; font: 600 21px/1.05 var(--display); }
.tile .t-sub { display: block; margin-top: 3px; font: 500 12.5px/1.2 var(--body); color: var(--ink2); }

/* ── Pages */
.page { padding: 16px var(--pad) 26px; }
.page-h h1 { font: 600 32px/1.08 var(--display); letter-spacing: -.01em; }
.page-h .lede { margin-top: 6px; color: var(--ink2); font-size: 15.5px; }
.backbar { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 10px -8px; }
.back { display: inline-flex; align-items: center; gap: 1px; border: 0; background: none; padding: 7px 10px 7px 4px; font: 600 15.5px/1 var(--body); color: var(--ink2); border-radius: 999px; }
.back .ic { width: 20px; height: 20px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 14px; padding: 3px; background: rgba(43,42,51,.07); border-radius: 13px; }
.seg a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; border-radius: 10px; font: 600 14.5px/1 var(--body); color: var(--ink2); }
.seg a .ic { width: 17px; height: 17px; }
.seg a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(43,42,51,.16); }

.chips { display: flex; gap: 7px; margin: 14px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 7px 13px 7px 11px; font: 600 14px/1 var(--body); color: var(--ink2); }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--st); }
.chip em { font-style: normal; font-weight: 500; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--st-soft); border-color: transparent; color: var(--st-deep); }
.chip[aria-pressed="true"] em { color: var(--st-deep); opacity: .7; }

.group-h { margin: 22px 0 8px; font: 700 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--st-deep); }
.fileline { display: inline-flex; align-items: center; gap: 7px; font: 600 13.5px/1.2 var(--body); color: var(--st-deep); }
.fileline i { width: 9px; height: 9px; border-radius: 50%; background: var(--st); flex: none; }

/* Journal */
.jrow { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--rule); }
.jrow:first-of-type { border-top: 0; }
.j-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font-size: 13px; color: var(--muted); }
.j-title { margin-top: 5px; font: 600 20px/1.2 var(--display); }
.j-words { margin-top: 4px; color: var(--ink2); font-size: 15.5px; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.j-kind { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font: 600 12.5px/1 var(--body); color: var(--muted); }
.j-kind .ic { width: 15px; height: 15px; }
.j-thumb { width: 68px; height: 85px; border-radius: 12px; object-fit: cover; background: var(--st-soft); }
.j-wave { display: flex; align-items: center; gap: 2.5px; height: 20px; }
.j-wave i { width: 2.5px; border-radius: 2px; background: var(--st); opacity: .75; }

/* Scrapbook */
.scrap { columns: 2; column-gap: 12px; margin-top: 12px; padding-top: 2px; }
.sc { display: inline-block; width: 100%; vertical-align: top; break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 12px; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--rule), 0 12px 22px -18px rgba(43,42,51,.5); }
.sc img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sc .sc-cap { padding: 9px 11px 11px; }
.sc .sc-t { font: 600 15.5px/1.2 var(--display); }
.sc .sc-f { margin-top: 4px; font: 600 11.5px/1.2 var(--body); color: var(--st-deep); }
.sc.quote { background: var(--st-soft); box-shadow: none; padding: 15px 13px 13px; }
.sc.quote .q { font: 500 italic 17.5px/1.32 var(--display); color: var(--st-deep); }
.sc.quote .sc-f { margin-top: 10px; display: flex; align-items: center; gap: 5px; }
.sc.quote .sc-f .ic { width: 13px; height: 13px; }
.sc .pill.sample { margin-top: 7px; }

/* Timeline */
.tl { position: relative; margin-top: 18px; }
.tl-stage { position: relative; padding: 0 0 6px 30px; }
.tl-stage::before { content: ''; position: absolute; left: 8px; top: 12px; bottom: -12px; width: 3px; border-radius: 2px; background: var(--st-floor); }
.tl-stage:last-child::before { bottom: 14px; }
.tl-h { position: relative; display: flex; align-items: baseline; gap: 9px; padding-top: 2px; }
.tl-h::before { content: ''; position: absolute; left: -30px; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 4px var(--paper); }
.tl-h h2 { font: 600 24px/1.1 var(--display); }
.tl-h span { font-size: 13px; color: var(--muted); }
.tl-g { margin: 12px 0 2px; font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--st-deep); }
.tl-e { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 0; }
.tl-e::before { content: ''; position: absolute; left: -26px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--st); }
.tl-e .t { flex: 1; min-width: 0; font: 600 16.5px/1.25 var(--display); }
.tl-e .d { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tl-e .ic { width: 15px; height: 15px; color: var(--muted); }
.tl-here { position: relative; margin: 10px 0 10px -30px; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: #F4EEE6; font: 600 14.5px/1.3 var(--body); }
.tl-here small { display: block; margin-top: 2px; font-weight: 400; font-size: 12.5px; color: rgba(244,238,230,.72); }
.tl-here.between { margin: 4px 0 14px; }

/* Moment page */
.m-title { font: 600 32px/1.1 var(--display); letter-spacing: -.01em; }
.m-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 9px; font-size: 14px; color: var(--muted); }
.m-pic { display: block; width: 100%; margin-top: 16px; border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--st-soft); }
.player { display: flex; align-items: center; gap: 13px; margin-top: 16px; padding: 11px 15px 11px 11px; border-radius: 999px; background: var(--st-soft); }
.player button { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--st-deep); color: #fff; }
.player button .ic { width: 20px; height: 20px; }
.player .j-wave { flex: 1; height: 26px; justify-content: space-between; }
.player .len { font: 600 13.5px/1 var(--body); color: var(--st-deep); }
.m-label { margin: 22px 0 6px; font: 700 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.m-words { font: 400 20px/1.5 var(--display); color: var(--ink); }
.m-note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { padding: 4px 10px; border-radius: 999px; background: rgba(43,42,51,.06); font: 600 12.5px/1.3 var(--body); color: var(--ink2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: #FBF6EE; font: 600 16.5px/1 var(--body); }
.btn.stage { background: var(--st-deep); }
.btn.alt { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(43,42,51,.25); }
.btn.wide { width: 100%; }
.btn:active { transform: scale(.98); }
.btn .ic { width: 19px; height: 19px; }
.btn-row { display: grid; gap: 10px; margin-top: 18px; }
.btn-row.two { grid-template-columns: 1fr 1fr; }
.under { margin-top: 9px; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; }

/* Curator */
.pcard { display: grid; grid-template-columns: 84px 1fr auto; gap: 13px; align-items: center; padding: 13px 0; border-top: 1px solid var(--rule); }
.pcard:first-of-type { border-top: 0; }
.pthumb { position: relative; width: 84px; height: 105px; border-radius: 13px; overflow: hidden; background: var(--st-soft); display: grid; place-items: center; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb .q { padding: 8px; font: 500 italic 11.5px/1.3 var(--display); color: var(--st-deep); }
.pthumb .n { position: absolute; right: 5px; top: 5px; padding: 2px 6px; border-radius: 999px; background: rgba(43,42,51,.78); color: #fff; font: 700 10.5px/1.4 var(--body); }
.pcard .why { font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--st-deep); }
.pcard .pt { margin-top: 5px; font: 600 19px/1.2 var(--display); }
.pcard .pk { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.pcard > .ic { color: var(--muted); width: 18px; height: 18px; }

.pf { display: flex; gap: 7px; margin: 14px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 2px; overflow-x: auto; scrollbar-width: none; }
.pf::-webkit-scrollbar { display: none; }
.pf button { flex: none; border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 9px 15px; font: 600 14.5px/1 var(--body); color: var(--ink2); }
.pf button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FBF6EE; }
.frame { position: relative; margin: 14px auto 0; border-radius: 18px; overflow: hidden; background: var(--st-soft); box-shadow: 0 0 0 1px var(--rule), 0 18px 30px -22px rgba(43,42,51,.55); }
.frame.s45 { width: min(74%, 264px); aspect-ratio: 4 / 5; }
.frame.s916 { width: min(52%, 186px); aspect-ratio: 9 / 16; }
.frame .reel { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.frame .reel::-webkit-scrollbar { display: none; }
.frame .reel img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.f-meta { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 9px; font: 600 12.5px/1 var(--body); color: var(--muted); }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(43,42,51,.2); }
.dots i.on { background: var(--ink); }
.capbox { margin-top: 16px; padding: 14px 15px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.capbox .c-text { font-size: 16.5px; line-height: 1.45; }
.capbox .c-tags { margin-top: 8px; font: 600 14.5px/1.5 var(--body); color: var(--st-deep); word-spacing: 3px; }
.capbox .c-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.promise { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; font: 600 12.5px/1.3 var(--body); color: var(--muted); text-align: center; }
.promise .ic { width: 15px; height: 15px; }

/* More, Stages, Privacy */
.rows { margin-top: 14px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); overflow: hidden; }
.row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border-top: 1px solid var(--rule); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.row:first-child { border-top: 0; }
.row .r-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--st-soft); color: var(--st-deep); }
.row .r-t { font: 600 16.5px/1.25 var(--body); }
.row .r-s { margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.row > .ic { width: 18px; height: 18px; color: var(--muted); }
.soon { padding: 2px 8px; border-radius: 999px; background: rgba(43,42,51,.07); font: 700 10.5px/1.5 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.stagecard { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; margin-top: 10px; padding: 14px 15px; border-radius: 16px; background: var(--st-soft); }
.stagecard i { width: 16px; height: 16px; border-radius: 50%; background: var(--st); }
.stagecard .sn { font: 600 21px/1.1 var(--display); color: var(--st-deep); }
.stagecard .sb { margin-top: 2px; font-size: 13.5px; color: var(--ink2); }
.stagecard .sc-n { font: 600 13.5px/1 var(--body); color: var(--st-deep); }
.stagecard.on { box-shadow: inset 0 0 0 2px var(--st); }
.fact { margin-top: 14px; padding: 14px 15px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.fact .f-l { font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact .f-v { margin-top: 6px; font: 600 22px/1.15 var(--display); }
.fact .f-s { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ── Talk room: the whole screen takes the stage's deep color */
.room { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: radial-gradient(120% 70% at 50% 0, var(--st-on), var(--st-deep) 78%); color: #fff; padding: calc(12px + env(safe-area-inset-top)) var(--pad) calc(18px + env(safe-area-inset-bottom)); }
.room .back { color: rgba(255,255,255,.9); }
.room .pill.sample { color: rgba(255,255,255,.8); }
.t-top { display: flex; align-items: center; justify-content: space-between; margin-left: -8px; }
.t-body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; min-height: 0; }
.t-status { font: 700 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.t-words { margin-top: 14px; min-height: 5.6em; font: 500 26px/1.36 var(--display); }
.t-words .w { opacity: 0; transition: opacity .25s ease; }
.t-words .w.in { opacity: 1; }
.bars { display: flex; align-items: center; gap: 4px; height: 44px; margin-top: 20px; }
.bars i { flex: 1; max-width: 6px; border-radius: 3px; background: rgba(255,255,255,.8); height: 20%; animation: bar 1.1s ease-in-out infinite; }
.bars.still i { animation: none; height: 8%; opacity: .5; }
.bars.live i { animation: none; height: 8%; transition: height .09s linear; }
.heard .player { margin: 0 0 14px; }
.t-words .t-cue { opacity: .78; font-size: 22px; }
@keyframes bar { 0%, 100% { height: 14%; } 50% { height: var(--h, 80%); } }
.heard { margin-top: 14px; padding: 18px 18px 16px; border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 24px 40px -22px rgba(0,0,0,.5); }
.heard .hd-title { font: 600 26px/1.15 var(--display); }
.heard .fileline { margin-top: 9px; }
.heard .hd-words { margin-top: 12px; font: 400 17px/1.48 var(--display); color: var(--ink2); }
.heard .hd-pic { display: block; width: 100%; max-height: 34dvh; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.heard .hd-ok { display: flex; align-items: center; gap: 7px; margin-top: 10px; font: 600 13.5px/1.2 var(--body); color: var(--ink2); }
.heard .hd-ok .ic { width: 16px; height: 16px; color: var(--st-deep); }
.t-dock { max-width: 520px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.t-mic { display: grid; place-items: center; width: 92px; height: 92px; border: 0; border-radius: 50%; background: #fff; color: var(--st-deep); box-shadow: 0 0 0 10px rgba(255,255,255,.16), 0 0 0 22px rgba(255,255,255,.07); animation: breathe 2.2s ease-in-out infinite; }
.t-mic .ic { width: 36px; height: 36px; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 10px rgba(255,255,255,.16), 0 0 0 22px rgba(255,255,255,.07); } 50% { box-shadow: 0 0 0 14px rgba(255,255,255,.2), 0 0 0 30px rgba(255,255,255,.05); } }
.t-note { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.72); text-align: center; max-width: 30em; }
.room .btn { background: #fff; color: var(--st-deep); }
.room .btn.alt { background: none; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.room .btn-row { width: 100%; margin-top: 0; }
.t-link { border: 0; background: none; color: rgba(255,255,255,.85); font: 600 14px/1 var(--body); display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; }
.t-link .ic { width: 16px; height: 16px; }

/* ── Sheet + toast */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(43,42,51,.42); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 86dvh; overflow-y: auto; background: var(--paper); border-radius: 24px 24px 0 0; padding: 22px var(--pad) calc(20px + env(safe-area-inset-bottom)); }
.sheet h2 { font: 600 26px/1.15 var(--display); }
.sheet .lede { margin-top: 6px; color: var(--ink2); font-size: 15.5px; }
.sheet .saves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.sheet .saves a { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.sheet .saves img { display: block; width: 100%; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 18px + env(safe-area-inset-bottom)); z-index: 80; transform: translateX(-50%); max-width: min(88vw, 420px); padding: 11px 17px; border-radius: 999px; background: var(--ink); color: #FBF6EE; font: 600 14.5px/1.3 var(--body); text-align: center; box-shadow: 0 14px 28px -12px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.toast.on { opacity: 1; }

@media (min-width: 620px) {
  body { background: var(--paper2); }
  .app { background: var(--paper); box-shadow: 0 0 0 1px var(--rule); }
}
@media (prefers-reduced-motion: reduce) { .bars i, .t-mic { animation: none; } }

/* Post page: the two ways to post stay in reach, just above the tab bar */
.dock { position: sticky; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 8px); z-index: 5; display: grid; grid-template-columns: 1.15fr 1fr; gap: 9px; margin: 16px -6px 0; padding: 8px 6px; border-radius: 999px; background: rgba(251,246,238,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--rule), 0 14px 26px -18px rgba(43,42,51,.5); }
.dock .btn { min-height: 50px; padding: 0 12px; font-size: 15.5px; }
.dock .btn.alt { background: var(--card); }

/* ── Added Nov 15: the due-date page, typing instead of talking, the live door */
.strip:empty { display: none; }
.side, .lately, .sub-full { display: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.lede-s { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.fact.link { display: block; position: relative; padding-right: 100px; }
.f-go { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; font: 600 13.5px/1 var(--body); color: var(--st-deep); }
.f-go .ic { width: 15px; height: 15px; }
.form { display: grid; grid-template-columns: 1.25fr 1fr 1.45fr; gap: 10px; margin-top: 16px; }
.form.one { grid-template-columns: 1fr; max-width: 320px; }
.form label { display: flex; flex-direction: column; gap: 7px; font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.form select, .form input { -webkit-appearance: none; appearance: none; width: 100%; min-height: 50px; padding: 0 34px 0 13px; border-radius: 14px; border: 1px solid var(--rule); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B636A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center; font: 500 16.5px/1.2 var(--body); color: var(--ink); letter-spacing: 0; text-transform: none; }
.form input { background-image: none; padding-right: 13px; }
.form select:disabled, .form input:disabled { opacity: .6; }
.t-link.quiet { display: flex; margin: 16px auto 0; color: var(--muted); }
.t-type { width: 100%; margin-top: 14px; padding: 14px 16px; border: 0; border-radius: 18px; background: rgba(255,255,255,.96); color: var(--ink); font: 400 19px/1.45 var(--display); resize: vertical; }
.bars.think i { height: 34%; animation: think 1.2s ease-in-out infinite; }
.bars.think i:nth-child(3n) { animation-delay: .2s; } .bars.think i:nth-child(3n+1) { animation-delay: .4s; }
@keyframes think { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.door { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 26px calc(32px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.door h1 { margin-top: 18px; font: 600 clamp(38px, 11vw, 52px)/1.05 var(--display); letter-spacing: -.02em; }
.door p { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--ink2); max-width: 26em; }
.door .btn { margin-top: 28px; align-self: flex-start; }
.at-door .tabbar, .at-door .side { display: none !important; }
.at-door .view { padding-bottom: 0; }
body.at-door { background: linear-gradient(180deg, var(--st-soft), var(--paper) 62%) fixed; }
.at-door .app { background: none !important; box-shadow: none !important; display: block !important; }
@media (prefers-reduced-motion: reduce) { .bars.think i { animation: none; opacity: .7; } }

/* Hear it again, lit when the phone wants a tap before it will play the voice */
.t-link.nudge { color: #fff; background: rgba(255,255,255,.18); border-radius: 999px; padding: 9px 16px; animation: nudge 1.6s ease-in-out infinite; }
.page .t-link.nudge { color: var(--st-deep); background: var(--st-soft); }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }

/* The read-back voice list */
.row.voice .r-ico { border: 0; cursor: pointer; }
.row.voice .r-ico .ic { width: 16px; height: 16px; }
.row.voice.on { background: var(--st-soft); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* ── The computer view (from 960px wide). The same app, spread out: a side bar instead of the tab bar,
      Home in two columns with Lately under it, wider Moments, the timeline as six columns, and the
      moment and post pages side by side. The one-color-per-stage rule is unchanged. */
@media (min-width: 960px) {
  body { background: var(--paper2); }
  .app { max-width: 1380px; display: grid; grid-template-columns: 268px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; background: var(--paper); box-shadow: 0 0 0 1px var(--rule); }
  .strip { grid-column: 1 / -1; position: static; display: flex; align-items: center; gap: 18px; padding: 9px 28px; }
  .s-see { margin-top: 0; }
  .tabbar { display: none; }
  .view { padding-bottom: 0; min-width: 0; min-height: 100dvh; }
  .toast { bottom: 28px; }

  .side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100dvh; padding: 28px 18px 22px; border-right: 1px solid var(--rule); background: linear-gradient(180deg, var(--st-soft), var(--paper) 46%); overflow-y: auto; }
  .sd-brand { display: flex; flex-direction: column; gap: 7px; padding: 0 6px; }
  .sd-for { font: 500 14px/1.2 var(--body); color: var(--ink2); }
  .sd-stage { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
  .sd-stage > i { flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 4px var(--st-soft); }
  .sd-stage b { display: block; font: 600 22px/1.1 var(--display); }
  .sd-stage span span { display: block; margin-top: 4px; font: 500 13.5px/1.3 var(--body); color: var(--st-deep); }
  .sd-nav { display: flex; flex-direction: column; gap: 2px; }
  .sd-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font: 600 15.5px/1.2 var(--body); color: var(--ink2); }
  .sd-nav a:hover { background: rgba(43,42,51,.05); color: var(--ink); }
  .sd-nav a[aria-current="page"] { background: var(--st-soft); color: var(--st-deep); }
  .sd-nav .ic { width: 20px; height: 20px; }
  .sd-act { margin-top: auto; display: grid; gap: 8px; }
  .sd-act .btn { min-height: 48px; font-size: 15.5px; cursor: pointer; }
  .sd-act .btn.alt { background: var(--card); }
  .sd-foot { display: flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 12.5px; color: var(--muted); }
  .sd-foot .ic { width: 14px; height: 14px; }
  body[data-route="home"] .sd-act { visibility: hidden; }   /* the rail never moves: on Home only the gems step aside (Home shows them big) */
  body[data-route="home"] .sd-foot { margin-top: auto; }

  /* Home: one centered column (greeting, Talk it, the card, Snap it and Post it, Lately) until 1200, where it
     becomes two: who and where on the left, Talk it and its two tiles on the right. */
  .home { width: 100%; max-width: 760px; margin: 0 auto; padding: 26px 40px 30px; min-height: 100dvh; --ob: 184px; }
  .h-talk { padding: 10px 0 16px; }
  .la-row .la:nth-child(n+3) { display: none; }   /* one row of Lately in the single column, so Home stays one screen */
  .h-top { justify-content: flex-end; }
  .h-top .wm { display: none; }
  .h-hello { font-size: 20px; margin-top: 0; }
  .sub-short { display: none; } .sub-full { display: inline; }
  .tile { min-height: 72px; }
  .tile:hover, .la:hover, .sc:hover, .pcard:hover .pt { filter: brightness(1.02); }
  .lately { display: block; margin-top: 26px; }
  .la-h { display: flex; justify-content: space-between; align-items: baseline; }
  .la-h h2 { font: 700 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .la-h a { display: inline-flex; align-items: center; gap: 2px; font: 600 14px/1 var(--body); color: var(--ink2); }
  .la-h a .ic { width: 16px; height: 16px; }
  .la-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
  .la { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 10px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--rule), 0 10px 22px -18px rgba(43,42,51,.5); }
  .la > span:last-child { min-width: 0; }
  .la img, .la-q { flex: none; width: 56px; height: 70px; border-radius: 10px; object-fit: cover; background: var(--st-soft); display: grid; place-items: center; color: var(--st-deep); }
  .la-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 16px/1.2 var(--display); }
  .la-f { display: block; margin-top: 4px; font: 600 12px/1.2 var(--body); color: var(--st-deep); }
  .la .pill.sample { margin-top: 5px; }
  .la-none { margin-top: 10px; color: var(--muted); }

  /* Pages */
  .page { width: 100%; max-width: 780px; padding: 34px 48px 64px; }
  .page.wide { max-width: 1140px; }
  .page-h h1 { font-size: 40px; }
  .page-h .lede { font-size: 17px; max-width: 40em; }
  .mh { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .mh .seg { margin-top: 0; width: 420px; flex: none; }
  .chips { margin: 20px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .chip { cursor: pointer; }
  .jlist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 44px; }
  .jlist .group-h { grid-column: 1 / -1; }
  .jlist .jrow { border-top: 1px solid var(--rule); }
  .j-thumb { width: 84px; height: 105px; }
  .j-words { -webkit-line-clamp: 3; }
  .scrap { columns: 3; column-gap: 16px; margin-top: 18px; }
  .sc { margin-bottom: 16px; }

  /* Moment: a photo sits beside its words; a spoken moment reads as one column. */
  .page.m-snap { max-width: 1140px; }
  .m-snap .m-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "media head" "media body"; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; }
  .m-head { grid-area: head; } .m-media { grid-area: media; } .m-body { grid-area: body; }
  .m-snap .m-pic { margin-top: 0; max-height: calc(100dvh - 150px); }
  .m-title { font-size: 44px; }
  .m-talk .m-words { font-size: 23px; }
  .m-body .btn-row { max-width: 380px; }

  /* Post it: the picture on the left, the app, the words and the buttons on the right. */
  .plist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .plist .pcard:nth-of-type(2) { border-top: 0; }
  .pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "pic pf" "pic side"; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; margin-top: 14px; }
  .pp .pf { grid-area: pf; margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .pf button { cursor: pointer; }
  .pp-pic { grid-area: pic; } .pp-side { grid-area: side; }
  .frame { margin-top: 0; }
  .frame.s45 { width: min(100%, 420px); }
  .frame.s916 { width: min(72%, 300px); }
  .dock { position: static; margin: 18px 0 0; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

  .rows .row[href]:hover, .stagecard:hover { filter: brightness(.985); }
  .stagecard { padding: 16px 18px; }

  /* Sheets sit in the middle of the screen; the talk room keeps the whole screen. */
  .scrim { align-items: center; }
  .sheet { max-width: 520px; border-radius: 24px; padding: 26px 26px 24px; }
  .t-body, .t-dock { max-width: 600px; }
  .t-words { font-size: 30px; }
  .heard .hd-pic { max-height: 42dvh; }
  .btn { cursor: pointer; }
}
@media (min-width: 1200px) {
  .scrap { columns: 4; }
  /* The timeline reads left to right: one column per stage, "You are here" inside the one she is in. */
  .tl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 16px; margin-top: 28px; }
  .tl-stage { padding: 0; }
  .tl-stage::before { left: 0; right: -16px; top: 8px; bottom: auto; width: auto; height: 3px; }
  .tl-stage:last-child::before { right: 0; bottom: auto; }
  .tl-h { flex-direction: column; align-items: flex-start; gap: 3px; padding-top: 32px; }
  .tl-h::before { left: 0; top: 0; }
  .tl-h h2 { font-size: 22px; }
  .tl-e { flex-wrap: wrap; gap: 2px 7px; padding: 7px 0 7px 18px; }
  .tl-e::before { left: 0; top: 14px; margin-top: 0; }
  .tl-e .t { font-size: 15.5px; }
  .tl-e .d { flex-basis: 100%; }
  .tl-here { margin: 10px 0; font-size: 13.5px; }
}

/* ── Decision #541 (Nov 16): This week card, the daily question, the same-shot series. Every stage, one color each. */
.h-card { display: flex; gap: 12px; align-items: center; margin-top: 8px; padding: 14px 12px 14px 16px; border-radius: 22px; background: linear-gradient(135deg, var(--st-soft), var(--card) 80%); box-shadow: 0 0 0 1px var(--st-floor), 0 12px 26px -20px var(--st-deep); }
.h-card .h-stage { flex: 1; min-width: 0; margin: 0; }
.h-card .hs-title { font-size: clamp(34px, 10.4vw, 46px); }
.h-card .hs-sub { margin-top: 4px; font-size: 14.5px; }
.hs-fact { display: flex; align-items: baseline; gap: 7px; margin-top: 7px; font: 600 15px/1.25 var(--body); color: var(--ink); }
.hs-fact::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--st); transform: translateY(-1px); }
.h-shot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 78px; padding: 0; border: 0; background: none; cursor: pointer; }
.h-shot img, .h-shot-i { display: grid; place-items: center; width: 78px; height: 98px; border-radius: 12px; object-fit: cover; background: var(--st-soft); color: var(--st-deep); box-shadow: 0 0 0 2px #fff, 0 8px 16px -10px rgba(43,42,51,.55); }
.h-shot.due img, .h-shot.due .h-shot-i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--st), 0 8px 16px -10px rgba(43,42,51,.55); }
.h-shot-l { display: flex; align-items: center; gap: 4px; font: 600 11.5px/1.2 var(--body); color: var(--st-deep); text-align: center; }
.h-shot-l i { width: 7px; height: 7px; border-radius: 50%; background: var(--st); animation: dot 2s ease-in-out infinite; }
@keyframes dot { 50% { transform: scale(1.5); opacity: .6; } }
.hq { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 8px 8px 8px 10px; border: 0; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--rule), 0 10px 20px -18px rgba(43,42,51,.5); text-align: left; color: var(--ink); cursor: pointer; }
.hq-i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--st-soft); color: var(--st-deep); }
.hq-i .ic { width: 17px; height: 17px; }
.hq-t { flex: 1; min-width: 0; font: 600 15.5px/1.25 var(--display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hq-t small { display: block; margin-bottom: 2px; font: 700 10px/1.2 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.hq-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--st-deep); color: #fff; }
.hq-go .ic { width: 19px; height: 19px; }
.hq.done .hq-i { background: var(--st-on); color: #fff; }
.hq.done > .ic { width: 18px; height: 18px; color: var(--muted); }
.hq:active, .h-shot:active { transform: scale(.98); }

.t-ask { width: 100%; max-width: 520px; margin: 14px auto 0; padding: 12px 16px 14px; border-radius: 18px; background: rgba(255,255,255,.14); font: 500 22px/1.3 var(--display); }
.t-ask small { display: block; margin-bottom: 6px; font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.j-q { display: flex; align-items: center; gap: 6px; margin: 6px 0 -2px; font: 600 13px/1.3 var(--body); color: var(--st-deep); }
.j-q .ic { width: 15px; height: 15px; }
.m-q { font: 500 italic 20px/1.4 var(--display); color: var(--st-deep); }
.m-ser { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 8px 13px; border-radius: 999px; background: var(--st-soft); font: 600 14px/1 var(--body); color: var(--st-deep); }
.m-ser .ic { width: 15px; height: 15px; }

.wk-fact { margin-top: 16px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, var(--st-soft), var(--card)); box-shadow: 0 0 0 1px var(--st-floor); }
.wk-fact .f-l, .wk-card .f-l { font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wk-big { margin-top: 8px; font: 600 28px/1.15 var(--display); color: var(--st-deep); }
.wk-fact p { margin-top: 8px; color: var(--ink2); font-size: 14.5px; }
.wk-grid { display: grid; gap: 14px; margin-top: 14px; }
.wk-card { padding: 16px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.wk-q { margin-top: 6px; font: 600 21px/1.25 var(--display); }
.wk-s { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.wk-done { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 600 14px/1.3 var(--body); color: var(--st-deep); }
.wk-done .ic { width: 16px; height: 16px; }
.wk-ser { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.wk-ser img, .wk-ser .h-shot-i { flex: none; width: 72px; height: 90px; border-radius: 12px; object-fit: cover; box-shadow: none; }
.wk-card .btn-row { margin-top: 14px; }
.wk-card .btn { padding: 0 12px; }

.sr-tabs a em { font-style: normal; font-weight: 500; color: var(--muted); }
.sr-act { max-width: 460px; }
.sr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin-top: 18px; }
.sr { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.sr img, .sr .h-shot-i { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule); }
.sr > span:last-child { font: 600 12.5px/1.2 var(--body); color: var(--st-deep); }
.sr-next .h-shot-i { box-shadow: none; border: 2px dashed var(--st); }
.sr-strip { display: flex; gap: 4px; }
.sr-strip img { width: 44px; height: 55px; object-fit: cover; border-radius: 8px; }
.sc-series .sr-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.sc-series .sr-strip img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; }
.sc-series .sc-f .ic, .tl-sr .ic { width: 13px; height: 13px; vertical-align: -2px; }
.tl-sr .t { font-style: italic; }

.lapse { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top)) var(--pad) calc(18px + env(safe-area-inset-bottom)); background: #16151A; color: #fff; }
.lapse .back { color: rgba(255,255,255,.9); }
.lp-top { display: flex; align-items: center; justify-content: space-between; margin-left: -8px; }
.lp-n { font: 600 13px/1 var(--body); opacity: .7; }
.lp-stage { position: relative; flex: 1; min-height: 0; width: 100%; max-width: 560px; margin: 10px auto; }
.lp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .22s ease; }
.lp-stage img.on { opacity: 1; }
.lp-dock { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label play" "scrub play"; gap: 8px 16px; align-items: center; width: 100%; max-width: 560px; margin: 0 auto; }
.lp-label { grid-area: label; font: 600 28px/1 var(--display); }
.lp-dock input { grid-area: scrub; width: 100%; accent-color: #fff; }
.lp-play { grid-area: play; display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%; background: #fff; color: #16151A; cursor: pointer; }

.cam .t-top { gap: 10px; }
.cam-t { flex: 1; text-align: center; font: 600 18px/1.2 var(--display); }
.cam-view { position: relative; flex: 1; min-height: 0; width: 100%; max-width: 520px; margin: 12px auto; border-radius: 22px; overflow: hidden; background: rgba(0,0,0,.3); }
.cam-view video, .cam-ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-ghost { opacity: .35; pointer-events: none; }
.cam.mirror video, .cam.mirror .cam-ghost { transform: scaleX(-1); }
.cam-wait { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; font: 500 15px/1.4 var(--body); text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.cam.live .cam-wait { display: none; }
.cam.nocam .cam-ghost { opacity: .9; }
.cam-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; width: 100%; }
.cam-row .btn { justify-self: center; white-space: nowrap; padding: 0 14px; }
.cam-shoot { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.3); box-shadow: inset 0 0 0 4px var(--st-deep); cursor: pointer; }
.cam-shoot[disabled] { opacity: .4; }
.cam.nocam .cam-row { grid-template-columns: 1fr; }
.cam.nocam .cam-shoot, .cam.nocam [data-cam-flip] { display: none; }
.cam.nocam .cam-row label { width: 100%; }
@media (prefers-reduced-motion: reduce) { .h-shot-l i { animation: none; } .lp-stage img { transition: none; } }

@media (min-width: 960px) {
  .t-ask { max-width: 600px; font-size: 28px; }
  .wk-grid { grid-template-columns: 1fr 1fr; }
  .wk-big { font-size: 34px; }
  .sr-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; }
  .lp-stage, .lp-dock { max-width: 760px; }
  .cam-view { max-width: 760px; }
}
@media (min-width: 1200px) { .sr-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .home { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "top top" "hello talk" "left talk" "left tiles" "lately lately"; column-gap: 56px; align-items: start; align-content: center; padding: 30px 56px 36px; --ob: 248px; }
  .h-top { grid-area: top; } .h-hello { grid-area: hello; align-self: end; }
  .h-talk { grid-area: talk; align-self: center; padding: 0 0 6px; }
  .h-left { grid-area: left; margin-top: 10px; max-width: 640px; }
  .orbs { grid-area: tiles; margin-top: 14px; }
  .lately { grid-area: lately; }
  .la-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .la-row .la:nth-child(n+3) { display: flex; }
  /* the card's larger size, where it has the room */
  .h-card { margin-top: 0; padding: 18px 18px 18px 24px; gap: 22px; }
  .h-card .hs-title { font-size: clamp(50px, 4.4vw, 66px); }
  .h-card .hs-sub { font-size: 17px; margin-top: 8px; }
  .hs-fact { font-size: 18px; margin-top: 10px; }
  .h-shot { width: 104px; }
  .h-shot img, .h-shot-i { width: 104px; height: 130px; }
  .h-shot-l { font-size: 12.5px; }
  .hq { margin-top: 12px; padding: 10px 10px 10px 14px; }
  .hq-t { font-size: 19px; }
  .hq-t small { font-size: 11px; }
}

/* ── Picks (decision #542): a book, a podcast and a trusted health site per stage, on This week only. */
.picks { margin-top: 22px; }
.pk-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pk-h h2 { font: 600 22px/1.2 var(--display); }
.pk-h span { flex: none; font: 700 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pk-list { display: grid; gap: 10px; margin-top: 12px; }
.pk { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.pk > .ic { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--muted); }
.pk-i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--st-soft); color: var(--st-deep); }
.pk-i .ic { width: 19px; height: 19px; }
.pk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-t small { font: 700 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--st-deep); }
.pk-t b { margin-top: 5px; font: 600 18px/1.25 var(--display); }
.pk-by { margin-top: 2px; font: 600 13.5px/1.3 var(--body); color: var(--ink2); }
.pk-why { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.pk-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.pk-note .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--st-deep); }
@media (min-width: 960px) {
  .pk-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .pk { flex-direction: column; position: relative; padding: 18px; }
  .pk > .ic { position: absolute; top: 18px; right: 18px; }
  .pk:hover { filter: brightness(.985); }
}

/* ── Modern Web Guidance pass (decision #543): the same look, easier to use. Light only, by design. */
:root { color-scheme: only light; }
a, button, label, input, select, textarea { touch-action: manipulation; }   /* no double-tap zoom delay; pinch zoom stays */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
label:has(> .vh:focus-visible) { outline: 2px solid currentColor; outline-offset: 3px; }
.rows .row:focus-visible, .chip:focus-visible, .pf button:focus-visible, .s-see button:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.frame:has(.reel:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.reel:focus-visible, #view h1:focus { outline: none; }
/* A layer keeps its scrolling to itself; the page behind holds still. */
html:has(> body > .room, > body > .lapse, > body > .scrim) { overflow: hidden; }
.sheet { overscroll-behavior: contain; }
/* The installed live app has no preview strip, so the page pads the status bar itself. */
.strip:empty ~ .view { padding-top: env(safe-area-inset-top); }
/* Landscape: keep Back and the controls clear of the notch. */
.room, .lapse { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
@media (prefers-reduced-motion: reduce) { .t-link.nudge { animation: none; } }
/* Small controls get a 44 px tall hit area on touch screens, without changing how they look. */
@media (pointer: coarse) {
  .back, .t-link, .seg a, .btn.sm { position: relative; }
  .back::after, .t-link::after, .seg a::after, .btn.sm::after { content: ''; position: absolute; inset: -6px 0; }
}

/* Fewer icons (decision #546): icons stay on actions (Talk, Snap, Post, Hear, Play, Stop) and
   navigation. Everything else speaks in words, the stage dot, quote marks and her photos. */
.row.plain { grid-template-columns: 1fr auto; }
.row.dot { grid-template-columns: 10px 1fr auto; gap: 14px; }
.row.dot .r-dot { align-self: start; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--st); }
.hq { padding-left: 16px; }
.hq.done { background: var(--st-soft); box-shadow: none; }
.hq.done .hq-t small { color: var(--st-deep); }
.j-q { display: block; font: italic 500 14px/1.35 var(--display); }
.j-q::before { content: '“'; } .j-q::after { content: '”'; }
.sc-f > i, .heard .hd-ok > i { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st); }
.sc.quote .sc-f { gap: 6px; }
.la-q { font: 400 46px/1 var(--display); padding-top: 14px; }
.wk-done { display: inline-flex; padding: 8px 13px; border-radius: 999px; background: var(--st-soft); }

/* Four gems (decision #547): the only marks in the app are voice, video, snap and post, and they
   always sit inside the gem (the stage hue, like the Talk it button). Navigation, rows and labels
   speak in words, the stage color and her pictures. */
.gem { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 50% 30%, var(--st-on), var(--st-deep) 125%); box-shadow: 0 6px 12px -8px var(--st-deep), inset 0 1px 0 rgba(255,255,255,.22); }
.gem .ic { width: 19px; height: 19px; }
.gem.xs { width: 22px; height: 22px; box-shadow: none; }
.gem.xs .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.tile .gem { width: 42px; height: 42px; }
.h-shot-i .gem, .la-q .gem { width: 34px; height: 34px; }
.la-q { padding-top: 0; }
.j-kind { gap: 7px; }
.tl-e .gem.xs { order: -1; }
.row.gemrow { grid-template-columns: 40px 1fr auto; }
/* words-only bars */
.tabbar { column-gap: 6px; }
.tabbar a { justify-content: center; min-height: 46px; padding: 0 6px; font: 600 14px/1 var(--body); }
.tabbar a[aria-current="page"] { color: var(--st-deep); background: var(--st-soft); border-radius: 999px; }
.back { padding-left: 8px; }
.lp-play { width: auto; min-width: 84px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--body); }
/* the voice gem says when it is playing */
.player button[data-on] { box-shadow: 0 0 0 4px var(--st-soft), 0 0 0 6px var(--st); }
.player:has(button[data-on]) .len::before { content: 'Playing · '; }
.row.voice .r-ico[data-on] { box-shadow: 0 0 0 3px var(--st); }

/* Talk it: her words appear as she speaks; Type it is always there (decision #548) */
.t-words .t-live { display: block; font-size: 24px; line-height: 1.38; }
.t-dock .t-link[data-talk-type] { color: rgba(255,255,255,.92); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* One hue, four strengths (decision #549): every gem wears the page's stage color, and each mark
   keeps its own strength everywhere. Voice is the deep one; Snap a step lighter; Post soft; Video an outline. */
.gem.k-camera { background: var(--st-floor); background: color-mix(in srgb, var(--st) 50%, var(--st-floor)); color: var(--st-deep); box-shadow: none; }
.gem.k-send { background: var(--st-soft); color: var(--st-deep); box-shadow: inset 0 0 0 1px var(--st-floor); }
.gem.k-video { background: transparent; color: var(--st-deep); box-shadow: inset 0 0 0 1.5px var(--st); }

/* Phone: Snap it and Post it sit right under Talk it (decision #550) */
.h-talk { padding-bottom: 12px; }
.orbs { margin-top: 0; margin-bottom: 14px; }
@media (min-width: 1200px) { .h-talk { padding-bottom: 6px; } .orbs { margin-top: 14px; margin-bottom: 0; } }

/* ── Years ago today, letters for later, their voice (decision #552) */
.ya { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); color: var(--ink); }
.ya-t { flex: 1; min-width: 0; font: 600 15.5px/1.25 var(--display); }
.ya-t small { display: block; margin-bottom: 2px; font: 700 10px/1.2 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--st-deep); }
.ya img { flex: none; width: 40px; height: 50px; border-radius: 8px; object-fit: cover; }
.ya .gem { width: 36px; height: 36px; }
.lt-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.lt-when { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); color: var(--ink); text-align: left; cursor: pointer; }
.lt-when b { font: 600 17px/1.2 var(--display); }
.lt-when span { font-size: 13.5px; color: var(--muted); }
.lt-when:hover { box-shadow: 0 0 0 1.5px var(--st); }
.lt-date input { width: 100%; margin-top: 4px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); font: 500 15px/1.2 var(--body); color: var(--ink); }
.m-sealed { margin: 2px 0 14px; font: 600 14px/1.4 var(--body); color: var(--st-deep); }
.vlist { display: grid; gap: 10px; margin-top: 18px; }
.vrow { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 12px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); color: var(--ink); }
.v-age { flex: none; width: 52px; text-align: center; font: 500 34px/1 var(--display); color: var(--st-deep); letter-spacing: -.02em; }
.v-t { flex: 1; min-width: 0; font: italic 400 16.5px/1.4 var(--display); }
.v-t small { display: block; margin-bottom: 4px; font: 700 10px/1.2 var(--body); font-style: normal; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.vrow .gem { width: 38px; height: 38px; }

/* ── The look grows up with the child (decision #552): warm and soft for the first years; from Child on the
   paper cools, corners tighten, the glow quiets and type sets tighter. Same colors, same gems. */
body[data-stage="child"], body[data-stage="teen"], body[data-stage="beyond"] { --paper: #F7F5F1; --paper2: #ECE8E2; --card: #FFFFFF; }
body[data-stage="child"] .home, body[data-stage="teen"] .home, body[data-stage="beyond"] .home { background: linear-gradient(180deg, var(--st-soft) 0, var(--paper) 24%); }
body[data-stage="child"] :is(.h-card, .tile, .hq, .ya, .jrow, .rows, .wk-card, .vrow, .lt-when, .sc), body[data-stage="teen"] :is(.h-card, .tile, .hq, .ya, .jrow, .rows, .wk-card, .vrow, .lt-when, .sc), body[data-stage="beyond"] :is(.h-card, .tile, .hq, .ya, .jrow, .rows, .wk-card, .vrow, .lt-when, .sc) { border-radius: 12px; }
body[data-stage="teen"] .orb, body[data-stage="beyond"] .orb { box-shadow: 0 16px 30px -16px var(--st-deep), 0 0 0 5px var(--st-soft); }
body[data-stage="child"] .orb { box-shadow: 0 18px 34px -15px var(--st-deep), 0 0 0 7px var(--st-soft); }
body[data-stage="teen"] .hs-title, body[data-stage="beyond"] .hs-title { font-weight: 500; letter-spacing: -.03em; }
body[data-stage="teen"] .h-hello, body[data-stage="beyond"] .h-hello { letter-spacing: -.01em; }
.page-h + .f-l { margin-top: 20px; }

/* Marks as breadcrumbs (decision #553): the full gems live only in Home's actions (the Talk it circle and the
   Snap it / Post it buttons). Everywhere else a mark is a small, soft line icon in the stage's deep tone that just
   says what kind of moment this is. */
.gem, .gem.k-mic, .gem.k-camera, .gem.k-send, .gem.k-video { width: auto; height: auto; background: none; box-shadow: none; color: var(--st-deep); }
.gem .ic { width: 16px; height: 16px; stroke-width: 1.8; }
.gem.xs .ic { width: 14px; height: 14px; }
.la-q .gem .ic, .ya .gem .ic, .vrow .gem .ic, .h-shot-i .gem .ic { width: 20px; height: 20px; opacity: .85; }
.tile .gem { width: 42px; height: 42px; background: radial-gradient(circle at 50% 30%, var(--st-on), var(--st-deep) 125%); color: #fff; box-shadow: 0 6px 12px -8px var(--st-deep), inset 0 1px 0 rgba(255,255,255,.22); }
.tile .gem.k-camera { background: var(--st-floor); background: color-mix(in srgb, var(--st) 50%, var(--st-floor)); color: var(--st-deep); box-shadow: none; }
.tile .gem.k-send { background: var(--st-soft); color: var(--st-deep); box-shadow: inset 0 0 0 1px var(--st-floor); }
.tile .gem .ic { width: 19px; height: 19px; }
.hq-go, .hq .hq-go { width: 32px; background: none; color: var(--st-deep); box-shadow: none; }
.hq-go .ic { width: 20px; height: 20px; }
.player button { background: var(--card); color: var(--st-deep); box-shadow: 0 0 0 1px var(--st-floor); }
.row.gemrow { grid-template-columns: 24px 1fr auto; }

/* ── Post it, the power tab (decision #554) */
.pf .pf-add { flex: none; display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px; border: 1px dashed var(--rule); font: 600 14px/1 var(--body); color: var(--st-deep); }
.frame { max-height: 70vh; }
.cover-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.cover-row .btn { flex: none; }
.cover-row .btn[aria-pressed="true"] { background: var(--ink); color: #FBF6EE; box-shadow: none; }
.reel.covering img { cursor: crosshair; }
.pp-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-tools .btn { min-height: 40px; }
.pp-teach { display: block; margin-top: 10px; font: 600 13.5px/1.3 var(--body); color: var(--st-deep); text-decoration: underline; text-underline-offset: 3px; }
.safe { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--paper2); }
.safe-h { font: 700 11px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.safe p { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.safe.ok { background: color-mix(in srgb, #6F9A6B 14%, var(--card)); }
.safe.ok .safe-h { color: #38593A; }
.safe.warn { background: color-mix(in srgb, #C98A2E 16%, var(--card)); }
.safe.warn .safe-h { color: #7A4F0B; }
.safe .sf { display: grid; gap: 2px; margin-top: 8px; font-size: 14px; line-height: 1.35; }
.safe .sf b { font-weight: 700; color: var(--ink); }
.safe .sf span { color: var(--ink2); }
.sev-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sev-pick label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--paper2); font: 600 15px/1.2 var(--body); }
.sev-list { display: grid; gap: 10px; margin-top: 12px; max-height: 52vh; overflow-y: auto; }
.sev-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--paper2); }
.sev-row img { width: 48px; height: 60px; object-fit: cover; border-radius: 8px; }
.sev-row b { display: block; font: 600 16px/1.2 var(--display); }
.sev-row span { font-size: 12.5px; color: var(--muted); }
.reel-out { display: grid; place-items: center; margin-top: 12px; }
.reel-out canvas, .reel-out video { width: min(100%, 240px); aspect-ratio: 9 / 16; border-radius: 16px; background: #000; box-shadow: 0 0 0 1px var(--rule); }
.rows.apps .row { grid-template-columns: 1fr auto; cursor: pointer; }
.rows.apps input { width: 22px; height: 22px; accent-color: var(--st-deep); }
.addapp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.addapp input, .addapp select { min-height: 46px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); font: 500 15.5px/1.2 var(--body); color: var(--ink); }
.addapp input { grid-column: 1 / -1; }
.addapp .btn { grid-column: 1 / -1; }
.style-box { width: 100%; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); color: var(--ink); font: 400 16px/1.5 var(--body); resize: vertical; }
/* Your apps fits one screen: two columns of compact rows (decision #554) */
.rows.apps { display: grid; grid-template-columns: 1fr 1fr; }
.rows.apps .row, .rows.apps .row:first-child { border-top: 0; border-bottom: 1px solid var(--rule); padding: 10px 12px; gap: 8px; }
.rows.apps .row:nth-child(odd) { border-right: 1px solid var(--rule); }
.rows.apps .row:nth-last-child(-n+2) { border-bottom: 0; }
.rows.apps .r-t { font-size: 15px; }
.rows.apps .r-s { font-size: 12px; margin-top: 0; }
.rows.apps input { width: 20px; height: 20px; }
.addapp { grid-template-columns: 1fr 1.3fr auto; }
.addapp input { grid-column: 1 / -1; }
.addapp .btn { grid-column: auto; min-height: 46px; }
@media (min-width: 700px) { .rows.apps { grid-template-columns: 1fr 1fr 1fr; } .rows.apps .row:nth-child(odd) { border-right: 0; } .rows.apps .row:not(:nth-child(3n)) { border-right: 1px solid var(--rule); } .rows.apps .row:nth-last-child(-n+3) { border-bottom: 0; } .addapp { grid-template-columns: 2fr 1fr 1fr auto; } .addapp input { grid-column: auto; } }
.addapp .btn { white-space: nowrap; padding: 0 16px; }
.addapp select { min-width: 0; }

/* ── Photo series, hers to shape (decision #555) */
button.sr { border: 0; padding: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sr-gap .h-shot-i { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; border: 1.5px dashed var(--rule); background: transparent; color: var(--muted); font: 300 30px/1 var(--body); box-shadow: none; }
.sr-gap.sr-next .h-shot-i { border-color: var(--st); background: var(--st-soft); color: var(--st-deep); }
.sr-gap > span:last-child { color: var(--muted); }
.sr-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sr-act .btn { min-height: 40px; }
.sr-tabs { flex-wrap: wrap; }
.sr-tabs small { font-size: 11px; color: var(--muted); }
.sr-tabs .sr-new { border: 1px dashed var(--rule); color: var(--st-deep); }
.se-in { width: 100%; min-height: 48px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); font: 500 17px/1.2 var(--body); color: var(--ink); }
.se-pace { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.se-pace label { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); font: 600 15px/1.2 var(--body); cursor: pointer; }
.se-pace label:has(input:checked) { box-shadow: 0 0 0 2px var(--st); background: var(--st-soft); }
.se-pace input, .se-on input { accent-color: var(--st-deep); }
.se-on { display: flex; align-items: center; gap: 10px; margin-top: 18px; font: 600 15px/1.3 var(--body); }
.sh-pic { display: grid; place-items: center; margin: 10px 0 4px; }
.sh-pic img { width: min(60%, 200px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.sh-move { display: flex; align-items: center; gap: 10px; margin-top: 14px; font: 600 14.5px/1.2 var(--body); color: var(--ink2); }
.sh-move input { width: 84px; min-height: 40px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); font: 600 16px/1 var(--body); }
.fill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; max-height: 40vh; overflow-y: auto; }
.fill-grid button { border: 0; padding: 0; background: none; border-radius: 10px; overflow: hidden; cursor: pointer; }
.fill-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Computer parity (decision #555): series tabs size to their names; More fits one screen in two columns */
.seg.sr-tabs { display: flex; flex-wrap: wrap; }
.seg.sr-tabs a { flex: 1 1 auto; padding: 9px 14px; }
.seg.sr-tabs .sr-new { flex: 0 0 auto; }
@media (min-width: 960px) {
  .seg.sr-tabs { display: inline-flex; max-width: 100%; }
  .seg.sr-tabs a { flex: 0 0 auto; }
  .more-page { max-width: 980px; }
  .rows.more-rows { display: grid; grid-template-columns: 1fr 1fr; }
  .rows.more-rows > .row, .rows.more-rows > .row:first-child { border-top: 0; border-bottom: 1px solid var(--rule); }
  .rows.more-rows > .row:nth-child(odd) { border-right: 1px solid var(--rule); }
  .rows.more-rows > .row:nth-last-child(-n+2) { border-bottom: 0; }
}
/* More, in groups (decision #556) */
.more-h { margin: 22px 0 8px; }
.more-page .page-h + .rows { margin-top: 4px; }

/* Post page, calmer (decision #557): the picture, then the words with Curator's one action inside them, then post.
   Everything else is a quiet link. */
.pp-link { border: 0; background: none; padding: 6px 0; font: 600 14px/1.2 var(--body); color: var(--st-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.pp-link.strong { text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--st-soft); }
.capbox .c-foot { align-items: center; }
.cover-row { justify-content: center; margin-top: 6px; }
.cover-row.on { flex-direction: column; gap: 2px; }
.cover-row .pp-link[aria-pressed="true"] { color: var(--ink); }
.pp-more { display: flex; justify-content: center; gap: 22px; margin-top: 10px; }
.safe { padding: 10px 14px; }
.safe.ok { display: inline-flex; padding: 8px 14px; border-radius: 999px; }
.pp-side .promise { margin-top: 8px; }
.pp-link.strong { white-space: nowrap; flex: none; }
.capbox .c-foot { flex-wrap: wrap; row-gap: 6px; }
/* The rail's three actions are the same three gems as Home, icons only (decision #558) */
@media (min-width: 960px) {
  .sd-act { display: flex; justify-content: space-between; gap: 10px; padding: 0 6px; }
  .sd-btn { display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
  .sd-btn .gem { width: 56px; height: 56px; background: radial-gradient(circle at 50% 30%, var(--st-on), var(--st-deep) 125%); color: #fff; box-shadow: 0 8px 16px -10px var(--st-deep), inset 0 1px 0 rgba(255,255,255,.22); }
  .sd-btn .gem.k-camera { background: var(--st-floor); background: color-mix(in srgb, var(--st) 50%, var(--st-floor)); color: var(--st-deep); box-shadow: none; }
  .sd-btn .gem.k-send { background: var(--st-soft); color: var(--st-deep); box-shadow: inset 0 0 0 1px var(--st-floor); }
  .sd-btn .gem .ic { width: 24px; height: 24px; opacity: 1; }
  .sd-btn:hover .gem { transform: translateY(-1px); }
  .sd-btn[aria-current="page"] .gem { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--st); }
  .sd-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
}
/* The rail's gems sit like Home's (decision #558): Talk it big on top, Snap it and Post it under it */
@media (min-width: 960px) {
  .sd-act { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "talk talk" "snap post"; justify-items: center; row-gap: 12px; padding: 0; }
  .sd-act > .sd-btn:nth-child(1) { grid-area: talk; }
  .sd-act > .sd-btn:nth-child(2) { grid-area: snap; }
  .sd-act > .sd-btn:nth-child(3) { grid-area: post; }
  .sd-act > .sd-btn:nth-child(1) .gem { width: 84px; height: 84px; box-shadow: 0 12px 22px -12px var(--st-deep), 0 0 0 6px var(--st-soft), inset 0 1px 0 rgba(255,255,255,.22); }
  .sd-act > .sd-btn:nth-child(1) .gem .ic { width: 32px; height: 32px; }
  .sd-act > .sd-btn:nth-child(n+2) .gem { width: 50px; height: 50px; }
  .sd-act > .sd-btn:nth-child(n+2) .gem .ic { width: 21px; height: 21px; }
}
@media (min-width: 960px) { .sd-act { margin-bottom: 12px; } }

/* Moments uses the room (decision #559): quieter cards; the series as one slim line; on a computer the journal and
   the scrapbook fill the width as an even grid, newest first, with each card saying where it files. */
.j-meta { gap: 6px; }
.j-meta .j-age { color: var(--st-deep); font-weight: 600; }
.j-meta .j-age::before { content: '·'; margin-right: 6px; color: var(--muted); font-weight: 400; }
.sr-rows { display: grid; gap: 8px; margin-top: 12px; }
.sr-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); color: var(--ink); }
.sr-row .sr-t { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.sr-row .sr-t b { font: 600 16px/1.2 var(--display); }
.sr-row .sr-t span { font-size: 12.5px; color: var(--muted); }
.sr-row .sr-strip img { width: 32px; height: 40px; border-radius: 6px; }
.sc.quote { display: flex; flex-direction: column; justify-content: space-between; }
@media (min-width: 960px) {
  .sr-rows { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .jlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; column-gap: 14px; margin-top: 16px; }
  .jlist .group-h { display: none; }   /* on a computer each card says where it files; the grid stays even */
  .jlist .jrow, .jlist .jrow:first-of-type { border: 0; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); align-content: start; }
  .jlist .jrow:hover { box-shadow: 0 0 0 1.5px var(--st); }
  .scrap { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
  .scrap .sc { margin: 0; }
  .scrap .sc.quote { aspect-ratio: 4 / 5.6; }
}

/* Phone bar: Home wears the three gems, small, arranged like Home (decision #560) */
.tabbar a:first-child { flex-direction: row; gap: 8px; }
.tabbar .mini { display: grid; grid-template-columns: auto auto; grid-template-areas: "t t" "s p"; justify-items: center; gap: 1px 2px; }
.tabbar .mini .gem { width: 12px; height: 12px; box-shadow: none; }
.tabbar .mini .gem .ic { width: 7px; height: 7px; stroke-width: 2.6; opacity: 1; }
.tabbar .mini .gem:nth-child(1) { grid-area: t; width: 19px; height: 19px; background: radial-gradient(circle at 50% 30%, var(--st-on), var(--st-deep) 125%); color: #fff; }
.tabbar .mini .gem:nth-child(1) .ic { width: 10px; height: 10px; }
.tabbar .mini .gem:nth-child(2) { grid-area: s; background: color-mix(in srgb, var(--st) 50%, var(--st-floor)); color: var(--st-deep); }
.tabbar .mini .gem:nth-child(3) { grid-area: p; background: var(--st-soft); color: var(--st-deep); box-shadow: inset 0 0 0 1px var(--st-floor); }
/* Home's mark: just the three line icons, no circles (decision #560) */
.tabbar .mini .gem, .tabbar .mini .gem:nth-child(1), .tabbar .mini .gem:nth-child(2), .tabbar .mini .gem:nth-child(3) { width: auto; height: auto; background: none; box-shadow: none; color: currentColor; }
.tabbar .mini .gem .ic { width: 11px; height: 11px; stroke-width: 2.2; }
.tabbar .mini .gem:nth-child(1) .ic { width: 15px; height: 15px; }
.tabbar .mini { gap: 0 2px; }

/* The computer uses the whole screen (decision #561): the rail stays put; collections (Moments, Photo series, Post it's
   picks) grow with the window; reading pages keep a comfortable column, centered in the space. */
@media (min-width: 960px) {
  body { background: var(--paper); }
  .app { max-width: none; box-shadow: none; }
  .page, .page.wide { margin-left: auto; margin-right: auto; }
  .page.fluid { max-width: none; padding-left: clamp(32px, 3.2vw, 72px); padding-right: clamp(32px, 3.2vw, 72px); }
  .page.fluid .page-h .lede { max-width: 46em; }
  .sr-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .plist { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
}
@media (min-width: 1200px) {
  .home { max-width: 1680px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) 460px; padding-left: clamp(40px, 3.5vw, 80px); padding-right: clamp(40px, 3.5vw, 80px); }
  .h-left { max-width: 900px; }
}
@media (min-width: 1200px) {
  body[data-route="home"] .view { background: linear-gradient(180deg, var(--st-soft) 0, var(--paper) 46%); }
  body[data-route="home"] .home { background: none; }
}

/* ── One page frame on the computer (decision #562): every page starts beside the rail and runs up to 1200px;
   collections may grow past it; text never runs wider than a comfortable line. */
.ks { display: grid; gap: 28px; margin-top: 8px; }
.ks-h { font: 600 26px/1.15 var(--display); }
.ks-lede { margin: 6px 0 14px; color: var(--ink2); font-size: 15.5px; line-height: 1.45; max-width: 36em; }
.ks-wait { padding: 16px 18px; border-radius: 16px; background: var(--st-soft); color: var(--st-deep); font: 600 15px/1.4 var(--body); }
.sg { display: grid; gap: 10px; margin-top: 4px; }
.sg .stagecard { margin-top: 0; }
@media (min-width: 960px) {
  .page, .page.wide { max-width: 1200px; margin-left: 0; margin-right: auto; padding-left: clamp(32px, 3.2vw, 64px); padding-right: clamp(32px, 3.2vw, 64px); }
  .page.fluid { max-width: none; }
  .page-h .lede { max-width: 42em; }
  /* Keepsakes: their voice and letters side by side */
  .ks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  /* Due date and stages: the stages as a 3 x 2 grid */
  .sg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .sg .stagecard { align-items: start; }
  .fact.link { max-width: 560px; }
  /* Post it: a grid of post cards with real pictures */
  .plist { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
  .plist .pcard, .plist .pcard:first-of-type, .plist .pcard:nth-of-type(2) { grid-template-columns: 112px 1fr; padding: 12px; border: 0; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
  .plist .pthumb { width: 112px; height: 140px; }
  /* A moment: picture or player on the left, the words and actions on the right */
  .page.m-talk, .page.m-snap { max-width: 1200px; }
  .m-talk .m-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head head" "media body"; column-gap: 48px; align-items: start; }
  .m-talk .m-media .player { margin-top: 18px; }
  .m-body { max-width: 640px; }
  /* More and the set-up pages */
  .more-page { max-width: 1200px; }
  .rows.apps { max-width: 900px; }
  .style-box { max-width: 760px; }
}
/* Home on a computer: content starts at the top, the gems keep their size, and Snap it and Post it are normal width */
@media (min-width: 1200px) {
  .home { max-width: 1240px; margin: 0; align-content: start; min-height: 0; padding-top: 34px; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 48px; }
  .h-top { margin-bottom: 4px; }
  .orbs { grid-template-columns: 1fr 1fr; }
  .orbs .tile { min-height: 64px; }
  .h-left { max-width: none; }
}
.ks { margin-top: 18px; }

/* Home on a computer is one composed screen (decision #563): centered both ways in the space beside the rail, the
   date sits with the greeting, Lately without per-card Sample tags. */
.h-day { display: none; }
@media (min-width: 1200px) {
  body[data-route="home"] .view { display: grid; min-height: calc(100dvh - 46px); }
  .home { margin: 0 auto; align-self: center; width: 100%; min-height: 0; padding-top: 28px; padding-bottom: 40px; grid-template-areas: "hello talk" "left talk" "left tiles" "lately lately"; }
  .home .h-top { display: none; }
  .h-day { display: inline; margin-left: 14px; font: 500 15px/1 var(--body); color: var(--muted); vertical-align: 3px; }
}

/* Pages end on purpose, and early pages show what is coming (decision #564) */
.pg-foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); text-align: center; font: 500 12.5px/1.4 var(--body); color: var(--muted); letter-spacing: .02em; }
.ghost, .vrow.ghost { opacity: .5; box-shadow: 0 0 0 1px var(--rule); background: transparent; border-style: dashed; }
.vrow.ghost { border: 1.5px dashed var(--rule); box-shadow: none; }
.vrow.ghost .v-t { font-style: normal; color: var(--muted); }
.vlist.ahead { margin-top: 18px; }
.rows .row.ghost { opacity: .6; }
.sr-soon { opacity: .45; pointer-events: none; }
.sr-soon .h-shot-i { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; border: 1.5px dashed var(--rule); background: transparent; box-shadow: none; }
.sr-soon > span:last-child { color: var(--muted); }
.j-ahead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; padding: 14px 16px; border: 1.5px dashed var(--rule); border-radius: 14px; color: var(--muted); }
.j-ahead b { font: 600 17px/1.2 var(--display); color: var(--ink2); opacity: .7; }
.j-ahead span { font: 600 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
@media (min-width: 960px) {
  .view { display: flex; flex-direction: column; }
  .view > .page { flex: 1; display: flex; flex-direction: column; width: 100%; }
  .pg-foot { margin-top: auto; padding-top: 22px; padding-bottom: 4px; }
  .jlist .j-ahead { margin-top: 0; align-self: stretch; flex-direction: column; justify-content: center; align-items: flex-start; }
}

/* The wordmark, with presence (decision #565): RAiSE set small and spaced, LiFE large in the display face and the
   stage's deep tone, "for Belle" in a soft italic. Calm, not loud. */
@media (min-width: 960px) {
  .sd-brand { gap: 0; padding: 4px 8px 6px; }
  .sd-brand .wm { font: 700 12.5px/1 var(--body); letter-spacing: .34em; color: var(--ink2); }
  .sd-brand .wm b { display: block; margin-top: 6px; font: 600 50px/.9 var(--display); letter-spacing: -.025em; color: var(--st-deep); }
  .sd-brand .sd-for { margin-top: 8px; font: italic 400 20px/1.1 var(--display); color: var(--ink2); }
}
/* Phone Home: the same wordmark, one size up from before */
.h-top .wm { font-size: 14px; letter-spacing: .26em; }
.h-top .wm b { font: 600 19px/1 var(--display); letter-spacing: -.01em; }

/* RĀiSE LiFE (decision #566): the RAiSE family mark in ink with the macron in the stage's color, LiFE beside it in
   LiFE's own display face and the stage's deep tone, "for Belle" in a soft italic. */
.lockup { display: inline-flex; align-items: flex-end; gap: .22em; color: var(--ink); line-height: 1; }
.lockup .rw { display: block; height: 1em; width: auto; overflow: visible; }
.lockup .rw .mac { fill: var(--st); }
.lockup .lf { font: 600 1.32em/.78 var(--display); letter-spacing: -.02em; color: var(--st-deep); }
.h-top .lockup { font-size: 15px; }
@media (min-width: 960px) {
  .sd-brand { gap: 0; padding: 6px 8px 4px; }
  .sd-brand .lockup { font-size: 30px; }
  .sd-brand .sd-for { margin-top: 10px; font: italic 400 19px/1.1 var(--display); color: var(--ink2); }
  .sd-stage.up small { display: block; margin-bottom: 3px; font: 700 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .sd-stage.up .up-n { margin-top: 6px; font-size: 12px; color: var(--muted); }
  .sd-stage.up > span > span { display: block; }
}
@media (min-width: 960px) { .sd-brand .lockup { font-size: 34px; } }

/* The rail's tile is one size on every page, so the menu never moves (decision #567) */
@media (min-width: 960px) {
  .side .sd-stage { box-sizing: border-box; height: 104px; overflow: hidden; align-items: flex-start; }
  .side .sd-stage b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sd-stage.up .up-n { margin-top: 3px; }
}
/* Due date: the date is the page; the stages below open Moments, and say so */
.sg-h { margin-top: 28px; font: 600 22px/1.2 var(--display); }
.sg-sub { margin: 4px 0 10px; font-size: 14px; color: var(--muted); }

/* The mark's spark (decision #568): the macron and the i's dot take the stage's color; Beyond takes RAiSE's copper */
.lockup .rw .dot { fill: var(--st); }
body[data-stage="beyond"] .lockup .rw .mac, body[data-stage="beyond"] .lockup .rw .dot { fill: #B87433; }
body[data-stage="beyond"] .lockup .lf { color: #8A5422; }
/* One wind: the opening breeze, once a visit */
.breeze-veil { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--paper); transition: opacity .4s ease; }
.breeze-veil.out { opacity: 0; pointer-events: none; }
.bz { display: flex; flex-direction: column; align-items: center; width: min(62vw, 300px); }
.bz svg { width: 100%; height: auto; display: block; }
.bz-lf { margin-top: 6px; font: 600 clamp(44px, 12vw, 64px)/.9 var(--display); letter-spacing: -.02em; color: var(--st-deep); }
.bz-for { margin-top: 10px; font: italic 400 clamp(18px, 4.6vw, 22px)/1.1 var(--display); color: var(--ink2); }
body[data-stage="beyond"] .bz-lf { color: #8A5422; }
/* Kept: the toast carries the mark with one breeze */
.toast .tz { display: inline-block; width: 30px; margin-right: 10px; vertical-align: middle; }
.toast .tz svg { display: block; width: 100%; height: auto; }

/* The mark is RAiSE's, the same on every page and stage (decision #569): letters in ink; the macron, the i's dot and
   the flag in RAiSE copper; LiFE in a deep copper. The stage colors stay in the app itself. */
.lockup .rw .mac, .lockup .rw .dot, body[data-stage] .lockup .rw .mac, body[data-stage] .lockup .rw .dot { fill: #B87433; }
.lockup .lf, body[data-stage] .lockup .lf, .bz-lf, body[data-stage] .bz-lf { color: #8A5422; }

/* By the RAiSE mark's rules (Bench › Brand › How the RAiSE mark works, decisions #98, #108-#110):
   copper only ever marks the macron and the flags; the i's dot and every letter (LiFE too) are the letters' color;
   the main mark has nothing beneath it, so "for Belle" keeps clear space of at least half the letter height. */
.lockup .rw .dot, body[data-stage] .lockup .rw .dot { fill: currentColor; }
.lockup .lf, body[data-stage] .lockup .lf { color: currentColor; }
.lockup, body[data-stage] .lockup { color: var(--ink); }
@media (min-width: 960px) { .sd-brand .sd-for { margin-top: 20px; } }
.bz { width: min(80vw, 440px); }
.bz-for { margin-top: 30px; }

/* Thumbnail frames (decision #571): one shape (4:5) and one corner per size — small (under 60px) 8px, medium 12px,
   card-size 16px; the stage's soft color behind anything without a photo. */
.la img, .la-q, .j-thumb, .h-shot img, .h-shot-i, .pthumb, .wk-ser img, .sr img, .sr .h-shot-i, .fill-grid img { border-radius: 12px; }
.sr-strip img, .ya img, .sr-row .sr-strip img { border-radius: 8px; }
.sc, .sc.quote { border-radius: 16px; }
.la-q, .pthumb, .j-thumb { background: var(--st-soft); }

/* The rail (decision #572): the mark and the menu never move; the tile sits in a fixed slot between them, centered,
   at its own height (larger on Home, where it says what is coming up). */
@media (min-width: 960px) {
  .sd-slot { height: 132px; display: flex; flex-direction: column; justify-content: center; }
  .side .sd-stage { height: auto; overflow: visible; }
  .side .sd-stage.up { padding-top: 16px; padding-bottom: 16px; }
}

/* LiFE grows with the child (decision #573): RĀiSE stays the fixed brand (ink, copper macron); the word LiFE takes the
   stage's deep tone, and Beyond's (almost black) gives way to a deep copper for a spark. */
.lockup .lf, body[data-stage] .lockup .lf { color: var(--st-deep); }
body[data-stage="beyond"] .lockup .lf { color: #8A5422; }

/* The RAiSE colorway rules (Bench › Brand › Colorways, decision #98): the shape never changes and the colors come
   from the set. On LiFE's light grounds that is Navy & Copper: navy #1B2A4A letters (LiFE too), copper #B87433 only
   on the macron and the flags. Clear space: half the letter height on every side, nothing inside it, so LiFE stands
   half a letter away. Sizes: still down to 11px; full wind only at 64px letters and up (LiFE uses still and a breeze). */
.lockup, body[data-stage] .lockup { color: #1B2A4A; gap: .5em; }
.lockup .rw .mac, body[data-stage] .lockup .rw .mac { fill: #B87433; }
.lockup .rw .dot, body[data-stage] .lockup .rw .dot { fill: currentColor; }
.lockup .lf, body[data-stage] .lockup .lf, body[data-stage="beyond"] .lockup .lf { color: #1B2A4A; }

/* The sub-brand rule (decision #575, written on the Bench's Brand tab): RĀiSE wears a RAiSE colorway (here Black &
   Copper: black #191B18 letters, copper only on the macron and the flags); LiFE is its own word, outside the mark's
   clear space (half a letter away), in its own color: the stage's deep tone (Beyond: deep copper). */
.lockup, body[data-stage] .lockup { color: #191B18; gap: .5em; }
.lockup .lf, body[data-stage] .lockup .lf { color: var(--st-deep); }
body[data-stage="beyond"] .lockup .lf { color: #8A5422; }

/* One page, one color (decision #576): the one other color on a page is the small dot that marks a moment from another
   stage, in that stage's own color. */
.from-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--st); vertical-align: 1px; }

/* RAiSE rises (Brian, Nov 16): the opening mark rises into place and rises away, never sinks. */
.breeze-veil .bz { animation: bz-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.breeze-veil.out .bz { transform: translateY(-36px); transition: transform .45s ease-in; animation: none; }
@keyframes bz-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .breeze-veil .bz { animation: none; } .breeze-veil.out .bz { transform: none; } }

/* One front door, two ways in: from the sample, her own journal is one tap back. */
.s-line { display: flex; align-items: center; gap: 8px; }
.s-back { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: #fff; color: #1B2A4A; font: 600 12.5px/1.2 var(--body); white-space: nowrap; }
/* The phone's toolbar settles after load and the veil grows; a centered mark would sink with it. Pin it to the small
   viewport (svh never changes), so the mark only ever rises (Brian, Nov 16: "it now rises then goes down"). */
.breeze-veil .bz { position: fixed; left: 0; right: 0; top: 50vh; top: 50svh; margin: 0 auto; translate: 0 -50%; }
/* Softer (Brian, Nov 16): the same slow, gentle drift he liked, only upward. One easy glide up through the whole
   opening, then a quiet fade; no jump on the way out. */
.breeze-veil .bz { animation: bz-drift 3.4s cubic-bezier(.25,.1,.25,1) both; }
.breeze-veil.out .bz { animation: bz-drift 3.4s cubic-bezier(.25,.1,.25,1) both; transform: none; transition: none; }
@keyframes bz-drift { from { opacity: 0; transform: translateY(22px); } 18% { opacity: 1; } to { opacity: 1; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .breeze-veil .bz, .breeze-veil.out .bz { animation: none; } }
/* Fluid (Brian, Nov 16): one continuous glide on the GPU, matched to the shortened breeze; the flag is already in full wind. */
.breeze-veil .bz, .breeze-veil.out .bz { will-change: transform, opacity; animation: bz-glide 2.9s cubic-bezier(.37,0,.63,1) both; }
@keyframes bz-glide { from { opacity: 0; transform: translate3d(0, 18px, 0); } 12% { opacity: 1; } to { opacity: 1; transform: translate3d(0, -12px, 0); } }
@media (prefers-reduced-motion: reduce) { .breeze-veil .bz, .breeze-veil.out .bz { animation: none; } }

/* The opening wears Navy & Copper on Stone, like the front door (#578); the app inside wears the stage. */
.breeze-veil { background: radial-gradient(120% 70% at 50% 0%, #FFFFFF 0%, #F3F1EC 58%); }
.breeze-veil .bz-for { color: #1B2A4A; opacity: .75; }

/* Put it on your Home Screen: once, on iPhone, until she taps Got it. */
.a2hs { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.a2hs > div { flex: 1; min-width: 0; }
.a2hs b { display: block; font: 600 15px/1.25 var(--body); color: var(--ink); }
.a2hs span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.a2hs .ic { width: 15px; height: 15px; vertical-align: -2px; color: var(--st-deep); }
.a2hs-x { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--st-deep); color: #fff; font: 600 13.5px/1 var(--body); }

/* Samples on / off: one switch in More */
.sw-row { grid-template-columns: 1fr auto; align-items: center; }
.sw { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--rule); transition: background .2s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sw.on { background: var(--st-deep); }
.sw.on i { transform: translateX(18px); }

/* Her journal's door (no link on this device yet) wears the front page's Navy & Copper on Stone (#578). */
body.at-door { --st: #1B2A4A; --st-deep: #1B2A4A; --st-on: #3A5180; --st-soft: #E3E5EA; --st-floor: #C9CFD9; background: #F3F1EC; }
body.at-door { background: radial-gradient(120% 70% at 50% 0%, #FFFFFF 0%, #F3F1EC 62%) fixed; }
body.at-door .door { background: none; }
body.at-door .door h1 { color: #1B2A4A; }
body.at-door .door .wm, body.at-door .door .wm b { color: #1B2A4A; }
body.at-door .door .wm b { color: #3A5180; }

/* The Samples switch is a button row; Start your own asks one thing. */
button.sw-row { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.field { display: block; width: 100%; margin-top: 6px; min-height: 50px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--rule); font: 500 17px/1.2 var(--body); color: var(--ink); }
.field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--st-deep); }

/* Firsts (Nov 16): a quiet checklist; a kept first fills its dot and opens the moment. */
.ft-h { margin-top: 16px; }
.ft-rows .ft-row { grid-template-columns: 18px 1fr; align-items: center; }
button.ft-row { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ft-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--st); }
.ft-row.done .ft-dot { background: var(--st); box-shadow: none; }
.ft-row:not(.done) .r-t { color: var(--ink2); }
.ft-next { margin-top: 12px; text-align: left; }

/* Your month (Nov 16): the card on top of Moments, and the page Claude writes. */
.rc-card { display: grid; gap: 3px; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-floor); }
.rc-card small { font: 700 11px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--st-deep); }
.rc-card b { font: 600 20px/1.2 var(--display); color: var(--ink); }
.rc-card span { font-size: 14.5px; line-height: 1.45; color: var(--ink2); }
.rc-page { max-width: 760px; }
.rc-eyebrow { display: block; margin-bottom: 6px; font: 700 11.5px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--st-deep); }
.rc-story { margin: 6px 0 22px; font: 400 clamp(19px, 2.2vw, 23px)/1.55 var(--display); color: var(--ink); text-wrap: pretty; }
.rc-hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.rc-m { display: grid; gap: 6px; font: 600 13.5px/1.3 var(--body); color: var(--ink); }
.rc-m img, .rc-q { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; object-fit: cover; background: var(--st-soft); }
.rc-q { display: grid; place-items: center; padding: 12px; font: italic 400 14px/1.4 var(--display); color: var(--st-deep); text-align: center; }
.rc-cap { margin-top: 14px; font: italic 400 16px/1.5 var(--display); color: var(--ink2); }

/* Home with no due date: the month and year right on the Welcome card (Nov 16). */
.h-due .due-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.h-due .due-row .field { width: auto; margin: 0; min-width: 9em; flex: 1 1 9em; max-width: 14em; }
.h-due .due-row .btn { flex: none; }
.h-due .due-row .f-day { flex: 0 1 6em; min-width: 6em; }

/* Firsts as compact chips, so Keepsakes fits one screen (Nov 16). A kept first is filled and opens its moment. */
.ks-hrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ft-edit { font-size: 14px; }
.ft-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ft-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 13px 6px 11px; border: 0; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); font: 500 14px/1.2 var(--body); color: var(--ink2); cursor: pointer; text-align: left; }
.ft-chip i { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--st); }
.ft-chip.done { background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-floor); color: var(--ink); }
.ft-chip.done i { background: var(--st); box-shadow: none; }
.ft-chip small { display: block; font-size: 11.5px; color: var(--st-deep); }
.ft-chip.ft-more { color: var(--st-deep); font-weight: 600; }
.ft-chip.ft-more i { display: none; }
/* Edit your firsts */
.fe-list { display: grid; gap: 8px; margin: 14px 0; max-height: 46vh; overflow-y: auto; }
.fe-row { display: flex; align-items: center; gap: 10px; }
.fe-row .field { margin: 0; min-height: 44px; }
.fe-row.off .field { opacity: .45; text-decoration: line-through; }
.fe-add { display: flex; gap: 10px; align-items: center; }
.fe-add .field { margin: 0; min-height: 44px; }
.fe-add .btn { flex: none; min-height: 44px; }
.ks-hrow .ft-edit { border: 0; background: none; padding: 4px 2px; color: var(--st-deep); font: 600 14px/1 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fe-row .t-link, .fe-add .t-link { border: 0; background: none; color: var(--st-deep); font: 600 13.5px/1 var(--body); cursor: pointer; white-space: nowrap; }

/* Video (Nov 16): the clip plays where the photo would; Post it shows the clip itself. */
.m-vid { background: #000; }
video.hd-pic { object-fit: cover; background: #000; }
.pp-vid { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; border-radius: inherit; }
.fam-row { margin-top: 12px; }
/* Family link: the grandparents' view, read only */
body.fam .side, body.fam .tabbar, body.fam #strip, body.fam .dock-talk { display: none !important; }
.fam-page { max-width: 680px; margin: 0 auto; }
.fam-top { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 18px; }
.fam-h { font: 600 clamp(26px, 4vw, 34px)/1.15 var(--display); margin-bottom: 18px; }
.fam-list { display: grid; gap: 22px; }
.fam-m { border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.fam-m img, .fam-m video { display: block; width: 100%; max-height: 70vh; object-fit: cover; background: var(--st-soft); }
.fam-t { padding: 14px 16px 16px; }
.fam-t small { display: block; font: 600 12px/1.3 var(--body); color: var(--st-deep); }
.fam-t b { display: block; margin-top: 4px; font: 600 21px/1.25 var(--display); }
.fam-t p { margin-top: 6px; color: var(--ink2); line-height: 1.55; }

/* The editor (Nov 16): the picture big, four tabs, one panel. Dark like a darkroom so the photo is the light. */
.ed-room { background: #121214; color: #F3F1EC; display: grid; grid-template-rows: auto 1fr auto auto; height: 100dvh; }
.ed-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 8px; }
.ed-top b { font: 600 17px/1 var(--body); }
.ed-top .back { color: rgba(255,255,255,.8); }
.ed-done { border: 0; border-radius: 999px; padding: 9px 18px; background: #F3F1EC; color: #121214; font: 700 15px/1 var(--body); cursor: pointer; }
.ed-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 6px 16px; }
.ed-pic { max-width: 100%; max-height: 100%; border-radius: 6px; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
.ed-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font: 600 11.5px/1 var(--body); letter-spacing: .06em; color: rgba(255,255,255,.55); pointer-events: none; }
.ed-tabs { display: flex; justify-content: center; gap: 4px; padding: 8px 12px 4px; }
.ed-tabs button { border: 0; background: none; color: rgba(255,255,255,.6); padding: 8px 14px; border-radius: 999px; font: 600 15px/1 var(--body); cursor: pointer; }
.ed-tabs button[aria-selected="true"] { background: rgba(255,255,255,.14); color: #fff; }
.ed-panel { padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); max-height: 40vh; overflow-y: auto; }
.ed-looks { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.ed-look { flex: none; display: grid; gap: 6px; justify-items: center; border: 0; background: none; color: rgba(255,255,255,.75); font: 600 12.5px/1 var(--body); cursor: pointer; scroll-snap-align: start; }
.ed-look img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: #2a2a2e; box-shadow: 0 0 0 2px transparent; }
.ed-look.on { color: #fff; } .ed-look.on img { box-shadow: 0 0 0 2px #B87433; }
.ed-sliders { display: grid; gap: 10px; }
.ed-sl { display: grid; gap: 4px; font: 600 13px/1 var(--body); color: rgba(255,255,255,.8); }
.ed-sl span { display: flex; justify-content: space-between; }
.ed-sl b { font-weight: 600; color: rgba(255,255,255,.55); }
.ed-sl input[type=range] { width: 100%; accent-color: #B87433; }
.ed-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-room .ft-chip { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.ed-room .ft-chip.done { background: #F3F1EC; color: #121214; box-shadow: none; }
.ed-room .ft-chip i { display: none; }
.ed-text { margin: 12px 0 10px; background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); min-height: 64px; padding: 10px 14px; resize: none; }
.ed-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ed-inks { display: flex; gap: 8px; }
.ed-ink { width: 30px; height: 30px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); cursor: pointer; }
.ed-ink.on { box-shadow: 0 0 0 2px #121214, 0 0 0 4px #B87433; }
.ed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; }
.ed-room .pp-link { color: #F3F1EC; }
.ed-tip { font-size: 12.5px; color: rgba(255,255,255,.5); }
.ed-open { margin-right: 14px; }
@media (min-width: 960px) {
  .ed-room { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto auto minmax(0, 1fr); }
  .ed-top { grid-column: 1 / -1; }
  .ed-stage { grid-column: 1; grid-row: 2 / 4; }
  .ed-tabs { grid-column: 2; grid-row: 2; justify-content: flex-start; padding-top: 16px; }
  .ed-panel { grid-column: 2; grid-row: 3; max-height: none; overflow-y: auto; }
}
/* Phone editor: the picture never covers the tabs; the panel stays compact. */
.ed-stage { min-height: 0; overflow: hidden; }
.ed-pic { max-height: 100%; object-fit: contain; }
@media (max-width: 959px) {
  .ed-panel { max-height: 34vh; }
  .ed-sliders { gap: 4px; }
  .ed-sl { gap: 2px; font-size: 12.5px; }
}

/* Type it instead looks like a text box, the way a chat box does (Nov 16): easy to see, obviously tappable. */
.t-type { display: flex; align-items: center; width: 100%; min-height: 52px; margin-top: 12px; padding: 0 18px; border: 0; border-radius: 16px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); color: rgba(255,255,255,.88); font: 500 16px/1.2 var(--body); text-align: left; cursor: text; }
.t-type:hover, .t-type:focus-visible { background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); outline: none; }
.t-toss { display: block; margin: 12px auto 0; border: 0; background: none; color: rgba(255,255,255,.85); font: 600 15px/1 var(--body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
/* Typing opens in place at the bottom (no jump): the same box, now a real text field, File it right under it. */
.t-typing { display: block; min-height: 104px; margin: 0 0 12px; padding: 14px 18px; resize: none; color: #fff; font: 500 17px/1.45 var(--body); cursor: text; }
.t-typing::placeholder { color: rgba(255,255,255,.6); }
.t-typing:focus { outline: none; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }

/* SAMPLES ON sits in a lit pill, so it is clear they are on (Nov 16). */
.s-line b { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; margin-right: 4px; border-radius: 999px; background: #B87433; color: #fff; font-size: 11.5px; letter-spacing: .08em; box-shadow: 0 0 0 3px rgba(184,116,51,.28), 0 0 14px rgba(184,116,51,.55); }
.s-line b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }

/* Editor v2 (Nov 16), after Lightroom, VSCO and Snapseed: the photo as big as the screen allows, tools in one row,
   one tool at a time on a big slider, before/after split. */
.ed-room { grid-template-rows: auto minmax(0, 1fr) auto; }
.ed-top { gap: 10px; }
.ed-ba { border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.1); color: #fff; font: 600 13.5px/1 var(--body); cursor: pointer; }
.ed-ba[aria-pressed="true"] { background: #B87433; }
.ed-stage { padding: 4px 12px; }
.ed-frame { position: relative; display: inline-block; max-width: 100%; max-height: 100%; height: 100%; aspect-ratio: auto; touch-action: none; }
.ed-frame .ed-pic { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; border-radius: 4px; }
.ed-frame .ed-under { position: absolute; inset: 0; margin: auto; visibility: hidden; }
.ed-frame.splitting .ed-under { visibility: visible; }
.ed-frame .ed-over { position: relative; }
.ed-split { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.6); display: none; pointer-events: none; }
.ed-split::after { content: ''; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.ed-frame.splitting .ed-split { display: block; }
.ed-frame.cropping { cursor: grab; }
.ed-side { display: grid; grid-template-rows: auto auto; }
.ed-tools { display: flex; gap: 2px; justify-content: center; padding: 8px 10px 2px; overflow-x: auto; scrollbar-width: none; }
.ed-tools::-webkit-scrollbar { display: none; }
.ed-tools button { flex: none; border: 0; background: none; color: rgba(255,255,255,.62); padding: 9px 13px; border-radius: 999px; font: 600 15px/1 var(--body); cursor: pointer; }
.ed-tools button[aria-selected="true"] { background: #F3F1EC; color: #121214; }
.ed-panel { min-height: 150px; }
.ed-look img { width: 76px; height: 96px; }
.ed-look span { font-size: 12.5px; }
.ed-big { display: grid; gap: 8px; margin-top: 14px; font: 600 14px/1 var(--body); color: #fff; }
.ed-big span { display: flex; justify-content: space-between; }
.ed-big b { color: #B87433; font-weight: 700; }
.ed-big input[type=range] { width: 100%; height: 28px; accent-color: #F3F1EC; }
.ed-adjs .ft-chip.set::after { content: ''; width: 6px; height: 6px; margin-left: 2px; border-radius: 50%; background: #B87433; }
.ed-say { margin: 4px 0 12px; color: rgba(255,255,255,.75); font-size: 14.5px; line-height: 1.5; }
.ed-tip { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.5); }
@media (min-width: 960px) {
  .ed-room { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto minmax(0, 1fr); }
  .ed-top { grid-column: 1 / -1; }
  .ed-stage { grid-column: 1; grid-row: 2; padding: 8px 24px 24px; }
  .ed-side { grid-column: 2; grid-row: 2; align-content: start; overflow-y: auto; padding: 8px 8px 24px 0; }
  .ed-tools { justify-content: flex-start; flex-wrap: wrap; }
  .ed-panel { max-height: none; }
}
/* Post it: New post sits beside the title */
.ph-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.np-btn { flex: none; gap: 8px; cursor: pointer; }
.np-btn .ic { width: 18px; height: 18px; }
/* v2 fixes: the panel sits under the tools (not in the old v1 grid), and on the computer the looks wrap into a grid. */
.ed-side .ed-panel, .ed-side .ed-tools { grid-column: auto; grid-row: auto; }
@media (min-width: 960px) {
  .ed-side .ed-looks { flex-wrap: wrap; overflow: visible; }
  .ed-side .ed-tools { padding-left: 0; }
}
@media (min-width: 960px) { .ed-side .ed-tools { flex-wrap: nowrap; } .ed-side .ed-tools button { padding: 9px 11px; font-size: 14.5px; } }
.ed-tools { justify-content: safe center; }
/* Stage pills wrap on the phone, so none runs off either edge (Nov 16). */
.chips { flex-wrap: wrap; overflow: visible; margin: 14px 0 0; padding: 0; }
.sg-date { margin-top: 28px; }

/* Editor v3 (Nov 16): warm, welcoming, real buttons. After Edits, Adobe Express, VSCO and Lightroom. */
.ed-room { background: #17161A; }
.ed-top { padding: calc(10px + env(safe-area-inset-top)) 14px 8px; display: flex; align-items: center; gap: 10px; }
.ed-hist { display: flex; gap: 4px; margin-right: auto; margin-left: 4px; }
.ed-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.07); color: #F3F1EC; cursor: pointer; }
.ed-ic:disabled { opacity: .3; cursor: default; }
.ed-ic.sm { width: 36px; height: 36px; border-radius: 10px; }
.ed-ic.on { background: #F3F1EC; color: #17161A; }
.ei { width: 22px; height: 22px; }
.ed-ic .ei { width: 20px; height: 20px; }
.ed-done { padding: 10px 20px; border-radius: 999px; background: #F3F1EC; color: #17161A; font: 700 15px/1 var(--body); }
.ed-ba { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.07); }
/* the toolbar: a mark over a word, like every editor she knows */
.ed-tools { gap: 4px; padding: 10px 10px 6px; }
.ed-tools button { display: grid; justify-items: center; gap: 5px; min-width: 58px; padding: 9px 8px 8px; border-radius: 14px; color: rgba(243,241,236,.62); font: 600 12px/1 var(--body); }
.ed-tools button[aria-selected="true"] { background: rgba(255,255,255,.1); color: #fff; }
.ed-tools button[aria-selected="true"] .ei { color: #E3A86B; }
.ed-panel { margin: 4px 12px calc(12px + env(safe-area-inset-bottom)); padding: 14px 14px 12px; border-radius: 20px; background: #232228; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.ed-chip { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); font: 600 13.5px/1 var(--body); cursor: pointer; }
.ed-chip.on { background: #F3F1EC; color: #17161A; }
.ed-chip.add { background: rgba(227,168,107,.18); color: #F0C08F; }
.ed-chip.set::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #E3A86B; vertical-align: 2px; }
.ed-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ed-btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font: 600 14px/1 var(--body); cursor: pointer; }
.ed-btn.main { background: #E3A86B; color: #17161A; }
.ed-btn.quiet { background: none; color: rgba(255,255,255,.62); }
.ed-lab { margin: 14px 0 8px; font: 700 11.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ed-seg { display: flex; gap: 4px; }
.ed-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ed-colors .ed-ink { width: 30px; height: 30px; }
.ed-wheel { position: relative; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(#f43, #fb3, #8d4, #3cf, #66f, #c4f, #f43); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); cursor: pointer; overflow: hidden; }
.ed-wheel input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); opacity: 0; cursor: pointer; }
.ed-hex { width: 92px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font: 600 13.5px/1 ui-monospace, Menlo, monospace; text-transform: uppercase; }
.ed-hex:focus { outline: 2px solid #E3A86B; }
.ed-text { margin: 12px 0 10px; }
/* selection boxes over the photo, with a corner handle */
.ed-layer { position: absolute; inset: 0; pointer-events: none; }
.ed-sel { position: absolute; border: 1.5px dashed rgba(255,255,255,.5); border-radius: 8px; pointer-events: auto; cursor: move; }
.ed-sel.on { border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.ed-sel.round { border-radius: 50%; }
.ed-h { position: absolute; right: -11px; bottom: -11px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: nwse-resize; }
.ed-sel.round .ed-h { right: 50%; bottom: -11px; margin-right: -11px; cursor: ns-resize; }
.ed-frame.placing { cursor: crosshair; }
.ed-hint { display: none; }
.ed-open { min-height: 44px; padding: 0 18px; margin-right: 0; }
.ed-tools { gap: 2px; } .ed-tools button { min-width: 50px; padding: 9px 6px 8px; }
.ed-ba { white-space: nowrap; }
@media (max-width: 959px) { .ed-tools button { min-width: 46px; padding: 8px 4px 7px; font-size: 11.5px; } .ed-top { gap: 8px; padding-left: 10px; padding-right: 10px; } .ed-ba { padding: 10px 11px; } }

/* Create (Nov 16): her studio. Keep going and her recent photos scroll sideways, a tap from a post. */
.cr-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.cr-row::-webkit-scrollbar { display: none; }
.cr-tile { flex: none; display: grid; gap: 6px; width: 112px; font: 600 12.5px/1.25 var(--body); color: var(--ink); }
.cr-tile img, .cr-q { width: 112px; height: 140px; border-radius: 14px; object-fit: cover; background: var(--st-soft); box-shadow: 0 0 0 1px var(--rule); }
.cr-q { display: grid; place-items: center; padding: 10px; font: italic 500 12.5px/1.35 var(--display); color: var(--st-deep); text-align: center; }
.cr-tile span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 960px) { .cr-row { flex-wrap: wrap; overflow: visible; } .cr-tile, .cr-tile img, .cr-q { width: 132px; } .cr-tile img, .cr-q { height: 165px; } }
.m-share { margin-top: 10px; }

/* Corners (Nov 17): the shape that becomes the photo, with four handles */
.ed-quad { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ed-quad polygon { fill: rgba(255,255,255,.08); stroke: #fff; stroke-width: .5; vector-effect: non-scaling-stroke; stroke-width: 2px; }
.ed-corner { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 0 4px rgba(227,168,107,.5); pointer-events: auto; cursor: grab; touch-action: none; }
@media (max-width: 959px) { .ed-tools { justify-content: flex-start; } }

/* Touch up: the brush ring that shows her brush size on the photo */
.ed-brush { display: none; position: absolute; left: 50%; top: 50%; width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1.5px solid rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.2); border-radius: 50%; pointer-events: none; z-index: 3; }
.ed-frame.brushing .ed-brush { display: block; }
.ed-frame.brushing { cursor: crosshair; }

/* Editor v4 (Brian, Nov 17: "a more professional Apple-esque clean vibe; ours feels like PowerPoint"). Black, the phone's own
   type, round tool marks, plain-word options, a thin ruler for every slider. No cards, no boxed gray buttons. */
.ed-room { --edf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Figtree, system-ui, sans-serif; background: #000; font-family: var(--edf); -webkit-font-smoothing: antialiased; }
.ed-room button, .ed-room input, .ed-room textarea, .ed-room label { font-family: var(--edf); }
.ed-top { padding: calc(8px + env(safe-area-inset-top)) 16px 6px; gap: 6px; }
.ed-x { border: 0; background: none; padding: 8px 2px; color: rgba(255,255,255,.88); font: 400 16px/1 var(--edf); cursor: pointer; }
.ed-hist { margin-left: 8px; gap: 0; }
.ed-ic { width: 38px; height: 38px; border-radius: 50%; background: none; color: rgba(255,255,255,.88); }
.ed-ic .ei { width: 21px; height: 21px; stroke-width: 1.6; }
.ed-ba { padding: 7px 12px; border-radius: 999px; background: none; color: rgba(255,255,255,.72); font: 500 14px/1 var(--edf); }
.ed-ba[aria-pressed="true"] { background: rgba(255,255,255,.16); color: #fff; }
.ed-done { height: 32px; padding: 0 16px; border-radius: 999px; background: #fff; color: #000; font: 600 15px/32px var(--edf); }
.ed-pic, .ed-frame .ed-pic { box-shadow: none; border-radius: 2px; }
.ed-tools { gap: 8px; padding: 12px 14px 4px; }
.ed-tools button { min-width: 54px; padding: 0; gap: 6px; border-radius: 0; background: none !important; color: rgba(255,255,255,.55); font: 500 11px/1.1 var(--edf); letter-spacing: 0; }
.ed-tools button .ei { width: 44px; height: 44px; padding: 11px; box-sizing: border-box; border-radius: 50%; background: rgba(255,255,255,.09); color: rgba(255,255,255,.88) !important; stroke-width: 1.6; transition: background .15s, color .15s; }
.ed-tools button[aria-selected="true"] { color: #fff; }
.ed-tools button[aria-selected="true"] .ei { background: #fff; color: #000 !important; }
.ed-panel { margin: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 0; background: none; box-shadow: none; }
.ed-chips { flex-wrap: nowrap; overflow-x: auto; gap: 2px; justify-content: safe center; scrollbar-width: none; }
.ed-chips::-webkit-scrollbar { display: none; }
.ed-chip { min-height: 32px; padding: 0 13px; border-radius: 999px; background: none; color: rgba(255,255,255,.55); font: 500 14px/1 var(--edf); white-space: nowrap; }
.ed-chip.on { background: rgba(255,255,255,.16); color: #fff; }
.ed-chip.add { background: none; color: #fff; }
.ed-say { margin: 12px auto 2px; max-width: 34em; text-align: center; color: rgba(255,255,255,.48); font: 400 13px/1.45 var(--edf); }
.ed-lab { margin: 18px 0 8px; text-align: center; color: rgba(255,255,255,.42); font: 500 11px/1 var(--edf); letter-spacing: .06em; }
.ed-btns { justify-content: center; gap: 20px; margin-top: 12px; }
.ed-btn { min-height: 34px; padding: 0 4px; border-radius: 999px; background: none; color: rgba(255,255,255,.88); font: 500 14.5px/1 var(--edf); }
.ed-btn.quiet { color: rgba(255,255,255,.5); }
.ed-btn.main { padding: 0 20px; background: #fff; color: #000; font-weight: 600; }
.ed-looks { gap: 10px; justify-content: safe center; scrollbar-width: none; }
.ed-looks::-webkit-scrollbar { display: none; }
.ed-look { gap: 7px; color: rgba(255,255,255,.55); font: 500 11px/1 var(--edf); }
.ed-look img { width: 64px; height: 80px; border-radius: 6px; box-shadow: none; }
.ed-look.on { color: #fff; } .ed-look.on img { box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #fff; }
.ed-big { margin-top: 16px; gap: 4px; }
.ed-big span { justify-content: center; align-items: baseline; gap: 8px; color: rgba(255,255,255,.5); font: 500 12px/1 var(--edf); }
.ed-big b { min-width: 2.4em; color: #fff; font: 600 13px/1 var(--edf); font-variant-numeric: tabular-nums; }
.ed-big input[type=range] { -webkit-appearance: none; appearance: none; height: 30px; margin: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.32) 0 1px, transparent 1px 7px) center / 100% 10px no-repeat; cursor: pointer; accent-color: #fff; }
.ed-big.mid input[type=range] { background: linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,.75)) center / 1.5px 18px no-repeat, repeating-linear-gradient(90deg, rgba(255,255,255,.32) 0 1px, transparent 1px 7px) center / 100% 10px no-repeat; }
.ed-big input[type=range]::-webkit-slider-runnable-track { height: 30px; background: transparent; }
.ed-big input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 3px; height: 26px; margin-top: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 1px 6px rgba(0,0,0,.6); }
.ed-big input[type=range]::-moz-range-track { background: transparent; }
.ed-big input[type=range]::-moz-range-thumb { width: 3px; height: 26px; border: 0; border-radius: 2px; background: #fff; }
.ed-text { border-radius: 12px; background: rgba(255,255,255,.08); box-shadow: none; font: 400 16px/1.4 var(--edf); }
.ed-colors { justify-content: center; }
.ed-colors .ed-ink, .ed-wheel { width: 28px; height: 28px; }
.ed-ink.on { box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #fff; }
.ed-hex { border-radius: 999px; text-align: center; }
.ed-hex:focus { outline: 1.5px solid #fff; }
.ed-ic.on { background: rgba(255,255,255,.16); color: #fff; }
.ed-row { justify-content: center; }
.ed-corner { box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 0 4px rgba(255,255,255,.28); }
@media (min-width: 960px) {
  .ed-side { padding: 12px 20px 24px 4px; }
  .ed-side .ed-tools { flex-wrap: wrap; justify-content: flex-start; row-gap: 14px; padding: 8px 0 6px; }
  .ed-side .ed-tools button { padding: 0; font-size: 11px; }
  .ed-chips { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
}
@media (max-width: 959px) { .ed-tools { justify-content: flex-start; } .ed-tools button { min-width: 52px; padding: 0; font-size: 10.5px; } }

/* Collage (Nov 17): Carousel or Collage, then a layout, spacing, corners and the color behind */
.np-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cl { display: grid; gap: 14px; margin: 14px auto 0; max-width: 420px; }
.cl-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 11px; background: rgba(43,42,51,.07); }
.cl-seg button { min-height: 34px; border: 0; border-radius: 9px; background: none; color: var(--ink2); font: 600 14px/1 var(--body); cursor: pointer; }
.cl-seg button[aria-pressed="true"] { background: var(--card, #fff); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.06); }
.cl-lays { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cl-lay { display: grid; justify-items: center; gap: 5px; border: 0; background: none; color: var(--ink2); font: 600 11.5px/1 var(--body); cursor: pointer; }
.cl-lay svg { width: 40px; height: 50px; padding: 4px; border-radius: 9px; fill: rgba(43,42,51,.22); box-sizing: content-box; }
.cl-lay[aria-pressed="true"] { color: var(--ink); }
.cl-lay[aria-pressed="true"] svg { fill: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cl-sl { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; font: 600 13px/1 var(--body); color: var(--ink2); }
.cl-sl input { width: 100%; accent-color: var(--ink); }
.cl-bgs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cl-bg { width: 28px; height: 28px; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43,42,51,.25); cursor: pointer; }
.cl-bg[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper, #fff), 0 0 0 3.5px var(--ink); }
.cl-turn { margin-left: 6px; border: 0; background: none; color: var(--ink); font: 600 13.5px/1 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 14px 0 16px; }
.cl-pk { position: relative; cursor: pointer; }
.cl-pk input { position: absolute; opacity: 0; }
.cl-pk img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--st-soft); }
.cl-pk i { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1.5px #fff; }
.cl-pk input:checked + img { outline: 3px solid var(--ink); outline-offset: -3px; }
.cl-pk input:checked ~ i { background: var(--ink); }
.cl-pk input:checked ~ i::after { content: ''; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cl-pk input:disabled ~ img { opacity: .45; }
@media (max-width: 959px) { .ed-room { grid-template-columns: minmax(0, 1fr); } }
.ed-top, .ed-stage, .ed-side, .ed-panel, .ed-tools { min-width: 0; }
.ed-pic:not([src]) { visibility: hidden; }
.cl-lays { flex-wrap: nowrap; gap: 6px; }
.cl-lay svg { width: 34px; height: 42px; }

/* Device pass (Brian, Nov 17: the iPad 11 "needs optimization"). Measured first: every touch target at least 44pt,
   no label under 12px. */
.s-see button { position: relative; }
.s-see button::after { content: ''; position: absolute; inset: -8px -2px; }   /* a 45pt tap area, the bar stays slim */
.hq-t small, .ya-t small, .v-t small, .sd-stage.up small, .pk-t small, .rc-card small, .pcard .why, .fact .f-l, .wk-fact .f-l, .wk-card .f-l, .t-ask small { font-size: 12px; }
.pthumb .n { font-size: 11.5px; }
.ed-ba { min-height: 36px; }
@media (max-width: 959px) { .ed-tools button { font-size: 11px; } }
.sheet .lede a { color: var(--st-deep); text-decoration: underline; text-underline-offset: 3px; }

/* iPad held upright (700–959px): the app uses the screen instead of a 560px phone column. Wider pages, bigger type,
   Lately on Home, and the tab bar floats as a pill the way iPad apps do. */
@media (min-width: 700px) and (max-width: 959px) {
  :root { --pad: 36px; }
  .app { max-width: 820px; }
  .tabbar { left: 0; right: 0; max-width: 480px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 6px 8px; border-radius: 26px; box-shadow: 0 12px 34px -10px rgba(43,42,51,.32), 0 0 0 1px var(--rule); }
  .view { padding-bottom: calc(var(--tab) + 44px + env(safe-area-inset-bottom)); }
  .home { padding: 28px var(--pad) 24px; --ob: 236px; }
  .h-hello { font-size: 21px; }
  .page { padding: 28px var(--pad) 48px; }
  .page-h h1 { font-size: 38px; }
  .page-h .lede { font-size: 17px; max-width: 40em; }
  .lately { display: block; margin-top: 26px; }
  .la-h { display: flex; justify-content: space-between; align-items: baseline; }
  .la-h h2 { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .la-h a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font: 600 15px/1 var(--body); color: var(--ink2); }
  .la-h a .ic { width: 16px; height: 16px; }
  .la-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
  .la { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 10px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--rule), 0 10px 22px -18px rgba(43,42,51,.5); }
  .la > span:last-child { min-width: 0; }
  .la img, .la-q { flex: none; width: 56px; height: 70px; border-radius: 10px; object-fit: cover; background: var(--st-soft); display: grid; place-items: center; color: var(--st-deep); }
  .la-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 16px/1.2 var(--display); }
  .la-f { display: block; margin-top: 4px; font: 600 12px/1.2 var(--body); color: var(--st-deep); }
  .sheet { max-width: 640px; }
  .toast { bottom: calc(var(--tab) + 40px + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) { .h-top .lockup { display: none; } }   /* the rail already carries the name; on Home it collided with the date */
@media (min-width: 700px) and (max-width: 959px) {
  .frame.s45 { width: min(72%, 460px); }   /* the post's picture is the point of the page: big on the iPad */
  .frame.s916 { width: min(50%, 320px); }
}

/* No containers (Brian, Nov 17: "the home page is in a container"). Home's color runs edge to edge behind it, and on a
   computer the app uses the whole window: no frame, no 1380px cap. Content keeps its readable widths inside. */
@media (min-width: 700px) {
  body[data-route="home"] .view { background: linear-gradient(180deg, var(--st-soft) 0, var(--paper) 46%); }
  body[data-route="home"][data-stage="child"] .view, body[data-route="home"][data-stage="teen"] .view, body[data-route="home"][data-stage="beyond"] .view { background: linear-gradient(180deg, var(--st-soft) 0, var(--paper) 24%); }
  .home, body[data-stage] .home { background: none; }
  .app { max-width: none; }
}
@media (min-width: 960px) { body { background: var(--paper); } .app { box-shadow: none; } }

/* Edit a post's words and hashtags (Nov 17) */
.capbox .c-foot .pp-link + .pp-link { margin-left: 4px; }
.capbox.ce { display: grid; gap: 8px; }
.ce-lab { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ce-lab + .ce-text { margin-top: 2px; }
.ce-text { min-height: 120px; resize: vertical; font-size: 16.5px; line-height: 1.45; }
.ce-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ce-tag { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--st-soft); color: var(--st-deep); font: 600 14.5px/1 var(--body); }
.ce-tag button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 18px; cursor: pointer; }
.ce-add { flex: 1; min-width: 140px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(43,42,51,.06); font: 500 15px/1 var(--body); color: var(--ink); }
.ce-add:focus { outline: 2px solid var(--st); outline-offset: 0; }
.ce-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.ce-foot .btn { min-height: 44px; padding: 0 22px; }
@media (min-width: 960px) {   /* the app tabs stay on one line (Brian, Nov 17: TikTok dropped to a line of its own on the iPad) */
  .pp .pf { flex-wrap: nowrap; gap: 6px; overflow-x: auto; }
  .pp .pf button { flex: 1 1 auto; min-height: 40px; padding: 0 11px; font-size: 14px; white-space: nowrap; }
}
@media (min-width: 960px) { .pp .pf { gap: 4px; } .pp .pf button { padding: 0 8px; font-size: 13.5px; } }
@media (min-width: 960px) and (max-width: 1159px) { .pp { grid-template-areas: "pf pf" "pic side"; row-gap: 16px; } }   /* narrow windows: the app tabs get the full width, still one line */
