/* Birds Eye Admin: dense, data-forward, light and dark, desktop and phone. */

:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --surface-3: #e7e6e2;
  --line: #e2e1dc;
  --line-strong: #cfcdc6;
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #6b6a64;
  /* Marks (charts, dots, fills) vs text in the same hue: text steps pass 4.5:1. */
  --accent: #2a78d6;
  --accent-text: #1f66c2;
  --accent-soft: #e6f0fc;
  --button: #226bc8;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --good: #0ca30c;
  --good-text: #087008;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --critical-text: #b42a2a;
  --neutral: #9a998f;
  --good-soft: #e5f5e5;
  --critical-soft: #fbeaea;
  --warning-soft: #fdf3dc;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 0 0 1px var(--line);
  --radius: 10px;
  --gap: 14px;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --surface-2: #232322;
    --surface-3: #2d2d2b;
    --line: #2e2e2c;
    --line-strong: #43433f;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --text-3: #9a998f;
    --accent: #3987e5;
    --accent-text: #7db3f2;
    --accent-soft: #1c2a3d;
    --button: #2a6fc9;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --good-text: #4cd45f;
    --critical-text: #f07070;
    --neutral: #75746c;
    --good-soft: #15291a;
    --critical-soft: #331b1b;
    --warning-soft: #33290f;
    --shadow: 0 0 0 1px var(--line);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.break { overflow-wrap: anywhere; }
.grow { flex: 1; }

:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -40px; z-index: 50; padding: 6px 10px; border-radius: 6px; background: var(--button); color: #fff; }
.skip:focus { top: 8px; }

/* Shell */
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 10px; border-right: 1px solid var(--line); background: var(--surface); z-index: 10;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px; color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--text-3); font-weight: 500; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current='page'] { background: var(--accent-soft); color: var(--accent-text); }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidebar-foot { margin-top: auto; padding: 8px; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.main { padding: 22px 28px 60px; max-width: 1480px; width: 100%; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head > div:first-child { min-width: 0; flex: 1 1 320px; }
.page-head h1 { font-size: 22px; overflow-wrap: anywhere; }
.subtitle { margin-top: 4px; color: var(--text-2); max-width: 900px; overflow-wrap: anywhere; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.subnav { margin: -6px 0 16px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sidebar {
    position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; gap: 4px;
    padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
  }
  .brand { padding: 4px 6px; }
  .brand span { display: none; }
  .nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 9px; }
  .nav a .icon { display: none; }
  .sidebar-foot { margin: 0; padding: 0 0 0 4px; border: 0; display: flex; }
  .sidebar-foot .api { display: none; }
  .main { padding: 14px 12px 48px; }
  .page-head { margin-bottom: 14px; align-items: flex-start; }
  .page-head h1 { font-size: 19px; }
}

/* Flash */
.flash { padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; font-weight: 500; overflow-wrap: anywhere; }
.flash.notice { background: var(--good-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--good); }
.flash.error { background: var(--critical-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--critical); }

/* Layout grids */
.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-main-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
.span-2 { grid-column: span 2; }
.stack-v { display: grid; gap: var(--gap); align-content: start; grid-template-columns: minmax(0, 1fr); }
.mt { margin-top: var(--gap); }
@media (max-width: 1100px) {
  .cols-2, .cols-3, .cols-main-side { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
}

/* Stats: dividers drawn by the tiles, so a short last row leaves no grey filler. */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: var(--gap); background: var(--surface); }
.stat { padding: 11px 14px 12px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); min-width: 0; }
.stat-label { color: var(--text-2); font-size: 12px; font-weight: 500; }
.stat-value { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; overflow-wrap: anywhere; }
.stat-value.text { font-size: 15px; padding-top: 6px; }
.stat-detail { color: var(--text-3); font-size: 12px; margin-top: 1px; }
.stat.tone-bad .stat-value { color: var(--critical-text); }
.stat.tone-good .stat-value { color: var(--good-text); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-value { font-size: 19px; }
}

/* Cards: tables scroll sideways inside their card, never the page. */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 11px 14px 0; flex-wrap: wrap; position: sticky; left: 0; }
.card-head h2 { font-size: 13px; }
.card-aside { color: var(--text-3); font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card .body { padding: 12px 14px 14px; }
.card .body + .body { padding-top: 0; }
.card > .chart { margin: 4px 8px 8px; }
.card > table { margin-top: 6px; }
.section-title { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; margin: 22px 0 8px; scroll-margin-top: 64px; }
.section-title a { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 10px; }
.card-foot { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding: 10px 14px 12px; border-top: 1px solid var(--line); position: sticky; left: 0; }
.card-foot .note { margin-right: auto; color: var(--text-3); font-size: 12px; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 6px 10px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
th { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; border-top: 0; padding-top: 8px; white-space: nowrap; }
th.raw { text-transform: none; letter-spacing: 0; font-family: var(--mono); }
th:first-child, td:first-child { padding-left: 14px; }
th:last-child, td:last-child { padding-right: 14px; }
td.num, th.num { text-align: right; white-space: nowrap; width: 1%; }
td.fit, th.fit { width: 1%; white-space: nowrap; }
tbody tr:hover td { background: var(--surface-2); }
tr.selected td { background: var(--accent-soft); }
table.fixed { table-layout: fixed; }
.row-title { font-weight: 500; color: var(--text); }
a.row-title { color: var(--accent-text); }
.row-sub { color: var(--text-3); font-size: 12px; }
.thumb { width: 26px; height: 26px; border-radius: 5px; object-fit: cover; background: var(--surface-3); vertical-align: middle; flex: none; display: inline-block; }
.with-thumb { display: flex; align-items: center; gap: 9px; min-width: 0; }
.with-thumb > div { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: var(--tw, 320px); }
.tw-xs { --tw: clamp(100px, 16vw, 200px); }
.tw-s { --tw: clamp(120px, 22vw, 240px); }
.tw-m { --tw: clamp(160px, 30vw, 360px); }
.tw-l { --tw: clamp(180px, 36vw, 460px); }
.empty { padding: 22px 14px; text-align: center; color: var(--text-3); }
@media (max-width: 860px) {
  /* The first column stays put while a wide table scrolls. */
  .card > table:not(.stacked) th:first-child, .card > table:not(.stacked) td:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line);
  }
  .card > table:not(.stacked) tbody tr:hover td:first-child { background: var(--surface-2); }
  .card > table:not(.stacked) td:first-child { min-width: 150px; max-width: 210px; }
  .card > table:not(.stacked) .truncate { --tw: 180px; }
  .card > table:not(.stacked) td { white-space: nowrap; }
  .card > table:not(.stacked) td:first-child, .card > table:not(.stacked) td .row-sub, .card > table:not(.stacked) td.wrap { white-space: normal; }
  .card > table:not(.stacked) td.wrap { min-width: 220px; }
  .card > table.log td:first-child { min-width: 0; }
}

/* A clip's show, time and episode lines stay one line each, even where phone tables wrap sub-lines. */
.card > table td .clip-cell .row-sub { white-space: nowrap; }

/* Key / value tables that become stacked rows on phones (settings, notification policy). */
@media (max-width: 700px) {
  table.stacked, table.stacked tbody, table.stacked tr, table.stacked td { display: block; width: auto; }
  table.stacked thead { display: none; }
  table.stacked tr { padding: 10px 14px; border-top: 1px solid var(--line); }
  table.stacked td { border: 0; padding: 0; width: auto !important; text-align: left; }
  table.stacked td + td { margin-top: 6px; }
  table.stacked td[data-label]::before { content: attr(data-label) ': '; color: var(--text-3); font-size: 12px; }
  table.stacked td.num { text-align: left; }
  table.stacked tbody tr:hover td { background: none; }
  table.stacked input[type='text'], table.stacked textarea { width: 100%; }
}

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral); flex: none; }
.status-completed i, .status-ready i, .status-on i { background: var(--good); }
.status-running i, .status-processing i { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.status-failed i, .status-off i { background: var(--critical); }
.status-cancelled i, .status-unsupported i, .status-stopped i { background: var(--serious); }
.status-pending i, .status-draft i { background: var(--neutral); }

.pill { display: inline-block; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: var(--accent-text); }
.pill.warn { background: var(--warning-soft); color: var(--text); }
.pill.bad { background: var(--critical-soft); color: var(--critical-text); }
.pill.good { background: var(--good-soft); color: var(--good-text); }

/* Charts: an HTML frame (labels at real size) around a stretched SVG plot. */
.chart { position: relative; height: var(--h, 150px); font-size: 11px; color: var(--text-3); }
.chart-plot { position: absolute; left: 44px; right: 8px; top: 26px; bottom: 20px; }
.chart-grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.chart-y { position: absolute; left: -44px; width: 38px; text-align: right; transform: translateY(-50%); line-height: 1; }
.chart-x { position: absolute; top: calc(100% + 5px); transform: translateX(-50%); white-space: nowrap; line-height: 1; }
.chart-x.first { transform: none; }
.chart-x.last { transform: translateX(-100%); }
@media (max-width: 600px) { .chart-x.minor { display: none; } }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--c); opacity: 0.12; }
.chart.series-1 { --c: var(--series-1); }
.chart.series-2 { --c: var(--series-2); }
.chart.series-3 { --c: var(--series-3); }
.chart-cols { position: absolute; inset: 0; display: flex; }
.chart-col { position: relative; flex: 1; min-width: 0; outline: none; }
.chart-bar { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(70%, 18px); min-width: 2px; border-radius: 3px 3px 0 0; background: var(--c); }
.chart-guide { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--line-strong); opacity: 0; }
.chart-dot { position: absolute; left: 50%; width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); opacity: 0; }
.chart-tip {
  position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); z-index: 2; opacity: 0; pointer-events: none;
  padding: 3px 7px; border-radius: 5px; background: var(--text); color: var(--surface); font-weight: 600; white-space: nowrap;
}
.chart-col.start .chart-tip { left: 0; transform: none; }
.chart-col.end .chart-tip { left: auto; right: 0; transform: none; }
.chart-col:hover > *, .chart-col:focus > * { opacity: 1; }
.chart-col:hover .chart-bar, .chart-col:focus .chart-bar { filter: brightness(1.12); }
.chart-bar { opacity: 1 !important; }

.stack { display: grid; gap: 8px; }
.stack-bar { display: flex; gap: 2px; height: 10px; border-radius: 4px; overflow: hidden; }
.stack-empty { flex: 1; background: var(--surface-3); }
.seg { min-width: 3px; background: var(--neutral); }
.seg.status-completed, .seg.status-ready { background: var(--good); }
.seg.status-running, .seg.status-processing { background: var(--accent); }
.seg.status-failed { background: var(--critical); }
.seg.status-cancelled, .seg.status-unsupported { background: var(--serious); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-2); font-size: 12px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--neutral); }
.legend .status-completed i, .legend .status-ready i { background: var(--good); }
.legend .status-running i, .legend .status-processing i { background: var(--accent); }
.legend .status-failed i { background: var(--critical); }
.legend .status-cancelled i, .legend .status-unsupported i { background: var(--serious); }
.legend b { color: var(--text); font-weight: 600; }

.meter { position: relative; display: block; min-width: 90px; height: 20px; }
.meter-fill { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 3px; background: var(--accent-soft); }
.meter-value { position: relative; display: block; text-align: right; line-height: 20px; font-weight: 500; }

/* Forms */
input, select, textarea, button { font: inherit; color: inherit; }
input[type='text'], input[type='search'], input[type='number'], input[type='password'], input[type='time'], input[type='datetime-local'], input:not([type]), select, textarea {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 8px; min-width: 0; max-width: 100%;
}
textarea { font-family: var(--mono); font-size: 12px; width: 100%; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 1px; border-radius: 7px; }
input.mono, textarea.mono { font-family: var(--mono); font-size: 12px; }
input.w-full { width: 100%; }
input.w-num { width: 96px; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); width: 15px; height: 15px; vertical-align: middle; margin: 0; flex: none; }
label { display: grid; gap: 4px; font-weight: 500; color: var(--text-2); font-size: 12px; align-content: start; }
label.inline { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 13px; white-space: nowrap; }
/* Help text sits under the control, so labels in a row line up. */
.field-help { order: 1; font-weight: 400; color: var(--text-3); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.form-row { display: flex; gap: 10px 12px; align-items: flex-start; flex-wrap: wrap; }
.form-row > label { flex: 1 1 160px; min-width: 0; }
.form-row > label.narrow { flex: 0 1 120px; }
.form-row > label.inline { flex: 0 0 auto; }
.form-row > label.wide { flex: 2 1 240px; }
/* Buttons and checkboxes after a labelled input line up with the input, not the label. */
.form-row > label:not(.inline) ~ :is(.button, button, label.inline) { margin-top: 21px; }
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 11px; border-radius: 7px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; line-height: 1.45;
}
.button:hover { background: var(--surface-2); text-decoration: none; }
.button.primary { background: var(--button); border-color: var(--button); color: #fff; }
.button.primary:hover { filter: brightness(1.08); }
.button.danger { color: var(--critical-text); }
.button.danger:hover { background: var(--critical-soft); }
.button.small { padding: 2px 8px; font-size: 12px; }
.button[disabled] { opacity: 0.45; cursor: default; }
button.link { background: none; border: 0; padding: 0; color: var(--accent-text); cursor: pointer; text-align: left; }
form.inline { display: inline; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; align-items: center; }
.actions form { display: inline-flex; gap: 4px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input[type='search'] { width: 340px; }
@media (max-width: 700px) { .toolbar input[type='search'] { width: 100%; } .toolbar form { flex: 1 1 100%; } }
.tabs { display: inline-flex; gap: 2px; background: var(--surface-3); padding: 2px; border-radius: 8px; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 3px 10px; border-radius: 6px; color: var(--text-2); font-weight: 500; font-size: 12px; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current='page'] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 10px 0; background: linear-gradient(to bottom, transparent, var(--bg) 35%); }

/* Detail lists */
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--text-3); }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
pre.code { margin: 0; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font: 12px/1.5 var(--mono); overflow: auto; max-height: 360px; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.code.error { background: var(--critical-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--critical); }

/* Job tree and logs */
.tree { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); }
.tree > li { padding: 3px 0; }
.tree-root { padding-left: 0; border: 0; }
.tree .status { margin-right: 6px; }
.log { font: 12px/1.55 var(--mono); }
.log td { border-top-color: transparent; padding-top: 2px; padding-bottom: 2px; vertical-align: top; }
.log td:last-child { overflow-wrap: anywhere; min-width: 240px; }
.log .lvl-warn { color: var(--serious); }
.log .lvl-error, .log .lvl-fatal { color: var(--critical-text); font-weight: 600; }
.log .meta { color: var(--text-3); overflow-wrap: anywhere; }

/* URL diff */
.urls { display: grid; gap: 2px; font: 12px/1.45 var(--mono); min-width: 0; }
.urls > * { overflow-wrap: anywhere; }
.urls .from { color: var(--text-3); }
.urls .to { color: var(--text); }
.urls .to.changed::before { content: '→ '; color: var(--accent-text); }
mark.del { background: var(--critical-soft); color: var(--critical-text); text-decoration: line-through; border-radius: 2px; }
mark.ins { background: var(--good-soft); color: var(--good-text); border-radius: 2px; }
.rule-pattern { font: 12px var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.problem { color: var(--critical-text); font-weight: 500; }
.badge-num { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 5px; background: var(--surface-3); text-align: center; font-weight: 600; color: var(--text-2); font-size: 12px; }
.panel { background: var(--surface-2); border-radius: 8px; padding: 12px 14px; min-width: 0; }

/* Login and error pages */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: min(380px, 100%); padding: 22px; display: grid; gap: 14px; }
.login h1 { font-size: 18px; display: flex; align-items: center; gap: 9px; }
.error-card { max-width: 560px; }
