/* zest. Flat, bright, sticker-sweet, in the same family as Carrie. Tokens from the zest brand book. */
:root {
  --zest: #FFD83B; --zest-d: #F2C21B; --rind: #EAB60F; --leaf: #3E8E41; --leaf-l: #E4F1DF;
  --pith: #FFFBEA; --butter: #FFF3C4; --cream: #FFF8DC; --night: #1F1A0A; --ink2: #5E5638;
  --blush: #FFE4EC; --rose: #E86A9A; --rose-l: #FBD3E0; --white: #FFFFFF; --line: #F0E6C2;
  --danger: #B3263E; --danger-l: #FBE3E7; --lid: #FFD83B;
  --r: 24px; --r-lg: 30px;
  --f: Inter, system-ui, -apple-system, sans-serif; --fd: Poppins, Inter, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 1px 0 rgba(31, 26, 10, .04), 0 8px 24px rgba(31, 26, 10, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pith); color: var(--night); font: 500 16px/1.45 var(--f); min-height: 100dvh; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
h1:focus { outline: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--night); color: var(--pith); padding: 10px 14px; border-radius: 12px; }

#app { max-width: 480px; margin: 0 auto; }
.screen { min-height: 100dvh; padding: calc(16px + var(--safe-t)) 16px calc(120px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; }
.screen.flow { padding-bottom: calc(20px + var(--safe-b)); }

/* type */
.eyebrow, .k { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); }
.k { display: block; margin-bottom: 6px; }
.k.rose { color: var(--rose); }
.label { font-size: 13px; font-weight: 800; color: var(--night); display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.label em, .field em { font-style: normal; font-weight: 600; color: var(--ink2); }
h1 { font: 900 32px/1.02 var(--fd); letter-spacing: -.035em; }
h1 a { text-decoration: none; }
h2 { font: 900 22px/1.1 var(--fd); letter-spacing: -.02em; }
h3 { font-size: 16px; font-weight: 800; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.section-h a { font-size: 14px; font-weight: 700; color: var(--ink2); }
.lead { font-size: 17px; line-height: 1.45; color: var(--ink2); }
.muted { color: var(--ink2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.grow { flex-grow: 1; }

/* top bar */
.appbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.wordmark { display: inline-flex; align-items: flex-end; font: 900 30px/.9 var(--fd); letter-spacing: -.05em; text-decoration: none; }
.wordmark .dot { width: 11px; height: 13px; margin: 0 0 2px 1px; }
.appbar .icons { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; border: 0; text-decoration: none; cursor: pointer; flex: none; color: var(--night); }
.icon-btn svg { width: 20px; height: 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0; font-weight: 800; font-size: 16.5px; text-decoration: none; cursor: pointer; background: var(--white); color: var(--night); box-shadow: inset 0 0 0 2px var(--line); transition: transform .08s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--zest); box-shadow: 0 4px 0 var(--rind); }
.btn.dark { background: var(--night); color: var(--pith); box-shadow: none; }
.btn.danger { color: var(--danger); box-shadow: inset 0 0 0 2px var(--danger-l); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 10px 4px; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--night); }
.link-btn.muted { color: var(--ink2); }
.danger-link { color: var(--danger); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* cards */
.card { background: var(--white); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.butter { background: var(--butter); box-shadow: none; }
.card.blush { background: var(--blush); box-shadow: none; }
.card.dashed { background: var(--blush); box-shadow: none; border: 2px dashed var(--rose-l); }
.say { background: var(--butter); border-radius: 20px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.say .zest { width: 44px; flex: none; margin-top: -2px; }
.say p { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.say.soft { background: var(--blush); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--butter); white-space: nowrap; }
.pill.soft { background: var(--blush); }
.pill.green { background: var(--leaf-l); color: #2C6B2F; }
.pill.red { background: var(--danger-l); color: var(--danger); }

/* hero (like Carrie's big Day card) */
.hero { position: relative; border-radius: var(--r-lg); padding: 22px 20px 20px; overflow: hidden; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.hero.butter { background: var(--butter); }
.hero.blush { background: var(--blush); }
.hero.night { background: var(--night); color: var(--pith); }
.hero.night .eyebrow { color: var(--zest); }
.hero .big { font: 900 76px/.86 var(--fd); letter-spacing: -.06em; margin-top: 8px; }
.hero .big small { display: block; font-size: 34px; letter-spacing: -.04em; line-height: 1; margin-top: 4px; }
.hero .status { font: 900 20px/1.1 var(--fd); color: var(--leaf); margin-top: 10px; }
.hero.night .status { color: var(--zest); }
.hero .sub { font-size: 14.5px; color: var(--ink2); margin-top: 2px; max-width: 58%; }
.hero.night .sub { color: rgba(255, 251, 234, .75); }
.hero > .zest { position: absolute; right: -6px; bottom: -14px; width: 170px; }

/* cast circles */
.circles { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 2px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.circles::-webkit-scrollbar { display: none; }
.circle { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; flex: none; width: 64px; }
.circle .av { width: 60px; height: 60px; font-size: 22px; box-shadow: 0 0 0 3px var(--pith), 0 0 0 5px var(--ring, transparent); }
.circle span { font-size: 12px; font-weight: 700; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle.add .av { background: var(--white); color: var(--night); box-shadow: inset 0 0 0 2px var(--line); }
.av { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; color: var(--night); font-weight: 900; font-family: var(--fd); flex: none; font-size: 17px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.field input, .field textarea { width: 100%; border: 2px solid var(--line); background: var(--white); border-radius: 18px; padding: 15px 16px; font-size: 17px; font-weight: 600; }
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus { border-color: var(--night); outline: none; }
.hint { font-size: 13px; color: var(--ink2); font-weight: 600; }
.err { color: var(--danger); font-weight: 700; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 15px; border-radius: 999px; border: 0; background: var(--white); font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.chip i { width: 12px; height: 12px; border-radius: 99px; }
.chip[aria-pressed="true"], .chip.on { background: var(--night); color: var(--pith); box-shadow: none; }
.chips.red .chip[aria-pressed="true"], .chips.red .chip.on { background: var(--danger-l); color: var(--danger); box-shadow: inset 0 0 0 1.5px #F2B8C3; }
.chips.green .chip[aria-pressed="true"], .chips.green .chip.on { background: var(--leaf-l); color: #2C6B2F; box-shadow: inset 0 0 0 1.5px #B9DBB3; }
.chips.red .chip[aria-pressed="true"]::before { content: "🚩"; font-size: 12px; }
.chips.green .chip[aria-pressed="true"]::before { content: "✓"; font-weight: 900; }
.chip.add { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink2); border: 0; color: var(--ink2); }
.chips.static .chip { cursor: default; min-height: 34px; font-size: 13.5px; }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; min-width: 0; border: 2px solid var(--night); border-radius: 999px; padding: 0 16px; min-height: 44px; font-size: 15px; font-weight: 600; background: var(--white); }
.flag-line { font-weight: 800; font-size: 14px; color: var(--danger); }
.flag-line.green { color: var(--leaf); }

/* flows: log + onboarding */
.flow .body { display: flex; flex-direction: column; gap: 14px; }
.flow .bottom { margin-top: auto; padding-top: 12px; position: sticky; bottom: calc(12px + var(--safe-b)); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.flow .bottom::before { content: ""; position: absolute; inset: -20px -16px -20px; background: linear-gradient(to bottom, rgba(255, 251, 234, 0), var(--pith) 40%); z-index: -1; }
.dots { display: flex; gap: 6px; flex: 1; }
.dots span { flex: 1; height: 6px; border-radius: 9px; background: var(--line); }
.dots span.on { background: var(--night); }
.step-n { font-size: 13px; font-weight: 800; color: var(--ink2); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.head-row > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.zest svg { width: 100%; height: auto; display: block; }
.zest.sm { width: 84px; flex: none; margin-bottom: -6px; }
.zest.md { width: 120px; flex: none; }

/* rating */
.rate-card { background: var(--white); border-radius: var(--r-lg); padding: 20px 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rater { display: flex; gap: 6px; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; padding: 6px 0; cursor: pointer; color: var(--night); }
.rater:focus-visible { outline-offset: 6px; border-radius: 16px; }
.rater .s { width: 56px; height: 56px; transition: transform .12s; pointer-events: none; }
.rater .s.pop { transform: scale(1.12); }
.rate-name { text-align: center; min-height: 54px; }
.rate-name strong { display: block; font: 900 28px/1.05 var(--fd); letter-spacing: -.03em; }
.rate-name span { color: var(--ink2); font-weight: 700; }
.rate-help { font-size: 13px; color: var(--ink2); font-weight: 600; text-align: center; }
.heart-row { display: flex; gap: 12px; align-items: center; background: var(--white); border: 0; border-radius: 20px; padding: 14px 16px; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); width: 100%; }
.heart-row[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--rose-l); background: var(--blush); }
.heart-row .txt { flex: 1; }
.heart-row .tick { width: 26px; height: 26px; border-radius: 99px; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.heart-row[aria-pressed="true"] .tick { background: var(--rose); color: var(--white); box-shadow: none; }
.endings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.endings button { min-height: 66px; border-radius: 18px; border: 0; padding: 10px 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; background: var(--white); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.endings button strong { font-size: 15px; font-weight: 800; }
.endings button span { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.endings button[aria-checked="true"] { background: var(--night); color: var(--pith); box-shadow: none; }
.endings button[aria-checked="true"] span { color: rgba(255, 251, 234, .7); }

/* onboarding */
.ob-hero { align-self: center; width: min(300px, 76vw); aspect-ratio: 1; border-radius: 999px; background: var(--blush); display: grid; place-items: center; margin-top: 10px; }
.ob-hero .zest { width: 80%; margin-top: -4%; }
.big-word { display: flex; align-items: flex-end; font: 900 92px/.85 var(--fd); letter-spacing: -.055em; }
.big-word .dot { width: 28px; height: 33px; margin: 0 0 5px 2px; }
.how { display: flex; flex-direction: column; gap: 10px; }
.how .card { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.how .zest { width: 62px; flex: none; }
.how .n { font: 900 13px var(--fd); color: var(--leaf); letter-spacing: .08em; }
.how h3 { font: 900 20px/1.1 var(--fd); letter-spacing: -.02em; margin: 2px 0; }
.how p { font-size: 14px; color: var(--ink2); }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { list-style: none; display: flex; gap: 12px; align-items: flex-start; background: var(--white); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); }
.ticks ul { margin: 0; padding: 0; }
.ticks .ic { width: 36px; height: 36px; border-radius: 99px; background: var(--leaf-l); display: grid; place-items: center; flex: none; font-size: 17px; }
.ticks strong { display: block; font-size: 15.5px; }
.ticks span { font-size: 14px; color: var(--ink2); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg2 button { border: 0; background: none; border-radius: 999px; min-height: 42px; font-weight: 800; cursor: pointer; }
.seg2 button[aria-pressed="true"] { background: var(--night); color: var(--pith); }

/* diary + lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.date-card { display: flex; gap: 12px; align-items: center; background: var(--white); border-radius: 22px; padding: 14px; text-decoration: none; box-shadow: var(--shadow); }
.date-card.gentle { background: var(--blush); box-shadow: none; }
.date-card .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.date-card .mid strong { font-size: 16.5px; }
.date-card .meta { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-card .snip { font-size: 13.5px; color: var(--night); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.date-card .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.date-card .rname { font-size: 12px; font-weight: 800; }
.slices { display: inline-flex; gap: 2px; color: var(--night); }
.unrated { font-size: 12px; color: var(--ink2); font-weight: 700; }
.mini-heart svg { width: 16px; height: 16px; display: block; }
.flags-n { display: flex; gap: 4px; }
.month { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin-top: 6px; }
.nudge { background: var(--night); color: var(--pith); border-radius: var(--r); padding: 16px; display: flex; gap: 12px; }
.nudge .zest { width: 56px; flex: none; }
.nudge p { font-weight: 700; font-size: 16px; line-height: 1.35; }
.nudge .row { margin-top: 10px; }
.nudge .btn.ghost { background: transparent; color: var(--pith); box-shadow: inset 0 0 0 2px rgba(255, 251, 234, .25); }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats3 > div { background: var(--white); border-radius: 20px; padding: 14px 12px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.stats3 .v { font: 900 26px/1 var(--fd); letter-spacing: -.03em; }
.stats3 .k { color: var(--ink2); letter-spacing: .06em; margin: 6px 0 0; font-size: 10.5px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 16px; }
.empty p { font-weight: 700; font-size: 17px; }
.fab-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(26px + var(--safe-b)); z-index: 12; }

/* date page */
.rating-big { display: flex; flex-direction: column; gap: 6px; }
.rating-big .nm { font: 900 30px/1 var(--fd); letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; }
.review p.txt { font-size: 16px; line-height: 1.5; }
.end-card { flex-direction: row; justify-content: space-between; align-items: center; }
.end-card strong { display: block; font: 900 19px/1.15 var(--fd); }

/* share */
.card-preview canvas { width: 100%; height: auto; border-radius: 24px; display: block; background: #fff; box-shadow: var(--shadow); }
.toggles { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); padding: 4px 16px; box-shadow: var(--shadow); }
.toggles .switch + .switch { border-top: 1.5px solid var(--line); }
.switch { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 700; justify-content: space-between; }
.switch > span { flex: 1; }
.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; order: 2; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 99px; background: var(--white); transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.switch input:checked { background: var(--leaf); }
.switch input:checked::after { transform: translateX(20px); }

/* wrapped */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg a { padding: 8px 14px; border-radius: 99px; background: var(--white); font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg a[aria-current="page"] { background: var(--night); color: var(--pith); box-shadow: none; }
.slides { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: center; flex: 0 0 86%; min-height: 440px; border-radius: var(--r-lg); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.slide.dark { color: var(--pith); }
.slide.dark .eyebrow { color: var(--zest); }
.slide .eyebrow { color: var(--night); }
.slide .big { font: 900 48px/1 var(--fd); letter-spacing: -.045em; overflow-wrap: anywhere; }
.slide .big b { color: var(--rose); }
.slide .small-line { font-weight: 700; font-size: 17px; max-width: 90%; }
.slide .zest { margin-top: auto; align-self: flex-end; }

/* gentle + me */
.support { gap: 0; }
.support-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1.5px solid var(--line); text-decoration: none; }
.support-row:first-of-type { border-top: 0; }
.support-row span:first-child { display: flex; flex-direction: column; }
.tel { font-weight: 800; white-space: nowrap; background: var(--leaf-l); color: #2C6B2F; padding: 6px 12px; border-radius: 99px; font-size: 14px; }
.me-head { display: flex; align-items: center; gap: 14px; }
.me-head .av { width: 64px; height: 64px; font-size: 26px; background: var(--zest); }
.acct { display: flex; align-items: center; gap: 12px; }
.acct .ic { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: var(--leaf-l); font-size: 18px; flex: none; }
.acct.off .ic { background: var(--butter); }
.settings-list { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: 2px 16px; }
.settings-list > * + * { border-top: 1.5px solid var(--line); }
.settings-list a, .settings-list button.item { display: flex; align-items: center; justify-content: space-between; min-height: 56px; text-decoration: none; font-weight: 700; background: none; border: 0; width: 100%; padding: 0; cursor: pointer; text-align: left; }
.settings-list .switch { min-height: 64px; }
.settings-list .switch small { display: block; font-weight: 500; color: var(--ink2); font-size: 13px; }
.mine { display: flex; flex-wrap: wrap; gap: 8px; }
.mine .chip button { background: none; border: 0; padding: 0 0 0 4px; cursor: pointer; font-weight: 900; color: inherit; }

/* tab bar, toast, sheet */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; background: var(--white); border-top: 1.5px solid var(--line); padding: 6px 8px calc(6px + var(--safe-b)); }
.tabbar a { flex: 1; max-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; text-decoration: none; color: var(--ink2); padding: 6px 2px; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--night); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.6; }
.tabbar a.log { position: relative; }
.tabbar a.log .plus { width: 58px; height: 58px; border-radius: 99px; background: var(--zest); display: grid; place-items: center; margin-top: -26px; box-shadow: 0 4px 0 var(--rind), 0 8px 18px rgba(234, 182, 15, .35); color: var(--night); }
.tabbar a.log .plus svg { width: 28px; height: 28px; stroke-width: 3; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + var(--safe-b)); background: var(--night); color: var(--pith); padding: 12px 18px; border-radius: 16px; font-weight: 700; z-index: 30; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.sheet-wrap { position: fixed; inset: 0; background: rgba(31, 26, 10, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 40; }
.sheet { background: var(--pith); width: 100%; max-width: 480px; border-radius: 28px 28px 0 0; padding: 24px 16px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.sheet h2 { font-size: 24px; }
.sheet p { color: var(--ink2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* polish pass 2 */
.ok { color: var(--leaf); font-weight: 700; font-size: 14px; }
.icon-btn.ghosty { visibility: hidden; }
.welcome .topbar .link-btn { padding: 10px 0; }
.ob0 .body { align-items: center; text-align: center; }
.ob0 .lead { max-width: 320px; }
.ob-title { font-size: 26px; max-width: 300px; }
.hero h1 { font-size: 40px; }
.hero .btn { align-self: flex-start; margin-top: 12px; }
.hero > div { position: relative; z-index: 1; }
.hero .sub { max-width: 60%; }
.date-hero { min-height: 250px; }
.date-hero .rating-big .slices { color: inherit; }
.hero.night .rating-big .nm, .hero.night h1 a { color: var(--pith); }
.rating-big .sub { max-width: 60%; }
.end-hero { min-height: 170px; }
.end-hero > .zest { width: 130px; bottom: -10px; }
.end-hero .btn { pointer-events: none; }
.date-card .meta { display: block; }
.flagcount { display: flex; gap: 6px; margin-top: 4px; }
.flagcount b { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.flagcount .r { background: var(--danger-l); color: var(--danger); }
.flagcount .g { background: var(--leaf-l); color: #2C6B2F; }
.date-card .av { width: 48px; height: 48px; }
.av.xl { width: 72px; height: 72px; font-size: 30px; }
.person-head h1 { font-size: 38px; }
.circle .av { box-shadow: 0 0 0 3px var(--pith), 0 0 0 6px var(--ring, transparent); }
.nudge > div { flex: 1; }
.acct.off, .card.acct { flex-direction: row; align-items: center; }
.acct .ic { color: var(--leaf); }
.acct .ic svg { width: 22px; height: 22px; }
.acct.off .ic { color: var(--rind); }
.settings-list .field.inline { padding: 14px 0; }
.settings-list .field.inline input { padding: 12px 14px; font-size: 16px; }
.settings-list .file-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-weight: 700; cursor: pointer; }
.settings-list .item svg, .settings-list .file-row svg { color: var(--ink2); }
.say .small { font-size: 14px; font-weight: 600; }
.say em { font-style: normal; font-weight: 800; }
.account .seg2 { margin-top: 4px; }
.account form { gap: 14px; }
.privacy-note { background: var(--butter); }
.ticks { margin: 0; padding: 0; }
.hero h1 { max-width: 66%; overflow-wrap: anywhere; }
.gentle-screen .hero h1 { font-size: 32px; }

/* ============ bold pass: hot pink + yellow, chunky ink edges, more Zest ============ */
:root { --pink: #FF5FA2; --pink-d: #E8448B; --ink: #1F1A0A; --rose: #FF5FA2; --edge: 0 0 0 2.5px var(--ink); }
h1, .big-word, .wordmark { letter-spacing: -.045em; }
.wordmark { font-size: 34px; }

/* buttons: yellow with a chunky ink edge, like a sticker */
.btn.primary { background: var(--zest); color: var(--ink); box-shadow: 0 0 0 2.5px var(--ink), 0 4px 0 2.5px var(--ink); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 0 0 2.5px var(--ink), 0 1px 0 2.5px var(--ink); }
.btn.pink { background: var(--pink); color: var(--ink); box-shadow: 0 0 0 2.5px var(--ink), 0 4px 0 2.5px var(--ink); }
.btn.dark { background: var(--ink); color: var(--zest); }

/* marker highlight behind a word, and sticker tags */
.hl { display: inline-block; background: var(--zest); color: var(--ink); padding: 0 .22em; border-radius: .2em; transform: rotate(-2deg); }
.hl.pink { background: var(--pink); }
.tag { align-self: flex-start; display: inline-flex; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; background: var(--ink); color: var(--zest); padding: 5px 10px; border-radius: 99px; }
.sticker { position: absolute; z-index: 2; background: #fff; color: var(--ink); border-radius: 99px; padding: 6px 12px; font-weight: 800; font-size: 13px; box-shadow: var(--edge); white-space: nowrap; }

/* heroes: pink, green, night, white. Never yellow behind Zest. */
.hero { box-shadow: none; }
.hero.pink { background: var(--pink); color: var(--ink); }
.hero.green { background: var(--leaf); color: #FFFBEA; }
.hero.green .eyebrow, .hero.green .status { color: var(--zest); }
.hero.green .sub { color: rgba(255, 251, 234, .85); }
.hero.white { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.hero.pink .sub, .hero.white .sub { color: var(--ink); font-weight: 600; }
.hero.pink .status { color: var(--ink); }
.hero.night .tag, .hero.green .tag { background: var(--zest); color: var(--ink); }
.hero .big { font-size: 96px; }
.hero > .zest { cursor: pointer; }
.hero.butter { background: #fff; box-shadow: inset 0 0 0 2.5px var(--ink); }

/* Zest is never still: a squashy bob from the feet, and a squish when tapped */
.zest { -webkit-tap-highlight-color: transparent; }
.zest svg { transform-origin: 50% 92%; }
.hero > .zest svg, .ob-hero .zest svg, .bob svg { animation: bob 2.4s ease-in-out infinite; }
.zest.squish svg { animation: squish .32s ease-out; }
@keyframes bob { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(1.04, .93); } 60% { transform: scale(.97, 1.05) translateY(-4px); } }
@keyframes squish { 0% { transform: scale(1, 1); } 35% { transform: scale(1.14, .82); } 70% { transform: scale(.94, 1.08); } 100% { transform: scale(1, 1); } }
.zest-bubble { position: fixed; z-index: 45; background: #fff; color: var(--ink); border-radius: 20px; padding: 12px 14px; font-weight: 800; font-size: 15px; line-height: 1.3; text-align: center; box-shadow: 0 0 0 2.5px var(--ink), 0 4px 0 2.5px var(--ink); pointer-events: none; animation: pop .18s ease-out; }
.zest-bubble.out { opacity: 0; transition: opacity .3s; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 44; overflow: hidden; }
.confetti i { position: absolute; top: -50px; display: block; animation: fall linear forwards; }
.confetti svg { width: 100%; height: 100%; display: block; }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }

/* onboarding: pink, white circle behind Zest */
.welcome { background: var(--pink); }
.welcome .flow .bottom::before, .welcome .bottom::before { background: linear-gradient(to bottom, rgba(255, 95, 162, 0), var(--pink) 40%); }
.welcome .eyebrow { color: var(--ink); }
.welcome .lead, .welcome .hint, .welcome .muted { color: var(--ink); }
.welcome .dots span { background: rgba(31, 26, 10, .22); }
.welcome .dots span.on { background: var(--ink); }
.welcome .how .card, .welcome .ticks li { box-shadow: var(--edge); }
.welcome .field input { border-color: var(--ink); }
.ob-hero { background: #fff; box-shadow: var(--edge); position: relative; }
.ob-hero .sticker.a { left: -8px; top: 18%; transform: rotate(-8deg); }
.ob-hero .sticker.b { right: -10px; bottom: 14%; transform: rotate(6deg); background: var(--ink); color: var(--zest); box-shadow: none; }
.big-word { font-size: 104px; }

/* cards and lists get a touch more attitude */
.say { background: #fff; box-shadow: var(--edge); }
.say.soft { background: var(--blush); box-shadow: none; }
.nudge { box-shadow: none; }
.nudge .btn.primary { background: var(--pink); }
.circle .av { box-shadow: 0 0 0 3px var(--pith), 0 0 0 6px var(--ring, transparent); }
.circle.add .av { box-shadow: inset 0 0 0 2.5px var(--ink); }
.pep { background: var(--pink); border-radius: var(--r); padding: 16px; display: flex; gap: 12px; align-items: center; color: var(--ink); }
.pep .zest { width: 76px; flex: none; }
.pep p { font-weight: 800; font-size: 16.5px; line-height: 1.3; }
.pep ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pep li { background: #fff; border-radius: 99px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; }
.jar { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--edge); border: 0; width: 100%; text-align: left; cursor: pointer; color: var(--ink); }
.jar .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--zest); display: grid; place-items: center; flex: none; box-shadow: var(--edge); }
.jar strong { display: block; font-size: 16px; }
.jar span { font-size: 13.5px; color: var(--ink2); }
.idea { font: 900 26px/1.1 var(--fd); letter-spacing: -.03em; color: var(--ink); }

/* rating: big reactions */
.log.rate-sour { background: var(--ink); color: var(--pith); }
.log.rate-sour .eyebrow { color: var(--zest); }
.log.rate-sour .icon-btn { background: rgba(255, 255, 255, .1); color: var(--pith); box-shadow: none; }
.log.rate-sour .flow .bottom::before, .log.rate-sour .bottom::before { background: linear-gradient(to bottom, rgba(31, 26, 10, 0), var(--ink) 40%); }
.log.rate-sour .heart-row { background: rgba(255, 255, 255, .08); color: var(--pith); }
.log.rate-sour .link-btn { color: var(--pith); }
.log.rate-sour .dots span.on { background: var(--zest); }
.log.rate-pink { background: var(--pink); }
.log.rate-pink .eyebrow { color: var(--ink); }
.log.rate-pink .bottom::before { background: linear-gradient(to bottom, rgba(255, 95, 162, 0), var(--pink) 40%); }
.log .rate-card { box-shadow: 0 0 0 2.5px var(--ink), 0 5px 0 2.5px var(--ink); color: var(--ink); }
.rate-name strong { display: inline-block; padding: 2px 10px; border-radius: 10px; transform: rotate(-2deg); }
.rate-name strong.on { background: var(--zest); }
.log.rate-sour .rate-name strong.on { background: var(--pink); }
.log.rate-pink .say { box-shadow: var(--edge); }

/* tab bar: ink edge, pink marker for the current tab, chunky plus */
.tabbar { border-top: 2.5px solid var(--ink); }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before { content: ""; width: 26px; height: 5px; border-radius: 9px; background: var(--pink); margin-bottom: 1px; }
.tabbar a.log .plus { box-shadow: 0 0 0 2.5px var(--ink), 0 4px 0 2.5px var(--ink); }
.tabbar a.log[aria-current="page"]::before { display: none; }

/* Wrapped: full-screen stories */
.story { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; padding: calc(12px + var(--safe-t)) 18px calc(22px + var(--safe-b)); gap: 12px; overflow: hidden; color: var(--ink); background: var(--pink); }
.story.dark { color: #FFFBEA; }
.story .bars { display: flex; gap: 5px; }
.story .bars span { flex: 1; height: 5px; border-radius: 9px; background: currentColor; opacity: .25; }
.story .bars span.on { opacity: 1; }
.story .top { display: flex; justify-content: space-between; align-items: center; }
.story .top .wm { font: 900 22px/1 var(--fd); letter-spacing: -.05em; }
.story .top button { width: 40px; height: 40px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .85); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.story .tag { margin-top: 34px; transform: rotate(-3deg); }
.story .big { font: 900 62px/.92 var(--fd); letter-spacing: -.05em; overflow-wrap: anywhere; position: relative; z-index: 1; }
.story .small-line { font-weight: 800; font-size: 19px; line-height: 1.3; max-width: 92%; position: relative; z-index: 1; }
.story > .zest { position: absolute; right: -10px; bottom: 90px; width: 220px; }
.story .tapzones { position: absolute; inset: 120px 0 90px; display: grid; grid-template-columns: 1fr 2fr; z-index: 0; }
.story .tapzones button { background: none; border: 0; cursor: pointer; }
.story .foot { margin-top: auto; display: flex; gap: 10px; position: relative; z-index: 2; }
.story .foot .btn { flex: 1; }
.grades { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; max-width: 70%; }
.grades div { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .9); color: var(--ink); border-radius: 16px; padding: 8px 12px; }
.grades b { font: 900 26px/1 var(--fd); min-width: 42px; }
.grades span { font-size: 13px; font-weight: 700; line-height: 1.25; }
.grades em { display: block; font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; opacity: .7; }
.wrap-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wrap-pick a { min-height: 120px; border-radius: 24px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; font-weight: 800; box-shadow: var(--edge); }
.wrap-pick a strong { font: 900 26px/1 var(--fd); letter-spacing: -.03em; }

/* share card style picker */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.styles button { border: 0; border-radius: 16px; min-height: 52px; font-weight: 800; background: #fff; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; color: var(--ink); }
.styles button[aria-pressed="true"] { background: var(--pink); box-shadow: var(--edge); }

/* after midnight: dark plum, Zest gets suspicious */
body.midnight { --pith: #23091A; --white: #34122A; --night: #FFEFF6; --ink2: #E7B9CE; --line: #4B1F3B; --butter: #3E1733; --blush: #4B1F3B; --leaf-l: #2D3A22; --danger-l: #4B1F3B; --shadow: none; background: var(--pith); color: var(--night); }
body.midnight .tabbar { background: #2C0E22; border-top-color: var(--pink); }
body.midnight .tabbar a[aria-current="page"] { color: #fff; }
body.midnight .say { background: var(--white); box-shadow: 0 0 0 2px var(--pink); }
body.midnight .icon-btn { color: var(--night); }
body.midnight .eyebrow, body.midnight .k { color: var(--pink); }
body.midnight .hero .eyebrow { color: var(--ink); }
body.midnight .hero.night { background: #000; }
body.midnight .chip { color: var(--night); }
body.midnight .flow .bottom::before { background: linear-gradient(to bottom, rgba(35, 9, 26, 0), var(--pith) 40%); }
body.midnight .jar { background: var(--white); color: var(--night); box-shadow: 0 0 0 2px var(--pink); }
.midnight-note { display: none; }
body.midnight .midnight-note { display: flex; }

@media (prefers-reduced-motion: reduce) { .zest svg, .zest.squish svg { animation: none !important; } .zest-bubble { animation: none; } }
.log.rating [data-face] { width: 116px; }
body.midnight .tabbar a.log .plus { color: var(--ink); }

/* Wrapped extras: bar chart and podium on story slides */
.story .chart { display: grid; gap: 10px; margin-top: 18px; max-width: 70%; position: relative; z-index: 1; pointer-events: none; }
.story .chart div { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }
.story .chart span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chart i { height: 18px; border-radius: 99px; background: rgba(0,0,0,.12); position: relative; overflow: hidden; }
.story .chart i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--yellow, #FFD83B); border-radius: 99px; box-shadow: inset 0 0 0 2px var(--ink); }
.story.dark .chart i { background: rgba(255,255,255,.18); }
.story .chart b { text-align: right; }
.story .podium { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; max-width: 72%; counter-reset: p; position: relative; z-index: 1; pointer-events: none; }
.story .podium li { counter-increment: p; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--edge); }
.story .podium li::before { content: counter(p); font: 900 24px var(--fd); width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center; background: var(--pink); color: #fff; flex: none; }
.story .podium li:first-child::before { background: #FFD83B; color: var(--ink); }
.story .podium b { font: 900 18px var(--fd); flex: 1; }
.story .podium span { font-weight: 700; font-size: 13px; opacity: .75; }

/* Polish pass, 6 Nov: keep words clear of Zest, readable tags on dark stories, long headlines shrink */
.hero .big small { max-width: 62%; }
.date-hero .rating-big { max-width: 60%; position: relative; z-index: 1; }
.date-hero .rating-big .nm { font-size: 30px; line-height: 1; }
.date-hero h1 { max-width: 64%; }
.story.dark .tag { background: var(--zest); color: var(--ink); }
.story .big.long { font-size: 46px; line-height: .95; }
.story .big.xlong { font-size: 38px; line-height: .98; }
.met-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--pink); color: var(--ink); margin-left: 6px; vertical-align: 2px; letter-spacing: 0; text-transform: none; }
.peek { background: #fff; border-radius: var(--r-lg); padding: 16px; box-shadow: inset 0 0 0 2.5px var(--ink); margin-top: 14px; }
.peek h2 { margin-bottom: 10px; }
.peek .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.peek .grid div { background: var(--pith); border-radius: 16px; padding: 12px; }
.peek .grid b { display: block; font: 900 24px/1 var(--fd); letter-spacing: -.03em; overflow-wrap: anywhere; }
.peek .grid span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.peek .grid div:nth-child(1) { background: var(--zest); }
.peek .grid div:nth-child(4) { background: var(--pink); }

/* ============ the mix (6 Nov): gossip mag on white, flat colour blocks, no outlines, no hard shadows ============
   Rules from Bethan: no black outlines, no shadow bits on buttons, Zest always on a pure white circle. */
:root { --paper: #F7F2E8; --blush2: #FFF0F6; --edge: none; --shadow: none; }
body { background: #fff; }
.flow .bottom::before { background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 40%); }

/* flat buttons and controls: no ink edges, no offset shadows */
.btn { box-shadow: none; background: var(--paper); }
.btn.primary, .btn.pink { box-shadow: none; }
.btn.primary:active, .btn.pink:active { box-shadow: none; transform: scale(.98); }
.btn.pink { background: var(--pink); }
.btn.ghost { background: rgba(255, 255, 255, .14); color: inherit; }
.icon-btn { box-shadow: none; background: var(--paper); }
.chip { box-shadow: none; background: var(--paper); }
.chip.add { box-shadow: none; background: transparent; outline: 2px dashed #D9CFBC; outline-offset: -2px; }
.chips.red .chip[aria-pressed="true"], .chips.red .chip.on { box-shadow: none; background: var(--pink); color: var(--ink); }
.chips.green .chip[aria-pressed="true"], .chips.green .chip.on { box-shadow: none; background: var(--leaf); color: #FFFBEA; }
.field input, .field textarea { border: 0; background: var(--paper); }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px var(--pink); }
.endings button, .heart-row { box-shadow: none; background: var(--paper); }
.heart-row[aria-pressed="true"] { box-shadow: none; background: var(--blush2); }
.heart-row .tick { box-shadow: none; background: #fff; }
.card, .date-card, .stats3 > div, .toggles, .settings-list, .ticks li, .rate-card, .card-preview canvas { box-shadow: none; }
.card, .settings-list, .toggles { background: var(--paper); }
.log .rate-card { box-shadow: none; }
.styles button { box-shadow: none; background: var(--paper); }
.styles button[aria-pressed="true"] { box-shadow: none; }
.wrap-pick a { box-shadow: none; }
.story .podium li { box-shadow: none; }
.zest-bubble { box-shadow: 0 10px 30px rgba(26, 11, 16, .18); }
.jar { box-shadow: none; background: var(--paper); }
.jar .ic { box-shadow: none; }
.sticker { box-shadow: none; }
.say { box-shadow: none; background: var(--blush2); border-radius: 20px; }
.log.rate-pink .say { box-shadow: none; background: #fff; }
.tabbar { border-top: 0; box-shadow: 0 -1px 0 #F0E6EA; }
.tabbar a.log .plus { box-shadow: none; }
.hero.white, .hero.butter { box-shadow: none; background: var(--blush2); }
.sheet { box-shadow: none; }

/* masthead, kickers, rules */
.mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 2px; }
.mast .m { font: 900 46px/.8 var(--fd); letter-spacing: -.07em; color: var(--pink); text-decoration: none; }
.mast .k { font-size: 10.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-align: right; margin: 0; line-height: 1.5; }
.rule { height: 4px; background: var(--pink); border-radius: 9px; margin-top: -4px; }
.kicker { font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); margin: 6px 0 -4px; display: block; }
.title { font: 900 46px/.95 var(--fd); letter-spacing: -.05em; }
.navrow { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.navrow .link-btn { font-weight: 800; padding: 8px 0; }

/* cover story: a flat colour block, Zest on a white circle in the corner */
.cover { position: relative; overflow: hidden; border-radius: 26px; padding: 18px 18px 20px; min-height: 236px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-decoration: none; color: var(--ink); background: var(--pink); }
.cover.pink { background: var(--pink); }
.cover.green { background: var(--leaf); color: #FFFBEA; }
.cover.night { background: var(--night); color: #FFFBEA; }
.cover.soft { background: var(--blush2); }
.cover .tag { background: var(--ink); color: var(--zest); }
.cover.green .tag, .cover.night .tag { background: var(--zest); color: var(--ink); }
.cover .headline { font: 900 40px/.95 var(--fd); letter-spacing: -.05em; max-width: 64%; position: relative; z-index: 1; overflow-wrap: anywhere; }
.cover .headline a { text-decoration: none; }
.cover .headline.fit { font-size: 31px; overflow-wrap: normal; }
.cover .tag .emo { font-size: 14px; }
.cover .sub { font-weight: 800; font-size: 14.5px; line-height: 1.35; max-width: 58%; position: relative; z-index: 1; }
.cover .nm { font: 900 30px/1 var(--fd); letter-spacing: -.04em; position: relative; z-index: 1; }
.cover .slices { position: relative; z-index: 1; }
.cover .btn { position: relative; z-index: 1; margin-top: auto; }
.cover .hl { transform: rotate(-2deg); }
.cover.pink .hl.pink { background: #fff; }
.disc { position: absolute; right: -26px; bottom: -26px; width: 178px; height: 178px; border-radius: 999px; background: #fff; display: grid; place-items: center; }
.disc .zest { width: 132px; margin: -10px 18px 0 0; }
.disc .zest svg { animation: bob 2.4s ease-in-out infinite; }
.cover:active { transform: scale(.99); }

/* In other news: numbered rows with a rating chip */
.newslist { display: flex; flex-direction: column; }
.news { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1.5px solid #F0E6EA; text-decoration: none; color: var(--ink); background: none; border-radius: 0; }
.news:last-child { border-bottom: 0; }
.news .n { font: 900 28px/1 var(--fd); letter-spacing: -.05em; color: var(--pink); width: 28px; flex: none; }
.news .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.news strong { font: 900 19px/1.1 var(--fd); letter-spacing: -.03em; }
.news .meta { font-size: 12.5px; font-weight: 600; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news .mini-heart svg { width: 14px; height: 14px; vertical-align: -2px; }
.news.gentle strong { font-family: var(--f); font-weight: 800; }
.news.crossed strong { text-decoration: line-through; text-decoration-thickness: 4px; text-decoration-color: var(--pink); }
.rchip { font-size: 12px; font-weight: 900; padding: 6px 10px; border-radius: 99px; white-space: nowrap; flex: none; }
.rchip.pink { background: var(--pink); color: var(--ink); }
.rchip.green { background: var(--leaf); color: #FFFBEA; }
.rchip.night { background: var(--night); color: #FFFBEA; }
.rchip.soft { background: var(--paper); color: var(--ink2); }

/* the line-up: colour tiles with a big initial */
.lineup, .wrap-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { border-radius: 24px; padding: 14px 14px 16px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
.tile .ini { font: 900 60px/.8 var(--fd); letter-spacing: -.05em; margin-bottom: auto; }
.tile strong { font: 900 20px/1.05 var(--fd); letter-spacing: -.04em; overflow-wrap: anywhere; }
.tile .meta { font-size: 12px; font-weight: 700; line-height: 1.35; }
.tile .kicker { margin: 0 0 auto; color: inherit; }
.wrap-pick .tile { min-height: 132px; }
.wrap-pick .tile strong { font-size: 26px; }
.tile.pink { background: var(--pink); }
.tile.green { background: var(--leaf); color: #FFFBEA; }
.tile.night { background: var(--night); color: #FFFBEA; }
.tile.soft { background: var(--blush2); }
.tile.soft .ini { color: var(--pink); }
.tile .hl { transform: none; font-weight: 900; }

/* Wrapped cover */
.wcover { min-height: 270px; }
.wcover .bars { display: flex; gap: 4px; width: 100%; }
.wcover .bars i { flex: 1; height: 5px; border-radius: 9px; background: #FFFBEA; opacity: .3; }
.wcover .bars i:first-child { opacity: 1; }
.wcover .yr { font: 900 88px/.85 var(--fd); letter-spacing: -.06em; position: relative; z-index: 1; }
.wcover .disc { width: 168px; height: 168px; }

/* stats and the status box on a person */
.stats3 > div { background: var(--paper); border-radius: 18px; }
.stats3 > div.y { background: var(--zest); }
.stats3 > div.n { background: var(--night); color: #FFFBEA; }
.stats3 > div.n .k { color: rgba(255, 251, 234, .75); }
a.say { text-decoration: none; color: var(--ink); }
.say .link-btn { padding: 0; font-size: inherit; }
.end-line { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); padding: 4px 0 6px; }
.end-line .kicker { margin: 0; color: var(--ink); }
.end-line strong { font: 900 22px/1.1 var(--fd); letter-spacing: -.03em; }
.end-line .link-btn { padding: 0; font-size: 14px; align-self: flex-start; }

/* outfit of the day */
.ootd { margin: 0; align-self: flex-start; background: #fff; padding: 10px 10px 8px; border-radius: 6px; transform: rotate(-2deg); box-shadow: 0 8px 26px rgba(26, 11, 16, .14); max-width: 62%; }
.ootd img { display: block; width: 100%; border-radius: 3px; }
.ootd figcaption { font: 900 14px/1 var(--fd); letter-spacing: -.02em; text-align: center; margin-top: 8px; }
.ootd-pick { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ootd-pick img { width: 46%; border-radius: 12px; }
.ootd-pick .row { display: flex; gap: 12px; align-items: center; }
.ootd-pick label.btn { cursor: pointer; }
.story .fit { width: 54%; border-radius: 6px; background: #fff; padding: 8px; transform: rotate(-3deg); box-shadow: 0 10px 30px rgba(26, 11, 16, .2); position: relative; z-index: 1; }

/* onboarding as stories */
.obs { min-height: 100dvh; position: relative; overflow: hidden; padding: calc(12px + var(--safe-t)) 20px calc(22px + var(--safe-b)); gap: 12px; }
.obs.pink { background: var(--pink); color: var(--ink); }
.obs.white { background: #fff; color: var(--ink); }
.obs.night { background: var(--night); color: #FFFBEA; }
.obs.green { background: var(--leaf); color: #FFFBEA; }
.obs .bars { display: flex; gap: 5px; }
.obs .bars span { flex: 1; height: 5px; border-radius: 9px; background: currentColor; opacity: .28; }
.obs .bars span.on { opacity: 1; }
.obs .top { display: flex; justify-content: space-between; align-items: center; }
.obs .wm { font: 900 22px/1 var(--fd); letter-spacing: -.05em; }
.obs .link-btn { color: inherit; font-weight: 800; }
.obs .tag { margin-top: 26px; transform: rotate(-3deg); }
.obs.night .tag, .obs.green .tag { background: var(--zest); color: var(--ink); }
.obs .big { font: 900 62px/.9 var(--fd); letter-spacing: -.05em; position: relative; z-index: 1; }
.obs .big2 { font: 900 38px/1 var(--fd); letter-spacing: -.05em; }
.obs .small-line { font-weight: 800; font-size: 18px; line-height: 1.35; max-width: 80%; position: relative; z-index: 1; }
.obs .demo { display: flex; flex-direction: column; gap: 6px; }
.obs .demo .pinkt { color: var(--pink); font-weight: 800; }
.obs .say.plain { max-width: 70%; }
.obs .say.plain .zest { display: none; }
.obs .nicks { display: flex; flex-wrap: wrap; gap: 8px; max-width: 86%; }
.obs .nicks span { font-weight: 800; font-size: 14px; padding: 9px 13px; border-radius: 99px; background: #fff; color: var(--ink); }
.obs .nicks .p { background: var(--pink); }
.obs .nicks .g { background: var(--leaf); color: #FFFBEA; }
.obs .field span { color: inherit; }
.obs .field input { background: #fff; color: var(--ink); font-size: 20px; font-weight: 800; }
.obs .ob-disc { position: relative; right: auto; bottom: auto; align-self: flex-end; margin: auto -40px -8px 0; width: 220px; height: 220px; flex: none; }
.obs .ob-disc .zest { width: 172px; margin: -14px 26px 0 0; }
.obs .big { font-size: clamp(44px, 14vw, 62px); }
.obs .foot { margin-top: 12px; }
.obs .say.plain { max-width: 100%; }
.obs .foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 2; }
.obs .count { font-weight: 800; font-size: 13px; opacity: .85; }
.obs .tapback { position: absolute; left: 0; top: 90px; bottom: 140px; width: 28%; background: none; border: 0; z-index: 0; cursor: pointer; }

/* after midnight keeps the plum night look */
body.midnight .mast .k, body.midnight .news, body.midnight .end-line, body.midnight a.say { color: var(--night); }
body.midnight .say { background: var(--white); box-shadow: none; }
body.midnight .tile.soft, body.midnight .cover.soft { background: var(--white); color: var(--night); }
body.midnight .rchip.soft, body.midnight .card, body.midnight .jar, body.midnight .chip, body.midnight .btn:not(.primary):not(.dark) { background: var(--white); }
body.midnight .cover.night, body.midnight .tile.night, body.midnight .rchip.night, body.midnight .obs.night { background: #2B0F3F; color: #FFFBEA; }
@media (prefers-reduced-motion: reduce) { .disc .zest svg { animation: none; } }

/* Option B (6 Nov): a bit less pink. Covers stay pink; tiles, chat boxes and rules go cream and dark */
.tile.pink { background: var(--paper); }
.tile.pink .ini { color: var(--pink); }
.tile.soft { background: #fff; box-shadow: inset 0 0 0 2px var(--paper); }
.rule { background: var(--ink); height: 3px; }
.news .n { color: var(--ink); }
.rchip.pink { background: var(--blush2); color: var(--ink); }
.say { background: var(--paper); }

/* Next batch (6 Nov): emojis, side eye, just-for-me photos, back issues */
.emo { font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-weight: 400; letter-spacing: 0; }
.tile .ini.is-emo { font: 400 52px/1 system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.tile .eye { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 900; background: #fff; color: var(--ink); padding: 4px 8px; border-radius: 99px; }
.navrow .row { display: flex; gap: 16px; }
.side-eye { background: var(--night); color: #FFFBEA; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 6px 0 4px; }
.emoji-grid button { font-size: 26px; line-height: 1; padding: 9px 0; border-radius: 14px; background: var(--paper); border: 0; }
.emoji-grid button[aria-pressed="true"] { background: var(--zest); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid figure { margin: 0; position: relative; aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.photo-grid .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-weight: 900; line-height: 1; }
.add-photo { aspect-ratio: 1; border-radius: 12px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-weight: 800; }
.add-photo .plus { font: 900 34px/1 var(--fd); }
.extras-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--paper); color: var(--ink); text-decoration: none; }
.extras-card .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.extras-card strong { font-size: 16px; }
.extras-card .meta { font-size: 13px; opacity: .7; }
.extras-card .thumbs { display: flex; flex: none; }
.extras-card .thumbs img { width: 52px; height: 64px; object-fit: cover; border-radius: 6px; border: 3px solid #fff; margin-left: -14px; transform: rotate(-4deg); }
.extras-card .thumbs img:nth-child(2) { transform: rotate(3deg); }
.extras-card .plus { font: 900 34px/1 var(--fd); color: var(--pink); }
.scrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; align-items: start; }
.scrap .ootd { max-width: 100%; }
.scrap .ootd:nth-child(3n+2) { transform: rotate(2.5deg); margin-top: 18px; }
.scrap .ootd:nth-child(3n) { transform: rotate(-1deg); }
.scrap .ootd.pic img { aspect-ratio: 1; object-fit: cover; }
body.midnight .extras-card, body.midnight .add-photo, body.midnight .emoji-grid button { background: rgba(255,255,255,.08); color: inherit; }

/* Test fixes (6 Nov): emoji everywhere, rematch, on this day, eye-roll */
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.emoji-row .em { font-size: 22px; line-height: 1; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--paper); }
.emoji-row .em[aria-pressed="true"] { background: var(--zest); }
.emoji-row .em-own { width: 64px; height: 44px; border-radius: 12px; border: 0; background: var(--paper); text-align: center; font-size: 18px; }
.chip .emo { margin-right: 4px; }
.em-pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 7px 12px; background: #fff; color: var(--ink); font: 800 13px/1 var(--fb, inherit); }
.em-pill .emo { font-size: 16px; }
.tile .addem { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 900; padding: 4px 8px; border-radius: 99px; background: #fff; color: var(--ink); opacity: .85; }
.tile .eye + .addem, .tile .addem + .eye { top: 40px; }
.rematch { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: 20px; background: var(--paper); }
.rematch .arrow { font-size: 18px; }
.rematch .arrow strong { font: 900 24px/1 var(--fd); }
.rematch .meta { font-weight: 800; opacity: .75; }
.otd { display: block; padding: 14px 16px; border-radius: 20px; background: var(--night); color: #FFFBEA; text-decoration: none; }
.otd .kicker { color: var(--zest); }
.otd p { margin: 6px 0 0; font-weight: 800; line-height: 1.35; }
.sheet.eyeroll { text-align: center; align-items: center; }
.sheet.eyeroll .zest { width: 150px; margin: 0 auto; }
.sheet.eyeroll h2 { font-size: 22px; line-height: 1.2; }
.archive .lead { margin: -4px 0 4px; opacity: .75; }

/* Podium steps take the same colour as the rating chip */
.step.pink { background: var(--pink); color: var(--ink); }
.step.green { background: var(--leaf); color: #FFFBEA; }
.step.night { background: var(--night); color: #FFFBEA; }
.pod .rchip.pink { background: var(--blush2); }
body.midnight .step.night { background: #2B0F3F; }

/* The podium on the diary (and in Wrapped): 2nd · 1st · 3rd */
.podium-row { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 8px; margin-top: 2px; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--ink); min-width: 0; }
.pod .medal { font-size: 20px; line-height: 1; font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.pod .who { width: 54px; height: 54px; border-radius: 99px; background: var(--paper); display: grid; place-items: center; font: 900 26px/1 var(--fd); color: var(--pink); }
.pod .who.is-emo { font: 400 30px/1 system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.pod.p1 .who { width: 64px; height: 64px; }
.pod strong { font: 900 15px/1.05 var(--fd); letter-spacing: -.03em; overflow-wrap: anywhere; max-width: 100%; }
.pod.p1 strong { font-size: 17px; }
.pod strong.crossed { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--pink); }
.pod .rchip { font-size: 10.5px; padding: 4px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pod .step { width: 100%; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; margin-top: 4px; height: 58px; }
.pod.p1 .step { height: 100px; }
.pod.p2 .step { height: 76px; }
.pod .step b { font: 900 36px/1 var(--fd); letter-spacing: -.05em; }
.pod.p1 .step b { font-size: 48px; }
.pod:active { transform: scale(.97); }
.pod-say { margin-top: 2px; }
.story-pod { position: relative; z-index: 1; margin-top: 10px; pointer-events: none; }
.story-pod .who { background: #fff; box-shadow: inset 0 0 0 2px var(--paper); }
.story:has(.story-pod) > .zest { width: 130px; bottom: 76px; }
body.midnight .pod, body.midnight .pod .who { color: var(--night); }

/* Every date, ever: sort + filter chips */
.filters { display: flex; flex-direction: column; gap: 8px; }
.sortseg { display: inline-flex; align-self: flex-start; background: var(--paper); border-radius: 99px; padding: 3px; }
.sortseg button { border: 0; background: none; padding: 8px 14px; border-radius: 99px; font-weight: 800; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.sortseg button[aria-pressed="true"] { background: var(--ink); color: #FFFBEA; }
.frow { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 99px; border: 0; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 13px; cursor: pointer; }
.fchip .c { font-weight: 700; opacity: .6; }
.fchip[aria-pressed="true"] { background: var(--ink); color: #FFFBEA; }
.fchip[aria-pressed="true"] .c { opacity: .85; }
.filters .clear { align-self: flex-start; padding: 2px 0; font-size: 13px; }
body.midnight .fchip:not([aria-pressed="true"]), body.midnight .sortseg { background: var(--white); color: var(--night); }
body.midnight .sortseg button { color: var(--night); }

/* Wrapped round 2 (6 Nov): fewer, fuller slides. Stats sit as tilted stickers (flat, no outlines) */
.story .stickers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; max-width: 78%; position: relative; z-index: 1; pointer-events: none; }
.story .stk { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 11px; border-radius: 18px; min-width: 96px; max-width: 100%; }
.story .stk b { font: 900 30px/1 var(--fd); letter-spacing: -.04em; overflow-wrap: anywhere; }
.story .stk span { font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.story .stk.r0 { transform: rotate(-3deg); }
.story .stk.r1 { transform: rotate(2.5deg); margin-top: 8px; }
.story .stk.r2 { transform: rotate(-1.5deg); }
.stk.k-white { background: #fff; color: var(--ink); }
.stk.k-ink { background: var(--ink); color: #FFFBEA; }
.stk.k-zest { background: var(--zest); color: var(--ink); }
.stk.k-pink { background: var(--pink); color: var(--ink); }
.story.dark .stk.k-ink { background: #FFFBEA; color: var(--ink); }
.story .big .sl { display: inline-block; margin-top: 8px; }
.story .grades { position: relative; z-index: 1; }

/* Round 2 (6 Nov): home order, the archive card, the cast, filter labels */
.sec-title { font: 900 30px/1 var(--fd); letter-spacing: -.05em; margin: 0 0 2px; }
.pod.empty { opacity: .55; }
.pod.empty .who { color: var(--ink2); }
.pod.empty .step { background: var(--paper); color: var(--ink2); }
.archive-link { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 52px 16px 18px; border-radius: 22px; background: var(--pink); color: var(--ink); text-decoration: none; }
.archive-link .kicker { color: var(--ink); margin: 0; }
.archive-link strong { font: 900 28px/1 var(--fd); letter-spacing: -.05em; }
.archive-link .meta { font-size: 13px; font-weight: 700; }
.archive-link .go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 99px; background: #fff; display: grid; place-items: center; font: 900 20px/1 var(--fd); }
.archive-link:active { transform: scale(.99); }
.flabel { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin: 4px 0 -2px; }
.cast-lead { margin: -6px 0 2px; color: var(--ink2); font-weight: 600; }
.tile .status-chip { align-self: flex-start; font-size: 11.5px; font-weight: 900; padding: 4px 9px; border-radius: 99px; background: #fff; color: var(--ink); margin: 3px 0 2px; }
.tile.soft .status-chip { background: var(--paper); }
.news.crossed .mid .meta { white-space: normal; }
.end-hero .from { font-weight: 600; opacity: .75; }
body.midnight .archive-link { color: var(--ink); }
.story .chart i::after { box-shadow: none; }

/* Home (6 Nov, Bethan's pick): A for the top, C for top picks and the archive button */
.newslist.picks .n { color: var(--pink); }
.news.pick .slices { flex: none; }
.arch-btn { display: flex; justify-content: center; gap: 8px; }

/* Every date, ever: filters fold away behind one button (6 Nov) */
.ftop { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ftop .sortseg { align-self: auto; }
.ftoggle { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 10px 14px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 13.5px; cursor: pointer; }
.ftoggle.on { background: var(--ink); color: #FFFBEA; }
.ftoggle .badge { background: var(--pink); color: var(--ink); border-radius: 99px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 11.5px; padding: 0 6px; }
.ftoggle .chev { font-size: 11px; }
.fsum { font-size: 13px; font-weight: 700; color: var(--ink2); margin: -4px 0 0; }
.fsum .link-btn { font-size: 13px; padding: 0; margin-left: 6px; }
body.midnight .ftoggle:not(.on) { background: var(--white); color: var(--night); }
/* ---------- Zest+ (iPhone app): locked bits greyed out, the paywall, the Face ID cover ---------- */
.tabbar a.locked { opacity: .42; position: relative; }
.tabbar a.locked::after { content: "🔒"; position: absolute; top: 2px; right: 22%; font-size: 11px; }
.lockrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--cream); border: 1.5px dashed var(--line); border-radius: var(--r); padding: 12px 14px; margin: 8px 0; font: inherit; color: var(--night); opacity: .7; cursor: pointer; }
.lockrow .grow { flex: 1; display: flex; flex-direction: column; }
.lockrow small { color: var(--ink2); font-size: 13px; font-weight: 500; }
.lockrow .lk { font-size: 18px; }
.lockrow .pill { background: var(--zest); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 800; }
.locked-steps { margin-top: 6px; }
.zplus .zp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.zplus .zp-list li { display: flex; gap: 8px; }
.zp-plans { display: flex; flex-direction: column; gap: 8px; }
.zp-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--white); border: 2.5px solid var(--line); border-radius: 20px; padding: 12px 16px; font: inherit; color: var(--night); cursor: pointer; position: relative; }
.zp-plan[aria-pressed="true"] { border-color: var(--night); background: var(--butter); }
.zp-plan em { position: absolute; top: 10px; right: 12px; font-style: normal; font-size: 12px; font-weight: 800; background: var(--leaf); color: var(--white); border-radius: 99px; padding: 2px 9px; }
.zp-card .row { flex-wrap: wrap; align-items: center; gap: 8px; }
#zlock { position: fixed; inset: 0; z-index: 100; background: var(--pith); display: grid; place-items: center; }
#zlock .zlock-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#zlock .zlock-wm { font: 900 44px/1 var(--fd); letter-spacing: -.045em; margin: 0; }
