/* CSP Screener, a Littora service.
   Part 1 = littora.ai home page styles, copied verbatim from the live page's inline <style> (2026-09-29),
   so header, footer, type, colours, buttons and cards match littora.ai exactly.
   Part 2 = screener-only components, built from the same tokens. */

/* Littora type, self-hosted (SIL Open Font License, same files as littora.ai/static/fonts/). */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Spline Sans"; src: url("fonts/spline-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url("fonts/azeret-normal.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

/* ---- Part 1: littora.ai (verbatim) ---- */
:root {
  --bg: #F4F8F9; --card: #fff; --text: #0B1F2A; --muted: #5A6F7A;
  --line: #E3EEF1; --ocean: #0E7C8B; --deep: #0A4F5C; --coral: #D4534A; --mint: #1B9E72;
  --soft: #E7F3F5; --header: 3.75rem;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Spline Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 var(--sans);
}
a { color: var(--ocean); }
.wrap { width: min(72rem, calc(100% - 1.6rem)); margin: 0 auto; }
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,248,249,.88);
  backdrop-filter: saturate(1.1) blur(14px);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
}
.top.scrolled { border-bottom: 1px solid var(--line); }
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; min-height: var(--header);
}
.brand {
  display: flex; align-items: center; gap: .5rem; font-weight: 600;
  letter-spacing: -.03em; text-decoration: none; color: inherit;
}
.brand img { width: 1.7rem; height: 1.7rem; }
.nav { display: flex; gap: .4rem; }
@media (max-width: 640px) { .nav .ghost { display: none; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .45rem .95rem; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer; font: inherit; font-size: .9rem;
}
.btn.ocean { background: var(--ocean); color: #fff; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 .4rem; color: var(--ocean); font-family: var(--mono);
  font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.15rem, 5.4vw, 3.6rem); letter-spacing: -.02em;
  line-height: 1.06; margin: 0 0 .7rem; max-width: 11em;
  font-optical-sizing: auto;
}
h1 .accent { color: var(--ocean); font-style: italic; font-weight: 400; }
h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem); letter-spacing: -.02em;
  line-height: 1.16; margin: 0 0 .45rem; font-optical-sizing: auto;
}
.lead { margin: 0 0 1.1rem; color: var(--muted); font-size: 1.02rem; line-height: 1.5; max-width: 36rem; }
.lead b { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .45rem; }
.muted { color: var(--muted); }
.hero { position: relative; padding: 2rem 0 2.25rem; overflow: hidden; }
.hero .wash {
  position: absolute; inset: -12% -6% auto; height: 22rem; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 48% at 80% 24%, rgba(14,124,139,.10), transparent 68%),
    radial-gradient(ellipse 40% 36% at 10% 90%, rgba(10,79,92,.05), transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: .92fr 1.18fr; gap: 1.75rem; align-items: center; }
}
.frame {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(10,79,92,.08); overflow: hidden;
}
.frame-chrome {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .8rem; border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: .28rem; }
.dots i { width: .4rem; height: .4rem; border-radius: 99px; background: var(--line); display: block; }
.where { font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.frame-body { padding: .85rem .95rem .95rem; }
.cap { font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .1rem; }
.hero-num { font-size: clamp(1.85rem, 3.6vw, 2.45rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 .1rem; font-variant-numeric: tabular-nums; }
.sentence { margin: 0 0 .5rem; color: var(--muted); font-size: .86rem; }
.chart-well { height: 112px; }
.chart-well svg { width: 100%; height: 100%; display: block; }
.kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .4rem; margin-top: .65rem; }
.kpi { background: var(--bg); border-radius: 12px; padding: .45rem .55rem .5rem; }
.kpi .k { font-size: .62rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.kpi .v { font-size: 1.05rem; font-weight: 600; letter-spacing: -.03em; margin-top: .08rem; }
.ok { color: var(--mint); }
.note-line { margin: .65rem 0 0; font-size: .84rem; color: var(--muted); border-left: 2px solid var(--ocean); padding-left: .6rem; }
.mini { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: .7rem; }
.mini th { text-align: left; font-size: .64rem; color: var(--muted); padding: .3rem .35rem .4rem; border-bottom: 1px solid var(--line); }
.mini td { padding: .5rem .35rem; border-bottom: 1px solid var(--line); }
.mini tr:last-child td { border-bottom: 0; }
.leg { font-family: var(--mono); font-size: .8rem; font-weight: 500; }
.chapter { padding: 2.5rem 0; }
@media (min-width: 800px) { .chapter { padding: 3.5rem 0; } }
.rules { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.rule { display: grid; gap: .2rem 1.1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (min-width: 760px) { .rule { grid-template-columns: 2.6rem 14rem 1fr; } }
.rule .ix { font-family: var(--mono); font-size: .68rem; font-weight: 500; color: var(--ocean); letter-spacing: .06em; }
.rule b { font-size: .98rem; }
.rule p { margin: 0; color: var(--muted); font-size: .92rem; }
.how { position: relative; display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 880px) { .how { grid-template-columns: .72fr 1.4fr; align-items: start; } }
.how > input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.how-steps { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .85rem; }
.how-steps label {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: .28rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; cursor: pointer;
}
#tab-scr:checked ~ .how-copy .how-steps label[for="tab-scr"],
#tab-mind:checked ~ .how-copy .how-steps label[for="tab-mind"],
#tab-you:checked ~ .how-copy .how-steps label[for="tab-you"] {
  background: var(--deep); color: #fff; border-color: var(--deep);
}
.how-blurb { display: none; margin: 0; color: var(--muted); font-size: .98rem; max-width: 26rem; }
.how-stage .frame { display: none; }
#tab-scr:checked ~ .how-copy .how-blurb[data-for="scr"],
#tab-mind:checked ~ .how-copy .how-blurb[data-for="mind"],
#tab-you:checked ~ .how-copy .how-blurb[data-for="you"],
#tab-scr:checked ~ .how-stage .frame[data-for="scr"],
#tab-mind:checked ~ .how-stage .frame[data-for="mind"],
#tab-you:checked ~ .how-stage .frame[data-for="you"] { display: block; }
.chip { display: inline-block; border-radius: 999px; padding: .1rem .42rem; font-size: .62rem; font-weight: 600; }
.sample { margin: .55rem 0 0; font-size: .7rem; color: var(--muted); }
.flow { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.flow span { background: var(--soft); color: var(--deep); border-radius: 999px; padding: .38rem .7rem; font-size: .82rem; font-weight: 600; }
.flow i { color: var(--muted); font-style: normal; font-family: var(--mono); }
.tide {
  background: var(--deep); color: #F4F8F9; padding: 2.6rem 0 2.8rem; position: relative; overflow: hidden;
}
.tide .eyebrow { color: #7EB8C1; }
.tide h2 { color: #F4F8F9; }
.tide .lead { color: rgba(244,248,249,.64); }
.tide-mobile { margin-top: 1.1rem; }
.tide-mobile .row {
  display: grid; grid-template-columns: 4.4rem 1fr; gap: .7rem;
  padding: .55rem 0; border-bottom: 1px solid rgba(244,248,249,.12);
}
.tide-mobile .row:last-child { border-bottom: 0; }
.tide-mobile time { font-family: var(--mono); font-size: .8rem; color: #7EB8C1; font-weight: 500; }
.rails { display: grid; gap: 0; margin-top: 1.4rem; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .rails { grid-template-columns: repeat(3, 1fr); } }
.rail { padding: 1.15rem 0 .2rem; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) {
  .rail { padding: 1.2rem 1.25rem .1rem 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .rail:last-child { border-right: 0; padding-right: 0; padding-left: 1.25rem; }
  .rail:nth-child(2) { padding-left: 1.25rem; }
}
.rail-k { font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rail-v { font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.03em; color: var(--deep); margin: .25rem 0; }
.need { margin: 1.1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.need li { list-style: none; padding: .8rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem 1.2rem; }
@media (min-width: 720px) { .need li { grid-template-columns: 13rem 1fr; } }
form { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
input[type=email] {
  flex: 1 1 14rem; min-height: 48px; border: 1px solid var(--line); border-radius: 10px;
  padding: .65rem .8rem; font: inherit; font-size: 16px; background: #fff;
}
.msg { min-height: 1.2rem; margin-top: .5rem; font-size: .88rem; }
.msg.ok { color: var(--mint); }
.msg.bad { color: var(--coral); }
#wait-done[hidden], #wait-form-wrap[hidden] { display: none; }
#wait-done b { display: block; margin-bottom: .4rem; font-size: 1.1rem; }
footer { padding: 1.4rem 0 2.5rem; color: var(--muted); font-size: .84rem; border-top: 1px solid var(--line); }
footer p { margin: .25rem 0; }
.reveal.in { animation: rise .45s ease; }
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.in { animation: none; }
}
  

/* ---- Part 2: screener components ---- */
.nav .btn[aria-current="page"] { border-color: var(--ocean); color: var(--deep); box-shadow: inset 0 -2px 0 var(--ocean); }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 60; }
.skip:focus { left: .8rem; }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
.lead.tight { margin-bottom: 0; }
.fine { margin: .7rem 0 0; font-size: .84rem; color: var(--muted); }
.mini td.num { font-variant-numeric: tabular-nums; }

/* sample email */
.sample-frame { margin-top: 1.25rem; }
.mail-meta { margin: 0; display: grid; gap: .15rem; font-size: .86rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.mail-meta div { display: flex; gap: .6rem; }
.mail-meta dt { width: 4.2rem; flex: none; color: var(--muted); }
.mail-meta dd { margin: 0; }
.ill { border-bottom: 1px dotted var(--muted); font-variant-numeric: tabular-nums; }
.market { margin: .9rem 0 0; }
.market .kpi-row { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .market .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.market .kpi .v { font-size: .9rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.pick { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.pick h3 { margin: 0; font-size: 1.05rem; }
.pick h3 .leg { font-size: 1rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; margin: .65rem 0 0; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--bg); border-radius: 12px; padding: .45rem .55rem .5rem; }
.stats dt { font-size: .62rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.stats dd { margin: .08rem 0 0; font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.facts { margin: .6rem 0 0; }
.facts div { display: grid; gap: .1rem 1.1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
@media (min-width: 760px) { .facts div { grid-template-columns: 13rem 1fr; } }
.facts dt { font-weight: 600; font-size: .9rem; }
.facts dd { margin: 0; color: var(--muted); font-size: .9rem; }
.facts dd ul { margin: 0; padding-left: 1.1rem; }
.mail-foot { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); }

/* worked example */
.calc { margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.calc div { display: grid; gap: .1rem 1.1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (min-width: 760px) { .calc div { grid-template-columns: 2.6rem 14rem 1fr; } }
.calc .ix { font-family: var(--mono); font-size: .68rem; font-weight: 500; color: var(--ocean); letter-spacing: .06em; }
.calc dt { font-weight: 600; }
.calc dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc dd b { color: var(--text); }

/* passes */
.plans { display: grid; gap: .8rem; margin-top: 1.25rem; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.1rem 1.2rem; box-shadow: 0 18px 44px rgba(10,79,92,.06); }
.plan--best { border-color: var(--ocean); }
.plan > h3 { margin: 0; font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-flag { position: absolute; top: -.7rem; right: 1rem; margin: 0; background: var(--deep); color: #fff; border-radius: 999px; padding: .15rem .6rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.plan-price { margin: .35rem 0 .2rem; }
.amount { font-size: clamp(1.85rem, 3.6vw, 2.45rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--deep); }
.amount--tbd { font-family: var(--mono); font-size: 1.35rem; letter-spacing: 0; }
.per { color: var(--muted); font-size: .86rem; }
.save-badge { display: inline-block; align-self: flex-start; margin: .2rem 0 0; background: var(--soft); color: var(--deep); border-radius: 999px; padding: .3rem .65rem; font-size: .8rem; font-weight: 600; }
.save-badge--none { background: var(--bg); color: var(--muted); font-weight: 500; }
.save-sub { font-weight: 400; }
.checks { list-style: none; margin: .8rem 0 1rem; padding: 0; border-top: 1px solid var(--line); flex: 1; }
.checks li { padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.plan .btn { width: 100%; }
.plan .btn[disabled] { background: var(--bg); color: var(--muted); border: 1px dashed var(--line); cursor: not-allowed; gap: .5rem; }
.soon { font-family: var(--mono); font-size: .6rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: var(--soft); color: var(--deep); border-radius: 999px; padding: .1rem .45rem; }
.pp-soon-note, .pp-fallback, .pp-status { margin: .55rem 0 0; font-size: .8rem; color: var(--muted); }
.pp-slot.pp-ready .pp-fallback, .pp-slot.pp-ready .pp-status { display: none; }
.pp-container { min-height: 0; }
.pay-extra { display: grid; gap: 1rem; margin-top: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; }
@media (min-width: 720px) { .pay-extra { grid-template-columns: 10rem 1fr; align-items: center; gap: 1.4rem; } }
.qr { margin: 0; text-align: center; }
.qr img { width: 100%; max-width: 10rem; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.qr figcaption { font-size: .8rem; font-weight: 600; margin-top: .3rem; }
.qr figcaption span { display: block; font-weight: 400; color: var(--muted); }
.pay-steps h3 { margin: 0 0 .3rem; font-size: 1rem; }
.pay-steps ol { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.pay-steps li { padding: .15rem 0; }
.pay-steps li b { color: var(--text); }

/* forms (littora input look) */
.split { display: grid; gap: 1.2rem; }
@media (min-width: 880px) { .split { grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; } }
form.stack { display: grid; gap: .75rem; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; }
.field { display: grid; gap: .3rem; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
.hint { margin: 0; font-size: .8rem; color: var(--muted); }
form.stack input[type=text], form.stack input[type=email], form.stack textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px;
  padding: .65rem .8rem; font: inherit; font-size: 16px; background: #fff; color: var(--text);
}
form.stack textarea { min-height: 4.5rem; resize: vertical; }
form.stack input:focus, form.stack textarea:focus { outline: 2px solid var(--ocean); outline-offset: 0; border-color: var(--ocean); }
fieldset.field { border: 0; padding: 0; }
.radios label { display: flex; align-items: center; gap: .5rem; font-weight: 500; min-height: 40px; padding: .2rem .7rem; border: 1px solid var(--line); border-radius: 10px; margin-top: .3rem; cursor: pointer; }
.radios input { accent-color: var(--ocean); width: 1.05rem; height: 1.05rem; }
.err { display: none; margin: 0; font-size: .8rem; color: var(--coral); }
input:user-invalid, textarea:user-invalid, .user-invalid-fallback { border-color: var(--coral) !important; }
input:user-invalid ~ .err, textarea:user-invalid ~ .err, .user-invalid-fallback ~ .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.stack .btn { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; }
.form-status { min-height: 1.2rem; margin: 0; font-size: .88rem; }
.form-status.ok { color: var(--mint); font-weight: 600; }
.form-status.bad { color: var(--coral); }
form.done .field, form.done .btn { display: none; }
.privacy { margin: 0; font-size: .78rem; color: var(--muted); }

/* FAQ + risk (littora .need rows) */
.faq { margin-top: 1.1rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .85rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ocean); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 .9rem; color: var(--muted); max-width: 44rem; }
.need li p { margin: 0; }

/* status pages */
.status { min-height: 50vh; }
.status .wrap { position: relative; }
.status .hero-cta { margin-top: 1rem; }


/* ---- Part 3: account, auth, admin (same tokens) ---- */
.chip-acme { background: #DCEFE6; color: #1B6B45; }
.chip-nord { background: #E7F3F5; color: #0A4F5C; }
.pay-extra--simple { grid-template-columns: 1fr; }
form.stack input[type="password"],
form.stack input[type="number"],
form.stack input[type="text"],
form.stack input[type="date"],
form.stack input[type="email"],
form.stack select {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px;
  padding: .65rem .8rem; font: inherit; font-size: 16px; background: #fff; color: var(--text);
}
form.stack select { appearance: auto; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: .25rem; accent-color: var(--ocean); width: 1.05rem; height: 1.05rem; flex: none; }
.alert { background: var(--soft); border-radius: 12px; padding: .75rem .85rem; margin: 0 0 .9rem; }
.alert.bad { background: #FDECEA; color: #9E2E28; }
.alert.ok { background: #E5F6EF; color: #146B48; }
.table-wrap { margin-top: .6rem; max-width: 100%; min-width: 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; }
table.data th { text-align: left; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .4rem .4rem .5rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
table.data td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; min-width: 0; }
table.data tr:last-child td { border-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.actions form { margin: 0; }
.narrow { max-width: 40rem; }
.help { margin: .4rem 0 0; color: var(--muted); font-size: .88rem; }
.account-sections h2 { margin-top: 2.25rem; }
html, body { overflow-x: clip; max-width: 100%; }
.hp { left: auto; clip: rect(0, 0, 0, 0); }
.skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.skip:focus { position: static; width: auto; height: auto; margin: .4rem; clip: auto; overflow: visible; }
.btn { white-space: nowrap; }
.btn.small { min-height: 36px; padding: .3rem .7rem; font-size: .82rem; }
.btn.danger { background: #fff; color: var(--coral); border: 1px solid var(--coral); }
form.stack .btn { width: auto; }
.auth-card .btn, .auth-card form.stack .btn { width: 100%; }
.stack-tight { margin-top: .5rem; }
.flush { margin: 0; }
.banner { margin: 1rem auto 0; }
form.inline-form { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
.admin-nav {
  display: flex; flex-wrap: nowrap; gap: .4rem; margin: .4rem 0 1rem;
  max-width: 100%; min-width: 0; overflow-x: auto;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { flex: none; scroll-snap-align: start; }
.admin-nav a[aria-current="page"] { border-color: var(--ocean); color: var(--deep); }
.admin-head h1 { max-width: none; overflow-wrap: anywhere; }
.dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; margin: .8rem 0 1rem; }
@media (min-width: 800px) { .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .7rem .2rem .75rem 0; min-width: 0; }
.stat .label {
  margin: 0; color: var(--muted); font-family: var(--mono); font-size: .64rem;
  letter-spacing: .08em; font-weight: 500; text-transform: uppercase;
}
.stat .num {
  margin: .25rem 0 0; font-family: var(--sans); font-weight: 600; font-size: 1.7rem;
  letter-spacing: -.03em; color: var(--deep); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.flag { display: inline-block; background: #FDECEA; color: #9E2E28; border-radius: 999px; padding: .12rem .5rem; font-size: .75rem; font-weight: 600; }
.chip.mint { background: #DCEFE6; color: #1B6B45; }
.chip.ocean { background: var(--soft); color: var(--deep); }
.chip.muted { background: var(--bg); color: var(--muted); }
.chip.coral { background: #FDECEA; color: #9E2E28; }
pre.audit-json { white-space: pre-wrap; overflow-wrap: anywhere; margin: .35rem 0 0; font: .75rem/1.35 var(--mono); max-width: 100%; }
details.audit-change > summary { cursor: pointer; }
.stack-forms { display: grid; gap: 1.1rem; margin-top: 1rem; }
.stack-forms h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .6rem; }
.export-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 1rem; }
.csrf-hold {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.auth-screen { display: flex; justify-content: center; padding: 2.2rem 0 3rem; }
.auth-card { width: min(22rem, calc(100% - 1.6rem)); }
.auth-card .mark { width: 1.7rem; height: 1.7rem; display: block; }
.auth-card h1 { font-size: 1.85rem; line-height: 1.12; max-width: none; margin: .45rem 0 .4rem; }
.auth-card form.stack { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.auth-error { margin: 0 0 .6rem; color: var(--coral); font-size: .9rem; }
.auth-card .fine { color: var(--muted); font-size: .84rem; }
.hairline {
  display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: baseline;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.pass-name { font-weight: 600; }
.empty { margin: .35rem 0 0; color: var(--muted); }
.panel { margin-top: 1.6rem; padding-top: .2rem; }
.buy-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.buy-row .btn { width: 100%; }
form.stack.quiet {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  padding: 0 0 .9rem; border-bottom: 1px solid var(--line);
}
details.fold { border-bottom: 1px solid var(--line); }
details.fold > summary {
  cursor: pointer; padding: .85rem 0; font-weight: 600; list-style: none;
}
details.fold > summary::-webkit-details-marker { display: none; }
.user-layout { display: grid; gap: 1.4rem; min-width: 0; }
.user-main, .user-side, .table-wrap, main { min-width: 0; }
@media (min-width: 960px) {
  .user-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); align-items: start; }
}
.review-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.when { white-space: nowrap; }
table.data td.mono-id {
  font-family: var(--mono); font-size: .78rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
tr.link-row { position: relative; }
a.rowhit::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 639px) {
  form.stack .btn { width: 100%; }
  .buy-row { grid-template-columns: 1fr; }
  table.data thead {
    position: absolute; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { padding: .35rem 0; border-bottom: 1px solid var(--line); }
  table.data td { border: 0; padding: .28rem 0; text-align: left; }
  table.data td[data-label]::before {
    content: attr(data-label); display: block; font-family: var(--mono);
    font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  table.data td.when, table.data td.mono-id {
    white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere;
  }
  table.data td.num { text-align: left; }
  table.data td.col-optional { display: none; }
}

/* example card: one real card copied from a board PDF */
.board-card { container-type: inline-size; }
.card-head h3 { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.card-rank {
  display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 999px;
  background: var(--deep); color: #fff; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card-sector { font-size: .82rem; font-weight: 500; color: var(--muted); }
.card-line { margin: .65rem 0 0; padding: .55rem .7rem; background: var(--soft); border-radius: 10px; font-size: .9rem; line-height: 1.45; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid dd { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card-grid dd.sub { margin-top: .12rem; font-size: .72rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
@container (min-width: 40rem) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
