/* PraxDex · Live demo page. Uses the PraxDex brand exactly as praxdex.com does:
   ink #141414, paper #F8F5F0, orange #F48921 (accent only, never text; text accents use orange-ink #A4500A),
   Newsreader for headings, Schibsted Grotesk for everything else, pill buttons, orange-dot labels.
   Fonts are self-hosted (SIL OFL, see /fonts). No external requests. */

@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #141414;
  --paper: #F8F5F0;
  --orange: #F48921;
  --orange-ink: #A4500A;
  --orange-wash: #FDEEDC;

  --bg: var(--paper);
  --bg-alt: #F1EDE5;
  --card: #FFFDF9;
  --fg: var(--ink);
  --muted: #5A554D;
  --line: #DDD6CA;
  --line-strong: #BFB7A9;
  --line-ctl: #8C857C;
  --btn: var(--ink);
  --on-btn: var(--paper);
  --focus: var(--ink);
  --night: #141414;
  --danger: #B3261E;
  --good: #1F7A4C;
  --good-wash: #E6F2EB;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 18px 48px -18px rgba(20, 20, 20, .22);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --r-ctl: 10px; --r-card: 14px; --r-lg: 16px;
  --gutter: 20px;
  --max: 1120px;
  --section: clamp(64px, 9vw, 120px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F0F0E; --bg-alt: #151513; --card: #1A1917; --fg: #F2EFEA; --muted: #ABA59D;
    --line: #2E2C28; --line-strong: #4A4741; --line-ctl: #7D7870;
    --btn: var(--orange); --on-btn: var(--ink); --focus: var(--orange);
    --orange-ink: #F2EFEA; --orange-wash: #3A2A18; --night: #1A1917; --danger: #F2A49D; --good: #6CC79A; --good-wash: #173326;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 48px -18px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F0F0E; --bg-alt: #151513; --card: #1A1917; --fg: #F2EFEA; --muted: #ABA59D;
  --line: #2E2C28; --line-strong: #4A4741; --line-ctl: #7D7870;
  --btn: var(--orange); --on-btn: var(--ink); --focus: var(--orange);
  --orange-ink: #F2EFEA; --orange-wash: #3A2A18; --night: #1A1917; --danger: #F2A49D; --good: #6CC79A; --good-wash: #173326;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.top, main, .foot { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 32px; } }

/* ---------- header (as on praxdex.com) ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 30px; width: auto; display: block; }
.dark-only { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dark-only { display: block !important; } :root:not([data-theme="light"]) .light-only { display: none !important; } }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* section label: orange dot (accent) + muted text */
.label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }

/* ---------- buttons (pill, as on praxdex.com) ---------- */
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; background: var(--btn); color: var(--on-btn); transition: transform .15s ease, opacity .15s ease; }
.btn:hover, button:hover { opacity: .88; }
.btn:active, button:active { transform: translateY(1px); }
button[disabled] { opacity: .55; cursor: progress; }
.ghost { background: transparent; color: var(--fg); border-color: var(--line-ctl); }
.ghost:hover { opacity: 1; border-color: var(--fg); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 44px; padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); align-items: center; }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; } }
h1 { font-size: clamp(42px, 6.6vw, 80px); line-height: 1.02; margin: 0 0 26px; }
h1 span { display: block; }
h1 span + span { color: var(--muted); }
.lede { font-size: clamp(18px, 2.1vw, 20px); line-height: 1.55; color: var(--muted); max-width: 34em; margin: 0 0 32px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-note { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- real product screenshot: softened, one area left sharp ---------- */
.shot { margin: 0; min-width: 0; }
.shot-frame { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); aspect-ratio: 860 / 740; }
.shot-frame picture, .shot-frame img { display: block; width: 100%; height: auto; }
.shot-phone { display: none; }
.shot-phone img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 560px) { .shot-phone { display: block; margin: 0 calc(var(--gutter) * -1); } .shot-phone img { border-radius: 0; border-left: 0; border-right: 0; } .shot-frame { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot-focus, :root:not([data-theme="light"]) .shot-phone img { filter: brightness(.8) contrast(1.05); } :root:not([data-theme="light"]) .shot-base { filter: blur(2.4px) saturate(.85) brightness(.7); } }
:root[data-theme="dark"] .shot-focus, :root[data-theme="dark"] .shot-phone img { filter: brightness(.8) contrast(1.05); }
:root[data-theme="dark"] .shot-base { filter: blur(2.4px) saturate(.85) brightness(.7); }
.shot-base { filter: blur(2.4px) saturate(.85); opacity: .75; transform: scale(1.02); }
.shot-frame picture + picture { position: absolute; inset: 0; }
/* the "Now" card on the client page stays readable */
.shot-focus { clip-path: inset(41.6% 4% 7.8% 2.6% round 10px); filter: drop-shadow(0 12px 28px rgba(20, 20, 20, .18)); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- hero: "overnight" illustration in the product's own UI style (praxdex.css tokens) ---------- */
.night { margin: 0; min-width: 0;
  --t-paper: #F8F5F0; --t-tile: #FFFFFF; --t-sunk: #F1ECE4; --t-line: #E6DFD4; --t-line-strong: #D3C9BA;
  --t-ink: #161513; --t-muted: #57524C; --t-orange: #F48921; --t-orange-ink: #A4500A; --t-orange-wash: #FDEEDC;
  --t-info: #2F5E8C; --t-info-wash: #E8EFF6; --t-warn: #8A5A00; --t-warn-wash: #FBF1DC;
  --ui: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .night {
  --t-paper: #141312; --t-tile: #1F1E1C; --t-sunk: #191817; --t-line: #34312D; --t-line-strong: #4A463F;
  --t-ink: #F2EFEA; --t-muted: #A8A39C; --t-orange-ink: #F99B3F; --t-orange-wash: #3A2A18;
  --t-info: #9CC0E6; --t-info-wash: #1C2C3C; --t-warn: #F0CF83; --t-warn-wash: #3A2E12; } }
:root[data-theme="dark"] .night {
  --t-paper: #141312; --t-tile: #1F1E1C; --t-sunk: #191817; --t-line: #34312D; --t-line-strong: #4A463F;
  --t-ink: #F2EFEA; --t-muted: #A8A39C; --t-orange-ink: #F99B3F; --t-orange-wash: #3A2A18;
  --t-info: #9CC0E6; --t-info-wash: #1C2C3C; --t-warn: #F0CF83; --t-warn-wash: #3A2E12; }
.na { font-family: var(--ui); color: var(--t-ink); background: var(--t-paper); border: 1px solid var(--t-line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.na-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--t-line); background: var(--t-paper); font-size: 13px; }
.na-firm { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--serif); }
.na-firm i { font: 600 12px/1 var(--ui); font-style: normal; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: #192E58; color: #fff; }
.na-tab { color: var(--t-muted); padding: 4px 10px; border-radius: 6px; background: var(--t-sunk); font-weight: 500; }
.na-clock { margin-left: auto; margin-right: 76px; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.na-clock b { color: var(--t-ink); font-weight: 600; }
.na-stage { position: relative; height: 470px; overflow: hidden; }
.na-log { position: absolute; inset: 0; padding: 16px 18px; transition: opacity .6s ease, filter .6s ease; }
.na-k { margin: 0 0 10px; font: 600 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--t-muted); }
.na-list { list-style: none; margin: 0; padding: 0; transition: transform .5s ease; }
.na-item { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--t-line); opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.na-item.on { opacity: 1; transform: none; }
.na-item time { font-size: 12.5px; color: var(--t-muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--t-sunk); color: var(--t-ink); margin-bottom: 4px; }
.na-item .t { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.na-item .sub { margin: 6px 0 2px; font-size: 13.5px; color: var(--t-muted); }
.flag { display: inline-block; margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--t-warn); background: var(--t-warn-wash); padding: 3px 9px; border-radius: 6px; }
.draft { margin: 8px 0 0; padding: 10px 12px; background: var(--t-tile); border: 1px solid var(--t-line); border-radius: 10px; font-size: 13.5px; line-height: 1.45; color: var(--t-ink); }
.draft span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); margin-bottom: 3px; }
.unsure { margin: 4px 0 0; padding: 0 0 0 18px; font-size: 13.5px; line-height: 1.5; }
.unsure li::marker { color: var(--t-orange); }

.na-sum, .na-need { position: absolute; left: 16px; right: 16px; background: var(--t-tile); border: 1px solid var(--t-line); border-radius: 10px; box-shadow: 0 16px 40px rgba(59, 47, 30, .18); opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.na-sum { top: 16px; padding: 16px 18px; }
.na-h { margin: 0 0 10px; font: 400 24px/1.15 var(--serif); letter-spacing: -.01em; }
.na-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14.5px; color: var(--t-muted); }
.na-counts b { font: 600 22px/1 var(--ui); color: var(--t-ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.na-counts .you b { color: var(--t-orange-ink); }
.na-need { bottom: 16px; padding: 16px 18px; border-left: 4px solid var(--t-orange); }
.need-k { margin: 0 0 6px; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--t-orange-ink); }
.need-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t-orange); }
.need-t { margin: 0; font-size: 16px; font-weight: 600; }
.need-r { margin: 4px 0 12px; font-size: 14.5px; line-height: 1.45; color: var(--t-ink); }
.need-a { display: flex; gap: 8px; margin: 0; }
.need-a span { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--t-line-strong); background: var(--t-tile); }
.need-a .ok { background: var(--t-orange); border-color: var(--t-orange); color: #141414; }

/* morning: the log steps back, the summary and the one card that needs a person come forward */
.na.morning .na-log { opacity: .28; filter: blur(1.5px); }
.na.morning .na-sum { opacity: 1; transform: none; }
.na.decide .na-need { opacity: 1; transform: none; }
.na.reset .na-sum, .na.reset .na-need, .na.reset .na-item { transition-duration: .35s; }
.night { position: relative; }
.night-pause { position: absolute; z-index: 3; top: 8px; right: 10px; min-height: 44px; min-width: 72px; padding: 0 14px; font: 600 13px/1 var(--sans); background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 999px; }
.night-pause:hover { color: var(--fg); border-color: var(--line-strong); opacity: 1; }
.night figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

@media (min-width: 980px) {
  /* the window runs off the right edge */
  .night { margin-right: calc((100vw - min(100vw, calc(var(--max) + var(--gutter) * 2))) / -2 - var(--gutter)); }
  .na { border-radius: 12px 0 0 12px; border-right: 0; }
  .na-stage { height: 500px; }
}
@media (max-width: 560px) {
  .na-top { padding: 10px 12px; gap: 10px; }
  .na-tab { display: none; }
  .na-stage { height: 520px; }
  .na-log { padding: 14px 14px; }
  .na-item { grid-template-columns: 1fr; gap: 2px; }
  .na-item time { padding: 0; }
  .na-sum, .na-need { left: 10px; right: 10px; }
  .na-counts { grid-template-columns: 1fr; gap: 6px; }
  .na-counts b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .na *, .na { transition: none !important; }
}


/* ---------- founder note ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { display: grid; gap: 24px; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.note-photo { display: block; max-width: 180px; }
.note-photo img { width: 100%; height: auto; border-radius: 6px; display: block; }
@media (min-width: 760px) { .note-photo { max-width: none; } }
.note-body p { font: 400 clamp(22px, 2.5vw, 28px)/1.42 var(--serif); letter-spacing: -.01em; margin: 0; max-width: 30em; }
.note-body .sig { margin-top: 22px; font: 600 15px/1.4 var(--sans); letter-spacing: 0; color: var(--muted); }
@media (min-width: 760px) {
  .note { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-left: 6%; }
  .note-photo { margin-top: 8px; }
}

/* ---------- a concrete example ---------- */
.example { display: grid; gap: 8px 56px; padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.example h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; margin: 0 0 16px; }
.example h2 .when { display: block; margin-bottom: 8px; font: 600 15px/1.4 var(--sans); letter-spacing: 0; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .04em; }
.example p { margin: 0 0 14px; max-width: 36em; }
.example .aside { color: var(--muted); font-size: 15.5px; }
@media (min-width: 900px) { .example { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .example .shot { margin-top: 6px; } }

/* ---------- privacy + where it fits (plain, unboxed) ---------- */
.trust { padding: 0 0 clamp(56px, 8vw, 96px); }
.trust-main { display: flex; gap: 14px; align-items: flex-start; margin: 0; font: 400 clamp(24px, 2.8vw, 32px)/1.25 var(--serif); letter-spacing: -.012em; color: var(--muted); max-width: 26em; text-wrap: balance; }
.trust-main strong { font-weight: 400; color: var(--fg); }
.trust-main svg { flex: none; width: 24px; height: 24px; margin-top: 7px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; }
.fits { margin: 14px 0 0 38px; color: var(--muted); font-size: 15.5px; max-width: 40em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- poll (form card, as on praxdex.com) ---------- */
.poll { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 18px; margin-bottom: 64px; scroll-margin-top: 12px; }
@media (min-width: 760px) { .poll { padding: 48px; display: grid; grid-template-columns: .72fr 1.6fr; gap: 48px; } }
.poll-intro h2 { font-size: clamp(36px, 4.4vw, 50px); line-height: 1.04; margin: 0 0 12px; }
.poll-intro #intro { color: var(--muted); margin: 0 0 24px; }
@media (min-width: 760px) { .poll-intro { position: sticky; top: 24px; align-self: start; } }
.poll-main { min-width: 0; }

.deadline { display: grid; gap: 4px; margin: 0 0 20px; padding: 16px 18px; border-left: 2px solid var(--orange); background: var(--bg); border-radius: 0 10px 10px 0; }
.deadline span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.deadline b { font: 400 23px/1.2 var(--serif); }
.deadline #dl-left { font-size: 14px; font-weight: 600; }
.deadline #dl-left:empty { display: none; }
.status { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; background: var(--good-wash); color: var(--fg); font-weight: 500; border-left: 3px solid var(--good); }
.status[data-state="withdrawn"] { background: var(--bg-alt); border-left-color: var(--line-ctl); }
body.manage .hero, body.manage .note, body.manage .example, body.manage .trust { display: none; }
body.manage main { padding-top: 16px; }

.grid { display: grid; gap: 18px; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } .wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, legend { font-weight: 600; font-size: 15.5px; padding: 0; }
small { font-weight: 400; color: var(--muted); font-size: 14px; }
input, select { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--line-ctl); border-radius: var(--r-ctl); padding: 13px 14px; min-height: 50px; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235A554D' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
input::placeholder { color: var(--muted); opacity: 1; }
input[readonly] { color: var(--muted); }
[aria-invalid="true"] { border-color: var(--danger); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills legend { margin-bottom: 7px; width: 100%; }
.pills label { position: relative; }
.pills input, .none input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-ctl); background: var(--bg); cursor: pointer; font-size: 15px; }
.pills input:checked + span { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.pills input:focus-visible + span, .none input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.times { margin: 36px 0 0; padding: 0; border: 0; min-width: 0; }
.times legend { font: 400 30px/1.15 var(--serif); letter-spacing: -.015em; margin-bottom: 4px; }
.times legend small { display: block; margin: 4px 0 0; font: 400 14px var(--sans); letter-spacing: 0; }
.tz { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }

/* day-by-time grid */
.days { display: grid; grid-template-columns: minmax(64px, .9fr) repeat(var(--days, 4), minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.g-corner { display: flex; align-items: flex-end; padding-bottom: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.g-day { display: grid; gap: 1px; justify-items: center; text-align: center; padding-bottom: 4px; }
.g-day b { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.g-day > span { font: 400 22px/1.15 var(--serif); }
.g-all { justify-self: stretch; min-height: 44px; margin-top: 6px; padding: 0 4px; font: 600 13px/1.1 var(--sans); border-radius: 999px; background: transparent; color: var(--fg); border: 1px solid var(--line-ctl); cursor: pointer; }
.g-all[aria-pressed="true"] { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.g-all:hover { border-color: var(--fg); opacity: 1; }
.g-all[disabled] { display: none; }
.g-time { display: grid; align-content: center; gap: 1px; padding-right: 4px; }
.g-time b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-time span { font-size: 12px; line-height: 1.25; color: var(--muted); }
.g-cell { position: relative; display: block; cursor: pointer; }
.g-cell input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-cell span { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: var(--r-ctl); border: 1px solid var(--line-ctl); background: var(--bg); font-size: 13.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; transition: background .12s, border-color .12s; }
.g-cell:hover span { border-color: var(--fg); }
.g-cell input:checked + span { background: var(--orange); border-color: var(--orange); color: #141414; font-weight: 700; }
.g-cell input:checked + span::before { content: "✓ "; white-space: pre; }
.g-cell input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.g-cell input:disabled + span { cursor: default; opacity: .75; }
.g-empty { min-height: 46px; border-radius: var(--r-ctl); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); }
@media (max-width: 420px) {
  .days { gap: 5px; grid-template-columns: 58px repeat(var(--days, 4), minmax(0, 1fr)); }
  .g-day > span { font-size: 18px; }
  .g-all { font-size: 12px; padding: 0 2px; border-radius: var(--r-ctl); }
  .g-cell span { font-size: 12.5px; min-height: 44px; }
  .g-cell input:checked + span::before { content: none; }
}
@media (max-width: 359px) { .g-day > span { font-size: 16px; } }

.none { display: block; position: relative; margin-top: 12px; cursor: pointer; }
.none span { display: block; padding: 14px 14px 14px 48px; border-radius: var(--r-ctl); border: 1px dashed var(--line-ctl); font-size: 15.5px; }
.none span::before { content: ""; position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--line-ctl); background: var(--card) no-repeat center / 13px; }
.none input:checked + span { border-style: solid; border-color: var(--fg); background: var(--bg-alt); }
.none input:checked + span::before { background-color: var(--btn); border-color: var(--btn); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%23F8F5F0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error { margin: 20px 0 0; padding: 12px 14px; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); font-size: 15px; font-weight: 500; }
.send { display: grid; gap: 14px; margin-top: 26px; justify-items: start; }
@media (min-width: 760px) { .send { grid-template-columns: auto 1fr; align-items: center; gap: 20px; } }
.consent { margin: 0; font-size: 14px; color: var(--muted); }
.withdraw-row { margin: 18px 0 0; }
button.link { background: none; color: var(--muted); min-height: 44px; padding: 10px 0; border-radius: 0; font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { color: var(--danger); opacity: 1; }

.thanks:focus { outline: none; }
.thanks svg { width: 52px; height: 52px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thanks svg circle { stroke: var(--line-strong); }
.thanks svg path { stroke: var(--orange); stroke-width: 2.6; stroke-dasharray: 40; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { .thanks:not([hidden]) svg path { animation: draw .6s .1s ease-out backwards; } }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.thanks h2 { font-size: clamp(30px, 3.8vw, 40px); line-height: 1.1; margin: 14px 0 10px; }
.thanks p { color: var(--muted); max-width: 36em; }
.small { font-size: 14px; color: var(--muted); }
.linkbox { margin: 18px 0; padding: 16px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); }
.linkbox label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.linkbox div { display: flex; gap: 8px; }
.linkbox input { font-size: 13.5px; background: var(--card); min-width: 0; }
.linkbox button { flex: none; }
.linkbox .small { margin: 10px 0 0; }

.getlink { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
.getlink summary { cursor: pointer; font-weight: 600; padding: 12px 0; display: block; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.getlink summary::-webkit-details-marker { display: none; }
.getlink summary::before { content: "+"; display: inline-block; width: 1.1em; color: var(--orange-ink); }
.getlink[open] summary::before { content: "–"; }
.getlink form { display: grid; gap: 12px; margin-top: 10px; max-width: 420px; }
.getlink button { justify-self: start; }
.getlink #link-msg:empty { display: none; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 48px; font-size: 14.5px; color: var(--muted); }
