:root {
  --bg: #0f1419; --surface: #1a2332; --border: #2a3544; --text: #e7ecf3;
  --muted: #9fb0c5; --accent: #6eb5ff; --pass: #8feca8; --fail: #ffc896;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, sans-serif; min-height: 100vh; }
a { color: var(--accent); }
header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
header h1 { margin: 0; font-size: 1.1rem; flex: 1; }
header .user { font-size: 0.85rem; color: var(--muted); }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.panel h2 { margin: 0 0 12px; font-size: 1.05rem; }
.meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.grid { display: grid; gap: 12px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; cursor: pointer; transition: border-color 0.15s; }
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.check { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.check:last-child { border-bottom: none; }
.check .icon { width: 22px; font-weight: 700; }
.check.pass .icon { color: var(--pass); }
.check.warn .icon { color: #e6c96e; }
.check.warn { border-color: rgba(230, 201, 110, 0.35); }
.check.fail .icon { color: var(--fail); }
.btn {
  border: 1px solid var(--border); font: inherit; font-weight: 650; padding: 9px 14px;
  border-radius: 8px; cursor: pointer; background: #243044; color: var(--text);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; line-height: 1.2;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #0f1419; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn-danger { background: #5b1f1f; border-color: #9f3a3a; color: #ffd8d8; }
.btn-sm { min-height: 30px; padding: 6px 10px; font-size: 0.82rem; }
.btn:disabled, .btn.disabled { opacity: 0.48; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
label { display: grid; gap: 4px; font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
input, textarea { background: #141c28; border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 10px; font: inherit; }
textarea { min-height: 72px; resize: vertical; }
.phase-ladder { display: flex; flex-wrap: wrap; gap: 6px; }
.phase { font-size: 0.72rem; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }
.phase.done { border-color: var(--pass); color: var(--pass); }
.phase.current { border-color: var(--accent); color: var(--text); background: #1a2a40; }
.error { background: #4a2c14; color: var(--fail); padding: 12px; border-radius: 8px; margin-bottom: 12px; }
.login-wrap { max-width: 400px; margin: 80px auto; padding: 0 16px; }
.login-wrap h1 { font-size: 1.4rem; margin-bottom: 8px; }
.hidden { display: none !important; }
.transcript-picker { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.transcript-picker legend { padding: 0 6px; color: var(--muted); font-size: 0.82rem; }
.transcript-list { display: grid; gap: 10px; max-height: 360px; overflow-y: auto; }
.transcript-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; margin: 0; font-size: 0.88rem; color: var(--text); }
.transcript-row:hover { border-color: var(--accent); }
.transcript-row:has(input:disabled) { cursor: not-allowed; }
.transcript-row.is-disabled { opacity: 0.68; background: rgba(255,255,255,0.02); }
.transcript-row input { margin-top: 4px; }
.transcript-group { margin-bottom: 14px; }
.transcript-group .subhead { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); }
.transcript-folder { border: 1px solid var(--border); border-radius: 10px; background: #141c28; overflow: hidden; }
.transcript-folder[open] { border-color: #35455d; }
.transcript-folder-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; cursor: pointer; list-style: none; }
.transcript-folder-summary::-webkit-details-marker { display: none; }
.transcript-folder-summary::before { content: "▸"; color: var(--muted); font-size: 0.8rem; transition: transform 0.15s ease; }
.transcript-folder[open] .transcript-folder-summary::before { transform: rotate(90deg); }
.transcript-folder-summary > span:first-child { flex: 1; min-width: 0; }
.folder-title { display: block; color: var(--text); font-weight: 700; font-size: 0.9rem; }
.folder-desc { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.35; margin-top: 2px; }
.folder-count { color: var(--muted); font-size: 0.76rem; white-space: nowrap; }
.transcript-folder-body { display: grid; gap: 8px; padding: 0 10px 10px; }
.transcript-internal { opacity: 0.85; }
.wizard-preview { padding: 10px 12px; background: #141c28; border-radius: 8px; margin-bottom: 12px; }
.landing-picker { margin: 12px 0; padding: 10px 12px; border: 1px solid #2a3548; border-radius: 8px; }
.landing-mode-row { display: block; margin: 6px 0; }
.danger-zone { border-color: #603333; }
.danger-zone-body { display: grid; gap: 10px; }
.panel-accent { border-color: var(--accent); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.doc-card { background: #141c28; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.doc-cat { font-size: 0.68rem; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; }
.doc-excerpt { font-size: 0.82rem; color: var(--muted); margin: 0 0 10px; line-height: 1.4; max-height: 4.5em; overflow: hidden; }
.task-list { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.9rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.subhead { font-size: 0.88rem; margin: 0 0 6px; color: var(--text); }
.seed-list { margin: 0; padding-left: 18px; font-size: 0.85rem; color: var(--muted); }
.hook-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.88rem; }
.pill { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; display: inline-block; margin-bottom: 10px; }
.pill.pass { background: #1a3d2e; color: var(--pass); }
.pill.fail { background: #4a2c14; color: var(--fail); }
.pill.warn { background: #403615; color: #e6c96e; }
.evidence-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 10px;
}
.evidence-status .pill,
.evidence-status .meta { margin: 0; }
.evidence-status-compact { margin: 4px 0 8px; }
.evidence-packet-panel {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px;
  border: 1px solid rgba(110, 181, 255, 0.28); border-radius: 8px;
  background: #141c28; padding: 12px; margin: 12px 0;
}
.evidence-packet-panel strong { display: block; margin-bottom: 4px; }
.evidence-packet-panel .meta { margin-bottom: 0; }
.evidence-packet-compact { padding: 10px; }
.evidence-actions { align-items: center; margin-top: 8px; }
.evidence-actions .btn { margin: 0; }
.evidence-inline-msg {
  flex: 1 1 220px; min-width: 180px; margin: 0; padding: 0;
  overflow-wrap: anywhere;
}
.evidence-inline-msg.error {
  background: transparent; color: var(--fail); padding: 0; border-radius: 0; margin: 0;
}
.evidence-workspace-panel {
  border: 1px solid rgba(80, 200, 120, 0.24); border-radius: 8px;
  background: #101722; padding: 12px; margin: 12px 0;
  min-width: 0; max-width: 100%; overflow-x: hidden;
}
.evidence-workspace-compact { padding: 10px; }
.evidence-workspace-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.evidence-workspace-head strong { display: block; margin-bottom: 4px; }
.evidence-workspace-head .meta { margin: 0; overflow-wrap: anywhere; }
.evidence-source-status,
.evidence-facet-row,
.evidence-span-row,
.evidence-claim-card-meta,
.evidence-evidence-row,
.evidence-link-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.evidence-source-status .pill,
.evidence-facet-row .pill { overflow-wrap: anywhere; max-width: 100%; }
.evidence-span-row .btn { overflow-wrap: anywhere; white-space: normal; text-align: left; }
.evidence-source-status { margin: 8px 0 10px; }
.evidence-claim-list { display: grid; gap: 10px; margin-top: 10px; min-width: 0; max-width: 100%; }
.evidence-claim-group {
  display: grid; gap: 8px; min-width: 0; max-width: 100%;
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08);
}
.evidence-claim-group:first-child { padding-top: 0; border-top: 0; }
.evidence-claim-group-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.evidence-claim-group-head h4 {
  margin: 0; font-size: 0.9rem; font-weight: 700; overflow-wrap: anywhere;
}
.evidence-claim-card {
  border: 1px solid var(--border); border-radius: 8px; background: #141c28; padding: 12px;
  min-width: 0; max-width: 100%; overflow-x: hidden;
}
.evidence-claim-card p { margin: 8px 0; line-height: 1.5; overflow-wrap: anywhere; }
.evidence-claim-text { color: var(--text); }
.evidence-claim-card-meta { margin-top: 8px; }
.evidence-claim-card-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 0; max-width: 100%;
}
.evidence-claim-card-head code {
  color: var(--muted); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(100%, 28rem);
  min-width: 0;
}
.evidence-evidence-row { margin-top: 10px; align-items: stretch; }
.evidence-chip {
  appearance: none; border: 1px solid rgba(110, 181, 255, 0.28); border-radius: 8px;
  background: #0d141f; color: var(--text); padding: 8px 10px; min-width: min(100%, 220px);
  max-width: 100%; display: grid; gap: 3px; text-align: left; cursor: pointer; font: inherit;
}
.evidence-chip:hover { border-color: var(--accent); }
.evidence-chip:focus-visible,
.evidence-chip-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(110, 181, 255, 0.2);
}
.evidence-chip-muted { cursor: default; border-color: var(--border); color: var(--muted); }
.evidence-chip span,
.evidence-chip small { overflow-wrap: anywhere; }
.evidence-chip small { color: var(--muted); font-size: 0.72rem; line-height: 1.35; }
.evidence-exchange {
  display: grid; gap: 8px; margin: 10px 0;
}
.evidence-exchange-turn,
.evidence-proof-context {
  display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(10,16,24,0.42);
}
.evidence-exchange-response {
  border-color: rgba(110, 181, 255, 0.28); background: rgba(13,20,31,0.78);
}
.evidence-exchange-label {
  display: inline-flex; width: fit-content; padding: 2px 7px; border-radius: 999px;
  background: rgba(110, 181, 255, 0.12); color: var(--accent); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
}
.evidence-exchange-turn strong,
.evidence-proof-context strong { color: var(--muted); font-size: 0.78rem; }
.evidence-exchange-turn p,
.evidence-proof-context p { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.evidence-link-row { margin-top: 8px; }
.evidence-link-row .pill { overflow-wrap: anywhere; max-width: 100%; }
.evidence-review-summary {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 10px;
}
.evidence-review-box {
  display: grid; gap: 8px; margin-top: 10px; padding: 10px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(10,16,24,0.58);
}
.evidence-review-head,
.evidence-review-actions {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.evidence-review-box textarea {
  width: 100%; min-height: 52px; resize: vertical; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 8px; background: #0d141f; color: var(--text);
  padding: 8px 10px; font: inherit; line-height: 1.4;
}
.evidence-review-box textarea:focus {
  outline: 2px solid rgba(110, 181, 255, 0.26); outline-offset: 1px; border-color: var(--accent);
}
.evidence-review-note { margin: 0; }
.evidence-review-actions .btn { margin: 0; }
.evidence-review-modal {
  position: fixed; inset: 72px 20px 20px auto; z-index: 92;
  width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 92px); overflow: auto;
  border: 1px solid rgba(110, 181, 255, 0.38); border-radius: 10px;
  background: #0d141f; padding: 14px; box-shadow: 0 20px 70px rgba(0,0,0,0.5);
}
.evidence-review-modal:focus { outline: 2px solid rgba(110, 181, 255, 0.35); outline-offset: 2px; }
.evidence-review-modal textarea { min-height: 86px; }
.evidence-review-decision { width: 100%; margin-top: 6px; }
.evidence-review-decision > summary {
  cursor: pointer; color: var(--muted); font-size: 0.82rem; padding: 6px 0;
}
.evidence-review-decision .evidence-review-actions { margin-top: 6px; }
.evidence-transcript-drawer {
  position: fixed; right: 20px; top: 72px; bottom: 20px; z-index: 90;
  width: min(560px, calc(100vw - 32px)); overflow: auto;
  border: 1px solid rgba(110, 181, 255, 0.36); border-radius: 10px; margin: 0; padding: 14px; background: #0d141f;
  box-shadow: 0 20px 70px rgba(0,0,0,0.46);
}
.evidence-transcript-drawer:focus { outline: 2px solid rgba(110, 181, 255, 0.35); outline-offset: 2px; }
.evidence-transcript-drawer > .meta { overflow-wrap: anywhere; }
.evidence-locator-row { color: var(--muted); }
.evidence-transcript-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px;
}
.evidence-transcript-excerpt {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem; line-height: 1.55; color: var(--text); background: #0a1018; border-radius: 6px; padding: 12px;
}
.evidence-transcript-excerpt mark {
  background: rgba(230, 201, 110, 0.32); color: var(--text); border-radius: 3px; padding: 0 2px;
}
@media (max-width: 760px) {
  .evidence-transcript-drawer {
    inset: auto 10px 10px; top: 88px; width: auto; max-height: calc(100vh - 100px);
  }
  .evidence-review-modal {
    inset: auto 10px 10px; top: 88px; width: auto; max-height: calc(100vh - 100px);
  }
}
.doc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.doc-modal { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; max-width: 900px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; }
.doc-modal header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.doc-body { margin: 0; padding: 16px; overflow: auto; font-size: 0.82rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; color: var(--muted); }
.doc-modal-wide { max-width: 960px; }
.doc-modal .meta { padding: 0 16px; margin: 8px 0 0; }
.doc-editor { margin: 12px 16px 0; min-height: 320px; flex: 1; width: calc(100% - 32px); font-family: ui-monospace, monospace; font-size: 0.82rem; line-height: 1.45; padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: #0f141c; color: var(--text); resize: vertical; }
.doc-modal .btn-row { padding: 12px 16px 0; }
.doc-modal #keyword-gold-msg { padding: 8px 16px 16px; min-height: 1.2em; }
.gate-banner { font-size: 0.92rem; line-height: 1.5; }
.roadmap { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.9rem; }
.roadmap li { margin-bottom: 6px; }
.roadmap li.road-active { color: var(--text); }
.frame-row { display: flex; flex-wrap: wrap; gap: 6px; }
.frame-chip { font-size: 0.78rem; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: #141c28; color: var(--muted); }
.locked-copy { margin-top: 12px; }
.copy-block { margin-bottom: 16px; }
.copy-lead { font-size: 1.05rem; line-height: 1.45; color: var(--text); margin: 0; }
.copy-body { font-size: 0.9rem; line-height: 1.5; color: var(--muted); margin: 0; }
.copy-pre { font-size: 0.82rem; line-height: 1.45; color: var(--muted); white-space: pre-wrap; margin: 0; background: #141c28; padding: 12px; border-radius: 8px; border: 1px solid var(--border); }
.voc-quote { margin: 8px 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: #141c28; font-size: 0.88rem; color: var(--text); font-style: italic; }
.yaml-meta { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }
.panel-console { border-color: #3d5a80; }
.alert-warn { background: #4a3a14; color: var(--fail); padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; font-size: 0.88rem; }
.alert-info { background: #1a2a40; color: var(--muted); padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; font-size: 0.88rem; }
.gate-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 8px; }
.gate-table th, .gate-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.gate-table tr.pass td:first-child { color: var(--pass); }
.gate-table tr.fail td:first-child { color: var(--fail); }
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.check-inline input { width: auto; margin: 0; }
.revision-preview { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Inline copy review (GDoc-style) */
.copy-review-panel { border-color: var(--accent); }
.comment-actions { margin-bottom: 12px; }
.panel-console .copy-review-layout { margin-top: 0; }
.copy-review-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-tabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.review-tab { font: inherit; font-size: 0.82rem; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: #141c28; color: var(--muted); cursor: pointer; }
.review-tab.active { border-color: var(--accent); color: var(--text); background: #1a2a40; }
.copy-review-layout { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
@media (max-width: 800px) { .copy-review-layout { grid-template-columns: 1fr; } }
.copy-review-main { min-width: 0; }
.copy-review-hint { margin: 0 0 6px; font-size: 0.78rem; }
.copy-review-body {
  margin: 0; padding: 16px; max-height: 70vh; overflow: auto;
  font-size: 0.88rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  background: #141c28; border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  user-select: text; cursor: text;
}
.comment-highlight { background: #4a3a14; color: var(--text); border-radius: 2px; cursor: pointer; }
.comment-highlight:hover { background: #6a4a18; }
.copy-review-sidebar { background: #141c28; border: 1px solid var(--border); border-radius: 10px; padding: 12px; max-height: 70vh; overflow: auto; }
.comment-threads { display: grid; gap: 10px; }
.comment-thread { padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.comment-thread.active { border-color: var(--accent); }
.comment-quote { margin: 0 0 8px; padding: 8px 10px; border-left: 3px solid var(--accent); font-size: 0.78rem; color: var(--muted); font-style: italic; }
.comment-note { margin: 0 0 6px; font-size: 0.88rem; }
.comment-popover {
  position: fixed; z-index: 200; width: min(300px, calc(100vw - 24px));
  background: var(--surface); border: 1px solid var(--accent); border-radius: 10px;
  padding: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.comment-popover-quote { margin: 0 0 8px; font-size: 0.78rem; color: var(--muted); font-style: italic; max-height: 4em; overflow: hidden; }
.comment-popover textarea { width: 100%; margin-bottom: 8px; min-height: 64px; }

/* Task-first operator UX */
.panel-job-hero { border-color: var(--accent); background: linear-gradient(180deg, #1a2840 0%, var(--surface) 100%); }
.job-eyebrow { margin: 0 0 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; }
.panel-job-hero h2 { margin: 0 0 14px; font-size: 1.2rem; }
.job-lead { margin: 0 0 12px; color: var(--text); line-height: 1.45; }
.job-checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.job-task { display: flex; gap: 12px; padding: 12px; background: #141c28; border: 1px solid var(--border); border-radius: 10px; }
.job-task-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; background: var(--accent); color: #0f1419; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.job-high .job-task-num { background: var(--fail); color: #0f1419; }
.job-task-body p { margin: 4px 0 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.job-howto { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #141c28; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.review-checklist { margin: 0 0 14px; padding-left: 18px; }
.panel-slim > summary { cursor: pointer; padding: 4px 0; }
.panel-reference > summary { cursor: pointer; }
.support-section {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.support-section > summary { cursor: pointer; }
.support-section h2 { margin-top: 0; }
.reference-inner .ref-block { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.reference-inner .ref-block:last-child { border-bottom: none; }
.health-summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.health-summary::-webkit-details-marker { display: none; }
.health-inner { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.panel-console[open] .health-summary-hint { display: none; }
.gate-block { margin-bottom: 16px; }
.fail-text { color: var(--fail); }
.mono, .mono-sm code { font-family: ui-monospace, monospace; font-size: 0.78rem; }
.source-phase { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.source-phase:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.source-phase-current { border-left: 3px solid var(--accent); padding-left: 12px; margin-left: -12px; }
.source-phase-head { font-size: 0.95rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phase-tag { margin: 0 !important; font-size: 0.68rem !important; }
.feedback-form select { background: #141c28; border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 10px; font: inherit; }
.feedback-form .two-col label { margin-bottom: 0; }

/* Review session decision cards */
.panel-review-session { border-color: var(--accent); background: linear-gradient(180deg, #1a2840 0%, var(--surface) 100%); }
.panel-review-session h2 { margin: 0 0 6px; font-size: 1.2rem; }
.session-progress { margin: 0 0 14px; }
.decision-cards { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.decision-card { display: flex; gap: 12px; padding: 14px; background: #141c28; border: 1px solid var(--border); border-radius: 10px; }
.decision-card.decision-pending.decision-blocker { border-color: #6a4020; }
.decision-card.decision-done { opacity: 0.72; }
.decision-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; background: var(--accent); color: #0f1419; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.decision-blocker.decision-pending .decision-num { background: var(--fail); }
.decision-body { flex: 1; min-width: 0; }
.decision-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.decision-head h3 { margin: 0; font-size: 0.98rem; }
.decision-text { margin: 0 0 8px; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.decision-context { margin: 0 0 10px; padding-left: 18px; font-size: 0.82rem; color: var(--muted); }
.decision-actions { margin-top: 4px; }
.decision-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.decision-note textarea { width: 100%; margin-bottom: 8px; }
.decision-resolved { margin: 8px 0 0; }

/* Copy review workflow */
.copy-stepper {
  display: flex; align-items: stretch; gap: 0; margin-bottom: 16px;
  padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow-x: auto;
}
.copy-step {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 120px;
  padding: 8px 10px; border: none; background: transparent; color: var(--muted);
  font: inherit; text-align: left; cursor: default; border-radius: 8px;
}
button.copy-step { cursor: pointer; }
button.copy-step:hover { background: #141c28; color: var(--text); }
.copy-step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px;
  background: var(--border); color: var(--text); font-weight: 700; font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
}
.copy-step-text { display: grid; gap: 2px; min-width: 0; }
.copy-step-text strong { font-size: 0.82rem; color: var(--text); }
.copy-step-text span { font-size: 0.72rem; }
.copy-step-active { background: #1a2a40; }
.copy-step-active .copy-step-num { background: var(--accent); color: #0f1419; }
.copy-step-done .copy-step-num { background: var(--pass); color: #0f1419; }
.copy-step-done.copy-step-active .copy-step-num { background: var(--accent); }
.copy-step-connector { flex: 0 0 16px; height: 2px; align-self: center; background: var(--border); margin: 0 2px; }
.copy-step-connector.done { background: var(--pass); }

.copy-next-action {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px; margin-bottom: 16px; border-radius: 10px;
  background: #141c28; border: 1px solid var(--border);
}
.copy-next-action-generate { border-color: var(--accent); background: linear-gradient(135deg, #1a2840 0%, #141c28 100%); }
.copy-next-action-ready { border-color: var(--pass); }
.copy-next-action-done { border-color: var(--pass); opacity: 0.9; }
.copy-next-flash { animation: copy-next-pulse 0.6s ease 2; }
@keyframes copy-next-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 0 3px rgba(110, 181, 255, 0.45); }
}
.copy-next-body { flex: 1; min-width: 200px; }
.copy-next-eyebrow { margin: 0 0 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-weight: 700; }
.copy-next-body strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.copy-next-body p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.copy-next-secondary { margin-top: 8px !important; font-size: 0.82rem !important; }
.copy-pending-generate-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px; margin: 0 0 16px; border-radius: 10px;
  border: 1px solid var(--accent); background: linear-gradient(135deg, #1a2840 0%, #141c28 100%);
}
.copy-pending-generate-body { flex: 1; min-width: 200px; }
.comment-group-label {
  margin: 12px 0 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); font-weight: 700;
}
.comment-group-label:first-child { margin-top: 0; }
.comment-group-sub { margin: 0 0 10px; font-size: 0.74rem; line-height: 1.45; color: var(--muted); }
.comment-thread-actions { gap: 8px; margin-top: 4px; align-items: center; flex-wrap: wrap; }
.comment-thread-actions .btn-primary { white-space: nowrap; }
.copy-round-line { margin: 0 0 12px; }
.copy-sidebar-hint { margin: 0 0 10px; font-size: 0.78rem; }
.comment-popover-hint { margin: 0 0 8px; font-size: 0.75rem; line-height: 1.4; }

.copy-workflow { display: grid; gap: 10px; margin: 0 0 14px; }
.workflow-step { display: flex; gap: 10px; padding: 10px 12px; background: #141c28; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; }
.workflow-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; background: var(--border); color: var(--text); font-weight: 700; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }
.workflow-step strong { display: block; margin-bottom: 2px; font-size: 0.88rem; }
.workflow-step p { margin: 0; color: var(--muted); line-height: 1.4; font-size: 0.82rem; }
.copy-review-toolbar .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.copy-revision-gate-chip, .foundation-gate-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.decision-action-blocker { display: block; margin-top: 2px; color: var(--fail); font-size: 0.78rem; }
.btn-secondary { background: #2a3544 !important; border-color: var(--border) !important; color: var(--text) !important; }
.model-pick { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 0.78rem; }
.model-pick input { width: auto; margin: 0; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 12px 0; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 8px; vertical-align: top; }
.compare-table th { background: #141c28; text-align: left; width: 100px; }
.compare-pre { margin: 0 0 8px; font-size: 0.78rem; white-space: pre-wrap; max-height: 12em; overflow: auto; }
.pick-list { margin: 0 0 12px; padding-left: 18px; font-size: 0.88rem; }

/* Compare & pick — section cards */
.compare-panel { padding-bottom: 100px; }
.compare-welcome {
  padding: 14px 16px; margin: 0 0 16px; border-radius: 10px;
  background: #1a2a40; border: 1px solid var(--accent);
}
.intake-oneliners {
  display: grid; gap: 12px; margin: 12px 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.intake-oneliner p { margin: 4px 0 0; line-height: 1.45; }
.intake-running-panel { border-left: 4px solid var(--accent); }
.intake-running-panel.is-primary-run {
  box-shadow: 0 0 0 1px rgba(100, 160, 255, 0.18), 0 12px 30px rgba(0, 0, 0, 0.18);
}
.intake-failed-panel { border-left: 4px solid #c44; }
.intake-needs-run { border-left: 4px solid var(--warn, #c9a227); }
.intake-complete-hero { border-color: var(--pass); }
.intake-active-deferred { opacity: 0.86; }

.intake-hdr-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; vertical-align: middle;
}
.intake-hdr-running { background: #1a2840; color: var(--accent); border: 1px solid var(--accent); }
.intake-hdr-complete { background: #142818; color: var(--pass); border: 1px solid var(--pass); }
.intake-hdr-failed { background: #2a1414; color: #f88; border: 1px solid #c44; }

.intake-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: intake-pulse 1.2s ease-in-out infinite;
}
@keyframes intake-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.intake-status-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  align-items: flex-start; margin-bottom: 14px;
}
.intake-status-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.intake-status-title h2 { margin: 0; font-size: 1.1rem; }
.intake-status-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: var(--muted); }
.intake-status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.intake-status-running, .intake-status-queued { background: #1a2840; color: var(--accent); border: 1px solid var(--accent); }
.intake-status-complete { background: #142818; color: var(--pass); border: 1px solid var(--pass); }
.intake-status-failed { background: #2a1414; color: #f88; border: 1px solid #c44; }

.intake-step-pipeline {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none;
}
.intake-step {
  flex: 1 1 100px; padding: 10px 12px; border-radius: 8px;
  background: #141c28; border: 1px solid var(--border); opacity: 0.55;
}
.intake-step.active {
  opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px rgba(100, 160, 255, 0.2);
}
.intake-step.done { opacity: 1; border-color: var(--pass); }
.intake-step-label { display: block; font-weight: 700; font-size: 0.82rem; }
.intake-step-hint { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.intake-progress-detail {
  margin: 0 0 8px; padding: 10px 12px; border-radius: 8px;
  background: #101820; border: 1px solid var(--border); font-size: 0.92rem;
}

.post-promote-hero {
  margin-bottom: 16px; padding: 18px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #1a2a40 0%, #142018 100%);
  border: 1px solid var(--pass);
}
.post-promote-hero h2 { margin: 4px 0 8px; font-size: 1.15rem; }
.post-promote-lede { margin: 0 0 12px; max-width: 52rem; line-height: 1.5; }
.post-promote-steps { margin: 0 0 14px; padding-left: 1.2rem; line-height: 1.55; color: var(--text); }
.post-promote-steps li { margin-bottom: 6px; }
.session-subtitle { margin: -4px 0 14px; max-width: 40rem; }
.decision-card.decision-primary { border-color: var(--pass); box-shadow: 0 0 0 1px rgba(80, 200, 120, 0.15); }
.decision-maintenance-note { margin: 0 0 8px; font-style: italic; color: var(--muted); }
.copy-signoff-panel { max-width: 78rem; margin: 0 auto 48px; padding-bottom: 120px; }
.signoff-head { margin-bottom: 20px; }
.signoff-lede { max-width: 44rem; line-height: 1.55; margin-bottom: 16px; }
.signoff-h1-callout { padding: 14px 16px; margin-bottom: 20px; border-radius: 10px; background: #1a2840; border-left: 4px solid var(--accent); }
.signoff-h1 { margin: 6px 0 0; font-size: 1.15rem; line-height: 1.45; font-weight: 600; }
.signoff-doc-wrap { display: grid; gap: 12px; }
.signoff-read-layout {
  display: grid; grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 18px; align-items: start;
}
.signoff-toc {
  position: sticky; top: 14px;
}
.signoff-toc-card {
  padding: 8px; border: 1px solid var(--border); border-radius: 10px;
  background: rgba(20, 28, 40, 0.72);
}
.signoff-toc-card nav { display: grid; gap: 6px; }
.signoff-toc-link {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start;
  padding: 8px; border-radius: 8px; color: var(--text); text-decoration: none;
  width: 100%; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer;
}
.signoff-toc-link:hover { background: #1a2840; }
.signoff-toc-link span {
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #101820; border: 1px solid var(--border);
  color: var(--muted); font-size: 0.72rem; font-weight: 700;
}
.signoff-toc-link strong {
  min-width: 0; font-size: 0.8rem; line-height: 1.3; font-weight: 600;
}
.signoff-document { display: grid; gap: 10px; min-width: 0; }
.signoff-section {
  scroll-margin-top: 18px;
  padding: 20px 22px 22px; background: rgba(20, 28, 40, 0.58);
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--accent) 44%, var(--border) 56%);
  border-radius: 8px;
}
.signoff-section-title {
  margin: 0 0 12px; font-size: 1.08rem; line-height: 1.35;
  letter-spacing: 0; text-transform: none; color: var(--accent);
}
.signoff-section-body { margin: 0; font-family: var(--font, inherit); font-size: 0.95rem; line-height: 1.65; color: var(--text); }
.signoff-markdown {
  color: var(--text); font-size: 0.98rem; line-height: 1.72;
  max-width: 68ch;
}
.signoff-markdown p { margin: 0 0 0.9rem; }
.signoff-markdown p + p { margin-top: 0.45rem; }
.signoff-markdown p:last-child,
.signoff-markdown ul:last-child,
.signoff-markdown ol:last-child { margin-bottom: 0; }
.signoff-markdown strong { color: #f2f5f8; font-weight: 750; }
.signoff-markdown em { color: var(--muted); }
.signoff-markdown code {
  padding: 0.08rem 0.28rem; border-radius: 4px;
  background: rgba(16, 24, 32, 0.72); border: 1px solid rgba(255,255,255,0.08);
  color: #d8e2ec; font-size: 0.86em; overflow-wrap: anywhere;
}
.signoff-md-heading {
  margin: 1.1rem 0 0.55rem; font-size: 0.98rem; line-height: 1.35; color: #f2f5f8;
}
.signoff-md-meta-line {
  padding: 9px 11px; border-radius: 8px;
  background: rgba(16, 24, 32, 0.62); color: var(--muted);
  border: 1px solid rgba(255,255,255,0.06);
}
.signoff-md-lead-line {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.signoff-md-lead-line:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.signoff-md-callout {
  padding: 11px 13px; border-radius: 8px;
  background: rgba(201, 162, 39, 0.1); border: 1px solid rgba(201, 162, 39, 0.34);
  color: #f1dfaa;
}
.signoff-md-callout strong { color: #f7e9b7; }
.signoff-md-list { margin: 0 0 1rem; padding-left: 1.35rem; }
.signoff-md-list li { margin: 0.35rem 0; }
.signoff-md-hr {
  border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0;
}
.signoff-table-scroll {
  overflow-x: auto; margin: 0.9rem 0 1.1rem;
  border: 1px solid var(--border); border-radius: 8px;
  max-width: min(100%, calc(100vw - 32px));
}
.signoff-md-table {
  width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.88rem; line-height: 1.5;
}
.signoff-md-table th,
.signoff-md-table td {
  padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--border);
}
.signoff-md-table th {
  position: sticky; top: 0; text-align: left; background: #101820; color: var(--accent);
}
.signoff-md-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.025); }
.signoff-md-table tr:last-child td { border-bottom: 0; }
.signoff-md-table td { color: var(--text); overflow-wrap: anywhere; }
.signoff-footer {
  position: sticky; bottom: 0; margin-top: 24px; padding: 16px 0 8px;
  background: linear-gradient(transparent, rgba(13, 17, 23, 0.94) 24%);
  border-top: 1px solid var(--border);
}
.signoff-note-label { display: block; margin-bottom: 10px; }
.signoff-note-label textarea { width: 100%; margin-top: 6px; }
.signoff-actions { gap: 10px; flex-wrap: wrap; }
.signoff-footer-hint { margin: 10px 0 0; }
.session-signed-banner { border-color: var(--pass); }
.business-page {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.business-page .panel,
.business-page .pipeline-support { margin-bottom: 0; }
.business-toolbar { margin: 0; }
.business-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px; align-items: stretch; margin-bottom: 0;
}
.business-hero-main,
.business-current-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  background: var(--surface);
}
.business-branded {
  --biz-primary: var(--accent);
  --biz-surface: var(--surface);
  --biz-panel: var(--surface);
  --biz-text: var(--text);
  --biz-muted: var(--muted);
  --biz-accent: var(--accent);
  --biz-accent-2: var(--accent);
  --biz-accent-soft: var(--surface);
}
.business-hero-main {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: var(--biz-accent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--biz-primary) 82%, #000 18%) 0%, color-mix(in srgb, var(--biz-surface) 84%, var(--bg) 16%) 100%);
  color: var(--biz-text);
  padding: 28px;
}
.business-brand-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.business-logo {
  max-width: 220px; max-height: 72px; object-fit: contain;
  padding: 0; border-radius: 8px;
  background: color-mix(in srgb, var(--biz-surface) 92%, transparent);
}
.business-logo-fallback {
  width: 58px; height: 58px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--biz-accent); color: #0f1419; font-weight: 800;
  font-size: 1.35rem;
}
.business-hero-main h2,
.business-current-card h2 { margin: 0 0 10px; line-height: 1.2; }
.business-hero-main h2 { font-size: 2.35rem; letter-spacing: 0; }
.business-current-card h2 { font-size: 1.12rem; }
.business-hero-main .job-eyebrow {
  margin: 0;
  color: var(--biz-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.business-hero-main .meta { color: color-mix(in srgb, var(--biz-text) 72%, var(--biz-muted) 28%); }
.business-hero-main .btn-row { margin-top: 18px; }
.business-hero-main .btn-primary {
  background: var(--biz-accent); border-color: var(--biz-accent); color: #0f1419;
}
.business-hero-main .btn-ghost {
  color: var(--biz-text); border-color: color-mix(in srgb, var(--biz-accent) 42%, var(--border) 58%);
}
.business-branded[data-brand-theme="light"] .business-hero-main {
  background:
    linear-gradient(135deg, var(--biz-surface) 0%, var(--biz-panel) 62%, var(--biz-accent-soft) 100%);
  color: var(--biz-text);
}
.business-branded[data-brand-theme="light"] .business-hero-main .meta { color: var(--biz-muted); }
.business-branded[data-brand-theme="light"] .business-hero-main .btn-primary {
  background: var(--biz-accent); border-color: var(--biz-accent); color: #ffffff;
}
.business-branded[data-brand-theme="light"] .business-hero-main .btn-ghost {
  color: var(--biz-primary); border-color: color-mix(in srgb, var(--biz-accent) 42%, #E8E8E8 58%);
  background: color-mix(in srgb, var(--biz-panel) 78%, transparent);
}
.business-branded[data-brand-theme="light"] .business-logo {
  background: transparent;
}
.business-current-card {
  cursor: pointer;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.business-current-card:hover { border-color: var(--biz-accent); }
.business-hero-error { margin: 12px 0 0; }
.business-workspace-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: nowrap; gap: 8px; align-items: center;
  margin: 0 0 10px; padding: 8px 8px 10px;
  border: 1px solid color-mix(in srgb, var(--biz-accent) 20%, var(--border) 80%);
  border-radius: 10px; background: color-mix(in srgb, var(--surface) 88%, rgba(15, 20, 25, 0.72) 12%);
  backdrop-filter: blur(10px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.business-workspace-nav[data-brand-theme="light"] {
  background: color-mix(in srgb, var(--biz-panel) 92%, transparent);
  border-color: color-mix(in srgb, var(--biz-accent) 20%, #E8E8E8 80%);
}
.business-workspace-nav .btn { margin: 0; flex: 0 0 auto; }
.business-status-strip {
  display: none; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-bottom: 10px;
}
.business-status-strip > button {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 10px; border: 1px solid color-mix(in srgb, var(--biz-accent) 20%, var(--border) 80%);
  border-radius: 8px; background: color-mix(in srgb, var(--biz-primary) 20%, #141c28 80%);
  cursor: pointer;
}
.business-status-strip > button:hover,
.business-status-strip > button:focus-visible { border-color: var(--biz-accent); outline: none; }
.business-status-strip[data-brand-theme="light"] > button {
  background: var(--biz-panel);
  border-color: color-mix(in srgb, var(--biz-accent) 24%, #E8E8E8 76%);
}
.business-status-strip[data-brand-theme="light"] strong { color: var(--biz-primary); }
.business-status-strip[data-brand-theme="light"] span { color: var(--biz-muted); }
.business-status-strip strong { display: block; font-size: 0.92rem; }
.business-status-strip span { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.foundation-readiness-panel { margin: 0 0 10px; scroll-margin-top: 76px; }
.foundation-readiness-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px;
}
.foundation-readiness-tile {
  width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #141c28; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.foundation-readiness-tile:hover,
.foundation-readiness-tile:focus-visible { border-color: var(--biz-accent); outline: none; }
.foundation-readiness-tile.pass { border-color: rgba(143, 236, 168, 0.35); }
.foundation-readiness-tile.warn { border-color: rgba(201, 162, 39, 0.55); }
.foundation-readiness-tile.fail { border-color: rgba(204, 68, 68, 0.55); }
.foundation-readiness-tile-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px;
}
.foundation-readiness-tile-head .pill { margin: 0; flex: 0 0 auto; }
.foundation-readiness-tile .meta { overflow-wrap: anywhere; }
.foundation-readiness-needs,
.foundation-readiness-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.foundation-readiness-actions { margin-top: 10px; }
.foundation-readiness-actions .btn { margin: 0; }
.business-branded[data-brand-theme="light"] .foundation-readiness-tile {
  background: var(--biz-panel);
  border-color: color-mix(in srgb, var(--biz-accent) 18%, #E8E8E8 82%);
}
.business-workflow { margin-bottom: 10px; }
.business-pipeline {
  margin: 0; padding: 8px; list-style: none; display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.business-pipeline li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center;
  padding: 8px; border: 1px solid color-mix(in srgb, var(--biz-accent) 18%, var(--border) 82%);
  border-radius: 8px; background: #141c28;
}
.business-workflow[data-brand-theme="light"] .business-pipeline li {
  background: var(--biz-panel);
  border-color: color-mix(in srgb, var(--biz-accent) 22%, #E8E8E8 78%);
}
.business-workflow[data-brand-theme="light"] .business-pipeline strong { color: var(--biz-primary); }
.business-workflow[data-brand-theme="light"] .business-pipeline small { color: var(--biz-muted); }
.business-pipeline span {
  grid-row: span 2; width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--biz-accent); color: #0f1419; font-weight: 800; font-size: 0.75rem;
}
.business-pipeline strong { font-size: 0.82rem; }
.business-pipeline small { min-width: 0; color: var(--muted); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.business-section-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px;
}
.business-section-head h2 { margin-bottom: 4px; }
.business-campaign-list { display: grid; gap: 8px; }
.business-campaign-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #141c28; color: var(--text); text-align: left; font: inherit; cursor: pointer;
}
.business-campaign-row:hover,
.business-campaign-row:focus-visible { border-color: var(--accent); outline: none; }
.business-campaign-row span:first-child { min-width: 0; display: grid; gap: 2px; }
.business-campaign-row small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.business-campaign-row .pill { margin-bottom: 0; flex: 0 0 auto; }
.business-campaign-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.business-campaign-delete {
  opacity: 0;
  transition: opacity 0.12s ease;
}
.business-campaign-row:hover .business-campaign-delete,
.business-campaign-row:focus-within .business-campaign-delete { opacity: 1; }
.business-review-inbox,
.business-website,
.business-campaigns { margin-bottom: 0; scroll-margin-top: 76px; }

.business-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}
.business-side-stack { display: grid; gap: 10px; min-width: 0; }
.business-dashboard-grid .panel { margin-bottom: 0; }
.business-side-stack .business-section-head h2,
.business-dashboard-grid .business-section-head h2 { margin: 0; }
.business-side-stack .website-page-list { gap: 8px; }
.business-side-stack .website-page-card {
  grid-template-columns: 1fr;
  gap: 8px;
}
.business-side-stack .website-page-actions { justify-content: flex-start; }
.review-inbox-list,
.website-page-list { display: grid; gap: 10px; }
.review-inbox-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border: 1px solid var(--border); border-radius: 8px;
  background: #141c28; color: var(--text); text-align: left; font: inherit; cursor: pointer;
}
.review-inbox-row:hover { border-color: var(--biz-accent); }
.review-inbox-row span:first-child { min-width: 0; display: grid; gap: 2px; }
.review-inbox-row small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.website-page-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: start;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #141c28;
}
.website-page-card h3 { margin: 2px 0 4px; font-size: 0.98rem; }
.website-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.website-page-actions .btn { margin: 0; }
.website-gate-note { grid-column: 1 / -1; margin: 0; }
.website-more { margin-top: 8px; }
.website-more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 8px 2px;
}
.empty-state-inline { display: flex; align-items: center; min-height: 32px; }
.business-branded[data-brand-theme="light"] .business-campaign-row,
.business-branded[data-brand-theme="light"] .review-inbox-row,
.business-branded[data-brand-theme="light"] .website-page-card {
  background: var(--biz-panel);
  border-color: color-mix(in srgb, var(--biz-accent) 18%, #E8E8E8 82%);
}
.business-branded[data-brand-theme="light"] .business-campaign-row:hover,
.business-branded[data-brand-theme="light"] .review-inbox-row:hover {
  border-color: var(--biz-accent);
}
.business-support { margin-bottom: 0; }
.business-support .card { cursor: default; }
.support-disclosure {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 72%, var(--bg) 28%);
}
.support-disclosure > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  list-style: none;
}
.support-disclosure > summary::-webkit-details-marker { display: none; }
.support-disclosure > summary .pill { margin: 0; flex: 0 0 auto; }
.support-disclosure > :not(summary) { margin: 0 14px 14px; }
.support-disclosure[open] > summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.business-brand-settings-row { display: flex; align-items: center; gap: 14px; }
.brand-swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-swatch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; background: #141c28;
}
.brand-swatch i { display: inline-block; width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.22); }
.brand-swatch code { font-size: 0.72rem; color: var(--muted); }
.connector-group { display: grid; gap: 10px; margin-top: 14px; }
.connector-group h3 { margin: 0 0 4px; font-size: 0.98rem; }
.connector-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px;
}
.connector-card {
  min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #141c28;
}
.connector-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px;
}
.connector-card-head .pill { margin: 0; flex: 0 0 auto; }
.connector-value {
  overflow-wrap: anywhere;
}
.analytics-card { display: grid; gap: 8px; }
.analytics-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px;
}
.analytics-metric {
  min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.analytics-metric strong { display: block; font-size: 0.96rem; line-height: 1.15; }
.analytics-metric small {
  display: block; margin-top: 3px; color: var(--muted); font-size: 0.72rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-dashboard-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.live-dashboard-head .btn { margin: 0; }
.live-dashboard-body { display: grid; gap: 10px; }
.live-stat-grid-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;
}
.live-stat-card {
  min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #141c28;
}
.live-stat-card.pass { border-color: rgba(143, 236, 168, 0.35); }
.live-stat-card.fail { border-color: rgba(204, 68, 68, 0.45); }
.live-stat-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.live-stat-card-head .pill { margin: 0; }
.live-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.live-stat-grid span {
  min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.live-stat-grid strong { display: block; font-size: 1.05rem; line-height: 1.15; }
.live-stat-grid small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.72rem; }
.live-keywords {
  border: 1px solid var(--border); border-radius: 8px; background: #141c28; overflow: hidden;
}
.live-keywords summary {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; list-style: none;
}
.live-keywords summary::-webkit-details-marker { display: none; }
.live-keywords .pill { margin: 0; }
.live-keyword-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.live-keyword-table th,
.live-keyword-table td { padding: 8px 10px; border-top: 1px solid var(--border); text-align: left; }
.live-keyword-table th { color: var(--muted); font-weight: 700; }
.business-branded[data-brand-theme="light"] .connector-card,
.business-branded[data-brand-theme="light"] .brand-swatch,
.business-branded[data-brand-theme="light"] .live-stat-card,
.business-branded[data-brand-theme="light"] .live-keywords {
  background: var(--biz-panel);
  border-color: color-mix(in srgb, var(--biz-accent) 18%, #E8E8E8 82%);
}
.campaign-toolbar {
  align-items: center; margin: 0 0 14px;
}
.campaign-toolbar .btn:not(:first-child) {
  margin-left: 0;
}
.campaign-intake-gate {
  margin: 0 0 16px;
  border-color: var(--accent);
  background: linear-gradient(180deg, #172238 0%, var(--surface) 100%);
}
.campaign-intake-gate-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.campaign-intake-gate-head h2 { margin: 0 0 6px; font-size: 1.2rem; }
.campaign-intake-gate-action .btn { margin: 0; }
.campaign-gate-action-row { margin-top: 0; justify-content: flex-end; }
.intake-gate-steps {
  margin: 0; padding: 0; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px;
}
.intake-gate-step {
  min-width: 0; padding: 0;
  border: 1px solid var(--border); border-radius: 8px;
  background: #141c28; color: var(--muted);
}
.intake-gate-step.done { color: var(--text); border-color: rgba(143, 236, 168, 0.35); }
.intake-gate-step.active { color: var(--text); border-color: var(--accent); background: #1a2a40; }
.intake-gate-step.locked { opacity: 0.62; }
.intake-gate-step-btn {
  width: 100%; min-height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 8px; align-items: start; padding: 10px;
  color: inherit; background: transparent; border: 0; text-align: left; font: inherit; cursor: pointer;
}
.intake-gate-step-btn:disabled { cursor: not-allowed; }
.intake-gate-step:hover,
.intake-gate-step:focus-within { border-color: var(--accent); }
.intake-gate-step-btn:focus-visible { outline: none; }
.intake-gate-marker {
  width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--text); font-size: 0.75rem; font-weight: 800;
}
.intake-gate-step.done .intake-gate-marker { background: var(--pass); color: #0f1419; }
.intake-gate-step.active .intake-gate-marker { background: var(--accent); color: #0f1419; }
.intake-gate-copy { min-width: 0; display: grid; gap: 2px; }
.intake-gate-copy strong { font-size: 0.84rem; }
.intake-gate-copy small {
  color: var(--muted); font-size: 0.72rem; line-height: 1.35; overflow-wrap: anywhere;
}
.pipeline-walkthrough {
  display: grid; grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.6fr);
  gap: 16px; align-items: stretch; margin: 0 0 16px;
}
.pipeline-next {
  background: linear-gradient(180deg, #1a2840 0%, var(--surface) 100%);
  border: 1px solid var(--accent); border-radius: 12px; padding: 18px;
}
.pipeline-next h2 { margin: 0 0 6px; font-size: 1.25rem; }
.pipeline-next .btn { margin-top: 6px; width: 100%; }
.pipeline-steps {
  margin: 0; padding: 12px; list-style: none; display: grid; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.pipeline-step {
  min-width: 0;
  padding: 0; border: 1px solid transparent; border-radius: 8px;
  color: var(--muted); background: #141c28;
}
.pipeline-step.done { color: var(--text); border-color: rgba(143, 236, 168, 0.35); }
.pipeline-step.active { color: var(--text); border-color: var(--accent); background: #1a2a40; }
.pipeline-step-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 9px 10px; border: 0; background: transparent; color: inherit;
  text-align: left; font: inherit; cursor: pointer;
}
.pipeline-step:hover,
.pipeline-step:focus-within { border-color: var(--accent); }
.pipeline-step-btn:focus-visible { outline: none; }
.pipeline-step-index {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--text); font-weight: 800; font-size: 0.75rem;
}
.pipeline-step.done .pipeline-step-index { background: var(--pass); color: #0f1419; }
.pipeline-step.active .pipeline-step-index { background: var(--accent); color: #0f1419; }
.pipeline-step-copy { min-width: 0; display: grid; gap: 1px; }
.pipeline-step-copy strong { font-size: 0.86rem; }
.pipeline-step-copy small { color: var(--muted); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.decision-actions .decision-action:not(.btn-primary) {
  background: transparent; color: var(--muted);
}
.pipeline-support {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(20, 28, 40, 0.55);
}
.pipeline-support-summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
}
.pipeline-support-summary::-webkit-details-marker { display: none; }
.pipeline-support-status { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pipeline-support-status .pill { margin-bottom: 0; }
.pipeline-support-inner {
  display: grid; gap: 10px;
  padding: 0 16px 16px;
}
.pipeline-support[open] .pipeline-support-hint { display: none; }
@media (max-width: 820px) {
  .business-hero { grid-template-columns: 1fr; }
  .business-hero-main { min-height: 190px; }
  .business-hero-main h2 { font-size: 1.8rem; }
  .business-status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-section-head { display: grid; }
  .campaign-intake-gate-head { grid-template-columns: 1fr; }
  .business-dashboard-grid { grid-template-columns: 1fr; }
  .website-page-card { grid-template-columns: 1fr; }
  .website-page-actions { justify-content: flex-start; }
  .pipeline-walkthrough { grid-template-columns: 1fr; }
  .pipeline-steps { grid-template-columns: 1fr; }
  .pipeline-support-summary { align-items: flex-start; flex-direction: column; }
  .pipeline-support-status { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .business-status-strip,
  .business-pipeline { grid-template-columns: 1fr; }
}
.compare-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.compare-sections { display: grid; gap: 20px; margin: 16px 0; }
.compare-section-card { padding: 16px; background: #141c28; border: 1px solid var(--border); border-radius: 10px; }
.compare-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.compare-section-title { margin: 0; font-size: 1rem; color: var(--accent); }
.compare-section-pick { font-size: 0.78rem; }
.compare-feedback-stack { margin-bottom: 12px; display: grid; gap: 8px; }
.compare-feedback { padding: 12px 14px; border-left: 3px solid var(--accent); background: #1a2840; border-radius: 0 8px 8px 0; }
.compare-feedback-label { margin: 0 0 6px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); font-weight: 700; }
.compare-feedback-primary { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.5; color: var(--text); font-weight: 500; }
.compare-feedback-context { margin: 0; font-size: 0.78rem; font-style: italic; }
.compare-feedback-quote { margin: 0 0 6px; font-size: 0.78rem; color: var(--muted); font-style: italic; }
.compare-feedback-note { margin: 0; font-size: 0.82rem; line-height: 1.45; }
.compare-col-headers { display: none; }
@media (min-width: 900px) {
  .compare-col-headers {
    display: grid; gap: 10px; margin-bottom: 6px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .compare-col-head { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 0 10px; }
  .compare-col-original { color: var(--text); }
  .compare-option-top .compare-option-head { display: none; }
}
.compare-options { display: grid; gap: 10px; }
@media (min-width: 900px) {
  .compare-options { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.compare-option { display: block; padding: 12px; border: 2px solid var(--border); border-radius: 8px; cursor: pointer; background: var(--surface); transition: border-color 0.15s; }
.compare-option-original { border-color: #2a3544; }
.compare-option:has(input:checked) { border-color: var(--accent); background: #1a2a40; box-shadow: 0 0 0 1px var(--accent); }
.compare-option-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.compare-option input { margin: 0; }
.compare-option-head { font-weight: 600; font-size: 0.82rem; }
.compare-badge { font-size: 0.68rem; padding: 2px 6px; border-radius: 4px; background: #3a2a14; color: var(--fail); font-weight: 600; }
.compare-body { margin: 0; font-size: 0.8rem; line-height: 1.5; white-space: pre-wrap; max-height: 18em; overflow: auto; color: var(--text); }
.compare-blend { display: block; margin-top: 16px; }
.compare-blend textarea { width: 100%; margin-top: 6px; }
.compare-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: #0f1419; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
}
.compare-footer-progress { display: grid; gap: 2px; }
.compare-footer-hint { font-size: 0.72rem; }
.compare-footer-actions { margin-top: 0 !important; }
.compare-top-actions { align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.compare-top-actions .compare-send-ai-top { margin-left: auto; }
@media (max-width: 720px) {
  .compare-top-actions .compare-send-ai-top { margin-left: 0; width: 100%; }
}

/* Decision wizard — one section at a time */
.decision-wizard-panel { padding-bottom: 100px; }
.compare-round-pick { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.compare-round-pick select { padding: 6px 10px; font: inherit; }
.decision-section-nav {
  display: flex; flex-wrap: nowrap; gap: 6px; margin: 16px 0;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.decision-nav-pill {
  font: inherit; font-size: 0.78rem; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: #141c28; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
}
.decision-nav-pill.active { border-color: var(--accent); color: var(--text); background: #1a2a40; }
.decision-nav-pill.picked-ai { border-color: #3a5a40; }
.decision-nav-pill.picked-ai.active { border-color: var(--pass); }
.pill-mini { font-size: 0.65rem; padding: 1px 5px; border-radius: 4px; background: var(--border); color: var(--text); }
.decision-nav-pill.picked-ai .pill-mini { background: #2a4a30; color: var(--pass); }
.decision-card {
  padding: 16px; background: #141c28; border: 1px solid var(--border); border-radius: 12px;
}
.decision-card-head { margin-bottom: 14px; }
.decision-counter { display: block; margin-bottom: 4px; }
.decision-title { margin: 0 0 6px; font-size: 1.25rem; color: var(--accent); }
.decision-current-pick { font-size: 0.88rem; color: var(--muted); }
.decision-pick-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.decision-pick-btn { flex: 1; min-width: 140px; text-align: center; }
.decision-pick-btn.decision-pick-active { background: var(--accent); color: #0f1419; border-color: var(--accent); }
.decision-read-hint { margin: 12px 0 6px; }
.decision-read-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.decision-read-tab {
  font: inherit; font-size: 0.82rem; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer;
}
.decision-read-tab.active { border-color: var(--accent); color: var(--text); background: #1a2a40; }
.decision-read-body {
  margin: 0; padding: 16px; max-height: 50vh; overflow: auto;
  font-size: 0.92rem; line-height: 1.55; white-space: pre-wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.decision-read-single { max-height: 40vh; }
.compare-2up-block { margin: 16px 0; }
.compare-2up-head { margin-bottom: 10px; }
.compare-2up-title { margin: 0 0 4px; font-size: 0.95rem; }
.compare-2up-hint { margin: 0; }
.compare-2up {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .compare-2up { grid-template-columns: 1fr 1fr; }
}
.compare-2up-col { min-width: 0; }
.compare-col-label {
  margin: 0 0 6px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
}
.compare-diff-body { max-height: 42vh; padding: 12px 14px; font-size: 0.88rem; line-height: 1.5; }
.diff-line { padding: 2px 4px; border-radius: 3px; white-space: pre-wrap; }
.diff-line.diff-changed { background: #3a2a14; }
.diff-line.diff-removed { opacity: 0.45; }
.decision-alt-tabs { margin-top: 10px; flex-wrap: wrap; }
.composite-strip {
  margin: 12px 0 16px; padding: 12px 14px;
  background: #121a24; border: 1px solid var(--border); border-radius: 10px;
}
.composite-strip-head { margin: 0 0 8px; font-size: 0.88rem; }
.composite-strip-list {
  margin: 0; padding-left: 18px; font-size: 0.82rem; line-height: 1.55; color: var(--muted);
}
.composite-strip-list li { margin-bottom: 4px; }
.composite-strip-list strong { color: var(--text); }
.decision-step-nav { margin-top: 16px; justify-content: space-between; flex-wrap: wrap; }
.section-likes-block {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}
.section-likes-head { margin: 0 0 4px; font-size: 1rem; }
.section-likes-sub { margin: 0 0 14px; }
.section-likes-grid {
  display: grid; gap: 10px;
}
.section-likes-stack { display: grid; gap: 12px; }
@media (min-width: 768px) {
  .section-likes-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.section-like-field { margin: 0; display: grid; gap: 4px; }
.section-like-card {
  padding: 12px 14px; background: #141c28; border: 1px solid var(--border); border-radius: 10px;
}
.section-like-card-pick { border-color: #3a5a40; background: #152018; }
.section-like-card-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.section-like-label { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.section-like-input {
  width: 100%; min-height: 96px; font-size: 0.92rem; line-height: 1.45;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 10px 12px; resize: vertical;
}
.section-like-input:focus { border-color: var(--accent); outline: none; }
.pill-notes { background: #3a2a14; color: var(--fail); margin-left: 2px; }
.pill-lock { background: #2a4a30; color: var(--pass); }
.pill-done { background: #2a4030; color: var(--pass); margin-right: 2px; }

.merge-focus-panel { padding-bottom: 24px; }
.merge-focus-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 12px;
}
.merge-focus-head h2 { margin: 0; }
.merge-help-details, .merge-reset-details { margin-bottom: 10px; }
.merge-help-details summary, .merge-reset-details summary { cursor: pointer; }
.merge-reset-details .compare-bulk { margin-top: 8px; }

.direction-drawer {
  margin-bottom: 12px; padding: 0 12px 10px;
  border: 1px dashed var(--border); border-radius: 8px;
}
.direction-drawer summary { cursor: pointer; padding: 10px 0 6px; }
.direction-drawer-list { margin: 0; padding: 0 0 0 18px; list-style: none; }
.direction-drawer-item { margin-bottom: 10px; }
.direction-drawer-item .compare-feedback-primary { margin: 0 0 4px; font-size: 0.88rem; }

.merge-draft-panel {
  border: 2px solid #3a5a40; border-radius: 12px; background: #152018;
  margin-bottom: 16px; overflow: hidden;
}
.merge-draft-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid #3a5a40;
}
.merge-base-switchers { margin: 0; flex-wrap: wrap; }
.merge-draft-body { border: none; border-radius: 0; max-height: min(65vh, 28rem); }
.merge-draft-hint { margin: 0; padding: 10px 14px 14px; }
.compare-reading-alert {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--accent); background: #1a2840; font-size: 0.88rem; line-height: 1.45;
}
.merge-focus-lede { margin: 0 0 10px; max-width: 52rem; line-height: 1.45; }
.merge-doc-links { margin-bottom: 8px; flex-wrap: wrap; }
.variant-teaser-pre { margin: 0; white-space: pre-wrap; font-size: 0.85rem; opacity: 0.92; max-height: 8rem; overflow: hidden; }
.merge-pin-chips {
  margin: 0; padding: 10px 14px 14px; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border);
}
.merge-pin-chip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 8px; background: #1a2840;
  font-size: 0.86rem; line-height: 1.4;
}
.merge-pin-chip .pin-remove { margin-left: auto; padding: 2px 8px; min-width: 0; }

.variant-stack-label { margin: 8px 0 6px; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.variant-all-match { margin: 12px 0; padding: 12px; border-radius: 8px; background: #141c28; }

.merge-outline-panel { margin-bottom: 10px; }
.merge-outline-panel summary { cursor: pointer; }
.compose-extras-panel { margin-bottom: 12px; }
.compose-extras-panel summary { cursor: pointer; margin-bottom: 6px; }
.blend-note-input {
  width: 100%; font-size: 0.88rem; line-height: 1.45; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); resize: vertical;
}

.merge-board-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.merge-board-head .decision-title { margin: 0; }

.merge-preview-panel {
  border: 1px solid #3a5a40; border-radius: 10px; background: #152018;
}
.merge-board { display: grid; gap: 12px; max-width: 46rem; margin: 0 auto; }
@media (min-width: 768px) {
  .merge-board { max-width: 42rem; }
  .variant-prose { font-size: 1rem; line-height: 1.65; }
}
.merge-preview-summary {
  cursor: pointer; padding: 12px 14px; list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.merge-preview-summary::-webkit-details-marker { display: none; }
.merge-preview-label { font-weight: 700; font-size: 0.88rem; }
.merge-base-badge {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; background: #2a4a30; color: var(--pass);
}
.merge-pin-count { font-size: 0.78rem; color: var(--muted); }
.merge-preview-body { padding: 0 14px 14px; border-top: 1px solid var(--border); }
.merge-preview-base {
  margin: 12px 0 8px; font-size: 0.92rem; line-height: 1.55; white-space: pre-wrap;
}
.merge-preview-pins { margin: 0; padding-left: 18px; }
.merge-preview-pins li { margin-bottom: 4px; }
.merge-pin-src { font-weight: 600; color: var(--accent); }

.pin-tray {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: #141c28;
}
.pin-tray-empty { border-style: dashed; }
.pin-tray-head { margin: 0 0 8px; font-size: 0.88rem; }
.pin-tray-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pin-tray-item {
  padding: 10px 12px; border-radius: 8px; background: var(--surface);
  border-left: 3px solid var(--accent);
}
.pin-tray-source {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.pin-tray-quote { margin: 0 0 6px; font-size: 0.88rem; line-height: 1.45; }
.pin-tray-note { margin: 0 0 6px; }

.variant-stack { display: grid; gap: 12px; }
.variant-card {
  border: 1px solid var(--border); border-radius: 10px; background: #141c28;
  overflow: hidden;
}
.variant-card-base {
  border-color: #3a5a40; border-width: 2px; background: #152018;
}
.variant-card-collapsed .variant-body { display: none; }
.variant-card-head {
  padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 12px; border-bottom: 1px solid var(--border);
}
.variant-card-base .variant-card-head { border-bottom-color: #3a5a40; }
.variant-lock-badge {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 3px 8px; border-radius: 4px;
  background: var(--pass); color: #0f1419;
}
.variant-card-title { margin: 0; font-size: 1rem; flex: 1 1 auto; }
.variant-card-meta { margin: 0; flex: 1 1 100%; }
@media (min-width: 640px) {
  .variant-card-meta { flex: 1 1 auto; text-align: right; }
  .variant-card-actions { margin-left: auto; }
}
.variant-card-actions { margin: 0; flex-wrap: wrap; }
.variant-teaser { padding: 10px 14px 14px; }
.variant-teaser-line {
  margin: 0 0 6px; font-size: 0.88rem; line-height: 1.45; color: var(--muted);
  padding-left: 10px; border-left: 2px solid var(--border);
}
.variant-body {
  padding: 14px; max-height: none;
}
.variant-prose {
  margin: 0; font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap;
  font-family: inherit; color: var(--text); user-select: text;
  max-height: min(70vh, 32rem); overflow: auto;
}
.variant-line-changed { background: #3a2a14; display: inline; }
.variant-body:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.merge-freeform-panel {
  padding: 10px 14px; border: 1px dashed var(--border); border-radius: 10px;
}
.merge-freeform-panel summary { cursor: pointer; margin-bottom: 8px; }
.merge-freeform-note { display: grid; gap: 6px; margin-bottom: 10px; }

.variant-pin-popover { z-index: 250; max-width: 320px; }
.variant-popover-actions { flex-wrap: wrap; }
.variant-popover-hint { margin: 0 0 8px; font-size: 0.75rem; line-height: 1.35; }
.variant-popover-eval { border-color: #4a3540; color: var(--fail); }
.eval-feedback-footer { margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; background: #1a1820; border: 1px solid var(--border); }
.eval-flags-drawer { margin-bottom: 12px; padding: 0 12px 10px; border: 1px dashed #4a3540; border-radius: 8px; }
.eval-flags-drawer summary { cursor: pointer; padding: 8px 0 6px; color: var(--fail); }
.eval-flags-list { margin: 0; padding: 0 0 0 16px; list-style: none; font-size: 0.84rem; line-height: 1.45; }
.eval-flag-item { margin-bottom: 8px; }
.eval-flag-kind {
  display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  padding: 1px 6px; border-radius: 3px; background: #3a2830; color: var(--fail); margin-right: 6px;
}
.eval-flag-src { font-weight: 600; color: var(--accent); margin-right: 4px; }
#variant-popover-note { width: 100%; font-size: 0.88rem; margin-bottom: 4px; min-height: 72px; }

@media (min-width: 768px) {
  .merge-board { max-width: 46rem; margin: 0 auto; }
  .variant-prose { font-size: 1rem; line-height: 1.65; }
}

.comment-thread-internal { border-color: #3a3544; opacity: 0.92; }
.comment-kind-pill {
  display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 4px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  background: #2a2834; color: var(--muted);
}
.comment-note-primary { font-size: 0.92rem; line-height: 1.45; margin: 0 0 6px; }
.comment-internal-pick { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; cursor: pointer; }
.comment-internal-pick input { margin-top: 3px; }
#popover-note { width: 100%; min-height: 88px; font-size: 0.92rem; line-height: 1.45; }

/* Pipeline loading overlay */
.pipeline-loading {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 12, 18, 0.82); backdrop-filter: blur(4px);
}
.pipeline-loading.hidden { display: none; }
.pipeline-loading-card {
  text-align: center; padding: 28px 32px; max-width: 420px;
  background: var(--surface); border: 1px solid var(--accent); border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
.pipeline-loading-card h3 { margin: 0 0 8px; }
.pipeline-loading-spinner {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: pipeline-spin 0.9s linear infinite;
}
@keyframes pipeline-spin { to { transform: rotate(360deg); } }

.sot-promotion-panel { margin-top: 0.75rem; }
.sot-promo-card {
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.sot-promo-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.sot-promo-summary { margin: 0.5rem 0; }
.sot-promo-note-input { display: block; width: 100%; margin-top: 0.25rem; }

.foundation-compare-panel { padding-bottom: 120px; }
.foundation-round-banner { margin-bottom: 16px; }
.model-changelogs { margin: 0 0 14px; }
.model-changelogs-lede { margin: 0 0 8px; }
.model-changelog {
  border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 8px; background: var(--surface-2, rgba(0,0,0,0.02));
}
.model-changelog > summary {
  cursor: pointer; padding: 8px 12px; font-weight: 600; list-style: none;
  display: flex; align-items: baseline; gap: 8px;
}
.model-changelog > summary::-webkit-details-marker { display: none; }
.model-changelog > summary::before { content: "▸"; color: var(--muted, #888); }
.model-changelog[open] > summary::before { content: "▾"; }
.model-changelog > summary .meta { font-weight: 400; }
.model-changelog-body {
  margin: 0; padding: 10px 14px 14px; max-height: 320px; overflow: auto;
  white-space: pre-wrap; font-size: 0.86em; line-height: 1.5;
  border-top: 1px solid var(--border);
}
.formatting-diff-toggle {
  display: flex; align-items: center; gap: 8px; margin: 0 0 16px;
  cursor: pointer; user-select: none;
}
.formatting-diff-toggle input { cursor: pointer; }
.foundation-comment-list { margin: 8px 0 0; padding: 0 0 0 18px; list-style: disc; }
.foundation-comment-unmapped { color: var(--warn, #c9a227); }
.foundation-bulk-picks { margin: 12px 0 16px; align-items: center; gap: 8px; flex-wrap: wrap; }
.foundation-section {
  margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.foundation-section:last-child { border-bottom: none; }
.foundation-section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 10px;
}
.foundation-section-head h3 { margin: 0; flex: 1 1 auto; }
.foundation-section-comments {
  margin: 0 0 12px; padding: 10px 12px; list-style: none;
  background: #1a1f24; border-radius: 8px; border-left: 3px solid var(--accent);
}
.foundation-section-comments li { margin-bottom: 6px; font-size: 0.9rem; }
.foundation-compare-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px; align-items: start;
}
.foundation-col {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: #12161a;
}
.foundation-col-picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.foundation-col-changed .foundation-pick-label { background: #1a2218; }
.foundation-pick-label {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px;
  font-weight: 600; font-size: 0.88rem; cursor: pointer; border-bottom: 1px solid var(--border);
  background: #161a1e;
}
.foundation-prose .variant-prose { max-height: min(50vh, 24rem); font-size: 0.88rem; }
.foundation-add-note { margin-top: 10px; }
.foundation-note-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 8px; }
.foundation-note-input { flex: 1 1 240px; min-height: 56px; font-size: 0.88rem; }

/* Focus the eye on what the AI actually changed */
.foundation-section.has-ai-changes { border-left: 3px solid var(--accent); padding-left: 14px; }
.foundation-col-unchanged { opacity: 0.55; transition: opacity 0.15s; }
.foundation-col-unchanged:hover,
.foundation-col-unchanged:focus-within { opacity: 1; }
.foundation-col-picked { opacity: 1; }
.foundation-section-head .meta { color: var(--muted); }
.foundation-section.has-ai-changes .foundation-section-head .meta { color: var(--accent); font-weight: 600; }

/* Pulse the section an operator deep-linked to via a comment's "See rewrite →" */
.foundation-section-focus {
  border-left: 3px solid var(--accent); padding-left: 14px;
  border-radius: 8px; animation: foundation-focus-pulse 2.6s ease-out 1;
}
@keyframes foundation-focus-pulse {
  0% { background: rgba(124, 156, 255, 0.22); box-shadow: 0 0 0 2px var(--accent) inset; }
  100% { background: transparent; box-shadow: none; }
}

/* Compare footer */
.compare-next-hint { margin: 4px 0 10px; color: var(--accent); font-weight: 600; }
.compare-footer-actions { align-items: center; gap: 10px; }
#compose-btn { margin-left: auto; }

/* Sign-off: mini step rail */
.signoff-mini-steps {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none;
  counter-reset: step;
}
.signoff-mini-steps li {
  position: relative; padding: 6px 14px 6px 32px; border-radius: 999px;
  font-size: 0.8rem; border: 1px solid var(--border); color: var(--muted); background: var(--surface);
  counter-increment: step;
}
.signoff-mini-steps li::before {
  content: counter(step); position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.66rem; font-weight: 700; background: var(--border); color: var(--text);
}
.signoff-mini-steps li.done { color: var(--text); border-color: var(--pass); }
.signoff-mini-steps li.done::before { content: "✓"; background: var(--pass); color: #0f1419; }
.signoff-mini-steps li.current { color: var(--text); border-color: var(--accent); background: #1a2a40; font-weight: 600; }
.signoff-mini-steps li.current::before { background: var(--accent); color: #0f1419; }

.signoff-subsection { background: #11161f; margin-left: 14px; }
.signoff-subsection .signoff-section-title { color: var(--muted); }
.signoff-actions { justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-lg { padding: 12px 22px; font-size: 1rem; font-weight: 700; }

@media (max-width: 900px) {
  .copy-signoff-panel { max-width: none; padding-left: 0; padding-right: 0; }
  .signoff-read-layout { grid-template-columns: 1fr; }
  .signoff-toc { position: static; }
  .signoff-toc-card nav {
    display: flex; overflow-x: auto; padding-bottom: 2px;
  }
  .signoff-toc-link {
    flex: 0 0 min(72vw, 260px);
  }
  .signoff-markdown { max-width: none; }
  .signoff-subsection { margin-left: 0; }
}

@media (max-width: 540px) {
  .signoff-section { padding: 16px 14px 18px; }
  .signoff-section-title { font-size: 1rem; }
  .signoff-markdown { font-size: 0.94rem; line-height: 1.66; }
  .signoff-footer { padding-bottom: 12px; }
.signoff-actions .btn { width: 100%; justify-content: center; }
}

/* Social content wave review */
.social-content-panel { border-color: #34465e; }
.social-content-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px;
}
.social-content-head h2 { margin-bottom: 4px; }
.social-content-stats {
  display: grid; grid-template-columns: repeat(3, minmax(74px, 1fr)); gap: 8px; min-width: min(100%, 260px);
}
.social-content-stats span {
  display: grid; gap: 2px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #141c28;
}
.social-content-stats strong { font-size: 1.05rem; }
.social-content-stats small { color: var(--muted); font-size: 0.72rem; }
.social-generate-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 10px 0 18px; }
.social-generate-row label { min-width: 160px; margin: 0; }
.social-generate-row select {
  background: #141c28; border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 10px; font: inherit;
}
.social-empty { padding: 16px; border: 1px dashed var(--border); border-radius: 10px; background: #141c28; }
.social-platform-section { margin-top: 18px; }
.social-platform-section > h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 0.95rem;
}
.social-platform-section > h3 span {
  color: var(--muted); font-size: 0.72rem; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px;
}
.social-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 12px; }
.social-post-card {
  display: grid; grid-template-rows: 180px 1fr; overflow: hidden; border: 1px solid var(--border);
  border-radius: 10px; background: #141c28;
}
.social-post-card.is-unassigned { opacity: 0.72; border-style: dashed; }
.social-post-media {
  position: relative; display: grid; place-items: center; background: linear-gradient(135deg, #1a2a40, #101822);
  border-bottom: 1px solid var(--border); color: var(--muted); text-transform: uppercase;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
}
.social-image-gallery,
.social-image-stage {
  width: 100%; height: 100%; min-width: 0;
}
.social-image-stage { position: relative; overflow: hidden; }
.social-image-frame {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  margin: 0; background: rgba(255,255,255,0.03);
}
.social-image-frame.is-active { display: flex; }
.social-post-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.social-image-frame figcaption {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 7px;
  border-radius: 999px; background: rgba(8,13,20,0.74); color: rgba(255,255,255,0.86);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.social-image-nav {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px; border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; background: rgba(8,13,20,0.78);
  color: #fff; text-transform: none; letter-spacing: 0; font-size: 0.72rem;
}
.social-image-cycle {
  display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0;
  border-radius: 999px; background: rgba(255,255,255,0.10); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1;
}
.social-image-cycle:hover { background: rgba(255,255,255,0.18); }
.social-image-count { min-width: 36px; text-align: center; font-weight: 800; }
.social-img-pending { padding: 0 12px; text-align: center; }
.social-img-tag {
  position: absolute; left: 8px; top: 8px; z-index: 3; max-width: calc(100% - 16px); padding: 3px 7px;
  border-radius: 999px; background: rgba(8,13,20,0.74); color: rgba(255,255,255,0.86);
  font-size: 0.62rem; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.social-post-body { padding: 12px; }
.social-post-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.social-post-head .pill { margin: 0; }
.social-post-body h3 { margin: 0 0 4px; font-size: 0.98rem; line-height: 1.3; }
.social-card-copy { margin: 0 0 10px; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.social-card-meta { display: grid; gap: 6px; margin: 0 0 10px; }
.social-card-meta div { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); }
.social-card-meta dt { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; font-weight: 800; }
.social-card-meta dd { margin: 0; font-size: 0.8rem; color: var(--text); overflow-wrap: anywhere; }
.social-visual-brief {
  margin: 8px 0; padding: 8px 9px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; background: rgba(255,255,255,0.03); font-size: 0.8rem; color: var(--muted);
}
.social-visual-brief summary {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; cursor: pointer; color: var(--text);
}
.social-visual-brief summary::-webkit-details-marker { display: none; }
.social-visual-brief strong { color: var(--text); }
.social-visual-brief dl { display: grid; gap: 5px; margin: 8px 0 0; }
.social-visual-brief div { display: grid; grid-template-columns: minmax(76px, 0.36fr) 1fr; gap: 8px; }
.social-visual-brief dt {
  color: var(--muted); font-size: 0.66rem; text-transform: uppercase; font-weight: 800;
}
.social-visual-brief dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.social-visual-brief.is-empty { display: grid; gap: 3px; }
.social-visual-brief.is-blocked { border-color: rgba(248,113,113,0.35); background: rgba(127,29,29,0.14); }
.social-visual-brief ul { margin: 8px 0 0 18px; padding: 0; }
.social-comments { margin: 8px 0; font-size: 0.82rem; color: var(--muted); }
.social-comments summary { cursor: pointer; color: var(--text); }
.social-comments p { margin: 6px 0 0; }
.social-comment-label { margin: 8px 0 0; }
.social-comment-input { min-height: 58px; width: 100%; font-size: 0.84rem; }

@media (max-width: 720px) {
  .social-content-head { display: block; }
  .social-content-stats { margin-top: 12px; }
  .social-post-grid { grid-template-columns: 1fr; }
}
