/* Same tokens as the One More Dev board artifact, so the two tools read as one system. */
:root {
  color-scheme: light;
  --bg: #EEF0EC; --surface: #FAFBF8; --sunk: #E4E8E2; --ink: #1B201D; --muted: #5B655F; --line: #D3D9D2;
  --accent: #9E5F16; --accent-ink: #FFFFFF; --accent-soft: #F4E4CB;
  --bad: #A63A2B; --bad-soft: #F5DDD7; --good: #2F6B47; --good-soft: #D9ECDF; --idle: #8A948E;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121513; --surface: #1A1E1B; --sunk: #0E110F; --ink: #E4E8E3; --muted: #98A29B; --line: #2B322D;
    --accent: #E3A24C; --accent-ink: #1A1206; --accent-soft: #3A2B16;
    --bad: #E57A68; --bad-soft: #3A1E19; --good: #7DC698; --good-soft: #1B3224; --idle: #6C766F;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121513; --surface: #1A1E1B; --sunk: #0E110F; --ink: #E4E8E3; --muted: #98A29B; --line: #2B322D;
  --accent: #E3A24C; --accent-ink: #1A1206; --accent-soft: #3A2B16;
  --bad: #E57A68; --bad-soft: #3A1E19; --good: #7DC698; --good-soft: #1B3224; --idle: #6C766F;
}

* { box-sizing: border-box; }

/* Must win over any element-specific `display` rule below (e.g. `#app { display: flex }`) so
   toggling the `hidden` attribute in JS actually hides things — an ID selector's `display: flex`
   otherwise beats the UA stylesheet's `[hidden] { display: none }` on specificity. */
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .01em; margin: 0; }
h1 { font-size: 2rem; line-height: 1.05; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
.eyebrow { font-family: var(--display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input, select, textarea {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}
textarea { width: 100%; resize: vertical; }

.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 7px 14px; font-weight: 600; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.bad { border-color: var(--bad); color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.error { color: var(--bad); margin: 0; font-size: .9rem; }
.status { color: var(--muted); margin: 0; font-size: .9rem; }
.hint { color: var(--muted); margin: 0; max-width: 75ch; }

/* --- Auth gate --- */
#auth-gate { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
#auth-form, #reset-password-form { display: flex; flex-direction: column; gap: 10px; width: min(300px, 100%); }
#auth-form h1, #reset-password-form h1 { margin-bottom: 8px; }

/* --- App shell --- */
#app { display: flex; flex-direction: column; gap: 16px; padding: 20px 16px 48px; }
header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.conn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .85rem; white-space: nowrap; background: var(--line); color: var(--muted); }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.conn[data-state="online"] { background: var(--good-soft); color: var(--good); }
.conn[data-state="online"] .conn-dot { background: var(--good); }
.conn[data-state="offline"], .conn[data-state="trouble"] { background: var(--bad-soft); color: var(--bad); }
.conn[data-state="offline"] .conn-dot, .conn[data-state="trouble"] .conn-dot { background: var(--bad); }

nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
nav button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 12px 7px; font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
nav button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
nav .n { display: inline-block; min-width: 1.4em; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--sunk); font-size: .85rem; text-align: center; }
nav .n.hot { background: var(--accent); color: var(--accent-ink); }

section { display: grid; gap: 14px; }
.stack { display: grid; gap: 10px; max-width: 860px; }

/* --- Board --- */
/* The lanes scroll sideways inside .board, never the page, so a phone gets a swipeable board
   rather than a page wider than the screen. */
.board {
  display: grid;
  grid-auto-flow: column;
  /* Wide enough to read a summary comfortably; the board scrolls sideways rather than squeezing
     six lanes into the window. On a phone a lane is one screen wide, less a peek at the next. */
  grid-auto-columns: minmax(min(360px, calc(100vw - 56px)), 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: start;
}
.lane {
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
  min-height: 160px;
  transition: border-color .15s, background .15s;
}
.lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px 6px; }
.lane-head h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.lane-head .count { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.lane-sub { padding: 0 12px 8px; font-size: .85rem; color: var(--muted); }
.cards { flex: 1 1 auto; overflow-y: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.lane .empty { padding: 14px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; font-size: .9rem; }

.lane.drop-ok { border-color: var(--accent); background: var(--accent-soft); }
.lane.drop-no { opacity: .55; }

/* --- Card --- */
.card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 8px; }
.bug-card { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bug-card:hover { border-color: var(--accent); }
.bug-card.sev-critical, .bug-card.sev-high { border-left-color: var(--bad); }
.bug-card.sev-medium { border-left-color: var(--accent); }
.bug-card.sev-low { border-left-color: var(--idle); }
.bug-card.dragging { opacity: .35; }
.drag-ghost { position: fixed; z-index: 50; pointer-events: none; transform: rotate(2deg); box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: .95; margin: 0; }

.meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.tag { font-family: var(--mono); font-size: .75rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--sunk); }
.pill { font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.pill.sev-critical, .pill.sev-high { background: var(--bad-soft); color: var(--bad); }
.pill.sev-medium { background: var(--accent-soft); color: var(--accent); }
.pill.fixing { background: var(--accent-soft); color: var(--accent); }
.pill.testing { background: var(--good-soft); color: var(--good); }
.pill.rejected { background: var(--bad-soft); color: var(--bad); text-transform: none; letter-spacing: .02em; }
.card-title { font-weight: 600; line-height: 1.3; }
.card-summary { color: var(--muted); font-size: .95rem; }
.card-summary.pending { font-style: italic; }
.simple { border: 1px dashed var(--accent); border-radius: 6px; padding: 6px 10px; font-size: .95rem; }
.simple .eyebrow { display: block; color: var(--accent); }
.card-stats { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-reporters { font-size: .85rem; }
.hunter-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.hunter-filter select { width: auto; min-width: 12rem; }
.card-reporters b { font-weight: 600; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sent { font-size: .85rem; color: var(--muted); }

.settings-card { max-width: 420px; }
.settings-card input { width: 100%; }
.features-card { max-width: 640px; }
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.feature-row.retired .feature-name { opacity: .6; }
.feature-row .muted { color: var(--muted); font-size: .9em; }

/* --- Modal --- */
dialog#issue-modal {
  width: min(820px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}
dialog#issue-modal::backdrop { background: rgba(0,0,0,0.55); }
.modal-close-form { display: flex; justify-content: flex-end; padding: 8px 8px 0; }
.modal-close-form .btn { padding: 2px 10px; }
#modal-content { padding: 4px 24px 24px; overflow-y: auto; max-height: calc(88vh - 44px); display: grid; gap: 10px; }
#modal-content h3 { margin-top: 8px; }
#field-title { font-size: 1.1rem; font-weight: 600; width: 100%; }
/* Issue window: header (id, labels, title, tabs) stays put while a tab scrolls under it. */
.issue-head { position: sticky; top: -4px; z-index: 2; background: var(--surface); display: grid; gap: 8px; padding-top: 4px; }
.issue-head-end { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.issue-head-end .btn { padding: 4px 12px; }
.issue-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.issue-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 6px 12px 5px; font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: .03em; color: var(--muted); white-space: nowrap; border-radius: 6px 6px 0 0; }
.issue-tabs button:hover { color: var(--ink); background: var(--sunk); }
.issue-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.issue-tabs .n { display: inline-block; min-width: 1.4em; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--sunk); font-size: .8rem; text-align: center; }
.issue-tabs .n.hot { background: var(--accent-soft); color: var(--accent); }
.issue-panel { display: grid; gap: 10px; align-content: start; min-height: 260px; }
.issue-group { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.issue-tile { text-align: left; cursor: pointer; flex: 1 1 110px; }
.issue-tile:hover { border-color: var(--accent); }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 12px; }
.field-grid label { display: grid; gap: 2px; font-size: .85rem; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; }

/* --- MYREP-D: close with a note / Send to hunters (app.js ask()) --- */
dialog#ask-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
dialog#ask-dialog::backdrop { background: rgba(0,0,0,0.55); }
.ask-form { display: grid; gap: 10px; padding: 18px 20px 20px; }
.ask-field { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.ask-field input, .ask-field select { width: 100%; color: var(--ink); }
.card-note { font-size: .88rem; overflow-wrap: anywhere; }
.card-note .eyebrow { margin-right: 4px; }
.card-note.none { color: var(--muted); font-style: italic; }
.check input { accent-color: var(--accent); }
.divider { border: none; border-top: 1px solid var(--line); margin: 6px 0; }

.report, .comment { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: .92rem; }
.report-meta, .comment-meta { color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
pre.log-block { white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow-y: auto; background: var(--sunk); padding: 8px; border-radius: 4px; font: .78rem/1.4 var(--mono); }

/* --- System info (SYS-2, SYSTEM_INFO_DESIGN §5): machine line, per-bug Machines breakdown, Board machine filters --- */
.hunter-filter select[data-axis] { min-width: 7rem; }
details.machine { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
details.machine summary { cursor: pointer; overflow-wrap: anywhere; }
details.machine summary .eyebrow { margin-right: 4px; }
.machines { display: grid; gap: 4px; }
.machine-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .85rem; }
.machine-row .eyebrow { min-width: 7.5rem; }

/* --- The Hunt (hunt.js; HUNT_DESIGN §9) --- */
.pill.hunt { background: var(--accent-soft); color: var(--accent); text-transform: none; letter-spacing: .02em; }
.pill.replay { background: var(--good-soft); color: var(--good); }
.pill.replay.draft { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.card-hunt { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-hunt .still { color: var(--bad); font-weight: 600; }

.replay-section { display: grid; gap: 10px; min-width: 0; }
.replay-section details > .stack { margin-top: 8px; }
.capture { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; display: grid; gap: 6px; font-size: .92rem; }
.step-row { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 8px 10px; display: grid; gap: 8px; min-width: 0; }
.step-row.warn { border-left-color: var(--bad); }
.step-warn { color: var(--bad); font-size: .85rem; }
.step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.step-head .spacer { flex: 1 1 auto; }
.step-head select { font-family: var(--mono); font-size: .85rem; padding: 4px 8px; max-width: 100%; }
.iconbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 2px 8px; font-size: .85rem; line-height: 1.4; }
.iconbtn:hover:not(:disabled) { border-color: var(--accent); }
.iconbtn:disabled { opacity: .4; cursor: default; }
.step-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 10px; }
.step-fields label { display: grid; gap: 2px; font: .78rem/1.3 var(--mono); color: var(--muted); min-width: 0; }
.step-fields label.wide { grid-column: 1 / -1; }
.step-fields input, .step-fields select, .step-fields textarea { width: 100%; min-width: 0; padding: 5px 8px; font: .9rem/1.4 var(--body); color: var(--ink); }
.step-row textarea { font: .8rem/1.4 var(--mono); width: 100%; }
.step-fields label.bad input, .step-fields label.bad textarea, .step-row .bad { border-color: var(--bad); }
.ferr:empty { display: none; }
#replay-steps-text { font-size: .95rem; }
/* TRAP-2: the plain-words summary above "Change it by hand". */
.replay-summary { display: grid; gap: 8px; min-width: 0; }
.replay-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pill.replay.proven { background: var(--accent-soft); color: var(--accent); }
.replay-plain { display: grid; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-width: 0; }
.replay-line { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 2px 10px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.replay-line ul, .replay-line ol, .replay-other { margin: 0; padding-left: 1.2em; }
.replay-nofit { color: var(--muted); }
.replay-editor > summary { margin-top: 4px; }
.replay-editor-body { display: grid; gap: 10px; margin-top: 10px; min-width: 0; }
@media (max-width: 520px) { .replay-line { grid-template-columns: 1fr; } }

.revoked { opacity: .6; }
.revoked .pts { text-decoration: line-through; }
.claim .tag.linkbtn { color: var(--accent); text-decoration: none; }
.claim details .eyebrow { margin-top: 6px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; font-size: .9rem; max-width: calc(100% - 32px); z-index: 60; }

@media (prefers-reduced-motion: no-preference) {
  .btn, nav button { transition: background .15s, border-color .15s, color .15s; }
}

/* --- The Chronicle (chronicle.js; PLAYTEST_DATA_DESIGN §B.6) --- */
.chron-section { display: grid; gap: 14px; min-width: 0; }
.stack.wide { max-width: 1100px; }
.hunter-row { text-align: left; width: 100%; font: inherit; color: inherit; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; border-left-color: var(--accent); }
.hunter-row:hover { border-color: var(--accent); }
.hunter-main { display: grid; gap: 4px; min-width: 0; flex: 1 1 280px; }
.hunter-top { font-size: .88rem; color: var(--muted); }
.hunter-top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hunter-spark { display: grid; gap: 2px; justify-items: start; }
.hunter-spark.wide { max-width: 100%; }
.hunter-spark .spark { max-width: 100%; height: auto; }
.spark rect.on { fill: var(--accent); }
.spark rect.off { fill: var(--line); }
.hunter-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; display: grid; min-width: 110px; }
.card .stat { background: var(--bg); }
.stat b { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat.build { max-width: 100%; }
.stat.build b { font-size: 1.15rem; overflow-wrap: anywhere; }

.chron-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; align-items: start; }
.chron-cat { align-content: start; }
table.kv { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.kv th, table.kv td { padding: 3px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
table.kv th { font-weight: 400; text-align: left; padding-right: 10px; overflow-wrap: anywhere; }
table.kv td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; }
table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: 0; }
table.kv .kv-head td { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
table.kv .fam-head th { font-weight: 600; padding-top: 8px; }
table.kv .fam-row th { padding-left: 14px; font-family: var(--mono); font-size: .82rem; }
table.kv .pill { font-size: .66rem; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.timeline .when { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.funny-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.funny { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; display: grid; gap: 2px; }
.funny b { font-family: var(--display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.funny span:not(.status) { font-size: 1.05rem; line-height: 1.3; }

.decision { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.decision .meta b { overflow-wrap: anywhere; }
.choice { display: grid; gap: 3px; }
.choice-label { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.choice-label span:first-child { overflow-wrap: anywhere; min-width: 0; }
.choice-n { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
#decisions-search { min-width: 12rem; }

/* Share donuts (Hunters tab). Categorical slots 1-7 in fixed order, validated against --surface in each theme;
   slot 0 is "Others". The 2px --surface stroke is the gap between slices. */
:root {
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #4a3aa7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #008300; --series-7: #9085e9;
  }
}
:root[data-theme="dark"] {
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --series-5: #d55181; --series-6: #008300; --series-7: #9085e9;
}
#hunters-charts { display: grid; gap: 8px; margin-bottom: 12px; }
#hunters-charts:empty { display: none; }
.share-card h3 { margin: 0; }
.share-body { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.share { flex: none; max-width: 100%; height: auto; }
.share .slice { stroke: var(--surface); stroke-width: 2; stroke-linejoin: round; transition: opacity .15s; cursor: default; }
.share-total { text-anchor: middle; font-family: var(--display); font-size: 20px; font-weight: 600; fill: var(--ink); }
.share-sub { text-anchor: middle; font-size: 11px; fill: var(--muted); }
.share-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; flex: 1 1 180px; }
.share-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 3.5em; gap: 8px; align-items: center; transition: opacity .15s; }
.share-legend .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-legend .status { text-align: right; }
.swatch { width: 12px; height: 12px; border-radius: 3px; }
.share .dim, .share-legend .dim { opacity: .3; }
.s0 { fill: var(--idle); background: var(--idle); }
.s1 { fill: var(--series-1); background: var(--series-1); } .s2 { fill: var(--series-2); background: var(--series-2); }
.s3 { fill: var(--series-3); background: var(--series-3); } .s4 { fill: var(--series-4); background: var(--series-4); }
.s5 { fill: var(--series-5); background: var(--series-5); } .s6 { fill: var(--series-6); background: var(--series-6); }
.s7 { fill: var(--series-7); background: var(--series-7); }

/* Ideas tab (ideas.js) */
.idea-row .idea-body { white-space: pre-wrap; margin: 4px 0 8px; }
.idea-actions, .idea-reply { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.idea-status[aria-pressed="true"] { font-weight: 700; outline: 2px solid currentColor; }
.idea-reply-input { flex: 1; min-width: 200px; }


/* BUGREVIEW-3: bulk select */
.bulk-tick { display: inline-flex; align-items: center; cursor: pointer; }
.bulk-tick input { margin: 0; cursor: pointer; }
.card.selected { outline: 2px solid #6aa9ff; }
.bulk-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.bulk-bar.busy { opacity: .6; pointer-events: none; }

/* --- Review tab (O-BUGREVIEW-4) --- */
.review-group { display: grid; gap: 10px; }
.review-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.review-group-head h3 { margin: 0; }
.review-group-head .btn { margin-left: auto; }
.review-why { margin: 0; }
.review-evidence { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.review-actions { display: flex; gap: 8px; }
#review-digest { cursor: pointer; }
