/* Hook Radar UI. System fonts only; light and dark follow the system setting. */

:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --surface-3: #e9ecf2;
  --border: #e1e5ec;
  --border-strong: #c9cfda;
  --text: #15181f;
  --muted: #5d6675;
  --accent: #4338ca;
  --accent-strong: #3730a3;
  --accent-text: #ffffff;
  --accent-soft: #ecebfc;
  --ok: #117a4a;
  --ok-soft: #e1f4ea;
  --warn: #8a5a00;
  --warn-soft: #fbefd3;
  --err: #b42318;
  --err-soft: #fde7e4;
  --info-soft: #e7effd;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 6px rgba(16, 24, 40, 0.04);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161a21;
    --surface-2: #1d222b;
    --surface-3: #262c37;
    --border: #2a313c;
    --border-strong: #3a4352;
    --text: #e9ecf1;
    --muted: #9aa4b4;
    --accent: #a5b4fc;
    --accent-strong: #c7d2fe;
    --accent-text: #10132b;
    --accent-soft: #22264a;
    --ok: #5fd39a;
    --ok-soft: #12301f;
    --warn: #f0c060;
    --warn-soft: #33270c;
    --err: #ff8a7a;
    --err-soft: #3a1714;
    --info-soft: #172a45;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

h1 { font-size: 1.65rem; line-height: 1.2; margin: 0; letter-spacing: -0.015em; font-weight: 700; }
h2 { font-size: 1.08rem; margin: 0 0 0.75rem; font-weight: 650; letter-spacing: -0.005em; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 1rem; margin: 0 0 0.5rem; }
p { margin: 0 0 0.75rem; }
small { font-size: 0.75em; font-weight: 500; }
.icon { flex: none; vertical-align: -3px; }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */

.layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 14px 18px;
  display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; padding: 2px 8px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-text); }

.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 500;
  padding: 9px 12px; border-radius: var(--radius-s);
}
.sidebar nav a .icon { color: var(--muted); }
.sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
.sidebar nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.sidebar nav a[aria-current="page"] .icon { color: var(--accent); }

.sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--border); font-size: 0.85rem; }
.foot-title { display: flex; align-items: center; gap: 6px; font-weight: 650; margin-bottom: 10px; color: var(--muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
.foot-limit { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin-bottom: 10px; color: var(--muted); }
.foot-limit progress { grid-column: 1 / -1; }

main { padding: 30px 36px 64px; max-width: 1180px; width: 100%; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.lead { color: var(--muted); margin: 6px 0 0; max-width: 72ch; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem; margin: 0 0 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Building blocks */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.card-head .muted { font-size: 0.93rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

.muted { color: var(--muted); }
.label { font-size: 0.74rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 8px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.strong { font-weight: 700; }
.empty { color: var(--muted); padding: 10px 0; margin: 0 0 8px; }
.foot-note { font-size: 0.85rem; margin-top: 4px; }
.ok-text { color: var(--ok); }
.err-text { color: var(--err); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-s);
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-text); }
.btn.large { min-height: 44px; padding: 0 18px; font-size: 1.02rem; }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 0.86rem; }
.btn.tiny { min-height: 26px; padding: 0 8px; font-size: 0.78rem; font-weight: 600; }
.btn.quiet { border-color: transparent; background: none; color: var(--err); font-weight: 500; }
.btn.quiet:hover { background: var(--err-soft); color: var(--err); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 650; white-space: nowrap; line-height: 1.3;
  background: var(--surface-2); color: var(--muted);
}
.badge.large { font-size: 0.9rem; padding: 6px 13px; }
.badge.done { background: var(--ok-soft); color: var(--ok); }
.badge.running, .badge.open { background: var(--warn-soft); color: var(--warn); }
.badge.failed { background: var(--err-soft); color: var(--err); }
.badge.outlier { background: var(--accent-soft); color: var(--accent); }
.badge.neutral { background: var(--surface-3); color: var(--muted); }

.flash { display: flex; align-items: center; gap: 10px; border-radius: var(--radius-s); padding: 11px 14px; margin-bottom: 16px; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--err-soft); color: var(--err); }
.flash.info { background: var(--info-soft); color: var(--text); }
.flash a { color: inherit; font-weight: 600; }

progress { width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-3); accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

details > summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.12s; margin-right: 2px; }
details[open] > summary::before { transform: rotate(45deg); }
details.card > summary { display: flex; }
details.card[open] > summary { margin-bottom: 12px; }

/* Stats */

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat.accent { background: var(--accent-soft); border-color: transparent; }
.stat-value { display: block; font-size: 1.7rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-label { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 2px; }

/* Tables */

.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
thead th { font-size: 0.74rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
th.num { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tfoot th { border-bottom: 0; border-top: 2px solid var(--border); text-transform: none; font-size: 0.95rem; color: var(--text); }
table.runs td { padding-top: 13px; padding-bottom: 13px; }

/* Setup checklist and run list */

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-mark { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface-3); color: var(--muted); }
.steps li.done .step-mark, .step-mark.done { background: var(--ok-soft); color: var(--ok); }
.step-body { flex: 1; min-width: 0; }
.step-body p { margin: 0; }
.step-title { font-weight: 650; }

.run-list { list-style: none; margin: 0; padding: 0; }
.run-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.run-list li:last-child { border-bottom: 0; }
.run-list a { text-decoration: none; color: var(--text); display: flex; flex-direction: column; min-width: 0; }
.run-list a:hover .run-title { color: var(--accent); }
.run-title { font-weight: 650; }
.run-meta { color: var(--muted); font-size: 0.86rem; }

.how-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); }
.how-steps strong { color: var(--text); }

/* Topics */

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chips li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }
.run-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.run-form .muted { flex-basis: 100%; margin: 0; font-size: 0.88rem; }

/* Forms */

label { display: block; font-weight: 650; margin-bottom: 5px; }
label .muted { font-weight: 400; }
.help { color: var(--muted); margin: 0 0 7px; font-size: 0.9rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 650; margin-bottom: 6px; padding: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 6px 18px 0 0; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; min-height: 40px; padding: 9px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-s);
  background: var(--surface); color: var(--text); font: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; line-height: 1.45; }
::placeholder { color: var(--muted); opacity: 0.7; }

.form-stack { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: flex; gap: 18px; flex-wrap: wrap; }
.field { flex: 1; min-width: 220px; }
.field.small { flex: 0 0 240px; min-width: 0; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-actions .muted { font-size: 0.9rem; }
.input-row { display: flex; gap: 8px; flex-wrap: wrap; }
.input-row input { flex: 1; min-width: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92rem; }
.advanced { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px 16px; }
.advanced[open] > summary { margin-bottom: 16px; }

/* Connections */

.explain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.explain-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.explain-item .icon { color: var(--accent); margin-top: 2px; }
.explain-item strong { color: var(--text); display: block; }
.access-title { display: flex; align-items: center; gap: 12px; }
.access-title h2 { margin: 0; }
.access.connected { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.howto { margin: 4px 0 16px; }
.howto[open] > summary { margin-bottom: 8px; }
.howto ol { margin: 8px 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.key-form label { font-weight: 600; }
.access-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.access-actions form { margin: 0; }
.test-result { flex-basis: 100%; margin: 4px 0 0; min-height: 0; }
.test-result:empty { display: none; }
.advanced-card { padding: 18px 24px; }

/* Run detail */

.funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.funnel div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.funnel .accent { background: var(--accent-soft); border-color: transparent; }
.funnel-value { display: block; font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -0.01em; }
.funnel-label { color: var(--muted); font-size: 0.86rem; }

.next-step { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, var(--surface)), var(--surface)); }
.next-step h2 .icon { color: var(--accent); }
.next-step details { margin-top: 12px; }
.next-step details[open] > summary { margin-bottom: 8px; }

.glance { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.glance-text p { font-size: 1.02rem; }
.glance-patterns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.glance-facts { margin: 0; display: grid; gap: 8px; }
.glance-facts div { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius-s); }
.glance-facts dt { color: var(--muted); font-size: 0.88rem; }
.glance-facts dd { margin: 0; font-weight: 750; font-size: 1.1rem; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 4px 0 16px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; margin-bottom: -1px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab .count { font-size: 0.74rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.tab .count.warn { background: var(--warn-soft); color: var(--warn); }
.tabs-active .tab-panel { display: none; }
.tabs-active .tab-panel.active { display: block; }

.patterns { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 10px; }
.pattern { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 14px 16px; background: var(--surface-2); }
.pattern h3 { margin: 0 0 8px; }
.pattern p { margin-bottom: 6px; }

.ranking td { padding-top: 12px; padding-bottom: 12px; }
.video { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--text); min-width: 300px; }
.video img { flex: none; border-radius: 8px; background: var(--surface-3); object-fit: cover; }
.video-title { display: block; font-weight: 650; line-height: 1.3; }
.video:hover .video-title { color: var(--accent); }
.video-meta { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.video-tags { display: flex; gap: 6px; margin-top: 6px; }
.hook-cell { min-width: 230px; max-width: 320px; font-size: 0.9rem; }
.hook-cell q { display: block; margin: 6px 0 4px; quotes: "\201E" "\201C"; }
.hook-cell .muted { display: block; font-size: 0.83rem; }
.ranking:has(.hook-cell) .video { min-width: 250px; }
.ranking:has(.hook-cell) .video img { width: 96px; height: 54px; }

.progress-card { display: flex; align-items: center; gap: 20px; }
.progress-card h2 { margin-bottom: 4px; }
.progress-card p { margin: 0; }
.spinner { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.facts dd.plain { font-weight: 400; text-align: right; max-width: 62%; }
.facts.compact div { padding: 6px 0; justify-content: flex-start; }
.facts.compact dt { flex: 0 0 130px; }
.facts.compact dd { flex: 1; text-align: left; max-width: none; font-weight: 400; }

.warn-card { border-color: color-mix(in srgb, var(--warn) 50%, var(--border)); }
.warn-card h2 .icon { color: var(--warn); }
.warn-card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

.suggestions { display: grid; gap: 14px; }
.suggestion { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.suggestion header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.suggestion-nr { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 750; font-size: 0.88rem; }
.variants { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.variants li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 1.04rem; line-height: 1.45; }
.variants q { quotes: "\201E" "\201C"; }
.variants .btn { flex: none; margin-top: 2px; }
.feedback { display: flex; align-items: center; gap: 8px; margin-top: 12px; }

/* Costs */

.limit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.limit .label { margin-top: 0; }
.limit-value { font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; margin-bottom: 8px; letter-spacing: -0.01em; }
.limit-value .muted { font-size: 0.93rem; font-weight: 400; }

/* Small screens */

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar nav { flex-direction: row; overflow-x: auto; flex: 1 1 100%; order: 3; gap: 4px; }
  .sidebar nav a { white-space: nowrap; padding: 8px 10px; }
  .sidebar-foot { margin: 0; padding: 0; border: 0; font-size: 0.85rem; }
  .sidebar-foot .foot-title, .sidebar-foot .foot-limit { display: none; }
  .who { margin: 0; padding: 0; border: 0; }
  main { padding: 20px 16px 48px; }
  .two-col, .explain, .limit-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance { grid-template-columns: minmax(0, 1fr); }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { flex-wrap: wrap; }
  .field.small { flex: 1 1 100%; }
  .card { padding: 18px; }

  /* The ranking becomes one card per video, with each number labelled. */
  .ranking thead { display: none; }
  .ranking tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .ranking tbody tr:last-child { border-bottom: 0; }
  .ranking td { border: 0; padding: 0; text-align: left; white-space: normal; }
  .ranking td.rank { display: none; }
  .ranking td:nth-child(2), .ranking td.hook-cell { grid-column: 1 / -1; margin-bottom: 4px; max-width: none; }
  .ranking td[data-label]::before { content: attr(data-label); display: block; font-size: 0.76rem; font-weight: 500; color: var(--muted); }
  .video, .ranking:has(.hook-cell) .video { min-width: 0; }
  .video img { width: 96px; height: 54px; }
}

/* Login and accounts */

.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth { width: 100%; max-width: 400px; }
.auth-brand { justify-content: center; margin-bottom: 18px; font-size: 1.25rem; }
.auth-card { display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 1.3rem; }
.auth-card .flash { margin: 0; }
.auth-note { margin: 4px 0 0; font-size: 0.88rem; text-align: center; }
.narrow { max-width: 480px; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.who-name { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who form { margin: 0; }
.row-actions { display: inline-flex; gap: 6px; }
.row-actions form { margin: 0; }
.password-card { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.password { font-size: 1.4rem; margin: 0; }
.password code { background: var(--surface-2); padding: 6px 12px; border-radius: 8px; user-select: all; letter-spacing: 0.04em; }
