/* Pingboard — PR board.
   Type: IBM Plex Sans (UI) · Plex Mono (identifiers and job names). */

:root {
  --bg: #eef0ea;
  --panel: #fbfcf9;
  --panel-soft: #f1f4ee;
  --line: #d9dfd5;
  --line-strong: #b9c2b6;
  --text: #171c18;
  --muted: #56635a;
  --quiet: #66736a;

  --accent: #0e8a60;
  --accent-soft: rgba(14, 138, 96, 0.11);
  --on-accent: #fff;
  --good: #1a7f37;
  --bad: #cf222e;
  --warn: #9a6200;
  --todo: #6639ba;
  --running: #0b6fb3;
  --merged: #8250df;
  --follow: #b0307c;
  --focus: #1d4ed8;
  --shadow: 0 16px 36px rgba(20, 27, 22, 0.14);
  --radius: 6px;

  --font-ui: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Themes follow GitHub's appearance settings. The light palette above is the base;
   index.html / app.js set data-theme on <html>, resolving "system" to light or dark. */
:root[data-theme^="dark"] {
  --bg: #0b0f0c;
  --panel: #131814;
  --panel-soft: #1b211c;
  --line: #262e28;
  --line-strong: #3a453c;
  --text: #e7efe7;
  --muted: #a3b0a4;
  --quiet: #78857c;

  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.11);
  --on-accent: #06140e;
  --good: #3fb950;
  --bad: #f85149;
  --warn: #e3a03a;
  --todo: #b392f0;
  --running: #58a6ff;
  --merged: #a371f7;
  --follow: #f28dc4;
  --focus: #93c5fd;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Soft dark, after GitHub's "Dark dimmed". */
:root[data-theme="dark-dimmed"] {
  --bg: #1c2128;
  --panel: #22272e;
  --panel-soft: #2d333b;
  --line: #373e47;
  --line-strong: #444c56;
  --text: #adbac7;
  --muted: #909dab;
  --quiet: #768390;

  --accent: #57ab5a;
  --accent-soft: rgba(87, 171, 90, 0.15);
  --on-accent: #1c2128;
  --good: #57ab5a;
  --bad: #e5534b;
  --warn: #c69026;
  --todo: #b083f0;
  --running: #539bf5;
  --merged: #986ee2;
  --follow: #e275ad;
  --focus: #6cb6ff;
  --shadow: 0 16px 40px rgba(28, 33, 40, 0.8);
}

:root[data-theme="dark-high-contrast"] {
  --bg: #010409;
  --panel: #0a0c10;
  --panel-soft: #161b22;
  --line: #7a828e;
  --line-strong: #9ea7b3;
  --text: #f0f3f6;
  --muted: #d1d7e0;
  --quiet: #b7bdc8;

  --accent: #26cd4d;
  --accent-soft: rgba(38, 205, 77, 0.18);
  --on-accent: #010409;
  --good: #26cd4d;
  --bad: #ff6a69;
  --warn: #f0b72f;
  --todo: #cb9eff;
  --running: #71b7ff;
  --merged: #cb9eff;
  --follow: #ff9bce;
  --focus: #409eff;
}

/* Protanopia & deuteranopia: success is blue, failure is orange. */
:root[data-theme="dark-colorblind"] {
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, 0.13);
  --good: #58a6ff;
  --bad: #f0883e;
  --running: #d2a8ff;
  --merged: #a371f7;
  --focus: #79c0ff;
}

/* Tritanopia: success is blue, failure stays red. */
:root[data-theme="dark-tritanopia"] {
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, 0.13);
  --good: #58a6ff;
  --bad: #f85149;
  --warn: #f0883e;
  --running: #d2a8ff;
  --focus: #79c0ff;
}

:root[data-theme="light-high-contrast"] {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #e7ecf0;
  --line: #20252c;
  --line-strong: #20252c;
  --text: #0e1116;
  --muted: #0e1116;
  --quiet: #3d434b;

  --accent: #055d20;
  --accent-soft: rgba(5, 93, 32, 0.12);
  --good: #055d20;
  --bad: #a0111f;
  --warn: #744500;
  --todo: #512598;
  --running: #0349b4;
  --merged: #622cbc;
  --follow: #8a0f53;
  --focus: #0349b4;
}

:root[data-theme="light-colorblind"] {
  --accent: #0969da;
  --accent-soft: rgba(9, 105, 218, 0.1);
  --good: #0969da;
  --bad: #bc4c00;
  --running: #8250df;
  --merged: #6639ba;
  --focus: #0550ae;
}

:root[data-theme="light-tritanopia"] {
  --accent: #0969da;
  --accent-soft: rgba(9, 105, 218, 0.1);
  --good: #0969da;
  --bad: #cf222e;
  --warn: #bc4c00;
  --running: #8250df;
  --focus: #0550ae;
}

/* ── base ─────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
}

a { color: inherit; }
h2, h3, h4, p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.92em; padding: 1px 4px; background: var(--panel-soft); border-radius: 3px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.t-good { color: var(--good); }
.t-bad, .t-fail { color: var(--bad); }
.t-warn { color: var(--warn); }
.t-todo { color: var(--todo); }
.t-running { color: var(--running); }
.t-quiet { color: var(--quiet); }
.spacer { flex: 1; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--accent); background: var(--panel-soft); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.big { padding: 8px 16px; font-size: 14px; }

.link-btn {
  padding: 2px 4px;
  font: inherit;
  font-size: 12.5px;
  color: var(--quiet);
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.link-btn:hover { color: var(--text); background: var(--panel-soft); }

.icon-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 17px;
  line-height: 1;
  color: var(--quiet);
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
}
.icon-btn:hover { color: var(--bad); background: var(--panel-soft); }
.icon-btn:focus-visible, .row.cursor .icon-btn { opacity: 1; }

input[type="text"], input[type="search"], input[type="password"], select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 6px 9px;
}

/* ── shell ────────────────────────────────────────────────────────────── */

.app-shell, .shell { height: 100%; }
.shell { display: grid; grid-template-rows: auto minmax(0, 1fr); }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 9px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.brand.large { font-size: 26px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.chips, .tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.chips { flex-wrap: nowrap; }
.chip-btn { white-space: nowrap; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}
.chip-btn:hover { color: var(--text); background: var(--panel-soft); }
.chip-btn.active { color: var(--text); font-weight: 600; border-color: var(--line-strong); background: var(--panel-soft); }
.count { font-size: 12px; color: var(--quiet); }
.f-failing .count { color: var(--bad); }
.f-running .count { color: var(--running); }
.f-green .count { color: var(--good); }

.filter { width: 190px; padding: 4px 9px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme-select { width: auto; padding-right: 6px; }
.sync { font-size: 12px; color: var(--quiet); white-space: nowrap; }
.sync.busy { color: var(--accent); }
.sync.warn { color: var(--warn); }

.main { display: grid; grid-template-columns: var(--board-w, 520px) 7px minmax(0, 1fr); min-height: 0; }
.board { overflow-y: auto; padding: 16px 14px 90px 18px; container: board / inline-size; }
.detail { overflow-y: auto; padding: 20px 24px; background: var(--panel); container: detail / inline-size; }
.divider { cursor: col-resize; background: var(--line); border-inline: 3px solid var(--bg); background-clip: padding-box; touch-action: none; }
.divider:hover, .divider.dragging { background-color: var(--accent); }

/* ── board ────────────────────────────────────────────────────────────── */

.group { margin-bottom: 22px; border-radius: var(--radius); }
.group.drop { outline: 2px dashed var(--accent); outline-offset: 4px; }
.group-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 6px; white-space: nowrap; }
.group-toggle { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.group-sum { min-width: 0; overflow: hidden; }
.group-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
}
.caret { color: var(--quiet); width: 12px; }
.group-count { font-size: 12.5px; color: var(--quiet); }
.group-sum { display: flex; gap: 12px; font-size: 12.5px; }
.group-empty { padding: 14px; font-size: 13px; color: var(--quiet); }
.new-group { margin-top: -6px; }

.rows { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }

.row {
  --tone: var(--line-strong);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px 210px;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--tone);
  cursor: pointer;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--panel-soft); }
.row:hover .icon-btn { opacity: 1; }
.row.cursor { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.row.drop-before { box-shadow: inset 0 3px 0 var(--accent); }
.row.tone-done { opacity: 0.6; }

.tone-bad { --tone: var(--bad); }
.tone-warn { --tone: var(--warn); }
.tone-todo { --tone: var(--todo); }
.tone-running { --tone: var(--running); }
.tone-good { --tone: var(--good); }
.tone-done { --tone: var(--merged); }
.tone-neutral { --tone: var(--line-strong); }

.row-main { min-width: 0; }
.row-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row.changed .title-text { font-weight: 700; }
.new-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--focus); flex-shrink: 0; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.num { font-family: var(--font-mono); font-size: 12px; text-decoration: none; }
a.num:hover { text-decoration: underline; color: var(--text); }

.row-status { min-width: 0; }
.verdict { font-weight: 600; color: var(--tone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; min-height: 18px; min-width: 0; }
.ci-line > span + span:not(.bar)::before { content: "· "; color: var(--quiet); }
.ci-line > .bar + span:not(.bar)::before { content: none; }
.bar { display: flex; flex: 0 0 60px; height: 7px; border-radius: 4px; overflow: hidden; background: var(--line); }
.seg.pass { background: var(--good); }
.seg.fail { background: var(--bad); }
.seg.pending { background: var(--running); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.badge { font-size: 11.5px; font-weight: 500; padding: 0 7px; border-radius: 999px; border: 1px solid currentColor; flex-shrink: 0; }
.badge.merged { color: var(--merged); }
.badge.closed { color: var(--bad); }
.badge.draft { color: var(--quiet); }

.tag {
  --c: #888888;
  font-size: 12px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--c) 55%, var(--line-strong));
  background: color-mix(in srgb, var(--c) 16%, transparent);
  white-space: nowrap;
}

.empty { max-width: 480px; margin: 14vh auto; text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 20px; }

/* ── detail ───────────────────────────────────────────────────────────── */

.detail-empty { color: var(--muted); display: grid; gap: 10px; justify-items: start; }
.detail-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.detail-meta a { font-family: var(--font-mono); }
.detail-head h2 { font-size: 18px; line-height: 1.3; margin: 4px 0; }

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--tone) 45%, var(--line));
  border-left: 4px solid var(--tone);
  background: color-mix(in srgb, var(--tone) 8%, transparent);
}
.banner .verdict { font-size: 15px; white-space: normal; }
.banner-why { margin-top: 2px; font-size: 13px; color: var(--muted); }

.detail > * { max-width: 1500px; }
.detail-head { display: flow-root; }
.detail-tools { float: right; margin: 0 0 8px 16px; }
.panel.comments { border-bottom: 0; }
.comment-list { display: grid; gap: 6px; }
.detail-body { display: grid; gap: 0 32px; }
.detail-col { min-width: 0; }
.panel { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.panel h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--quiet); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel .ci-line { font-size: 13px; }
.panel .bar { flex-basis: 110px; }

.jobs { display: grid; gap: 1px; margin-top: 4px; }
.jobs h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.jobs.bad h4 { color: var(--bad); }
.jobs.running h4 { color: var(--running); }
.jobs.quiet h4 { color: var(--muted); }
.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 8px;
  margin: 0 -8px;
  text-decoration: none;
  border-radius: 4px;
}
.job:hover { background: var(--panel-soft); }
.job-name { font-family: var(--font-mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-evidence { display: flex; gap: 5px; flex-shrink: 0; }
.ev { font-size: 11.5px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }

.label-wrap { display: flex; flex-wrap: wrap; gap: 5px; }

.comment { display: grid; align-content: start; gap: 1px; padding: 6px 8px; margin: 0 -8px; text-decoration: none; border-radius: 4px; }
.comment:hover { background: var(--panel-soft); }
.comment-head { font-size: 12px; color: var(--quiet); }
.comment-body { font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }

/* The list is usually the narrow side. Below full width the next-step button
   lives only in the detail pane, and the × sits in the row's corner. */
@container board (max-width: 1000px) {
  .row { grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; padding-right: 30px; position: relative; }
  .row-actions { position: absolute; top: 6px; right: 4px; }
  .row-actions .btn { display: none; }
}
@container board (max-width: 680px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 9px 30px 9px 12px; }
  .row .title-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row-title { align-items: flex-start; }
  .row-status { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .group-sum { display: none; }
  .group-head .link-btn + .link-btn { display: none; }
  .group-head:hover .link-btn + .link-btn { display: inline; }
}

@container detail (min-width: 820px) {
  .detail-body { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); align-items: start; }
}

/* AI review panel */
.review-source { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.review-verdict { font-weight: 600; }
.review-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
}

/* ── overlays ─────────────────────────────────────────────────────────── */

.undo-bar, .toasts { position: fixed; left: 50%; transform: translateX(-50%); z-index: 50; }
.undo-bar {
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 16px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.toasts { bottom: 78px; display: grid; gap: 6px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 7px 14px; font-size: 13px; background: var(--text); color: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); pointer-events: auto; }
.toast.error { background: #b3261e; color: #fff; }
.toast.ok { background: #17692f; color: #fff; }
.toast-btn { font: inherit; font-weight: 600; color: inherit; background: none; border: 1px solid currentColor; border-radius: 4px; padding: 1px 9px; cursor: pointer; }

.scrim { position: fixed; inset: 0; z-index: 40; display: grid; place-items: start center; padding-top: 10vh; background: rgba(0, 0, 0, 0.42); }
.modal {
  width: min(820px, 94vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.modal.small { width: min(480px, 94vw); }
.modal h2 { font-size: 16px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sources-input { width: 100%; font-family: var(--font-mono); font-size: 12px; resize: vertical; }

/* Full AI review report: Markdown rendered by GitHub */
.modal.report { width: min(1100px, 96vw); height: 90vh; max-height: none; overflow: hidden; }
.report-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.report-facts { display: grid; gap: 2px; justify-items: end; }
.report-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 4px 0; line-height: 1.6; border-block: 1px solid var(--line); }
.report-body > :first-child { margin-top: 12px; }
.report-body h1, .report-body h2, .report-body h3, .report-body h4 { margin: 1.4em 0 0.5em; line-height: 1.3; }
.report-body h1 { font-size: 21px; }
.report-body h2 { font-size: 18px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.report-body h3 { font-size: 15.5px; }
.report-body h4 { font-size: 14px; }
.report-body p, .report-body ul, .report-body ol, .report-body blockquote, .report-body pre,
.report-body table, .report-body markdown-accessiblity-table { margin: 0 0 12px; }
.report-body ul, .report-body ol { padding-left: 24px; }
.report-body li + li { margin-top: 3px; }
.report-body a { color: var(--running); }
.report-body hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.report-body blockquote { padding: 2px 12px; color: var(--muted); border-left: 3px solid var(--line-strong); }
.report-body markdown-accessiblity-table { display: block; overflow-x: auto; }
.report-body table { border-collapse: collapse; font-size: 13px; }
.report-body th, .report-body td { padding: 5px 10px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.report-body th { background: var(--panel-soft); font-weight: 600; }
.report-body pre { padding: 10px 12px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; background: var(--panel-soft); border-radius: var(--radius); }
.report-body pre code { padding: 0; background: none; font-size: inherit; }
.report-body img { max-width: 100%; }
.report-body .mermaid-figure { margin: 0 0 12px; overflow-x: auto; text-align: center; }
.report-body .mermaid-figure svg { max-width: 100%; height: auto; }
/* GitHub's syntax-highlighting classes, mapped onto the theme */
.report-body .pl-c { color: var(--quiet); font-style: italic; }
.report-body .pl-k, .report-body .pl-smi { color: var(--bad); }
.report-body .pl-s, .report-body .pl-pds, .report-body .pl-sr { color: var(--running); }
.report-body .pl-en, .report-body .pl-e, .report-body .pl-ent { color: var(--merged); }
.report-body .pl-c1, .report-body .pl-v, .report-body .pl-mi1 { color: var(--accent); }
.report-body .pl-md { color: var(--bad); }

.picker-input { width: 100%; padding: 9px 11px; font-size: 15px; }
.picker-list { min-height: 140px; max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.picker-item { padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.picker-item:last-child { border-bottom: 0; }
.picker-item:hover { background: var(--panel-soft); }
.picker-item.active { background: var(--accent-soft); }
.picker-empty { padding: 16px 12px; }
.result { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.result .title-text { flex: 1; }
.result .author, .result .age { font-size: 12.5px; color: var(--quiet); }
.author.followed, .result .author.followed { color: var(--follow); font-weight: 600; }
.result.pinned .title-text { color: var(--muted); }
.pin-mark { min-width: 76px; text-align: center; font-size: 12.5px; font-weight: 500; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.pin-mark.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.check { width: 14px; color: var(--accent); font-weight: 700; }
.rollup { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.rollup.success { background: var(--good); }
.rollup.failure, .rollup.error { background: var(--bad); }
.rollup.pending, .rollup.expected { background: var(--running); }

.help { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; font-size: 13px; }
.help-keys { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }

/* ── auth ─────────────────────────────────────────────────────────────── */

.auth { max-width: 480px; margin: 12vh auto 0; padding: 0 18px; display: grid; gap: 10px; }
.auth-sub { color: var(--muted); margin-bottom: 8px; }
.auth label { font-size: 13px; color: var(--muted); }
.auth .btn { justify-self: start; padding: 7px 16px; }

/* ── narrow ───────────────────────────────────────────────────────────── */

@media (max-width: 1250px) {
  .sync { display: none; }
}

/* No room for the detail pane: the list is the whole app, so rows keep their buttons. */
@media (max-width: 760px) {
  .main { grid-template-columns: minmax(0, 1fr); }
  .divider, .detail { display: none; }
  .row .row-actions { position: static; display: flex; }
  .row .row-actions .btn { display: inline-flex; }
}
