/* Half-Life · Board view (v2, shadcn look). Uses theme.css tokens; every class here is prefixed .board-*.
   Neutral greys everywhere; colour only carries stage or status. */

/* ---------- stage colour plumbing: any [data-stage] inside the board or drawer gets --board-st ---------- */
.board [data-stage], .board-dr, .board-dr [data-stage] { --board-st: var(--stage-watch, #a1a1aa); }
.board [data-stage="notice"], .board-dr[data-stage="notice"], .board-dr [data-stage="notice"] { --board-st: var(--stage-notice, #3b82f6); }
.board [data-stage="assign"], .board-dr[data-stage="assign"], .board-dr [data-stage="assign"] { --board-st: var(--stage-assign, #6366f1); }
.board [data-stage="nudge"], .board-dr[data-stage="nudge"], .board-dr [data-stage="nudge"] { --board-st: var(--stage-nudge, #d97706); }
.board [data-stage="escalate"], .board-dr[data-stage="escalate"], .board-dr [data-stage="escalate"] { --board-st: var(--stage-escalate, #ea580c); }
.board [data-stage="page"], .board-dr[data-stage="page"], .board-dr [data-stage="page"] { --board-st: var(--stage-page, #dc2626); }
.board [data-stage="breach"], .board-dr[data-stage="breach"], .board-dr [data-stage="breach"] { --board-st: var(--stage-breach, #991b1b); }

.board-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.board-ico { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.board-ico-xs { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; }
.board-sk-line { display: block; border-radius: var(--radius-sm, 6px); }
/* no `display` here on purpose: theme.css .logo-light/.logo-dark decide which GitHub mark shows */
.board-logo { flex: none; vertical-align: -2px; object-fit: contain; }
.board-src { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.board-muted { color: var(--text-2); }
.board-warn-t { color: var(--warn); }
.board-spin, .board-is-spinning .board-ico { animation: board-spin 1s linear infinite; }
@keyframes board-spin { to { transform: rotate(360deg); } }

.board { display: flex; flex-direction: column; gap: var(--space-5, 20px); min-width: 0; }

/* ---------- page header ---------- */
.board .board-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3, 12px) var(--space-4, 16px); margin: 0; }
.board-pagehead-t { min-width: 0; flex: 1 1 320px; }
.board-pagehead h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.board .board-summary { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); max-width: 80ch; }
.board-headline { color: var(--text); font-weight: 500; }
.board-tone-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; background: var(--text-3); }
.board-summary[data-tone="fire"] .board-tone-dot { background: var(--danger); }
.board-summary[data-tone="warn"] .board-tone-dot { background: var(--warn); }
.board-summary[data-tone="calm"] .board-tone-dot { background: var(--ok); }
.board-link {
  font: inherit; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px;
}
.board-link:hover { text-decoration-color: currentColor; }
.board-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.board-head-actions { display: flex; align-items: center; gap: var(--space-2, 8px); margin-left: auto; }
.board-sweep { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.board-sweep .board-ico { width: 12px; height: 12px; }

/* ---------- stat cards ---------- */
.board-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3, 12px); margin: 0; }
.board-stat {
  min-width: 0; padding: var(--space-4, 16px) var(--space-5, 20px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-1, 0 1px 2px rgba(0,0,0,.05));
}
.board-stat dt { font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-stat dd { margin: 0; }
.board-stat-v {
  margin-top: 4px !important; font-family: var(--font-mono); font-size: 24px; line-height: 1.25; font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-stat-v.is-sans { font-family: var(--font-sans); letter-spacing: -0.01em; }
.board-stat[data-tone="danger"] .board-stat-v { color: var(--danger); }
.board-stat-sub { margin-top: 2px !important; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- horizon ruler ---------- */
.board-ruler-wrap { min-width: 0; }
.board-ruler-sk { height: 120px; border-radius: var(--radius-lg, 12px); }
.board-ruler {
  margin: 0; padding: var(--space-4, 16px) var(--space-5, 20px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-1, 0 1px 2px rgba(0,0,0,.05));
}
.board-ruler-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: var(--space-3, 12px); }
.board-ruler-title { font-size: 14px; font-weight: 600; color: var(--text); }
.board-ruler-desc { font-size: 13px; color: var(--text-2); }
.board-ruler-track { position: relative; height: 72px; border-bottom: 1px solid var(--border); }
.board-zone { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border); }
.board-zone:first-child { border-left: 0; }
.board-zone span {
  position: absolute; left: 8px; bottom: 4px; font-size: 12px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 12px);
}
.board-zone:first-child span { left: 0; }
.board-ruler-now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--text-3); }
.board-dot {
  position: absolute; left: 0; bottom: calc(24px + var(--lvl, 0) * 10px);
  width: 8px; height: 8px; margin: 0; padding: 0; transform: translateX(-50%);
  border-radius: 50%; border: 2px solid var(--surface); background: var(--board-st); cursor: pointer;
  box-sizing: content-box; transition: transform .12s ease;
}
.board-dot[data-stage="page"], .board-dot[data-stage="breach"] { width: 10px; height: 10px; }
.board-dot[data-stage="watch"] { width: 6px; height: 6px; }
.board-dot.is-snoozed { background: var(--surface); box-shadow: inset 0 0 0 2px var(--board-st); }
.board-dot:hover { transform: translateX(-50%) scale(1.3); z-index: 2; }
.board-dot:focus-visible { outline: 2px solid var(--text-3); outline-offset: 2px; z-index: 2; }

/* ---------- toolbar ---------- */
.board-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2, 8px) var(--space-3, 12px); }
.board-search { position: relative; display: block; flex: 1 1 240px; min-width: 180px; max-width: 320px; }
.board-search > .board-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.board-search .input { width: 100%; padding-left: 34px; padding-right: 34px; }
.board-kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--text-2);
  padding: 3px 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; pointer-events: none;
}
.board-search .input:focus ~ .board-kbd, .board-search .input:not(:placeholder-shown) ~ .board-kbd { display: none; }
.board-groupby { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.board-groupby-l { font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.board-groupby .select { width: auto; min-width: 116px; }
/* object filter sits before group-by; together they hug the right edge */
.board-objectby + .board-groupby { margin-left: 0; }
.board-objectby .select { min-width: 150px; max-width: 260px; }

/* ---------- object header (a single repo / site / API host / register category) ---------- */
.board-objwrap { min-width: 0; }
.board-objhead {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3, 12px) var(--space-4, 16px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-1, 0 1px 2px rgba(0,0,0,.05));
}
.board-objhead-ico {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius, 8px); color: var(--text-2); background: var(--surface);
}
.board-objhead-ico .board-ico { width: 18px; height: 18px; }
.board-objhead-main { min-width: 0; flex: 1 1 180px; }
.board-objhead-kind { margin: 0; font-size: 12px; color: var(--text-2); }
.board-objhead-t { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.board-objhead-t:focus { outline: none; }
.board-objhead-t:focus-visible { outline: 2px solid var(--text-3); outline-offset: 3px; border-radius: 4px; }
.board-objhead-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--text-2); }
.board-objhead-n .mono { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.board-objhead-n.is-danger, .board-objhead-n.is-danger .mono { color: var(--danger); }
.board-objhead-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.board-objhead-act .btn .board-logo { width: 16px; height: 16px; }

/* ---------- object chips (row meta, drawer "Belongs to") ---------- */
.board-objs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.board-obj {
  position: relative; z-index: 1;   /* above the row-wide .board-open hit area */
  display: inline-flex; align-items: center; gap: 4px; max-width: 220px; height: 20px; padding: 0 6px; margin: 0;
  font: inherit; font-family: var(--font-mono); font-size: 12px; line-height: 1; color: var(--text-2); cursor: pointer;
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-sm, 6px);
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.board-obj:hover { color: var(--text); border-color: var(--border-strong); }
.board-obj:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); border-color: var(--text-3); }
.board-obj.is-on { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.board-obj-ico { width: 12px !important; height: 12px !important; color: var(--text-3); }
.board-obj-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-obj-more { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); padding: 0 2px; }
.board-dr .board-obj { max-width: 100%; }

/* object group headers are buttons that select the object */
.board-group-obj {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 2px 4px; margin: 0 -4px;
  font: inherit; color: inherit; background: none; border: 0; border-radius: 4px; cursor: pointer;
}
.board-group-obj:hover .board-group-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.board-group-obj:focus-visible { outline: 2px solid var(--text-3); outline-offset: 1px; }
.board-group-ico { display: inline-flex; flex: none; color: var(--text-2); }
.board-group-ico .board-ico { width: 14px; height: 14px; }
.board-group-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

.board-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; }
.board-chips:empty { display: none; }
.board-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  font: inherit; font-size: 12px; font-weight: 500; color: var(--text-2); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm, 6px);
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.board-chip:hover { background: var(--hover, var(--surface-2)); color: var(--text); }
.board-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); border-color: var(--text-3); }
.board-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--board-st); flex: none; }
.board-chip-check { width: 12px; height: 12px; color: var(--board-st); }
.board-chip-n { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.board-chip.is-on { color: var(--text); background: var(--hover, var(--surface-2)); border-color: var(--border-strong); }
.board-chip-clear .board-ico { width: 14px; height: 14px; }

/* ---------- data table ---------- */
.board-body { min-width: 0; }
.board-count { margin: 0 0 var(--space-2, 8px); font-size: 13px; color: var(--text-2); }
.board-table {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-1, 0 1px 2px rgba(0,0,0,.05)); overflow: hidden;
}
.board-thead, .board-row {
  display: grid; align-items: center; column-gap: var(--space-4, 16px);
  grid-template-columns: 64px 112px minmax(0, 1fr) minmax(0, 170px) 88px minmax(0, 150px);
  grid-template-areas: "days stage main owner blast proof";
  padding: 0 var(--space-4, 16px);
}
.board-thead { height: 40px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.board-thead > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-th-days { grid-area: days; text-align: right; }
.board-th-stage { grid-area: stage; }
.board-th-main { grid-area: main; }
.board-th-owner { grid-area: owner; }
.board-th-blast { grid-area: blast; }
.board-th-proof { grid-area: proof; text-align: right; }

.board-group {
  display: flex; align-items: center; gap: 8px; height: 36px; margin: 0; padding: 0 var(--space-4, 16px);
  font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--surface-2); border-top: 1px solid var(--border);
}
.board-group-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--board-st); flex: none; }
.board-group-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; }
.board-group-n { font-weight: 400; font-size: 12px; color: var(--text-2); }

.board-list { list-style: none; margin: 0; padding: 0; }
.board-row {
  position: relative; min-height: 56px; padding-top: 10px; padding-bottom: 10px;
  border-top: 1px solid var(--border); cursor: pointer; transition: background-color .12s ease;
}
.board-row:hover { background: var(--hover, var(--surface-2)); }
.board-row.is-selected { background: var(--hover, var(--surface-2)); box-shadow: inset 2px 0 0 var(--text); }
.board-row.is-snoozed .board-main, .board-row.is-closed .board-main { opacity: .75; }

.board-days {
  grid-area: days; justify-self: end; font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap;
}
.board-row[data-stage="page"] .board-days,
.board-row[data-stage="breach"] .board-days { color: var(--board-st); font-weight: 600; }
.board-row.is-closed .board-days { color: var(--text-3); font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; }
.board-stagecell { grid-area: stage; min-width: 0; }

.board-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.board-titleline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.board-type { display: inline-flex; flex: none; color: var(--text-3); }
.board-type .board-ico { width: 16px; height: 16px; }
.board-open {
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text); text-align: left;
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; min-width: 0; flex: 0 1 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* the title button's hit area covers the whole row */
.board-open::after { content: ""; position: absolute; inset: 0; }
.board-open:focus { outline: none; }
.board-open:focus-visible::after { box-shadow: inset 0 0 0 2px var(--text-3), inset 0 0 0 5px var(--focus-ring); }
.board-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; padding-left: 24px;
  font-size: 13px; color: var(--text-2);
}
.board-meta-sep { color: var(--text-3); }
.board-note { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-sev { text-transform: capitalize; }
.board-meta .board-sev[data-sev="critical"], .board-meta .board-sev[data-sev="high"] { color: var(--text); font-weight: 500; }

.board-badge { flex: none; gap: 6px; white-space: nowrap; }
.board-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }
.board-badge[data-status="progress"] .board-badge-dot { background: var(--stage-notice, #3b82f6); }
.board-badge[data-status="ok"] .board-badge-dot { background: var(--ok); }
.board-badge[data-status="risk"] .board-badge-dot { background: var(--danger); }

.board-ownercell { grid-area: owner; min-width: 0; }
.board-owner { display: block; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-owner.is-none { color: var(--warn); }

.board-blastcell { grid-area: blast; }
.board-blast { font-size: 13px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.board-blast.is-hot { color: var(--text); font-weight: 500; }
.board-blast.is-none { color: var(--text-3); }

.board-proofcell { grid-area: proof; min-width: 0; justify-self: end; max-width: 100%; }
.board-proof {
  position: relative; z-index: 1; display: inline-flex; align-items: center; max-width: 100%;
  font-size: 13px; color: var(--text-2); text-decoration: none; white-space: nowrap; padding: 2px 0;
}
.board-proof-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.board-proof.is-none { color: var(--text-3); }
a.board-proof:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a.board-proof:focus-visible { outline: 2px solid var(--text-3); outline-offset: 2px; border-radius: 4px; }

.board-row-sk { cursor: default; }
.board-row-sk:hover { background: none; }

/* ---------- empty / error / onboarding ---------- */
.board .board-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: var(--space-7, 32px) var(--space-5, 20px); border: 1px dashed var(--border); border-radius: var(--radius-lg, 12px); background: transparent;
}
.board-empty-ico {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-2, 8px);
  border: 1px solid var(--border); border-radius: var(--radius, 8px); color: var(--text-2); background: var(--surface);
}
.board-empty-ico .board-ico { width: 20px; height: 20px; }
.board-empty h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.board-empty p { margin: 0; max-width: 48ch; font-size: 14px; color: var(--text-2); }
.board-empty .cluster { margin-top: var(--space-3, 12px); justify-content: center; }

.board-error {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3, 12px); padding: var(--space-4, 16px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px);
}
.board-error > .board-ico { color: var(--danger); margin-top: 2px; }
.board-error > div { flex: 1 1 200px; min-width: 0; }
.board-error p { margin: 0; overflow-wrap: anywhere; }
.board-error-title { font-size: 14px; font-weight: 600; color: var(--text); }
.board-error-msg { margin-top: 2px !important; font-size: 13px; color: var(--text-2); }

.board-onboard { padding: var(--space-6, 24px); max-width: 720px; }
.board-onboard-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.board-onboard-head p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.board-steps { list-style: none; margin: var(--space-5, 20px) 0 0; padding: 0; }
.board-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-4, 16px); padding-bottom: var(--space-6, 24px); }
.board-step:last-child { padding-bottom: 0; }
/* thin connector between the numbered circles */
.board-step:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--border); }
.board-step-n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums;
}
.board-step-b h4 { margin: 4px 0 2px; font-size: 14px; font-weight: 600; color: var(--text); }
.board-step-b p { margin: 0 0 var(--space-3, 12px); font-size: 14px; line-height: 1.5; color: var(--text-2); max-width: 60ch; }
.board-step-b .cluster { display: flex; flex-wrap: wrap; gap: var(--space-2, 8px); }
.board-step-b .btn .board-logo { width: 16px; height: 16px; }

/* ---------- drawer (Sheet content) ---------- */
.board-dr { display: flex; flex-direction: column; min-height: 100%; color: var(--text); font-size: 14px; }
.board-dr[aria-busy="true"] { cursor: progress; }
.board-dr-head { padding: 0 0 var(--space-5, 20px); border-bottom: 1px solid var(--border); }
.board-dr-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; color: var(--text-2); }
.board-dr-type { display: inline-flex; align-items: center; gap: 6px; }
.board-dr-type .board-ico { width: 14px; height: 14px; }
.board-dr-title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.board-dr-title:focus { outline: none; }
.board-dr-title:focus-visible { outline: 2px solid var(--text-3); outline-offset: 3px; border-radius: 4px; }
.board-dr-desc { margin: 4px 0 0; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.board-dr-desc .mono { font-size: 13px; }
.board-dr-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: var(--space-3, 12px); }
.board-dr-pills .board-sev { text-transform: none; }
.board-dr-count { display: flex; align-items: baseline; gap: 8px; margin-top: var(--space-4, 16px); }
.board-dr-big { font-family: var(--font-mono); font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.board-dr[data-stage="page"] .board-dr-big, .board-dr[data-stage="breach"] .board-dr-big { color: var(--board-st); }
.board-dr-bigl { font-size: 13px; color: var(--text-2); }

.board-dr-sec { padding: var(--space-5, 20px) 0; border-bottom: 1px solid var(--border); }
.board-dr-sec:last-child { border-bottom: 0; }
.board-dr-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 var(--space-3, 12px); font-size: 14px; font-weight: 600; color: var(--text); }
.board-dr-h-aux { font-size: 13px; font-weight: 400; color: var(--text-2); }
.board-dr-p { margin: 0 0 var(--space-3, 12px); line-height: 1.5; }
.board-dr-p:last-child { margin-bottom: 0; }
.board-dr-fix { color: var(--text); }
.board-a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.board-a:hover { text-decoration-color: currentColor; }
.board-a:focus-visible { outline: 2px solid var(--text-3); outline-offset: 2px; border-radius: 4px; }

.board-dr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.board-dr-actions .btn-danger { margin-left: auto; }
.board-dr-form {
  display: grid; gap: var(--space-4, 16px); margin-top: var(--space-4, 16px); padding: var(--space-4, 16px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 8px);
}
.board-dr-form .field { display: grid; gap: 8px; margin: 0; }
.board-dr-form label { font-size: 14px; font-weight: 500; color: var(--text); }
.board-dr-form .hint { margin: 0; font-size: 13px; color: var(--text-2); }
.board-dr-form .input, .board-dr-form .textarea { width: 100%; }
.board-dr-formact { display: flex; flex-wrap: wrap; gap: 8px; }
.board-form-err { margin: 0; font-size: 13px; color: var(--danger); }
.board-is-pending { opacity: .6; cursor: progress; }

.board-kv { align-items: baseline; }
.board-kv .stage-pill { vertical-align: middle; }
.board-dr-meta { margin-top: var(--space-4, 16px); font-size: 13px; }
.board-dr-meta summary { cursor: pointer; color: var(--text-2); width: max-content; }
.board-dr-meta summary:hover { color: var(--text); }
.board-dr-meta summary:focus-visible { outline: 2px solid var(--text-3); outline-offset: 2px; border-radius: 4px; }
.board-dr-meta .kv { margin-top: var(--space-3, 12px); }

.board-deps { list-style: none; margin: 0; padding: 0; }
.board-dep { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); }
.board-dep:first-child { border-top: 0; padding-top: 0; }
.board-dep-mark { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text-3); box-sizing: border-box; align-self: center; }
.board-dep.is-reach .board-dep-mark { background: var(--text); border-color: var(--text); }
.board-dep-name { font-size: 13px; overflow-wrap: anywhere; }
.board-dep-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-2); }
.board-dep.is-reach .board-dep-meta > span:last-child { color: var(--text); font-weight: 500; }

.board-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.board-tl::before { content: ""; position: absolute; left: 3.5px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.board-tl-i {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline;
  padding: 0 0 var(--space-4, 16px) 20px;
}
.board-tl-i:last-child { padding-bottom: 0; }
.board-tl-dot {
  position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box;
  background: var(--board-st, var(--text-3)); box-shadow: 0 0 0 3px var(--surface);
}
.board-tl-i[data-kind="act"] .board-tl-dot { background: var(--surface); border: 2px solid var(--text-2); }
.board-tl-i time { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.board-tl-t { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; min-width: 0; }
.board-tl-strong { font-weight: 500; }
.board-tl-t .stage-pill { vertical-align: 1px; }
.board-tl-t .board-src { vertical-align: bottom; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .board-thead, .board-row {
    grid-template-columns: 60px 108px minmax(0, 1fr) minmax(0, 150px) 72px;
    grid-template-areas: "days stage main owner blast";
  }
  .board-proofcell, .board-th-proof { display: none; }
}
@media (max-width: 860px) {
  .board-thead { display: none; }
  .board-row {
    grid-template-columns: 52px auto minmax(0, 1fr) auto;
    grid-template-areas:
      "days main  main  main"
      ".    stage owner blast";
    row-gap: 8px; column-gap: 12px; padding: 12px;
  }
  .board-days { align-self: start; padding-top: 1px; }
  .board-open { white-space: normal; }
  .board-meta { padding-left: 0; }
  .board-titleline { align-items: flex-start; }
  .board-type { margin-top: 2px; }
  .board-group { padding: 0 12px; }
  .board-search { max-width: none; flex-basis: 100%; }
  .board-groupby { margin-left: 0; }
}
@media (max-width: 640px) {
  .board-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2, 8px); }
  .board-stat { padding: var(--space-3, 12px) var(--space-4, 16px); }
  .board-stat-v { font-size: 20px; }
  .board-ruler { padding: var(--space-3, 12px) var(--space-4, 16px); }
  .board-zone span { font-size: 11px; left: 4px; }
  .board-zone[data-zone="later"] span { display: none; }
  .board-toolbar .segmented { flex: 1 1 auto; display: flex; min-width: 0; }
  .board-toolbar .segmented > button { flex: 1 1 auto; min-width: 0; padding-left: 8px; padding-right: 8px; }
  .board-groupby { flex: 1 1 100%; }
  .board-groupby .select { flex: 1; }
  .board-objectby .select { max-width: none; }
  .board-objhead-act { margin-left: 0; flex-basis: 100%; }
  .board-onboard { padding: var(--space-5, 20px); }
  .board-dr-actions .btn { flex: 1 1 calc(50% - 4px); }
  .board-dr-actions .btn-danger { margin-left: 0; }
  .board-dr-big { font-size: 26px; }
  .board-tl-i { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .board-row { grid-template-columns: 48px auto minmax(0, 1fr) auto; column-gap: 10px; }
  .board-pagehead h1 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .board-spin, .board-is-spinning .board-ico { animation: none; }
  .board-dot, .board-row, .board-chip, .board-obj { transition: none; }
}
@media (forced-colors: active) {
  .board-dot, .board-chip-dot, .board-group-dot, .board-tl-dot, .board-tone-dot, .board-badge-dot { forced-color-adjust: none; }
  .board-open:focus-visible::after { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* migration test (AI model deadlines) */
.board-mig-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.board-mig-lbl { font-size: 13px; font-weight: 500; }
.board-mig-row { display: flex; gap: 8px; }
.board-mig-row .input { flex: 1; min-width: 0; }
.board-mig-hint { font-size: 12px; margin: 0; }
.board-mig-last { display: flex; flex-direction: column; gap: 8px; }
.board-mig-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.board-mig-rep summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
.board-mig-rep pre { margin: 8px 0 0; padding: 12px; font-size: 12px; line-height: 1.5; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow-x: auto; white-space: pre; }
@media (max-width: 480px) { .board-mig-row { flex-direction: column; } }

/* GitHub issues (vulnerable packages) */
.board-gh-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board-gh-i { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.board-gh-i a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-gh-i a:hover { text-decoration: underline; }
.board-gh-when { margin-left: auto; font-size: 12px; white-space: nowrap; }
.board-gh-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.board-gh-act .board-muted { font-size: 12px; }

.board-mig-pr { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* in-app PR editor */
.board-pr-editbtn { margin-left: 4px; }
.board-pr-ed { display: flex; flex-direction: column; gap: 8px; }
.board-pr-text { width: 100%; min-height: 240px; font-size: 12px; line-height: 1.5; resize: vertical; tab-size: 2; white-space: pre; }
.board-pr-ed-sub { margin: 8px 0 0; font-size: 12px; color: var(--text-2); }
