/* support_agent — адмінка. Тема dpforge: темна, акцент «розпечений метал». Без зовнішніх шрифтів і CDN,
   без інлайн-стилів (CSP style-src 'self'). */

:root {
  color-scheme: dark;

  --bg: #0c0b0a;
  --surface: #14120f;
  --surface-2: #1c1915;
  --surface-3: #241f19;
  --border: #2b261f;
  --border-strong: #3d352b;

  --text: #f3ede4;
  --muted: #a89f92;
  --subtle: #8a8175;

  --ember: #ff7a1a;
  --ember-2: #ffb347;
  --on-ember: #1a0d03;

  /* Стани (dataviz: статуси окремо від серій і завжди з текстом) */
  --good: #53c556;
  --warning: #fbb315;
  --serious: #f18a59;
  --critical: #eb6263;
  --accent: #ffb347;

  /* Серії графіків: перевірено validate_palette.js на тлі --surface */
  --s-ai: #338ced;
  --s-human: #e76624;
  --s-skip: #00a888;
  --grid: #2a251f;
  --axis: #4a4238;

  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::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 0.95rem/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(50rem 30rem at 100% -10%, rgba(255, 122, 26, 0.09), transparent 60%);
}

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0; }
a { color: inherit; }
code { font: 0.85em var(--font-mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--ember-2); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--ember); color: var(--on-ember); padding: 10px 14px; border-radius: 10px; font-weight: 650; }
.skip:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.icon-xs { width: 13px; height: 13px; flex: none; }

.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.nowrap { white-space: nowrap; }
.text-bad { color: var(--critical); }
.empty { color: var(--subtle); padding: 18px 0; }

/* ---------- Каркас ---------- */

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }

.sidebar {
  position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 20px 14px;
  border-right: 1px solid var(--border);
  background: rgba(20, 18, 15, 0.6);
}

.brand, .auth-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 8px; }
.brand-mark { width: 26px; height: 26px; }
.brand-word { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-word span { color: var(--ember); }
.brand-sub {
  font: 600 0.68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); border: 1px solid var(--border-strong); border-radius: 6px; padding: 4px 6px;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none; font-weight: 550;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--ember); }
.nav a[aria-current="page"] .icon { color: var(--ember-2); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 8px 0; border-top: 1px solid var(--border); }
.who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 40px) 60px; max-width: 1320px; width: 100%; display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: sticky; z-index: 5; height: auto; flex-direction: row; align-items: center; gap: 10px;
    padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--border);
    background: rgba(12, 11, 10, 0.92); backdrop-filter: blur(8px);
  }
  .sidebar .brand-word, .sidebar .brand-sub { display: none; }
  .nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
  .nav a { min-height: 40px; padding: 8px 10px; gap: 8px; white-space: nowrap; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ember); }
  .sidebar-foot { margin: 0; padding: 0; border: 0; }
  .sidebar-foot .who, .sidebar-foot button span { display: none; }
}

/* ---------- Заголовок сторінки ---------- */

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head .muted { margin-top: 4px; }
.head-side { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 8px; min-height: 32px; }
.back:hover { color: var(--text); }
.thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

/* ---------- Кнопки, поля ---------- */

.btn, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm);
  font: 650 0.92rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s var(--ease-out), background 0.15s, border-color 0.15s;
}
.btn { background: linear-gradient(135deg, var(--ember-2), var(--ember)); color: var(--on-ember); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; }
button[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; transform: none; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 550; font-size: 0.9rem; }
.form-inline { margin-top: 10px; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
input, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; min-height: 44px;
}
input:focus, textarea:focus { outline: none; border-color: var(--ember-2); box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.18); }
textarea { resize: vertical; line-height: 1.55; min-height: 140px; }
::placeholder { color: var(--subtle); }

.search { position: relative; width: min(340px, 100%); }
.search input { padding-left: 38px; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--subtle); }

/* ---------- Бейджі, пігулки, чипи ---------- */

.badge, .pill {
  --tone: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border-radius: 999px; font-weight: 600; color: var(--tone);
  background: color-mix(in srgb, var(--tone) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 32%, transparent);
}
.badge { font-size: 0.76rem; padding: 2px 9px; min-height: 22px; }
.pill { font-size: 0.82rem; padding: 6px 12px; min-height: 32px; }
.tone-good { --tone: var(--good); }
.tone-warning { --tone: var(--warning); }
.tone-serious { --tone: var(--serious); }
.tone-critical { --tone: var(--critical); }
.tone-accent { --tone: var(--accent); }
.tone-neutral { --tone: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.chip {
  display: inline-flex; align-items: center; font-size: 0.75rem; padding: 2px 8px; border-radius: 6px;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--border);
}
.chip-warn { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }

.alert {
  --tone: var(--muted);
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--tone); background: color-mix(in srgb, var(--tone) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
}
.alert .icon-sm, .alert .icon-xs { margin-top: 3px; }

.spinner {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor;
  animation: spin 0.8s linear infinite;
}
.spinner-lg { width: 28px; height: 28px; border-width: 3px; color: var(--ember-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Картки, сітки ---------- */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-title { margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
.link { color: var(--ember-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mini-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subtle); margin: 14px 0 8px; font-weight: 650; }

/* Огляд: що потребує уваги */
.attention { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .attention { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .attention { grid-template-columns: 1fr; } }
.att-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.15s var(--ease-out);
}
.att-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.att-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.86rem; font-weight: 550; }
.att-value { font-size: 2rem; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; }
.att-value small { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.att-hint { color: var(--subtle); font-size: 0.8rem; }
.att-card.is-hot { border-color: color-mix(in srgb, var(--ember) 45%, var(--border)); background: linear-gradient(180deg, rgba(255, 122, 26, 0.07), var(--surface) 70%); }
.att-card.is-hot .att-value { color: var(--ember-2); }
.att-card.is-bad { border-color: color-mix(in srgb, var(--critical) 45%, var(--border)); }
.att-card.is-bad .att-value { color: var(--critical); }

/* Огляд: цифри */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.stat-value { font-size: 1.55rem; font-weight: 720; letter-spacing: -0.02em; }
.stat-sub { color: var(--subtle); font-size: 0.76rem; }

/* ---------- Графіки ---------- */

.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font: 11px var(--font-sans); }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: rgba(255, 255, 255, 0.04); }
.s-ai { fill: var(--s-ai); background: var(--s-ai); }
.s-human { fill: var(--s-human); background: var(--s-human); }
.s-skip { fill: var(--s-skip); background: var(--s-skip); }
.track { fill: var(--surface-3); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.84rem; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend-values { margin-top: 12px; }
.legend-values b { color: var(--text); }
.key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

.bar-prop { width: 100%; height: 14px; display: block; border-radius: 4px; overflow: hidden; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 32px; align-items: center; gap: 12px; font-size: 0.88rem; }
.bars-label { color: var(--text); }
.bars-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.bar-row { width: 100%; height: 8px; display: block; border-radius: 4px; overflow: hidden; }

.table-view { margin-top: 12px; }
.table-view summary, .aside-details summary { cursor: pointer; color: var(--muted); font-size: 0.84rem; min-height: 32px; display: inline-flex; align-items: center; }
.table-view summary:hover, .aside-details summary:hover { color: var(--text); }

/* ---------- Таблиці ---------- */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th { text-align: left; color: var(--subtle); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-click tbody tr:hover { background: var(--surface-2); }
.cell-link { text-decoration: none; }
.cell-link:hover b { color: var(--ember-2); }
.cell-sub { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

/* ---------- Списки ---------- */

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px;
  color: var(--muted); text-decoration: none; font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ember); }
.count { font-size: 0.74rem; font-weight: 650; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }

.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--border); }
.list-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; text-decoration: none; min-height: 56px; }
.list-card .row { padding: 12px 18px; }
.row:hover { background: var(--surface-2); }
.row-lead { flex: none; width: 168px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--muted); font-size: 0.83rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-side { flex: none; display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) {
  .list-card .row { flex-wrap: wrap; gap: 6px 10px; }
  .row-lead { width: auto; order: 2; }
  .row-main { flex-basis: 100%; order: 1; }
  .row-side { order: 3; margin-left: auto; }
}
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; }

/* ---------- Розмова ---------- */

.thread-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .thread-grid { grid-template-columns: 1fr; } }
.thread-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.thread-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
@media (max-width: 1100px) { .thread-side { position: static; } }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.msg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.msg-out { background: var(--surface-2); margin-left: clamp(0px, 6vw, 72px); }
.msg-out.by-ai { border-color: color-mix(in srgb, var(--s-ai) 35%, var(--border)); }
.msg-out.by-human { border-color: color-mix(in srgb, var(--good) 30%, var(--border)); }
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex: none; }
.by-ai .avatar { color: var(--s-ai); }
.by-human .avatar { color: var(--good); }
.msg-who { flex: 1; min-width: 0; }
.msg-time { flex: none; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.msg-body-quote { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--border-strong); color: var(--muted); }
.msg-attach { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.85rem; }

.decision { margin-top: 14px; border-top: 1px dashed var(--border-strong); padding-top: 10px; }
.decision > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; list-style: none; }
.decision > summary::-webkit-details-marker { display: none; }
.decision > summary::after { content: "▾"; color: var(--subtle); margin-left: auto; transition: transform 0.15s; }
.decision[open] > summary::after { transform: rotate(180deg); }
.decision-title { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.decision-reason { color: var(--muted); font-size: 0.85rem; }
.decision-flat { display: flex; align-items: center; gap: 8px; }
.decision-body { padding-top: 4px; }
.decision-note { margin-top: 8px; padding: 8px 12px; background: var(--bg); border-radius: var(--radius-sm); color: var(--muted); font-size: 0.88rem; }
.questions, .hits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.questions li { display: flex; align-items: baseline; gap: 8px; }
.questions .is-yes .icon-xs { color: var(--good); }
.questions .is-no .icon-xs { color: var(--critical); }
.hits li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hit-id { font: 600 0.75rem var(--font-mono); color: var(--subtle); width: 24px; }
.hit-sim { font: 0.8rem var(--font-mono); color: var(--muted); }
.hits .is-cited .hit-id { color: var(--ember-2); }
.flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.decision-body .muted.small, .decision-body .alert { margin-top: 10px; }

.composer h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.composer .form { margin-top: 12px; }
.composer .alert { margin-bottom: 12px; }
.pending { display: flex; align-items: center; gap: 16px; }
.kbd-hint { margin-left: auto; }
@media (max-width: 640px) { .kbd-hint { display: none; } }

.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.activity li + li { border-top: 1px solid var(--border); padding-top: 12px; }
.activity-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.activity p + p { margin-top: 2px; }

/* ---------- База знань, система ---------- */

.kb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kb-item { padding: 0; }
.kb-item summary { cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; min-height: 52px; }
.kb-item summary:hover .kb-title { color: var(--ember-2); }
.kb-title { font-weight: 620; }
.kb-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kb-body { white-space: pre-wrap; padding: 0 18px; color: var(--text); line-height: 1.6; border-top: 1px solid var(--border); padding-top: 14px; }
.kb-foot { padding: 12px 18px 16px; }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

/* ---------- Вхід ---------- */

.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 30px 80px -40px rgba(255, 122, 26, 0.35);
}
.auth-brand { padding: 0; }
.auth-card .btn { width: 100%; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
