/* Munnodi — direction B (Bundle), chosen 2026-09-20; light and dark, 2026-09-20.
   Mobile first: one column, generous tap targets, no framework. Colour carries meaning
   only — binding, persuasive, overruled, repealed, rule-level — never decoration.

   Motion follows the same rule as colour: it exists for feedback, orientation or
   continuity, never for polish. A sign-in and the home screen are seen once in a sitting,
   so they may introduce themselves; the answer's folders never animate, because the
   advocate is there to read them. Everything is transform/opacity only, and everything
   has a still path under prefers-reduced-motion. */

:root {
  color-scheme: light;
  --ground: #F1F3F6;
  --card: #FFFFFF;
  --sunk: #F7F9FB;
  --ink: #1A1D21;
  --muted: #5A646E;
  --line: #D7DDE3;
  --bind: #1F5C8B;
  --pers: #68727E;
  --over: #A2382A;
  --stale: #855600;
  --rule: #4A5980;
  --focus: #1F5FBF;
  --on-tab: #FFFFFF;
  --bg-over: #FBEDEA;
  --bg-stale: #FBF3E3;
  --bg-rule: #EEF0F6;
  --bg-quiet: #F1F3F5;
  --bg-mark: #FDF6E3;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06);
  --lift: 0 6px 20px rgba(16, 24, 32, .10);
  --radius: 10px;
  --out: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.36, .48, 1);
  /* The forerunner's two tones: the record is ink, the judgment ahead of it is not. */
  --lead-a: #2F7DBA;
  --lead-b: #C06A2E;
  --glow: rgba(47, 125, 186, .16);
}

/* The system's choice, unless the reader has picked one here. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0F1216;
    --card: #171B20;
    --sunk: #1D2229;
    --ink: #E7ECF1;
    --muted: #9AA5B0;
    --line: #2B3138;
    --bind: #7EB4E2;
    --pers: #97A2AE;
    --over: #EE9484;
    --stale: #DCB35C;
    --rule: #A8B6E0;
    --focus: #8FC0F0;
    --on-tab: #10141A;
    --bg-over: #3A211C;
    --bg-stale: #332A15;
    --bg-rule: #22273A;
    --bg-quiet: #1E242B;
    --bg-mark: #2E2716;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
    --lift: 0 8px 26px rgba(0, 0, 0, .55);
    --lead-a: #6FB5E8;
    --lead-b: #E3A063;
    --glow: rgba(111, 181, 232, .14);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0F1216;
  --card: #171B20;
  --sunk: #1D2229;
  --ink: #E7ECF1;
  --muted: #9AA5B0;
  --line: #2B3138;
  --bind: #7EB4E2;
  --pers: #97A2AE;
  --over: #EE9484;
  --stale: #DCB35C;
  --rule: #A8B6E0;
  --focus: #8FC0F0;
  --on-tab: #10141A;
  --bg-over: #3A211C;
  --bg-stale: #332A15;
  --bg-rule: #22273A;
  --bg-quiet: #1E242B;
  --bg-mark: #2E2716;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5);
  --lift: 0 8px 26px rgba(0, 0, 0, .55);
  --lead-a: #6FB5E8;
  --lead-b: #E3A063;
  --glow: rgba(111, 181, 232, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  /* Atkinson Hyperlegible carries no Tamil, so "முன்னோடி" was falling back to whatever
     each device happened to have. Noto Sans Tamil sits behind it everywhere. */
  font: 400 16px/1.5 "Atkinson Hyperlegible", "Noto Sans Tamil", system-ui, -apple-system,
        "Segoe UI", sans-serif;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  -webkit-text-size-adjust: 100%;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: var(--bind); }

/* ---- the bar: mark, name, theme, the person ---- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line);
}
.word { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); margin-right: auto; }
.lockup { display: grid; line-height: 1; gap: 2px; }
.word b { font-weight: 700; font-size: 17.5px; letter-spacing: -.012em; }
.word .ta { font-family: "Noto Sans Tamil", sans-serif; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.mark { width: 30px; height: 30px; flex: 0 0 30px; display: block; }
.mark .glyph { fill: var(--lead-a); }
.mark .lead { fill: var(--lead-b); }
.icon {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid transparent; border-radius: 8px;
  color: var(--muted); cursor: pointer;
}
.icon:hover { color: var(--ink); border-color: var(--line); }
.icon svg { width: 19px; height: 19px; }
/* The icon shows what a tap would give you: a moon in daylight, a sun at night. */
.sun { display: none; }
.moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun { display: block; }
  :root:not([data-theme="light"]) .moon { display: none; }
}
:root[data-theme="dark"] .sun { display: block; }
:root[data-theme="dark"] .moon { display: none; }
:root[data-theme="light"] .sun { display: none; }
:root[data-theme="light"] .moon { display: block; }

/* the person: a native disclosure, so the menu works with no script */
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.who { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--bind); color: var(--on-tab); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.menu .nm { font-size: 14.5px; color: var(--muted); max-width: 8ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 208px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--lift); padding: 6px; display: grid; gap: 2px;
  transform-origin: top right;
}
.sheet a, .sheet button {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 15px;
  padding: 11px 12px; border: 0; border-radius: 8px; background: none;
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.sheet a:hover, .sheet button:hover { background: var(--sunk); }
.sheet .cap { padding: 8px 12px 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sheet hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.inline { margin: 0; }
.link { background: none; border: 0; color: var(--bind); font: inherit; font-size: 14px; padding: 6px; cursor: pointer; }

main { display: grid; gap: 14px; padding: 16px; max-width: 720px; margin-inline: auto; }
.foot { max-width: 720px; margin: 8px auto 32px; padding: 0 16px; color: var(--muted); font-size: 13px; }
.foot p { margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.card.quiet { background: var(--sunk); }
.h1 { margin: 0; font-size: 21px; line-height: 1.25; }
.h2 { margin: 0; font-size: 17px; }
.hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.error { margin: 0; background: var(--bg-over); color: var(--over); border: 1px solid var(--over); border-radius: var(--radius); padding: 12px 14px; }
.note { margin: 0; background: var(--bg-rule); color: var(--rule); border-radius: var(--radius); padding: 10px 14px; font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

label { font-weight: 700; font-size: 14px; }
textarea, input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], input:not([type]) {
  font: inherit; color: var(--ink); background: var(--sunk);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; width: 100%;
}
textarea { resize: vertical; line-height: 1.5; }
.go {
  font: 700 17px/1 "Atkinson Hyperlegible", system-ui, sans-serif;
  background: var(--ink); color: var(--card); border: 0; border-radius: 8px;
  padding: 15px 18px; cursor: pointer; text-align: center; text-decoration: none;
}
.go.small { font-size: 15px; padding: 12px 14px; }
.go.plain { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.back { color: var(--muted); font-size: 14.5px; text-decoration: none; display: inline-block; }
.back:hover { color: var(--ink); }
.quota { font-variant-numeric: tabular-nums; }
.asked { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
/* What de-identification left behind, marked as a placeholder rather than left to read
   as a broken sentence — the advocate's own note on the first answers (I-59). */
.redacted { font: 500 .86em/1 "IBM Plex Mono", ui-monospace, monospace; background: var(--bg-quiet); color: var(--muted); border-radius: 4px; padding: 2px 5px; white-space: nowrap; }
.rowtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---- the first screen ---- */
.hero { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 0 2px; }
.hero .mark { width: 46px; height: 46px; flex: none; margin-bottom: 4px; }
.hero h1 { margin: 0; font-size: 25px; letter-spacing: .01em; }
.hero h1 .ta { font-family: "Noto Sans Tamil", sans-serif; font-size: 16px; color: var(--muted); font-weight: 400; }
.hero p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 40ch; }

/* ---- the shared budget, where anyone can see it ---- */
.budget { display: grid; gap: 8px; }
.bararea { height: 8px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); overflow: hidden; }
.bararea i { display: block; height: 100%; background: var(--bind); border-radius: 999px; }
.bararea.hot i { background: var(--stale); }
.bararea.full i { background: var(--over); }
.budget .num { font-variant-numeric: tabular-nums; }

/* ---- history ---- */
.history h2 { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list a { display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); }
.list a:hover { border-color: var(--bind); }
.list .q { font-size: 15px; line-height: 1.4; }
.list .meta { font-size: 13px; color: var(--muted); }

/* ---- while it works ---- */
.stages { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.stages li:last-child { color: var(--ink); font-weight: 700; }
.sweep { height: 4px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.sweep i { display: block; height: 100%; width: 40%; border-radius: 999px; background: var(--bind); }
.elapsed { font-variant-numeric: tabular-nums; }

/* ---- the answer ---- */
.holds { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16.5px; line-height: 1.5; }
.meters { display: grid; gap: 8px; }
.meter { display: grid; grid-template-columns: 92px 64px 1fr; align-items: center; gap: 10px; font-size: 15px; }
.mband { font-weight: 700; }
.segs { display: grid; grid-template-columns: repeat(3, 16px); gap: 3px; }
.segs i { height: 9px; border-radius: 2px; background: var(--line); }
.segs i.on { background: var(--ink); }
.why summary, .full summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--bind); padding: 6px 0; }
.parts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.parts li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; line-height: 1.45; }
.parts .ph { display: block; font-weight: 700; color: var(--muted); margin-top: 6px; }
.parts .d { text-align: center; }
.parts em { color: var(--muted); font-style: normal; }

.count { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 4px 0; }
.count h2 { margin: 0; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.count span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.folder { position: relative; margin-top: 20px; }
.tab {
  position: absolute; left: 14px; top: -18px; padding: 3px 10px 2px; border-radius: 6px 6px 0 0;
  font: 500 12px/1.4 "IBM Plex Mono", ui-monospace, monospace; color: var(--on-tab); background: var(--bind);
}
.tab.over { background: var(--over); }
.tab.pers { background: var(--pers); }
.folder .card { border-top-left-radius: 0; }
.case { margin: 0; font-size: 17px; line-height: 1.3; }
.cite { margin: 0; font: 400 13px/1.4 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); }
.supports { margin: 0; font-size: 16px; line-height: 1.5; }
.words { margin: 10px 0 0; background: var(--sunk); border-radius: 8px; padding: 12px; font-style: italic; font-size: 15.5px; line-height: 1.55; }
.words small { display: block; margin-top: 8px; font: 500 12px/1.4 "IBM Plex Mono", ui-monospace, monospace; font-style: normal; color: var(--muted); }
.readfull { display: inline-block; margin-top: 10px; font-size: 15px; }

.flag { margin: 0; border-radius: var(--radius); padding: 12px 14px; font-size: 15px; line-height: 1.45; font-weight: 700; }
.flag.rule { background: var(--bg-rule); color: var(--rule); }
.flag.stale { background: var(--bg-stale); color: var(--stale); }
.flag.over { background: var(--bg-over); color: var(--over); }
.flag.quietflag { background: var(--bg-quiet); color: var(--muted); font-weight: 400; }

/* ---- feedback ---- */
.feedback form { display: grid; gap: 10px; }
.rate { display: flex; gap: 8px; flex-wrap: wrap; }
.rate button { flex: 1 1 auto; min-width: 96px; font: 700 15px/1 "Atkinson Hyperlegible", system-ui, sans-serif; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 12px; cursor: pointer; }
.rate button:hover { border-color: var(--bind); color: var(--bind); }

.scope { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---- a judgment in full ---- */
.judgment { gap: 10px; }
.judgment p { margin: 0; font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; }
.judgment p.quoted { background: var(--bg-mark); border-left: 3px solid var(--stale); padding: 8px 10px; border-radius: 0 6px 6px 0; }
.fulltext { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; }

/* ---- profile and the owner's view ---- */
.face { display: flex; align-items: center; gap: 14px; }
.face .who { width: 52px; height: 52px; font-size: 21px; }
.face h1 { margin: 0; font-size: 20px; }
.pairs { display: grid; gap: 10px; margin: 0; }
.pairs div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.pairs dt { color: var(--muted); }
.pairs dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
/* The owner's tables scroll sideways on a phone rather than squashing a question into a
   column one word wide. */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablewrap table { min-width: 660px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td form { display: flex; gap: 8px; align-items: center; }
/* A 68px box with the browser's own spinner in it left about one digit visible. */
td form input[type="number"] { width: 92px; min-width: 92px; padding: 9px 10px; font-variant-numeric: tabular-nums; text-align: left; }
td form input[type="number"]::-webkit-inner-spin-button { opacity: 1; height: 26px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 500 12px/1.6 "IBM Plex Mono", ui-monospace, monospace; background: var(--bg-quiet); color: var(--muted); }
.tag.ok { background: var(--bg-rule); color: var(--rule); }
.tag.bad { background: var(--bg-over); color: var(--over); }
.code { font: 500 16px/1.5 "IBM Plex Mono", ui-monospace, monospace; background: var(--bg-stale); color: var(--stale); padding: 10px 12px; border-radius: 8px; user-select: all; }
.trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 400 13px/1.5 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); }
.trail b { color: var(--ink); font-weight: 500; }

/* ---- Indian Kanoon's attribution (IK-1): the logo is never scaled, never covered ---- */
.ik { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; padding: 10px 4px 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ik a { flex: none; display: block; line-height: 0; }
.ik img { display: block; }
/* On a dark page the logo would be dark on dark. A white plate behind it keeps it fully
   visible without touching the image itself, which IK-1 does not allow. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ik img { background: #FFFFFF; border-radius: 6px; padding: 5px; }
}
:root[data-theme="dark"] .ik img { background: #FFFFFF; border-radius: 6px; padding: 5px; }

/* ---- the terms, and accepting them ---- */
.foot .credit { margin-top: 6px; }
.foot .credit a { color: var(--muted); }
.agree { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bind); }
.prose { display: block; line-height: 1.6; }
.prose h1 { font-size: 22px; margin: 0 0 4px; }
.prose h2 { font-size: 17px; margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose p, .prose li { font-size: 15.5px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose em { color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.prose blockquote { margin: 14px 0; padding: 12px 14px; background: var(--bg-stale); border-radius: 8px; }
.prose blockquote p { margin: 0 0 6px; }
.prose code { font: 500 .9em/1.4 "IBM Plex Mono", ui-monospace, monospace; background: var(--bg-quiet); padding: 2px 5px; border-radius: 4px; }
.prose table { margin: 12px 0; }
.prose td { font-size: 14.5px; }

/* ---- motion: feedback, orientation, continuity. Nothing decorative. ---- */
@media (prefers-reduced-motion: no-preference) {
  /* Introduces the page once per load, in reading order. Never on the answer's
     folders: the advocate arrives to read them, and 8 staggered cards is a delay. */
  .enter { animation: rise .26s var(--out) both; animation-delay: calc(var(--d, 0) * 55ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }

  .stages li { animation: appear .18s var(--out); }
  @keyframes appear { from { opacity: .35; transform: translateY(-3px); } }

  /* A long wait needs a sign of life; a finished page never gets one. */
  .sweep i { animation: sweep 1.5s cubic-bezier(.55, .1, .4, .9) infinite; }
  @keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(310%); } }

  .menu[open] .sheet { animation: pop .14s var(--out); }
  @keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

  .go:active, .rate button:active, .icon:active { transform: scale(.985); }
  .go, .rate button, .icon, .list a { transition: transform .09s var(--out), border-color .12s linear, color .12s linear; }
  body, .card, .bararea i { transition: background-color .16s linear, border-color .16s linear; }
  .bararea i { transition: width .3s var(--out); }
}

@media (min-width: 760px) {
  main { padding: 24px 16px; gap: 16px; }
  .h1 { font-size: 24px; }
  .menu .nm { max-width: 18ch; }
}

/* ---- motion, part two: the mark moves, the page arrives, the numbers land ---- */
@media (prefers-reduced-motion: no-preference) {
  /* The judgment that went first draws itself once, as the page settles. */
  .mark .lead { animation: leadin .46s var(--spring) .12s both; transform-origin: 45% 55%; }
  @keyframes leadin { from { transform: translateX(-6%) scale(.9); opacity: 0; } }
  .mark .glyph { animation: glyphin .42s var(--out) both; transform-origin: 30% 60%; }
  @keyframes glyphin { from { transform: scale(.82); opacity: 0; } }

  /* The mark leans forward when you go home. */
  .word:hover .lead { transform: translateX(1.5px); }
  .mark .lead { transition: transform .16s var(--spring); }

  /* Each earlier question arrives in turn, not all at once. */
  .list li { animation: rise .3s var(--out) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }

  /* A confidence band lands rather than appearing. */
  .segs i.on { animation: seg .34s var(--spring) both; }
  .segs i.on:nth-child(2) { animation-delay: .07s; }
  .segs i.on:nth-child(3) { animation-delay: .14s; }
  @keyframes seg { from { transform: scaleY(.3); opacity: .2; } }

  /* A folder lifts a little under the finger; the tab stays put. */
  .folder .card { transition: transform .16s var(--out), box-shadow .16s var(--out), border-color .16s linear; }
  .folder:hover .card { transform: translateY(-2px); box-shadow: var(--lift); border-color: var(--line); }

  /* The theme icon turns over rather than swapping. */
  .icon svg { animation: turn .28s var(--out); }
  @keyframes turn { from { transform: rotate(-45deg) scale(.7); opacity: 0; } }

  /* A dropdown's arrow follows the disclosure. */
  details > summary { transition: color .12s linear; }
}

/* Where the browser has it, pages cross-fade instead of blinking. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---- a little more presence, without noise ---- */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -10% 10% 40%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, var(--glow), transparent 70%);
}
.hero h1 { display: grid; gap: 2px; justify-items: center; letter-spacing: -.02em; }
.hero h1 .ta { font-family: "Noto Sans Tamil", sans-serif; font-weight: 400; font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.go { position: relative; overflow: hidden; }
.go:not(.plain)::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .go:not(.plain):hover::after { opacity: 1; animation: sheen .7s var(--out); }
  @keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
}
/* The band on a meter reads as a value, so it carries the accent. */
.bararea i { background: linear-gradient(90deg, var(--lead-a), var(--lead-b)); }
.tab { box-shadow: 0 -1px 0 rgba(0, 0, 0, .06) inset; }
.who { background: linear-gradient(140deg, var(--lead-a), var(--lead-b)); }

/* ---- the owner's forms breathe ---- */
.invite { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.invite input { margin-bottom: 2px; }
.invite .go { justify-self: start; }
.card form + form { margin-top: 4px; }

/* ---- what one person is allowed, beside what everyone is allowed ---- */
.allow { display: grid; gap: 6px; }
.allow .bararea { height: 10px; }
.mine i { background: linear-gradient(90deg, var(--lead-a), var(--lead-b)); }
.shared i { background: var(--pers); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- copy, export, search ---- */
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { font: 500 13px/1 "IBM Plex Mono", ui-monospace, monospace; background: var(--sunk); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.chip:hover { border-color: var(--bind); color: var(--bind); }
.chip.done { border-color: var(--rule); color: var(--rule); }
.finder { display: flex; gap: 8px; margin: 8px 0 12px; }
.finder input { flex: 1 1 auto; }

/* ---- was this judgment any use? ---- */
.vote { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.vote button { font: 500 13px/1 "Atkinson Hyperlegible", system-ui, sans-serif; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--muted); cursor: pointer; }
.vote button:hover { border-color: var(--bind); color: var(--bind); }
.vote .said { color: var(--rule); font-size: 13px; }

@media (min-width: 900px) {
  /* On a laptop the answer reads better as a column of its own width. */
  .prose, .holds, .supports, .fulltext { max-width: 72ch; }
}

/* ---- the sign-in page: a first impression, seen once a sitting ---- */
.hero::before { animation: none; }
.hero .mark { filter: drop-shadow(0 6px 18px var(--glow)); }
@media (prefers-reduced-motion: no-preference) {
  /* The glow behind the mark breathes slowly while the page is being read — the one
     looping motion in the app, and only here, where nothing else is competing. */
  .hero::before { animation: breathe 7s ease-in-out infinite alternate; }
  @keyframes breathe { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

  /* The mark arrives, then the stroke that goes ahead of it. */
  .hero .mark { animation: markin .6s var(--spring) both; }
  @keyframes markin { from { opacity: 0; transform: translateY(10px) scale(.86) rotate(-6deg); } }
  .hero .mark .lead { animation: leadin .55s var(--spring) .28s both; }

  /* The name and its Tamil settle in, a beat apart. */
  .hero h1 { animation: rise .45s var(--out) .12s both; }
  .hero h1 .ta { animation: rise .45s var(--out) .22s both; }
  .hero p { animation: rise .5s var(--out) .3s both; }

  /* A field you are typing in says so. */
  .card input:focus, .card textarea:focus { outline: none; border-color: var(--lead-a); box-shadow: 0 0 0 4px var(--glow); transition: box-shadow .18s var(--out), border-color .18s var(--out); }

  /* The form's own fields arrive in reading order. */
  .hero + form > * { animation: rise .38s var(--out) both; }
  .hero + form > :nth-child(2) { animation-delay: .34s; }
  .hero + form > :nth-child(3) { animation-delay: .38s; }
  .hero + form > :nth-child(4) { animation-delay: .42s; }
  .hero + form > :nth-child(5) { animation-delay: .46s; }
  .hero + form > :nth-child(6) { animation-delay: .5s; }
  .hero + form > :nth-child(n+7) { animation-delay: .54s; }
}

/* ---- the profile: your numbers land ---- */
.face .who { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--lead-a); }
@media (prefers-reduced-motion: no-preference) {
  .face .who { animation: ring .7s var(--spring) both; }
  @keyframes ring { from { transform: scale(.6) rotate(-30deg); opacity: 0; box-shadow: 0 0 0 3px var(--card), 0 0 0 14px transparent; } }
  .face h1 { animation: rise .4s var(--out) .12s both; }
  .face .hint { animation: rise .4s var(--out) .2s both; }
  .pairs div { animation: rise .36s var(--out) both; }
  .pairs div:nth-child(1) { animation-delay: .18s; }
  .pairs div:nth-child(2) { animation-delay: .24s; }
  .pairs div:nth-child(3) { animation-delay: .3s; }
  .pairs div:nth-child(4) { animation-delay: .36s; }
  .pairs div:nth-child(5) { animation-delay: .42s; }
  /* A bar fills to its value instead of appearing at it. */
  .allow .bararea i { transform-origin: left center; animation: fill .9s var(--out) .35s both; }
  @keyframes fill { from { transform: scaleX(0); } }
}
