/* Liquid glass on black. Earlier looks are kept in style.abyss.css and style.light.css. */
:root {
  color-scheme: dark;
  --ink: #f5f7f8;
  --muted: #9aa4ab;
  --line: rgba(255, 255, 255, .13);
  --field: rgba(255, 255, 255, .06);
  --ice: #8fe3ff;
  --ice-soft: rgba(143, 227, 255, .14);
  --good: #5ef2b0;
  --good-soft: rgba(94, 242, 176, .15);
  --warn: #ffd166;
  --warn-soft: rgba(255, 209, 102, .15);
  --bad: #ff8078;
  --bad-soft: rgba(255, 128, 120, .16);
  --radius: 26px;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --glass-bg: linear-gradient(140deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .07));
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(255, 255, 255, .07), inset 1px 0 0 rgba(255, 255, 255, .08), 0 14px 36px rgba(0, 0, 0, .5);
  --blur: blur(26px) saturate(190%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #000; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #000; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
h2 { font-size: 1.4rem; line-height: 1.18; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 .6rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Long text: titles break into even lines, body text avoids a lone last word. */
h2, .list .t, .hero .status, .novideo b { text-wrap: balance; }
p, .hint, ol.steps .lines span, .att .b, td, ul.todo li, .list .t small, .hero .sub { text-wrap: pretty; }
h2, .list .t, ol.steps li, p, td { overflow-wrap: break-word; }

/* chip label, used for every section heading */
h3, .chip {
  display: inline-block; margin: 0 0 .8rem; padding: .32rem .75rem; border-radius: 99px;
  font: 700 .64rem/1.2 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: rgba(255, 255, 255, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* glass surface */
.card, .hero, .strip, .list a, .tabs, .btn, .toast {
  background: var(--glass-bg); border: 1px solid var(--line); box-shadow: var(--glass-edge);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

/* colour drifting in the dark, so the glass has something to bend */
.deep { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #000; pointer-events: none; }
.deep::before, .deep::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.deep::before {
  width: 95vmax; height: 70vmax; left: -30vmax; top: -22vmax;
  background: radial-gradient(closest-side, rgba(0, 150, 190, .55), rgba(0, 70, 120, .25) 60%, transparent);
  animation: drift 26s ease-in-out infinite alternate;
}
.deep::after {
  width: 80vmax; height: 80vmax; right: -34vmax; bottom: -30vmax;
  background: radial-gradient(closest-side, rgba(30, 60, 170, .5), rgba(0, 110, 120, .22) 60%, transparent);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(12vmax, 9vmax) scale(1.15); } }

/* splash: dim logo, light sweeps across, glow blooms, logo scales through */
#splash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #000; transition: opacity .55s ease; }
#splash.out { opacity: 0; pointer-events: none; }
#splash.out .logo { transform: scale(1.5); transition: transform .6s cubic-bezier(.5, 0, .8, .4); }
#splash::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120vmin; height: 46vmin; transform: translate(-50%, -50%) scale(.5);
  background: radial-gradient(closest-side, rgba(120, 220, 255, .5), rgba(40, 120, 200, .16) 55%, transparent);
  filter: blur(26px); opacity: 0; animation: bloom 2.6s ease-out .5s forwards;
}
#splash .logo {
  position: relative; display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; color: #aeb7be;
  transform: scale(.86); opacity: 0; animation: logoIn 2.5s cubic-bezier(.2, .7, .2, 1) .1s forwards;
}
/* brushed metal with a band of light that travels across the mark, then the word */
#splash .metal {
  background:
    linear-gradient(105deg, transparent 40%, #fff 50%, transparent 60%) no-repeat 140% 0 / 300% 100%,
    linear-gradient(180deg, #e9eef1 0%, #99a3aa 47%, #4c555c 53%, #aab3b9 100%);
  animation: sheen 1.1s ease-in-out .7s forwards;
}
#splash .mark {
  width: clamp(44px, 13vw, 62px); aspect-ratio: 3/2; flex: none;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 26q0-18 18-18h68q18 0 18 18v12q0 20-20 20H80q-8 0-11-8l-9-16-9 16q-3 8-11 8H28Q8 58 8 38z'/%3E%3Cpath d='M14 74q11-9 23 0t23 0 23 0 23 0' stroke-width='5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: var(--m); mask: var(--m);
}
#splash .word {
  font: italic 900 clamp(1.9rem, 9.6vw, 3.1rem)/1 "Arial Black", "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; white-space: nowrap;
  padding-right: .12em; -webkit-background-clip: text; background-clip: text; color: transparent; animation-delay: .85s;
}
@keyframes logoIn { 0% { opacity: 0; transform: scale(.86); } 25% { opacity: .5; } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1.06); } }
@keyframes sheen { to { background-position: -40% 0, 0 0; } }
@keyframes bloom { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 45% { opacity: 1; } 100% { opacity: .55; transform: translate(-50%, -50%) scale(1.15); } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: center; min-height: 52px;
  padding: calc(.5rem + env(safe-area-inset-top)) 3.2rem .5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.bar h1 { margin: 0; font: 700 .74rem system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.home .bar h1 { font: italic 900 .95rem "Arial Black", "Segoe UI", system-ui, sans-serif; letter-spacing: .02em; color: #c5ccd1; }
.back {
  position: absolute; left: .8rem; bottom: .35rem; width: 40px; height: 40px; border-radius: 50%; font-size: 1.6rem; line-height: 1; padding: 0 2px 3px 0;
  color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

main { max-width: 620px; margin: 0 auto; padding: .6rem 1rem calc(7.5rem + env(safe-area-inset-bottom)); animation: up .4s cubic-bezier(.2, .7, .2, 1); }
.card { border-radius: var(--radius); padding: 1.15rem; margin-bottom: 1rem; }

/* floating tab bar */
.tabs {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: calc(.9rem + env(safe-area-inset-bottom));
  width: min(calc(100% - 1.6rem), 440px); display: flex; padding: .35rem; border-radius: 99px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
}
.tabs[hidden] { display: none; }
.tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem 0 .4rem; border-radius: 99px;
  color: #a9b2b8; text-decoration: none; font: 600 .6rem system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: #fff; background: rgba(255, 255, 255, .17); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 10px rgba(0, 0, 0, .3); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 52px; padding: .6rem 1.3rem; border-radius: 99px;
  font-weight: 650; text-decoration: none; color: var(--ink); transition: transform .14s;
}
.btn:active { transform: scale(.96); }
.btn.primary, .btn.dark {
  color: #05090b; border-color: rgba(255, 255, 255, .7);
  background: linear-gradient(180deg, #ffffff, #cfd8dd); box-shadow: inset 0 1px 0 #fff, 0 8px 26px rgba(143, 227, 255, .28);
}
.btn.danger { color: var(--bad); }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .3; cursor: default; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; }
.row > .btn { flex: 1 1 140px; }
.link { background: none; border: 0; padding: 0; color: var(--ice); text-decoration: underline; font-size: .85rem; }

/* confirmation dialog */
.modal {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 1.2rem;
  background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .2s ease-out;
}
.sheet {
  width: min(100%, 360px); padding: 1.3rem; border-radius: 28px; text-align: center;
  background: linear-gradient(140deg, rgba(60, 70, 78, .92), rgba(24, 28, 32, .94)); border: 1px solid var(--line); box-shadow: var(--glass-edge);
  animation: pop .28s cubic-bezier(.3, 1.4, .5, 1);
}
.sheet p { margin: .2rem 0 1.2rem; font-size: 1rem; line-height: 1.45; text-wrap: balance; }
.sheet .row { flex-wrap: nowrap; }
.sheet .row > .btn { flex: 1 1 0; padding: .6rem .5rem; font-size: .92rem; }
.btn.bad { background: linear-gradient(180deg, #ff968f, #f0584e); color: #2a0503; border-color: rgba(255, 255, 255, .5); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }

/* photo crop editor */
.sheet.crop { width: min(100%, 380px); padding: 1.1rem 1.1rem 1.2rem; }
.crop h3 { margin-bottom: 1rem; }
.stage {
  position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; border-radius: 22px; overflow: hidden;
  background: #000; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.stage:active { cursor: grabbing; }
.stage canvas { display: block; width: 100%; height: 100%; }
/* dims everything outside the circle that will become the photo */
.stage .ring {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .58), inset 0 0 0 2px rgba(255, 255, 255, .85);
}
.crop .small { margin: .8rem 0 .4rem; }
.zoom { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 1.1rem; }
.zoom input { flex: 1; accent-color: #fff; height: 32px; }
.zbtn {
  flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; line-height: 1; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid var(--line);
}

/* report: two-part switch, each part slides its table down */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.seg button {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .5rem .8rem; border-radius: 99px;
  font-weight: 650; font-size: .92rem; color: #c3cbd0; background: var(--glass-bg); border: 1px solid var(--line); box-shadow: var(--glass-edge);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: background .25s, color .25s;
}
.seg button i {
  width: 8px; height: 8px; font-size: 0; border-right: 2px solid; border-bottom: 2px solid; margin-top: -4px;
  transform: rotate(45deg); transition: transform .35s cubic-bezier(.3, .8, .3, 1), margin .35s;
}
.seg button[aria-expanded="true"] { color: #05090b; background: linear-gradient(180deg, #fff, #cfd8dd); border-color: #fff; }
.seg button[aria-expanded="true"] i { transform: rotate(225deg); margin-top: 4px; }
.fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.3, .8, .3, 1), opacity .35s; }
.fold.open { grid-template-rows: 1fr; opacity: 1; }
.fold-in { min-height: 0; overflow: hidden; }
.fold:not(.open) { pointer-events: none; }

/* profile */
#pf { position: relative; }
#pf h2 { padding-right: 7.5rem; }
.btn.mini { min-height: 36px; padding: .3rem .8rem; font-size: .76rem; }
.corner-btn { position: absolute; top: .9rem; right: .9rem; z-index: 1; }
.rep-top { position: relative; }
.pf-photo { display: grid; place-items: center; margin: 1.2rem 0 1.4rem; }
.pf-photo .avatar { width: 112px; height: 112px; font-size: 2.2rem; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.btn.tool { flex-direction: column; gap: .45rem; min-height: 96px; padding: .8rem .4rem; border-radius: 22px; font-size: .78rem; line-height: 1.25; text-align: center; text-wrap: balance; }
.tool svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.who { display: flex; align-items: center; gap: 1rem; }
.strip { display: flex; align-items: center; gap: .85rem; padding: .6rem 1rem .6rem .6rem; border-radius: 99px; margin-bottom: 1rem; color: inherit; text-decoration: none; }
.strip .avatar { width: 46px; height: 46px; font-size: 1rem; }
.strip .name { font-weight: 700; line-height: 1.2; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem;
  background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.who .name { font-size: 1.2rem; font-weight: 750; }
.ids { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.ids b { color: var(--ink); font: 600 .82rem var(--mono); }
label.field { display: block; margin-bottom: .9rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
label.field input, textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .85rem 1rem; font-size: 1rem; font-weight: 400; color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; background: var(--field); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4);
}
::placeholder { color: #6d777e; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: rgba(143, 227, 255, .7); box-shadow: 0 0 0 4px var(--ice-soft); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* home hero cards */
.hero { position: relative; display: block; overflow: hidden; border-radius: 30px; padding: 1rem 1.1rem 1.3rem; margin-bottom: 1rem; text-align: center; color: inherit; text-decoration: none; transition: transform .16s; }
.hero:active { transform: scale(.985); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; }
.hero.skills::before { background: radial-gradient(90% 70% at 50% -10%, rgba(60, 200, 235, .5), transparent 70%), radial-gradient(70% 60% at 0% 110%, rgba(0, 90, 150, .5), transparent 70%); }
.hero.water::before { background: radial-gradient(90% 70% at 50% -10%, rgba(70, 110, 240, .45), transparent 70%), radial-gradient(70% 60% at 100% 110%, rgba(0, 150, 150, .4), transparent 70%); }
.hero .chip { position: absolute; left: .9rem; top: .9rem; margin: 0; }
.hero .go { position: absolute; right: 1.1rem; top: .8rem; color: rgba(255, 255, 255, .6); font-size: 1.2rem; }
.arc { display: block; width: min(100%, 270px); margin: 1.6rem auto 0; overflow: visible; }
.arc circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.arc .track { stroke: rgba(255, 255, 255, .16); }
.arc .val-arc { stroke: #fff; filter: drop-shadow(0 0 7px rgba(143, 227, 255, .95)); }
.arc.pass .val-arc { stroke: var(--good); filter: drop-shadow(0 0 7px rgba(94, 242, 176, .9)); }
.arc .mark { stroke: var(--warn); stroke-width: 3; stroke-linecap: round; }
.arc .val { fill: #fff; font: 300 58px system-ui, sans-serif; letter-spacing: -.03em; }
.arc .of { fill: var(--muted); font: 600 10px system-ui, sans-serif; letter-spacing: .2em; }
.hero .status { margin-top: -.6rem; font-size: 1.15rem; font-weight: 650; }
.hero .status.pass { color: var(--good); }
.hero .status.fail { color: var(--bad); }
.hero .sub { font-size: .85rem; color: var(--muted); }
ul.todo { list-style: none; margin: .9rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--line); font-size: .82rem; color: #c3cbd0; display: grid; gap: .25rem; }
.pill { display: inline-block; padding: .22rem .7rem; border-radius: 99px; font: 700 .64rem system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.pill.pass { background: var(--good-soft); color: var(--good); }
.pill.fail { background: var(--bad-soft); color: var(--bad); }
.pill.prog { background: var(--warn-soft); color: var(--warn); }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.list-head b { font: 300 2.4rem/1 system-ui, sans-serif; letter-spacing: -.03em; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; text-decoration: none; color: inherit; border-radius: 22px; margin-bottom: .6rem; min-height: 66px; transition: transform .14s; }
.list a:active { transform: scale(.98); }
.num { flex: none; width: 28px; color: var(--muted); font: 600 .8rem var(--mono); }
.list .t { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.list .t small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; margin-top: .15rem; }
.badge { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 600 1.05rem system-ui, sans-serif; color: #6d777e; border: 1px dashed rgba(255, 255, 255, .22); }
.badge.s5, .badge.s4 { background: var(--good-soft); color: var(--good); border: 1px solid rgba(94, 242, 176, .6); }
.badge.s3 { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(255, 209, 102, .6); }
.badge.s2, .badge.s1, .badge.s0 { background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(255, 128, 120, .6); }
.badge.s0 { font-size: .6rem; font-weight: 700; }

/* test screen */
video { display: block; width: 100%; border-radius: 20px; background: #000; aspect-ratio: 16/9; border: 1px solid var(--line); }
/* vertical 9:16 video: as tall as fits comfortably, centred */
video.tall { width: auto; max-width: 100%; height: min(66vh, 560px); aspect-ratio: 9/16; margin: 0 auto; }
.novideo { aspect-ratio: 16/9; border-radius: 20px; display: grid; place-items: center; text-align: center; padding: 1rem; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 255, 255, .2); color: var(--muted); font-size: .88rem; }
.novideo b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .2rem; }
.vmeta { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; min-height: 24px; }
details summary { cursor: pointer; font-weight: 650; padding: .2rem 0; }
ol.steps { list-style: none; margin: .7rem 0 0; padding: 0; }
ol.steps li { display: flex; gap: .7rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .93rem; }
ol.steps li .k { flex: none; width: 88px; font: 700 .62rem system-ui, sans-serif; letter-spacing: .08em; color: var(--ice); padding-top: .28rem; }
ol.steps li .lines { display: grid; gap: .45rem; flex: 1; min-width: 0; }
ol.steps li.solo .k { width: auto; padding: 0; font-size: .7rem; letter-spacing: .14em; color: #fff; }
ol.steps li.tip .k { color: var(--warn); }
ol.steps li.section { background: rgba(255, 255, 255, .08); margin: .2rem -.5rem; padding: .6rem .5rem; border-radius: 12px; border: 0; font-weight: 600; }
.scores { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.scores button {
  flex: 1 1 0; min-width: 50px; max-width: 76px; aspect-ratio: 1; border-radius: 50%; font: 400 1.5rem system-ui, sans-serif; color: #c3cbd0;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background .2s;
}
.scores button.inc { flex: 1 1 100%; max-width: none; aspect-ratio: auto; min-height: 46px; border-radius: 99px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
.scores button[aria-pressed="true"] { background: linear-gradient(180deg, #fff, #cfd8dd); color: #05090b; font-weight: 700; border-color: #fff; transform: scale(1.12); box-shadow: 0 0 26px rgba(143, 227, 255, .55); }
.scores button.inc[aria-pressed="true"] { background: var(--bad); color: #2a0503; border-color: var(--bad); transform: none; box-shadow: 0 0 22px rgba(255, 128, 120, .45); }
.hint { min-height: 2.6em; margin: 1rem 0 .4rem; font-size: .88rem; color: var(--muted); text-align: center; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .62rem system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
td.c, th.c { text-align: center; }
td.c { font-weight: 700; }
.saved { border-color: rgba(94, 242, 176, .55); background: linear-gradient(140deg, rgba(94, 242, 176, .22), rgba(94, 242, 176, .06)); }
.att { display: flex; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--line); align-items: flex-start; }
.att:first-of-type { border-top: 0; }
.att .badge { width: 36px; height: 36px; font-size: .95rem; }
.att .b { flex: 1; min-width: 0; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.att .b small { display: block; color: var(--muted); font-size: .74rem; margin-bottom: .15rem; }

.toast {
  position: fixed; left: 50%; bottom: calc(6.2rem + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 20;
  color: #fff; font-weight: 600; padding: .6rem 1.1rem; border-radius: 99px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; max-width: 90vw;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* report */
.rep-head { display: flex; gap: 1rem; align-items: center; }
.rep-head .avatar { width: 84px; height: 84px; }
.rep-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: .8rem; margin-top: 1rem; }
.rep-sum > div { border: 1px solid var(--line); border-radius: 18px; padding: .8rem; background: rgba(255, 255, 255, .04); }
.rep-sum > div > .small { display: block; min-height: 2.5em; }
.facts { list-style: none; margin: .6rem 0 0; padding: 0; font-size: .82rem; color: var(--muted); display: grid; gap: .2rem; }
.rep-sum .big { font: 300 1.9rem/1.1 system-ui, sans-serif; letter-spacing: -.02em; margin: .2rem 0 .4rem; }
.rep table th:first-child { width: 2.2rem; }
.rep table th.c { width: 4.2rem; }
.rep td.log { font-size: .8rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.rep td.log b { color: var(--ink); }
.sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; font-size: .8rem; color: var(--muted); }
.sign div { border-top: 1px solid var(--ink); padding-top: .3rem; }

@media (max-width: 340px) { .rep-sum { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  h2 { font-size: 1.25rem; }
  ol.steps li { gap: .6rem; font-size: .95rem; line-height: 1.4; }
  ol.steps li .k { width: 78px; }
  .list a { padding: .8rem .85rem; gap: .65rem; }
  .list .t { font-size: .95rem; }
  .num { width: 22px; }
  table { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
}

/* the PDF stays light so it prints cleanly */
@media print {
  @page { size: A4; margin: 14mm; }
  :root {
    color-scheme: light; --line: #d5dde2; --ink: #14242e; --muted: #5d707c; --ice: #0b7285;
    --good: #1b8a5a; --good-soft: #e2f4ea; --warn: #9a6412; --warn-soft: #fbf0d9; --bad: #c0392b; --bad-soft: #fbe6e3;
  }
  html, body { background: #fff !important; font-size: 11pt; }
  .no-print, .deep, #splash { display: none !important; }
  main { max-width: none; padding: 0; animation: none; }
  .card { background: none; border: 0; box-shadow: none; padding: 0; margin-bottom: 1.2rem; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .fold { display: block; opacity: 1; }
  .fold-in { overflow: visible; }
  h3 { background: none; box-shadow: none; padding: 0; color: var(--muted); }
  .avatar { background: #e3f4f6; color: #0b7285; border-color: #0b7285; box-shadow: none; }
  .rep-sum > div { background: none; }
  tr, .rep-sum, .rep-head { break-inside: avoid; }
  h2 { break-after: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
