/* ── Reset & tokens ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #15171c;
  --surface:   #1e2128;
  --surface2:  #272b34;
  --border:    #353a45;
  --text:      #eef0f4;
  --muted:     #9aa1b0;
  --accent:    #ff5a36;   /* lakehouse orange-red */
  --accent-2:  #ff7a59;
  --good:      #3fbf7f;
  --bad:       #f0605d;
  --warn:      #f2b24b;
  --code-bg:   #111318;
  --radius:    14px;
  --radius-sm: 9px;
  --hl-kw:  #ff8a65;
  --hl-str: #9ccc65;
  --hl-com: #6f7788;
  --hl-num: #f2b24b;
  --hl-fn:  #7cc4ff;
  --hl-key: #c792ea;
}

/* Light palette: follows the device (Auto) unless the theme toggle forces a
   choice via <html data-theme="light|dark"> (see theme.js). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6f8; --surface: #ffffff; --surface2: #eef0f3; --border: #d9dde4;
    --text: #1b1e24; --muted: #616978; --code-bg: #f3f4f7;
    --hl-kw: #c2410c; --hl-str: #3f7d20; --hl-com: #8a90a0; --hl-num: #a15c00; --hl-fn: #1d5fa8; --hl-key: #7c3aed;
  }
}
:root[data-theme="light"] {
  --bg: #f5f6f8; --surface: #ffffff; --surface2: #eef0f3; --border: #d9dde4;
  --text: #1b1e24; --muted: #616978; --code-bg: #f3f4f7;
  --hl-kw: #c2410c; --hl-str: #3f7d20; --hl-com: #8a90a0; --hl-num: #a15c00; --hl-fn: #1d5fa8; --hl-key: #7c3aed;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.45;
}
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface2); padding: 1px 5px; border-radius: 5px; }
a { color: var(--accent-2); }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny  { font-size: .75rem; }
.center { text-align: center; }
.good { color: var(--good); }
.bad  { color: var(--bad); }
.warn { color: var(--warn); }
.hidden { display: none !important; }

/* ── Screens ───────────────────────────────────────────────────────────────── */
.screen { display: none; max-width: 720px; margin: 0 auto; padding: 16px 16px 96px; }
.screen.active { display: block; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* ── Buttons & inputs ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 16px; font-weight: 650; cursor: pointer; transition: filter .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn small { font-weight: 400; opacity: .7; }
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-secondary { background: var(--surface2); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { border-color: var(--muted); }
.btn-danger    { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 18px; font-size: 1.05rem; }

.pill-btn {
  background: none; border: 1px solid var(--border); border-radius: 99px;
  color: var(--muted); font-size: .8rem; padding: 5px 12px; cursor: pointer;
}
.pill-btn:hover { color: var(--text); border-color: var(--muted); }
.pill-btn.back { margin-bottom: 12px; }
.icon-btn { background: none; border: none; font-size: 1.15rem; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.icon-btn:hover { color: var(--text); }
.link-btn { background: none; border: none; color: var(--accent-2); cursor: pointer; text-decoration: underline; font-size: .9rem; }

.input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 1rem; padding: 11px 12px; outline: none;
}
.input:focus { border-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.form label small { font-weight: 400; }
.form label.check-row { flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check-row small { display: block; margin-top: 4px; }
.focus-tag { color: var(--good); }
.form-error { background: #f0605d1a; border: 1px solid #f0605d55; color: var(--bad); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .88rem; text-align: left; }

/* ── Auth ──────────────────────────────────────────────────────────────────── */
#screen-auth.active { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-wrap { width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.auth-logo { font-size: 48px; color: var(--accent); line-height: 1; }
.auth-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 14px; }
.brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -.2px; }
.brand-mark { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 6px; }

.seg { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 3px; margin-bottom: 14px; }
.seg-btn { flex: 1; background: none; border: none; border-radius: 99px; padding: 8px 10px; font-weight: 650; font-size: .9rem; color: var(--muted); cursor: pointer; }
.seg-btn.active { background: var(--accent); color: #fff; }

/* ── Home ──────────────────────────────────────────────────────────────────── */
.hero { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; background: linear-gradient(135deg, var(--surface), var(--surface2)); }
.hero-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); font-weight: 700; margin-bottom: 2px; }
.hero-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px; }
.countdown { text-align: center; min-width: 64px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; background: var(--surface); }
.countdown span { display: block; font-size: 1.4rem; font-weight: 800; }
.countdown small { font-size: .68rem; color: var(--muted); }
.countdown.soon span { color: var(--warn); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 6px; text-align: center; }
.stat b { display: block; font-size: 1.25rem; font-weight: 800; }
.stat b small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.stat span { font-size: .7rem; color: var(--muted); }

.row-actions { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.row-actions .btn { flex: 1; min-width: 140px; flex-direction: column; gap: 0; }
.row-actions .btn small { font-size: .72rem; }

.section-title { font-size: .95rem; font-weight: 750; margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.page-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }

.domains { display: flex; flex-direction: column; gap: 8px; }
.domain-card { padding: 0; display: flex; flex-direction: column; }
.domain-card:hover { border-color: var(--muted); }
.domain { text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; width: 100%;
  background: none; border: none; color: inherit; font: inherit; border-radius: inherit; }
.domain:disabled { opacity: .5; cursor: default; }
.domain-new { align-self: flex-start; margin: -2px 14px 12px; padding: 5px 11px; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 650; background: none;
  color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.domain-new:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.domain-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 650; font-size: .93rem; }
.domain-weight { color: var(--muted); font-weight: 600; font-size: .82rem; }
.domain-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.due-chip { color: var(--accent-2); font-weight: 650; }
.bar { position: relative; height: 7px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.bar > div { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.bar-seen { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.bar-mastered { background: var(--good); }

.forecast { display: flex; gap: 6px; align-items: flex-end; }
.fc-col { flex: 1; text-align: center; }
.fc-bar { height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.fc-bar > div { width: 70%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .8; }
.fc-n { font-size: .82rem; font-weight: 700; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.fc-n.zero { color: var(--muted); font-weight: 400; }
.fc-day { margin-top: 4px; }
.fc-day { font-size: .7rem; color: var(--muted); }

.list { padding: 4px 14px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.list-row:last-child { border-bottom: none; }
.list-row-wrap { display: block; }

/* ── Practice ──────────────────────────────────────────────────────────────── */
.practice-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.progress { flex: 1; height: 6px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); transition: width .25s; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .95rem; }
.timer.low { color: var(--bad); }

.q-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.q-title { margin-left: auto; }
.chip { font-size: .74rem; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); }
.chip-new { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.chip-box { color: var(--text); }
.chip-id { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.chip-due { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.chip-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.chip-official { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.chip-btn { cursor: pointer; }

.stem { font-size: 1.04rem; margin-bottom: 12px; }
pre.code {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; overflow-x: auto; margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.5;
}
pre.code code { background: none; padding: 0; font-size: inherit; white-space: pre; }
.hl-kw { color: var(--hl-kw); font-weight: 600; }
.hl-str { color: var(--hl-str); }
.hl-com { color: var(--hl-com); font-style: italic; }
.hl-num { color: var(--hl-num); }
.hl-fn { color: var(--hl-fn); }
.hl-key { color: var(--hl-key); }
.hl-id { color: var(--hl-str); }

.options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.option {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; cursor: pointer; transition: border-color .12s, background .12s;
}
.option:hover:not(.locked) { border-color: var(--muted); }
.option.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.option.locked { cursor: default; }
.option.correct { border-color: var(--good); background: color-mix(in srgb, var(--good) 11%, var(--surface)); }
.option.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 11%, var(--surface)); }
.opt-letter {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 750; background: var(--surface2); border: 1px solid var(--border);
}
.option.selected .opt-letter { background: var(--accent); border-color: var(--accent); color: #fff; }
.option.correct .opt-letter { background: var(--good); border-color: var(--good); color: #fff; }
.option.wrong .opt-letter { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt-text { flex: 1; min-width: 0; padding-top: 2px; }
.opt-text pre.code { margin: 0; }

.feedback { border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; border: 1px solid; display: flex; flex-direction: column; gap: 8px; }
.fb-good { border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 7%, var(--surface)); }
.fb-bad  { border-color: color-mix(in srgb, var(--bad) 45%, transparent);  background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.fb-head { font-weight: 750; }
.fb-good .fb-head { color: var(--good); }
.fb-bad .fb-head { color: var(--bad); }
.fb-body { font-size: .93rem; }
.fb-answer-text { font-size: 1.05rem; font-weight: 650; }
.fb-answer-text pre.code { margin: 6px 0; font-weight: 400; }
.answer-or { font-size: .8rem; color: var(--muted); font-weight: 600; margin: 2px 0; }
.fb-answer-letters { font-weight: 700; font-size: 1.05rem; }
.docs-link { font-size: .85rem; font-weight: 600; }
/* Self-grade buttons after reveal: Again / Hard / Easy */
.sticky-actions.grades { display: flex; gap: 8px; }
.btn-grade { flex: 1; flex-direction: column; gap: 2px; padding: 12px 8px; font-size: 1rem; background: var(--surface2); }
.btn-grade small { font-size: .75rem; }
.btn-grade.grade-0 { border-color: var(--bad);  color: var(--bad); }
.btn-grade.grade-1 { border-color: var(--warn); color: var(--warn); }
.btn-grade.grade-2 { border-color: var(--good); color: var(--good); }
.btn-grade:hover { filter: brightness(1.12); }
.grade-tally { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }
.grade-tally .grade-0 { color: var(--bad); }
.grade-tally .grade-1 { color: var(--warn); }
.grade-tally .grade-2 { color: var(--good); }

.sticky-actions {
  position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 30%);
}
.sticky-actions.two { display: flex; gap: 8px; }
.sticky-actions.two .btn { flex: 1; }

.navgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-bottom: 14px; padding: 12px; }
.nav-cell { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 0; font-size: .8rem; cursor: pointer; }
.nav-cell.done { background: color-mix(in srgb, var(--accent) 22%, var(--surface2)); }
.nav-cell.flag { border-color: var(--warn); color: var(--warn); }
.nav-cell.cur { outline: 2px solid var(--text); }

/* ── Results ───────────────────────────────────────────────────────────────── */
.results { text-align: center; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; padding: 24px 16px; }
.big-score { font-size: 3rem; font-weight: 850; letter-spacing: -1px; }
.big-score small { font-size: 1.3rem; color: var(--muted); }
.results + .list { margin-bottom: 14px; }
#screen-results .btn, #screen-mockres > .btn { margin-top: 16px; }

.review { margin-bottom: 12px; }
.rv-good { border-left: 3px solid var(--good); }
.rv-bad  { border-left: 3px solid var(--bad); }

.weak { margin-bottom: 8px; padding: 0; }
.weak summary { display: flex; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.weak summary::-webkit-details-marker { display: none; }
.weak[open] summary { border-bottom: 1px solid var(--border); }
.weak .review { padding: 14px; margin: 0; }
.weak-count { font-weight: 800; flex: none; }

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 16px; border-radius: 99px; font-size: .9rem; z-index: 50; max-width: calc(100% - 32px);
  box-shadow: 0 6px 24px #0006;
}
.toast.good { border-color: var(--good); }
.toast.bad  { border-color: var(--bad); }

@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 1.2rem; }
  .q-title { display: none; }
}

/* Code inside answer options wraps rather than scrolling — a clipped option
   hides exactly the detail that distinguishes it from the others. */
.opt-text pre.code { overflow-x: visible; }
.opt-text pre.code code { white-space: pre-wrap; word-break: break-word; }

.note { font-size: .82rem; color: var(--muted); border-left: 3px solid var(--border); padding: 4px 10px; margin: 8px 0; }

/* ── Concepts ─────────────────────────────────────────────────────────────── */
.concept-search { width: 100%; margin-bottom: 12px; }
.concept { margin-bottom: 8px; padding: 0; }
.concept summary { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; cursor: pointer; list-style: none; }
.concept summary::-webkit-details-marker { display: none; }
.concept[open] summary { border-bottom: 1px solid var(--border); }
.concept-title { font-weight: 700; }
.concept-body { padding: 4px 14px 14px; font-size: .93rem; line-height: 1.55; }
.concept-body p { margin: 10px 0; }
.concept-body ul { margin: 6px 0 10px 18px; padding: 0; }
.concept-body li { margin: 3px 0; }
.concept-body pre.code { margin: 10px 0; }
.due-boxes { display: flex; gap: 14px; margin-top: 6px; color: var(--text); }
.due-boxes b { font-variant-numeric: tabular-nums; margin-left: 2px; }

/* ── Topics inside a domain card ──────────────────────────────────────────── */
.topics { border-top: 1px solid var(--border); }
.topics summary { padding: 9px 14px; cursor: pointer; font-size: .85rem; font-weight: 650; color: var(--muted); list-style: none; }
.topics summary::-webkit-details-marker { display: none; }
.topics summary::before { content: '▸ '; }
.topics[open] summary::before { content: '▾ '; }
.topic-row { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.topic-main { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 9px 0; background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
.topic-main:disabled { opacity: .5; cursor: default; }
.topic-main:hover:not(:disabled) .topic-name { color: var(--accent-2); }
.topic-name { font-size: .9rem; font-weight: 600; }
.topic-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.topic-new { flex: none; padding: 4px 9px; border-radius: 99px; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 650; background: none;
  color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
/* Explanations rendered as rich text (paragraphs, bullet lists, code). */
.fb-body p { margin: 6px 0; }
.fb-body ul { margin: 4px 0 8px 18px; padding: 0; }
.fb-body li { margin: 3px 0; }
.fb-body pre.code { margin: 8px 0; }

/* Tables inside Concepts cards / explanations */
.table-wrap { overflow-x: auto; margin: 8px 0; }
.note-table { border-collapse: collapse; font-size: .85rem; min-width: 100%; }
.note-table th, .note-table td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
.note-table th { background: var(--surface2); font-weight: 650; }

/* Report panel */
.report { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.report-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.report-reasons input { margin-right: 4px; }
/* Learn more (Concepts) inside explanations */
.learn-more { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.learn-more summary { cursor: pointer; font-size: .88rem; font-weight: 650; color: var(--accent-2); }
.learn-more .concept-body { padding: 4px 0 0; }
/* Weakest topics */
.weak-topic { width: 100%; background: none; border: none; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.weak-topic:hover span:first-child { color: var(--accent-2); }
/* Progress charts */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .label { fill: var(--text); font-size: 12px; font-weight: 700; }
.chart .line { fill: none; stroke: var(--good); stroke-width: 2.5; }
.chart .dot { fill: var(--good); }
.chart .bar { fill: var(--accent); opacity: .75; }
.chart .bar-again { fill: var(--bad); }
.forecast-table tr.current td { font-weight: 700; }

/* Saved note shown read-only in a review card (mock results, Most missed). */
.my-note { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.my-note b { color: var(--warn); }
.my-note p { margin-top: 4px; white-space: pre-wrap; }

/* ── Admin ──────────────────────────────────────────────────────────────────── */
.admin-entry { margin-bottom: 14px; }
.admin-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.admin-form-row label { flex: 1 1 240px; }
.admin-form-row label.admin-days { flex: 0 1 140px; }
.admin-form-row .btn { min-height: 44px; }
.callout { background: var(--surface2); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.callout-msg { font-size: .88rem; background: var(--bg); border-radius: var(--radius-sm); padding: 9px 11px; }
.callout-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-row { flex-wrap: wrap; justify-content: flex-start; }
.admin-grow { flex: 1 1 200px; min-width: 0; }
.admin-detail { min-width: 150px; }
.admin-time { min-width: 92px; font-variant-numeric: tabular-nums; }
.admin-ip { min-width: 120px; }
.chip-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.banned-row .mono { min-width: 140px; }
.callout-link { overflow-wrap: anywhere; background: var(--bg); border-radius: var(--radius-sm); padding: 8px 10px; }
.form-notice { background: #3fbf7f1a; border: 1px solid #3fbf7f55; color: var(--good); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .88rem; text-align: left; }
