/* Redenção dashboard — one stylesheet.
   Look: "war room". Dark only, warm charcoal ground, one ember accent for actions
   and alerts, condensed uppercase display type, hairlines instead of card grids.
   Change the clan's look here, in the tokens; components below only read them. */

@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;

  /* Palette. Contrast against --bg: text 14:1, muted 7:1, faint 4.8:1, accent-text 5.3:1. */
  --bg: #141210;
  --bg-raised: #1c1916;
  --bg-sunken: #0f0d0c;
  --line: #2d2925;
  --line-strong: #4a443d;
  --text: #ece7e1;
  --text-muted: #b0a79d;
  --text-faint: #8a827a;
  --accent: #d9432b;          /* fills: primary buttons, active marks, danger */
  --accent-hover: #e8553c;
  --accent-text: #f0694f;     /* accent used as text/links: lighter so it passes AA */
  --on-accent: #fff7f2;
  --ok: #8fbf7a;
  --warn: #dcae52;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, system-ui, sans-serif;
  --font-body: "Barlow", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.25rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.5rem;
  --t-3xl: clamp(2.5rem, 7vw, 4.5rem);
  --tracking-caps: 0.08em;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  /* Shape and motion */
  --radius: 2px;
  --page-width: 72rem;
  --topbar-height: 3.75rem;
  --sidebar-width: 15rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 140ms;
  --dur: 200ms;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-md)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; }
p { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: var(--s-2); z-index: 20;
  padding: var(--s-2) var(--s-3); background: var(--accent); color: var(--on-accent);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  min-height: var(--topbar-height);
  padding-inline: var(--s-4);
  display: flex; align-items: center; gap: var(--s-4);
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg);
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: var(--s-2);
}
.brand::before { content: ""; width: 0.5rem; height: 1.1rem; background: var(--accent); }

.userbox { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }
.userbox__name { font-weight: 600; font-size: var(--t-sm); max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .menu-toggle { display: none; } /* .topbar raises specificity over .btn's display */

/* ---------- Layout: sidebar + page ---------- */

.app { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: var(--topbar-height); align-self: start;
  max-height: calc(100dvh - var(--topbar-height)); overflow-y: auto;
  padding: var(--s-5) var(--s-3) var(--s-6);
  border-right: 1px solid var(--line);
  min-height: calc(100dvh - var(--topbar-height));
}
.sidebar__group + .sidebar__group { margin-top: var(--s-5); }
.sidebar__title {
  padding: 0 var(--s-3) var(--s-2);
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-faint);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a {
  display: block; padding: var(--s-2) var(--s-3);
  border-left: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-lg); line-height: 1.2;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color var(--dur) ease, background-color var(--dur) ease;
}
.sidebar a[aria-current="page"] { color: var(--text); border-left-color: var(--accent); background: var(--bg-raised); }
@media (hover: hover) and (pointer: fine) { .sidebar a:hover { color: var(--text); } }

/* Phones and small tablets: the sidebar becomes a menu opened from the topbar. */
@media (max-width: 60rem) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .topbar .menu-toggle { display: inline-flex; }
  .sidebar {
    position: fixed; inset: var(--topbar-height) 0 auto 0; z-index: 9;
    max-height: calc(100dvh - var(--topbar-height)); min-height: 0;
    background: var(--bg); border-right: 0; border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 48px rgb(0 0 0 / 0.45);
  }
  .sidebar:not([data-open]) { display: none; }
  .userbox__name { display: none; }
}

.page { width: 100%; max-width: var(--page-width); padding: var(--s-6) var(--s-5) var(--s-8); }
@media (max-width: 40rem) { .page { padding-inline: var(--s-4); } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.page-head h1 { font-size: var(--t-2xl); }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-7); }
@media (max-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }

.section + .section { margin-top: var(--s-6); }
.section__title {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  padding-bottom: var(--s-2); margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-strong);
  font-size: var(--t-md); letter-spacing: var(--tracking-caps); color: var(--text-muted);
}

/* ---------- Components ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 2.5rem; padding: 0 var(--s-4);
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-md);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur) ease, border-color var(--dur) ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--lg { min-height: 3rem; padding: 0 var(--s-5); font-size: var(--t-lg); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
/* Positive decisions (approve, claim, save). Ember stays for brand CTAs and anything destructive. */
.btn--light { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--sm { min-height: 2rem; padding: 0 var(--s-3); font-size: var(--t-sm); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
  .btn--ghost:hover:not(:disabled) { background: var(--bg-raised); border-color: var(--text-faint); }
  .btn--light:hover:not(:disabled) { background: #fff8f2; border-color: #fff8f2; }
}
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* ---------- Forms ---------- */

.field { display: grid; gap: var(--s-1); }
.field + .field, .field + fieldset, fieldset + .field { margin-top: var(--s-4); }
.field__label, legend {
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-md);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted);
}
.field__hint { font-size: var(--t-sm); color: var(--text-faint); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: var(--s-2); }

.input {
  width: 100%; min-height: 2.5rem; padding: var(--s-2) var(--s-3);
  background: var(--bg-sunken); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: var(--t-md); line-height: 1.4;
  transition: border-color var(--dur) ease;
}
.input::placeholder { color: var(--text-faint); }
.input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 0; border-color: transparent; }
textarea.input { min-height: 6rem; resize: vertical; }
select.input { appearance: none; padding-right: var(--s-6);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--text-muted) 50%);
  background-position: calc(100% - 1rem) 55%, calc(100% - 0.7rem) 55%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
.check { display: flex; align-items: center; gap: var(--s-2); min-height: 2rem; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3); margin-bottom: var(--s-4); }
.filters .field { min-width: 10rem; flex: 0 1 12rem; }
.filters .field--grow { flex: 1 1 16rem; }
.filters .field + .field { margin-top: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.tabs a {
  padding: var(--s-2) var(--s-3); margin-bottom: -1px; border-bottom: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-lg); text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
}
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Dialog ---------- */

.dialog {
  width: min(34rem, calc(100vw - 2 * var(--s-4))); max-height: calc(100dvh - 2 * var(--s-4));
  padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg-raised); color: var(--text);
  opacity: 1; transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(8px); }
}
.dialog::backdrop { background: rgb(8 7 6 / 0.72); }
.dialog__form { padding: var(--s-5); }
.dialog__title { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.dialog__body { color: var(--text-muted); margin-bottom: var(--s-4); }
.dialog__error { margin-top: var(--s-4); padding: var(--s-2) var(--s-3); border-left: 3px solid var(--accent); background: var(--bg-sunken); white-space: pre-line; }
.dialog__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
@media (prefers-reduced-motion: reduce) { .dialog { transition: opacity var(--dur) ease; @starting-style { transform: none; } } }

/* ---------- Toasts ---------- */

.toasts { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 30; display: grid; gap: var(--s-2); max-width: min(24rem, calc(100vw - 2 * var(--s-4))); }
.toast {
  padding: var(--s-3) var(--s-4); background: var(--text); color: var(--bg); font-weight: 600;
  border-radius: var(--radius); box-shadow: 0 12px 32px rgb(0 0 0 / 0.4);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(8px); }
}
.toast--error { background: var(--accent); color: var(--on-accent); }

/* ---------- Lists of records ---------- */

.list-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }

.item { display: grid; gap: var(--s-3); }
.item__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.item__title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-xl); line-height: 1.1; overflow-wrap: anywhere; }
.item__title a { color: inherit; text-decoration: none; }
.item__title a:hover { text-decoration: underline; }
.item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-4); font-size: var(--t-sm); color: var(--text-muted); }
.item__text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 75ch; }
.item--flagged { border-left: 3px solid var(--accent); padding-left: var(--s-4) !important; }

.rows.rows--tight > li { padding: var(--s-2) 0; }
.bar { margin-bottom: var(--s-5); }
.questions { list-style: none; margin: var(--s-3) 0; padding: 0; }
.input[readonly] { background: transparent; color: var(--text-muted); }
.join-reason { font-size: var(--t-lg); line-height: 1.35; max-width: 60ch; }
.figure { margin: 0; display: grid; gap: var(--s-1); max-width: 100%; }
details > summary { cursor: pointer; width: fit-content; }
details[open] > summary { margin-bottom: var(--s-2); }

.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--s-3) var(--s-5); margin: 0; }
.meta dt { font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-faint); }
.meta dd { margin: 0; overflow-wrap: anywhere; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--s-4); padding: var(--s-4) 0; margin-bottom: var(--s-5); border-block: 1px solid var(--line); }
.stats .stat__value { font-size: var(--t-2xl); }

.scope { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: baseline; padding: var(--s-3) var(--s-4); margin-bottom: var(--s-5); background: var(--bg-raised); border: 1px solid var(--line-strong); }
.scope__label { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent-text); }

/* The loud one: a blacklist hit must be impossible to miss. */
.alarm { padding: var(--s-4); border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
.alarm__title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-xl); text-transform: uppercase; color: var(--on-accent); letter-spacing: 0.04em; }
.alarm .item__text { margin-top: var(--s-2); }

/* ---------- Evidence (user-submitted, untrusted) ---------- */

.evidence { display: inline-block; max-width: 100%; border: 1px solid var(--line-strong); background: var(--bg-sunken); }
.evidence img { max-height: 18rem; width: auto; object-fit: contain; }
.evidence__file { display: inline-block; padding: var(--s-3) var(--s-4); }
.evidence-list { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-start; }
.evidence-link { display: inline-flex; flex-wrap: wrap; gap: 0 var(--s-2); max-width: 100%; overflow-wrap: anywhere; }
.evidence-link__host { font-weight: 600; }
.evidence-link__path { color: var(--text-faint); font-size: var(--t-sm); }

/* ---------- Transcript ---------- */

.transcript { list-style: none; margin: 0; padding: 0; }
.msg { padding: var(--s-3) var(--s-4); border-left: 3px solid transparent; }
.msg + .msg { border-top: 1px solid var(--line); }
.msg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-1); }
.msg__author { font-weight: 600; }
.msg__time { font-size: var(--t-sm); color: var(--text-faint); }
.msg__body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--deleted { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.msg--edited { border-left-color: var(--warn); }
.msg details { margin-top: var(--s-2); font-size: var(--t-sm); }
.msg summary { cursor: pointer; color: var(--warn); }
.revision { margin-top: var(--s-2); padding-left: var(--s-3); border-left: 1px solid var(--line-strong); color: var(--text-muted); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Editors ---------- */

.question { padding: var(--s-4); border: 1px solid var(--line); background: var(--bg-sunken); }
.question + .question { margin-top: var(--s-3); }
.question__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--s-3); }
.question__grid .field + .field { margin-top: 0; }

.tag {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 0.05rem var(--s-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; white-space: nowrap;
  color: var(--text-muted);
}
.tag--accent { border-color: var(--accent); color: var(--accent-text); }
.tag--ok { border-color: color-mix(in srgb, var(--ok) 55%, transparent); color: var(--ok); }
.tag--warn { border-color: color-mix(in srgb, var(--warn) 55%, transparent); color: var(--warn); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.avatar { width: 2rem; height: 2rem; border-radius: var(--radius); background: var(--bg-raised); object-fit: cover; flex: none; }
.avatar--lg { width: 4.5rem; height: 4.5rem; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { padding: var(--s-4) 0; }
.rows > li + li { border-top: 1px solid var(--line); }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-2) var(--s-5); margin: 0; }
.kv dt { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-faint); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.stat__value { font-family: var(--font-display); font-weight: 700; font-size: var(--t-3xl); line-height: 0.9; font-variant-numeric: tabular-nums; }
.stat__label { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-faint); }

.notice {
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--accent); background: var(--bg-raised);
}
.notice--warn { border-left-color: var(--warn); }
.notice__title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); text-transform: uppercase; margin-bottom: var(--s-1); }

/* ---------- The four states: loading, empty, error (populated is the page itself) ---------- */

.state { padding: var(--s-6) 0; }
.state__title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-xl); text-transform: uppercase; }
.state__body { color: var(--text-muted); margin-top: var(--s-2); max-width: 60ch; }
.state__actions { margin-top: var(--s-4); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.state--error .state__title { color: var(--accent-text); }

.skeleton { display: grid; gap: var(--s-3); }
.skeleton span { display: block; height: 1rem; background: var(--bg-raised); border-radius: var(--radius); }
.skeleton span:nth-child(1) { width: 40%; height: 2rem; }
.skeleton span:nth-child(3n) { width: 70%; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton span { animation: pulse 1.2s ease-in-out infinite alternate; }
}
@keyframes pulse { to { opacity: 0.45; } }

/* Freshly rendered content settles in instead of popping. Opacity only: runs on every load. */
.enter { transition: opacity var(--dur) ease; @starting-style { opacity: 0; } }

/* ---------- Landing ---------- */

.landing {
  min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.landing__hero {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7);
  padding: var(--s-6) var(--s-6) var(--s-7);
  border-right: 1px solid var(--line);
  background:
    repeating-linear-gradient(-45deg, transparent 0 22px, color-mix(in srgb, var(--line) 45%, transparent) 22px 23px),
    var(--bg-sunken);
}
.landing__hero h1 { font-size: var(--t-3xl); max-width: 11ch; }
.landing__hero h1 em { font-style: normal; color: var(--accent-text); }
.landing__lead { color: var(--text-muted); font-size: var(--t-lg); max-width: 34ch; margin-top: var(--s-4); }
.landing__panel { display: flex; flex-direction: column; justify-content: center; gap: var(--s-5); padding: var(--s-7) var(--s-6); max-width: 32rem; }
.landing__panel h2 { font-size: var(--t-xl); }
@media (max-width: 52rem) {
  .landing { grid-template-columns: minmax(0, 1fr); }
  .landing__hero { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s-5) var(--s-4) var(--s-6); gap: var(--s-6); }
  .landing__panel { padding: var(--s-6) var(--s-4); max-width: none; }
}

/* ---------- Overview ---------- */

.identity { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5); padding-bottom: var(--s-6); margin-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.identity__who { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.identity__who h1 { font-size: var(--t-2xl); overflow-wrap: anywhere; }
.identity__meta { margin-top: var(--s-1); color: var(--text-muted); font-size: var(--t-sm); }
.identity__who .tags { margin-top: var(--s-2); }
.identity .stat { text-align: right; }
@media (max-width: 36rem) { .identity .stat { text-align: left; } }

.account { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); }
.account__platform { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-faint); font-size: var(--t-sm); }
.account__name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-xl); line-height: 1.1; overflow-wrap: anywhere; }
.account__detail { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-size: var(--t-sm); color: var(--text-muted); }
.account__status { align-self: start; }
