/* Theme "Black and white" (user decision 2026-11-09, inspired by Co-Star; replaces "Lemon sky"):
   pure white page, black ink, thin black lines, no colour at all. Say only what is needed; more is
   one tap away. Meaning by SHAPE: supportive ● (filled), mixed ◐ (half), care ○ (outline).
   Line-art celestial dial with real positions. Contrast: black on white 21:1, muted #5e5e5e 6.4:1.
   Motion stops for prefers-reduced-motion. (--lemon is kept as a token name: it is now white.) */
:root {
  color-scheme: light;
  --bg: #ffffff; --card: #ffffff; --ink: #000000; --muted: #5e5e5e; --icon: #5e5e5e;
  --line: rgba(0, 0, 0, .14); --line-strong: rgba(0, 0, 0, .55);
  --neutral-bg: rgba(0, 0, 0, .05);
  --lemon: #ffffff; --on-lemon: #000000;
  --accent: var(--ink); --accent-ink: var(--lemon);
  /* tones: shape carries the meaning; colours stay ink and greys */
  --flow: var(--ink); --flow-bg: var(--ink);
  --friction: var(--ink); --friction-bg: var(--card);
  --intro: var(--muted); --intro-bg: transparent;
  --gold: var(--ink);
  --error: #8f1d1d; --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; color: var(--ink); background: var(--bg); }
body { font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--sans); font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: 1.6rem; margin: .4rem 0 .4rem; }
h2 { font-size: 1.06rem; margin: 1.8rem 0 .6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
           clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main { max-width: 760px; margin: 0 auto; padding: 1rem 16px 2rem; }
.lead { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
a, summary, button.link { color: var(--ink); }

/* ---------- header and navigation ---------- */
.top { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: .5rem;
       padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; font-size: 1.1rem;
         letter-spacing: -.015em; color: var(--ink); }
.brand .mark { width: 22px; height: 22px; }
.beta { font: 11px var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px;
        padding: 0 .45rem; margin-left: .2rem; }
nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.tab { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; background: none; border: 0;
       color: var(--icon); padding: .4rem .7rem; border-radius: 10px; font: inherit; cursor: pointer; }
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7;
           stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tab.on { color: var(--lemon); background: var(--ink); }
.tab.subtle { font-size: .9rem; }
#acct-btn { margin-left: auto; }
.subnav { margin: .2rem 0 1rem; }
@media (max-width: 759px) {
  .top { padding: .55rem 16px; }
  /* a white bottom tab bar: the white mixed into the yellow */
  nav#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid;
            grid-template-columns: repeat(5, 1fr); gap: 0; background: rgba(255, 255, 255, .92);
            -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
            border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  nav#nav .tab { flex-direction: column; gap: .15rem; min-height: 58px; font-size: .72rem; border-radius: 0;
                 padding: .35rem .1rem; justify-content: center; }
  nav#nav .tab svg { width: 23px; height: 23px; }
  nav#nav .tab.on { background: none; color: var(--ink); font-weight: 600; }
  nav#nav .tab.on svg { background: var(--lemon); border-radius: 999px; padding: 2px 14px; box-sizing: content-box; }
  body:has(nav#nav:not([hidden])) { padding-bottom: 76px; }
  .sticky-cta { position: sticky; bottom: 0; z-index: 5; padding: .7rem 0 .9rem;
                background: linear-gradient(to bottom, transparent, var(--bg) 35%); }
  .sticky-cta .primary { width: 100%; }
}

/* ---------- forms ---------- */
form label { display: block; font-size: .9rem; color: var(--muted); margin: .8rem 0 0; }
input[type=text], input[type=date], input[type=time], input[type=number], input[type=email],
input[type=password], select, textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); }
input:focus, select:focus, textarea:focus, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px; }
.row { display: grid; gap: .8rem; }
.row.two { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row.three { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
fieldset { border: 1px solid var(--line-strong); border-radius: var(--radius); margin: 1rem 0 0; padding: .5rem .9rem .8rem; }
legend { font-size: .9rem; color: var(--muted); padding: 0 .3rem; }
.choice { display: flex; gap: .55rem; align-items: baseline; color: var(--ink); margin: .4rem 0 0; }
.choice.inline { display: inline-flex; margin-right: 1.2rem; }
input[type=radio], input[type=checkbox] { accent-color: var(--ink); }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 500; }
.place-wrap { position: relative; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; margin: .2rem 0 0; padding: .3rem 0; list-style: none;
           background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
           max-height: 260px; overflow-y: auto; }
.suggest li { padding: .5rem .8rem; color: var(--ink); cursor: pointer; }
.suggest li[aria-selected=true], .suggest li:hover { background: var(--bg); }
.hint { font-size: .88rem; color: var(--muted); min-height: 1.2em; margin: .3rem 0 0; }
.privacy { font-size: .88rem; color: var(--muted); margin-top: 1.2rem; }
.error { color: var(--error); font-size: .92rem; min-height: 1.2em; margin: .4rem 0; }

/* ---------- buttons: black is the action colour ---------- */
button.primary { background: var(--ink); color: var(--lemon); border: 0; border-radius: var(--radius);
                 padding: .75rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer; margin-top: .6rem;
                 display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
button.primary:hover { background: #2a2a2a; }
button.primary[disabled] { opacity: .75; cursor: wait; }
button.ghost, #logout-btn { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .55rem 1rem; font: inherit; color: var(--ink); cursor: pointer; min-height: 44px; }
button.link { background: none; border: 0; padding: 0 .4rem; min-height: 44px; font: inherit; cursor: pointer;
              text-decoration: underline; text-underline-offset: 3px; }
.danger-btn { background: var(--error); color: #fff; border: 0; border-radius: var(--radius);
              padding: .65rem 1rem; font: inherit; font-weight: 600; cursor: pointer; margin-top: .5rem; }
details.danger { margin-top: 1.5rem; } details.danger summary { color: var(--error); }

/* segmented controls: a quiet track with a white thumb, like iOS */
.seg { display: inline-flex; background: var(--neutral-bg); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; border-radius: 8px; min-height: 40px; padding: .4rem .85rem; font: inherit;
              color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 20, .12); }
.seg.small button { font-size: .88rem; padding: .3rem .65rem; }

/* ---------- white surfaces on the yellow page ---------- */
.card-note, .qa, .entry, .due, .proof, .callout, details.ref, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.card-note { padding: 1rem 1.1rem; }
#me .card-note { margin: 0 0 1rem; }
#me h2 { margin-top: .1rem; }
.proof { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; padding: 1rem 1.1rem; margin: 1rem 0; }
.proof dt { color: var(--muted); } .proof dd { margin: 0; font-variant-numeric: tabular-nums; }
.warn { background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius);
        padding: .6rem .85rem; margin: .5rem 0; font-size: .92rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .5rem 0 1rem; }
#varga-box { display: flex; flex-direction: column; gap: .4rem; max-width: 100%; }
#varga-box .seg { max-width: 100%; overflow-x: auto; }
#varga-box .seg button { min-height: 44px; white-space: nowrap; }
.varga-note { font-size: .9rem; margin: .6rem 0 0; }
.summary { font-size: 1.02rem; margin-bottom: 1rem; }

/* the answer card */
.callout { padding: 1rem 1.1rem; margin: .6rem 0 1rem; }
.callout p { margin: .35rem 0; }
.callout .eyebrow { margin: 0; font-size: .8rem; letter-spacing: .02em; color: var(--muted); }
.callout .verdict { margin: .15rem 0 .35rem; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
.callout .head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
/* tone by shape: ● supportive, ◐ mixed, ○ care */
.verdict::before, .week .dlabel::before { content: ""; display: inline-block; width: .6em; height: .6em;
  border-radius: 50%; margin-right: .45em; vertical-align: .08em; border: 1.5px solid currentColor; }
.tone-supportive .verdict::before, .week .tone-supportive .dlabel::before { background: currentColor; }
.tone-mixed .verdict::before, .week .tone-mixed .dlabel::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.tone-care .verdict::before, .week .tone-care .dlabel::before { background: transparent; }

/* ---------- the sky now: a small celestial dial with real positions ---------- */
.sky-dial { width: 104px; height: 104px; flex: none; }
.sky-dial .ring { fill: none; stroke: var(--ink); stroke-width: .8; }
.sky-dial .tick { stroke: var(--ink); stroke-width: .7; }
.sky-dial .tick.nak { stroke-width: .35; opacity: .55; }
.sky-dial .orbit { fill: none; stroke: var(--ink); stroke-width: .35; stroke-dasharray: 1.2 2.2; opacity: .5; }
.sky-dial .earth { fill: var(--card); stroke: var(--ink); stroke-width: .8; }
.sky-dial .sun { fill: var(--ink); }
.sky-dial .moon { fill: var(--card); stroke: var(--ink); stroke-width: 1; }
.sky-dial .jup { fill: none; stroke: var(--ink); stroke-width: 1; }
.sky-dial .jup-core { fill: var(--ink); }
.sky-dial .orb { transform-box: view-box; transform-origin: 50px 50px; transform: rotate(var(--a));
                 animation: orb-in 1.9s cubic-bezier(.2, .75, .2, 1) both; }
.sky-dial .orb.o2 { animation-delay: .15s; } .sky-dial .orb.o3 { animation-delay: .3s; }
.sky-dial .halo { fill: none; stroke: var(--ink); stroke-width: .5; transform-box: fill-box; transform-origin: center;
                  animation: breathe 4.5s ease-in-out infinite; }
@keyframes orb-in { from { transform: rotate(calc(var(--a) - 140deg)); opacity: 0; } to { transform: rotate(var(--a)); opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: .15; transform: scale(.85); } 50% { opacity: .6; transform: scale(1.25); } }
.sky-note { margin: -.4rem 0 1.2rem; font-size: .85rem; color: var(--muted); }
.sky-note .now { color: var(--ink); }

/* a tiny orbit: the brand mark and the loading state */
.orbit-mark .path { fill: none; stroke: currentColor; stroke-width: 1; opacity: .45; }
.orbit-mark .core { fill: currentColor; }
.orbit-mark .sat { fill: currentColor; }
.orbit-mark .spin { transform-box: view-box; transform-origin: 12px 12px; animation: spin 12s linear infinite; }
.loading .orbit-mark .spin, button.primary .orbit-mark .spin { animation-duration: 1.4s; }
.loading { display: flex; align-items: center; gap: .55rem; color: var(--muted); }
.loading .orbit-mark { width: 22px; height: 22px; color: var(--ink); }
button.primary .orbit-mark { width: 18px; height: 18px; color: var(--lemon); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sky-dial .orb, .sky-dial .halo, .orbit-mark .spin { animation: none !important; }
}

/* ---------- chart screen ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.card { padding: .85rem .95rem; text-align: left; font: inherit; color: var(--ink); cursor: pointer; width: 100%; }
.card .t { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.card .n { font-weight: 600; } .card .meta { font-size: .88rem; color: var(--muted); }
.pill { font-size: .75rem; border-radius: 999px; padding: .05rem .55rem; white-space: nowrap; border: 1px solid var(--ink); }
.pill.flow { background: var(--ink); color: var(--lemon); }
.pill.friction { background: var(--card); color: var(--ink); }
.pill.introspection { background: transparent; color: var(--muted); border-style: dashed; }
.pill.neutral { background: transparent; color: var(--muted); border-color: var(--line-strong); }
.card .more { display: none; font-size: .92rem; margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.card[aria-expanded=true] .more { display: block; }
.kundli { display: flex; justify-content: center; }
.kundli svg { width: 100%; max-width: 440px; height: auto; background: var(--card); border-radius: 16px; }
.kundli .lines { fill: none; stroke: var(--ink); stroke-width: 1; }
.kundli text { fill: var(--ink); font-family: var(--sans); }
.kundli .num { fill: var(--muted); font-size: 10px; }
.kundli .asc { fill: var(--ink); font-weight: 700; }
.kundli .cell-name { fill: var(--muted); font-size: 9px; }
.legend { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.sb { display: grid; gap: .5rem; }
.sb-row { display: grid; grid-template-columns: 5.2rem 1fr; gap: .2rem .7rem; align-items: center; }
.sb-name { font-weight: 500; }
.sb-track { display: block; position: relative; height: .6rem; background: var(--card); border: 1px solid var(--line);
            border-radius: 6px; overflow: hidden; }
.sb-bar { display: block; height: 100%; border-radius: 6px; background: var(--ink); }
.sb-bar.low { background: var(--icon); }
.sb-min { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--ink); opacity: .6; }
.sb-meta { grid-column: 2; font-size: .82rem; color: var(--muted); margin-top: -.15rem; }

/* ---------- today: the week ---------- */
.week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(76px, 1fr); gap: .45rem;
        overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x mandatory; }
.week .day { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: .1rem;
             padding: .55rem .3rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
             font-size: .82rem; text-align: center; color: var(--ink); }
.week .dname { font-weight: 600; }
.week .dnum { color: var(--muted); font-size: .75rem; }
.week .dlabel { margin-top: .15rem; font-size: .75rem; }
.week .tone-supportive { background: var(--ink); color: var(--lemon); border-color: var(--ink); }
.week .tone-supportive .dnum { color: var(--lemon); opacity: .85; }
.week .tone-care { background: transparent; border-color: var(--line-strong); }
#t-form { margin: .5rem 0 1rem; }

/* ---------- reading, ask, marriage, journal ---------- */
ul.plain { padding-left: 1.1rem; }
.prose ul { padding-left: 1.2rem; } .prose li { margin: .3rem 0; }
.prose em { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .8rem; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; min-height: 44px;
        padding: .3rem .9rem; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.qa { padding: 1rem 1.1rem; margin-top: 1rem; }
.qa .q { font-weight: 600; color: var(--ink); margin: 0 0 .4rem; }
.qa.care { border-color: var(--line-strong); }
.qa details.why { margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.qa details.why summary { font-size: .92rem; }
.fu-title { font-size: .85rem; margin: .9rem 0 .3rem; }
.entry, .due { padding: .85rem 1rem; margin: .6rem 0; }
.entry .d { font-size: .85rem; color: var(--muted); }
.entry .astro { font-size: .9rem; margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.due .btns { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; align-items: center; }
.due input[type=date] { width: auto; display: inline-block; margin: 0; }
#m-body, #match-form { margin-top: 1rem; }
details.ref { margin: .8rem 0; padding: .5rem .9rem; }
details.ref summary { cursor: pointer; }
details.why { margin-top: 1rem; }
details.why details.ref { background: var(--bg); }

footer { max-width: 760px; margin: 0 auto; padding: 1rem 16px 2rem; font-size: .85rem; color: var(--muted);
         border-top: 1px solid var(--line); }

/* ---------- black and white (Co-Star-like): thin lines, small caps labels, no shadows ---------- */
.card-note, .qa, .entry, .due, .proof, .callout, details.ref, .card, .week .day, .chip, .kundli svg { border-radius: 0; }
.card-note, .qa, .entry, .due, .proof, .callout, .card { border: 1px solid var(--ink); }
.callout .eyebrow, h2, .week .dname { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; }
h2 { margin-top: 2rem; }
.callout .verdict { font-size: 1.7rem; font-weight: 500; letter-spacing: -.01em; }
button.primary, .seg, .seg button, .tab, input, select, textarea, button.ghost { border-radius: 0; }
.seg button.on { box-shadow: none; outline: 1px solid var(--ink); }
.suggest li[aria-selected=true], .suggest li:hover { background: var(--neutral-bg); }
nav#nav .tab.on svg { background: var(--ink) !important; color: #fff; border-radius: 0 !important; }
@media (max-width: 759px) { nav#nav { border-top: 1px solid var(--ink); background: #fff; } }
.top { border-bottom: 1px solid var(--ink); }
details.more { margin-top: 1.5rem; border-top: 1px solid var(--ink); padding-top: .6rem; }
details.more > summary { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.week .day, .week .tone-care { border-color: var(--ink); }

/* brand: Dhruv + descriptor (hidden on narrow phones) + tagline on the first screen */
.brand .descriptor { font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-left: .35rem; }
@media (max-width: 420px) { .brand .descriptor { display: none; } }
.tagline { margin: .2rem 0 .2rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

/* Our story (founder request 2026-11-09): a quiet, readable page; black and white only */
/* founder request 2026-11-09: tagline on one line; 'Our story' as a lemon button (the logo's lemon, #FFF44F) */
#onboard .tagline { white-space: nowrap; font-size: clamp(.62rem, 2.9vw, .78rem); letter-spacing: clamp(.04em, .6vw, .14em); }
.story-btn { display: inline-block; margin: .5rem 0 1rem; min-height: 44px; padding: 0 1.2rem;
             background: #FFF44F; color: #000; border: 1px solid #000; border-radius: 0; cursor: pointer;
             font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.story-btn:hover { background: #000; color: #FFF44F; }
.story { max-width: 36rem; }
.story .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0; }
.story h1 { margin-top: .3rem; }
.story h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin: 1.8rem 0 .5rem;
            border-top: 1px solid var(--ink); padding-top: .8rem; }
.story p, .story li { line-height: 1.6; }
.story ol.steps, .story ul.promises { padding-left: 1.2rem; }
.story li { margin: .45rem 0; }
.story .story-end { margin: 2rem 0 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; text-align: center; }

/* ===================== Launch polish (UI/UX review 2026-11-09) ===================== */
/* 1. one shape language: square everywhere (inputs and fieldsets were still rounded) */
input[type=text], input[type=date], input[type=time], input[type=number], input[type=email],
input[type=password], select, textarea, fieldset, .beta, .pill, .seg button { border-radius: 0; }
input[type=text], input[type=date], input[type=time], input[type=number], input[type=email],
input[type=password], select, textarea, fieldset, .chip { border-color: var(--ink); }

/* 2. tap targets of at least 44 px (radio rows and toggles were 23-25 px) */
label.choice { display: flex; align-items: center; gap: .55rem; min-height: 44px; }
label.choice.inline { display: inline-flex; margin-right: 1rem; }
details > summary { min-height: 44px; display: flex; align-items: center; gap: .4rem; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; display: inline-block; width: 1em; font-weight: 400;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
details[open] > summary::before { transform: rotate(45deg); }

/* 3. no empty gaps, no raw scrollbars */
.error:empty { display: none; }
.week, .seg { scrollbar-width: none; }
.week::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
.seg { display: flex; max-width: 100%; overflow-x: auto; scroll-snap-type: x proximity; }
.seg button { white-space: nowrap; flex: 0 0 auto; scroll-snap-align: start; }

/* 4. Ask: a few example questions up front, all topics behind one toggle */
.try-label { margin: 1.2rem 0 .5rem; }
details.topics { margin-top: .4rem; border-top: 1px solid var(--ink); }
details.topics > summary { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }

/* 5. motion: calm and quick, the way iOS moves. Functional only: it shows where things came from. */
:root { --ease: cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.screen.enter { animation: rise .32s var(--ease) both; }
#thread > *:last-child, .qa, .callout, #t-verdict > * { animation: rise .36s var(--ease) both; }
.week .day { animation: rise .4s var(--ease) both; }
.week .day:nth-child(2) { animation-delay: .04s; } .week .day:nth-child(3) { animation-delay: .08s; }
.week .day:nth-child(4) { animation-delay: .12s; } .week .day:nth-child(5) { animation-delay: .16s; }
.week .day:nth-child(6) { animation-delay: .2s; }  .week .day:nth-child(7) { animation-delay: .24s; }
.week .day:nth-child(8) { animation-delay: .28s; }
details[open] > *:not(summary) { animation: fade .28s var(--ease) both; }
button, .chip, .story-btn, .tab { transition: transform .12s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
button:active, .chip:active, .story-btn:active { transform: scale(.97); }
nav#nav .tab svg { transition: background-color .25s var(--ease), padding .25s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.footer-link { min-height: 44px; text-decoration: underline; padding: 0; }
.todo { border-bottom: 1px dashed var(--ink); }

/* page frame (founder request 2026-11-09, after kavachai): a lemon border fixed to the screen edges.
   Taps pass through it (pointer-events: none), so it never blocks a button. */
body::after { content: ""; position: fixed; inset: 0; border: 6px solid #FFF44F; pointer-events: none; z-index: 9999; }
@media (max-width: 420px) { body::after { border-width: 4px; } }

/* trial mode (DHRUV_TRIAL=1 on the server): every account feature disappears */
.trial-only { display: none; }
body.trial .trial-only { display: block; }
body.trial .accounts-only { display: none !important; }

/* feedback rating: five square 44 px buttons */
.rating { display: flex; gap: .5rem; border: 0; padding: 0; margin: 1rem 0 .3rem; }
.rating legend { margin-bottom: .5rem; }
.rating label { flex: 1; }
.rating input { position: absolute; opacity: 0; }
.rating span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--ink); cursor: pointer; font-weight: 600; }
.rating input:checked + span { background: #FFF44F; }
.rating input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
body.trial span.trial-only { display: inline; }

/* one-tap "Was this useful?" under answers */
.useful { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 .4rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.useful .u-q { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); flex: 1 1 auto; }
.useful button { min-height: 44px; min-width: 64px; padding: 0 1rem; background: var(--card); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; font: inherit; cursor: pointer; }
.useful button:hover { background: #FFF44F; }
.useful label.u-q { display: flex; flex-direction: column; gap: .35rem; text-transform: none; letter-spacing: 0; font-size: .9rem; flex-basis: 100%; }
p.useful { border-top: 1px solid var(--line); padding-top: .7rem; }

/* prediction tracker */
.track { margin: .8rem 0 0; }
.track-btn { min-height: 44px; text-decoration: underline; padding: 0; }
.did { margin: .6rem 0; }
.did p { margin: .2rem 0; }
.did-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .4rem; }
.did-row input[type=month] { min-height: 44px; flex: 1 1 9rem; }
.did-row button:not(.link) { min-height: 44px; padding: 0 1rem; background: var(--card); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; font: inherit; cursor: pointer; }
.did-row button:not(.link):hover { background: #FFF44F; }
.due-card { margin-top: 1rem; }
#me-tracked .did + .did { border-top: 1px solid var(--line); padding-top: .6rem; }

/* ask-back: one short question in the chat; the chosen answer stays marked (2026-11-11) */
.askback .chip.on { background: var(--ink); color: var(--card); }
.askback .chip:disabled:not(.on) { opacity: .45; }
.chip-go { font-weight: 600; }

/* The one feedback form, at the end of every page (founder decision 2026-11-11) */
.fb-end { max-width: 760px; margin: 0 auto; padding: 1.5rem 16px 1rem; }
.fb-end > * { max-width: 100%; }
.fb-end { border-top: 1px solid var(--ink); }
.fb-end h2 { margin: .3rem 0 .6rem; }
.fb-end form { margin-top: 1rem; }
.fb-end textarea { width: 100%; }
.fb-consult { margin-top: 1.2rem; }
.fb-consult a { color: var(--ink); font-weight: 600; }
