/* =====================================================================
   Unvouched
   Dark by default, light on demand. One loud element per page:
   the glowing ID search on the home page, the rubber stamp on flagged IDs.
   Archivo's variable width carries the voice (condensed for headings),
   JetBrains Mono is reserved for Discord IDs.
   Components marked "Uiverse.io" are adapted from uiverse.io (MIT licence).
   ===================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800; font-display: swap;
}

/* ---------- tokens ---------- */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #12141c;
  --bg-2: #161925;
  --surface: #1a1d29;
  --surface-2: #222636;
  --field: #11131b;
  --line: #2a2f43;
  --line-2: #3a4160;
  --text: #eceef6;
  --muted: #a3aac0;
  --faint: #757c95;
  --rose: #ff5c7a;
  --rose-2: #ff7f97;
  --on-rose: #2a0610;
  --rose-soft: rgba(255, 92, 122, .13);
  --violet: #9b88ff;
  --blue: #62b1ff;
  --blue-soft: rgba(98, 177, 255, .13);
  --mint: #4fd6a6;
  --on-mint: #04251a;
  --mint-soft: rgba(79, 214, 166, .13);
  --amber: #f5bd55;
  --amber-soft: rgba(245, 189, 85, .14);
  --glass: rgba(26, 29, 41, .62);
  --glass-line: rgba(255, 255, 255, .08);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  --dot: rgba(255, 255, 255, .045);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f8;
  --bg-2: #eceef4;
  --surface: #ffffff;
  --surface-2: #f5f6fa;
  --field: #ffffff;
  --line: #e1e4ec;
  --line-2: #c9cedb;
  --text: #151925;
  --muted: #535b71;
  --faint: #868ca1;
  --rose: #df2a50;
  --rose-2: #c41f43;
  --on-rose: #ffffff;
  --rose-soft: rgba(223, 42, 80, .09);
  --violet: #6a56ea;
  --blue: #2c7fe4;
  --blue-soft: rgba(44, 127, 228, .1);
  --mint: #0d9668;
  --on-mint: #ffffff;
  --mint-soft: rgba(13, 150, 104, .1);
  --amber: #a86d00;
  --amber-soft: rgba(196, 135, 0, .12);
  --glass: rgba(255, 255, 255, .7);
  --glass-line: rgba(21, 25, 37, .08);
  --shadow: 0 22px 50px -30px rgba(30, 40, 70, .35);
  --dot: rgba(21, 25, 37, .055);
}
:root {
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; font-weight: 760; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-stretch: 72%; font-weight: 820; }
h2 { font-size: 1.3rem; font-stretch: 82%; }
h3 { font-size: 1.05rem; font-stretch: 92%; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--rose) 60%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rose-2); }
img, video { max-width: 100%; display: block; }
code { font-family: var(--mono); }
small { font-size: .82em; }
strong { font-weight: 700; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.ico { flex: none; vertical-align: -.18em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--rose); color: var(--on-rose); padding: .6rem 1rem; border-radius: var(--r); font-weight: 700; }
.skip:focus { left: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 680px; }
.page { padding-top: 2.25rem; padding-bottom: 4rem; }
.section { padding-top: 3rem; }
.quiet { color: var(--muted); }
.fine { color: var(--muted); font-size: .86rem; line-height: 1.45; margin: .5rem 0 0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.trunc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-btns { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.push-right { margin-left: auto; }
.ok, .ok-line { color: var(--mint); }
.ok-line { display: flex; gap: .5rem; align-items: center; font-weight: 650; }
.warn-text { color: var(--amber); }

/* ---------- Discord IDs ---------- */
code.id {
  display: inline-block; font-size: .82em; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .06em .42em;
}
a:has(> code.id) { text-decoration: none; }
a:hover > code.id { border-color: var(--rose); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2;
  padding: .64rem 1.1rem; border-radius: var(--r); cursor: pointer; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { color: var(--text); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-busy { opacity: .55; cursor: progress; }
.btn-primary { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.btn-primary:hover { background: var(--rose-2); border-color: var(--rose-2); color: var(--on-rose); }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--rose) 55%, transparent); color: var(--rose); }
.btn-danger:hover { background: var(--rose-soft); border-color: var(--rose); color: var(--rose-2); }
.btn-approve { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }
.btn-approve:hover { filter: brightness(1.08); color: var(--on-mint); border-color: var(--mint); }
.btn-sm { padding: .44rem .8rem; font-size: .875rem; }
.btn-block { width: 100%; }
.linkbtn { font: inherit; font-size: .875rem; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.linkbtn:hover { color: var(--text); }
.linkbtn-danger { color: var(--rose); }
.textlink { font-size: .9rem; color: var(--muted); }
.copy {
  display: inline-flex; align-items: center; gap: .3rem; font: inherit; font-size: .8rem; font-weight: 600;
  color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .18rem .55rem; cursor: pointer;
}
.copy:hover { color: var(--text); }
.copy.is-done { color: var(--mint); border-color: var(--mint); }

/* ---------- form controls ---------- */
input[type=text], input[type=search], input[type=email], input[type=password], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r); padding: .66rem .85rem;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 6rem; line-height: 1.55; }
select { appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23858ba0' stroke-width='1.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: .85; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input[type=file] { font: inherit; font-size: .9rem; color: var(--muted); max-width: 100%; min-width: 0; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: .86rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .42rem .8rem; margin-right: .75rem; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--rose); }
.field { margin-bottom: 1.15rem; }
.field > label, .decline-form > label { display: block; font-weight: 640; font-size: .95rem; margin-bottom: .4rem; }
.optional { color: var(--faint); font-weight: 400; font-size: .84rem; margin-left: .2rem; }
.req { color: var(--rose); font-weight: 600; font-size: .8rem; margin-left: .25rem; }
.help { color: var(--muted); font-size: .86rem; margin: .4rem 0 0; }
.field-error { color: var(--rose-2); font-size: .87rem; font-weight: 560; margin: .4rem 0 0; }
.has-error input:not([type=checkbox]):not([type=radio]):not([type=file]), .has-error textarea, .has-error select { border-color: var(--rose); }
.input-row { display: flex; gap: .5rem; }
.input-row > input { flex: 1; min-width: 0; }
.check, .field > label.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-weight: 400; }
.check input { margin-top: .28rem; width: 1.05rem; height: 1.05rem; flex: none; }
.form-errors { border: 1px solid color-mix(in srgb, var(--rose) 50%, transparent); background: var(--rose-soft); border-radius: var(--r); padding: .85rem 1rem; margin: 0 0 1.25rem; }
.form-errors strong { color: var(--rose-2); }
.form-errors p { margin: .3rem 0 0; }
.code-input { font-family: var(--mono) !important; font-size: 1.35rem !important; letter-spacing: .3em; text-align: center; }

/* small toggle switch (admin alerts) */
.switch { display: flex; align-items: center; gap: .6rem; font-size: .86rem; color: var(--muted); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 34px; height: 20px; flex: none; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--rose); }
.switch input:checked + .switch-ui::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.card-quiet { background: transparent; }
.card-title { font-size: 1.05rem; font-stretch: 88%; margin-bottom: .8rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin-bottom: .2rem; }
.section-head p { margin: 0; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 1.1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-name { font-weight: 880; font-stretch: 64%; font-size: 1.5rem; letter-spacing: .005em; }
.brand-sm .brand-name { font-size: 1.25rem; }
.mark { color: var(--text); }
.topsearch { flex: 1; max-width: 420px; position: relative; display: flex; align-items: center; }
.topsearch .ico { position: absolute; left: .8rem; color: var(--faint); pointer-events: none; }
.topsearch input { padding: .5rem .8rem .5rem 2.3rem; font-size: .92rem; border-radius: 999px; }
.topnav { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.navlink { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.navlink:hover, .navlink.is-on { color: var(--text); }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; position: relative; display: block; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.dot-alert { position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2px var(--bg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.menu-head { display: flex; gap: .7rem; align-items: center; padding: .55rem .6rem .75rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
.menu-head strong { display: block; }
.menu-head span { color: var(--muted); font-size: .84rem; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; width: 100%; padding: .52rem .65rem; border-radius: 8px; color: var(--text); text-decoration: none; font: inherit; font-size: .94rem; background: none; border: 0; text-align: left; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); color: var(--text); }
.menu-panel form { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--line); }
.count { margin-left: auto; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--rose); color: var(--on-rose); font-size: .74rem; font-weight: 760; display: inline-grid; place-items: center; }

/* ---------- theme switch (Uiverse.io by Galahhad, MIT) ---------- */
.theme-switch {
  --toggle-size: 11px;
  --container-width: 5.625em; --container-height: 2.5em; --container-radius: 6.25em;
  --container-light-bg: #3D7EAE; --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em; --sun-moon-diameter: 2.125em;
  --sun-bg: #ECCA2F; --moon-bg: #C4C9D1; --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff; --clouds-color: #F3FDFF; --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
  position: relative; display: inline-block; flex: none; font-size: var(--toggle-size); line-height: 0;
}
.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after { box-sizing: border-box; margin: 0; padding: 0; }
.theme-switch__checkbox { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-switch__container {
  display: block; position: relative; width: var(--container-width); height: var(--container-height);
  background-color: var(--container-light-bg); border-radius: var(--container-radius); overflow: hidden; cursor: pointer;
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  transition: var(--transition);
}
.theme-switch__container::before { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: var(--container-radius);
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset; }
.theme-switch__checkbox:focus-visible + .theme-switch__container { outline: 2px solid var(--blue); outline-offset: 3px; }
.theme-switch__circle-container {
  width: var(--circle-container-diameter); height: var(--circle-container-diameter); background-color: rgba(255, 255, 255, 0.1);
  position: absolute; left: var(--circle-container-offset); top: var(--circle-container-offset); border-radius: var(--container-radius);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: flex; transition: var(--circle-transition); pointer-events: none;
}
.theme-switch__sun-moon-container {
  pointer-events: auto; position: relative; z-index: 2; width: var(--sun-moon-diameter); height: var(--sun-moon-diameter); margin: auto;
  border-radius: var(--container-radius); background-color: var(--sun-bg);
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden; transition: var(--transition);
}
.theme-switch__moon {
  display: block; transform: translateX(100%); width: 100%; height: 100%; background-color: var(--moon-bg); border-radius: inherit;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  transition: var(--transition); position: relative;
}
.theme-switch__spot { display: block; position: absolute; top: 0.75em; left: 0.312em; width: 0.75em; height: 0.75em; border-radius: var(--container-radius); background-color: var(--spot-color); box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset; }
.theme-switch__spot:nth-of-type(2) { width: 0.375em; height: 0.375em; top: 0.937em; left: 1.375em; }
.theme-switch__spot:nth-last-of-type(3) { width: 0.25em; height: 0.25em; top: 0.312em; left: 0.812em; }
.theme-switch__clouds {
  display: block; width: 1.25em; height: 1.25em; background-color: var(--clouds-color); border-radius: var(--container-radius); position: absolute; bottom: -0.625em; left: 0.312em;
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}
.theme-switch__stars-container { display: block; position: absolute; color: var(--stars-color); top: -100%; left: 0.312em; width: 2.75em; height: auto; transition: var(--transition); }
.theme-switch__stars-container svg { width: 100%; height: auto; }
.theme-switch__checkbox:checked + .theme-switch__container { background-color: var(--container-night-bg); }
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container { left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter)); }
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover { left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em); }
.theme-switch__circle-container:hover { left: calc(var(--circle-container-offset) + 0.187em); }
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon { transform: translate(0); }
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds { bottom: -4.062em; }
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container { top: 50%; transform: translateY(-50%); }

/* ---------- avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; vertical-align: middle; background: var(--surface-2); }
.avatar-fallback { display: inline-grid; place-items: center; color: #fff; font-weight: 760; font-stretch: 90%; line-height: 1; background: linear-gradient(135deg, hsl(var(--h, 260) 55% 52%), hsl(calc(var(--h, 260) + 40) 50% 36%)); }

/* ---------- flash, notes ---------- */
.flash { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.flash-success { border-color: color-mix(in srgb, var(--mint) 50%, transparent); background: var(--mint-soft); }
.flash-error { border-color: color-mix(in srgb, var(--rose) 50%, transparent); background: var(--rose-soft); }
.flash-info { border-color: color-mix(in srgb, var(--blue) 45%, transparent); background: var(--blue-soft); }
.note-box { padding: .85rem 1rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); margin: 0 0 1rem; }
.note-box > strong { display: block; margin-bottom: .2rem; }
.note-box > p { margin: 0; white-space: pre-line; }
.note-box > p.fine { margin-top: .45rem; }
.note-declined { background: var(--rose-soft); border-color: color-mix(in srgb, var(--rose) 40%, transparent); }
.note-declined > strong { color: var(--rose-2); }
.note-warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 45%, transparent); color: var(--text); }
.note-info { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }

/* ---------- chips, pills, roles ---------- */
.chip-cat { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 640; line-height: 1; padding: .34rem .62rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.chip-cat i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--faint); }
.tone-money i, .tone-money .choice-ico { --tone: var(--rose); }
.tone-security i, .tone-security .choice-ico { --tone: var(--amber); }
.tone-abuse i, .tone-abuse .choice-ico { --tone: var(--violet); }
.tone-other i, .tone-other .choice-ico { --tone: var(--faint); }
.chip-cat i { background: var(--tone, var(--faint)); }
.pill { display: inline-flex; align-items: center; gap: .38rem; font-size: .78rem; font-weight: 700; line-height: 1; padding: .34rem .62rem; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.pill::before { content: ''; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.pill-pending { color: var(--amber); background: var(--amber-soft); }
.pill-approved { color: var(--mint); background: var(--mint-soft); }
.pill-declined { color: var(--rose-2); background: var(--rose-soft); }
.role { display: inline-block; font-size: .72rem; font-weight: 760; padding: .18rem .5rem; border-radius: 999px; vertical-align: middle; font-stretch: 100%; letter-spacing: .01em; }
.role-moderator { background: var(--blue-soft); color: var(--blue); }
.role-admin { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }
.role-owner { background: linear-gradient(90deg, var(--rose), var(--violet)); color: #fff; }
.role-banned { background: var(--rose-soft); color: var(--rose-2); }
.tag { display: inline-block; font-size: .78rem; font-weight: 650; padding: .1rem .5rem; border-radius: 999px; text-decoration: none; }
.tag-rose { background: var(--rose-soft); color: var(--rose-2); }
.chips { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { padding: .24rem .65rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; background: var(--surface-2); }

/* ---------- the stamp ---------- */
.stamp {
  display: inline-flex; align-items: baseline; gap: .2em; flex: none;
  font-family: var(--font); font-stretch: 62%; font-weight: 900; font-size: 1.55rem; line-height: 1;
  letter-spacing: .05em; text-transform: uppercase; color: var(--rose);
  padding: .22em .5em .18em; border: 3px solid currentColor; border-radius: 7px;
  outline: 1.5px solid currentColor; outline-offset: 3px; transform: rotate(-7deg); opacity: .93;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -7 4.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -7 4.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-size: 240px 120px; mask-size: 240px 120px;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.stamp small { font-size: .62em; letter-spacing: .02em; text-transform: none; }
.stamp-lg { font-size: clamp(2rem, 4.2vw, 3rem); border-width: 4px; outline-width: 2px; outline-offset: 4px; }
.stamp-in { animation: stamp-in .45s cubic-bezier(.2, .9, .25, 1.25) .35s both; }
@keyframes stamp-in { from { transform: rotate(-16deg) scale(1.8); opacity: 0; } 60% { opacity: .95; } to { transform: rotate(-7deg) scale(1); opacity: .93; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 4.5rem 0 3.5rem; overflow-x: clip;
  background:
    radial-gradient(600px 320px at 20% 10%, color-mix(in srgb, var(--rose) 14%, transparent), transparent 70%),
    radial-gradient(520px 300px at 85% 30%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 70%),
    radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 22px 22px;
  border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 3.5rem; align-items: center; }
.scope-tag { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1.1rem; padding: .32rem .75rem; border-radius: 999px; font-size: .88rem; font-weight: 650; color: var(--text); background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); }
.scope-tag .ico { color: var(--rose); }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.3rem); font-stretch: 62%; font-weight: 880; line-height: .94; letter-spacing: -.01em; margin-bottom: 1.2rem; max-width: 14ch; }
.hero .lead { margin-bottom: 1.8rem; }
.hint { color: var(--muted); font-size: .9rem; margin: .9rem 0 0; }

/* glowing search (Uiverse.io by SelfMadeSystem "swift-bullfrog-34", MIT: rotating conic border) */
.glow-search { position: relative; max-width: 640px; border-radius: 18px; isolation: isolate; }
.glow-ring { position: absolute; inset: -2px; z-index: -1; border-radius: 19px; overflow: hidden; }
.glow-ring::before {
  content: ''; position: absolute; top: 50%; left: 50%; aspect-ratio: 1; min-width: 160%; min-height: 160%;
  background-image: conic-gradient(from 0deg, var(--rose), var(--violet), var(--blue), transparent 60%, var(--rose));
  transform-origin: 0 0; transform: rotate(0deg) translate(-50%, -50%); animation: glow-spin 5s linear infinite;
}
.glow-ring-blur { filter: blur(16px); opacity: .5; transition: opacity .3s; }
.glow-search:focus-within .glow-ring-blur { opacity: .85; }
.glow-search:focus-within .glow-ring::before { animation-duration: 2.4s; }
@keyframes glow-spin { to { transform: rotate(360deg) translate(-50%, -50%); } }
.glow-inner { display: flex; align-items: center; gap: .4rem; padding: .45rem .45rem .45rem 1rem; background: var(--surface); border-radius: 16px; }
.glow-inner > .ico { color: var(--faint); }
.glow-inner input { border: 0; background: transparent; box-shadow: none; font-size: 1.1rem; padding: .75rem .4rem; font-family: var(--mono); letter-spacing: -.01em; }
.glow-inner input::placeholder { font-family: var(--font); letter-spacing: 0; }
.glow-inner input:focus { box-shadow: none; }
.glow-inner .btn { padding: .78rem 1.5rem; font-size: 1rem; border-radius: 12px; }

/* example dossier */
.specimen { position: relative; }
.specimen-note { color: var(--faint); font-size: .84rem; margin: .7rem 0 0 .2rem; }
.dossier { position: relative; padding: 1.4rem; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.dossier-head { display: flex; gap: .9rem; align-items: center; }
.dossier-head strong { display: block; font-size: 1.2rem; font-stretch: 84%; margin-bottom: .2rem; }
.dossier .facts { margin-top: 1.15rem; }
.dossier .stamp { position: absolute; top: 1.2rem; right: 1rem; }
.dossier-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.15rem; }
.dossier-proof span { height: 62px; border-radius: 8px; border: 1px solid var(--line); background:
  linear-gradient(var(--line-2), var(--line-2)) 10px 12px / 55% 6px no-repeat,
  linear-gradient(var(--line), var(--line)) 10px 26px / 72% 6px no-repeat,
  linear-gradient(color-mix(in srgb, var(--rose) 55%, transparent), color-mix(in srgb, var(--rose) 55%, transparent)) 10px 40px / 34% 6px no-repeat,
  var(--surface-2); }

/* ---------- facts ---------- */
.facts { display: grid; gap: .55rem; margin: 0; }
.facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.facts dt { color: var(--muted); font-size: .86rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts-side > div { grid-template-columns: minmax(0, 1fr) auto; }
.facts-side dd { text-align: right; }

/* ---------- category glass cards (Uiverse.io by boryanakrasteva "strong-cat-50", MIT: blobs behind frosted glass) ---------- */
.glass-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.glass { position: relative; overflow: hidden; border-radius: var(--r-lg); isolation: isolate; }
.glass::before, .glass::after { content: ''; position: absolute; z-index: -1; width: 110px; height: 110px; border-radius: 50%; transition: transform .6s ease, left .6s ease, top .6s ease; }
.glass::before { top: -34px; left: -30px; background: color-mix(in srgb, var(--blob, var(--rose)) 55%, transparent); }
.glass::after { top: 62%; left: 66%; background: color-mix(in srgb, var(--blob-2, var(--violet)) 45%, transparent); }
.glass:hover::before { left: 58%; transform: scale(1.2); }
.glass:hover::after { left: -14%; transform: scale(1.2); }
.glass-money { --blob: var(--rose); --blob-2: var(--violet); }
.glass-security { --blob: var(--amber); --blob-2: var(--rose); }
.glass-abuse { --blob: var(--violet); --blob-2: var(--blue); }
.glass-other { --blob: var(--blue); --blob-2: var(--faint); }
.glass a {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; min-height: 150px; padding: 1rem;
  text-decoration: none; color: var(--text); background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); transition: border-color .3s;
}
.glass a:hover { color: var(--text); border-color: var(--line-2); }
.glass-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface); border: 1px solid var(--glass-line); margin-bottom: .35rem; }
.glass strong { font-size: .98rem; font-stretch: 90%; line-height: 1.2; }
.glass a > span:last-child { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.scope-note { margin-top: 1rem; padding: .85rem 1.1rem; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); }
.scope-note p { margin: 0; }
.scope-note strong { color: var(--text); }

/* ---------- report cards (hover border: Uiverse.io by Clenio21 "stale-sloth-57", MIT: masked conic border) ---------- */
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2rem; padding-bottom: 4rem; align-items: start; }
.side-stack { display: grid; gap: 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.rcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s ease; }
.rcard::after {
  content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from 210deg, var(--rose), var(--violet), var(--blue), var(--rose));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s;
}
.rcard:hover { transform: translateY(-2px); }
.rcard:hover::after, .rcard:focus-within::after { opacity: 1; }
.rcard-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.rcard-link:focus-visible { outline-offset: -3px; }
.rcard-cover { position: relative; aspect-ratio: 3 / 1.55; background: var(--surface-2); overflow: hidden; }
.rcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.rcard-nocover { display: grid; place-items: center; height: 100%; color: var(--faint); }
.rcard-cover .chip-cat { position: absolute; left: .7rem; bottom: .7rem; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); }
.rcard-body { padding: .9rem 1rem .4rem; flex: 1; }
.rcard-title { font-size: 1.02rem; font-stretch: 92%; margin-bottom: .45rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard-target { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; margin: 0 0 .4rem; min-width: 0; }
.rcard-foot { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem .85rem; color: var(--faint); font-size: .84rem; border-top: 1px solid var(--line); }
.rcard-foot span { display: inline-flex; align-items: center; gap: .3rem; }
.rcard-foot time { margin-left: auto; }
.score { font-weight: 760; font-variant-numeric: tabular-nums; color: var(--muted); }
.score.is-up { color: var(--mint); }
.score.is-down { color: var(--rose); }
.tally { margin: 1rem 0 0; font-size: .9rem; }

/* side rank */
.rank { list-style: none; margin: 0 0 .6rem; padding: 0; }
.rank li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank-n { color: var(--faint); font-weight: 800; font-stretch: 72%; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.rank li:first-child .rank-n { color: var(--rose); }
.rank-main { min-width: 0; text-decoration: none; display: grid; gap: .15rem; justify-items: start; }
.rank-count { min-width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 999px; background: var(--rose-soft); color: var(--rose-2); font-weight: 760; font-size: .86rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; }
.steps p { color: var(--muted); font-size: .9rem; margin: .15rem 0 0; }
.step-n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--rose-soft); color: var(--rose-2); font-weight: 800; font-stretch: 80%; }

/* ---------- list rows ---------- */
.rows { list-style: none; margin: 0; padding: .3rem; }
.rows > li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .7rem; border-radius: var(--r); text-decoration: none; color: inherit; }
.row:hover { background: var(--surface-2); color: inherit; }
.row-thumb { display: grid; place-items: center; width: 96px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--surface-2); color: var(--faint); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-main { min-width: 0; display: grid; gap: .25rem; justify-items: start; }
.row-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; }
.row:hover .row-title { color: var(--rose-2); }
.row-sub { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .88rem; max-width: 100%; min-width: 0; }
.row-meta { display: flex; align-items: center; gap: .9rem; color: var(--faint); font-size: .85rem; }
.row-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.row-meta time { min-width: 5.5rem; text-align: right; }

/* ---------- empty states ---------- */
.empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 2.2rem 1.5rem; text-align: center; color: var(--muted); }
.empty-title { color: var(--text); font-size: 1.15rem; font-weight: 720; margin-bottom: .4rem; }
.empty p { max-width: 56ch; margin-left: auto; margin-right: auto; }
.empty .btn { margin-top: .4rem; }
.empty .row-btns { justify-content: center; }
.empty-wide { padding: 2.6rem 2rem; }

/* ---------- page heads, filters, tabs, pager ---------- */
.page-head { margin-bottom: 1.6rem; }
.page-head h1 { margin-bottom: .35rem; }
.page-head p { margin: 0; }
.page-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding: .6rem; }
.filters input[type=search] { flex: 1 1 260px; }
.filters select { width: auto; flex: 0 1 auto; }
.tabs { display: flex; gap: .3rem; margin: 0 0 1.5rem; padding: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; }
.tab { padding: .5rem 1rem; color: var(--muted); text-decoration: none; font-weight: 640; border-radius: 999px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-on { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab-n { color: var(--faint); font-weight: 500; margin-left: .2rem; font-variant-numeric: tabular-nums; }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.crumbs { display: flex; gap: .5rem; color: var(--faint); font-size: .88rem; margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- target (ID record) ---------- */
.idcard { position: relative; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; padding: 1.6rem; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; isolation: isolate; }
.idcard.is-flagged { background: radial-gradient(420px 220px at 100% 0%, var(--rose-soft), transparent 70%), var(--surface); }
.idcard.is-clean { background: radial-gradient(420px 220px at 100% 0%, var(--mint-soft), transparent 70%), var(--surface); }
.idcard-shot { flex: none; display: block; width: 120px; height: 120px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.idcard-shot img { width: 100%; height: 100%; object-fit: cover; }
.idcard-icon { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.idcard-main { flex: 1; min-width: 260px; }
.idcard-main > p.quiet { margin: 0 0 .2rem; }
.idcard-id { margin: 0 0 .7rem; font-size: clamp(1.6rem, 4.4vw, 2.7rem); }
.idcard-id code { font-family: var(--mono); font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.idcard-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 0; font-size: .9rem; }
.idcard-meta .quiet { display: inline-flex; gap: .35rem; align-items: center; }
.idcard .stamp { margin-right: .5rem; }
.clean-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0 0 2rem; padding: 0; overflow: hidden; }
.stats > div { padding: 1rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.stats dt { color: var(--muted); font-size: .84rem; margin-bottom: .25rem; }
.stats dd { margin: 0; font-weight: 780; font-size: 1.35rem; font-stretch: 80%; overflow-wrap: anywhere; }
.stats dd.dd-small { font-size: 1rem; font-stretch: 92%; font-weight: 640; }

/* ---------- report page ---------- */
.banner { border-radius: var(--r-lg); padding: 1rem 1.15rem; margin-bottom: 1.5rem; border: 1px solid var(--line); }
.banner p:last-child { margin-bottom: 0; }
.banner-pending { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.banner-declined { background: var(--rose-soft); border-color: color-mix(in srgb, var(--rose) 40%, transparent); }
.banner-top { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.banner-top p { margin: 0; }
.banner-note { white-space: pre-line; }
.report-head { margin-bottom: 1.6rem; max-width: 860px; }
.report-head h1 { margin: .7rem 0 .8rem; font-size: clamp(2rem, 3.8vw, 3rem); }
.byline { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: 0; font-size: .94rem; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.report-main { min-width: 0; }
.report-side { display: grid; gap: 1rem; position: sticky; top: 86px; min-width: 0; }
.report-side .card .btn { margin-top: .4rem; }
.block { margin-top: 2.2rem; }
.who { position: relative; display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.35rem 1.4rem; }
.who-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.who-info { flex: 1; min-width: 0; padding-right: 8rem; }
.who-info > p.quiet { margin: 0; font-size: .86rem; }
.who-name { font-size: 1.6rem; font-weight: 800; font-stretch: 76%; line-height: 1.1; margin: .1rem 0 .5rem; overflow-wrap: anywhere; }
.who-id { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .9rem; }
.who-id code.id { font-size: .98rem; }
.who .stamp { position: absolute; top: 1.3rem; right: 1.3rem; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; max-width: 72ch; }
.prose-box { background: var(--field); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; max-height: 22rem; overflow: auto; max-width: none; }
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
.gallery-1 { grid-template-columns: 1fr; }
.gallery-3 > .shot:first-child { grid-row: span 2; }
.gallery-3 { grid-template-columns: 1.4fr 1fr; }
.shot { position: relative; display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.03); }
.video { margin: .8rem 0 0; padding: .6rem; }
.video video { width: 100%; max-height: 520px; border-radius: var(--r); background: #000; }
.video figcaption { display: flex; gap: .4rem; align-items: center; font-size: .86rem; padding: .5rem .2rem 0; }
.votes { display: inline-flex; align-items: center; gap: .4rem; }
.vote { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.vote:hover:not(:disabled) { color: var(--text); }
.vote:disabled { opacity: .45; cursor: not-allowed; }
.vote-up.is-on { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }
.vote-down.is-on { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.vote-score { min-width: 2.6rem; text-align: center; font-weight: 820; font-size: 1.35rem; font-stretch: 78%; font-variant-numeric: tabular-nums; }
.votes-sm .vote { width: 1.8rem; height: 1.8rem; border-radius: 7px; }
.votes-sm .vote-score { font-size: .95rem; min-width: 1.6rem; }
.minilist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.minilist li { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; font-size: .93rem; min-width: 0; }
.minilist li > .quiet, .minilist time { font-size: .82rem; white-space: nowrap; flex: none; }
.comment-form { padding: .8rem; margin-bottom: 1.4rem; }
.comment-form textarea { border: 0; background: transparent; padding: .3rem; min-height: 4.5rem; }
.comment-form textarea:focus { box-shadow: none; }
.comment-form-foot { display: flex; justify-content: space-between; align-items: center; padding-top: .5rem; border-top: 1px solid var(--line); }
.comment-form-foot .fine { margin: 0; }
.login-note { padding: .9rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.clist-admin { padding: 1.2rem; }
.comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; scroll-margin-top: 90px; }
.comment:target .c-body { background: var(--blue-soft); border-radius: var(--r); box-shadow: 0 0 0 8px var(--blue-soft); }
.c-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0 0 .2rem; font-size: .9rem; }
.c-user { font-weight: 720; text-decoration: none; }
.c-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.c-actions { display: flex; gap: 1rem; align-items: center; margin-top: .45rem; }

/* ---------- leaderboard ---------- */
.podium { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; }
.podium li a { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 1.4rem 1rem 1.2rem; text-align: center; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; color: var(--text); }
.podium li a:hover { border-color: var(--line-2); color: var(--text); }
.podium-1 { order: 2; }
.podium-1 a { padding-top: 2rem !important; background: radial-gradient(260px 140px at 50% 0%, var(--rose-soft), transparent 70%), var(--surface) !important; }
.podium-2 { order: 1; }
.podium-3 { order: 3; }
.podium-rank { position: absolute; top: .8rem; left: .9rem; font-weight: 880; font-stretch: 62%; font-size: 1.5rem; color: var(--faint); }
.podium-1 .podium-rank { color: var(--rose); }
.podium strong { font-size: 1.08rem; font-stretch: 88%; margin-top: .3rem; }
.podium-score { font-weight: 820; font-size: 1.5rem; font-stretch: 76%; }
.podium-score small { font-size: .62em; color: var(--muted); font-weight: 500; font-stretch: 100%; }
.board { list-style: none; margin: 0; padding: .3rem; }
.board li { display: grid; grid-template-columns: 2rem auto minmax(0, 1fr) auto 5.5rem; gap: .9rem; align-items: center; padding: .65rem .8rem; border-radius: var(--r); }
.board li + li { border-top: 1px solid var(--line); }
.board-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.board-main { min-width: 0; text-decoration: none; display: grid; justify-items: start; gap: .1rem; }
.board-main strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-stat { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.board-score { text-align: right; font-weight: 820; font-size: 1.25rem; font-stretch: 78%; font-variant-numeric: tabular-nums; }
.board-score small { display: block; font-size: .7rem; color: var(--faint); font-weight: 500; font-stretch: 100%; }
.board-score-rose { color: var(--rose-2); }
.levels { margin-top: 2rem; }
.level-list { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
.level-list li { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; padding: .65rem .8rem; border-radius: var(--r); background: var(--surface-2); }
.level-list .quiet { grid-column: 2; font-size: .84rem; }
.level-n { grid-row: span 2; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--rose-soft); color: var(--rose-2); font-weight: 800; }

/* ---------- profile ---------- */
.profile { padding: 0; overflow: hidden; margin-bottom: 2rem; }
.profile-banner { height: 120px; background:
  radial-gradient(circle at 20% 30%, hsl(var(--h) 70% 55% / .55), transparent 55%),
  radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--violet) 55%, transparent), transparent 60%),
  radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 16px 16px, var(--surface-2); }
.profile-body { display: flex; gap: 1.4rem; align-items: flex-start; flex-wrap: wrap; padding: 0 1.5rem 1.2rem; }
.profile-avatar { margin-top: -52px; border: 5px solid var(--surface); box-sizing: content-box; }
.profile-main { flex: 1; min-width: 240px; padding-top: 1rem; }
.profile-main h1 { margin-bottom: .2rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.profile-main > p.quiet { margin-bottom: .7rem; }
.profile-body > .btn { margin-top: 1rem; }
.bio { white-space: pre-line; max-width: 64ch; margin: 0; }
.profile-foot { display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--bg-2); }
.level { flex: 1; min-width: 240px; max-width: 420px; }
.level p { margin: 0 0 .45rem; }
.meter { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rose), var(--violet)); }
.meter-lg { height: 14px; }
.meter-warn span { background: linear-gradient(90deg, var(--amber), var(--rose)); }
.mini-stats { display: flex; gap: 2rem; margin: 0; }
.mini-stats dt { color: var(--muted); font-size: .82rem; }
.mini-stats dd { margin: 0; font-weight: 820; font-size: 1.4rem; font-stretch: 78%; }

/* ---------- forms: auth, settings, report ---------- */
.auth { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 3rem; align-items: start; padding-top: 3rem; padding-bottom: 4rem; }
.auth-narrow { grid-template-columns: minmax(0, 440px); justify-content: center; }
.auth-side h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-stretch: 64%; line-height: .98; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--muted); }
.ticks .ico { margin-top: .2rem; color: var(--mint); }
.auth-card { padding: 1.6rem; }
.auth-card h1 { font-size: 2rem; }
.auth-card .btn-block { margin-top: .4rem; }
.auth-card .center { margin: 1rem 0 0; }
.strength { height: 4px; border-radius: 999px; background: var(--surface-2); margin-top: .45rem; overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--rose); transition: width .25s, background .25s; }
.avatar-pick { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.avatar-pick input[type=file] { flex: 1; }
.settings-block { margin-bottom: 1.1rem; padding: 1.4rem; }
.settings-block > form + form { margin-top: .8rem; }
.danger-zone { border-color: color-mix(in srgb, var(--rose) 35%, transparent); }
.unlock-card { text-align: left; }
.unlock-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--rose-soft); color: var(--rose); margin-bottom: 1rem; }

.form-page { max-width: 900px; }
.fs { margin: 0 0 1.1rem; padding: 1.35rem 1.4rem .4rem; min-width: 0; }
.fs > legend { float: left; width: 100%; display: flex; align-items: center; gap: .6rem; font-weight: 780; font-stretch: 82%; font-size: 1.25rem; padding: 0; margin-bottom: 1.1rem; }
.fs > legend + * { clear: both; }
.fs-n { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--rose-soft); color: var(--rose-2); font-size: .95rem; font-stretch: 90%; }
.fs > .help { margin: 0 0 1.1rem; }
.fs.has-error { border-color: color-mix(in srgb, var(--rose) 55%, transparent); }
.fs > .field-error { margin: -.4rem 0 1rem; }
.field-id input { font-family: var(--mono); font-size: 1.2rem; letter-spacing: .01em; padding: .8rem 1rem; }
.field-id .help.is-ok { color: var(--mint); }
.field-id .help.is-bad { color: var(--rose-2); }
.segmented { display: inline-flex; padding: .25rem; gap: .25rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--field); margin-bottom: 1.1rem; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 9px; color: var(--muted); font-weight: 650; }
.segmented input:checked + span { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .55rem; margin-bottom: 1.1rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.choice-box { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .7rem; height: 100%; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--field); transition: border-color .15s, background .15s; }
.choice-ico { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.choice-box strong { font-size: .95rem; }
.choice-box small { color: var(--muted); line-height: 1.35; }
.choice:hover .choice-box { border-color: var(--line-2); }
.choice input:checked + .choice-box { border-color: var(--rose); background: var(--rose-soft); box-shadow: inset 0 0 0 1px var(--rose); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 0 1rem; }
.upload-grid { gap: .8rem; margin-bottom: .9rem; }
.drop { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 1.3rem 1rem; text-align: center; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--field); transition: border-color .15s, background .15s; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--muted); }
.drop label { margin: 0; }
.drop-text { color: var(--muted); font-size: .84rem; }
.drop .btn { pointer-events: none; margin-top: .3rem; }
.drop.is-over, .drop:focus-within { border-color: var(--rose); background: var(--rose-soft); }
.drop.is-full { opacity: .55; }
.previews { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .55rem; }
.previews:empty { display: none; }
.preview { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.preview img, .preview video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.preview-name { display: block; font-size: .75rem; color: var(--muted); padding: .3rem .45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-rm { position: absolute; top: 5px; right: 5px; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 0; background: rgba(10, 12, 18, .82); color: #fff; cursor: pointer; display: grid; place-items: center; }
.preview-rm:hover { background: var(--rose); }
.preview.is-bad { border-color: var(--rose); }
.preview.is-bad .preview-name { color: var(--rose-2); white-space: normal; }
.keep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .55rem; margin-bottom: 1rem; }
.keep { display: grid; gap: .35rem; padding: .4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); font-size: .85rem; cursor: pointer; }
.keep img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.keep-video { display: flex; align-items: center; justify-content: center; gap: .4rem; aspect-ratio: 3 / 2; background: var(--surface-2); border-radius: 6px; color: var(--muted); }
.keep-rm { display: flex; gap: .35rem; align-items: center; }
.keep:has(input:checked) { border-color: var(--rose); opacity: .55; }
.fs-final { padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.fs-final.has-error { border-color: color-mix(in srgb, var(--rose) 55%, transparent); }
.form-actions { display: flex; gap: .7rem; margin-top: 1.1rem; flex-wrap: wrap; }

/* ---------- my posts, notifications ---------- */
.myposts { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.mypost { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 1.2rem; align-items: start; padding: 1rem; }
.mp-thumb { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--surface-2); color: var(--faint); text-decoration: none; }
.mp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-top { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .85rem; margin: 0 0 .45rem; }
.mp-title { font-size: 1.15rem; font-stretch: 90%; margin: 0 0 .25rem; }
.mp-title a { text-decoration: none; }
.mp-sub { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin: 0; }
.mypost .note-box { margin: .8rem 0 0; }
.mp-actions { display: flex; flex-direction: column; gap: .45rem; align-items: stretch; }
.mp-actions form { text-align: center; }
.notes { list-style: none; margin: 0; padding: .3rem; }
.note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .8rem; border-radius: var(--r); }
.note + .note { border-top: 1px solid var(--line); }
.note-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.note.is-new { background: var(--blue-soft); }
.note.is-new .note-ico { color: var(--blue); }
.note.is-new a { font-weight: 650; }
.note time { font-size: .82rem; white-space: nowrap; }

/* ---------- prose pages ---------- */
.prose-page { max-width: 780px; padding-top: 2.6rem; padding-bottom: 4rem; }
.prose-page h2 { margin-top: 2.1rem; }
.prose-page p, .prose-page li { max-width: 70ch; }
.prose-page ul, .prose-page ol { padding-left: 1.25rem; }
.prose-page li { margin-bottom: .5rem; }
.plain-steps li::marker { color: var(--rose); font-weight: 800; }
.error-page { padding-top: 5rem; padding-bottom: 5rem; }
.error-code { font-family: var(--mono); color: var(--rose); font-weight: 650; margin-bottom: .4rem; }

/* ---------- admin ---------- */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.75rem; padding-top: 1.75rem; padding-bottom: 4rem; align-items: start; }
.admin-side { position: sticky; top: 86px; display: grid; gap: 1rem; padding: 1rem; }
.admin-who { display: flex; gap: .7rem; align-items: center; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.admin-who strong { display: block; }
.side-nav { display: grid; gap: .2rem; }
.side-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 620; }
.side-link:hover { color: var(--text); background: var(--surface-2); }
.side-link.is-on { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.side-link.is-on .ico { color: var(--rose); }
.side-alerts { display: grid; gap: .6rem; padding: .9rem .2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-side .fine { margin: 0; text-align: center; }
.admin-main { min-width: 0; display: grid; gap: 1.1rem; align-content: start; }
.admin-main > .page-head { margin-bottom: .2rem; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.kpi { display: grid; gap: .2rem; padding: 1rem 1.1rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
a.kpi:hover { border-color: var(--line-2); color: var(--text); }
.kpi span { color: var(--muted); font-size: .86rem; }
.kpi strong { font-size: 2rem; font-weight: 840; font-stretch: 72%; line-height: 1; }
.kpi small { color: var(--faint); }
.kpi-hot { background: radial-gradient(200px 100px at 100% 0%, var(--amber-soft), transparent 70%), var(--surface); }
.kpi-hot strong { color: var(--amber); }
.kpi-blue strong { color: var(--blue); }
.storage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.storage-top .card-title { margin: 0; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.activity li { display: flex; gap: .4rem; align-items: baseline; font-size: .9rem; min-width: 0; }
.activity time { margin-left: auto; font-size: .8rem; white-space: nowrap; }
.staff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.staff-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; font-size: .92rem; }
.staff-list .ok, .staff-list .warn-text { font-size: .8rem; font-weight: 650; }
.review { padding: 1.3rem 1.4rem; scroll-margin-top: 90px; }
.review-head { display: flex; justify-content: space-between; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }
.review-head h2 { font-size: 1.35rem; margin: 0; }
.review-head h2 a { text-decoration: none; }
.review-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0 0 .5rem; font-size: .9rem; }
.review-author { display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
.review-author > div { display: grid; }
.review-author .quiet { font-size: .8rem; }
.review-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: start; }
.review-proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: 1rem 0; }
.review-video { grid-column: 1 / -1; width: 100%; max-height: 360px; border-radius: var(--r); background: #000; }
.review-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--line); }
.decline-form { display: grid; gap: .6rem; margin-top: 1rem; padding: 1rem; border-radius: var(--r); background: var(--rose-soft); border: 1px solid color-mix(in srgb, var(--rose) 35%, transparent); }
.decline-form > label { margin: 0; }
.decline-form .btn { justify-self: start; }
.reason-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-btn { font: inherit; font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; }
.chip-btn:hover { color: var(--text); border-color: var(--rose); }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--muted); font-weight: 620; font-size: .82rem; padding: .75rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .75rem .9rem; border-top: 1px solid var(--line); vertical-align: top; }
.table tbody tr:first-child td { border-top: 0; }
.table td a { text-decoration: none; font-weight: 620; }
.table td code.id { margin-top: .25rem; }
.table tr.is-banned td { background: color-mix(in srgb, var(--rose) 5%, transparent); }
.row-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.user-cell { display: flex; gap: .65rem; align-items: center; }
.role-strip { display: flex; gap: .4rem; flex-wrap: wrap; }
.role-pill { display: inline-flex; gap: .4rem; align-items: center; padding: .42rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-decoration: none; font-weight: 620; font-size: .9rem; }
.role-pill span { color: var(--faint); font-weight: 500; }
.role-pill:hover { color: var(--text); }
.role-pill.is-on { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.role-pill-ban.is-on { border-color: var(--rose); color: var(--rose-2); }
.member-head { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
.member-main { flex: 1; min-width: 240px; }
.member-main h1 { font-size: 2rem; margin-bottom: .3rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.member-main p { margin: 0 0 .3rem; }
.member-main .bio { margin-top: .6rem; }
.member-status { display: grid; gap: .4rem; justify-items: end; }
.role-options { display: grid; gap: .5rem; margin-bottom: 1rem; }
.role-option { position: relative; display: block; cursor: pointer; }
.role-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role-option > span { display: grid; gap: .1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.role-option small { color: var(--muted); }
.role-option input:checked + span { border-color: var(--rose); background: var(--rose-soft); box-shadow: inset 0 0 0 1px var(--rose); }
.role-option input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.danger-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.inline-confirm { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-confirm input { width: 15rem; }
.twofa-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 1.4rem; }
.twofa-steps li::marker { color: var(--rose); font-weight: 800; }
.twofa-steps p { margin: .2rem 0; }
.qr-wrap { display: inline-block; margin: .7rem 0; padding: 12px; background: #fff; border-radius: 14px; }
.qr svg, .qr img { display: block; width: 200px; height: 200px; }
.secret { display: inline-block; font-size: 1.05rem; letter-spacing: .08em; padding: .4rem .7rem; border-radius: var(--r); background: var(--field); border: 1px solid var(--line); word-break: break-all; }
.twofa .input-row { max-width: 380px; }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 15, .95); color: #fff; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lb-stage { position: absolute; inset: 3.5rem 4.5rem 3.25rem; display: grid; place-items: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(30, 34, 48, .85); color: #fff; cursor: pointer; }
.lb-btn:hover { background: #2a2f44; }
.lb-close { top: .85rem; right: .85rem; }
.lb-prev { left: .85rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .85rem; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; left: 0; right: 0; bottom: .9rem; margin: 0; text-align: center; color: #b8bdcc; font-size: .9rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 80; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: .7rem 1rem; box-shadow: var(--shadow); font-size: .92rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; color: var(--muted); font-size: .9rem; background: var(--bg-2); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: start; }
.footer-about p { margin: .5rem 0 0; max-width: 56ch; }
.footer-links { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; justify-content: flex-end; max-width: 560px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-note { grid-column: 1 / -1; margin: 0; color: var(--faint); font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .glass-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-cols { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .specimen { max-width: 520px; }
  .report-grid { grid-template-columns: 1fr; }
  .report-side { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; grid-template-columns: 1fr; }
  .side-nav { display: flex; flex-wrap: wrap; gap: .3rem; }
  .side-link { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; font-size: .9rem; }
  .review-body { grid-template-columns: 1fr; }
  .auth, .auth-narrow { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .auth-card { min-width: 0; }
}
@media (max-width: 760px) {
  .topbar-in { flex-wrap: wrap; gap: .6rem .8rem; padding-top: .6rem; padding-bottom: .6rem; }
  .topsearch { order: 3; flex-basis: 100%; max-width: none; }
  .grow { display: none; }
  .topnav { gap: .65rem; }
  .navlink:not([href*="login"]), .hide-sm { display: none; }
  .hero { padding: 2.6rem 0 2.4rem; }
  .glow-inner { flex-wrap: wrap; padding: .5rem; }
  .glow-inner > .ico { display: none; }
  .glow-inner input { flex: 1 1 100%; font-size: 1rem; }
  .glow-inner .btn { width: 100%; }
  .glass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glass a { min-height: 0; }
  .side-stack { grid-template-columns: 1fr; }
  .row { grid-template-columns: 72px minmax(0, 1fr); }
  .row-thumb { width: 72px; height: 54px; }
  .row-meta { grid-column: 1 / -1; }
  .row-meta time { margin-left: auto; }
  .who { flex-direction: column; }
  .who-info { padding-right: 0; }
  .who .stamp { top: 1rem; right: 1rem; font-size: 1.15rem; }
  .facts > div { grid-template-columns: 1fr; gap: .1rem; }
  .facts-side > div { grid-template-columns: minmax(0, 1fr) auto; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .mypost { grid-template-columns: 96px minmax(0, 1fr); }
  .mp-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .podium { grid-template-columns: 1fr; }
  .podium-1, .podium-2, .podium-3 { order: 0; }
  .board li { grid-template-columns: 1.6rem auto minmax(0, 1fr) 4.5rem; }
  .board-stat { display: none; }
  .admin-cols { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .lb-stage { inset: 3.75rem .5rem 3rem; }
  .lb-prev, .lb-next { top: auto; bottom: .6rem; transform: none; }
  .member-status { justify-items: start; }
  .gallery, .gallery-3 { grid-template-columns: 1fr 1fr; }
  .gallery-3 > .shot:first-child { grid-row: auto; grid-column: 1 / -1; }
  .idcard .stamp { position: absolute; top: 1rem; right: 1rem; font-size: 1.4rem; }
  .dossier .stamp { top: -.8rem; right: .5rem; font-size: 1.1rem; }
  .dossier-head { padding-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
