:root {
  --ink: #1b242e;
  --muted: #5b6570;
  --paper: #f3efe6;
  --card: #fffcf7;
  --line: #d8d1c4;
  --accent: #0e5a56;
  --accent-soft: #e4f1ef;
  --action: #c24b1a;
  --danger: #8b1e1e;
  --warn: #8a5a00;
  --ok: #0e5a56;
  --shadow: 0 1px 2px rgba(27, 36, 46, 0.06), 0 8px 24px rgba(27, 36, 46, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #e8efe8 0%, transparent 55%),
    var(--paper);
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--accent); }
.skip-link {
  position: absolute; left: 12px; top: 0; z-index: 100;
  padding: 8px 12px; border-radius: 0 0 8px 8px;
  background: var(--accent); color: #fff; font-weight: 650; font-size: 13px;
  text-decoration: none; transform: translateY(-120%);
}
.skip-link:focus, .skip-link:focus-visible {
  transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px;
}
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:focus-visible, .topnav a:focus-visible, a.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  filter: none;
}
.btn.primary:focus-visible, .btn.action:focus-visible {
  outline-color: #1b242e;
  box-shadow: 0 0 0 2px #fff;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 20px 64px; overflow-x: clip; }
.topnav {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.topnav a {
  text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 650;
  padding: 6px 10px; border-radius: 999px; border: 1px solid transparent;
}
.topnav a.active, .topnav a:hover { border-color: var(--line); background: var(--card); }
.brand { margin-right: auto; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 600; margin: 0 0 8px; }
h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h3 { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 600; margin: 6px 0 8px; }
.subtitle { color: var(--muted); margin: 0 0 16px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 18px; margin: 16px 0;
}
.panel.next-action { border-color: #b7d4d0; background: linear-gradient(180deg, #f7fbfa 0%, var(--card) 48%); }
.banner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
}
.banner-primary { margin-bottom: 8px; }
.metrics-more {
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f4;
  padding: 0 12px 10px;
}
.metrics-more > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 0;
  list-style-position: outside;
}
.metrics-more[open] > summary { margin-bottom: 6px; }
.snapshot-actions { margin-top: 12px; }
.count-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f0f2f5;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  text-transform: none;
}
.urgency-panel h2 .count-pill { text-transform: none; letter-spacing: 0; }
.urgency-more { margin-top: 10px; }
.urgency-more > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
  padding: 6px 0;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 4px;
}
.wrap-any { overflow-wrap: anywhere; word-break: break-word; }
.next-more { margin: 8px 0 0; }
.next-more > summary, .provenance-detail > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.provenance-detail { margin: 6px 0 0; }
.next-script-link { margin: 10px 0 0; }
h3 { overflow-wrap: anywhere; }
.metric {
  background: var(--accent-soft); border: 1px solid #c7dedb; border-radius: 10px; padding: 12px;
}
.metric-alert { background: #fcebEB; border-color: #e2b6b6; }
.metric-alert strong { color: var(--danger); }
.metric-warn { background: #fff8e8; border-color: #ead9a8; }
.metric-warn strong { color: var(--warn); }
.metric strong { display: block; font-size: 22px; color: var(--accent); }
.metric span { font-size: 12px; color: var(--muted); }
.metric-goal {
  display: block; margin-top: 2px; font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.funnel-note {
  font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.4;
}
.funnel-note strong { color: var(--ink); font-weight: 650; }
.queue-shortfall { margin-top: 0; }
.queue-shortfall-soft { /* soft tone: reuse .warn; not catastrophic */ }
.queue-shortfall-empty { border-color: #e0b4b4; }
.note { font-size: 13px; color: var(--muted); }
.warn-inline { color: var(--warn); font-weight: 650; }
.warn, .error, .ok, .recon {
  border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 14px;
}
.warn { background: #fff8e8; border: 1px solid #ead9a8; color: var(--warn); }
.error { background: #fcebEB; border: 1px solid #e2b6b6; color: var(--danger); }
.ok { background: var(--accent-soft); border: 1px solid #c7dedb; color: var(--ok); }
.recon { background: #fff0e8; border: 1px solid #e0c4b0; color: var(--action); }
.next-card {
  display: block;
}
.next-actions { margin: 10px 0 12px; }
.next-action-line { font-size: 16px; margin: 0 0 10px; }
.location-line {
  margin: -2px 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
table.slate .location-line { margin: 2px 0 4px; }
.next-kicker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.next-actions { flex-direction: column; min-width: 160px; }
table.slate { width: 100%; border-collapse: collapse; font-size: 14px; }
table.slate th, table.slate td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.slate th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.urgency-row-overdue { background: #fff6f6; }
.urgency-row-due_today { background: #f7fbfa; }
.urgency-row-missing_date { background: #fffaf0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.password-field {
  display: flex; align-items: stretch; gap: 0; max-width: 28rem;
}
.password-field input {
  flex: 1 1 auto; min-width: 0;
}
.password-toggle {
  flex: 0 0 auto; border: 1px solid var(--line); border-left: 0; background: #fff;
  border-radius: 0 8px 8px 0; padding: 0 10px; cursor: pointer; color: var(--muted);
}
.password-field input {
  border-radius: 8px 0 0 8px;
}
.password-toggle[hidden] { display: none; }
.btn {
  display: inline-block; text-decoration: none; border-radius: 8px; padding: 8px 12px;
  font-size: 13px; font-weight: 650; border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.action { background: var(--action); color: #fff; border-color: var(--action); }
.btn.disabled, .btn.disabled:hover {
  opacity: 0.55; cursor: not-allowed; filter: none; pointer-events: none;
}
.btn.busy, .btn[aria-busy="true"] {
  opacity: 0.85; cursor: wait;
  position: relative;
  padding-left: 28px;
}
.btn.busy::before, .btn[aria-busy="true"]::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: desk-busy-spin 0.8s linear infinite;
}
@keyframes desk-busy-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.busy::before, .btn[aria-busy="true"]::before {
    animation: none;
    border-right-color: currentColor;
  }
}
.action-status {
  margin: 8px 0 0;
  font-weight: 650;
}
.reserve-inline-result { margin: 0 0 12px; }
.btn:hover { filter: brightness(0.97); }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; font-size: 14px; }
.dl.compact { grid-template-columns: 120px 1fr; }
.dl dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.dl dd { margin: 0; }
form.outcome label { display: block; font-size: 13px; font-weight: 650; margin: 12px 0 4px; }
form.outcome input[type=text], form.outcome input[type=date], form.outcome select, form.outcome textarea {
  width: 100%; max-width: 640px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  font: inherit; background: #fff;
}
form.outcome textarea { min-height: 72px; }
form.outcome fieldset.outcome-conditional {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 16px;
  margin: 14px 0;
  background: #faf8f4;
  max-width: 640px;
}
form.outcome fieldset.outcome-conditional[hidden] { display: none; }
form.outcome fieldset.outcome-conditional legend {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 6px;
  font-weight: 700;
}
.outcome-progressive-hint { margin: 10px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.context-strip { background: #f7f4ee; }
@media (max-width: 720px) {
  .grid2, .dl, .next-card { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
  .next-actions { flex-direction: row; flex-wrap: wrap; }
  .next-actions .btn { flex: 1 1 auto; min-height: 40px; text-align: center; }
  .wrap { padding: 12px 12px 48px; }
  .panel { padding: 14px; margin: 12px 0; }
  .funnel-note { font-size: 12px; margin-bottom: 10px; }
  .banner, .banner-primary, .banner-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  }
  .metric { padding: 10px; min-width: 0; }
  .metric strong { font-size: 18px; }
  .metric span { font-size: 11px; }
  table.slate { font-size: 13px; }
  table.slate th, table.slate td { padding: 8px 6px; }
  table.slate .col-why { display: none; }
  .snapshot-panel { margin-top: 12px; }
}
@media (max-width: 480px) {
  .subtitle { display: none; }
  .banner-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel-note { display: none; }
  .topnav a { padding: 8px 10px; min-height: 36px; }
  .snapshot-panel { padding: 12px; }
  .metric { padding: 8px; }
  .metric strong { font-size: 17px; }
  /* Stack urgency tables as cards — keeps actions usable without horizontal page scroll */
  table.slate.desk-list thead { display: none; }
  table.slate.desk-list,
  table.slate.desk-list tbody,
  table.slate.desk-list tr,
  table.slate.desk-list td {
    display: block;
    width: 100%;
  }
  table.slate.desk-list tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    margin: 0 0 10px;
    background: #fffcf7;
  }
  table.slate.desk-list td {
    border: none;
    padding: 4px 0;
  }
  table.slate.desk-list td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
  table.slate.desk-list td[data-label="Company"]::before { display: none; }
  table.slate.desk-list .col-contact { display: block; }
  table.slate.desk-list .actions { gap: 6px; }
  table.slate.desk-list .actions .btn { flex: 1 1 calc(50% - 6px); text-align: center; min-height: 40px; }
  .next-actions { flex-direction: column; }
  .next-actions .btn { width: 100%; }
}
.fallback code { display: block; background: #f7f4ee; padding: 8px; border-radius: 8px; margin: 6px 0; font-size: 12px; overflow-x: auto; }
.prep-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 12px;
  font-size: 0.92rem;
}
.prep-table th, .prep-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  vertical-align: top;
}
.prep-out {
  display: block; white-space: pre-wrap; background: #f7f4ee; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; font-size: 12px; max-height: 240px; overflow: auto; margin: 10px 0 0;
}
.bridges { margin: 0; padding-left: 18px; font-size: 14px; }
.bridges li { margin: 8px 0; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { margin: 10px 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.history-provenance { opacity: 0.75; font-size: 12px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #f7f4ee; color: var(--muted);
}
.badge.recon { background: #fff0e8; color: var(--action); }
.badge.urgency-overdue { background: #fcebEB; color: var(--danger); }
.badge.urgency-due_today { background: var(--accent-soft); color: var(--accent); }
.badge.urgency-missing_date { background: #fff8e8; color: var(--warn); }
.badge.urgency-upcoming { background: #f0f2f5; color: var(--muted); }
.badge.booking { background: #fff0e8; color: var(--action); }
.badge.status-recommended { background: #e8f5e8; color: #1a5a1a; font-weight: 700; }
.badge.status-testing { background: #fff0e8; color: var(--action); }
.badge.status-draft { background: #fff8e8; color: var(--warn); }
.badge.status-retired { background: #f0f0f0; color: #888; }
.playbook-call-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.playbook-call-head h2 { margin: 0; }
.playbook-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 12px 0 6px; font-family: inherit; }
.playbook-text { font-size: 15px; line-height: 1.4; margin: 8px 0; white-space: pre-wrap; }
.playbook-close { margin-top: 10px; }
.playbook-block { margin: 8px 0 12px; }
.playbook-details { margin: 10px 0; }
.playbook-details summary { cursor: pointer; font-weight: 650; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.playbook-quick { margin: 10px 0 0; }
.playbook-quick dt { margin-top: 10px; font-weight: 650; font-size: 13px; }
.playbook-quick dd { margin: 4px 0 0; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.script-card {
  background: #faf8f4; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; margin: 10px 0;
}
.script-card.recommended { border-color: #9dcaa0; background: #f5faf5; }
.script-card.retired { opacity: 0.85; }
.badge.format { background: #eef0f8; color: #3d4a6b; }
.badge.next { background: var(--action); color: #fff; }
.badge.status-idea { background: #f0f2f5; color: var(--muted); }
.badge.status-draft { background: #fff8e8; color: var(--warn); }
.badge.status-ready { background: var(--accent-soft); color: var(--accent); }
.badge.status-published { background: #e8f0ff; color: #1a4a8a; }
.badge.status-testing { background: #fff0e8; color: var(--action); }
.badge.status-proven { background: #e8f5e8; color: #1a5a1a; }
.badge.status-retired { background: #f0f0f0; color: #888; }
.social-dashboard .social-qa { margin-top: 14px; }
.social-compact .social-qa { margin-bottom: 12px; }
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}
.pipeline-col {
  background: #faf8f4;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 120px;
}
.pipeline-col-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  font-family: inherit;
}
.content-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.content-card-next {
  border-color: #c48a6a;
  box-shadow: 0 0 0 1px rgba(194, 75, 26, 0.18);
}
.content-card-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.content-title { font-size: 15px; margin: 0 0 6px; font-family: inherit; font-weight: 650; line-height: 1.35; }
.content-problem { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.content-meta { margin: 8px 0; }
.content-notes { margin: 8px 0 0; font-size: 12px; }
.status-advance { display: flex; gap: 6px; margin-top: 10px; align-items: center; }
.status-advance select { flex: 1; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); font: inherit; }
.pipeline-empty { margin: 0; font-size: 12px; }
.social-form .grid2 { max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.commercial-close .commercial-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0 0 14px;
}
.commercial-close .metric-ok { background: var(--accent-soft); border-color: #c7dedb; }
.commercial-close .ok-inline { color: var(--ok); }
.commercial-forms { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.commercial-row, .commercial-stack {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f4;
}
.commercial-stack { flex-direction: column; align-items: stretch; }
.commercial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px;
}
.commercial-close label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.commercial-close input, .commercial-close select {
  font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink);
  min-width: 0; width: 100%;
}
.commercial-dl { margin-top: 4px; }
.commercial-overpay-attention {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #ead9a8;
  color: var(--ink);
}
.commercial-overpay-title { margin: 0 0 8px; color: var(--warn); }
.commercial-overpay-dl { margin: 0; }
.commercial-overpay-actions { border-color: #ead9a8; background: #fffdf6; }
.commercial-notice-preview { margin-top: 4px; }
.commercial-notice-body {
  margin: 6px 0 0;
  padding: 10px 12px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.commercial-overpay-resolved { margin-top: 4px; }
@media (max-width: 640px) {
  .commercial-row { flex-direction: column; align-items: stretch; }
  .commercial-row .btn { width: 100%; }
}

/* Founding Client Campaign */
.founding-campaign { border-color: #c9d6e8; background: linear-gradient(180deg, #f5f8fc 0%, var(--card) 55%); }
.founding-campaign .founding-metrics { margin-top: 8px; }
.founding-campaign .metric-ok { background: var(--accent-soft); border-color: #c7dedb; }
.founding-hint { margin: 10px 0 8px; }
.founding-empty { margin: 8px 0; }
.founding-positions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 8px 0 10px;
}
.founding-seat {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
}
.founding-seat.filled { border-color: #c7dedb; background: var(--accent-soft); }
.founding-seat.open { border-style: dashed; }
.founding-seat strong { display: block; font-size: 13px; margin-bottom: 4px; }
.founding-first5 {
  margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #b7c9e0; background: #eef4fb;
}
.founding-first5-banner { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.call-queue-metrics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 10px; }
.founding-call1 { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.founding-call1-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.founding-call-num {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: #1f4b7a; color: #fff; font-size: 12px; font-weight: 700;
}
.founding-section-label {
  margin: 12px 0 4px; font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.founding-section-label strong { font-weight: 750; color: var(--ink); letter-spacing: 0.05em; }
.founding-opener {
  margin: 4px 0 8px; padding: 10px 12px; border-left: 3px solid #1f4b7a;
  background: #f7fafc; font-size: 14px; line-height: 1.45;
}
.founding-discovery { margin: 4px 0 8px; font-size: 14px; line-height: 1.45; }
.founding-listen { margin: 8px 0; }
.warm-panel {
  margin: 10px 0 12px; padding: 10px 12px;
  border-radius: 8px; border: 1px solid #d2c4a8; background: #fbf8f1;
}
.warm-panel-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px;
}
.warm-panel-head .founding-section-label { margin: 0; }
.warm-status {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px;
}
.warm-status-off { background: #eee6d6; color: #5c4b2a; }
.warm-status-on { background: #dceee0; color: #1f5a2e; }
.warm-hint { margin: 6px 0 8px; }
.warm-mark-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px;
}
.warm-channel-label, .warm-note-label {
  display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted);
}
.warm-note-label input { min-width: 14rem; }
.edge-case-list {
  white-space: pre-wrap; font: inherit; margin: 4px 0 8px;
  padding: 8px 10px; background: #f7fafc; border-left: 3px solid #6b879e;
}
.anchor-compat {
  position: relative; top: -1px; width: 0; height: 0; overflow: hidden;
  display: block;
}
.call-learning-dl {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0;
  font-size: 14px;
}
.call-learning-dl dt { color: var(--muted); font-weight: 650; }
.call-learning-dl dd { margin: 0; }
.script-block { margin: 8px 0 10px; }
.script-block-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px;
}
.script-block-head .founding-section-label { margin: 0; }
.script-block-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.script-edit-form { margin-top: 6px; }
.script-edit-form textarea {
  width: 100%; min-height: 6.5rem; box-sizing: border-box;
  font: inherit; line-height: 1.45; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.script-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.script-scope { margin: 0 0 6px; }
.script-saved { margin: 4px 0 6px; font-size: 13px; }
.script-full-spoken { margin: 10px 0 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.founding-deeper { margin: 8px 0 4px; }
.founding-deeper > summary {
  cursor: pointer; font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.founding-call1-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.active-call-secondary { margin: 8px 0 0; }
.founding-phone-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 8px 0 10px; padding: 10px 12px;
  border-radius: 8px; background: #f3f7fb; border: 1px solid #c5d4e8;
}
.founding-phone-label { font-size: 13px; color: var(--muted); font-weight: 650; }
.founding-phone-num { font-size: 18px; letter-spacing: 0.02em; color: var(--ink); }
.founding-phone-copy { font-size: 13px; }
.founding-phone-missing { margin: 8px 0 10px; }
.founding-first5-list { margin: 10px 0 0 18px; }
.founding-call-card { margin: 12px 0; padding: 12px; border-radius: 12px; border: 1px solid #b7c9e0; background: #f5f8fc; }
.founding-outcome-guide { margin-top: 10px; }
.founding-form label, .founding-fill label {
  display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 8px;
}
.founding-form input, .founding-form select, .founding-form textarea,
.founding-fill select {
  font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); width: 100%;
}
.founding-form-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px;
}
.founding-score { margin-top: 10px; }
.founding-score > summary {
  cursor: pointer; font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.founding-score-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px;
}
@media (max-width: 640px) {
  .founding-positions { grid-template-columns: 1fr; }
}

/* —— Learning progress (intelligence surface) —— */
.learning-wrap { max-width: 1180px; }
.learning-fixture-banner { margin-bottom: 8px; }
.badge.learning-fixture-badge {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px;
  background: #fff8e8; border: 1px solid #ead9a8; color: var(--warn);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.learning-desk-strip { padding: 12px 16px; }
.learning-desk-line { margin: 0; font-size: 14px; font-weight: 650; }
.learning-desk-line a { text-decoration: none; color: var(--ink); }
.learning-desk-line a:hover { color: var(--accent); }
.learning-trend { margin: 0 0 12px; font-size: 14px; }
.learning-score-grid .delta { font-style: normal; font-weight: 700; color: var(--accent); margin-left: 4px; }
.learning-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 960px) {
  .learning-charts {
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }
  .learning-charts .learning-chart-panel:last-child {
    grid-column: 1 / -1;
  }
}
.learning-chart-panel { min-width: 0; }
.learning-chart-sub { margin-top: -4px; margin-bottom: 10px; }
.learning-chart-legend {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; font-size: 12px; color: var(--muted);
}
.learning-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.learning-legend-swatch {
  width: 12px; height: 3px; border-radius: 2px; display: inline-block;
}
.learning-chart-frame {
  background: #faf8f4; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px 4px;
}
.learning-chart-svg { display: block; width: 100%; height: auto; max-height: 240px; }
.learning-axis { stroke: var(--line); stroke-width: 1; }
.learning-axis-label { fill: var(--muted); font-size: 11px; font-family: "Segoe UI", system-ui, sans-serif; }
.learning-x-label { fill: var(--muted); font-size: 11px; font-family: "Segoe UI", system-ui, sans-serif; }
.learning-annotation {
  margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid var(--warn);
  background: #fff8e8; color: var(--warn); font-weight: 650;
}
.learning-empty {
  padding: 16px; border: 1px dashed var(--line); border-radius: 10px; background: #faf8f4;
  color: var(--muted); font-size: 14px;
}
.learning-empty p { margin: 0; }
.learning-event-list { list-style: none; margin: 0; padding: 0; }
.learning-event-row { border-bottom: 1px solid var(--line); }
.learning-event-row:last-child { border-bottom: none; }
.learning-event-row.is-selected { background: var(--accent-soft); }
.learning-event-link {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}
.learning-event-link:hover { background: #f7fbfa; }
.learning-event-icon { font-weight: 700; color: var(--accent); text-align: center; }
.learning-event-target { font-weight: 650; overflow-wrap: anywhere; }
.learning-event-summary { color: var(--muted); font-size: 13px; }
.learning-event-detail {
  margin-top: 14px; padding: 14px; border-radius: 10px;
  border: 1px solid #b7d4d0; background: linear-gradient(180deg, #f7fbfa 0%, var(--card) 48%);
}
.learning-event-detail h3 { margin-top: 0; font-size: 18px; }
.learning-detail-dl { margin: 0; }
.learning-detail-dl dt { margin-top: 8px; }
.learning-investigate { margin-top: 12px; font-style: italic; }
.learning-compact .actions { margin-top: 8px; }
.learning-subnav { margin-top: 8px; }
.lc-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lc-collection-list { display: grid; gap: 14px; }
.lc-collection-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--card);
}
.lc-collection-card.lc-card-private {
  border-color: #c98989;
  background: linear-gradient(180deg, #fdf4f4 0%, var(--card) 42%);
}
.lc-collection-card.lc-card-ckh-ship {
  border-color: #b7d4d0;
  background: linear-gradient(180deg, #f7fbfa 0%, var(--card) 42%);
}
.lc-collection-head h3 { margin: 0 0 4px; font-size: 18px; }
.lc-purpose { margin: 8px 0 12px; font-size: 14px; color: var(--ink); }
.lc-collection-dl { margin: 0; }
.lc-ship-banner {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.lc-ship-never {
  background: #fcebEB;
  border: 1px solid #e2b6b6;
  color: var(--danger);
}
.lc-ship-ckh {
  background: #eef7f5;
  border: 1px solid #b7d4d0;
  color: var(--accent);
}
.lc-learning-list { margin: 0 0 12px; padding-left: 1.2rem; }
.lc-learning-list .badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f0eeea;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.intel-report-list { display: grid; gap: 12px; }
.intel-report-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--card);
}
.intel-report-card h3 { margin: 0 0 6px; }
.intel-diagnostics { margin-top: 16px; }
.intel-diagnostics summary { cursor: pointer; font-weight: 650; }
