:root {
  --bg: #0b0714; --panel: rgba(255,255,255,.055); --panel2: rgba(255,255,255,.1);
  --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.18);
  --text: #f4effd; --muted: #a59cc0; --accent: #c56cff;
  --good: #3ddc97; --bad: #ff5f6d;
  --grad: linear-gradient(135deg, #a855f7 0%, #ec4899 65%, #f97316 130%);
  --r: 20px; --dock-h: 72px;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
body { min-height: 100dvh; overflow-x: hidden; background: var(--bg); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dock a, .share-grid a { text-align: center; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }

.splash { position: fixed; inset: 0; display: grid; place-items: center; }
.logo-pulse { font-size: 64px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }

/* ambient background */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .42; animation: float 18s ease-in-out infinite; }
.bg-orbs i:nth-child(1) { width: 380px; height: 380px; background: #7c3aed; top: -140px; left: -120px; }
.bg-orbs i:nth-child(2) { width: 320px; height: 320px; background: #db2777; top: 35%; right: -160px; animation-delay: -6s; }
.bg-orbs i:nth-child(3) { width: 300px; height: 300px; background: #0ea5e9; bottom: -160px; left: 15%; opacity: .22; animation-delay: -12s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,40px) scale(1.1); } }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: rgba(11,7,20,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { font-size: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); box-shadow: 0 6px 20px rgba(236,72,153,.35); }
.brand b { font: 700 18px/1.1 var(--display); display: block; letter-spacing: -.01em; }
.brand small { color: var(--muted); font-size: 12px; }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: 13px; max-width: 44vw; }
.me-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { max-width: 652px; margin: 0 auto; padding-block: 16px calc(var(--dock-h) + 40px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--bg); }
.demo-banner { margin: 0 0 14px; padding: 8px 12px; border-radius: 12px; font-size: 12px; text-align: center; background: rgba(14,165,233,.12); border: 1px solid rgba(14,165,233,.3); color: #bae6fd; }

/* avatars */
.ava { --h: 280; display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; font-size: 20px;
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 90% 72%), hsl(calc(var(--h) + 40) 80% 40%));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.ava.sm { width: 28px; height: 28px; font-size: 15px; }
.ava.lg { width: 60px; height: 60px; font-size: 32px; }
.ava.xl { width: 92px; height: 92px; font-size: 50px; }

/* type & layout helpers */
.page-head { margin: 4px 0 14px; }
.title { font: 700 28px/1.15 var(--display); margin: 0 0 4px; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; gap: 6px; }
.grow { flex: 1; min-width: 0; }
.sec { font: 700 16px var(--display); margin: 22px 0 10px; }

/* segmented control */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.seg a, .seg button { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s; text-align: center; }
.seg .on { background: var(--panel2); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.seg.tabs { display: flex; margin: 16px 0 12px; }
.seg.tabs button { flex: 1; padding: 8px 6px; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 14px; font-weight: 600; background: var(--panel2); border: 1px solid var(--line); transition: transform .12s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 24px rgba(236,72,153,.3); }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255,95,109,.15); border-color: rgba(255,95,109,.4); color: #ffb0b7; }
.btn.big { width: 100%; padding: 14px; font-size: 16px; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .55; pointer-events: none; }
input, textarea { width: 100%; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line2); outline: none; transition: .2s; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(197,108,255,.15); }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
label > input, label > .handle-input { margin-top: 6px; }
.hint { display: block; color: var(--muted); font-weight: 400; margin-top: 6px; font-size: 12px; }
.handle-input { display: flex; align-items: center; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line2); padding-left: 14px; transition: .2s; }
.handle-input > span { color: var(--accent); font-weight: 700; }
.handle-input input { border: 0; background: transparent; padding-left: 4px; box-shadow: none !important; outline: none; }
/* The wrapper draws the one focus ring (:focus-within); the inner field must not draw a second, offset one. */
.handle-input input:focus-visible { outline: none; }
.handle-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(197,108,255,.15); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); font-size: 13px; }
label.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #c56cff; }
.warn { padding: 10px 12px; border-radius: 12px; background: rgba(255,195,92,.1); border: 1px solid rgba(255,195,92,.3); color: #ffd99a; font-size: 13px; margin-bottom: 14px; }
.errbox { padding: 10px 12px; border-radius: 12px; background: rgba(255,95,109,.12); border: 1px solid rgba(255,95,109,.4); color: #ffc2c7; font-size: 13px; margin-bottom: 14px; }

.card { border-radius: var(--r); padding: 20px; }
.glass { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* auth */
.auth-hero { text-align: center; margin-bottom: 18px; }
.big-emoji { font-size: 58px; display: inline-block; animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.05); } }
.auth-hero h1 { font: 700 30px/1.1 var(--display); margin: 8px 0; letter-spacing: -.02em; }
.auth-hero p { margin: 0; color: var(--muted); }
.auth .seg { display: flex; margin-bottom: 18px; }
.auth .seg button { flex: 1; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 20px; }
.features div { padding: 10px 6px; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }
.features b { display: block; font-size: 20px; margin-bottom: 2px; }

/* feed */
.compose-bar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--panel); border: 1px dashed var(--line2); color: var(--muted); text-align: left; transition: .2s; }
.compose-bar:hover { border-color: var(--accent); color: var(--text); }
.feed { display: flex; flex-direction: column; gap: 14px; }
.gcard { --tag: 285; position: relative; padding: 16px 16px 8px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.25); overflow: hidden; touch-action: manipulation; animation: rise .35s ease both; }
.gcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(hsl(var(--tag) 95% 65%), transparent); }
.gcard::after { content: ""; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; border-radius: 50%; background: hsl(var(--tag) 90% 60% / .13); filter: blur(30px); pointer-events: none; }
.gcard header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.rep-by { font-size: 12px; color: var(--good); font-weight: 600; margin-bottom: 8px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--muted); font-size: 12px; }
.tag { --tag: 285; flex: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: hsl(var(--tag) 95% 82%); background: hsl(var(--tag) 90% 60% / .16); border: 1px solid hsl(var(--tag) 90% 60% / .3); }
.gtext { margin: 0 0 8px; font-size: 16.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.acts { display: flex; gap: 2px; border-top: 1px solid var(--line); padding-top: 6px; margin: 0 -6px; }
.act { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; transition: .15s; }
.act:hover { background: var(--panel); color: var(--text); }
.act .ic { font-size: 18px; line-height: 1; display: inline-block; }
.act.like.on { color: #ff5c8a; }
.act.like.on .ic { animation: pop .35s; }
.act.rep.on { color: var(--good); }
.act.more { margin-left: auto; font-size: 20px; }
.burst { position: absolute; left: 50%; top: 45%; font-size: 92px; transform: translate(-50%,-50%) scale(0); opacity: 0; pointer-events: none; filter: drop-shadow(0 8px 24px rgba(255,60,120,.6)); }
.burst.go { animation: burst .75s ease-out; }
@keyframes burst { 0% { transform: translate(-50%,-50%) scale(0); opacity: 0; } 15% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } 35% { transform: translate(-50%,-50%) scale(.95); opacity: 1; } 100% { transform: translate(-50%,-90%) scale(1.1); opacity: 0; } }
@keyframes pop { 50% { transform: scale(1.45); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* dock */
.dock { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 6px; border-radius: 24px; background: rgba(20,12,36,.85); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--line2); box-shadow: 0 12px 40px rgba(0,0,0,.5); width: min(440px, calc(100% - 24px)); }
.dock a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 16px; color: var(--muted); font-size: 11px; font-weight: 600; transition: .2s; }
.dock a span { font-size: 20px; filter: grayscale(.7); transition: .2s; }
.dock a.on { color: var(--text); background: var(--panel2); }
.dock a.on span { filter: none; }
.fab { flex: none; width: 54px; height: 54px; border-radius: 18px; background: var(--grad); color: #fff; font-size: 30px; font-weight: 300; line-height: 1; box-shadow: 0 8px 24px rgba(236,72,153,.45); margin: 0 4px; transition: transform .2s; }
.fab:active { transform: scale(.92) rotate(90deg); }

/* bottom sheet */
#sheet-root .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5,2,12,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
#sheet-root .sheet { position: fixed; left: 50%; bottom: 0; z-index: 41; width: min(560px, 100%); max-height: 88dvh; overflow: auto; transform: translate(-50%, 100%); transition: transform .3s cubic-bezier(.2,.9,.3,1); padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #170d29; border: 1px solid var(--line2); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
#sheet-root.open .scrim { opacity: 1; }
#sheet-root.open .sheet { transform: translate(-50%, 0); }
.grab { width: 42px; height: 5px; border-radius: 9px; background: var(--line2); margin: 0 auto 12px; }
.sheet h2 { font: 700 22px var(--display); margin: 4px 0 12px; }
.menu { display: flex; flex-direction: column; gap: 6px; }
.menu button { text-align: left; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-weight: 500; }
.menu button.danger { color: #ffb0b7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { --tag: 285; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: hsl(var(--tag) 70% 80%); background: hsl(var(--tag) 80% 60% / .08); border: 1px solid hsl(var(--tag) 80% 60% / .25); transition: .15s; }
.chip.on { background: hsl(var(--tag) 90% 60% / .32); color: #fff; border-color: hsl(var(--tag) 90% 65% / .8); transform: scale(1.04); }
/* flairs */
.flairbar { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.flairbar::-webkit-scrollbar { display: none; }
.flairbar .chip { flex: none; white-space: nowrap; }
a.tag:hover { border-color: hsl(var(--tag) 90% 65% / .7); }
select.qflair { --tag: 285; flex: none; font-family: inherit; font-weight: 600; font-size: 12px; padding: 4px 8px; border-radius: 999px; color: hsl(var(--tag) 95% 82%); background: hsl(var(--tag) 90% 60% / .16); border: 1px solid hsl(var(--tag) 90% 60% / .3); }
select.qflair option { color: #fff; background: #170d29; }
.flairrow { flex-direction: column; align-items: stretch; gap: 8px; }
.flairrow .tag { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.flairrow .row.wrap .btn { flex: 1 1 auto; }
.pin-by { font-size: 12px; color: #ffd166; font-weight: 700; margin-bottom: 8px; }
.okbadge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; color: #fff; background: var(--grad); }
.ava.logo-ava { background: var(--grad); }
.gcard.official { border-color: rgba(236,72,153,.35); box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 1px rgba(168,85,247,.15) inset; }
.official-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.35); font-size: 13px; }
.official-note p { margin: 0 0 8px; }
.official-note label.check { margin: 0; color: var(--text); }
.flairrow.retired .tag { opacity: .45; text-decoration: line-through; }
input.hue { padding: 0; height: 22px; min-width: 60px; border: 0; border-radius: 999px; background: linear-gradient(90deg, hsl(0 85% 60%), hsl(60 85% 60%), hsl(120 85% 60%), hsl(180 85% 60%), hsl(240 85% 60%), hsl(300 85% 60%), hsl(359 85% 60%)); appearance: none; -webkit-appearance: none; box-shadow: none !important; }
input.hue::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #170d29; }
input.hue::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #170d29; }
.rules { margin: 4px 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.rules summary { cursor: pointer; font-weight: 600; color: var(--text); }
.rules ul { margin: 8px 0 0; padding-left: 18px; }
.share-preview { display: grid; place-items: center; height: min(44dvh, 420px); aspect-ratio: 4 / 5; margin: 0 auto 14px; border-radius: 18px; overflow: hidden; background: var(--panel); }
.share-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* toasts */
#toasts { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { padding: 11px 16px; border-radius: 14px; background: rgba(30,20,50,.96); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0,0,0,.4); font-weight: 600; font-size: 14px; transform: translateY(-12px); opacity: 0; transition: .25s; text-align: center; }
.toast.in { transform: none; opacity: 1; }
.toast.ok { border-color: rgba(61,220,151,.55); }
.toast.err { border-color: rgba(255,95,109,.6); color: #ffc2c7; }

/* states */
.skel { height: 130px; border-radius: var(--r); background: linear-gradient(100deg, var(--panel) 30%, rgba(255,255,255,.1) 50%, var(--panel) 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; margin-bottom: 14px; border: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.empty { text-align: center; padding: 44px 16px; color: var(--muted); }
.empty .e { font-size: 46px; }
.empty b { display: block; color: var(--text); font: 700 18px var(--display); margin: 8px 0 4px; }

/* hall of fame */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: 8px 0 18px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.pod b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod small { color: var(--muted); font-size: 12px; }
.pod .step { width: 100%; margin-top: 6px; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font-size: 30px; border: 1px solid var(--line); }
.pod.p1 .step { height: 120px; background: linear-gradient(180deg, rgba(250,204,21,.35), rgba(250,204,21,.04)); border-color: rgba(250,204,21,.4); }
.pod.p2 .step { height: 88px; background: linear-gradient(180deg, rgba(203,213,225,.3), rgba(203,213,225,.04)); }
.pod.p3 .step { height: 66px; background: linear-gradient(180deg, rgba(251,146,60,.3), rgba(251,146,60,.04)); }
.pod.p1 .ava { box-shadow: 0 0 0 3px #facc15, 0 0 30px rgba(250,204,21,.5); }
.ranklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ranklist a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.ranklist .pos { width: 22px; text-align: center; font: 700 15px var(--display); color: var(--muted); }
.ranklist small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--panel2); font-weight: 700; font-size: 13px; }
.ranks-legend { margin-top: 18px; }
.ranks-legend h3 { margin: 0 0 8px; font: 700 16px var(--display); }
.ranks-legend .row { padding: 6px 0; justify-content: space-between; }

/* profile */
.profile { text-align: center; position: relative; overflow: hidden; }
.profile::before { content: ""; position: absolute; inset: 0 0 auto; height: 90px; background: var(--grad); opacity: .25; }
.profile > * { position: relative; }
.profile h1 { font: 700 24px var(--display); margin: 10px 0 2px; word-break: break-all; }
.tagline { margin: 0 0 10px; font-style: italic; color: #e3d9f7; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats div { padding: 10px 6px; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--line); }
.stats b { display: block; font: 700 20px var(--display); }
.stats small { color: var(--muted); font-size: 11px; }
.role-note { margin-top: 12px; font-size: 12px; color: #ffd99a; }
.me-foot { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.sub { padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.sub p { white-space: pre-wrap; margin: 8px 0; word-break: break-word; }
.sub .status { font-size: 12px; font-weight: 600; }
.sub.approved .status { color: var(--good); }
.sub.rejected .status { color: var(--bad); }
.sub a { color: var(--accent); font-weight: 600; font-size: 13px; }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); font-weight: 600; }

/* review */
.qcard { --tag: 285; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; transition: opacity .3s, transform .3s; }
.qcard.shortlisted { border-color: rgba(250,204,21,.45); }
.qcard.gone { opacity: 0; transform: translateX(40px); }
.qcard .gtext { margin: 0; }
.qcard .who b { display: inline; }
.qcard textarea { min-height: 110px; }
.qacts { display: flex; gap: 8px; }
.qacts .btn { flex: 1; }
.pill { display: inline-block; align-self: flex-start; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.good { background: rgba(250,204,21,.15); color: #fde68a; }
.pill.warnpill { background: rgba(255,195,92,.12); color: #ffd99a; border: 1px solid rgba(255,195,92,.25); }
.modrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.tips { margin-top: 18px; }
.tips h3, .team h3 { margin: 0 0 6px; font: 700 16px var(--display); }
.tips ul { padding-left: 18px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.tips li { margin-bottom: 4px; }
.team form { margin-top: 12px; }

@media (min-width: 720px) {
  main { padding-top: 24px; }
  .gtext { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* sign-up steps & terms */
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
button.link { font-size: 13px; }
.forgot { display: block; margin: -6px 0 14px auto; }
.fineprint { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
label.check span { min-width: 0; }
.stepcard { text-align: center; }
.stepcard h1 { font: 700 26px/1.15 var(--display); margin: 8px 0; letter-spacing: -.02em; text-wrap: balance; }
.stepcard p { margin: 0 auto 18px; max-width: 46ch; }
.stepcard form { text-align: left; }
.notfound { padding-top: 10vh; }
.nf-code { margin: 0 0 -4px !important; font: 800 64px/1 var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.steps span { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line); }
.steps span.on { color: #fff; background: var(--grad); border-color: transparent; }
.steps span.done { color: var(--good); border-color: rgba(61,220,151,.35); }
.steps span.done::before { content: "✓ "; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.mail { color: var(--text); word-break: break-all; }
.private-note { margin-top: 12px; font-size: 12px; color: var(--muted); word-break: break-word; }
.me-foot { flex-wrap: wrap; }
.terms { line-height: 1.65; }
.terms h2 { font: 700 18px var(--display); margin: 22px 0 6px; }
.terms ul { padding-left: 20px; margin: 6px 0 10px; }
.terms li { margin-bottom: 4px; }
.terms p { margin: 6px 0 10px; }
.tablewrap { overflow-x: auto; margin: 8px 0 12px; }
.terms table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.terms th, .terms td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.terms .em { background: rgba(197,108,255,.08); font-weight: 600; }
.terms td.no { color: var(--good); }
.terms td.yes { color: #ffd99a; }
.terms thead th { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; vertical-align: bottom; }
.terms tbody th { font-weight: 600; white-space: nowrap; }

/* formal terms */
.doc-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc-title { font: 700 26px/1.2 var(--display); margin: 4px 0 6px; text-wrap: balance; letter-spacing: -.01em; }
.doc-meta { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.terms h2 { font-size: 16px; margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.terms .cl { display: grid; grid-template-columns: 2.3em minmax(0, 1fr); gap: 6px; margin: 6px 0; font-size: 14.5px; }
.terms .cl > span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 1px; }
.terms .subl { list-style: lower-alpha; margin: 4px 0 10px; padding-left: calc(2.3em + 26px); font-size: 14.5px; }
.terms .subl li { margin-bottom: 4px; padding-left: 4px; }
.terms .subl li::marker { content: "(" counter(list-item, lower-alpha) ")  "; color: var(--muted); }

/* security update UI */
.row.center { justify-content: center; margin: 4px 0 2px; }
.team { margin-bottom: 14px; }
#invform input { flex: 1; min-width: 0; }
