/* Buzz Factory — 制作進行表 (production schedule) look. Mobile-first, no framework.
 *
 * Palette: white paper, black ink, gray hairlines, a strong black rule under headers.
 * Exactly three signals, each with one fixed meaning:
 *   yellow marker  = your turn / needs action   (承認待ち, 投稿待ち)
 *   red            = late / error / danger       (遅れ, エラー, 取り消し)
 *   dashed border  = AI is working               (AI会議中)
 * Everything else is black or gray. Square corners, no shadows, no gradients.
 */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --cell: #fafafa;         /* faint neutral fill for code/prose blocks */
  --text: #111111;         /* ink */
  --muted: #707070;
  --border: #e4e4e4;       /* hairline */
  --rule: #111111;         /* strong rule under bars and headers */
  --on-ink: #ffffff;       /* text placed on an ink fill */
  --mark: #ffe14d;         /* signal: your turn */
  --mark-ink: #111111;
  --danger: #e0301e;       /* signal: late / error */
  --tap: 44px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-family: var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --surface: #0e0e0e;
    --cell: #161616;
    --text: #f2f2f2;
    --muted: #9a9a9a;
    --border: #2a2a2a;
    --rule: #f2f2f2;
    --on-ink: #0e0e0e;
    --danger: #ff5a47;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "palt";
}
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
::selection { background: var(--mark); color: var(--mark-ink); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 12px;
}
.brand {
  flex: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 6px 0;
  padding: 0 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a.active { background: var(--text); color: var(--on-ink); font-weight: 600; }
.nav a.active:hover { text-decoration: none; }
.nav a:focus-visible { outline-offset: -2px; }
.logout {
  flex: none;
  margin: 0;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  background: var(--bg);
}
.btn-ghost {
  min-height: var(--tap);
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 767px) {
  .brand { display: none; }
  .topbar-inner { gap: 4px; padding-right: 8px; }
  .nav { gap: 0; }
  .nav a { min-height: var(--tap); margin: 0; padding: 0 9px; font-size: 13px; }
  /* Seven items + ログアウト don't fit at phone width: the nav scrolls under a
     divider, and the active item sticks to the visible edge so it is never
     hidden behind ログアウト. */
  .nav a.active { position: sticky; left: 0; right: 0; z-index: 1; }
  .logout { padding-left: 6px; }
  .btn-ghost { font-size: 12px; }
}

/* ---------- notices ---------- */
.notice {
  margin: 12px max(12px, calc((100% - 1576px) / 2)) 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 13px;
}
.notice ul { margin: 2px 0 0; padding-left: 1.2em; }
/* setup banner: thin bordered line, red emphasis */
.notice-warn { color: var(--text); }
.notice-warn strong { color: var(--danger); font-weight: 600; }
/* demo banner: plain gray line with a bottom rule, full width */
.notice-info {
  margin: 0;
  padding: 7px max(12px, calc((100% - 1576px) / 2));
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.notice-ok { border-color: var(--text); color: var(--text); }
.notice-error { border-color: var(--danger); color: var(--danger); font-weight: 600; }

/* ---------- page ---------- */
.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
}

/* ---------- counters ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  margin-bottom: 12px;
  padding: 4px 0 14px;
  border-bottom: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column-reverse; /* big number on top, small label under it */
  justify-content: flex-end;
  align-items: flex-start;
  min-height: var(--tap);
  padding: 4px 0;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
a.stat:hover .stat-label { color: var(--text); text-decoration: underline; }
.stat-label { margin-top: 6px; font-size: 12px; color: var(--muted); }
.stat-value {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, minmax(120px, max-content)); column-gap: 56px; }
  .stat-value { font-size: 40px; }
}
.stat-attn .stat-value { background: var(--mark); color: var(--mark-ink); padding: 0 6px; margin-left: -6px; }
.stat-alert .stat-value, .stat-alert .stat-label { color: var(--danger); }

/* ---------- filter tags ---------- */
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -12px 12px;
  padding: 2px 12px 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 14px;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { background: var(--cell); }
.chip-on, .chip-on:hover { background: var(--text); color: var(--on-ink); font-weight: 600; }
.chip:focus-visible { outline-offset: -4px; outline-color: var(--mark); }

/* ---------- kanban (進行表) ---------- */
.kanban { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) {
  .kanban {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 1fr);
    gap: 0;
    align-items: stretch;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .column { border-left: 1px solid var(--border); }
  .column:first-child { border-left: 0; }
  .column-head, .column-body { padding-left: 10px; padding-right: 10px; }
}
.column { min-width: 0; }
.column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 2px 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 600;
}
.col-failed .column-head { color: var(--danger); border-bottom-color: var(--danger); }
/* The dot doubles as a legend swatch for signalled columns only. */
.dot { display: none; flex: none; width: 10px; height: 10px; }
.col-pending .dot, .col-edited .dot { display: block; background: var(--mark); border: 1px solid var(--mark-ink); }
.col-planning .dot { display: block; border: 1px dashed var(--text); }
.col-failed .dot { display: block; background: var(--danger); }
@media (prefers-color-scheme: dark) {
  .col-pending .dot, .col-edited .dot { border-color: var(--mark); }
}
.count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.col-failed .count { color: var(--danger); }
.column-body { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.empty { margin: 0; padding: 2px 0; color: var(--muted); font-size: 12px; }

/* ---------- card ---------- */
.card {
  display: block;
  min-height: var(--tap);
  padding: 7px 9px;
  background: var(--surface);
  border: 1px solid var(--text);
  color: var(--text);
  text-decoration: none;
}
.card:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }
.card:focus-visible { outline-offset: 2px; }
/* your turn */
.col-pending .card, .col-edited .card {
  --text: #111111;
  --muted: #4d4d4d;
  background: var(--mark);
  border-color: #111111;
  color: #111111;
}
/* AI working */
.col-planning .card { border-style: dashed; }
/* done */
.col-analyzed .card { border-color: var(--border); }
.col-analyzed .card-title { color: var(--muted); font-weight: 500; }
/* error / late */
.col-failed .card, .card.card-late { border-color: var(--danger); }
.col-failed .card-title { color: var(--danger); }
.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.card-company { color: var(--muted); font-weight: 600; }
.card-title {
  margin: 1px 0 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.card-meta { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); }
.card-code { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.score {
  margin-left: auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.card-time { margin-top: 1px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tag {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: 1px;
}
.tag-challenge { color: var(--text); }
.tag-late { color: var(--danger); }
.tag-muted { color: var(--muted); border-color: var(--border); }
.col-pending .tag-muted, .col-edited .tag-muted { border-color: var(--muted); }
.updated { margin: 16px 0 0; font-family: var(--mono); font-size: 11px; text-align: center; }

/* ---------- login ---------- */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.login-card {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--text);
}
.brand-lg {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.login-card p { margin: 0 0 16px; font-size: 13px; }
.login-card label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.login-card input {
  width: 100%;
  min-height: var(--tap);
  padding: 8px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* avoid iOS zoom */
}
.login-card input:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.form-error {
  padding: 8px 12px;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-weight: 600;
}
.btn-primary {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--text);
  color: var(--on-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary:hover { opacity: .85; }

/* ================= pages ================= */
.small { font-size: 13px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.warn-text { color: var(--danger); font-weight: 600; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-state { padding: 32px 12px; text-align: center; color: var(--muted); border-bottom: 1px solid var(--border); }
.crumb { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--text); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-head .page-title { margin: 0; }
.page-title { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 12px; font-size: 20px; font-weight: 700; }
.page-title .count { margin-left: 0; font-size: 20px; color: var(--text); }
.section-title {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 700;
}
* + .section-title { margin-top: 18px; }
summary.section-title { cursor: pointer; margin: 0; padding-bottom: 0; border-bottom: 0; }

.panel {
  display: block;
  margin-bottom: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  min-width: 0;
}
.panel > :last-child { margin-bottom: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.panel-title { margin: 2px 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.panel-title a { color: var(--text); text-decoration: none; }
.panel-title a:hover { text-decoration: underline; }
.score-lg { margin-left: 0; font-size: 22px; line-height: 1.1; flex: none; }
.hypothesis { margin: 0 0 8px; padding: 2px 0 2px 10px; border-left: 2px solid var(--text); font-size: 14px; }

.two-col { display: grid; gap: 12px; }
.two-col > * { min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.grid-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-cards .panel { margin-bottom: 0; }
.company-card { text-decoration: none; }
.company-card:hover { border-color: var(--text); }
.company-card:hover .panel-title { text-decoration: underline; text-underline-offset: 3px; }
.company-card.inactive { opacity: .55; }

details { margin: 6px 0; }
details > summary { cursor: pointer; min-height: 32px; padding: 4px 0; font-weight: 600; font-size: 14px; }
details.nested { margin-left: 12px; }
pre.md {
  margin: 6px 0 10px;
  padding: 10px 12px;
  background: var(--cell);
  border: 1px solid var(--border);
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.council-entry { margin: 8px 0; }
.council-head { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.council-head .muted { font-family: var(--mono); font-size: 11px; }

/* labels (square, outlined) */
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; margin: 4px 0 8px; }
.badge {
  display: inline-block; padding: 0 7px; border: 1px solid var(--border);
  color: var(--text); font-size: 12px; font-weight: 500; line-height: 1.8;
}
.badge-purpose { border-color: var(--text); }
.status-badge {
  display: inline-block; padding: 0 6px; border: 1px solid var(--text);
  color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.7;
}
.status-pending, .status-edited { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }
.status-planning, .status-rejected { border-style: dashed; }
.status-analyzed { border-color: var(--border); color: var(--muted); }
.status-failed { border-color: var(--danger); color: var(--danger); }
.verdict {
  display: inline-block; padding: 0 6px; border: 1px solid var(--border);
  color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.7;
}
.verdict-hit, .verdict-adopt, .verdict-adapt { border-color: var(--text); color: var(--text); }
.verdict-normal, .verdict-skip { border-color: var(--border); color: var(--muted); }
.verdict-miss { border-color: var(--danger); color: var(--danger); }
details.verdict-chip { margin: 0; border: 1px solid var(--border); font-size: 13px; }
details.verdict-chip.verdict-adopt, details.verdict-chip.verdict-adapt { border-color: var(--text); }
details.verdict-chip > summary { min-height: 32px; padding: 4px 10px; font-size: 13px; list-style: none; }
details.verdict-chip > summary::-webkit-details-marker { display: none; }
details.verdict-chip[open] > summary { border-bottom: 1px solid var(--border); }
details.verdict-chip > p { margin: 0; padding: 6px 10px 8px; font-size: 13px; font-weight: 400; color: var(--text); max-width: 36em; }
details.verdict-chip.used { opacity: .6; }
.v-hit { color: var(--text); }
.v-miss { color: var(--danger); }
.trend-head { display: flex; flex-direction: column; gap: 2px; }
.trend-head > .muted.small { font-size: 12px; }
.trend-summary { margin: 4px 0; font-size: 14px; }
.legend { margin: 0 0 8px; }

/* definition lists */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; font-size: 14px; }
.facts dt, .facts dd { padding: 5px 0; border-bottom: 1px solid var(--border); }
.facts dt { padding-right: 12px; color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts > :nth-last-child(-n+2) { border-bottom: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list li > .muted:first-child { font-family: var(--mono); font-size: 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 16px;
  border: 1px solid transparent; border-radius: 0;
  font: inherit; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn-go { background: var(--text); border-color: var(--text); color: var(--on-ink); }
.btn-go:hover { opacity: .85; }
.btn-outline { background: var(--surface); border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--cell); }
.btn-danger, .btn-ghost-danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover, .btn-ghost-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 12px 0 0; }
.inline-form { margin: 0; }
details.reject { margin: 0; flex: 1 1 260px; }
details.reject > summary { list-style: none; display: inline-flex; }
details.reject > summary::-webkit-details-marker { display: none; }
details.reject[open] > summary { margin-bottom: 8px; background: var(--cell); }

/* forms */
.form label, .stack label, .row-form label { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 600; }
.form label.check, .check { display: flex; align-items: center; gap: 8px; min-height: var(--tap); margin: 4px 0; font-weight: 400; font-size: 14px; }
.form input:not([type=checkbox]), .form select, .form textarea,
.stack textarea, .stack select, .row-form input, .row-form select, .actions select {
  width: 100%;
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* avoid iOS zoom */
}
textarea { resize: vertical; line-height: 1.6; }
::placeholder { color: var(--muted); opacity: 1; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--text); }
.form :focus-visible, .stack :focus-visible, .row-form :focus-visible, .btn:focus-visible {
  outline: 2px solid var(--text); outline-offset: 2px;
}
.form .btn-block { margin-top: 16px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack label { margin: 0; }
.row-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.row-form label { margin: 0; }
.row-form select { flex: 1 1 200px; width: auto; }
.row-form .input-narrow, .input-narrow { width: 90px; flex: none; font-family: var(--mono); }
fieldset { margin: 12px 0 0; padding: 0; border: 0; }
legend { padding: 0; font-size: 13px; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 0 16px; }
.req { margin-left: 4px; padding: 0 4px; border: 1px solid var(--danger); color: var(--danger); font-size: 10px; font-weight: 600; vertical-align: 1px; }
.code-display {
  display: inline-block;
  margin: 4px 0 0;
  padding: 4px 12px;
  border: 1px solid var(--text);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .2em;
  font-variant-numeric: tabular-nums;
}
.job-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.job-buttons form { margin: 0; }
.job-buttons .btn { white-space: normal; font-size: 13px; font-weight: 500; }

/* video */
.player { display: block; width: 100%; max-width: 360px; max-height: 70vh; margin: 12px 0; background: #000; border: 1px solid var(--text); }
.copy-block { margin-top: 8px; }
.copy-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.timeline { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline li > .muted:first-child { margin-right: 6px; font-family: var(--mono); font-size: 12px; }
.lvl-warn { color: var(--text); font-weight: 600; }
.lvl-error { color: var(--danger); }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.table td:first-child { white-space: normal; min-width: 10em; }
.table th { border-bottom-color: var(--rule); color: var(--muted); font-size: 12px; font-weight: 600; }
.table .num { text-align: right; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.table th.num { font-family: var(--sans); font-size: 12px; }

/* analytics */
.stats-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stats-4 { grid-template-columns: repeat(4, minmax(120px, max-content)); } }
.bar-chart { display: block; width: 100%; max-width: 760px; height: auto; font-size: 13px; }
.bar-chart .bar { fill: var(--text); rx: 0; ry: 0; }
.bar-chart .bar-hit { fill: transparent; }
.bar-chart .bar-row:hover .bar-hit { fill: var(--cell); }
.bar-chart .bar-label { fill: var(--text); }
.bar-chart .bar-value { fill: var(--muted); font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }

/* events */
.event-list { list-style: none; padding: 0 14px; }
.event { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 400; }
.event:last-child { border-bottom: 0; }
.event > .muted.small { font-family: var(--mono); font-size: 11px; }
.event-level { flex: none; padding: 0 5px; border: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.6; }
.event.lvl-warn .event-level { border-color: var(--text); color: var(--text); }
.event.lvl-error .event-level { border-color: var(--danger); color: var(--danger); }
.event-msg { flex: 1 1 100%; color: var(--text); overflow-wrap: anywhere; }
.event.lvl-error .event-msg { color: var(--danger); }
.event-list > li.muted { padding: 12px 0; }
.message { max-width: 560px; margin: 24px auto; }
.form .row-form select { flex: 1 1 160px; width: auto; }
.form .row-form .input-narrow { width: 90px; flex: none; }
pre.md:empty { display: none; }
