/* Unmasked. Porcelain & obsidian, one oxblood accent, a touch of champagne. */
:root {
  --bg: #f6f4ef;
  --paper: #ffffff;
  --paper-2: #f1eee8;
  --ink: #0e0e10;
  --ink-2: #2b2b30;
  --muted: #6c6a66;
  --faint: #9d9a94;
  --line: rgba(14, 14, 16, .08);
  --line-2: rgba(14, 14, 16, .14);
  --rule: rgba(14, 14, 16, .12);
  --red: #8f1d22;
  --red-2: #b3262c;
  --red-ink: #fffaf5;
  --red-soft: rgba(143, 29, 34, .06);
  --gold: #a88452;
  --gold-soft: rgba(168, 132, 82, .12);
  --green: #2f6a46;
  --amber: #9a6a1c;
  --blue: #34557a;
  --face: #f4efe3;
  --obsidian: #0c0c0e;
  --obsidian-2: #17171a;
  --btn: #0e0e10;
  --btn-ink: #faf8f4;
  --shadow-1: 0 1px 2px rgba(14, 14, 16, .04), 0 2px 8px rgba(14, 14, 16, .03);
  --shadow-2: 0 2px 4px rgba(14, 14, 16, .04), 0 12px 32px -8px rgba(14, 14, 16, .10);
  --shadow-3: 0 24px 64px -16px rgba(14, 14, 16, .28);
  --r: 16px; --r-sm: 10px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Apple Garamond", Baskerville, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0a0b; --paper: #121214; --paper-2: #18181b; --ink: #f2efe9; --ink-2: #d9d5cd; --muted: #9a968e; --faint: #6b6862;
  --line: rgba(242, 239, 233, .07); --line-2: rgba(242, 239, 233, .13); --rule: rgba(242, 239, 233, .1);
  --red: #d8463f; --red-2: #e8605a; --red-ink: #160606; --red-soft: rgba(216, 70, 63, .1);
  --gold: #c9a56c; --gold-soft: rgba(201, 165, 108, .12); --green: #7cc08f; --amber: #e0b060; --blue: #8fb3dc;
  --btn: #f2efe9; --btn-ink: #0e0e10;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 12px 32px -8px rgba(0, 0, 0, .6); --shadow-3: 0 24px 64px -16px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; margin: 0; line-height: 1.15; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .mono { font-family: var(--mono); } .hide { display: none !important; } .serif { font-family: var(--serif); }
.label { font: 600 11px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

/* Trust strip */
.ticker { display: flex; justify-content: center; align-items: center; gap: 22px; height: 32px; background: var(--obsidian); color: rgba(244, 239, 227, .62); font: 500 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.ticker i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); display: inline-block; }
.demo-strip { background: var(--gold-soft); color: var(--gold); text-align: center; font: 600 11.5px var(--sans); letter-spacing: .08em; padding: 6px; border-bottom: 1px solid var(--line); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px; padding: 12px 28px; background: color-mix(in oklab, var(--bg) 80%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 216px; }
.brand-mask { width: 34px; height: 40px; display: grid; place-items: center; filter: drop-shadow(0 4px 10px rgba(14, 14, 16, .18)); }
.brand-name { font: 600 24px/1 var(--serif); letter-spacing: -.025em; }
.brand-name i { color: var(--red); font-style: normal; }
.brand-sub { display: block; font: 500 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--faint); margin-top: 5px; }
.search-trigger { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--faint); text-align: left; box-shadow: var(--shadow-1); transition: border-color .2s, box-shadow .2s; }
.search-trigger:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.search-trigger span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { font: 500 11px var(--sans); padding: 2px 7px; border-radius: 6px; color: var(--muted); background: var(--paper-2); border: 1px solid var(--line); }
.topbar-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: -.005em; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, opacity .2s; }
.btn:hover { border-color: var(--ink); box-shadow: var(--shadow-1); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 8px 20px -8px rgba(14, 14, 16, .45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 14px 28px -10px rgba(14, 14, 16, .5); border-color: var(--btn); }
.btn-accent { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fffaf5; border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 24px -10px rgba(143, 29, 34, .7); }
.btn-accent:hover { transform: translateY(-1px); border-color: transparent; }
.btn-ink { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--paper-2); border-color: transparent; box-shadow: none; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn-danger { color: var(--red); border-color: color-mix(in oklab, var(--red) 40%, transparent); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.exit-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: all .2s; }
.exit-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Layout */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); max-width: 1400px; margin: 0 auto; }
.sidenav { position: sticky; top: 65px; align-self: start; height: calc(100vh - 65px); padding: 24px 16px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 999px; color: var(--muted); font-weight: 550; font-size: 14.5px; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--paper); color: var(--ink); }
.nav-item.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.nav-item.red { color: var(--red); }
.nav-label { padding: 22px 14px 8px; }
.nav-school { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.nav-school:hover { background: var(--paper); color: var(--ink); }
.view { padding: 30px 36px 120px; min-width: 0; outline: none; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }

/* Surfaces */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-1); }
.card.ink { box-shadow: var(--shadow-2); }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-title .ic { width: 15px; height: 15px; color: var(--gold); }
.page-head { margin: 8px 0 32px; max-width: 820px; }
.page-head h1 { font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -.03em; font-weight: 600; line-height: 1.05; }
.page-head p { color: var(--muted); max-width: 680px; margin: 16px 0 0; font-size: 17px; line-height: 1.65; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 48px 0 18px; }
.section-head h2 { font-size: 26px; letter-spacing: -.02em; }
.stamp { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red); font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.stamp::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.stamp.ink { background: var(--paper-2); color: var(--ink); }
.stamp.green { background: color-mix(in oklab, var(--green) 10%, transparent); color: var(--green); }

/* Hero: lit mask on obsidian */
.manifesto { position: relative; overflow: hidden; border-radius: 24px; padding: 52px 260px 34px 48px; color: #f4efe3; background:
  radial-gradient(520px 420px at 82% 46%, rgba(201, 165, 108, .16), transparent 62%),
  radial-gradient(900px 500px at 100% 0%, rgba(143, 29, 34, .28), transparent 60%),
  linear-gradient(160deg, #18171a 0%, #0b0b0c 60%); box-shadow: var(--shadow-3); isolation: isolate; }
.manifesto::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(244, 239, 227, .07); pointer-events: none; }
.manifesto .mask-bg { position: absolute; right: 44px; top: 50%; width: 190px; height: 228px; transform: translateY(-56%) rotate(-4deg); z-index: -1; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)) drop-shadow(0 0 60px rgba(201, 165, 108, .18)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(-56%) rotate(-4deg); } 50% { transform: translateY(-59%) rotate(-3deg); } }
.manifesto .stamp { background: rgba(244, 239, 227, .08); color: var(--gold); }
[data-theme="dark"] .manifesto .stamp { color: #c9a56c; }
.manifesto h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: .98; max-width: 620px; letter-spacing: -.035em; font-weight: 600; color: #f7f3ea; }
.manifesto h1 em { font-style: italic; font-weight: 500; color: #e2564f; }
.manifesto p { max-width: 520px; color: rgba(244, 239, 227, .72); font-size: 17.5px; line-height: 1.6; margin: 22px 0 28px; }
.manifesto .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.manifesto .btn { background: rgba(244, 239, 227, .06); color: #f4efe3; border-color: rgba(244, 239, 227, .16); }
.manifesto .btn:hover { border-color: rgba(244, 239, 227, .4); }
.manifesto .btn-primary { background: #f4efe3; color: #0e0e10; border-color: #f4efe3; }
.manifesto .btn-ghost { border-color: transparent; color: rgba(244, 239, 227, .7); }
.manifesto .close { position: absolute; top: 16px; right: 16px; background: rgba(244, 239, 227, .06); border-color: rgba(244, 239, 227, .12); color: rgba(244, 239, 227, .7); }
.statline { display: flex; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(244, 239, 227, .1); max-width: 640px; }
.statline div { flex: 1; }
.statline b { display: block; font: 600 32px/1 var(--serif); color: #f7f3ea; letter-spacing: -.02em; }
.statline span { font: 500 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 227, .5); }

/* Composer */
.composer { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin: 24px 0 0; box-shadow: var(--shadow-1); transition: box-shadow .25s, border-color .25s; }
.composer:focus-within { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.composer textarea { width: 100%; border: 0; background: transparent; resize: none; outline: none; font: 19px/1.45 var(--serif); min-height: 54px; padding: 8px 0; letter-spacing: -.01em; }
.composer textarea::placeholder { color: var(--faint); }
.composer .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.composer .count { font: 500 12px var(--sans); color: var(--faint); margin-left: auto; font-variant-numeric: tabular-nums; }
.composer .count.over { color: var(--red); }
.composer .links { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; flex-wrap: wrap; }
.composer .links button { border: 0; background: none; padding: 0; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; font-weight: 550; }
.composer .links button:hover { color: var(--ink); }
.composer .links .ic { width: 15px; height: 15px; }
.mini-select { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); font-size: 13px; max-width: 180px; font-weight: 550; }
.mini-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.mini-check .ic { width: 15px; height: 15px; }
.mini-check input { accent-color: var(--ink); }

/* Feed tabs */
.ftabs { display: flex; gap: 4px; margin: 26px 0 0; padding: 5px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); overflow-x: auto; position: sticky; top: 74px; z-index: 5; width: max-content; max-width: 100%; backdrop-filter: blur(12px); }
.ftabs button { padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: all .2s var(--ease); }
.ftabs button.on { color: var(--ink); background: var(--paper); box-shadow: var(--shadow-1); }
.ftabs button:hover { color: var(--ink); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 0 8px; }

/* Chips & tags */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: 13px; font-weight: 550; transition: all .18s; }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font: 600 11.5px/1.5 var(--sans); background: var(--paper-2); color: var(--muted); border: 1px solid transparent; }
.tag.red { color: var(--red); background: var(--red-soft); }
.tag.amber { color: var(--amber); background: color-mix(in oklab, var(--amber) 9%, transparent); }
.tag.blue { color: var(--blue); background: color-mix(in oklab, var(--blue) 9%, transparent); }
.tag.green { color: var(--green); background: color-mix(in oklab, var(--green) 9%, transparent); }
.sch { display: inline-flex; align-items: center; gap: 6px; font: 650 12.5px var(--sans); letter-spacing: .02em; color: var(--ink); }
.sch::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.sch:hover { color: var(--red); }

/* Feed items */
.feed { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px 22px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); transition: box-shadow .25s var(--ease), border-color .25s; }
.item:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #26252a, #0c0c0e 70%); box-shadow: 0 0 0 1.5px hsl(var(--h) 28% 62% / .55), 0 4px 10px -4px rgba(0, 0, 0, .4); flex: none; overflow: hidden; }
.avatar svg { width: 30px; height: 36px; margin-top: 6px; }
.avatar.sm { width: 30px; height: 30px; } .avatar.sm svg { width: 21px; height: 26px; margin-top: 5px; }
.ihead { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.handle { color: var(--ink); font-weight: 650; }
.dot::before { content: "·"; color: var(--faint); }
.you, .op { font: 700 9.5px var(--sans); letter-spacing: .1em; padding: 2px 7px; border-radius: 999px; }
.you { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line-2); }
.op { background: var(--gold-soft); color: var(--gold); }
.item h3 { font-size: 22px; margin: 8px 0 6px; line-height: 1.22; letter-spacing: -.02em; }
.item h3 a:hover { color: var(--red); }
.item .text { margin: 4px 0 0; color: var(--ink-2); white-space: pre-wrap; word-wrap: break-word; }
.item.take .text { font: 18px/1.55 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.itags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.actions-row { display: flex; gap: 2px; margin: 10px 0 0 -10px; flex-wrap: wrap; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; border: 0; background: transparent; color: var(--faint); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; transition: all .18s; }
.act:hover { background: var(--paper-2); color: var(--ink); }
.act.on { color: var(--red); }
.act.metoo { color: var(--muted); }
.act.metoo.on { color: var(--red); background: var(--red-soft); }
.act .ic { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 600 11.5px var(--sans); color: var(--ink-2); }
.pill .ic { width: 13px; height: 13px; }

/* Rail widgets */
.widget { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); }
.widget > h4 { padding: 18px 20px 6px; font-size: 18px; }
.widget .w-row { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 14px; border-top: 1px solid var(--line); }
.widget > h4 + .w-row { border-top: 0; }
.widget a.w-row:hover { background: var(--paper-2); }
.widget .w-body { padding: 10px 20px 18px; }
.trend b { display: block; font-size: 15px; font-weight: 650; }
.trend small { color: var(--faint); font-size: 12px; }
.file-cta { position: relative; overflow: hidden; padding: 24px; border-radius: var(--r); color: #f4efe3; background: radial-gradient(300px 200px at 100% 100%, rgba(201, 165, 108, .18), transparent 70%), linear-gradient(160deg, #19181b, #0b0b0c); box-shadow: var(--shadow-2); }
.file-cta h4 { font-size: 24px; margin: 10px 0 8px; color: #f7f3ea; letter-spacing: -.02em; }
.file-cta p { margin: 0 0 18px; font-size: 14px; color: rgba(244, 239, 227, .66); max-width: 220px; }
.file-cta .label { color: #c9a56c; }
.file-cta svg.bgmask { position: absolute; right: -10px; bottom: -24px; width: 110px; height: 132px; opacity: .9; transform: rotate(-8deg); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .6)); }
.file-cta .btn-primary, .file-cta .btn { background: #f4efe3; color: #0e0e10; border-color: #f4efe3; }

/* Grades & scores */
.grade { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 10px; font: 600 16px var(--serif); background: var(--paper-2); border: 1px solid var(--line); }
.grade.lg { min-width: 60px; height: 60px; font-size: 32px; border-radius: 16px; }
.g-A { color: var(--green); } .g-B { color: #5b7a2a; } .g-C { color: var(--amber); } .g-D { color: #a5521f; } .g-F { color: var(--red); background: var(--red-soft); }
.grade.none { color: var(--faint); font: 600 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 0 10px; border-style: dashed; }
.grade.lg.none { height: auto; padding: 8px 12px; border-radius: 999px; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 34px; gap: 14px; align-items: center; font-size: 13.5px; }
.bar-row .bl { color: var(--ink-2); }
.bar { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.bar-row b { text-align: right; font: 600 15px var(--serif); }

/* Community header */
.community { position: relative; overflow: hidden; border-radius: 24px; color: #f4efe3; background: radial-gradient(500px 300px at 85% 30%, rgba(201, 165, 108, .14), transparent 65%), radial-gradient(700px 400px at 0% 100%, rgba(143, 29, 34, .22), transparent 60%), linear-gradient(160deg, #19181b, #0b0b0c); box-shadow: var(--shadow-3); }
.community .banner { position: absolute; inset: 0; pointer-events: none; }
.community .banner svg { position: absolute; right: 5%; top: 50%; width: 150px; height: 180px; transform: translateY(-50%) rotate(-5deg); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.community .body { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 40px 220px 36px 36px; }
.community .crest { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 22px; background: rgba(244, 239, 227, .06); border: 1px solid rgba(244, 239, 227, .14); font: 600 17px var(--serif); color: #f4efe3; }
.community h1 { font-size: clamp(26px, 3vw, 38px); color: #f7f3ea; letter-spacing: -.025em; }
.community .label { color: #c9a56c; }
.community .meta { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(244, 239, 227, .55); font-size: 13.5px; margin-top: 10px; }
.community .meta b { color: #f4efe3; font-weight: 650; }
.community .body > div:nth-child(2) { padding-top: 0 !important; }
.community .grade { background: rgba(244, 239, 227, .06); border-color: rgba(244, 239, 227, .16); }
.community .grade.none { color: rgba(244, 239, 227, .5); }
.community .join { background: #f4efe3; color: #0e0e10; border-color: #f4efe3; }
.community .join.on { background: transparent; color: #f4efe3; border-color: rgba(244, 239, 227, .3); }
.tabs { display: flex; gap: 4px; margin: 28px 0 22px; padding: 5px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.tabs button.on { color: var(--ink); background: var(--paper); box-shadow: var(--shadow-1); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.kpi b { display: block; font: 600 34px/1 var(--serif); letter-spacing: -.02em; margin-bottom: 6px; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.warn b { color: var(--red); }
.pattern { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pattern:first-child { border-top: 0; padding-top: 0; }
.pattern .pc { font: 600 28px/1 var(--serif); }
.pattern p { margin: 0; font-size: 13px; color: var(--muted); }
.pattern p b { color: var(--ink); font-size: 14.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* School directory */
.com-list { display: flex; flex-direction: column; gap: 8px; }
.com-row { display: grid; grid-template-columns: 28px 52px minmax(0, 1fr) 84px 84px 84px 70px 92px; gap: 14px; align-items: center; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); transition: box-shadow .2s, border-color .2s; }
.com-row:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.com-row .rank { font: 600 13px var(--serif); color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.com-row .crest { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(160deg, #1d1c20, #0c0c0e); color: #f4efe3; font: 600 11px var(--sans); letter-spacing: .02em; box-shadow: 0 0 0 1px rgba(201, 165, 108, .25) inset; }
.com-row h3 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.com-row .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.com-row .num { text-align: center; font: 600 18px var(--serif); font-variant-numeric: tabular-nums; }
.com-row .num small { display: block; font: 600 9.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.join { padding: 7px 16px; font-size: 12.5px; border-radius: 999px; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-ink); font-weight: 650; transition: all .2s; }
.join.on { background: transparent; color: var(--ink); border-color: var(--line-2); }
.join:hover { transform: translateY(-1px); }

/* Professors */
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.prof-card { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.prof-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.qbox { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 78px; border-radius: 14px; background: linear-gradient(160deg, #1d1c20, #0c0c0e); box-shadow: 0 0 0 1px rgba(201, 165, 108, .2) inset; }
.qbox b { font: 600 30px/1 var(--serif); color: var(--qc, #f4efe3); letter-spacing: -.02em; }
.qbox span { font: 600 8.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 227, .5); margin-top: 5px; }
.qbox.empty b { color: rgba(244, 239, 227, .35); }
.prof-card h3 { font-size: 19px; letter-spacing: -.015em; }
.prof-card .sub { font-size: 13px; color: var(--muted); margin: 3px 0 8px; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars .ic { width: 13px; height: 13px; }
.stars .off { color: var(--line-2); }
.unverified { font: 600 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 3px 9px; border-radius: 999px; background: var(--paper-2); }
.prof-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 34px; border-radius: 24px; color: #f4efe3; background: radial-gradient(500px 300px at 90% 0%, rgba(143, 29, 34, .25), transparent 60%), linear-gradient(160deg, #19181b, #0b0b0c); box-shadow: var(--shadow-3); }
.prof-hero .qbox { width: 136px; height: 136px; border-radius: 22px; background: rgba(244, 239, 227, .05); }
.prof-hero .qbox b { font-size: 58px; }
.prof-hero h1 { font-size: clamp(30px, 3.6vw, 44px); color: #f7f3ea; letter-spacing: -.025em; }
.prof-hero .meta { display: flex; gap: 16px; flex-wrap: wrap; color: rgba(244, 239, 227, .6); font-size: 14px; margin-top: 10px; }
.prof-hero .meta b { color: #f4efe3 !important; }
.prof-hero .sch { color: #f4efe3; }
.prof-hero .unverified { background: rgba(244, 239, 227, .08); color: rgba(244, 239, 227, .6); }
.prof-hero .btn-primary { background: #f4efe3; color: #0e0e10; border-color: #f4efe3; }
.prof-hero .btn-ghost { color: rgba(244, 239, 227, .6); }
.prof-hero .stamp.ink { background: rgba(244, 239, 227, .08); color: #f4efe3; }
.review { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-1); }
.review-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.review-meta b { color: var(--ink); font-weight: 600; }
.review .rbody { white-space: pre-wrap; font: 17.5px/1.68 var(--serif); margin: 0; color: var(--ink); letter-spacing: -.005em; }
.incidents { position: relative; padding: 18px 20px 16px; background: var(--red-soft); border-radius: 12px; border-left: 3px solid var(--red); }
.incidents .stamp { background: transparent; padding: 0; margin-bottom: 6px; }
.incidents p { margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.65; }
.mini-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mini-bars div { padding: 10px 12px; font-size: 11px; color: var(--muted); line-height: 1.3; background: var(--paper-2); border-radius: 10px; }
.mini-bars b { display: block; font: 600 20px var(--serif); margin-bottom: 2px; }

/* Fight back */
.situations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.situation { text-align: left; padding: 18px 20px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-1); transition: all .22s var(--ease); }
.situation:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.situation.on { background: linear-gradient(160deg, #1d1c20, #0c0c0e); color: #f4efe3; border-color: transparent; box-shadow: var(--shadow-2); }
.situation b { font: 600 17px var(--serif); letter-spacing: -.01em; }
.situation span { font-size: 13px; opacity: .65; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps-list li:first-child { border-top: 0; padding-top: 4px; }
.steps-list li::before { content: counter(s, decimal-leading-zero); font: 500 italic 26px/1 var(--serif); color: var(--gold); }
.steps-list b { display: block; font-size: 16px; margin-bottom: 4px; font-weight: 650; }
.steps-list p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.steps-list a.ext { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-weight: 650; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); }
.steps-list a.ext:hover { background: var(--btn); color: var(--btn-ink); }
.steps-list a.ext .ic { width: 13px; height: 13px; }
.res-group { break-inside: avoid; margin-bottom: 22px; padding: 18px 22px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.res-cols { columns: 2; column-gap: 16px; }
.res { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.res-group .label + .res { border-top: 0; }
.res b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 650; }
.res b .ic { width: 13px; height: 13px; color: var(--faint); }
.res span { font-size: 13px; color: var(--muted); }
.res:hover b { color: var(--red); }
.crisis { display: flex; gap: 18px; align-items: center; padding: 20px 24px; border-radius: var(--r); color: #f4efe3; background: linear-gradient(120deg, #2a1012, #0e0b0b); box-shadow: var(--shadow-2); }
.crisis b { font: 600 20px var(--serif); }
.crisis p { margin: 3px 0 0; color: rgba(244, 239, 227, .7); font-size: 14px; }

/* Forms */
.input, .select, .textarea { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14, 14, 16, .06); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
textarea.serif-input { font: 17px/1.65 var(--serif); }
label.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.hint { font-size: 12.5px; color: var(--faint); font-weight: 400; }
.counter { font: 500 11.5px var(--sans); color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.counter.ok { color: var(--green); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.toolbar .input { max-width: 360px; border-radius: 999px; }
.toolbar .select { width: auto; border-radius: 999px; }

/* Modal */
.backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(10, 10, 11, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; animation: bfade .2s ease; }
@keyframes bfade { from { opacity: 0; } }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-3); animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: blur(12px); z-index: 2; }
.modal-head h3 { font-size: 22px; letter-spacing: -.02em; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.modal-foot { display: flex; justify-content: space-between; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: blur(12px); z-index: 2; }
.steps { display: flex; gap: 5px; margin-left: auto; }
.steps i { width: 24px; height: 4px; border-radius: 99px; background: var(--line-2); transition: background .3s; }
.steps i.on { background: var(--ink); }
.form-section { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h4 { font-size: 18px; display: flex; gap: 10px; align-items: baseline; letter-spacing: -.01em; }
.form-section h4 .n { font: 500 italic 15px var(--serif); color: var(--gold); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pick { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); font-weight: 650; font-size: 14px; transition: all .18s; }
.pick:hover { border-color: var(--ink); }
.pick.on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; border: 1.5px dashed var(--line-2); border-radius: var(--r); text-align: center; color: var(--muted); cursor: pointer; transition: all .2s; background: var(--paper-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--ink); background: var(--paper); }
.file-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--paper-2); border-radius: 12px; font-size: 13.5px; }
.file-row img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.file-row .ok { color: var(--green); font: 600 11.5px var(--sans); display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.file-row .ok .ic { width: 14px; height: 14px; }
.toggle { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--paper-2); cursor: pointer; border-radius: 14px; border: 1px solid transparent; transition: border-color .2s; }
.toggle:hover { border-color: var(--line-2); }
.toggle input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.toggle b { display: block; font-size: 14px; }
.toggle span { font-size: 12.5px; color: var(--muted); }
.callout { display: flex; gap: 12px; padding: 14px 16px; font-size: 14px; border-radius: 14px; background: var(--red-soft); color: var(--ink-2); }
.callout .ic { color: var(--red); margin-top: 1px; }
.callout.ink { background: var(--paper-2); }
.callout.ink .ic { color: var(--gold); }
.stars-input { display: inline-flex; gap: 2px; }
.stars-input button { border: 0; background: transparent; padding: 2px; color: var(--line-2); transition: transform .15s var(--ease), color .15s; }
.stars-input button.on { color: var(--gold); }
.stars-input button:hover { transform: scale(1.15); }
.stars-input .ic { width: 24px; height: 24px; }
.dim-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.dim-row:first-of-type { border-top: 0; }
.dim-row b { font-size: 14.5px; display: block; font-weight: 600; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button { padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; font-weight: 650; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--btn); color: var(--btn-ink); }
.write-choice { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.write-choice button { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; padding: 20px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-1); transition: all .25s var(--ease); }
.write-choice button:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.write-choice b { font: 600 19px var(--serif); letter-spacing: -.01em; }
.write-choice span { font-size: 13px; color: var(--muted); }
.write-choice .ic { width: 22px; height: 22px; color: var(--gold); }

/* Comments */
.thread { margin-top: 6px; display: flex; flex-direction: column; }
.comment { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 16px 0 4px; }
.comment p { margin: 6px 0 2px; white-space: pre-wrap; line-height: 1.6; }
.replies { margin-left: 14px; padding-left: 22px; border-left: 1px solid var(--line-2); }
.reply-form { display: flex; gap: 8px; margin: 6px 0 8px; }
.reply-form .input { border-radius: 999px; }

/* Palette, toasts, misc */
.palette { width: min(640px, 100%); align-self: start; margin-top: 12vh; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-3); overflow: hidden; animation: pop .3s var(--ease); }
.palette input { width: 100%; padding: 22px 24px; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: none; font: 20px var(--serif); letter-spacing: -.01em; }
.pal-list { max-height: 420px; overflow: auto; padding: 8px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--ink-2); }
.pal-item.sel, .pal-item:hover { background: var(--paper-2); color: var(--ink); }
.pal-item small { margin-left: auto; color: var(--faint); font-size: 12px; }
.pal-empty { padding: 28px; text-align: center; color: var(--faint); }
.toasts { position: fixed; z-index: 100; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 18px; background: rgba(14, 14, 16, .92); color: #f4efe3; font-weight: 550; font-size: 14px; border-radius: 999px; box-shadow: var(--shadow-3); backdrop-filter: blur(12px); animation: toast .35s var(--ease); max-width: 90vw; }
.toast .ic { color: var(--gold); width: 16px; height: 16px; }
.toast.err { background: var(--red); }
.toast.err .ic { color: #fff; }
@keyframes toast { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.skeleton { background: linear-gradient(90deg, var(--paper-2), var(--paper), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; height: 120px; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.empty svg.em { width: 64px; height: 76px; margin: 0 auto 14px; filter: drop-shadow(0 10px 20px rgba(14, 14, 16, .15)); }
.empty h3 { color: var(--ink); font-size: 24px; margin-bottom: 8px; letter-spacing: -.02em; }
.empty > div { max-width: 440px; margin: 0 auto; }
.err { padding: 12px 16px; background: var(--red-soft); color: var(--red); font-size: 14px; border-radius: 12px; }
.prose { max-width: 760px; color: var(--ink-2); line-height: 1.7; }
.prose h3 { font-size: 22px; margin: 28px 0 10px; letter-spacing: -.015em; }
.prose li { margin-bottom: 8px; }
.prose ul { padding-left: 20px; }
.letter { white-space: pre-wrap; font: 15.5px/1.75 var(--serif); background: var(--paper-2); padding: 24px; min-height: 280px; border-radius: 14px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ev { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.ev-thumb { height: 140px; position: relative; overflow: hidden; border-radius: 12px; background: var(--paper-2); }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-thumb .lines { position: absolute; inset: 22px; display: flex; flex-direction: column; gap: 10px; }
.ev-thumb .lines i { height: 7px; border-radius: 4px; background: var(--line-2); } .ev-thumb .lines i.r { background: var(--ink); width: 60%; opacity: .85; }
.ev-thumb .tag { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--paper); }
.status { font: 600 11px var(--sans); letter-spacing: .04em; }
.st-approved { color: var(--green); } .st-pending { color: var(--amber); }
.calc { display: grid; grid-template-columns: 380px 1fr; gap: 20px; }
.range-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.range-row .rl { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); }
.range-row .rl b { font: 600 16px var(--serif); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: var(--paper-2); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); box-shadow: 0 2px 8px rgba(14, 14, 16, .2); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); }
.big-num { font: 600 54px/1 var(--serif); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.list-item:first-child { border-top: 0; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 5px; border: 1.5px solid var(--gold); }
.admin-item { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 14px; }
.admin-item .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.keybox { font: 13px/1.5 var(--mono); word-break: break-all; padding: 14px; background: var(--obsidian); color: #f4efe3; border-radius: 12px; user-select: all; }
.fingerprint { font: 600 13px var(--mono); letter-spacing: .06em; }
.ident { margin-top: auto; padding: 18px 14px 6px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ident .who { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 650; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--faint); padding: 6px 4px; }
.foot-links a:hover { color: var(--ink); }
.tabbar { display: none; }

/* Entrance */
.splash { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; cursor: pointer; }
.sp-half { position: absolute; top: 0; bottom: 0; width: 50.5%; background: radial-gradient(700px 500px at 50% 45%, #17161a, #080809 70%); transition: transform 1.2s cubic-bezier(.77, 0, .18, 1); }
.sp-l { left: 0; background-position: right; background-size: 200% 100%; }
.sp-r { right: 0; background-position: left; background-size: 200% 100%; }
.splash.open .sp-l { transform: translateX(-101%); }
.splash.open .sp-r { transform: translateX(101%); }
.sp-core { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 30px; transition: opacity .5s ease, transform 1.1s cubic-bezier(.77, 0, .18, 1); }
.splash.open .sp-core { opacity: 0; transform: scale(1.5); }
.sp-maskwrap { position: relative; width: 170px; height: 204px; animation: sp-float 5s ease-in-out infinite; }
.sp-maskwrap::before { content: ""; position: absolute; inset: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 165, 108, .18), transparent 65%); opacity: 0; animation: sp-in 1.6s 1.2s ease forwards; }
.sp-mask { position: relative; width: 100%; height: 100%; overflow: visible; }
.splash .sp-mask .mf { fill: transparent; stroke: #e9e2d3; stroke-width: 1.2; stroke-dasharray: 340; stroke-dashoffset: 340; animation: sp-draw 1.6s .2s cubic-bezier(.6, 0, .3, 1) forwards, sp-fill 1s 1.4s ease forwards; }
.sp-mask .mfeat { opacity: 0; animation: sp-in .8s 1.6s ease forwards; }
.splash .sp-mask .mc { opacity: 0; animation: sp-cheek .8s 1.9s ease forwards; }
.sp-eye { position: absolute; top: 37.5%; width: 15%; height: 3.2%; border-radius: 50%; background: #ff3a3f; box-shadow: 0 0 16px 5px rgba(255, 58, 63, .7), 0 0 60px 14px rgba(255, 58, 63, .3); opacity: 0; animation: sp-eyes 2.4s 2s ease-in-out forwards; }
.sp-eye.a { left: 27%; } .sp-eye.b { right: 27%; }
.sp-lines { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 110px; }
.sp-lines span { font: 500 11.5px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: rgba(233, 226, 211, .6); opacity: 0; transform: translateY(8px); filter: blur(6px); animation: sp-word 1s var(--ease) forwards; }
.sp-lines span:nth-child(1) { animation-delay: 2.1s; }
.sp-lines span:nth-child(2) { animation-delay: 2.9s; font: 600 38px/1.05 var(--serif); letter-spacing: -.02em; text-transform: none; color: #f4efe3; }
.sp-lines span:nth-child(3) { animation-delay: 3.4s; font: italic 500 38px/1.05 var(--serif); letter-spacing: -.02em; text-transform: none; color: #e2564f; }
.sp-skip { position: absolute; bottom: -80px; border: 1px solid rgba(233, 226, 211, .18); background: rgba(233, 226, 211, .04); color: rgba(233, 226, 211, .6); font: 600 10.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px; opacity: 0; animation: sp-in .6s 1s forwards; }
.sp-skip:hover { color: #f4efe3; border-color: rgba(233, 226, 211, .5); }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-fill { to { fill: #f1ebdd; } }
@keyframes sp-in { to { opacity: 1; } }
@keyframes sp-cheek { to { opacity: .42; } }
@keyframes sp-eyes { 0% { opacity: 0; } 12% { opacity: 1; } 18% { opacity: .2; } 26% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: .7; } }
@keyframes sp-word { to { opacity: 1; transform: none; filter: none; } }
@keyframes sp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Real-odds funnel */
.funnel { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.fn-row { display: grid; grid-template-columns: 76px 1fr 32px; gap: 12px; align-items: center; font: 600 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fn-row b { text-align: right; font: 600 16px var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.fn-bar { height: 10px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .4s var(--ease); }
a.card { display: block; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
a.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
a.card .ic { color: var(--gold); width: 16px; height: 16px; vertical-align: -2px; }

@media (max-width: 1320px) and (min-width: 901px) { .manifesto { padding-right: 48px; } .manifesto .mask-bg { width: 120px; height: 144px; top: 70px; right: 28px; transform: rotate(-6deg); animation: none; opacity: .9; } .manifesto h1, .manifesto p { max-width: calc(100% - 130px); } }
@media (max-width: 1180px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .com-row { grid-template-columns: 24px 48px minmax(0, 1fr) 64px 92px; }
  .com-row .num.x { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { display: none; }
  .view { padding: 18px 16px 110px; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .brand { min-width: 0; } .brand-sub { display: none; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { flex: 0; padding: 10px; }
  .hide-sm { display: none; }
  .ticker { font-size: 9.5px; gap: 12px; }
  .ticker .t-x { display: none; }
  .two, .three, .calc, .situations, .write-choice, .kpis { grid-template-columns: minmax(0, 1fr); }
  .res-cols { columns: 1; }
  .bar-row { grid-template-columns: 120px 1fr 30px; }
  .manifesto { padding: 34px 22px 26px; border-radius: 20px; }
  .manifesto .actions .btn { width: 100%; }
  .manifesto .mask-bg { width: 120px; height: 144px; right: -10px; top: 26%; opacity: .5; }
  .statline { flex-wrap: wrap; gap: 14px; } .statline div { flex: 1 1 40%; }
  .community .body { grid-template-columns: 1fr; padding: 28px 22px; }
  .community .banner svg { width: 90px; height: 108px; top: 22%; opacity: .5; }
  .prof-hero { grid-template-columns: 1fr; padding: 24px; }
  .com-row { grid-template-columns: 44px minmax(0, 1fr) 76px; } .com-row .rank, .com-row .num { display: none; }
  .ftabs { top: 66px; }
  .mini-bars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabbar { display: flex; position: fixed; z-index: 50; bottom: 0; left: 0; right: 0; justify-content: space-around; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font: 600 10px var(--sans); color: var(--faint); padding: 4px 8px; border: 0; background: none; }
  .tabbar a.active { color: var(--ink); }
  .tabbar .fab { width: 52px; height: 52px; margin-top: -22px; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); border-radius: 50%; box-shadow: var(--shadow-3); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Secret phrase */
.phrase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; transition: filter .3s; }
.phrase span { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font: 600 15px var(--serif); letter-spacing: -.005em; }
.phrase i { font: 600 10px var(--sans); color: var(--faint); font-style: normal; font-variant-numeric: tabular-nums; min-width: 14px; }
.phrase.blur { filter: blur(7px); user-select: none; }
@media (max-width: 900px) { .phrase { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── The gate ──────────────────────────────────── */
.gate { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 42%, #1a1416 0%, #070607 62%, #000 100%); color: #f1ebdd; overflow: hidden; transition: opacity 1s ease .55s; }
.gate.out { opacity: 0; pointer-events: none; }
.g-noise { position: absolute; inset: -50%; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: g-grain .5s steps(4) infinite; pointer-events: none; }
@keyframes g-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
.g-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); pointer-events: none; animation: g-roll 8s linear infinite; }
@keyframes g-roll { to { background-position: 0 300px; } }
.g-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .85) 100%); pointer-events: none; }
.g-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px; text-align: center; transition: transform 1.6s cubic-bezier(.7, 0, .2, 1), opacity 1s ease; }
.gate.out .g-stage { transform: scale(2.6); opacity: 0; }
.g-mask { --rx: 0deg; --ry: 0deg; position: relative; width: min(42vh, 330px, 70vw); aspect-ratio: 200 / 240; perspective: 900px; animation: g-in 2.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes g-in { from { opacity: 0; transform: translateY(30px) scale(.9); filter: blur(12px) brightness(0); } to { opacity: 1; transform: none; filter: none; } }
.g-mask .mask { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.g-base { animation: g-breathe 5s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .9)) drop-shadow(0 0 40px rgba(255, 40, 50, .12)); }
@keyframes g-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.025; } }
.g-aura { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(170, 20, 30, .28), transparent 62%); animation: g-pulse 4s ease-in-out infinite; }
@keyframes g-pulse { 0%, 100% { opacity: .5; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
.g-base .meye { fill: #050404; }
.g-base .pupil { filter: drop-shadow(0 0 4px #ff2a33) drop-shadow(0 0 10px #ff2a33); transition: transform .5s cubic-bezier(.2, .8, .2, 1); animation: g-eyes 6s ease-in-out infinite; }
@keyframes g-eyes { 0%, 100% { opacity: .95; } 45% { opacity: .95; } 47% { opacity: .1; } 49% { opacity: 1; } 80% { opacity: .75; } }
.g-ghost { opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.g-mask.glitch .g-ghost { opacity: .8; }
.g-mask.glitch .g-ghost.r { filter: sepia(1) saturate(8) hue-rotate(-40deg); transform: translate(-7px, 2px) rotateY(var(--ry)) !important; clip-path: inset(18% 0 52% 0); }
.g-mask.glitch .g-ghost.c { filter: sepia(1) saturate(6) hue-rotate(140deg); transform: translate(8px, -3px) rotateY(var(--ry)) !important; clip-path: inset(58% 0 12% 0); }
.g-mask.glitch .g-base { transform: translateX(3px) skewX(-2deg) rotateY(var(--ry)) !important; }
.g-title { font: 600 clamp(28px, 5vw, 44px)/1 var(--serif); letter-spacing: .42em; padding-left: .42em; color: #f4efe3; margin-top: 6px; text-shadow: 0 0 30px rgba(255, 40, 50, .25); animation: g-fade 1.6s .9s both; }
.g-whisper { min-height: 26px; font: 500 italic clamp(16px, 2.2vw, 20px)/1.3 var(--serif); color: rgba(241, 235, 221, .72); opacity: 0; filter: blur(6px); transform: translateY(6px); transition: opacity .7s ease, filter .7s ease, transform .7s ease; }
.g-whisper.on { opacity: 1; filter: none; transform: none; }
.g-enter { position: relative; margin-top: 14px; padding: 16px 52px; border-radius: 999px; border: 1px solid rgba(255, 60, 66, .55); background: rgba(176, 20, 28, .18); color: #fff; font: 600 13px var(--sans); letter-spacing: .5em; text-transform: uppercase; cursor: pointer; animation: g-fade 1s 1.8s both, g-glow 2.6s 2.8s ease-in-out infinite; transition: background .3s, transform .3s; }
.g-enter span { padding-left: .5em; }
.g-enter:hover, .g-enter:focus-visible { background: #b0141c; transform: scale(1.04); outline: none; }
@keyframes g-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 40, 50, .0), 0 0 30px rgba(255, 40, 50, .2); } 50% { box-shadow: 0 0 0 10px rgba(255, 40, 50, .08), 0 0 60px rgba(255, 40, 50, .45); } }
@keyframes g-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.g-meta { font: 500 10.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(241, 235, 221, .38); margin-top: 6px; animation: g-fade 1s 2.2s both; }
.g-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(255, 50, 60, .9), rgba(255, 255, 255, 0) 60%); opacity: 0; pointer-events: none; }
.gate.out .g-flash { animation: g-flash 1s ease forwards; }
@keyframes g-flash { 0% { opacity: 0; } 25% { opacity: .9; } 100% { opacity: 0; } }

/* ── Claim your mask ───────────────────────────── */
.claim { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 32px 30px; text-align: center; background: radial-gradient(400px 260px at 50% 0%, rgba(176, 20, 28, .12), transparent 70%); }
.claim h2 { font-size: 34px; letter-spacing: -.02em; }
.claim p { margin: 0; color: var(--muted); max-width: 430px; }
.claim-mask { width: 92px; height: 110px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .35)); }
.claim-mask.lit { animation: g-breathe 4s ease-in-out infinite; }
.claim-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; }
.claim-name { font: 600 32px var(--serif); letter-spacing: -.01em; color: var(--red); min-height: 40px; font-variant-numeric: tabular-nums; }
.claim .phrase { width: 100%; text-align: left; }

/* ── Schools ───────────────────────────────────── */
.big-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.big-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 22px; min-height: 290px; border-radius: 20px; color: #f4efe3; background: radial-gradient(260px 200px at 100% 0%, rgba(176, 20, 28, .3), transparent 70%), linear-gradient(160deg, #1b1a1e, #0a0a0b); box-shadow: var(--shadow-2); transition: transform .3s var(--ease), box-shadow .3s var(--ease); isolation: isolate; }
.big-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.bc-mask { position: absolute; right: -24px; top: 34px; width: 140px; height: 168px; opacity: .18; transform: rotate(-10deg); z-index: -1; transition: opacity .4s, transform .6s var(--ease); }
.big-card:hover .bc-mask { opacity: .32; transform: rotate(-4deg) scale(1.05); }
.bc-mask .mask { width: 100%; height: 100%; }
.bc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.bc-rank { font: 500 italic 15px var(--serif); color: #c9a56c; }
.big-card .grade { background: rgba(244, 239, 227, .07); border-color: rgba(244, 239, 227, .15); }
.big-card .grade.none { color: rgba(244, 239, 227, .5); }
.bc-short { font: 600 46px/1 var(--serif); letter-spacing: -.03em; }
.bc-name { font-size: 13.5px; color: rgba(244, 239, 227, .7); margin-top: 6px; max-width: 80%; }
.bc-place { font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 227, .4); margin-top: 4px; }
.bc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(244, 239, 227, .1); }
.bc-stats b { display: block; font: 600 18px var(--serif); }
.bc-stats span { font-size: 10px; color: rgba(244, 239, 227, .5); line-height: 1.2; }
.bc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; font-weight: 600; color: rgba(244, 239, 227, .75); }
.bc-foot .ic { width: 14px; height: 14px; vertical-align: -2px; }
.big-card .join { background: #f4efe3; color: #0e0e10; border-color: #f4efe3; }
.big-card .join.on { background: transparent; color: #f4efe3; border-color: rgba(244, 239, 227, .3); }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.s-tile { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); transition: box-shadow .2s, transform .2s var(--ease); }
.s-tile:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.s-crest { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(160deg, #1d1c20, #0c0c0e); color: #f4efe3; font: 600 10.5px var(--sans); box-shadow: 0 0 0 1px rgba(201, 165, 108, .25) inset; }
.s-body { min-width: 0; }
.s-body b { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-body span { font-size: 12px; color: var(--muted); }
.s-body em { color: var(--red); font-style: normal; font-weight: 600; }
.s-tile .grade { min-width: 30px; height: 30px; font-size: 14px; }
.s-tile .join { padding: 6px 12px; font-size: 12px; }
.s-group { margin-bottom: 22px; }
.s-group-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.s-group-h h3 { font-size: 19px; }

/* ── Live chat ─────────────────────────────────── */
body.on-chat .view { padding-bottom: 20px; }
.chat { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; height: calc(100vh - 160px); min-height: 480px; }
.chat-rooms { overflow-y: auto; padding: 10px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); }
.room { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; transition: background .15s; }
.room:hover { background: var(--paper-2); }
.room.on { background: var(--btn); color: var(--btn-ink); }
.r-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(160deg, #1d1c20, #0c0c0e); color: #f4efe3; font: 600 11px var(--sans); }
.room.on .r-ic { background: var(--red); }
.r-txt { flex: 1; min-width: 0; line-height: 1.25; }
.r-txt b { display: block; font-size: 13.5px; font-weight: 650; }
.r-txt small { font-size: 11.5px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.r-on { font: 700 10.5px var(--sans); padding: 2px 7px; border-radius: 999px; background: color-mix(in oklab, var(--green) 16%, transparent); color: var(--green); }
.chat-main { display: flex; flex-direction: column; min-height: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-head h2 { font-size: 22px; }
.ch-title { flex: 1; min-width: 0; line-height: 1.25; }
.ch-title .faint { font-size: 12.5px; }
.chat-switch { display: none; width: auto; border-radius: 999px; padding: 7px 12px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #2fb36a; box-shadow: 0 0 0 0 rgba(47, 179, 106, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(47, 179, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 179, 106, 0); } }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 80%; animation: fade .3s var(--ease); }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--paper-2); }
.msg.mine .bubble { background: var(--btn); color: var(--btn-ink); border-radius: 18px 18px 6px 18px; }
.m-head { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 2px; }
.m-head b { font-weight: 700; }
.m-head span { opacity: .5; }
.m-flag { border: 0; background: none; padding: 0; opacity: 0; color: inherit; transition: opacity .2s; }
.m-flag .ic { width: 12px; height: 12px; }
.msg:hover .m-flag { opacity: .5; }
.bubble p { margin: 0; white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; }
.chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); }
.chat-empty .em { width: 64px; height: 76px; margin-bottom: 6px; }
.chat-empty b { color: var(--ink); font: 600 20px var(--serif); }
.chat-input { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-input .input { border-radius: 999px; }
.chat-input .btn { padding: 10px 16px; }
.chat-note { padding: 0 20px 12px; font-size: 11.5px; color: var(--faint); }
@media (max-width: 900px) {
  .chat { grid-template-columns: 1fr; height: calc(100dvh - 205px); min-height: 380px; }
  .chat-rooms { display: none; }
  .chat-switch { display: block; }
  .ch-title { display: none; }
  .chat-head { padding: 12px; justify-content: space-between; }
  .msg { max-width: 92%; }
  .s-grid, .big-grid { grid-template-columns: 1fr; }
  .big-card { min-height: 250px; }
  .claim { padding: 34px 18px 24px; }
  .claim h2 { font-size: 28px; }
  .toolbar .seg { overflow-x: auto; max-width: 100%; }
}

/* ── Top-bar control cluster ─────────────────────────── */
.tb-group { display: inline-flex; align-items: center; padding: 3px; gap: 2px; border-radius: 999px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); border: 1px solid var(--line-2); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--shadow-1); }
[data-theme="dark"] .tb-group { box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px -12px rgba(0,0,0,.6); }
.tb-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; min-width: 34px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 12.5px var(--sans); letter-spacing: .01em; transition: background .25s var(--ease), color .25s, transform .2s var(--ease); }
.tb-btn .ic { width: 17px; height: 17px; }
.tb-btn:hover { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.tb-btn:active { transform: scale(.96); }
.tb-btn + .tb-btn::before { content: ""; position: absolute; left: -2px; top: 9px; bottom: 9px; width: 1px; background: var(--line-2); }
.tb-btn:hover::before, .tb-btn:hover + .tb-btn::before { opacity: 0; }
.tb-sun, .tb-moon { transition: transform .5s var(--ease), opacity .3s; }
.tb-btn .tb-moon { position: absolute; }
:root:not([data-theme="dark"]) .tb-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .tb-moon { opacity: 0; transform: rotate(40deg) scale(.6); }
.tb-exit { padding: 0 6px 0 11px; color: var(--ink); }
.tb-exit kbd { font: 600 9.5px var(--mono); letter-spacing: .04em; padding: 3px 6px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); color: var(--faint); text-transform: lowercase; }
.tb-exit:hover { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(143,29,34,.7); }
.tb-exit:hover kbd { background: rgba(255,255,255,.14); border-color: transparent; color: rgba(255,255,255,.8); }
#bell .badge { position: absolute; top: 3px; right: 3px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font: 700 9.5px/15px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--paper); }
.btn { box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, var(--shadow-1); }
.btn:active { transform: scale(.98); }
.btn-sm { box-shadow: none; }

/* ── Dossier ─────────────────────────────────────────── */
.flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 26px; }
.flag { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.flag::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--faint); }
.flag.red::before { background: var(--red); } .flag.amber::before { background: var(--amber); } .flag.ink::before { background: var(--ink); }
.flag b { font: 650 15px var(--sans); } .flag span { font-size: 13px; color: var(--muted); }
.flag.red b { color: var(--red); }
.dsec { margin: 34px 0; }
.dsec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 4px; }
.dsec-h h2 { font: 600 26px/1.1 var(--serif); letter-spacing: -.015em; }
.facts { display: flex; flex-direction: column; }
.fact { display: grid; grid-template-columns: 230px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.f-l { font: 600 13px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.f-l small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); margin-top: 3px; }
.f-val { font: 500 17px/1.45 var(--serif); color: var(--ink); }
.fact.none .f-v { color: var(--faint); font: italic 500 15px var(--serif); }
.f-why { display: block; font: 12.5px var(--sans); font-style: normal; margin-top: 2px; }
.fact blockquote { margin: 8px 0 0; padding-left: 12px; border-left: 2px solid var(--gold); color: var(--ink-2); font: italic 14px/1.5 var(--serif); }
.f-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.f-read { margin-top: 8px; padding: 9px 12px; border-radius: 10px; background: var(--red-soft); font-size: 13px; color: var(--ink-2); }
.f-read b { color: var(--red); }
.chips-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.src { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 11px var(--sans); color: var(--ink-2); background: var(--paper); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.src:hover { border-color: var(--ink); transform: translateY(-1px); }
.src i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.src span { color: var(--faint); font-weight: 500; }
.src-school i { background: var(--amber); } .src-gov i { background: var(--blue); } .src-court i { background: var(--red); } .src-press i { background: var(--ink-2); } .src-student i { background: var(--green); } .src-math i { background: var(--gold); }
.math { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.math code { font: 12.5px var(--mono); color: var(--ink-2); background: var(--paper-2); padding: 6px 9px; border-radius: 8px; width: fit-content; max-width: 100%; overflow-x: auto; }
.m-res { font: 600 18px var(--serif); color: var(--red); }
.case { padding: 16px 0; border-bottom: 1px solid var(--line); }
.case-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .case-h b { font: 600 17px var(--serif); }
.case p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
.tl { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tl-d { font: 600 12px var(--mono); color: var(--muted); padding-top: 3px; }
.tl p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.sr { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sr .ic { color: var(--green); margin-top: 3px; } .sr p { margin: 0; font-size: 14.5px; }
.gaps { margin: 12px 0; padding-left: 18px; color: var(--muted); font-size: 14px; } .gaps li { margin: 4px 0; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 14px 0; }
.outcome-cta { margin-top: 14px; }
.seg.wrap { flex-wrap: wrap; border-radius: 14px; }

/* ── Reddit ──────────────────────────────────────────── */
.rd-list { display: flex; flex-direction: column; gap: 10px; }
.rd { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; animation: rdIn .5s var(--ease); }
.rd:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-2); }
@keyframes rdIn { from { opacity: 0; transform: translateY(-6px); } }
.rd-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.rd-sub { font-weight: 700; color: #c2410c; }
.rd b { font: 600 17px/1.35 var(--serif); } .rd p { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd-f { display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--muted); } .rd-f span { display: inline-flex; gap: 4px; align-items: center; } .rd-f .ic { width: 14px; height: 14px; }
.rd-open { margin-left: auto; font-weight: 600; color: var(--ink-2); }

/* ── Compare ─────────────────────────────────────────── */
.pickrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pick { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font: 600 12.5px var(--sans); color: var(--muted); transition: all .2s; }
.pick.on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.cmp-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-1); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.cmp thead th { position: sticky; top: 0; background: var(--paper-2); font: 600 18px var(--serif); }
.cmp thead th span { display: block; font: 500 11.5px var(--sans); color: var(--faint); margin-top: 2px; }
.cmp tbody th { font: 600 12.5px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; width: 230px; }
.cmp td b { display: block; font: 600 17px var(--serif); margin-bottom: 4px; }
.cmp td small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 4px; }
.cmp td .src { margin-top: 2px; }
.cmp td.nd, .cmp .nd { color: var(--faint); font-style: italic; }
.cmp td.best b { color: var(--green); } .cmp td.worst b { color: var(--red); }
.cmp td.best { background: color-mix(in oklab, var(--green) 5%, transparent); } .cmp td.worst { background: var(--red-soft); }

/* ── Before you enroll / verdict ─────────────────────── */
.bfe h1 em { color: var(--red); font-style: italic; }
.bfe-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bfe-nav a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); font: 600 13px var(--sans); color: var(--ink); text-decoration: none; transition: all .2s; }
.bfe-nav a span { font: 600 11px var(--mono); color: var(--red); }
.bfe-nav a:hover { background: var(--btn); color: var(--btn-ink); }
section[id^="b-"] { scroll-margin-top: 90px; }
.v-in { display: flex; flex-direction: column; gap: 12px; } .v-in .label { margin-top: 4px; }
.verdict { padding: 26px; border-radius: var(--r); background: var(--obsidian); color: #f4efe3; position: relative; overflow: hidden; }
.verdict h2 { font: 700 54px/1 var(--serif); letter-spacing: -.03em; margin-top: 10px; }
.v-sub { margin: 6px 0 0; color: rgba(244,239,227,.6); font-size: 15px; }
.v-score { position: absolute; right: 26px; top: 22px; font: 700 40px var(--serif); } .v-score small { font-size: 15px; opacity: .5; }
.v-meter { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-right: 110px; }
.v-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e8cf6a, #eca15e, #e0716b, #b3262c); transition: width .6s var(--ease); }
.verdict.v4 h2, .verdict.v3 h2 { color: #ff5a52; }
.verdict.v4 { box-shadow: 0 0 0 1px rgba(216,70,63,.4), 0 24px 60px -20px rgba(216,70,63,.5); }
.v-words { margin-top: 6px; } .v-words p { font: 17px/1.6 var(--serif); margin: 0 0 10px; } .v-words b { color: var(--red); }
.v-how { margin-top: 10px; font-size: 13px; color: var(--muted); } .v-how summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.game { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-card { padding: 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); position: relative; }
.g-card h3 { font: 600 21px/1.2 var(--serif); margin: 10px 0 8px; } .g-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.g-n { font: 700 12px var(--mono); color: var(--red); letter-spacing: .1em; }
.g-card.dark { background: var(--obsidian); color: #f4efe3; border-color: transparent; } .g-card.dark p { color: rgba(244,239,227,.75); } .g-card.dark b { color: #fff; }
.fact-mini { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .fact-mini b { font-weight: 650; } .fact-mini span { color: var(--ink-2); } .fact-mini .src { width: fit-content; margin-top: 4px; }
@media (max-width: 860px) {
  .fact { grid-template-columns: 1fr; gap: 6px; }
  .game { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 4px; }
  .verdict h2 { font-size: 40px; }
  .tb-group { padding: 2px; } .tb-btn { height: 32px; min-width: 32px; }
}
.src { white-space: nowrap; max-width: 100%; } .src span { overflow: hidden; text-overflow: ellipsis; }

/* ── The Unmasked Report ─────────────────────────────── */
:root { --c1: #2a62a8; --c2: #b3262c; }
[data-theme="dark"] { --c1: #4f8fd6; --c2: #e0605a; }
.report { max-width: 980px; }
.r-hero { padding: 8px 0 26px; border-bottom: 1px solid var(--rule); }
.r-hero h1 { font: 600 clamp(38px, 5.4vw, 64px)/1.02 var(--serif); letter-spacing: -.03em; margin: 16px 0 14px; }
.r-hero h1 em { color: var(--red); }
.r-hero p { font: 18px/1.6 var(--serif); color: var(--ink-2); max-width: 720px; margin: 0; }
.r-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font: 600 12px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.r-meta a { color: var(--red); }
.r-h { font: 600 30px/1.15 var(--serif); letter-spacing: -.02em; margin: 0 0 10px; }
.r-key { padding: 34px 0 10px; }
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.kf { padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 6px; }
.kf b { font: 700 42px/1 var(--serif); letter-spacing: -.03em; }
.kf.red b { color: var(--red); }
.kf p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.r-src { font: 600 11.5px var(--sans); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.r-src:hover { color: var(--ink); }
.r-sec { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 40px 0; border-top: 1px solid var(--rule); }
.r-num { font: 600 13px var(--mono); color: var(--red); padding-top: 10px; }
.r-lede { font: 17px/1.6 var(--serif); color: var(--ink-2); margin: 0 0 18px; max-width: 760px; }
.r-take { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--paper-2); border-left: 3px solid var(--red); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.r-take b { color: var(--ink); } .r-take a { color: var(--red); }
.chart { padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); position: relative; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.k-claim { background: var(--c1); } .k-real { background: var(--c2); }
.rbars { --lab: 130px; --val: 84px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.rb, .db, .db-axis { display: grid; grid-template-columns: var(--lab, 130px) 1fr var(--val, 84px); gap: 12px; align-items: center; position: relative; min-height: 26px; outline: none; }
.dumb { --lab: 130px; --val: 110px; display: flex; flex-direction: column; gap: 8px; }
.rb-l { font: 600 13px var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-l a { color: inherit; } .rb-l a:hover { color: var(--red); }
.rb-t { height: 16px; display: flex; gap: 2px; }
.rb-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; transition: opacity .2s; }
.rb-t.stack i:first-child:not(:last-child) { border-radius: 0; }
.b1 { background: var(--c1); } .b2 { background: var(--c2); }
.rb-v { font: 600 14px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.rb-v small { font-weight: 500; color: var(--faint); }
.rb .tip, .db .tip { position: absolute; left: var(--lab); bottom: calc(100% + 6px); z-index: 5; max-width: 420px; padding: 9px 12px; border-radius: 10px; background: var(--obsidian); color: #f4efe3; font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.rb:hover .tip, .rb:focus .tip, .db:hover .tip, .db:focus .tip { opacity: 1; transform: none; }
.rbars:hover .rb:not(:hover) .rb-t i, .dumb:hover .db:not(:hover) .db-t i { opacity: .45; }
.rb-ref { position: absolute; top: -4px; bottom: -4px; border-left: 1.5px dashed var(--faint); }
.rb-ref span { position: absolute; top: -16px; left: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.db-t { position: relative; height: 20px; }
.db-t::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.db-line { position: absolute; top: calc(50% - 1px); height: 2px; background: var(--line-2); }
.db-t i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); transition: opacity .2s; }
.d-claim { background: var(--c1); } .d-real { background: var(--c2); }
.db-75 { position: absolute; top: -4px; bottom: -4px; border-left: 1.5px dashed var(--faint); }
.db-axis { min-height: 18px; } .db-axis .db-t { height: 18px; } .db-axis .db-t::before { display: none; }
.db-axis em { position: absolute; transform: translateX(-50%); font: 500 11px var(--sans); font-style: normal; color: var(--faint); }
.r-table { margin-top: 10px; font-size: 13.5px; }
.r-table summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 13px; }
.r-table table { width: 100%; border-collapse: collapse; margin-top: 10px; background: var(--paper); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.r-table th, .r-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.r-table th { font: 600 11.5px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--paper-2); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs > div { padding: 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.vs h3 { font: 600 16px var(--sans); margin: 0; }
.vs .rbars { --lab: 170px; --val: 56px; }
.tiers { display: flex; flex-direction: column; gap: 14px; }
.tier { padding: 16px 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.tier-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 700 12px var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.badge .ic { width: 14px; height: 14px; }
.badge.crit { background: #8f1d22; color: #fff; } .badge.serious { background: var(--red-soft); color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.badge.warn { background: color-mix(in oklab, var(--amber) 14%, transparent); color: var(--amber); } .badge.good { background: color-mix(in oklab, var(--green) 12%, transparent); color: var(--green); }
.badge.neutral { background: var(--paper-2); color: var(--ink-2); }
.tier-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.tier-s { border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2); }
.tier-s summary { list-style: none; cursor: pointer; display: flex; gap: 8px; align-items: baseline; padding: 9px 12px; }
.tier-s summary::-webkit-details-marker { display: none; }
.tier-s summary a { font-weight: 700; color: var(--ink); } .tier-s summary span { font-size: 12px; color: var(--faint); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tier-s summary b { font: 600 12px var(--mono); color: var(--red); }
.tier-s ul { margin: 0; padding: 0 12px 10px 28px; font-size: 13px; color: var(--ink-2); } .tier-s li { margin: 3px 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.g-col { padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.g-col h3 { display: flex; gap: 8px; align-items: center; font: 600 18px var(--serif); margin: 0 0 10px; }
.g-col ol { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--ink-2); } .g-col li { margin: 8px 0; } .g-col a { color: var(--red); }
.method-list { font-size: 14px; line-height: 1.6; color: var(--ink-2); padding-left: 18px; } .method-list a { color: var(--red); }
@media (max-width: 860px) {
  .keyfacts, .guide-grid, .vs { grid-template-columns: 1fr; }
  .r-sec { grid-template-columns: 1fr; padding: 28px 0; }
  .rbars, .dumb { --lab: 74px; --val: 64px; }
  .dumb { --val: 96px; }
  .vs .rbars { --lab: 120px; }
  .kf b { font-size: 36px; }
}
@media print { .sidenav, .topbar, .tabbar, .ticker, .r-table summary { display: none !important; } .r-table table { display: table; } }
.dumb { --val: 124px; } @media (max-width: 860px) { .dumb { --val: 104px; } }
.v-table { min-width: 0; } .v-table th small { display: block; font: 500 11.5px var(--sans); text-transform: none; letter-spacing: 0; color: var(--faint); margin-top: 3px; }
.v-table td { font: 600 15px var(--serif); font-variant-numeric: tabular-nums; } .v-table tbody tr:nth-child(2) { background: var(--red-soft); } .v-table tbody tr:last-child td { color: var(--red); }
.v-break { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.v-break div { padding: 10px 12px; border-radius: 10px; background: var(--paper-2); display: flex; flex-direction: column; gap: 2px; } .v-break span { font-size: 12px; color: var(--muted); } .v-break b { font: 600 17px var(--serif); }
.liv-now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .liv-now b { font: 600 26px var(--serif); } .liv-now span { font-size: 12.5px; color: var(--muted); }
.liv-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .liv-lines label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); } .liv-lines .input { padding: 8px 10px; }
.linkish { background: none; border: 0; padding: 0; color: var(--red); font: 600 13px var(--sans); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; text-align: left; } .linkish .ic { width: 14px; height: 14px; }
.liv-table { display: flex; flex-direction: column; margin: 10px 0; } .liv-table div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .liv-table span { color: var(--muted); } .liv-table em { color: var(--red); font-style: normal; font-weight: 600; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.pw { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--red-soft); }
.pw-h { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.45; } .pw-h .ic { color: var(--red); flex: none; margin-top: 1px; }
.pw .seg button { font-size: 12px; padding: 6px 11px; }
.pw-card { margin-top: 14px; border-left: 3px solid var(--red); } .pw-card .kgrid { margin: 8px 0; }

/* ── Navigation groups ── */
.nav-label.first { padding-top: 6px; }
.sidenav .nav-label { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }

/* ── Start page ── */
.hub-hero { position: relative; overflow: hidden; padding: 44px 40px 34px; border-radius: 22px; background: var(--ink); color: var(--paper); }
.hub-hero .mask-bg { position: absolute; right: -40px; top: -30px; width: 320px; opacity: .08; pointer-events: none; }
.hub-hero h1 { font: 700 clamp(30px, 4.4vw, 50px)/1.05 var(--serif); margin: 16px 0 12px; letter-spacing: -.01em; }
.hub-hero h1 em { color: var(--red-2, #e8605a); font-style: italic; }
.hub-hero > p { max-width: 620px; color: color-mix(in oklab, var(--paper) 72%, transparent); font-size: 16.5px; margin: 0 0 22px; }
.hub-search { position: relative; max-width: 680px; }
.hub-search .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.hub-search .input { width: 100%; height: 58px; padding-left: 52px; font-size: 17px; border-radius: 14px; background: var(--paper); color: var(--ink); border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hub-res { max-width: 680px; margin-top: 8px; display: grid; gap: 6px; }
.hub-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 18px; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; }
.hub-hit:hover, .hub-hit:focus-visible { outline: 2px solid var(--red); }
.hh-n { min-width: 0; display: flex; flex-direction: column; } .hh-n small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-k { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); } .hh-k span { display: flex; flex-direction: column; align-items: flex-end; } .hh-k b { font: 700 15px var(--sans); color: var(--ink); }
.hub-empty { padding: 12px 16px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.hub-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hub-quick a { padding: 7px 14px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--paper) 30%, transparent); color: var(--paper); text-decoration: none; font: 600 13.5px var(--sans); display: inline-flex; gap: 6px; align-items: center; }
.hub-quick a:hover { background: color-mix(in oklab, var(--paper) 12%, transparent); }
.hub-quick .ic { width: 14px; height: 14px; }
.hub-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 6px; }
.hub-kpis a { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.hub-kpis a:hover { border-color: var(--ink); }
.hub-kpis b { font: 700 30px/1 var(--serif); } .hub-kpis span { font-size: 13px; color: var(--muted); } .hub-kpis em { font-style: normal; color: var(--red); font-weight: 700; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.door { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); }
.door.ink { background: var(--paper-2); }
.door h3 { font: 700 21px var(--serif); margin: 0 0 6px; } .door > p { font-size: 14px; margin: 0 0 14px; }
.door ol { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 6px; }
.door li { counter-increment: st; }
.door li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); color: var(--ink); text-decoration: none; font: 600 14px var(--sans); }
.door.ink li a { background: var(--paper); }
.door li a::before { content: counter(st); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 12px/22px var(--sans); text-align: center; }
.door li a .ic { margin-left: auto; width: 15px; height: 15px; color: var(--muted); }
.door li a:hover { outline: 1.5px solid var(--ink); }
.hub-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hb { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.hb:hover { border-color: var(--ink); }
.hb-h { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .hb-h > b { font: 700 26px var(--serif); }
.hb-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .hb-k span { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); line-height: 1.25; } .hb-k b { font: 700 17px var(--sans); color: var(--ink); }
.hb ul { margin: 0; padding-left: 16px; font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.hb-go { margin-top: auto; font: 700 13px var(--sans); color: var(--red); display: inline-flex; gap: 6px; align-items: center; } .hb-go .ic { width: 14px; height: 14px; }
.hub-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hub-links a { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; font: 600 14px var(--sans); border: 1px solid var(--line); }
.hub-links a:hover { border-color: var(--ink); }

/* ── Timeline ── */
.ev-list { display: grid; }
.ev-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.ev-row:first-child { border-top: 0; padding-top: 2px; }
.ev-d { font: 700 13px var(--sans); color: var(--muted); padding-top: 2px; }
.ev-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.ev-k { display: inline-flex; gap: 5px; align-items: center; font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .ev-k .ic { width: 13px; height: 13px; }
.k-court .ev-k { color: var(--red); }
.ev-s { font: 700 12px var(--sans); padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink); text-decoration: none; }
.ev-st { font-size: 12px; color: var(--ink-2); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.ev-b b { display: block; font-size: 15px; margin-bottom: 2px; } .ev-b p { margin: 0 0 4px; font-size: 14.5px; color: var(--ink-2); }
.ev-b .r-src { margin-right: 10px; font-size: 12.5px; }

/* ── Verdict strip on school pages ── */
.vstrip { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; padding: 22px 24px; margin-bottom: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); border-left: 5px solid var(--muted); }
.vstrip.t-crit { border-left-color: #8f1d22; } .vstrip.t-serious { border-left-color: var(--red); } .vstrip.t-warn { border-left-color: var(--amber); } .vstrip.t-good { border-left-color: var(--green); }
.vstrip h2 { font: 700 24px var(--serif); margin: 6px 0 10px; }
.vstrip ul { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; gap: 6px; }
.vstrip li { display: flex; gap: 10px; font-size: 14.5px; } .vstrip li b { flex: none; min-width: 26px; color: var(--red); }
.vs-act { display: flex; flex-direction: column; gap: 8px; } .vs-act .btn { justify-content: flex-start; }
.ask-list { margin: 0; padding-left: 22px; display: grid; gap: 14px; }
.ask-list li::marker { font: 700 15px var(--serif); }
.aq { margin: 0 0 6px; font: 600 15.5px/1.4 var(--sans); }
.aa { padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.aa.none { color: var(--muted); border-style: dashed; }
.ask .vs-act { flex-direction: row; flex-wrap: wrap; }

@media (max-width: 1100px) { .hub-big { grid-template-columns: repeat(2, 1fr); } .hub-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } .vstrip { grid-template-columns: 1fr; } .vs-act { flex-direction: row; flex-wrap: wrap; } .hub-hero { padding: 30px 20px 24px; } .hh-k { display: none; } .hub-hit { grid-template-columns: minmax(0,1fr) auto 18px; } }
@media (max-width: 560px) { .hub-big, .hub-kpis, .hub-links { grid-template-columns: 1fr; } .ev-row { grid-template-columns: 1fr; gap: 2px; } }
@media print { .vs-act, .tabs, .community .join, .hub-search, #bell, .toasts { display: none !important; } body { background: #fff; } .vstrip, .card { break-inside: avoid; } }

/* ── Control room ── */
.ctl-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 18px; }
.ctl-kpis > div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 2px; }
.ctl-kpis b { font: 700 26px/1.1 var(--serif); } .ctl-kpis span { font-size: 13px; color: var(--muted); } .ctl-kpis em { color: var(--red); font-style: normal; font-weight: 700; }
.upd-list { display: grid; gap: 12px; }
.upd { display: grid; gap: 10px; }
.upd-h { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .upd-h .r-src { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; } .upd-h .ic { width: 13px; height: 13px; }
.upd-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.upd label, .card[data-form] label { display: flex; flex-direction: column; gap: 4px; }
.upd textarea, .card[data-form] textarea { resize: vertical; font: inherit; }
.btn-xs { padding: 4px 9px; font-size: 12px; min-height: 0; }
.src-group { margin-bottom: 10px; } .src-group summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.src-rows { display: grid; margin-top: 10px; }
.src-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 220px) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.src-row.off { opacity: .5; }
.src-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-row .faint { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-row .btns { display: flex; gap: 4px; }
.sch-tag { font: 700 11.5px var(--sans); padding: 2px 8px; border-radius: 999px; background: var(--paper-2); text-align: center; }
em.bad { color: var(--red); font-style: normal; }
.don-set { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 12px; margin: 0; }
.don-set legend { font: 700 13px var(--sans); padding: 0 6px; }
.don-set small { font-size: 12px; }
.don-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.don-link { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.don-link:hover { border-color: var(--ink); }
.don-link b { font: 700 17px var(--serif); } .don-link span { grid-column: 1; font-size: 13px; color: var(--muted); } .don-link .ic { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 16px; height: 16px; color: var(--muted); }
.don-bar { height: 10px; border-radius: 999px; background: var(--paper-2); margin-top: 10px; overflow: hidden; } .don-bar i { display: block; height: 100%; background: var(--red); border-radius: 999px; }
@media (max-width: 860px) { .ctl-kpis { grid-template-columns: 1fr 1fr; } .upd-grid { grid-template-columns: 1fr; } .src-row { grid-template-columns: 60px minmax(0,1fr); } .src-row .faint, .src-row .btns { grid-column: 2; } .don-links { grid-template-columns: 1fr; } }
.st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.st-cell { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 4px; border-top: 4px solid var(--line); }
.st-cell b { font: 700 16px var(--serif); text-transform: capitalize; } .st-cell small { color: var(--muted); font-size: 12px; } .st-cell p { margin: 4px 0; font-size: 12.5px; color: var(--ink-2); }
.st-ok { border-top-color: var(--green); } .st-bad { border-top-color: var(--red); } .st-claim { border-top-color: var(--amber); } .st-none { border-top-color: var(--line); }
.st-other { margin-top: 10px; display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 860px) { .st-grid { grid-template-columns: 1fr 1fr; } }

/* ── The Unmasked Score ── */
.us-card { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); }
.us-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.us-num { display: flex; align-items: baseline; gap: 2px; } .us-num b { font: 700 46px/1 var(--serif); } .us-num span { color: var(--muted); font-size: 14px; }
.us-band { font: 700 20px var(--serif); }
.t-crit .us-band, .t-crit .us-num b { color: #8f1d22; } .t-serious .us-band, .t-serious .us-num b { color: var(--red); } .t-warn .us-band, .t-warn .us-num b { color: var(--amber); } .t-good .us-band, .t-good .us-num b { color: var(--green); }
[data-theme="dark"] .t-crit .us-band, [data-theme="dark"] .t-crit .us-num b { color: var(--red-2); }
.us-bars { display: grid; gap: 8px; }
.us-p { display: grid; grid-template-columns: 96px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 13.5px; }
.us-p em { grid-column: 2 / 4; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.us-l { font-weight: 700; display: flex; gap: 6px; align-items: baseline; } .us-l small { color: var(--muted); font-weight: 500; font-size: 11px; }
.us-t { height: 10px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 8%, transparent); overflow: hidden; }
.us-t i { display: block; height: 100%; border-radius: 999px; }
.us-t i.lo, .us-mini i.lo { background: var(--red); } .us-t i.mid, .us-mini i.mid { background: var(--amber); } .us-t i.hi, .us-mini i.hi { background: var(--green); }
.us-p > b { text-align: right; font-variant-numeric: tabular-nums; }
.us-league { display: grid; gap: 4px; margin: 18px 0 8px; }
.us-row { display: grid; grid-template-columns: minmax(90px, 1fr) 120px repeat(5, 46px); gap: 8px; align-items: end; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
a.us-row:hover { background: var(--paper-2); }
.us-name { font-weight: 700; align-self: center; }
.us-tot { display: flex; gap: 8px; align-items: baseline; align-self: center; font-size: 12.5px; font-weight: 700; } .us-tot b { font: 700 22px var(--serif); min-width: 30px; }
.us-tot.t-crit { color: #8f1d22; } .us-tot.t-serious { color: var(--red); } .us-tot.t-warn { color: var(--amber); } .us-tot.t-good { color: var(--green); }
[data-theme="dark"] .us-tot.t-crit { color: var(--red-2); }
.us-mini { height: 34px; display: flex; align-items: flex-end; background: color-mix(in oklab, var(--ink) 6%, transparent); border-radius: 6px; overflow: hidden; }
.us-mini i { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.us-keyrow { align-items: start; padding-top: 0; } .us-mini-l { font-size: 10.5px; color: var(--muted); text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hh-sc { display: inline-flex; gap: 6px; align-items: baseline; font: 700 12px var(--sans); padding: 4px 10px; border-radius: 999px; background: var(--paper-2); }
.hh-sc b { font: 700 16px var(--serif); }
.hh-sc.t-crit { color: #8f1d22; } .hh-sc.t-serious { color: var(--red); } .hh-sc.t-warn { color: var(--amber); } .hh-sc.t-good { color: var(--green); }
.hub-hit { grid-template-columns: minmax(0, 1fr) auto auto auto 18px; }
@media (max-width: 700px) { .us-row { grid-template-columns: minmax(70px, 1fr) 96px repeat(5, 28px); gap: 5px; } .us-p { grid-template-columns: 80px minmax(0,1fr) 30px; } }
@media (max-width: 860px) { .hub-hit { grid-template-columns: minmax(0,1fr) auto 18px; } .hub-hit .badge { display: none; } }

/* ── Data for journalists ── */
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.data-item { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.data-item b { font: 700 18px var(--serif); } .data-item span { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.data-item .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.cite { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px dashed var(--line); }
.cite code { flex: 1; min-width: 220px; font-size: 13px; }
@media (max-width: 860px) { .data-grid { grid-template-columns: 1fr; } }

/* ── Gate: the dare, then the crash ── */
.g-mask { scale: var(--near, 1); transition: scale 1.2s cubic-bezier(.2, .8, .2, 1); }
.gate { --heat: 0; }
.g-aura { opacity: calc(.5 + var(--heat) * .5); animation-duration: calc(4s - var(--heat) * 2.6s); }
.g-base .pupil { filter: drop-shadow(0 0 calc(4px + var(--heat) * 6px) #ff2a33) drop-shadow(0 0 calc(10px + var(--heat) * 16px) #ff2a33); }
.gate.dare .g-base .pupil { filter: drop-shadow(0 0 10px #ff2a33) drop-shadow(0 0 34px #ff2a33) brightness(1.6); animation: none; opacity: 1; }
.gate.dare .g-aura { opacity: 1; animation-duration: .7s; }
.gate.dare .g-mask { scale: 1.08; }
.g-dare { font: 500 italic 15px var(--serif); color: rgba(255, 90, 96, .85); letter-spacing: .06em; margin-top: -6px; opacity: 0; transform: translateY(-4px); transition: opacity 1.2s ease, transform 1.2s ease; text-shadow: 0 0 18px rgba(255, 40, 50, .5); }
.g-dare.on { opacity: 1; transform: none; animation: g-dare-flicker 5s 1.2s infinite; }
@keyframes g-dare-flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .2; } 95% { opacity: 1; } 96% { opacity: .4; } }
/* the lunge */
.gate.crash .g-title, .gate.crash .g-whisper, .gate.crash .g-enter, .gate.crash .g-dare, .gate.crash .g-meta { opacity: 0 !important; transition: opacity .2s; animation: none; }
.gate.crash .g-mask { animation: g-lunge .46s cubic-bezier(.6, 0, .95, .45) forwards; }
@keyframes g-lunge { 0% { transform: none; filter: none; } 35% { transform: translateY(-4%) scale(.94) rotate(-2deg); } 100% { transform: translateY(6%) scale(3.4) rotate(3deg); filter: brightness(1.4) contrast(1.2); } }
.gate.crash .g-base .pupil { filter: drop-shadow(0 0 14px #ff2a33) drop-shadow(0 0 40px #ff2a33) brightness(2); }
.gate.crash .g-flash { animation: g-impact .9s .4s ease-out forwards; }
@keyframes g-impact { 0% { opacity: 0; } 8% { opacity: 1; background: radial-gradient(circle at 50% 42%, #fff, rgba(255, 40, 50, .85) 30%, rgba(0, 0, 0, 0) 70%); } 100% { opacity: 0; } }
.gate.crash { animation: g-shake .5s .42s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes g-shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(5px, -3px); } 30%, 50%, 70% { transform: translate(-9px, 4px) rotate(-.4deg); } 40%, 60% { transform: translate(9px, -4px) rotate(.4deg); } }
.g-crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.g-crack path { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; stroke-linejoin: bevel; filter: drop-shadow(0 0 2px rgba(255, 60, 70, .9)); stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: g-crack .32s cubic-bezier(.2, .8, .2, 1) forwards; }
.g-crack path.ring { stroke-width: 1; stroke: rgba(255, 255, 255, .55); }
@keyframes g-crack { to { stroke-dashoffset: 0; } }
.g-half .g-crack path { animation: none; stroke-dashoffset: 0; }
/* the split */
.gate.split { background: transparent !important; animation: none; }
.gate.split > :not(.g-half) { opacity: 0 !important; transition: none; }
.g-half { position: absolute; inset: 0; z-index: 4; background: radial-gradient(ellipse at 50% 42%, #1a1416 0%, #070607 62%, #000 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.g-half.l { animation: g-fall-l 1.25s cubic-bezier(.55, 0, .75, .3) forwards; transform-origin: 0 100%; }
.g-half.r { animation: g-fall-r 1.25s cubic-bezier(.55, 0, .75, .3) forwards; transform-origin: 100% 100%; }
@keyframes g-fall-l { 0% { transform: none; } 15% { transform: translate(-6px, 0) rotate(-.6deg); } 100% { transform: translate(-46vw, 70vh) rotate(-24deg); opacity: .0; } }
@keyframes g-fall-r { 0% { transform: none; } 15% { transform: translate(6px, 0) rotate(.6deg); } 100% { transform: translate(46vw, 75vh) rotate(26deg); opacity: .0; } }
@media (prefers-reduced-motion: reduce) { .g-mask { transition: none; } .g-dare.on { animation: none; } }

/* ── Corrections, replies, watch ── */
.policy h2 { font: 700 20px var(--serif); margin: 18px 0 8px; } .policy h2:first-child { margin-top: 0; }
.corr-form { display: grid; gap: 10px; position: sticky; top: 90px; }
.corr-form label { display: flex; flex-direction: column; gap: 4px; } .corr-form textarea { resize: vertical; font: inherit; }
.reply-card { border-left: 4px solid var(--ink); } .reply-card p { margin: 0 0 8px; font-size: 15px; }
.watch-box .wb { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.watch-box .wb b { display: inline-flex; gap: 8px; align-items: center; font-size: 16px; } .watch-box p { margin: 4px 0 0; font-size: 14px; max-width: 560px; }
.watch-box .btns { display: flex; gap: 8px; align-items: center; } .watch-box .f-note { margin-top: 12px; }
@media (max-width: 860px) { .corr-form { position: static; } }

.plist { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 15px; } .plist li::marker { color: var(--red); }

/* ── Flow: share chooser, school header score ── */
.write-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.write-choice a.wc-a { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; padding: 20px; border: 1px dashed var(--line-2); background: var(--paper-2, var(--paper)); border-radius: var(--r); color: inherit; text-decoration: none; transition: all .25s var(--ease); }
.write-choice a.wc-a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card.ink .write-choice button, .card.ink .write-choice a.wc-a { color: var(--ink); }
.hdr-score { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #f1ebdd; font: 700 22px var(--serif); text-decoration: none; white-space: nowrap; }
.hdr-score small { font: 500 12px var(--sans, inherit); opacity: .6; }
.hdr-score span { font: 700 12px var(--sans, inherit); letter-spacing: .08em; text-transform: uppercase; }
.hdr-score.t-crit, .hdr-score.t-serious { border-color: rgba(255,77,85,.55); } .hdr-score.t-crit span, .hdr-score.t-serious span { color: #ff6b72; }
.hdr-score.t-warn span { color: #f0a63a; } .hdr-score.t-good span { color: #4fc27e; }

/* ── Verified badge ── */
.vbadge { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px 1px 5px; border-radius: 999px; background: color-mix(in srgb, var(--green, #2f8f5b) 14%, transparent); color: var(--green, #2f8f5b); font: 700 11px var(--sans, inherit); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.vbadge .ic { width: 12px; height: 12px; }
.vf-card { display: grid; gap: 16px; } .vf-card h2 { font: 700 24px var(--serif); margin: 0; }
.vf-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; } .vf-step > span { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.vf-step p { margin: 6px 0 10px; font-size: 14px; }
.vf-code { font: 700 34px ui-monospace, Menlo, monospace; letter-spacing: .12em; margin: 6px 0 0; color: var(--red); }
.vf-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .vf-thumbs span { position: relative; } .vf-thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.vf-thumbs button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; display: grid; place-items: center; padding: 0; } .vf-thumbs button .ic { width: 12px; height: 12px; }
.vf-toggle { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.vf-ok { width: 44px; height: 44px; border-radius: 50%; background: var(--green, #2f8f5b); color: #fff; display: grid; place-items: center; }
.vf-imgs { display: flex; gap: 10px; flex-wrap: wrap; } .vf-imgs img { max-width: 320px; max-height: 320px; border-radius: 10px; border: 1px solid var(--line); }

/* ── Data & API ── */
.free-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lic { display: grid; gap: 8px; align-content: start; } .lic p { margin: 4px 0; font-size: 14px; }
.lic-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .lic-h b { font: 700 22px var(--serif); }
.lic-p { font: 700 30px var(--serif); } .lic-p small { font-size: 14px; opacity: .6; }
.lic .btn { justify-self: start; margin-top: 6px; }
.lic-form { display: grid; gap: 12px; } .lic-form label { display: flex; flex-direction: column; gap: 4px; }
.api-list { display: grid; gap: 8px; } .api-list div { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 12px; font-size: 14px; } .api-list .mono { font-size: 13px; }
@media (max-width: 860px) { .free-split, .api-list div { grid-template-columns: minmax(0, 1fr); } .write-choice { grid-template-columns: minmax(0, 1fr); } }

/* ── Access pass & help ── */
.lock-card { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 16px 18px; border: 1px dashed var(--red); border-radius: 14px; background: color-mix(in srgb, var(--red) 6%, transparent); }
.lock-card > svg { width: 22px; height: 22px; flex: none; color: var(--red); }
.lock-card .lock-t { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lock-card .lock-t span { color: var(--muted); font-size: 13.5px; }
.lock-card .btn { flex: none; }
@media (max-width: 640px) { .lock-card { flex-wrap: wrap; } .lock-card .btn { width: 100%; justify-content: center; } }
.case.locked .blurline { color: var(--muted); font-style: italic; font-size: 14px; }
.plans .plan { display: flex; flex-direction: column; gap: 4px; position: relative; }
.plans .plan .stamp { position: absolute; top: 14px; right: 14px; }
.plan-n { font-size: 18px; }
.plan-p { font: 700 40px/1.1 var(--serif, inherit); margin-top: 6px; }
.plan-p small { font-size: 15px; font-weight: 400; color: var(--muted); }
.pass-fresh { margin-bottom: 18px; border: 2px solid var(--green, #2e7d32); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details summary { cursor: pointer; list-style: none; }
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after { content: '+'; float: right; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }

/* ── Immersive layer (fx.js) ── */
.fx-aura { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(520px 420px at var(--ax, 70%) var(--ay, 20%), color-mix(in srgb, var(--red) 9%, transparent), transparent 70%); }
[data-theme="dark"] .fx-aura { background: radial-gradient(620px 480px at var(--ax, 70%) var(--ay, 20%), rgba(216, 70, 63, .13), transparent 70%); }
.fx-grain { position: fixed; inset: -50%; pointer-events: none; z-index: 1; opacity: .05; mix-blend-mode: multiply; animation: fx-grain 1.2s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-theme="dark"] .fx-grain { mix-blend-mode: screen; opacity: .045; }
@keyframes fx-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.shell, .topbar, .tabbar { position: relative; z-index: 2; }
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), #ff7a5c); box-shadow: 0 0 12px var(--red); pointer-events: none; }
.fx-in { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .7s var(--ease, ease) var(--fx-d, 0ms), transform .7s var(--ease, ease) var(--fx-d, 0ms), filter .7s var(--ease, ease) var(--fx-d, 0ms); }
.fx-in.fx-on { opacity: 1; transform: none; filter: none; }
.big-card, .plan, .hub-card { transform-style: preserve-3d; will-change: transform; transition: transform .25s ease-out, box-shadow .3s; }
.big-card::after, .plan::after, .s-tile::after, .hub-card::after, .lock-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .12), transparent 65%); }
.big-card:hover::after, .plan:hover::after, .s-tile:hover::after, .hub-card:hover::after, .lock-card:hover::after { opacity: 1; }
.s-tile, .lock-card, .plan { position: relative; }
.lock-card { overflow: hidden; }
.lock-card > svg { animation: fx-pulse 2.4s ease-in-out infinite; }
@keyframes fx-pulse { 0%, 100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 6px var(--red)); } }
.fx-veil { position: fixed; inset: 0; z-index: 55; pointer-events: none; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--red) 16%, transparent) 50%, transparent 70%); transform: translateX(-100%); }
.fx-veil.go { animation: fx-veil .65s cubic-bezier(.7, 0, .3, 1); }
@keyframes fx-veil { to { transform: translateX(100%); } }
.hdr-score { box-shadow: 0 0 0 0 transparent; animation: fx-glow 3s ease-in-out infinite; }
@keyframes fx-glow { 50% { box-shadow: 0 0 18px -4px currentColor; } }
@media (prefers-reduced-motion: reduce) { .fx-grain, .fx-veil, .fx-aura { display: none; } .fx-in { opacity: 1; transform: none; filter: none; } }
@media print { .fx-aura, .fx-grain, .fx-progress, .fx-veil { display: none !important; } }

/* ── Sign in & link a device ── */
.signin-opts .card { display: flex; flex-direction: column; gap: 6px; }
.steps { margin: 4px 0 10px; padding-left: 20px; display: grid; gap: 5px; font-size: 14.5px; }
.link-in { font-size: 24px; letter-spacing: .18em; text-align: center; text-transform: uppercase; padding: 14px; }
.link-code { font: 700 40px/1.1 var(--mono); letter-spacing: .14em; text-align: center; padding: 18px 10px; margin: 8px 0 12px; border-radius: 14px; background: var(--obsidian, #0c0c0e); color: #f4efe3; user-select: all; box-shadow: 0 0 30px -10px var(--red); }
.link-code span { color: var(--red); }
.link-code.dead { opacity: .35; text-decoration: line-through; box-shadow: none; }
.link-card { margin-bottom: 16px; }
.signin-opts .card > .stamp { align-self: flex-start; }
