/* Calm, full-screen app. White like the flower card. Same type, spacing and palette as the Stage 1 cards (see ../DESIGN_LANGUAGE.md).
   Glass belongs to the desktop widget only; the app is quiet white paper. */
:root { --ink: #26343d; --soft: rgba(38,52,61,.66); --faint: rgba(38,52,61,.3); --line: rgba(38,52,61,.12); --wash: rgba(38,52,61,.04);
  --accent: #4a86c5; --tape: #f7ee9e; --tint: 138,182,236; --sans: "Jost", "Segoe UI", system-ui, sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--sans); font-weight: 400; color: var(--ink); background: #fff; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.app { position: fixed; inset: 0; display: flex; flex-direction: column; background: #fff; }
.titlebar { height: 36px; flex: none; display: flex; align-items: center; justify-content: space-between; padding-left: 14px; border-bottom: 1px solid var(--line); background: #fff; }
.tb-id { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.tb-ctl { display: flex; height: 100%; color: var(--soft); } .tb-ctl svg { width: 46px; height: 100%; padding: 13px 18px; }
.view { flex: 1; min-height: 0; display: flex; }

/* ---------- onboarding: cards on the full screen ---------- */
.ob { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; background: var(--wash); overflow: auto; }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 36px; }
.ob-brand { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.ob-brand img { width: 26px; height: 26px; }
.ob-stage { flex: 1; display: grid; place-items: center; padding: 20px 20px 70px; }
.cardwrap { position: relative; width: 480px; max-width: 100%; }
.cardwrap::before, .cardwrap::after { content: ""; position: absolute; left: 14px; right: 14px; height: 100%; background: #fff; box-shadow: 0 0 0 1px var(--line); z-index: 0; }
.cardwrap::before { top: 12px; opacity: .7; } .cardwrap::after { top: 24px; left: 28px; right: 28px; opacity: .4; }
.ocard { position: relative; z-index: 1; background: #fff; padding: 46px 40px 28px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(25,40,60,.14); animation: cardin .38s cubic-bezier(.3,.8,.3,1); }
.ocard .tape { position: absolute; top: -18px; left: 32px; width: 14px; height: 42px; background: var(--tape); opacity: .92; box-shadow: 0 1px 2px rgba(30,40,50,.18); }
@keyframes cardin { from { opacity: 0; transform: translateY(12px); } }
.ocard.center { text-align: center; justify-items: center; }
.oc { display: grid; gap: 16px; }
.oc .foot2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.steps { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.steps i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); } .steps i.on { background: var(--accent); }
.mark { width: 84px; height: 84px; }
.opt { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- the app ---------- */
.side { width: 240px; flex: none; padding: 26px 0 20px 28px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.brandrow { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.brandrow img { width: 26px; height: 26px; }
.brandrow span { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.side nav { display: grid; gap: 1px; align-content: start; flex: 1; overflow: auto; }
.grp { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 16px 0 3px; } .grp:first-child { margin-top: 0; }
.nv { text-align: left; font-size: 13px; font-weight: 500; color: var(--soft); padding: 5px 12px 5px 0; width: 100%; }
.nv:hover { color: var(--ink); }
.nv[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nv[aria-current="page"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.me { padding: 14px 12px 0 0; border-top: 1px solid var(--line); }
.main { flex: 1; min-width: 0; overflow: auto; padding: 40px 56px 60px; }
.page { max-width: 1040px; display: flex; flex-direction: column; gap: 34px; }

/* type: as the cards */
.cap { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1 { font-size: 38px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; margin-left: -.04em; font-variant-numeric: tabular-nums; }
.sub { margin-top: 4px; font-size: 13px; font-weight: 600; }
p.t { font-size: 14px; font-weight: 500; line-height: 1.5; }
p.s { font-size: 13px; font-weight: 400; color: var(--soft); line-height: 1.45; }
.lbl { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.quiet { color: var(--soft); }
.num { font-weight: 700; font-variant-numeric: tabular-nums; }
.big { font-size: 38px; font-weight: 700; line-height: .92; letter-spacing: -.01em; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.head .cap { margin-bottom: 10px; }
.stack { display: grid; gap: 6px; align-content: start; } .row { display: flex; align-items: center; gap: 12px; } .row.sp { justify-content: space-between; }
.grid { display: grid; gap: 6px; } .g4 { grid-template-columns: repeat(4, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }

.box { background: var(--wash); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; text-align: left; transition: background .2s; }
button.box:hover { background: rgba(38,52,61,.08); }

/* liquid-glass buttons, tinted so they show on white */
.gbtn, .chip { position: relative; border: 0; border-radius: 999px; color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 7px 14px; white-space: nowrap;
  background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), rgba(var(--tint), .17);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.85), inset 0 -9px 12px -7px rgba(255,255,255,.55), 0 0 0 1px rgba(110,150,190,.2), 0 6px 14px rgba(30,50,70,.1);
  transition: background .25s, transform .2s; }
.gbtn::before, .chip::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.4) 30%, rgba(var(--tint), .45) 64%, rgba(255,255,255,.92) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.gbtn:hover, .chip:hover { background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.08)), rgba(var(--tint), .3); transform: translateY(-1px); }
.gbtn.on, .chip[aria-pressed="true"] { background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 60%), rgba(var(--tint), .5); }
.gbtn.wide { width: 100%; padding: 11px 14px; font-size: 13px; }
.gbtn.round { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; font-size: 20px; font-weight: 400; line-height: 1; }
.link { font-size: 12.5px; font-weight: 500; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; } .link:hover { color: var(--ink); }

.fld { display: grid; gap: 5px; text-align: left; } .fld > span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.inp { width: 100%; padding: 10px 11px; border: 1px solid rgba(38,52,61,.2); border-radius: 0; background: #fff; font-size: 14px; font-weight: 500; }
input[type=range] { accent-color: var(--accent); width: 100%; }
.sw { width: 40px; height: 22px; border-radius: 999px; background: rgba(38,52,61,.18); position: relative; flex: none; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(30,40,50,.3); transition: transform .2s; }
.sw[aria-checked="true"] { background: rgba(var(--tint), .95); } .sw[aria-checked="true"]::after { transform: translateX(18px); }

/* the flower card inside the app: the widget's twin, taped */
.fcard { position: relative; width: 222px; height: 292px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(25,40,60,.16); flex: none; }
.fcard .tape { position: absolute; top: -18px; left: 22px; width: 14px; height: 42px; background: var(--tape); opacity: .92; box-shadow: 0 1px 2px rgba(30,40,50,.18); }
.fcard .wt { position: absolute; left: 22px; top: 34px; right: 22px; }
.fcard .wd { font-size: 30px; font-weight: 700; line-height: 1; margin-top: 2px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fcard .fb { position: absolute; left: 10px; right: 10px; top: 76px; height: 152px; display: flex; align-items: flex-end; justify-content: flex-end; }
.fcard img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fcard .ac { position: absolute; left: 22px; right: 22px; bottom: 16px; }
.today { display: grid; grid-template-columns: 222px 1fr; gap: 36px; align-items: start; }
.today .right { display: grid; gap: 10px; }

/* prototype dock */
.dock { position: fixed; right: 16px; bottom: 14px; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(25,40,60,.14); font-size: 12px; font-weight: 600; }
.dock .mid { min-width: 150px; text-align: center; }

/* logo and icon sheet */
.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet .box { display: grid; gap: 14px; justify-items: start; }
.onblue { background: linear-gradient(135deg, #8ab6ec, #4a86c5); border-color: transparent; }
.sizes { display: flex; align-items: flex-end; gap: 18px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 900px) { .side { display: none; } .today { grid-template-columns: 1fr; } .main { padding: 28px 24px 60px; } }

/* left list: categories with an arrow that opens their pages */
.brandrow { margin-bottom: 22px; } .brandrow img { display: none; }
.nv.main { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink); padding: 8px 14px 8px 0; }
.nv.main[aria-current="page"]::before { margin-right: 8px; }
.nv.main[aria-current="page"] { justify-content: flex-start; }
.nv .chev { color: var(--soft); transition: transform .2s; flex: none; }
.nv[aria-expanded="true"] .chev { transform: rotate(90deg); }
.kids { display: grid; gap: 1px; margin: 0 0 6px 4px; padding-left: 14px; border-left: 1px solid var(--line); }
.kids[hidden] { display: none; }
.nv.kid { font-size: 13px; font-weight: 500; color: var(--soft); padding: 4px 12px 4px 0; }
/* the weekday on the flower card: quiet, on the month's line */
.fcard .wrow { display: flex; align-items: baseline; justify-content: space-between; }
.fcard .dayname { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--soft); }

/* the flower card in the app has no button, so the flower gets the room */
.fcard .fb { height: 190px; }
.brandrow { display: none; }
.side nav { padding-top: 4px; }
/* calendar: the months you have filled */
.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mcard { display: grid; gap: 14px; padding: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(25,40,60,.1); }
.mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini i { aspect-ratio: 1; border-radius: 3px; background: transparent; }
.mini i.dy { background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.mini i.ph { background-size: cover; background-position: center; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); border-radius: 1px; }
@media (max-width: 1100px) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* weekday: light and quiet, under the day number (the date itself is as before) */
.fcard .dayname { margin-top: 3px; font-size: 12px; font-weight: 300; letter-spacing: .08em; color: var(--soft); }
/* month cards: the mini calendar stays inside its frame at any width */
.months { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.mcard { min-width: 0; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
.mini { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 3px; }
.mini i { min-width: 0; }
.fcard .fb { top: 108px; height: 166px; }
.fcard .dayname { text-transform: uppercase; }

/* ---- screens ported from the prototype ---- */
.main { display: flex; }
.page { flex: 1; min-width: 0; }
.main.solo { display: grid; place-items: center; }
.main.solo .page { max-width: 440px; flex: none; }
.body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 500; color: var(--soft); min-height: 34px; }
.tools { display: flex; align-items: center; gap: 10px; }
.fill { flex: 1; min-height: 0; }
textarea.inp.fill { min-height: 240px; }
textarea.inp { resize: none; line-height: 1.5; }
.scroll { min-height: 0; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); }
.chips, .opt { display: flex; flex-wrap: wrap; gap: 8px; }
.rel { font-size: 10px; font-weight: 600; letter-spacing: .14em; padding: 2px 8px; border: 1px solid rgba(38,52,61,.25); border-radius: 999px; color: var(--soft); }
.head .cap { display: flex; align-items: center; gap: 10px; }
.mono-t { font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--line); }
.tile { min-height: 78px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .lbl { color: var(--soft); }
.q1 { background: rgba(var(--tint), .12); } .q2 { background: rgba(var(--tint), .22); } .q3 { background: rgba(var(--tint), .34); } .q4 { background: rgba(var(--tint), .48); }
.box.sel { border: 1.5px solid var(--accent); background: #fff; }
.dots { display: flex; gap: 5px; } .dots i { width: 12px; height: 12px; border-radius: 3px; background: rgba(38,52,61,.12); } .dots i.on { background: rgba(38,52,61,.6); }
.bar { height: 6px; background: rgba(38,52,61,.12); border-radius: 3px; overflow: hidden; } .bar i { display: block; height: 100%; background: rgba(38,52,61,.6); }
.chip.tick { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; flex: none; }
.chip.tick::after { content: ""; font-size: 15px; font-weight: 700; line-height: 1; }
.chip.tick[aria-pressed="true"]::after { content: "\2713"; }
.swrap { filter: drop-shadow(0 1.5px 2px rgba(20,30,40,.28)); }
.stamp { --r: 3.2px; width: 100%; height: 100%; padding: 6px; background: #fff;
  -webkit-mask: radial-gradient(circle var(--r) at 5px 0, #0000 96%, #000) 0 0 / 10px 100% repeat-x, radial-gradient(circle var(--r) at 5px 100%, #0000 96%, #000) 0 0 / 10px 100% repeat-x, radial-gradient(circle var(--r) at 0 5px, #0000 96%, #000) 0 0 / 100% 10px repeat-y, radial-gradient(circle var(--r) at 100% 5px, #0000 96%, #000) 0 0 / 100% 10px repeat-y;
  -webkit-mask-composite: source-in;
          mask: radial-gradient(circle var(--r) at 5px 0, #0000 96%, #000) 0 0 / 10px 100% repeat-x, radial-gradient(circle var(--r) at 5px 100%, #0000 96%, #000) 0 0 / 10px 100% repeat-x, radial-gradient(circle var(--r) at 0 5px, #0000 96%, #000) 0 0 / 100% 10px repeat-y, radial-gradient(circle var(--r) at 100% 5px, #0000 96%, #000) 0 0 / 100% 10px repeat-y;
          mask-composite: intersect; }
.stamp > div { width: 100%; height: 100%; background: center / cover no-repeat; }
.breath { position: relative; width: 300px; height: 300px; display: grid; place-items: center; margin: 0 auto; }
.breath .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(38,52,61,.2); background: var(--wash); transition: transform 4s ease-in-out; }
.breath img { position: relative; width: 62%; height: 62%; object-fit: contain; transition: transform 4s ease-in-out; }
.wave { display: flex; align-items: center; gap: 3px; height: 54px; } .wave i { width: 3px; height: 8px; background: rgba(38,52,61,.5); border-radius: 2px; transition: height .12s; }
.body-svg path, .body-svg ellipse, .body-svg rect { fill: var(--wash); stroke: rgba(38,52,61,.3); stroke-width: 1.2; cursor: pointer; transition: fill .2s; }
.body-svg .on { fill: rgba(var(--tint), .6); stroke: var(--accent); }
.ov { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ov .box { min-height: 62px; }
.sw[role=switch] { cursor: pointer; }
.side nav { scrollbar-width: thin; scrollbar-color: rgba(38,52,61,.18) transparent; }

/* "+ Add your own" chip and its input */
.chip.addchip { background: transparent; box-shadow: none; border: 1px dashed rgba(38,52,61,.35); color: var(--soft); font-weight: 500; }
.chip.addchip::before { display: none; }
.chip.addchip:hover { background: var(--wash); transform: none; color: var(--ink); }
.chipin { font: inherit; font-size: 12.5px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 999px; width: 150px; background: #fff; color: var(--ink); }
.gbtn[disabled] { opacity: .45; pointer-events: none; }
.page [data-fav], .page [data-qi] { cursor: pointer; }

/* ---- round 2: journaling timer, feelings card, why, toast, delete ---- */
.jtimer { padding: 12px 16px; }
.whyline { font-size: 13px; color: var(--soft); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fc-tab { position: fixed; right: 0; top: 44%; z-index: 24; writing-mode: vertical-rl; padding: 14px 9px; background: #fff; box-shadow: 0 0 0 1px var(--line), -6px 6px 18px rgba(25,40,60,.12); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: right .25s; }
.fc-tab[aria-expanded="true"] { right: 340px; }
.fc-drawer { position: fixed; top: 36px; right: 0; bottom: 0; width: 340px; background: #fff; box-shadow: -14px 0 32px rgba(25,40,60,.16), 0 0 0 1px var(--line); padding: 22px 22px 80px; overflow: auto; transform: translateX(105%); transition: transform .25s; z-index: 25; display: grid; gap: 10px; align-content: start; }
.fc-drawer.open { transform: none; }
.toast { position: fixed; left: 16px; bottom: 14px; z-index: 40; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(25,40,60,.2); padding: 12px 16px; display: flex; gap: 16px; align-items: center; font-size: 13px; font-weight: 500; max-width: 460px; }
.toast[hidden] { display: none; }
.whymodal { position: fixed; inset: 0; background: rgba(38,52,61,.28); display: grid; place-items: center; z-index: 50; }
.whycard { background: #fff; width: min(540px, 92vw); padding: 20px; box-shadow: 0 24px 60px rgba(25,40,60,.3); display: grid; gap: 12px; }
.xdel { position: absolute; top: 6px; right: 8px; font-size: 18px; line-height: 1; color: var(--soft); padding: 2px 6px; opacity: .7; z-index: 2; }
.xdel:hover { color: var(--ink); opacity: 1; }
a.link { display: inline-block; }

/* ---- one level of places in the left list; sub-pages as tabs ---- */
.navsep { border: 0; border-top: 1px solid var(--line); margin: 12px 14px 12px 0; }
.nv.main { padding: 7px 14px 7px 0; }
.tabs { display: flex; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: -16px 0 -12px; }
.tab { font-size: 13px; font-weight: 500; color: var(--soft); padding: 8px 0 9px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

.whycard .breath { width: 220px; height: 220px; }

/* ---- close is a cross ---- */
.xclose { display: grid; place-items: center; width: 28px; height: 28px; color: var(--soft); flex: none; }
.xclose:hover { color: var(--ink); }
/* ---- the feelings card: many words, seen at a glance ---- */
.fc-drawer.wide { width: min(640px, 94vw); }
.fc-tab[aria-expanded="true"] { right: min(660px, 94vw); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.frow { display: grid; gap: 4px; align-content: start; }
.fsubs { display: flex; flex-wrap: wrap; gap: 4px; }
.fwc { font: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; padding: 1px 9px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.fwc:hover { background: rgba(38,52,61,.09); }
.fwc.main { font-weight: 700; font-size: 12.5px; justify-self: start; }
.fwc[aria-pressed="true"] { background: rgba(var(--tint), .5); border-color: rgb(var(--tint)); }
span.fwc { cursor: default; } span.fwc:hover { background: var(--wash); }
.fdash { border: 0; border-top: 1px dashed var(--faint); margin: 12px 0; }
@media (max-width: 700px) { .fgrid { grid-template-columns: 1fr; } }

.fh { margin: 4px 0 8px; }

/* ---- round 5: links are blue and never underlined; facts stay quiet; the timer has an order ---- */
.link, a.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover, a.link:hover { color: #2f6aa8; text-decoration: none; background: none; }
.whyline { font-size: 12px; color: rgba(38,52,61,.5); }
.whyline .link { font-weight: 500; font-size: 12px; color: rgba(74,134,197,.8); }
.jtimer { position: relative; padding: 14px 18px 12px; }
.jt-wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.jt-left { display: grid; gap: 8px; align-content: start; }
.jt-modes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 26px; }
.seg-sm .chip { padding: 3px 11px; font-size: 11.5px; box-shadow: none; }
.jt-main { display: flex; align-items: center; gap: 16px; }
.jt-time { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.jt-reset { position: absolute; top: 10px; right: 14px; font-size: 12px; }
.jt-right { display: grid; gap: 6px; align-content: center; text-align: right; justify-items: end; margin-top: 8px; }
.jt-feel { font-size: 15px; font-weight: 600; max-width: 300px; }
.jt-fact { margin-top: 10px; }
.jt-reset { top: auto; bottom: 10px; right: 16px; }

/* Start / Stop: the same liquid-glass button as every other, tinted green or red */
.btn-go { --tint: 95,170,125; padding: 9px 26px; font-size: 13px; font-weight: 700; }
.btn-go.stop { --tint: 214,100,100; }
.btn-go.on { background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02)), rgba(var(--tint), .62); }
.btn-go.on:hover { background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), rgba(var(--tint), .74); }

/* ---- round 7: timer strip as sketched: modes, time, Start + Reset on the left; Feelings on the right; the fact along the bottom ---- */
.jtimer { padding: 16px 22px 12px; }
.jt-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.jt-left { display: grid; gap: 10px; justify-items: center; min-width: 250px; }
.jt-modes { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.jt-time { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.jt-btns { display: flex; gap: 10px; }
.jt-btns .gbtn { min-width: 92px; padding: 9px 20px; }
.jt-right { display: grid; gap: 10px; align-content: center; justify-items: start; text-align: left; min-width: 240px; margin-right: 24px; }
.jt-feel { border-bottom: 1px solid var(--line); padding-bottom: 8px; min-width: 240px; font-size: 14px; font-weight: 600; }
.jt-fact { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.jt-reset { display: none; }

/* ---- round 8: the prompts list ---- */
.prow { display: grid; gap: 2px; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; line-height: 1.4; width: 100%; }
.prow:hover { background: rgba(38,52,61,.07); }
.prow .s { font-size: 12px; }

/* ---- round 9: feeling groups with a clear hierarchy: section heading > group box > main word > small words ---- */
.fgrid { gap: 12px; }
.frow { gap: 9px; padding: 12px 14px 14px; background: var(--wash); border: 1px solid var(--line); border-radius: 11px; }
.fwc.main { font-size: 14px; font-weight: 700; background: none; border: 0; padding: 1px 0; border-radius: 6px; justify-self: start; letter-spacing: 0; }
.fwc.main:hover { background: rgba(38,52,61,.07); }
.fwc.main[aria-pressed="true"] { background: rgba(var(--tint), .5); padding: 1px 10px; }
.fsubs { gap: 6px; }
.fwc { font-size: 12.5px; padding: 2px 10px; background: #fff; border: 1px solid var(--line); font-weight: 500; }
.fwc:hover { background: rgba(38,52,61,.06); }
.fwc[aria-pressed="true"] { background: rgba(var(--tint), .5); border-color: rgb(var(--tint)); }
span.fwc.main { background: none; border: 0; }
hr.fdash { display: none; }
.fh { margin: 8px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--ink); }
.fgrid + .fh { margin-top: 30px; }

/* ---- round 10: every page ends with room to breathe, clear of the window edge and the floating bar ---- */
.main { padding-bottom: 24px; }
.page { padding-bottom: 120px; }
.ob-stage { padding-bottom: 110px; }
/* the page grows with its content (it used to be stretched to the window and spill past its own padding) */
.main > .page { align-self: flex-start; min-height: 100%; }

/* ---- round 11: a small round cross to remove a photo ---- */
.pxdel { position: absolute; top: -8px; right: -8px; z-index: 3; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(25,40,60,.25); display: grid; place-items: center; font-size: 15px; line-height: 1; }
.pxdel:hover { background: var(--wash); }

/* ---- round 13: quote of the day, hearts ---- */
.qtext { font-size: 24px; font-weight: 600; line-height: 1.35; margin: 8px 0 4px; max-width: 640px; letter-spacing: -.005em; }
.qby { font-size: 13px; font-weight: 500; color: var(--soft); }
.heart { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--soft); flex: none; }
.heart svg { fill: none; stroke: currentColor; }
.heart:hover { background: var(--wash); color: var(--ink); }
.heart[aria-pressed="true"] { color: var(--accent); }
.heart[aria-pressed="true"] svg { fill: var(--accent); }

/* ---- round 14: quotes page hierarchy ---- */
.qbar { display: grid; gap: 14px; }
.seg2 { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); justify-self: start; }
.seg2 button { padding: 6px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--soft); }
.seg2 button:hover { color: var(--ink); }
.seg2 button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(25,40,60,.18), inset 0 0 0 1px rgba(var(--tint), .7); }
.qtopics { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qtopics .lbl { margin-right: 6px; }
.qsec { display: grid; gap: 12px; margin-top: 14px; }
.qhead { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.qrow { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; width: 100%; }
.qmain { flex: 1; text-align: left; font: inherit; }
.qq { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; }
.qact { display: flex; align-items: center; gap: 14px; flex: none; }
.qtopic { font-size: 12px; font-weight: 500; color: var(--soft); }

/* ---- round 15: slim Home cards; goal names as headings ---- */
.box.slim { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.gname { font-size: 18px; font-weight: 700; text-align: left; }
.gname:hover { color: var(--accent); }
.srow { align-items: center; }

/* ---- round 16: a more satisfying tick ---- */
.chk { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(38,52,61,.3); background: #fff; display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s, transform .15s; }
.chk:hover { border-color: var(--accent); transform: scale(1.06); }
.chk svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .32s ease .06s; }
.chk[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); animation: chkpop .34s ease; }
.chk[aria-pressed="true"] svg { stroke-dashoffset: 0; }
@keyframes chkpop { 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.srow b { transition: color .2s, opacity .2s; }
.srow.done b { color: var(--soft); text-decoration: line-through; text-decoration-color: rgba(38,52,61,.35); font-weight: 600; }

/* ---- round 17: to-do rows; long-term cards with the ladder beside them ---- */
.trow { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.tmain { display: grid; gap: 3px; flex: 1; }
.tmain b { font-size: 16px; line-height: 1.4; font-weight: 700; }
.tgoal { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.tgoal:hover { color: #2f6aa8; }
.trow.done .tmain b { color: var(--soft); text-decoration: line-through; text-decoration-color: rgba(38,52,61,.35); font-weight: 600; }
.lt { display: grid; grid-template-columns: 1fr 1.5fr; gap: 26px; text-align: left; width: 100%; padding: 18px 20px; }
.ltn { display: block; font-size: 19px; line-height: 1.3; margin-bottom: 6px; }
.ltl .rel { display: inline-block; margin-top: 10px; }
.ltr { display: grid; gap: 12px; align-content: center; border-left: 1px solid var(--line); padding-left: 24px; }
.rung { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: baseline; }
.rl { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.rl i { display: block; font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--soft); margin-top: 1px; }
.rt { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.rt em { font-style: normal; font-weight: 400; color: var(--faint); }
.rung.done .rt { color: var(--soft); text-decoration: line-through; text-decoration-color: rgba(38,52,61,.35); }
@media (max-width: 1000px) { .lt { grid-template-columns: 1fr; } .ltr { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }

/* ---- round 18: a happier Promises page ---- */
.psum { display: flex; align-items: center; gap: 22px; padding: 18px 24px; background: linear-gradient(100deg, rgba(74,134,197,.14), rgba(74,134,197,.04)); border-color: rgba(74,134,197,.25); }
.pbig { font-size: 46px; font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.pbig small { font-size: 18px; font-weight: 600; color: var(--soft); letter-spacing: 0; }
.pmood { display: grid; gap: 2px; } .pmood b { font-size: 19px; line-height: 1.3; }
.pcard { padding: 18px 22px; background: #fff; transition: background .3s, border-color .3s; }
.pcard.done { background: linear-gradient(100deg, rgba(74,134,197,.1), #fff 70%); border-color: rgba(74,134,197,.35); }
.pmain { display: grid; gap: 14px; }
.ptxt { font-size: 18px; line-height: 1.35; }
.pside { display: grid; justify-items: center; gap: 4px; }
.pweek { display: flex; gap: 8px; }
.pd { display: grid; justify-items: center; gap: 4px; }
.pd i { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--soft); }
.pd b { width: 34px; height: 34px; border-radius: 10px; background: rgba(38,52,61,.08); display: grid; place-items: center; }
.pd b svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.pd.k b { background: var(--accent); }
.pd.m b { background: rgba(38,52,61,.16); }
.pd.f b { background: transparent; border: 1.5px dashed rgba(38,52,61,.18); }
.pd.t b { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(74,134,197,.55); }
.psumline { font-size: 15px; } .psumline b { color: var(--accent); font-size: 20px; } .psumline span { color: var(--soft); }
.pmonth { display: flex; flex-wrap: wrap; gap: 5px; max-width: 520px; }
.pmonth i { width: 22px; height: 22px; border-radius: 7px; background: rgba(38,52,61,.08); }
.pmonth i.k { background: var(--accent); } .pmonth i.m { background: rgba(38,52,61,.2); } .pmonth i.f { background: transparent; border: 1.5px dashed rgba(38,52,61,.18); }
.pmonth i.t { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(74,134,197,.55); }
.pyear { display: flex; gap: 10px; align-items: flex-end; height: 64px; }
.pm { display: grid; justify-items: center; gap: 4px; align-content: end; width: 28px; }
.pm i { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--accent); display: block; }
.pm em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--soft); }
.pm.t em { color: var(--accent); }
.prm { justify-self: start; font-size: 12px; opacity: .8; }

/* ---- round 19: week-by-week marking, red crosses, and a happier feel everywhere ---- */
button.pd { cursor: pointer; } button.pd:hover b { transform: translateY(-2px); } .pd b { transition: transform .15s, background .2s; }
.pd.m b { background: rgba(214,69,65,.14); } .pd.m b svg { stroke: #d64541; }
.pmd { width: 24px; height: 24px; border-radius: 7px; background: rgba(38,52,61,.08); display: inline-grid; place-items: center; padding: 0; }
button.pmd { cursor: pointer; } button.pmd:hover { transform: translateY(-1px); }
.pmd svg { width: 15px; height: 15px; fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke: #fff; }
.pmd.k { background: var(--accent); } .pmd.m { background: rgba(214,69,65,.14); } .pmd.m svg { stroke: #d64541; }
.pmd.f { background: transparent; border: 1.5px dashed rgba(38,52,61,.18); } .pmd.t { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(74,134,197,.55); }
.pmonth { gap: 6px; }
.mband { margin-bottom: 4px; }
.msmile { width: 46px; height: 46px; flex: none; fill: rgba(74,134,197,.12); stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.msmile .dot { fill: var(--accent); stroke: none; }
.main > .page { background: radial-gradient(900px 260px at 18% -40px, rgba(74,134,197,.07), transparent 70%); }
.box { border-radius: 14px; }
button.box, a.box { transition: transform .18s, box-shadow .18s, background .2s, border-color .2s; }
button.box:hover, a.box:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(74,134,197,.13); border-color: rgba(74,134,197,.35); background: #fff; }
.head h1 { letter-spacing: -.015em; }

/* ---- round 20: nothing shifts while you work ---- */
.main, .ob { scrollbar-gutter: stable; overflow-anchor: auto; }

/* ---- round 21: a thin icon rail at the bottom-left ---- */
.side.rail { width: 56px; padding: 0 0 18px; align-items: center; justify-content: flex-end; }
.rail nav { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; overflow: visible; }
.rail .navsep { width: 20px; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.nvi { position: relative; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--soft); transition: background .2s, color .2s; }
.nvi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nvi:hover { color: var(--ink); background: var(--wash); }
.nvi[aria-current="page"] { color: var(--accent); background: rgba(74,134,197,.13); }
.nvi::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 40; }
.nvi:hover::after, .nvi:focus-visible::after { opacity: 1; }
.side.rail { position: relative; z-index: 30; overflow: visible; }

/* ---- round 22: icons at the top-left, pages centred ---- */
.side.rail { justify-content: flex-start; padding: 22px 0 0; }
.main > .page { margin-left: auto; margin-right: auto; width: 100%; }
.main.solo > .page { width: auto; }

/* ---- round 24: add a topic on the quotes page ---- */
.fwc.add { color: var(--accent); border-style: dashed; }
.topicin { display: inline-flex; gap: 8px; align-items: center; }
.topicin[hidden] { display: none; }
.topicin .inp { width: 160px; padding: 6px 12px; border-radius: 999px; }

/* ---- round 25: vision board ---- */
.vboard { columns: 3 230px; column-gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); min-height: 320px; transition: background .2s, border-color .2s; }
.vboard.over { background: rgba(74,134,197,.07); border-color: var(--accent); }
.vtile { position: relative; break-inside: avoid; margin: 0 0 14px; border-radius: 14px; overflow: hidden; background: var(--wash); box-shadow: 0 6px 16px rgba(38,52,61,.1); }
.vtile:nth-child(3n+2) { transform: rotate(-.6deg); } .vtile:nth-child(3n) { transform: rotate(.5deg); }
.vtile img { display: block; width: 100%; height: auto; }
.vtile:nth-child(4n+1) img { aspect-ratio: 4 / 5; object-fit: cover; } .vtile:nth-child(4n+2) img { aspect-ratio: 1; object-fit: cover; } .vtile:nth-child(4n+3) img { aspect-ratio: 5 / 4; object-fit: cover; }
.vtile .xdel { top: 8px; right: 8px; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); opacity: 0; transition: opacity .15s; display: grid; place-items: center; }
.vtile:hover .xdel, .vtile .xdel:focus-visible { opacity: 1; }
.vadd { break-inside: avoid; display: grid; place-items: center; width: 100%; min-height: 150px; border: 1.5px dashed rgba(38,52,61,.25); border-radius: 14px; color: var(--soft); font-size: 34px; font-weight: 300; text-align: center; transition: border-color .2s, color .2s; }
.vadd span { font-size: 14px; font-weight: 500; padding: 0 20px; }
.vadd:hover { border-color: var(--accent); color: var(--accent); }

/* ---- round 26: the board fits all its pictures in view ---- */
.vboard { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, var(--cell, 200px)); grid-auto-rows: var(--cell, 200px); gap: 12px; justify-content: center; align-content: start; }
.vtile { margin: 0; width: auto; height: auto; }
.vtile img { height: 100%; aspect-ratio: auto !important; object-fit: cover; }
.vadd { min-height: 0; height: 100%; font-size: 26px; }
.vadd span { font-size: 13px; }

/* ---- round 28: hover a board picture to see all of it ---- */
.vpreview { position: fixed; z-index: 60; pointer-events: none; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(25,40,60,.28), 0 0 0 1px var(--line); }
.vpreview[hidden] { display: none; }
.vpreview img { display: block; max-width: min(460px, 46vw); max-height: 72vh; width: auto; height: auto; border-radius: 10px; }
.vtile { transition: transform .15s, box-shadow .15s; } .vtile:hover { transform: scale(1.04); box-shadow: 0 10px 24px rgba(38,52,61,.2); z-index: 2; }

/* ---- round 29: the picture itself zooms on hover, showing all of it ---- */
.vpreview { display: none !important; }
.vtile { transition: transform .25s ease, box-shadow .25s ease; }
.vtile:hover { transform: scale(var(--zoom, 2)) !important; z-index: 30; box-shadow: 0 16px 40px rgba(25,40,60,.3); background: #fff; }
.vtile:hover img { object-fit: contain; background: #fff; }
.vtile:hover .xdel { transform: scale(calc(1 / var(--zoom, 2))); transform-origin: top right; }

/* ---- round 34: QA pass ---- */
.main > .page { background: none; isolation: isolate; }
.head { position: relative; }
.head::before { content: ""; position: absolute; left: -56px; right: -56px; top: -40px; height: 260px; background: radial-gradient(900px 260px at 18% 0, rgba(74,134,197,.07), transparent 70%); z-index: -1; pointer-events: none; }
@media (max-width: 900px) { .side.rail { display: flex; } .head::before { left: -24px; right: -24px; } }

/* ---- round 36: reminder rows fit any width ---- */
#rem .box { flex-wrap: wrap; gap: 10px 14px; }
#rem .inp[data-rem$=":0"] { flex: 1 1 160px; width: auto !important; min-width: 0; }
#rem .inp[data-rem$=":1"] { flex: 0 1 150px; width: auto !important; min-width: 0; }

/* ---- round 37: a pass as a user ---- */
.nomotion *, .nomotion *::before, .nomotion *::after { animation: none !important; transition: none !important; }
.prow2 { min-height: 30px; }
.fcard:has(.ac > *) { height: 336px; }
.wsrow { margin-top: 14px; }

/* ---- round 38: look back rows ---- */
.lbrow { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; }
.lbrow b { font-size: 14px; }
.lbrow .chips { gap: 6px; }
.lbcount { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .lbrow { grid-template-columns: 1fr; gap: 6px; } }

/* ---- round 39: removable feelings on an entry ---- */
.emochip { display: inline-flex; align-items: center; gap: 2px; }
.emox { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; color: var(--soft); }
.emox:hover { color: var(--ink); background: var(--wash); }

/* ---- round 40: motion that answers you (see motion.js). Short, soft, never moves the layout ---- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.fx .petal { position: absolute; display: block; }
.fx .petal svg { display: block; width: 100%; height: 100%; fill: currentColor; opacity: .9; }
.fx .ring { position: absolute; border: 2px solid; border-radius: 50%; }
.pbig, .big { font-variant-numeric: tabular-nums; }
/* press: everything you can tap gives a little */
.gbtn:active, .chip:active, .fwc:active { transform: scale(.95); transition-duration: .08s; }
button.box:active { transform: translateY(0) scale(.985); transition-duration: .08s; }
.nvi:active, .heart:active, .chk:active { transform: scale(.9); }
.nvi svg { transition: transform .3s cubic-bezier(.34,1.5,.64,1); } .nvi:hover svg { transform: translateY(-1px) scale(1.08); }
.sw::after { transition: transform .3s cubic-bezier(.34,1.5,.64,1), width .15s; }
.sw:active::after { width: 23px; } .sw[aria-checked="true"]:active::after { transform: translateX(13px); }
/* small answers */
.pop { animation: m-pop .42s cubic-bezier(.34,1.5,.64,1); }
@keyframes m-pop { 0% { transform: scale(.8); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
.chk[aria-pressed="true"] { animation: none; } .chk.pop[aria-pressed="true"] { animation: m-pop .42s cubic-bezier(.34,1.5,.64,1); }
.chk.pop[aria-pressed="true"] svg { animation: m-draw .36s ease .06s both; }
@keyframes m-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.shrink { animation: m-shrink .3s ease; } @keyframes m-shrink { 40% { transform: scale(.82); } }
.nudge { animation: m-nudge .4s ease; } @keyframes m-nudge { 25% { transform: translateX(-3px) rotate(-4deg); } 60% { transform: translateX(3px) rotate(3deg); } }
.bump { animation: m-bump .5s cubic-bezier(.34,1.5,.64,1); display: inline-block; } @keyframes m-bump { 40% { transform: scale(1.25); color: var(--accent); } }
.fresh { animation: m-fresh .6s ease; } @keyframes m-fresh { from { opacity: .2; } }
.hop svg { animation: m-hop .5s cubic-bezier(.34,1.5,.64,1); } @keyframes m-hop { 40% { transform: translateY(-3px) scale(1.15); } }
.justdone .tmain b, .justdone > b { animation: m-strike .5s ease; } @keyframes m-strike { from { text-decoration-color: transparent; color: var(--ink); } }
.justadded { animation: m-glow 1.4s ease; } @keyframes m-glow { 0% { box-shadow: 0 0 0 0 rgba(74,134,197,.45); background: rgba(74,134,197,.12); } 100% { box-shadow: 0 0 0 14px rgba(74,134,197,0); } }
.steps i { transition: width .3s; } .steps i.on { width: 18px; border-radius: 3px; } .steps i.grow { animation: m-dot .5s cubic-bezier(.34,1.5,.64,1); } @keyframes m-dot { from { width: 6px; } }
/* the selected thing glides */
.seg2, .tabs, .rail nav { position: relative; isolation: isolate; }
.segglide { position: absolute; z-index: -1; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(25,40,60,.18), inset 0 0 0 1px rgba(var(--tint), .7); }
.seg2.gliding button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.railglide { position: absolute; z-index: -1; border-radius: 12px; background: rgba(74,134,197,.13); }
.rail nav.gliding .nvi[aria-current="page"] { background: transparent; }
.tabglide { position: absolute; z-index: 1; background: var(--accent); border-radius: 2px; }
.tabs.gliding .tab[aria-current="page"] { border-bottom-color: transparent; }
/* Home: the flower sways, the card leans toward you, the day turns over, Write breathes until you have written */
.today .fcard .fb img { transform-origin: 70% 100%; animation: m-sway 8s ease-in-out infinite; }
@keyframes m-sway { 0%, 100% { rotate: 0deg; } 30% { rotate: 1.4deg; } 70% { rotate: -1deg; } }
.fcard { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.34,1.5,.64,1), box-shadow .3s; }
.fcard.tilt { transition: transform .12s linear, box-shadow .3s; box-shadow: 0 0 0 1px var(--line), 0 22px 40px rgba(25,40,60,.2); }
.wd .roll { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.wd .strip { display: block; } .wd .strip span { display: block; height: 1em; }
.head h1 .w { display: inline-block; }
.gbtn.on[data-do="todayWrite"] { animation: m-invite 3.2s ease-out infinite; }
@keyframes m-invite { 0% { outline: 2px solid rgba(74,134,197,.45); outline-offset: 0; } 70%, 100% { outline: 2px solid rgba(74,134,197,0); outline-offset: 10px; } }
/* things that open */
.toast:not([hidden]) { animation: m-up .34s cubic-bezier(.34,1.5,.64,1); }
@keyframes m-up { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.whymodal { animation: m-fade .2s ease; } .whycard { animation: m-up .34s cubic-bezier(.34,1.5,.64,1); }
@keyframes m-fade { from { opacity: 0; } }
.deskov:not([hidden]) { animation: m-fade .35s ease; }
.ocard .mark { animation: m-mark 1s cubic-bezier(.34,1.5,.64,1) both, m-spin 80s linear 1s infinite; }
@keyframes m-mark { from { opacity: 0; transform: rotate(-120deg) scale(.4); } } @keyframes m-spin { to { transform: rotate(360deg); } }
.timeup { animation: m-glow 1.6s ease 2; }

/* ---- the desktop widget, full screen over the app ---- */
.deskov { position: fixed; inset: 0; z-index: 25; background: #1d2a36; }
.deskov iframe { display: block; width: 100%; height: 100%; border: 0; }
.dock #desk[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ---- logo options ---- */
.brandgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brandopt { display: grid; gap: 14px; align-content: start; padding: 18px 20px; }
.brandopt.inuse { border-color: rgba(74,134,197,.45); background: #fff; }
.brandmark { display: grid; place-items: center; padding: 18px 0; background: #fff; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.titlechip { gap: 7px; align-items: center; padding: 6px 10px; border-radius: 8px; background: #f3f5f7; font-size: 12px; font-weight: 600; justify-self: start; }
@media (max-width: 900px) { .brandgrid { grid-template-columns: 1fr; } }

/* ---- round 41: onboarding as a deck of flashcards ----
   A pastel page per card; a white card in front with punched holes along its top (real holes: you see the card behind
   through them); two pastel cards fanned behind. Titles mix a light italic with a bold word. "no. 01" in the corner. */
.ob { background: var(--bg, #8fd9b3); }
.ob-top { padding: 22px 36px; }
.obskip { font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.55); color: var(--ink); transition: background .2s, transform .2s; }
.obskip:hover { background: #fff; transform: translateY(-1px); }
.ob-stage { padding: 30px 20px 120px; display: grid; place-items: center; gap: 34px; align-content: center; }
.deck { position: relative; width: 520px; max-width: calc(100vw - 80px); isolation: isolate; filter: drop-shadow(0 18px 26px rgba(38,52,61,.12)); }
.sheet { display: block; background: #fff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='50'%3E%3Cpath fill-rule='evenodd' d='M0 0H40V50H0Z M17.5 0V15.35A9 9 0 1 0 22.5 15.35V0Z'/%3E%3C/svg%3E"), linear-gradient(#000 0 0);
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='50'%3E%3Cpath fill-rule='evenodd' d='M0 0H40V50H0Z M17.5 0V15.35A9 9 0 1 0 22.5 15.35V0Z'/%3E%3C/svg%3E"), linear-gradient(#000 0 0);
  -webkit-mask-size: 40px 50px, 100% calc(100% - 50px); mask-size: 40px 50px, 100% calc(100% - 50px);
  -webkit-mask-position: 0 0, 0 50px; mask-position: 0 0, 0 50px;
  -webkit-mask-repeat: space no-repeat, no-repeat; mask-repeat: space no-repeat, no-repeat; }
.sheet.back { position: absolute; inset: 0; z-index: 1; }
.sheet.back.a { background: var(--ca); transform: translate(-38px, -34px) rotate(-7deg); z-index: 2; }
.sheet.back.b { background: var(--cb); transform: translate(34px, 30px) rotate(4.5deg); }
.ocard.sheet.front { position: relative; z-index: 3; min-height: 520px; padding: 78px 46px 34px; box-shadow: none; animation: none; display: flex; flex-direction: column; }
.ocard .oc { gap: 18px; flex: 1; align-content: start; grid-template-rows: auto; }
.ocard .ohead { display: flex; align-items: center; gap: 12px; }
.ocard .mark { width: 46px; height: 46px; }
.ocard h1 { font-size: 40px; font-weight: 400; line-height: 1.12; letter-spacing: -.015em; margin: 0; }
.ocard h1 em { font-style: italic; font-weight: 300; }
.ocard h1 b { font-weight: 700; }
.ocard .olead { font-size: 16px; line-height: 1.5; font-weight: 400; max-width: 380px; }
.ocard .olead em { font-style: italic; font-weight: 500; }
.ocard .no { margin-top: 26px; align-self: flex-end; display: flex; align-items: baseline; gap: 4px; line-height: 1; }
.ocard .no em { font-style: italic; font-weight: 300; font-size: 22px; }
.ocard .no b { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ocard .foot2 { margin-top: 10px; }
/* fields: written on the card, on a line */
.ocard .inp { border: 0; border-bottom: 2px solid rgba(38,52,61,.16); background: transparent; padding: 10px 2px; font-size: 18px; transition: border-color .2s; }
.ocard .inp:focus { outline: none; border-bottom-color: var(--ac); }
.ocard input[type=range] { accent-color: var(--ac); }
.ocard .sw[aria-checked="true"] { background: var(--ac); }
.ocard .orows { display: grid; }
.ocard .orows .row { padding: 12px 0; border-top: 1.5px dashed rgba(38,52,61,.14); } .ocard .orows .row:last-child { border-bottom: 1.5px dashed rgba(38,52,61,.14); }
.ocard .orows b { font-size: 15px; }
/* the button: a soft pastel pill you can press down */
.ocard .gbtn.on { background: var(--ca); color: var(--ink); font-size: 14px; font-weight: 700; padding: 12px 28px; box-shadow: 0 4px 0 var(--ac); transform: none; transition: transform .12s, box-shadow .12s, filter .2s; }
.ocard .gbtn.on::before { display: none; }
.ocard .gbtn.on:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ac); }
.ocard .gbtn.on:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ac); }
/* what brings you here: each chosen chip takes its own pastel */
.ocard .opt { gap: 10px; }
.ocard .opt .chip { padding: 10px 18px; font-size: 13.5px; font-weight: 500; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(38,52,61,.16); }
.ocard .opt .chip::before { display: none; }
.ocard .opt .chip:hover { background: #f7f7f9; transform: translateY(-1px); }
.ocard .opt .chip[aria-pressed="true"] { font-weight: 600; box-shadow: none; background: #ffd774; }
.ocard .opt .chip[aria-pressed="true"]:nth-child(5n+2) { background: #ff9fc2; }
.ocard .opt .chip[aria-pressed="true"]:nth-child(5n+3) { background: #c2b1ff; }
.ocard .opt .chip[aria-pressed="true"]:nth-child(5n+4) { background: #8fd9b3; }
.ocard .opt .chip[aria-pressed="true"]:nth-child(5n+5) { background: #ffb98e; }
.ocard .opt .chip.addchip { box-shadow: none; border: 1.5px dashed rgba(38,52,61,.3); background: transparent; }
/* progress under the deck */
.ob .steps { margin: 0; position: relative; z-index: 1; }
.ob .steps i { background: rgba(255,255,255,.6); } .ob .steps i.on { background: #fff; }
@media (max-width: 640px) { .ocard.sheet.front { padding: 74px 26px 28px; } .ocard h1 { font-size: 32px; } }
.ocard.leaving { pointer-events: none; }
.ocard.leaving * { animation: none !important; }
.ob { overflow-x: hidden; }

/* ---- round 42: dreamy pastel light, a frosted-glass card, three fonts ----
   Fonts: a decorative display serif (Instrument Serif) for big titles and numbers, a reading serif (Newsreader) for
   sentences, and Jost for everything you operate (labels, fields, buttons). */
:root { --display: "Instrument Serif", Georgia, serif; --serif: "Newsreader", Georgia, serif; }
/* the page: soft blurred light in the card's colours, slowly drifting, with a fine grain */
.ob { background: var(--bg); isolation: isolate; }
.obglow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.obglow::before { content: ""; position: absolute; inset: -20%; filter: blur(60px); animation: m-drift 22s ease-in-out infinite alternate;
  background: radial-gradient(38% 34% at 22% 26%, var(--ca) 0%, transparent 70%), radial-gradient(34% 40% at 80% 20%, var(--g2) 0%, transparent 72%),
    radial-gradient(40% 36% at 74% 82%, var(--cb) 0%, transparent 70%), radial-gradient(46% 40% at 18% 86%, #fff 0%, transparent 70%), radial-gradient(30% 30% at 52% 54%, rgba(255,255,255,.9) 0%, transparent 70%); }
.obglow::after { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes m-drift { to { transform: translate(4%, -3%) rotate(6deg) scale(1.06); } }
/* four-petal blobs floating in the light */
.blob { position: absolute; width: 260px; height: 260px; filter: blur(2px); opacity: .55; animation: m-float 16s ease-in-out infinite alternate; }
.blob path { fill: rgba(255,255,255,.55); }
.blob.b1 { left: 6%; top: 58%; width: 200px; height: 200px; } .blob.b1 path { fill: var(--g2); }
.blob.b2 { right: 7%; top: 10%; width: 150px; height: 150px; animation-duration: 19s; animation-delay: -6s; }
.blob.b3 { right: 14%; bottom: 6%; width: 110px; height: 110px; animation-duration: 13s; animation-delay: -3s; } .blob.b3 path { fill: var(--ca); }
@keyframes m-float { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-26px) rotate(24deg); } }
/* the cards behind: pastel solid with a soft gradient light on it */
.deck { filter: none; }
.sheet.back { background-image: linear-gradient(150deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 46%), radial-gradient(70% 60% at 90% 100%, rgba(255,255,255,.35), transparent 70%); }
/* the card in front: frosted glass, so the colours behind glow through */
.ocard.sheet.front { background-color: rgba(255,255,255,.6); background-image: linear-gradient(165deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 55%, rgba(255,255,255,.3) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75), inset 0 -40px 60px -40px rgba(255,255,255,.6); }
/* type */
.ocard h1 { font-family: var(--display); font-weight: 400; font-size: 54px; line-height: 1.02; letter-spacing: -.005em; }
.ocard h1 em { font-family: var(--display); font-style: italic; font-weight: 400; }
.ocard h1 b { font-weight: 400; color: color-mix(in srgb, var(--ac) 82%, var(--ink)); }
.ocard .olead { font-family: var(--serif); font-size: 18px; line-height: 1.45; color: rgba(38,52,61,.86); }
.ocard .olead em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.ocard .s { color: rgba(38,52,61,.72); }
.ocard .cap, .ocard .fld > span { font-family: var(--sans); }
.ocard .no { align-items: center; gap: 6px; }
.ocard .no em { font-family: var(--display); font-size: 28px; font-weight: 400; }
.ocard .no b { font-family: var(--display); font-size: 52px; font-weight: 400; letter-spacing: 0; }
.ostar { width: 22px; height: 22px; margin-right: 4px; stroke: var(--ac); stroke-width: 2.2; stroke-linecap: round; animation: m-spin 14s linear infinite; }
.ocard .inp { border-bottom-color: rgba(38,52,61,.2); font-family: var(--sans); }
/* buttons and chips: liquid glass, tinted with the card's pastel */
.ocard .gbtn.on { background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.05)), rgba(var(--tint), .75);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), inset 0 -9px 12px -7px rgba(255,255,255,.6), 0 0 0 1px rgba(255,255,255,.5), 0 8px 18px rgba(var(--tint), .45); filter: none; }
.ocard .gbtn.on::before { display: block; }
.ocard .gbtn.on:hover { filter: none; transform: translateY(-2px); box-shadow: inset 0 1px 1px rgba(255,255,255,.9), inset 0 -9px 12px -7px rgba(255,255,255,.6), 0 0 0 1px rgba(255,255,255,.6), 0 12px 22px rgba(var(--tint), .5); }
.ocard .gbtn.on:active { transform: scale(.96); box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 0 0 1px rgba(255,255,255,.5), 0 4px 10px rgba(var(--tint), .4); }
.ocard .opt .chip { background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 4px 12px rgba(38,52,61,.06); }
.ocard .opt .chip:hover { background: rgba(255,255,255,.85); }
.ocard .opt .chip[aria-pressed="true"] { background-image: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 6px 14px rgba(38,52,61,.1); }
.ocard .orows .row { border-color: rgba(38,52,61,.12); }
.obskip { background: rgba(255,255,255,.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.ob .steps i { background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.4); }

/* ---- round 43: three fonts, as in the references ----
   decorative script for the one flowing word, an elegant serif in capitals for the rest of the title, Jost for the small
   spaced-out label, sentences, fields and buttons. */
:root { --script: "Pinyon Script", "Segoe Script", cursive; --display: "Instrument Serif", Georgia, serif; }
.ocard .ocap { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, var(--ac) 85%, var(--ink)); margin-bottom: -4px; }
.ocard h1 { font-family: var(--display); font-size: 44px; line-height: 1.02; letter-spacing: .01em; }
.ocard h1 b { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.ocard h1 em { font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.32em; line-height: .9; letter-spacing: 0; color: color-mix(in srgb, var(--ac) 78%, var(--ink)); }
.ocard .olead, .ocard .olead em { font-family: var(--sans); }
.ocard .olead { font-size: 15.5px; } .ocard .olead em { font-style: italic; font-weight: 500; }
.ocard .no em { font-family: var(--script); font-style: normal; font-size: 30px; }

/* ---- round 44: calmer. One pastel per screen, a plain soft page, no patches or grain ---- */
.ob { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 45%, #fff) 0%, var(--bg) 70%); }
.obglow { display: none; }
.ocard .opt .chip[aria-pressed="true"], .ocard .opt .chip[aria-pressed="true"]:nth-child(n) { background-color: var(--ca); }
.ocard h1 em { color: var(--ac); }
.ocard .ocap { color: var(--ac); }
.ob .steps i { background: color-mix(in srgb, var(--ca) 55%, #fff); box-shadow: none; } .ob .steps i.on { background: var(--ac); } .obskip { background: rgba(255,255,255,.7); }

/* ---- round 45: one solid page colour, two colours on the cards, the name written by hand ---- */
.ob { background: var(--bg); }
.wordmark { font-family: var(--script); font-size: 26px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1; color: var(--ink); }
.wordmark.big { font-size: 40px; }
.tb-id .wordmark { font-size: 20px; margin-top: 2px; }
.ob-brand { gap: 8px; } .ob-brand img { width: 24px; height: 24px; }
.ocard .ohead { gap: 10px; } .ocard .mark { width: 40px; height: 40px; animation: m-mark 1s cubic-bezier(.34,1.5,.64,1) both; }
/* links on the cards take the screen's own colour, not the bright blue */
.ocard .link, .ocard .whyline .link { color: var(--ac); }
.ocard .link:hover { color: color-mix(in srgb, var(--ac) 70%, var(--ink)); }
.brandgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- round 46: Home in the new language ----
   One solid page colour and one second pastel, by the time of day. Paper is sharp with punched holes; glass is rounded
   and frosted, with a pastel sheet peeking behind so the glass glows. Script + serif capitals for titles, Jost labels. */
.view.home { --hbg: #fff1c2; --h2: #ffbbd2; --hac: #c24f7c; --tint: 255,187,210; background: var(--hbg); }
.view.home.tod-afternoon { --hbg: #d6f1e3; --h2: #ffc3a3; --hac: #b85a24; --tint: 255,195,163; }
.view.home.tod-evening { --hbg: #e8e0ff; --h2: #ffdf8f; --hac: #6650cc; --tint: 255,223,143; }
.view.home .side.rail { border-right: 0; background: transparent; }
.view.home .nvi[aria-current="page"] { background: rgba(255,255,255,.6); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9); }
.view.home .nvi:hover { background: rgba(255,255,255,.45); }
.view.home .head::before { display: none; }
.view.home .page { gap: 30px; }
/* type */
.hlbl { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--hac); }
.htitle { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.02; letter-spacing: .01em; margin: 0; color: var(--ink); }
.htitle em { font-family: var(--script); font-style: normal; font-size: 1.3em; line-height: .9; color: var(--hac); }
.htitle b { font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.htitle.xl { font-size: 50px; margin-top: 8px; }
.htitle.sm { font-size: 26px; }
.hsub { font-size: 13.5px; line-height: 1.45; color: rgba(38,52,61,.72); }
.hhead { align-items: flex-end; }
/* layout */
.hgrid { grid-template-columns: 250px minmax(0, 1fr); gap: 46px; }
.hgrid .right { gap: 16px; }
.hrow { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
/* the flower card sits on a fanned sheet, like the onboarding deck */
.fdeck { position: relative; width: 222px; margin-top: 18px; isolation: isolate; }
.fdeck .hback { position: absolute; inset: 0; z-index: -1; background: var(--h2); transform: translate(18px, 14px) rotate(5deg); }
/* glass */
.hglass { position: relative; display: block; text-align: left; width: 100%; padding: 22px 24px; border-radius: 22px; isolation: isolate;
  background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.42)); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85), inset 0 1px 0 #fff, 0 14px 34px rgba(38,52,61,.07); transition: transform .25s cubic-bezier(.34,1.5,.64,1), box-shadow .25s; }
button.hglass:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px #fff, 0 20px 40px rgba(38,52,61,.1); }
.peek { margin: 10px 14px 0 0; }
.peek::before { content: ""; position: absolute; z-index: -2; inset: -12px -14px 18px 30%; border-radius: 22px; background: var(--h2); transform: rotate(2.5deg); }
.peek::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: inherit; -webkit-backdrop-filter: inherit; backdrop-filter: inherit; }
/* quote */
.hquote { padding: 26px 30px 22px; }
.hq { font-family: var(--display); font-size: 30px; line-height: 1.2; margin: 10px 0 6px; max-width: 620px; letter-spacing: .005em; }
.hby { font-size: 13px; font-weight: 500; color: rgba(38,52,61,.66); }
.hqact { gap: 12px; margin-top: 14px; }
.view.home .link { color: var(--hac); }
.view.home .heart[aria-pressed="true"] { color: var(--hac); } .view.home .heart[aria-pressed="true"] svg { fill: var(--hac); }
/* today's page: a notepad sheet in the second pastel */
.hpage { position: relative; padding: 64px 24px 22px; background: var(--h2); display: grid; gap: 8px; align-content: start; min-height: 230px; }
.hpage .htitle em { color: var(--ink); }
.hpage .hlbl { color: color-mix(in srgb, var(--hac) 70%, var(--ink)); }
.hpage .hsub { color: rgba(38,52,61,.8); }
.hbtns { gap: 16px; margin-top: auto; padding-top: 10px; }
.hpage .gbtn.on { background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.35)); color: var(--ink); padding: 10px 24px; font-size: 13.5px; font-weight: 700; }
.hpage .link { color: var(--ink); }
/* weeks */
.hweeks { display: grid; gap: 6px; align-content: start; min-height: 230px; }
.hweeks .hnum { font-family: var(--display); font-weight: 400; font-size: 64px; line-height: .95; letter-spacing: 0; margin-top: 18px; color: var(--ink); }
.hweeks .gbtn { justify-self: start; margin-top: 10px; }
/* this week's step */
.hstep { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; }
.hstxt { font-size: 17px; font-weight: 600; line-height: 1.4; margin-top: 6px; }
.harrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px #fff; font-size: 16px; transition: transform .25s; }
button.hstep:hover .harrow { transform: translateX(3px); }
.hpills { gap: 10px; flex-wrap: wrap; }
@media (max-width: 1000px) { .hgrid { grid-template-columns: 1fr; } .hrow { grid-template-columns: 1fr; } .fdeck { margin: 10px auto 10px; } }
.peek, .peek::before, .peek::after { all: unset; }
.peekwrap { position: relative; margin: 12px 16px 0 0; }
.peeksheet { position: absolute; z-index: 0; top: -12px; right: -16px; bottom: 22px; left: 34%; border-radius: 22px; background: var(--h2); transform: rotate(2.5deg); }
.peekwrap .hglass { z-index: 1; }
.hpage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
.htitle em { margin-right: .14em; }
/* the sheet behind the quote mostly peeks out; through the glass it is only a soft warmth */
.peeksheet { top: -14px; right: -18px; bottom: 40%; left: 58%; }
.hquote { background: linear-gradient(160deg, rgba(255,255,255,.86), rgba(255,255,255,.66)); -webkit-backdrop-filter: blur(26px) saturate(1.2); backdrop-filter: blur(26px) saturate(1.2); }
.hyear { display: grid; grid-template-columns: repeat(13, 1fr); gap: 5px; margin-top: auto; padding-top: 16px; max-width: 250px; }
.hyear i { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px rgba(38,52,61,.1); }
.hyear i.p { background: color-mix(in srgb, var(--hac) 45%, #fff); box-shadow: none; }
.hyear i.n { background: var(--hac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hac) 25%, transparent); animation: m-now 2.4s ease-in-out infinite; }
@keyframes m-now { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--hac) 12%, transparent); } }
.hyl { font-size: 12px; }

/* ---- round 47: Home, the same parts as before in the new language ----
   The background holds the colour: periwinkle, blush, butter and soft green, blended as one wide, smooth wash (no
   patches, no grain). Everything on it is neutral: frosted white glass cards and glass buttons, so the colour glows
   through. One deep blue for the script word, labels and links. */
.view.home { --hac: #3a64c4; --tint: 255,255,255;
  background: radial-gradient(75% 70% at 0% 0%, #bfd2f8 0%, rgba(191,210,248,0) 72%), radial-gradient(70% 70% at 100% 0%, #f8cad7 0%, rgba(248,202,215,0) 72%),
    radial-gradient(80% 75% at 100% 100%, #fbe8b0 0%, rgba(251,232,176,0) 72%), radial-gradient(70% 75% at 0% 100%, #cde8c6 0%, rgba(205,232,198,0) 72%), #fbf8f2; }
.view.home .side.rail { border-right: 0; background: transparent; }
.view.home .head::before { display: none; }
.view.home .page { gap: 30px; }
.view.home .today { grid-template-columns: 222px minmax(0, 1fr); gap: 40px; }
.view.home .today .right { gap: 14px; }
.view.home .htitle.xl { font-size: 48px; margin-top: 8px; }
.view.home .htitle em { color: var(--hac); }
.view.home .hlbl { color: var(--hac); }
/* frosted glass, neutral */
.hcard { position: relative; display: block; width: 100%; text-align: left; padding: 22px 24px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.42)); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85), inset 0 1px 0 #fff, 0 12px 30px rgba(38,52,61,.06); transition: transform .25s cubic-bezier(.34,1.5,.64,1), box-shadow .25s, background .25s; }
button.hcard:hover { transform: translateY(-2px); background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.55)); box-shadow: inset 0 0 0 1.5px #fff, 0 18px 36px rgba(38,52,61,.09); }
.hcard.slim { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.hmain { padding: 26px 30px 24px; }
.hq { font-family: var(--display); font-size: 30px; line-height: 1.22; margin: 10px 0 6px; max-width: 640px; letter-spacing: .005em; color: var(--ink); }
.hby { font-size: 13px; font-weight: 500; color: rgba(38,52,61,.66); }
.hqact { gap: 12px; margin: 12px 0 18px; }
.hdone { font-size: 15px; font-weight: 600; }
.hsub { font-size: 13px; color: rgba(38,52,61,.68); }
.hstxt { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; margin-top: 4px; }
.hstep:not(.slim) { padding: 14px 20px; }
.hweeks .hnum { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: 0; color: var(--ink); }
.view.home .link { color: var(--hac); }
.view.home .heart[aria-pressed="true"] { color: #e0789a; } .view.home .heart[aria-pressed="true"] svg { fill: #e0789a; }
/* glass buttons, clear on the coloured light */
.view.home .gbtn { background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.28)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.view.home .gbtn:hover { background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.45)); }
.view.home .gbtn.on { background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(58,100,196,.28), rgba(58,100,196,.14)); padding: 9px 24px; font-size: 13.5px; font-weight: 700; }
.view.home .nvi[aria-current="page"] { background: rgba(255,255,255,.6); color: var(--hac); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9); }
.view.home .nvi:hover { background: rgba(255,255,255,.45); }
.hpills { gap: 10px; flex-wrap: wrap; }
.view.home .hweeks, .view.home .hstep { min-height: 0; } .view.home .grid.g2 { gap: 14px; align-items: stretch; } .view.home .hweeks .hnum { margin-top: 0; line-height: 1; }

/* ---- round 48: two colours and two fonts with a clear order ----
   Colour: one soft sky blue for the page, one warm yellow for what you act on; everything else neutral (white glass, ink),
   with a deeper shade of the blue for small labels and links.
   Fonts: Fraunces (a soft serif) for the words that matter, DM Sans for everything else. Order of importance on Home:
   1 greeting (serif 46, a light italic word + a semibold word) > 2 quote (serif italic 26) > 3 the step and the weeks
   figure (sans 15 semibold / serif 30) > 4 labels (sans 11 caps, blue) and small text (sans 13, soft ink). */
:root { --display: "Fraunces", Georgia, serif; --sans2: "DM Sans", "Segoe UI", system-ui, sans-serif; }
.view.home { --hbg: #d9eafa; --hac: #2e5f8f; --hy: #ffd84f; background: var(--hbg); font-family: var(--sans2); }
.view.home .gbtn, .view.home .link, .view.home .chip { font-family: var(--sans2); }
/* 1. greeting */
.view.home .htitle.xl { font-family: var(--display); font-size: 46px; line-height: 1.08; letter-spacing: -.015em; font-variation-settings: "opsz" 144; margin-top: 10px; }
.view.home .htitle em { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 1em; line-height: inherit; color: var(--ink); margin-right: .1em; }
.view.home .htitle b { font-weight: 600; text-transform: none; letter-spacing: -.015em; }
/* 2. quote */
.view.home .hq { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 26px; line-height: 1.3; letter-spacing: -.005em; font-variation-settings: "opsz" 72; margin: 12px 0 6px; }
.view.home .hby { font-size: 13px; font-weight: 500; color: rgba(38,52,61,.6); }
/* 3. the facts */
.view.home .hstxt { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.view.home .hweeks .hnum { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.view.home .hdone { font-size: 15px; font-weight: 600; }
/* 4. labels and small text */
.view.home .hlbl { font-family: var(--sans2); font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--hac); }
.view.home .hsub, .view.home .whyline { font-size: 13px; font-weight: 400; color: rgba(38,52,61,.62); }
.view.home .link, .view.home .whyline .link { color: var(--hac); font-weight: 600; }
/* cards: white glass on the blue */
.view.home .hcard { background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.6)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 10px 28px rgba(46,95,143,.08); }
button.hcard:hover { background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.75)); box-shadow: inset 0 0 0 1.5px #fff, 0 16px 34px rgba(46,95,143,.12); }
/* buttons: neutral glass; the one to act on is yellow */
.view.home .gbtn { font-size: 13px; font-weight: 500; color: var(--ink); background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.8) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.45)); }
.view.home .gbtn::before { background: linear-gradient(155deg, #fff 0%, rgba(255,255,255,.4) 40%, rgba(46,95,143,.18) 70%, #fff 100%); }
.view.home .gbtn.on { font-size: 14px; font-weight: 600; padding: 10px 26px;
  background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, #ffe47e, #ffd23f);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -8px 12px -8px rgba(255,255,255,.6), 0 0 0 1px rgba(214,160,0,.25), 0 8px 18px rgba(230,170,0,.28); }
.view.home .gbtn.on::before { background: linear-gradient(155deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.3) 35%, rgba(255,200,0,.35) 70%, rgba(255,255,255,.8) 100%); }
.view.home .gbtn.on:hover { background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, #ffe98f, #ffd84f); }
.view.home .gbtn.on[data-do="todayWrite"] { animation-name: m-invite-y; }
@keyframes m-invite-y { 0% { outline: 2px solid rgba(255,200,40,.6); outline-offset: 0; } 70%, 100% { outline: 2px solid rgba(255,200,40,0); outline-offset: 10px; } }
.view.home .heart[aria-pressed="true"] { color: #e3a600; } .view.home .heart[aria-pressed="true"] svg { fill: #ffd23f; stroke: #c99400; }
.view.home .nvi[aria-current="page"] { background: rgba(255,255,255,.75); color: var(--hac); }
.view.home .fcard .wd { font-family: var(--display); font-weight: 500; font-size: 34px; letter-spacing: -.02em; font-variation-settings: "opsz" 72; } .view.home .fcard .cap, .view.home .fcard .dayname { font-family: var(--sans2); }

/* ---- round 49: a still flower card, a lemon yellow, real liquid glass ---- */
/* the flower card stays still: no sway, no lean */
.fcard, .fcard.tilt { transform: none !important; transition: none !important; }
.today .fcard .fb img { animation: none !important; }
/* liquid glass: clear body, bright rim, a glossy highlight across the top, a soft glow rising from the bottom */
.view.home .gbtn { color: var(--ink); border: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.14) 52%, rgba(255,255,255,.26) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 1px 0 #fff, inset 0 -10px 14px -10px rgba(255,255,255,.95), 0 6px 16px rgba(46,95,143,.16), 0 1px 2px rgba(46,95,143,.14); }
.view.home .gbtn::before { -webkit-mask: none; mask: none; padding: 0; inset: 1.5px 7px 50% 7px; border-radius: 999px 999px 60% 60% / 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.08)); opacity: .9; }
.view.home .gbtn:hover { background: linear-gradient(180deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.24) 52%, rgba(255,255,255,.38) 100%); transform: translateY(-1px); }
.view.home .gbtn:active { transform: scale(.96); }
/* the call to action: lemon glass */
.view.home .gbtn.on { --lemon: 248,234,72;
  background: linear-gradient(180deg, rgba(255,251,180,.96) 0%, rgba(var(--lemon), .82) 52%, rgba(var(--lemon), .95) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), inset 0 1px 0 #fff, inset 0 -10px 14px -8px rgba(255,255,225,.95), 0 8px 20px rgba(190,170,0,.3), 0 1px 2px rgba(150,130,0,.25); }
.view.home .gbtn.on::before { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.1)); }
.view.home .gbtn.on:hover { background: linear-gradient(180deg, rgba(255,253,200,.98) 0%, rgba(var(--lemon), .9) 52%, rgba(var(--lemon), 1) 100%); }
@keyframes m-invite-y { 0% { outline: 2px solid rgba(248,234,72,.75); outline-offset: 0; } 70%, 100% { outline: 2px solid rgba(248,234,72,0); outline-offset: 10px; } }
.view.home .heart[aria-pressed="true"] { color: #b9a400; } .view.home .heart[aria-pressed="true"] svg { fill: #f8ea48; stroke: #a89400; }
/* the round play button and the rail's current place, in the same glass */
.view.home .nvi[aria-current="page"] { background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.45)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), inset 0 1px 0 #fff, 0 4px 12px rgba(46,95,143,.14); }
/* softer, happier blues: a fresh baby-blue page; a bright cornflower (not navy) for labels, links and the current place */
.view.home { --hbg: #cfe7ff; --hac: #3d82dc; background: var(--hbg); }
.view.home .hcard { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 10px 28px rgba(61,130,220,.1); }
.view.home .gbtn { box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 1px 0 #fff, inset 0 -10px 14px -10px rgba(255,255,255,.95), 0 6px 16px rgba(61,130,220,.16), 0 1px 2px rgba(61,130,220,.14); }
/* a very soft, light blue page */
.view.home { --hbg: #e6f2ff; }
/* the rail's icons are always black, on every screen; the current place is shown by its glass pill, not by colour */
.nvi, .nvi:hover, .nvi[aria-current="page"], .view.home .nvi[aria-current="page"] { color: #1c1c1c; }

/* ================= THEMES: one visual language, two colours per place =================
   Each place sets: --hbg (the page, one soft colour), --cta (rgb of the colour you act on), --hac (a deeper shade of the
   page colour for small labels and links) and --hacrgb (the same, as rgb, for rings and shadows).
   Everything else is neutral: white frosted glass cards, clear liquid-glass buttons, ink text.
   Fonts: Fraunces for what matters (titles, quotes, your own writing), DM Sans for the rest. */
.view.themed.home { --hbg: #e6f2ff; --hac: #3d82dc; --hacrgb: 61,130,220; --cta: 248,234,72; }
.view.themed.journal { --hbg: #f3eeff; --hac: #7458d6; --hacrgb: 116,88,214; --cta: 255,176,206; }
.view.themed { background: var(--hbg); font-family: var(--sans2); --tint: 255,255,255; }
.view.themed .side.rail { border-right: 0; background: transparent; }
.view.themed .head::before { display: none; }
.view.themed .gbtn, .view.themed .chip, .view.themed .link, .view.themed .inp, .view.themed .tab, .view.themed .seg2 button, .view.themed .fwc, .view.themed .lbl, .view.themed .fld > span { font-family: var(--sans2); }

/* liquid glass buttons, with a hover you can see: brighter, lifted, a soft coloured ring */
.view.themed .gbtn { color: var(--ink); border: 0; font-size: 13px; font-weight: 500;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.16) 52%, rgba(255,255,255,.3) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), inset 0 1px 0 #fff, inset 0 -10px 14px -10px rgba(255,255,255,.95), 0 6px 16px rgba(var(--hacrgb),.16), 0 1px 2px rgba(var(--hacrgb),.14);
  transition: transform .2s cubic-bezier(.34,1.5,.64,1), box-shadow .2s, background .2s; }
.view.themed .gbtn::before { -webkit-mask: none; mask: none; padding: 0; inset: 1.5px 7px 50% 7px; border-radius: 999px 999px 60% 60% / 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.08)); opacity: .9; }
.view.themed .gbtn:hover { transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.6) 52%, rgba(255,255,255,.75) 100%);
  box-shadow: inset 0 0 0 1px #fff, inset 0 1px 0 #fff, 0 0 0 3px rgba(var(--hacrgb),.22), 0 10px 22px rgba(var(--hacrgb),.24); }
.view.themed .gbtn:active { transform: scale(.96); }
/* the one to act on: glass in the place's colour */
.view.themed .gbtn.on { font-size: 14px; font-weight: 600; padding: 10px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(var(--cta),.82) 48%, rgba(var(--cta),.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), inset 0 1px 0 #fff, inset 0 -10px 14px -8px rgba(255,255,255,.75), 0 8px 20px rgba(var(--cta),.55), 0 1px 2px rgba(38,52,61,.15); }
.view.themed .gbtn.on:hover { background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(var(--cta),.92) 48%, rgba(var(--cta),1) 100%);
  box-shadow: inset 0 0 0 1px #fff, inset 0 1px 0 #fff, 0 0 0 3px rgba(var(--cta),.45), 0 12px 24px rgba(var(--cta),.6); }
.view.themed .gbtn.round { padding: 0; }
/* the journaling timer keeps its own green Start and red Stop, as soft glass */
.view.themed .btn-go { --cta: 150,214,172; } .view.themed .btn-go.stop { --cta: 247,168,168; }
/* chips and switches */
.view.themed .chip { color: var(--ink); background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 2px 8px rgba(var(--hacrgb),.1); }
.view.themed .chip::before { display: none; }
.view.themed .chip:hover { background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px #fff, 0 0 0 3px rgba(var(--hacrgb),.16); }
.view.themed .chip[aria-pressed="true"] { background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(var(--cta),.9)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 4px 12px rgba(var(--cta),.45); font-weight: 600; }
.view.themed .chip.addchip { background: transparent; box-shadow: none; border: 1px dashed rgba(var(--hacrgb),.45); color: var(--hac); }
.view.themed .sw[aria-checked="true"] { background: var(--hac); }
.view.themed .fwc { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.95); }
.view.themed .fwc[aria-pressed="true"] { background: rgba(var(--cta),.85); border-color: rgba(var(--cta),1); }
/* the Week / Month switch: a glass track with a white glass pill */
.view.themed .seg2 { background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.85); }
.view.themed .seg2 button { font-weight: 500; }
.view.themed .seg2 button[aria-pressed="true"], .view.themed .segglide { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 2px 8px rgba(var(--hacrgb),.18), inset 0 0 0 1px rgba(255,255,255,.9); }
/* tabs */
.view.themed .tabs { border-bottom-color: rgba(var(--hacrgb),.18); }
.view.themed .tab { font-size: 14px; font-weight: 500; color: rgba(38,52,61,.6); }
.view.themed .tab:hover { color: var(--ink); }
.view.themed .tab[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--hac); }
.view.themed .tabglide { background: var(--hac); }

/* type and hierarchy: 1 page title > 2 card titles and your own writing > 3 body > 4 labels and small text */
.view.themed .head .cap { font-family: var(--sans2); font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--hac); }
.view.themed .head h1 { font-family: var(--display); font-size: 44px; font-weight: 500; line-height: 1.08; letter-spacing: -.02em; font-variation-settings: "opsz" 144; margin: 0; }
.view.themed .head .sub { font-size: 14px; font-weight: 500; color: rgba(38,52,61,.62); margin-top: 6px; }
.view.themed .lbl { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--hac); }
.view.themed .lbl.quiet { color: rgba(38,52,61,.55); }
.view.themed p.s, .view.themed .s { color: rgba(38,52,61,.62); }
.view.themed p.t { font-family: var(--sans2); }
.view.themed .link, .view.themed .whyline .link, .view.themed .tgoal { color: var(--hac); font-weight: 600; }
.view.themed .link:hover { color: color-mix(in srgb, var(--hac) 70%, var(--ink)); }
.view.themed .rel { border-color: rgba(var(--hacrgb),.3); color: var(--hac); background: rgba(255,255,255,.6); }
.view.themed .whyline { color: rgba(38,52,61,.5); }

/* cards: white frosted glass */
.view.themed .box { border: 0; border-radius: 20px; background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.62));
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 10px 26px rgba(var(--hacrgb),.08); }
.view.themed button.box:hover, .view.themed a.box:hover { transform: translateY(-2px); background: linear-gradient(160deg, #fff, rgba(255,255,255,.8)); box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 3px rgba(var(--hacrgb),.14), 0 16px 32px rgba(var(--hacrgb),.14); }
.view.themed .box.sel { box-shadow: inset 0 0 0 1.5px var(--hac), 0 10px 26px rgba(var(--hacrgb),.12); }
/* fields: soft white glass */
.view.themed .inp { border: 0; border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 2px 10px rgba(var(--hacrgb),.08); padding: 11px 14px; }
.view.themed .inp:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--hac), 0 0 0 4px rgba(var(--hacrgb),.14); background: #fff; }
.view.themed .nvi[aria-current="page"] { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.5)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), inset 0 1px 0 #fff, 0 4px 12px rgba(var(--hacrgb),.16); }
.view.themed .nvi:hover { background: rgba(255,255,255,.55); }

/* Journal: your own words are set in the serif */
.view.journal #ed, .view.journal .tf { font-family: var(--display); font-size: 19px; line-height: 1.6; font-variation-settings: "opsz" 24; }
.view.journal .body > p.t[style*="pre-line"] { font-family: var(--display); font-size: 19px !important; line-height: 1.7 !important; font-variation-settings: "opsz" 24; }
.view.journal #tl button.box b, .view.journal .lbrow b { font-family: var(--display); font-size: 18px !important; font-weight: 500; letter-spacing: -.01em; }
.view.journal #pline, .view.journal #pbox .prow { font-family: var(--display); }
.view.journal .body .box > b[style*="font-size:20px"], .view.journal .body .box > b[style*="font-size:17px"] { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; }
.view.journal .jt-time { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; }
.view.journal .fc-drawer, .view.journal .fc-tab { font-family: var(--sans2); }
/* one main action per screen: the feelings card button is secondary */
.view.themed .jt-right .gbtn.on { font-size: 13px; font-weight: 500; padding: 8px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.16) 52%, rgba(255,255,255,.3) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), inset 0 1px 0 #fff, inset 0 -10px 14px -10px rgba(255,255,255,.95), 0 6px 16px rgba(var(--hacrgb),.16); }
.view.themed .jt-right .gbtn.on:hover { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.6) 52%, rgba(255,255,255,.75) 100%); box-shadow: inset 0 0 0 1px #fff, 0 0 0 3px rgba(var(--hacrgb),.22), 0 10px 22px rgba(var(--hacrgb),.24); }
.view.themed .jt-feel { border-bottom-color: rgba(var(--hacrgb),.18); font-family: var(--display); font-weight: 500; font-size: 16px; }
.view.themed .jt-fact { border-top-color: rgba(var(--hacrgb),.14); }
/* the side tab for the feelings card: glass */
.view.themed .fc-tab { border-radius: 14px 0 0 14px; color: var(--hac); background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.7)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px #fff, -6px 6px 18px rgba(var(--hacrgb),.14); }
.view.themed .fc-drawer { background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.view.themed .frow { border: 0; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.62)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 8px 22px rgba(var(--hacrgb),.07); } .view.themed .fwc.main { font-family: var(--display); font-size: 16px; font-weight: 600; } .view.themed .fh { border-bottom-color: rgba(var(--hacrgb),.18); color: var(--hac); font-family: var(--sans2); letter-spacing: .14em; }

/* ---- round 50: the original glass button, only the colour changes per place ----
   Same finish as the first liquid-glass buttons (soft see-through body, fine bright rim, glow from below), tinted with
   the place's colour; the main action uses the place's action colour. Timer Start / Stop: a cute mint and a soft coral. */
.view.themed .gbtn, .view.themed .chip:not(.addchip) { --tint: var(--hacrgb); }
.view.themed .gbtn.on, .view.themed .chip[aria-pressed="true"] { --tint: var(--cta); }
.view.themed .gbtn.on.btn-go { --tint: 140,218,170; } .view.themed .gbtn.on.btn-go.stop { --tint: 255,158,158; }
.view.themed .gbtn, .view.themed .chip:not(.addchip) { color: var(--ink); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none;
  background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), rgba(var(--tint), .17);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.85), inset 0 -9px 12px -7px rgba(255,255,255,.55), 0 0 0 1px rgba(var(--tint), .28), 0 6px 14px rgba(30,50,70,.08);
  transition: background .25s, transform .2s, box-shadow .25s; }
.view.themed .gbtn::before, .view.themed .chip:not(.addchip)::before { display: block; content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; opacity: 1; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.4) 30%, rgba(var(--tint), .45) 64%, rgba(255,255,255,.92) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
/* hover you can see: more colour, a lift and a soft ring */
.view.themed .gbtn:hover, .view.themed .chip:not(.addchip):hover { transform: translateY(-1px);
  background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.08)), rgba(var(--tint), .34);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), inset 0 -9px 12px -7px rgba(255,255,255,.6), 0 0 0 1px rgba(var(--tint), .45), 0 0 0 4px rgba(var(--tint), .16), 0 8px 18px rgba(30,50,70,.1); }
.view.themed .gbtn:active, .view.themed .chip:not(.addchip):active { transform: scale(.96); }
/* the main action, and chosen chips: more of the colour */
.view.themed .gbtn.on, .view.themed .chip[aria-pressed="true"] {
  background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02)), rgba(var(--tint), .62); }
.view.themed .gbtn.on:hover, .view.themed .chip[aria-pressed="true"]:hover {
  background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), rgba(var(--tint), .78); }
.view.themed .gbtn.on { padding: 9px 22px; font-size: 13.5px; font-weight: 600; }
.view.themed .chip[aria-pressed="true"] { font-weight: 600; }
/* the feelings-card button stays a quiet, secondary glass button */
.view.themed .jt-right .gbtn.on { --tint: var(--hacrgb); padding: 7px 16px; font-size: 13px; font-weight: 500;
  background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), rgba(var(--tint), .17); }
.view.home .gbtn.on[data-do="todayWrite"] { animation-name: m-invite-y; }

/* ---- round 51: a nicer hover for every glass button: light catching the glass ----
   No ring. A soft band of light glides across the button, the glow from below rises and brightens, and the button lifts
   a touch on a softer, deeper shadow. */
.gbtn, .chip:not(.addchip):not(.tick) { overflow: hidden; isolation: isolate; }
.gbtn::after, .chip:not(.addchip):not(.tick)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.85) 47%, rgba(255,255,255,.25) 53%, rgba(255,255,255,0) 68%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0; opacity: 0; transition: background-position .75s cubic-bezier(.3,.7,.3,1), opacity .25s; }
.gbtn:hover::after, .chip:not(.addchip):not(.tick):hover::after { background-position: -40% 0; opacity: 1; }
/* the lift and the rising glow (the coloured ring is gone) */
.view.themed .gbtn:hover, .view.themed .chip:not(.addchip):not(.tick):hover { transform: translateY(-1.5px);
  background: radial-gradient(150% 120% at 50% 125%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.06)), rgba(var(--tint), .26);
  box-shadow: inset 0 1px 1px #fff, inset 0 -10px 14px -6px rgba(255,255,255,.8), 0 0 0 1px rgba(var(--tint), .32), 0 10px 22px rgba(var(--tint), .28), 0 2px 4px rgba(30,50,70,.06); }
.view.themed .gbtn.on:hover, .view.themed .chip[aria-pressed="true"]:hover {
  background: radial-gradient(150% 120% at 50% 125%, rgba(255,255,255,.8) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), rgba(var(--tint), .72);
  box-shadow: inset 0 1px 1px #fff, inset 0 -10px 14px -6px rgba(255,255,255,.7), 0 0 0 1px rgba(var(--tint), .5), 0 12px 24px rgba(var(--tint), .45), 0 2px 4px rgba(30,50,70,.08); }
.gbtn:not(.view.themed .gbtn):hover { box-shadow: inset 0 1px 1px #fff, inset 0 -10px 14px -6px rgba(255,255,255,.75), 0 0 0 1px rgba(110,150,190,.25), 0 10px 20px rgba(30,50,70,.14); }
.view.themed .gbtn:active, .view.themed .chip:not(.addchip):not(.tick):active, .gbtn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }

/* ---- round 52: the feelings card, centred on a blurred screen, in white glass ---- */
body::before { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); }
body:has(.fc-drawer.open)::before { opacity: 1; pointer-events: auto; cursor: pointer; }
.fc-drawer, .fc-drawer.wide { position: fixed; top: 50%; left: 50%; right: auto; bottom: auto; z-index: 61; width: min(820px, 92vw); max-height: min(82vh, 760px); overflow: auto;
  padding: 30px 34px 30px; border-radius: 32px; display: grid; gap: 14px; align-content: start; cursor: auto;
  background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.48)); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85), inset 0 1px 0 #fff, 0 30px 80px rgba(38,52,61,.18);
  opacity: 0; visibility: hidden; transform: translate(-50%, -47%) scale(.97); transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.4,.64,1), visibility 0s .3s; }
.fc-drawer.open, .fc-drawer.wide.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.4,.64,1), visibility 0s; }
.view.themed .fc-drawer { background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.48)); }
#fcd > .row:first-child b { font-family: var(--display); font-size: 30px !important; font-weight: 500; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
#fcd .frow { background: rgba(255,255,255,.6); }
.fc-tab[aria-expanded="true"], body:has(.fc-drawer.open) .fc-tab { right: 0; opacity: 0; pointer-events: none; }
.fc-drawer::-webkit-scrollbar { width: 8px; } .fc-drawer::-webkit-scrollbar-thumb { background: rgba(38,52,61,.15); border-radius: 8px; }
.fcwrap { display: contents !important; background: none !important; }
#fcd .fwc:not(.main) { background: rgba(255,255,255,.88); border: 0; box-shadow: inset 0 0 0 1px rgba(var(--hacrgb, 116,88,214),.16); transition: background .2s, box-shadow .2s, transform .15s; } #fcd .fwc:not(.main):hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(var(--hacrgb, 116,88,214),.4); transform: translateY(-1px); } #fcd .fwc[aria-pressed="true"] { background: rgba(var(--cta, 255,176,206),.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }

/* ---- round 53: less to read, a clearer order ----
   The serif (Fraunces) only for the single line at the top: page titles, the greeting, the one-line quote, the title of
   the feelings card. Everything else is one pretty sans, Plus Jakarta Sans: regular for reading, semibold / bold for
   what you should notice first. */
:root { --sans2: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; }
/* your own writing: calm regular sans at a reading size, with a light placeholder */
.view.journal #ed, .view.journal .tf { font-family: var(--sans2); font-size: 16px; font-weight: 400; line-height: 1.7; font-variation-settings: normal; letter-spacing: 0; }
.view.themed .inp::placeholder, .view.themed textarea::placeholder { color: rgba(38,52,61,.38); font-weight: 400; }
.view.journal .body > p.t[style*="pre-line"] { font-family: var(--sans2); font-size: 16px !important; font-weight: 400; line-height: 1.75 !important; font-variation-settings: normal; }
/* card and row titles: bold sans */
.view.journal #tl button.box b, .view.journal .lbrow b { font-family: var(--sans2); font-size: 15px !important; font-weight: 600; letter-spacing: -.005em; }
.view.journal #pline, .view.journal #pbox .prow { font-family: var(--sans2); }
.view.journal .body .box > b[style*="font-size:20px"], .view.journal .body .box > b[style*="font-size:17px"] { font-family: var(--sans2); font-weight: 600; letter-spacing: -.01em; }
.view.themed .fwc.main { font-family: var(--sans2); font-size: 14px; font-weight: 700; }
.view.themed .jt-feel { font-family: var(--sans2); font-size: 14px; font-weight: 600; }
.view.journal .jt-time { font-family: var(--sans2); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* numbers: bold sans */
.view.home .hweeks .hnum { font-family: var(--sans2); font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variation-settings: normal; }
.view.home .fcard .wd { font-family: var(--sans); font-weight: 700; font-size: 30px; letter-spacing: -.01em; font-variation-settings: normal; }
/* the page title stays the one serif line, a touch lighter so it leads without shouting */
.view.themed .head h1 { font-weight: 450; }
/* the feelings-card button hovers like every other glass button */
.view.themed .jt-right .gbtn.on:hover { transform: translateY(-1.5px);
  background: radial-gradient(150% 120% at 50% 125%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.06)), rgba(var(--tint), .26);
  box-shadow: inset 0 1px 1px #fff, inset 0 -10px 14px -6px rgba(255,255,255,.8), 0 0 0 1px rgba(var(--tint), .32), 0 10px 22px rgba(var(--tint), .28), 0 2px 4px rgba(30,50,70,.06); }

/* ---- round 54: hover = the glass fills ----
   No shine. On hover a deeper shade of the button's own colour rises softly from the bottom, like liquid filling the
   glass, and drains back when you leave. The main action fills with a deeper tone of its colour. */
.gbtn::after, .chip:not(.addchip):not(.tick)::after { opacity: 1; background: linear-gradient(to top, rgba(var(--tint), .42) 0%, rgba(var(--tint), .42) 82%, rgba(var(--tint), 0) 100%) !important;
  background-size: 100% 100% !important; background-position: 0 0 !important; transform: translateY(102%); transition: transform .45s cubic-bezier(.3,.7,.25,1) !important; }
.gbtn:hover::after, .chip:not(.addchip):not(.tick):hover::after { transform: translateY(0); }
.gbtn.on::after, .chip[aria-pressed="true"]::after { background: linear-gradient(to top, color-mix(in srgb, rgb(var(--tint)) 78%, #26343d) 0%, color-mix(in srgb, rgb(var(--tint)) 82%, #26343d) 80%, rgba(var(--tint), 0) 100%) !important; opacity: .55; }
/* the button itself stays put: same glass, a slightly deeper shadow, no lift */
.view.themed .gbtn:hover, .view.themed .chip:not(.addchip):not(.tick):hover, .view.themed .jt-right .gbtn.on:hover { transform: none;
  background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), rgba(var(--tint), .17);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.85), inset 0 -9px 12px -7px rgba(255,255,255,.55), 0 0 0 1px rgba(var(--tint), .4), 0 8px 18px rgba(30,50,70,.1); }
.view.themed .gbtn.on:hover, .view.themed .chip[aria-pressed="true"]:hover {
  background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02)), rgba(var(--tint), .62);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.85), inset 0 -9px 12px -7px rgba(255,255,255,.55), 0 0 0 1px rgba(var(--tint), .5), 0 8px 18px rgba(30,50,70,.12); }
.gbtn:hover, .chip:not(.addchip):not(.tick):hover { transform: none; }
.gbtn:active, .chip:not(.addchip):not(.tick):active { transform: scale(.97); }
/* a lighter fill: just a little more of the button's own colour */
.gbtn::after, .chip:not(.addchip):not(.tick)::after { background: linear-gradient(to top, rgba(var(--tint), .2) 0%, rgba(var(--tint), .2) 82%, rgba(var(--tint), 0) 100%) !important; }
.gbtn.on::after, .chip[aria-pressed="true"]::after { background: linear-gradient(to top, rgba(var(--tint), .45) 0%, rgba(var(--tint), .45) 82%, rgba(var(--tint), 0) 100%) !important; opacity: 1; }

/* ---- round 55: the timer, simpler ----
   Start (or Stop) sits centred under the time; Reset is a small text link beneath it. Start and Stop use the place's
   own colours: Start is its main action colour, Stop a calm glass in its accent. */
.jt-btns { flex-direction: column; align-items: center; gap: 8px; }
.jt-btns .gbtn { min-width: 120px; }
.jt-resetlink { font-size: 12px; font-weight: 500; opacity: .8; }
.jt-resetlink:hover { opacity: 1; }
.view.themed .gbtn.on.btn-go { --tint: var(--cta); }
.view.themed .gbtn.on.btn-go.stop { --tint: var(--hacrgb);
  background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), rgba(var(--tint), .3); }
.view.themed .btn-go, .view.themed .btn-go.stop { --cta: inherit; }

/* a lighter hover fill: only a breath more colour */
.gbtn::after, .chip:not(.addchip):not(.tick)::after { background: linear-gradient(to top, rgba(var(--tint), .1) 0%, rgba(var(--tint), .1) 82%, rgba(var(--tint), 0) 100%) !important; }
.gbtn.on::after, .chip[aria-pressed="true"]::after { background: linear-gradient(to top, rgba(var(--tint), .22) 0%, rgba(var(--tint), .22) 82%, rgba(var(--tint), 0) 100%) !important; }

/* ---- Goals: a very soft mint page, warm peach for the main action, a deeper mint for labels and links ---- */
.view.themed.goals { --hbg: #e8f7ef; --hac: #2f8a5f; --hacrgb: 47,138,95; --cta: 255,188,150; }
/* ticks */
.view.themed .chk { border-color: rgba(var(--hacrgb),.35); background: rgba(255,255,255,.85); }
.view.themed .chk:hover { border-color: var(--hac); }
.view.themed .chk[aria-pressed="true"] { background: var(--hac); border-color: var(--hac); }
/* the summary band (Goals, Promises): white glass, the figure in the accent */
.view.themed .psum, .view.themed .mband { border: 0; background: linear-gradient(160deg, rgba(255,255,255,.88), rgba(255,255,255,.62)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 10px 26px rgba(var(--hacrgb),.08); }
.view.themed .pbig { font-family: var(--sans2); font-weight: 800; letter-spacing: -.03em; color: var(--hac); }
.view.themed .pbig small { font-weight: 600; }
.view.themed .pmood b { font-family: var(--sans2); font-size: 17px; font-weight: 700; }
.view.themed .msmile { fill: rgba(var(--hacrgb),.12); stroke: var(--hac); } .view.themed .msmile .dot { fill: var(--hac); }
/* rows, names, cards: bold sans */
.view.themed .tmain b, .view.themed .ptxt, .view.themed .ltn, .view.themed .gname, .view.themed .qq, .view.themed .rt { font-family: var(--sans2); letter-spacing: -.01em; }
.view.themed .tmain b { font-size: 15px; font-weight: 600; }
.view.themed .ptxt { font-size: 16px; font-weight: 700; }
.view.themed .ltn, .view.themed .gname { font-size: 17px; font-weight: 700; }
.view.themed .gname:hover { color: var(--hac); }
.view.themed .qq { font-size: 15.5px; font-weight: 600; }
.view.themed .rl { color: var(--hac); }
.view.themed .ltr { border-left-color: rgba(var(--hacrgb),.18); }
.view.themed .pcard { background: linear-gradient(160deg, rgba(255,255,255,.88), rgba(255,255,255,.64)); }
.view.themed .pcard.done { background: linear-gradient(110deg, rgba(var(--hacrgb),.1), rgba(255,255,255,.8) 70%); box-shadow: inset 0 0 0 1.5px rgba(var(--hacrgb),.3), 0 10px 26px rgba(var(--hacrgb),.08); }
/* promise days: kept in the accent, missed a soft coral cross, days to come dashed */
.view.themed .pd b, .view.themed .pmd { background: rgba(var(--hacrgb),.08); }
.view.themed .pd.k b, .view.themed .pmd.k, .view.themed .pm i { background: var(--hac); }
.view.themed .pd.m b, .view.themed .pmd.m { background: rgba(255,140,130,.16); } .view.themed .pd.m b svg, .view.themed .pmd.m svg { stroke: #e7766c; }
.view.themed .pd.f b, .view.themed .pmd.f { background: transparent; border-color: rgba(var(--hacrgb),.22); }
.view.themed .pd.t b, .view.themed .pmd.t { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(var(--hacrgb),.5); }
.view.themed .pm.t em, .view.themed .psumline b { color: var(--hac); }
.view.themed .pd i, .view.themed .pm em { font-family: var(--sans2); }
/* quotes, hearts, boards */
.view.themed .heart[aria-pressed="true"] { color: #f08f86; } .view.themed .heart[aria-pressed="true"] svg { fill: #ffb4a8; stroke: #e7766c; }
.view.themed .vboard { border: 0; background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(255,255,255,.5)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 10px 26px rgba(var(--hacrgb),.08); }
.view.themed .vboard.over { background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 2px var(--hac); }
.view.themed .vadd { border-color: rgba(var(--hacrgb),.35); color: var(--hac); }
.view.themed .fwc.add { color: var(--hac); border-color: rgba(var(--hacrgb),.4); }
.view.themed .box.sel { background: rgba(255,255,255,.92); }
.view.themed.goals { --soft: #62c497; } .view.themed.goals .pd.k b, .view.themed.goals .pmd.k, .view.themed.goals .pm i, .view.themed.goals .chk[aria-pressed="true"] { background: var(--soft); border-color: var(--soft); } .view.themed.goals .pbig { color: #3f9d70; }

/* ---- round 56: "Write here" is a notebook page ----
   A warm paper page in the middle of the screen, torn from a spiral notebook: square punched holes down the left with
   little torn paper bits, faint ruled lines in the Journal's lavender, and your words in a neat, organised handwriting
   (Patrick Hand) that sits on the lines. Rounded on the right like a real page, with the place's soft shadow. */
.npage { --rule: 34px; position: relative; width: 100%; max-width: 780px; margin: 8px auto 4px; padding: 30px 40px 30px 84px;
  background: #fffdf6; border-radius: 3px 20px 20px 3px;
  box-shadow: 0 22px 46px rgba(var(--hacrgb, 116,88,214), .14), 0 3px 8px rgba(38,52,61,.06), inset 0 0 0 1px rgba(38,52,61,.04); }
/* the punched holes: small rounded squares showing the page colour through */
.npage::before { content: ""; position: absolute; left: 26px; top: 26px; bottom: 26px; width: 20px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='44'%3E%3Crect x='3' y='8' width='14' height='14' rx='3' fill='%23f3eeff'/%3E%3Crect x='3' y='8' width='14' height='14' rx='3' fill='none' stroke='%2326343d' stroke-opacity='.1'/%3E%3C/svg%3E") 0 0 / 20px 44px repeat-y; }
/* the torn bits along the left edge, where the page came off the spiral */
.ntear { position: absolute; left: -9px; top: 18px; bottom: 18px; width: 18px; pointer-events: none; opacity: .95;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='132'%3E%3Cpath d='M18 4 L9 7 L12 12 L4 15 L10 20 L18 22Z' fill='%23fffdf6'/%3E%3Cpath d='M18 58 L6 60 L11 64 L2 69 L9 72 L18 75Z' fill='%23fffdf6'/%3E%3Cpath d='M18 96 L11 99 L14 103 L7 107 L18 110Z' fill='%23fffdf6'/%3E%3C/svg%3E") 0 0 / 18px 132px repeat-y;
  filter: drop-shadow(-1px 1px 1px rgba(38,52,61,.08)); }
/* the writing: neat handwriting on faint ruled lines */
.view.journal .npage #ed, .npage #ed { display: block; width: 100%; min-height: calc(var(--rule) * 11); padding: 0 0 0 4px; border: 0; border-radius: 0; box-shadow: none; outline: none; resize: none;
  font-family: "Patrick Hand", "Segoe Print", cursive; font-size: 21px; font-weight: 400; letter-spacing: .01em; line-height: var(--rule); color: #2b3640;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--rule) - 1px), rgba(var(--hacrgb, 116,88,214), .2) calc(var(--rule) - 1px), rgba(var(--hacrgb, 116,88,214), .2) var(--rule)) 0 0 / 100% var(--rule) local; }
.npage #ed::placeholder { color: rgba(38,52,61,.36); font-family: "Patrick Hand", "Segoe Print", cursive; }
.view.journal .npage #ed:focus { box-shadow: none; background-color: transparent; }
@media (max-width: 700px) { .npage { padding: 24px 22px 24px 64px; } .npage::before { left: 18px; } }
.npage::before { left: 24px; width: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='44'%3E%3Crect x='3' y='8' width='16' height='15' rx='3.5' fill='%23e6ddff'/%3E%3Crect x='3' y='8' width='16' height='4' rx='2' fill='%23d6caf7'/%3E%3Crect x='3.5' y='8.5' width='15' height='14' rx='3' fill='none' stroke='%237458d6' stroke-opacity='.22'/%3E%3C/svg%3E") 0 0 / 22px 44px repeat-y; }
.ntear { left: -14px; width: 26px; filter: drop-shadow(-1px 2px 1.5px rgba(38,52,61,.12));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='132'%3E%3Cpath d='M26 6 L13 8 L17 13 L5 17 L12 22 L3 26 L26 30Z' fill='%23fffdf6'/%3E%3Cpath d='M26 52 L10 55 L16 60 L2 65 L11 70 L26 72Z' fill='%23fffdf6'/%3E%3Cpath d='M26 94 L15 97 L19 102 L8 107 L14 111 L26 114Z' fill='%23fffdf6'/%3E%3C/svg%3E") 0 0 / 26px 132px repeat-y; }
/* the page in proportion: as wide as the timer card above, smaller writing on closer lines, eight lines tall */
.npage { --rule: 28px; max-width: none; margin: 4px 0 0; padding: 22px 32px 22px 70px; border-radius: 3px 18px 18px 3px; }
.npage::before { left: 22px; top: 20px; bottom: 20px; background-size: 22px 38px; }
.view.journal .npage #ed, .npage #ed { font-size: 18px; min-height: calc(var(--rule) * 8); }

/* ---- round 57: the notebook page fills the screen, hangs on spiral rings, and turns ---- */
.npage { padding: 22px 32px 46px 74px; }
.ntear { display: none; }
/* spiral rings: each loops from a small hole over the edge of the page, in soft silver */
.npage::before { left: -16px; top: 18px; bottom: 40px; width: 44px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='36'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f6f4fb'/%3E%3Cstop offset='.55' stop-color='%23bfb8d2'/%3E%3Cstop offset='1' stop-color='%238f88a6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='28' cy='20' rx='3.8' ry='4.4' fill='%23ddd3f6'/%3E%3Cellipse cx='28' cy='19' rx='3.6' ry='3' fill='%23c6b9ec'/%3E%3Cpath d='M28 17 C28 6 4 6 4 16 C4 22 9 24 16 23' fill='none' stroke='url(%23g)' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M25.5 11.5 C21 8 9 8 7 14' fill='none' stroke='white' stroke-opacity='.85' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 44px 36px repeat-y;
  filter: drop-shadow(0 1px 1px rgba(38,52,61,.18)); }
/* as tall as the screen allows */
.view.journal .npage #ed, .npage #ed { height: max(calc(var(--rule) * 8), calc(100vh - 240px)); min-height: 0; overflow: hidden; }
/* which page you are on */
.npgbar { position: absolute; right: 26px; bottom: 12px; display: flex; align-items: center; gap: 4px; font-family: var(--sans2); font-size: 12px; font-weight: 600; color: var(--hac, #7458d6); }
.npgnum { min-width: 86px; text-align: center; font-variant-numeric: tabular-nums; }
.npgbtn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; line-height: 1; color: var(--hac, #7458d6); transition: background .2s; }
.npgbtn:hover:not(:disabled) { background: rgba(var(--hacrgb, 116,88,214), .1); }
.npgbtn:disabled { opacity: .3; cursor: default; }
/* the page turning: a copy of the page swings on its rings */
.npage .nturn { position: absolute; inset: 0; margin: 0; z-index: 5; pointer-events: none; transform-origin: 0 50%; box-shadow: 0 10px 30px rgba(38,52,61,.12); }
.npage .nturn .npgbar { display: none; }

/* ---- Settings: a very soft blush page, sky blue for the main action, a deeper rose for labels and links ---- */
.view.themed.settings { --hbg: #fff0f4; --hac: #c2547d; --hacrgb: 194,84,125; --cta: 158,204,246; }
.view.themed .prow2 .t { font-family: var(--sans2); font-size: 14px; font-weight: 500; }
.view.themed .box .lbl:first-child { margin-bottom: 2px; }
.view.themed .whycard, .whymodal .whycard { font-family: var(--sans2); }
.view.themed .fcard .gbtn { --tint: 248,234,72; background: radial-gradient(130% 95% at 50% 118%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02)), rgba(var(--tint), .62); font-family: var(--sans2); } .view.themed input[type=range] { accent-color: var(--hac); }

/* ---- round 58: the onboarding cards always fit the window ---- */
.ob-top { padding: 12px 28px; }
.ob-stage { padding: 8px 20px 72px; gap: 16px; }
.ocard.sheet.front { min-height: 0; padding: 66px 42px 24px; }
.ocard .oc { gap: 12px; }
.ocard h1 { font-size: clamp(28px, 4.6vh, 44px); }
.ocard .olead { font-size: 15px; line-height: 1.45; }
.ocard .no { margin-top: 12px; } .ocard .no b { font-size: 40px; } .ocard .no em { font-size: 24px; }
.ocard .foot2 { margin-top: 4px; }
.ocard .orows .row { padding: 8px 0; }
@media (max-height: 760px) {
  .ocard.sheet.front { padding: 60px 36px 18px; }
  .ocard .oc { gap: 9px; }
  .ocard .olead { font-size: 14px; }
  .ocard .no { margin-top: 6px; } .ocard .no b { font-size: 32px; }
  .ob .steps { display: none; }
}

/* ---- round 59: the feelings card is a flashcard deck ----
   No side tab. A fixed card shape with two pastel cards fanned behind it (the place's action colour and a soft tint of
   its accent). It opens like the onboarding deck; switching tabs deals the next card in. The scrollbar stays inside. */
.fc-tab { display: none !important; }
.fc-drawer, .fc-drawer.wide { width: min(780px, 90vw); height: min(80vh, 700px); max-height: none; border-radius: 22px; z-index: 62;
  transform: translate(-50%, -50%); transition: opacity .25s ease, visibility 0s .25s; }
.fc-drawer.open, .fc-drawer.wide.open { transform: translate(-50%, -50%); transition: opacity .25s ease, visibility 0s; }
.fcback { position: fixed; top: 50%; left: 50%; z-index: 61; width: min(780px, 90vw); height: min(80vh, 700px); border-radius: 22px; pointer-events: none;
  transform: translate(-50%, -50%); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s;
  box-shadow: 0 20px 50px rgba(38,52,61,.12), inset 0 0 0 1.5px rgba(255,255,255,.6); }
.fcback.a { background: rgb(var(--cta, 255,176,206)); translate: -38px -30px; rotate: -5deg; }
.fcback.b { background: color-mix(in srgb, rgb(var(--hacrgb, 116,88,214)) 32%, #fff); translate: 34px 26px; rotate: 4deg; }
body:has(.fc-drawer.open) .fcback { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
/* the scrollbar: thin, soft, and tucked inside the rounded corners */
.fc-drawer::-webkit-scrollbar { width: 14px; }
.fc-drawer::-webkit-scrollbar-track { background: transparent; margin: 26px 0; }
.fc-drawer::-webkit-scrollbar-thumb { background: rgba(var(--hacrgb, 116,88,214), .22); border-radius: 10px; border: 5px solid transparent; background-clip: padding-box; }
.fc-drawer::-webkit-scrollbar-thumb:hover { background: rgba(var(--hacrgb, 116,88,214), .4); background-clip: padding-box; border: 5px solid transparent; }
.fc-drawer, .fc-drawer.wide { transition: opacity .45s ease, visibility 0s .45s; } .fc-drawer.open, .fc-drawer.wide.open { transition: opacity .45s ease, visibility 0s; } .fcback { transition: opacity .5s ease, visibility 0s .5s; } body:has(.fc-drawer.open) .fcback { transition: opacity .5s ease, visibility 0s; } body::before { transition: opacity .5s ease; }
/* the feelings card: quick, smooth fades */
.fc-drawer, .fc-drawer.wide { transition: opacity .28s cubic-bezier(.22,1,.36,1), visibility 0s .28s; } .fc-drawer.open, .fc-drawer.wide.open { transition: opacity .28s cubic-bezier(.22,1,.36,1), visibility 0s; }
.fcback { transition: opacity .3s ease, visibility 0s .3s; } body:has(.fc-drawer.open) .fcback { transition: opacity .3s ease, visibility 0s; }
body::before { transition: opacity .3s ease; }

/* ---- round 60: photos pasted on the notebook page, as Polaroids ---- */
.polaroid { margin: 0; width: 168px; padding: 9px 9px 32px; background: #fff; box-shadow: 0 6px 14px rgba(38,52,61,.16), 0 1px 2px rgba(38,52,61,.12); }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #f1eef7; pointer-events: none; user-select: none; }
.npage > .polaroid { position: absolute; z-index: 3; cursor: grab; touch-action: none; transition: box-shadow .2s, transform .2s; }
.npage > .polaroid:hover { box-shadow: 0 10px 22px rgba(38,52,61,.2), 0 1px 2px rgba(38,52,61,.12); }
.npage > .polaroid.lifted { cursor: grabbing; z-index: 6; transform: scale(1.05); box-shadow: 0 24px 38px rgba(38,52,61,.26); transition: box-shadow .15s, transform .15s; }
.pdel { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1; color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(38,52,61,.2); opacity: 0; transition: opacity .2s; }
.polaroid:hover .pdel, .pdel:focus-visible { opacity: 1; }
.npage .nturn .polaroid { pointer-events: none; }
/* on a saved entry, the photos sit in a row */
.pstrip { display: flex; flex-wrap: wrap; gap: 24px; padding: 10px 6px 4px; }
.pstrip .polaroid { width: 160px; }

/* ---- round 61: photos stick like stickers ----
   On the page a photo lies flat, with only a hairline of shadow. Picking it up peels one corner (the top right) off the
   paper, showing the back of the print; putting it down smooths that corner flat again. */
@property --curl { syntax: '<length>'; initial-value: 0px; inherits: true; }
.npage > .polaroid { --curl: 0px; padding: 0; background: none; box-shadow: none; filter: drop-shadow(0 1px 1px rgba(38,52,61,.14)); transition: --curl .45s cubic-bezier(.22,1,.36,1), filter .3s, transform .3s; }
.npage > .polaroid:hover { box-shadow: none; --curl: 12px; filter: drop-shadow(0 2px 3px rgba(38,52,61,.14)); }
.npage > .polaroid.lifted { --curl: 36px; transform: scale(1.03); box-shadow: none; filter: drop-shadow(0 8px 12px rgba(38,52,61,.16)); transition: --curl .3s cubic-bezier(.22,1,.36,1), filter .2s, transform .2s; }
.ppaper { position: relative; padding: 9px 9px 32px; background: #fff;
  clip-path: polygon(0 0, calc(100% - var(--curl)) 0, 100% var(--curl), 100% 100%, 0 100%); }
/* the peeled corner: the back of the print, folded over */
.ppaper::after { content: ""; position: absolute; top: 0; right: 0; width: var(--curl); height: var(--curl); pointer-events: none;
  background: linear-gradient(225deg, transparent 50%, #e6e2da 50%, #faf8f3 72%, #e9e5dd 100%);
  box-shadow: -1px 1px 2px rgba(38,52,61,.08); }
.npage > .polaroid .pdel { top: 6px; right: auto; left: 6px; width: 22px; height: 22px; font-size: 14px; }
.npage > .polaroid.lifted { --curl: 48px; } .npage > .polaroid:hover { --curl: 14px; }

/* ---- round 62: a clearer peel, a satisfying press, and turning ---- */
.npage > .polaroid:hover { --curl: 20px; }
.npage > .polaroid.lifted { --curl: 66px; }
.npage > .polaroid.turning { --curl: 22px; filter: drop-shadow(0 6px 10px rgba(38,52,61,.16)); transition: --curl .3s cubic-bezier(.22,1,.36,1), filter .2s; }
/* the curled corner: the back of the print, rounded at its tip, with light along the curl */
.ppaper::after { border-bottom-left-radius: 45% 45%;
  background: linear-gradient(225deg, transparent 50%, #d6d0c4 50%, #efebe3 56%, #fffefb 68%, #f3efe7 84%, #ddd7cb 100%);
  box-shadow: -2px 3px 5px rgba(38,52,61,.14); }
/* the soft shadow the curl casts on the photo, just along the fold */
.ppaper::before { content: ""; position: absolute; top: 0; right: 0; z-index: 1; width: calc(var(--curl) * 1.6); height: calc(var(--curl) * 1.6); pointer-events: none;
  background: linear-gradient(225deg, transparent 31%, rgba(38,52,61,.2) 33%, rgba(38,52,61,0) 48%); }
.ppaper::after { z-index: 2; }
/* the handle that turns a photo */
.prot { position: absolute; right: -12px; bottom: -12px; z-index: 4; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: grab; color: var(--hac, #7458d6);
  background: #fff; box-shadow: 0 2px 8px rgba(38,52,61,.2); opacity: 0; transition: opacity .2s, transform .2s; touch-action: none; }
.prot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.npage > .polaroid:hover .prot, .npage > .polaroid.turning .prot, .prot:focus-visible { opacity: 1; }
.prot:hover { transform: scale(1.1) rotate(25deg); }
.polaroid.turning .prot { cursor: grabbing; }
