:root {
  --navy: #1d3f72;
  --navy-dark: #15305a;
  --clay: #9a4530;
  --green: #3f6b45;
  --bg: #e9edf5;
  --white: #ffffff;
  --ink: #16181c;
  --ink-soft: #4b4f56;
  --gray: #8b8e94;
  --gray-light: #b7b9bd;
  --line: #dcdde0;
  --amber: #b9791f;
  --amber-bg: #fbf0dc;
  --red: #a83f2c;
  --surface-alt: #f2f2f0;
  --badge-care-bg: #dfeee2;
  --badge-warm-bg: #f6e2dc;
  --cube-edge: #c7c9cd;
  --cube-halo-fill: rgba(139, 142, 148, 0.07);
  --cube-halo-stroke: rgba(139, 142, 148, 0.18);
  --dot-dim: #d5d6d9;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --font-sans: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --navy: #6f93cc;
    --navy-dark: #5078b3;
    --clay: #d6845f;
    --green: #6fa87a;
    --bg: #14171b;
    --white: #1b1f24;
    --ink: #e8e9ea;
    --ink-soft: #a8acb3;
    --gray: #83878e;
    --gray-light: #52565d;
    --line: #2c3038;
    --amber: #d9a256;
    --amber-bg: #2e2618;
    --red: #d9705a;
    --surface-alt: #21252b;
    --badge-care-bg: #1d2e22;
    --badge-warm-bg: #33201c;
    --cube-edge: #4a4f57;
    --cube-halo-fill: rgba(120, 130, 145, 0.1);
    --cube-halo-stroke: rgba(120, 130, 145, 0.22);
    --dot-dim: #454951;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --navy: #6f93cc;
  --navy-dark: #5078b3;
  --clay: #d6845f;
  --green: #6fa87a;
  --bg: #14171b;
  --white: #1b1f24;
  --ink: #e8e9ea;
  --ink-soft: #a8acb3;
  --gray: #83878e;
  --gray-light: #52565d;
  --line: #2c3038;
  --amber: #d9a256;
  --amber-bg: #2e2618;
  --red: #d9705a;
  --surface-alt: #21252b;
  --badge-care-bg: #1d2e22;
  --badge-warm-bg: #33201c;
  --cube-edge: #4a4f57;
  --cube-halo-fill: rgba(120, 130, 145, 0.1);
  --cube-halo-stroke: rgba(120, 130, 145, 0.22);
  --dot-dim: #454951;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

h1, h2, h3 { margin: 0; }

/* ---------- topbar ---------- */

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stepper-row {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  opacity: 0.8;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.step-badge {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.2px solid var(--gray-light);
  color: var(--gray-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 600;
  flex: none;
}

.step.done .step-badge {
  border-color: var(--navy);
  color: var(--navy);
}
.step.done { color: var(--ink-soft); }

.step.current .step-badge {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.step.current { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
}

.btn-nav {
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
}
.btn-nav:hover { background: var(--navy-dark); }

.hidden { display: none !important; }

.link-nav {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.link-nav:hover { text-decoration: underline; }

.round-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.round-picker input {
  width: 56px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--white);
  color: var(--ink);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 20px;
}
.btn-primary:hover { background: var(--navy-dark); }
.btn-block { width: 100%; display: block; }
.btn-ghost-navy {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
}
.btn-ghost-navy:hover { background: var(--badge-care-bg); }

/* ---------- step 3: live workspace ---------- */

.workspace-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 46px;
}
@media (max-width: 900px) {
  .workspace-split { grid-template-columns: 1fr; }
}
.workspace-left, .workspace-right {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.workspace-left-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 18px 0;
  margin-bottom: 6px;
}
.workspace-draft {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
  padding: 10px 18px 20px;
  outline: none;
}
.draft-line { cursor: pointer; transition: outline-color 0.15s; }
.draft-line:hover { outline: 1.5px solid var(--gray-light); }
.draft-line.line-active { outline: 1.5px solid var(--navy); }
.workspace-right { position: sticky; top: 80px; }
@media (max-width: 900px) { .workspace-right { position: static; } }
.workspace-tabs { display: flex; border-bottom: 1px solid var(--line); }
.workspace-tab {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 8px;
  border: none;
  background: none;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.workspace-tab.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 700; }
#reactions-panel, #panel-chat { padding: 18px 20px; }
.thought-summary {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.line-insight {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--badge-care-bg);
  border-left: 3px solid var(--green);
  padding: 10px 12px;
  margin: 0;
}
.line-insight.pending { color: var(--ink-soft); font-style: italic; background: var(--surface-alt); border-left-color: var(--gray-light); }
#reactions-line .rail-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding: 2px 0 2px 12px;
  margin: 10px 0 14px;
}
#reactions-line .react-cards { display: flex; flex-direction: column; gap: 10px; }

#panel-chat { display: flex; flex-direction: column; height: 460px; }
#panel-chat[hidden] { display: none; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.chat-msg {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: var(--radius);
  max-width: 90%;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--navy);
  color: var(--white);
}
.chat-msg-assistant {
  align-self: flex-start;
  background: var(--surface-alt);
  color: var(--ink);
}
.chat-msg-assistant.pending { color: var(--ink-soft); font-style: italic; }
.chat-msg-assistant.error { background: var(--badge-warm-bg); color: var(--red); }
.chat-input-row { display: flex; gap: 8px; }
.chat-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.chat-input:focus { border-color: var(--navy); }
#chat-send { padding: 9px 16px; font-size: 13px; }
.chat-ref {
  display: inline;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--badge-care-bg);
  border: none;
  border-radius: 3px;
  padding: 0 4px;
  cursor: pointer;
  text-decoration: underline;
}
.chat-msg-user .chat-ref { color: var(--white); background: rgba(255,255,255,0.18); }
.chat-ref:hover { background: var(--amber-bg); color: var(--amber); }

@keyframes flash-pop {
  0% { outline: 2px solid var(--navy); background-color: var(--badge-care-bg); }
  100% { outline: 2px solid transparent; background-color: transparent; }
}
.flash-pop { animation: flash-pop 1.2s ease-out; }

/* ---------- layout ---------- */

main { padding: 56px 32px 96px; }

.screen { display: none; }
.screen.active { display: block; }

.page { margin: 0 auto; }
.page-narrow { max-width: 620px; }
.page-narrow.center { text-align: center; }
.page-wide { max-width: 1200px; }
.page-panel {
  max-width: 1080px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.panel-main {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.panel-main .lede { margin-left: auto; margin-right: auto; }
.panel-trust-aside {
  width: 360px;
  flex: none;
  text-align: left;
}
.panel-trust-aside .mono-label { margin-bottom: 6px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 18px;
}

.headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 34px;
}
.page-narrow.center .lede { margin-left: auto; margin-right: auto; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: -14px 0 34px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-item { display: flex; flex-direction: column; gap: 6px; }
.feature-icon { width: 22px; height: 22px; color: var(--navy); margin-bottom: 2px; }
.feature-title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0; }
.feature-caption { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* ---------- step 1: specs table ---------- */

.specs-table {
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 20px;
}
.specs-row {
  display: flex;
  border-top: 1px solid var(--line);
}
.specs-row:first-child { border-top: none; }
.specs-key {
  flex: 0 0 130px;
  background: var(--surface-alt);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 14px 16px;
}
.specs-val {
  flex: 1;
  padding: 14px 18px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- step 1: composer ---------- */

.composer {
  border: 1px solid var(--line);
  background: var(--white);
}
.composer-tabs {
  display: flex;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
.tab {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  background: transparent;
  border: none;
  padding: 13px 18px;
  cursor: pointer;
  border-right: 1px solid var(--line);
}
.tab.active {
  background: var(--white);
  color: var(--ink);
}
.composer-body { padding: 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

#content-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
  padding: 20px;
  margin-bottom: 24px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
#content-input:focus { border-color: var(--navy); }

.field-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.field-col { display: flex; flex-direction: column; }
.field-col-grow { flex: 1; min-width: 220px; }
.field-col .source-input,
.field-col .city-toggle { margin-bottom: 0; }

.source-input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.source-input:focus { border-color: var(--navy); }

.city-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.city-toggle-btn {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray);
  background: var(--white);
  border: none;
  padding: 9px 22px;
  cursor: pointer;
}
.city-toggle-btn + .city-toggle-btn { border-left: 1px solid var(--line); }
.city-toggle-btn.active { background: var(--navy); color: var(--white); }
.city-toggle-btn:hover:not(.active) { background: var(--surface-alt); }

/* ---------- step 1: context quiz ---------- */

.context-block { margin-bottom: 24px; }

.toggle-context {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.toggle-context:hover { background: var(--surface-alt); border-color: var(--navy); }

.quiz {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
}

.quiz-progress { display: flex; gap: 6px; margin-bottom: 16px; }
.quiz-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--line); }
.quiz-dot.done { background: var(--navy); }
.quiz-dot.current { background: var(--navy); width: 18px; border-radius: 4px; }

.quiz-q {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}

.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
}
.choice-chip:hover { border-color: var(--navy); }
.choice-chip.selected { background: var(--navy); border-color: var(--navy); color: var(--white); }

.detail-toggle {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--gray);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.detail-toggle:hover { color: var(--navy); }
.detail-input { margin-top: 8px; }
.detail-input[hidden] { display: none; }
.detail-input input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.detail-input input:focus { border-color: var(--navy); }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; gap: 12px; }
.quiz-nav-left { display: flex; gap: 16px; }
.quiz-link {
  background: none; border: none; color: var(--gray); font-family: var(--font-sans); font-size: 12.5px;
  font-weight: 600; cursor: pointer; padding: 0;
}
.quiz-link:hover { color: var(--ink); }
.quiz-link[disabled] { opacity: 0.35; cursor: default; pointer-events: none; }
.quiz-next {
  background: var(--navy); color: var(--white); border: none; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; padding: 9px 18px; cursor: pointer;
}
.quiz-next:hover { background: var(--navy-dark); }

.context-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px 18px;
}
.summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.link-edit {
  background: none; border: none; color: var(--navy); font-family: var(--font-sans); font-size: 12.5px;
  font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0;
}
.link-edit:hover { color: var(--navy-dark); }

.history-context-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.history-context-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.source-line {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
  margin: 0 0 10px;
}
.source-line b { color: var(--ink-soft); font-weight: 600; }

/* Panel switch under Simulate your draft: off → "Local" (Haiku panel), on → "Live" (live.js) */
.panel-toggle-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.panel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.panel-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.panel-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.panel-toggle-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.15s ease;
}
.panel-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.panel-toggle input:checked + .panel-toggle-track { background: var(--navy); }
.panel-toggle input:checked + .panel-toggle-track::after { transform: translateX(16px); }
.panel-toggle:has(input:checked) .panel-toggle-label { color: var(--navy); }
.panel-toggle input:focus-visible + .panel-toggle-track { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .panel-toggle-track, .panel-toggle-track::after { transition: none; }
}

.history-section { margin-top: 34px; }
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
}
.history-item:hover { border-color: var(--navy); }
.history-item-open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  color: inherit;
  appearance: none;
  border-radius: 0;
}
.history-title {
  font-size: 13.5px;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gray);
  flex: none;
  white-space: nowrap;
}
.history-outcome-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.history-predicted {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--clay);
  flex: 1;
  min-width: 0;
}
.history-outcome-label {
  font-size: 11.5px;
  color: var(--gray);
  flex: none;
}
.history-outcome-group {
  display: inline-flex;
  border: 1px solid var(--line);
  flex: none;
}
.history-outcome-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  background: var(--white);
  border: none;
  padding: 4px 9px;
  cursor: pointer;
  white-space: nowrap;
}
.history-outcome-btn + .history-outcome-btn { border-left: 1px solid var(--line); }
.history-outcome-btn.active { background: var(--navy); color: var(--white); }
.history-outcome-btn:hover:not(.active) { background: var(--surface-alt); }
.history-empty {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--gray-light);
  font-style: italic;
  margin: 0;
}

.link-input {
  width: calc(100% - 40px);
  margin: 20px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}
.link-input:focus { border-color: var(--navy); }
.link-hint {
  margin: 0 20px 20px;
  font-size: 12.5px;
  color: var(--gray);
  font-family: var(--font-sans);
}

.real-panel-toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.real-panel-toggle input { margin-top: 2px; flex: none; }

/* ---------- step 2 ---------- */

.big-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
}
.status-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.status-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.polled-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 168px;
  flex: none;
}
.polled-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.polled-cell svg { width: 60%; height: 60%; fill: currentColor; }
.polled-cell.dim { background: var(--gray-light); opacity: 0.5; }

.persona-reveal { display: flex; flex-direction: column; align-items: center; }
.persona-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.35s ease;
}
.persona-card.fade-out { opacity: 0; }
.persona-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.persona-avatar svg { width: 28px; height: 28px; }
.persona-headline {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 6px 0 2px;
  text-align: center;
}
.persona-subline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 14px;
  text-align: center;
}
.persona-details { width: 100%; margin: 0; }
.persona-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  text-align: left;
}
.persona-detail-row dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  flex: none;
  padding-top: 1px;
}
.persona-detail-row dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}
.persona-progress {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 16px 0 0;
}

.trust-layers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
}
.trust-layer {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--white);
}
.trust-layer-1 { border-color: var(--green); }
.trust-layer-2 { border-color: var(--amber); }
.trust-layer-3 { border-color: #8a4a99; }
.trust-layer-4 { border-color: var(--navy); }
.trust-layer-5 { border-color: var(--red); }
.trust-layer-head {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 5px;
}
.trust-layer-1 .trust-layer-head { color: var(--green); }
.trust-layer-2 .trust-layer-head { color: var(--amber); }
.trust-layer-3 .trust-layer-head { color: #8a4a99; }
.trust-layer-4 .trust-layer-head { color: var(--navy); }
.trust-layer-5 .trust-layer-head { color: var(--red); }
.trust-layer-body {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--ink-soft);
  margin: 0;
}
.trust-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 10px 0 0;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.trust-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-light);
  margin: 0;
}

/* ---------- step 3 ---------- */

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.panel-header-text { max-width: 560px; }
.h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.p-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.p-small {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
  margin: 6px 0 16px;
}

.exec-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 8px;
}
.exec-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.exec-stat { text-align: right; }
.exec-stat .status-mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 2px;
}
.pie-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pie-chart {
  width: 169px;
  height: 169px;
  border-radius: 50%;
  background: var(--gray-light);
  flex: none;
  transition: background 0.3s ease;
}
.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.pie-legend-row { display: flex; align-items: center; gap: 8px; }
.pie-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pie-dot.positive { background: var(--green); }
.pie-dot.neutral { background: var(--amber); }
.pie-dot.negative { background: var(--red); }
.attention-text, .heatmap-text {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.85;
}
.attention-text { white-space: pre-wrap; }
.attn-1, .attn-2, .attn-3, .attn-4 { position: relative; cursor: help; }
.attn-1 { font-weight: 500; }
.attn-2 { font-size: 1.1em; font-weight: 600; color: var(--ink); }
.attn-3 { font-size: 1.22em; font-weight: 700; color: var(--navy); }
.attn-4 { font-size: 1.36em; font-weight: 800; color: var(--navy-dark); }

.attn-tooltip {
  position: absolute;
  bottom: 100%;
  left: 0;
  transform: translateY(-6px);
  width: 240px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.attn-1:hover .attn-tooltip,
.attn-2:hover .attn-tooltip,
.attn-3:hover .attn-tooltip,
.attn-4:hover .attn-tooltip {
  visibility: visible;
  opacity: 1;
}
.attn-tooltip-count {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.attn-tooltip-row {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.85);
}
.attn-tooltip-row:last-of-type { margin-bottom: 0; }
.attn-tooltip-demo {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1px;
}
.attn-tooltip-more {
  display: block;
  margin-top: 4px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}

.heat-seg { padding: 1px 3px; border-radius: 4px; }
.heat-seg.positive { background: var(--badge-care-bg); }
.heat-seg.neutral { background: var(--amber-bg); }
.heat-seg.negative { background: var(--badge-warm-bg); }
.fold-marker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--clay);
  border-top: 1px dashed var(--clay);
  padding-top: 6px;
  margin: 10px 0 4px;
}

.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 18px;
}

.cluster-field {
  /* full-bleed: break out of the page's max-width column so the drag
     canvas gets the whole viewport to work with, not just the reading
     column's width. Height is set from JS to fit whatever's inside it —
     no scrolling, the box just grows. */
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  min-height: 300px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: visible;
  touch-action: none;
}
.cluster-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}
.rope-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.rope-layer path { fill: none; stroke: var(--navy); stroke-linecap: round; }

.cluster-group { position: absolute; }
.bubble {
  position: absolute;
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
}
.bubble.dragging { cursor: grabbing; z-index: 50 !important; }

.topic-bubble { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 2px; }
.topic-pill {
  border-radius: 60px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  padding: 10px 16px;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.12), 0 6px 16px rgba(20, 30, 50, 0.08);
  white-space: nowrap;
}
.ask-btn {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.12);
  transition: background 0.15s, transform 0.15s;
  padding: 0;
}
.ask-btn:hover { background: var(--navy); color: var(--white); transform: scale(1.08); }
.ask-btn:active { transform: scale(0.95); }
.ask-btn svg { width: 14px; height: 14px; display: block; }
.ask-btn.asking { animation: cluster-pulse 0.9s ease-in-out infinite; }
@keyframes cluster-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.ask-popover {
  position: absolute;
  top: 34px;
  left: 0;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(20, 30, 50, 0.1), 0 12px 28px rgba(20, 30, 50, 0.12);
  padding: 10px;
  z-index: 60;
  cursor: default;
}
.ask-popover[hidden] { display: none; }
.ask-popover-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.ask-popover-row { display: flex; gap: 6px; }
.ask-popover-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.ask-popover-input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.ask-popover-send {
  flex: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
}
.ask-popover-send:disabled { opacity: 0.5; cursor: default; }

.point-bubble {
  /* width: max-content, not auto — an absolutely positioned auto-width box
     computes its wrap width from the space left in its containing block at
     its CURRENT position, so without this, dragging a bubble changes how
     its text wraps. max-content sizes from content alone, independent of
     position; max-width still caps very long text. */
  width: max-content;
  max-width: 150px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10.5px;
  line-height: 1.3;
  padding: 7px 10px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.06);
}
.point-bubble.new { animation: cluster-pop-in 0.35s ease-out; }
@keyframes cluster-pop-in { from { opacity: 0; transform: scale(0.6); } }
.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.theme-chip b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy);
}

/* ---------- thought-process carousel ---------- */

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 10px;
}
.carousel-nav { display: flex; gap: 6px; }
.carousel-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.carousel-btn:hover { border-color: var(--navy); color: var(--navy); }

.thought-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.thought-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.thought-text {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}
.badge-attn.caught { background: var(--badge-care-bg); color: var(--green); }
.badge-attn.scrolled { background: var(--surface-alt); color: var(--gray); }
.badge-attn.folded { background: var(--amber-bg); color: var(--amber); }
.badge-think { background: var(--amber-bg); color: var(--amber); }
.card-readthrough {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.comments-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.comments-list { display: flex; flex-direction: column; gap: 10px; }
.comment-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13.5px;
}
.comment-card.posted { border-left-color: var(--navy); }
.comments-more { display: flex; flex-direction: column; gap: 10px; }
.comments-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 0 0;
}
.comments-toggle:hover { color: var(--navy-dark); }
.comment-empty {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--gray-light);
  font-style: italic;
  margin: 0;
  padding: 10px 0;
}
.comment-anxiety {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- engagement map (sentiment x anxiety) ---------- */

.engagement-map-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px 20px 0;
}
.engagement-axis-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 46px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-light);
  padding: 2px 0 10px;
}
#engagement-svg { flex: 1; min-width: 0; width: 100%; height: auto; display: block; }
.engagement-axis-x {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-light);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0 20px 10px calc(46px + 10px + 20px);
}
.eng-quad { opacity: 0.55; }
.eng-quad-negative { fill: var(--badge-warm-bg); }
.eng-quad-positive { fill: var(--badge-care-bg); }
.eng-quad-quiet { fill: var(--surface-alt); }
.eng-grid { stroke: var(--line); stroke-dasharray: 3 3; }
.eng-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  fill: var(--gray);
  text-transform: uppercase;
}
.eng-dot { stroke: var(--white); stroke-width: 1; }
.eng-dot.positive { fill: var(--green); }
.eng-dot.neutral { fill: var(--amber); }
.eng-dot.negative { fill: var(--red); }

.read-status-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}
.round-label {
  margin-left: auto;
  color: var(--gray-light);
}

.panel-mode-note {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--gray);
  margin: 0 0 26px;
  min-height: 1em;
}
.panel-mode-note.warn { color: var(--amber); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 10px;
}

.sending-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.sending-box p { margin: 0 0 14px; }
.sending-box p:last-child { margin-bottom: 0; }

.rerun-note {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--gray);
  margin: 10px 2px 0;
}
.rerun-note code {
  font-family: var(--font-mono);
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 4px;
}

.lines-list {
  background: var(--white);
  border: 1px solid var(--line);
}
.line-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.line-row:first-child { border-top: none; }
.line-row.hot { background: var(--amber-bg); }
.line-text {
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
  min-width: 200px;
}
.line-meta {
  flex: none;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.line-count-zero {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.line-count {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
  white-space: nowrap;
}
.btn-suggest {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--navy);
  padding: 5px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-suggest:hover { background: var(--navy); color: var(--white); }

.suggest-box {
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.suggest-box textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  resize: vertical;
}
.suggest-box .btn-save {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
  padding: 6px 12px;
  border: none;
  cursor: pointer;
}
.suggest-saved {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--green);
  margin-top: 8px;
}

/* ---------- section blocks ---------- */

.section-block { margin-bottom: 50px; }
.h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.marker { color: var(--red); font-size: 13px; }

/* harshest five */

.harsh-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.harsh-card, .everyone-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  padding: 14px 15px;
  font-size: 13px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}
.harsh-card.rank-1 { border-left-color: var(--red); }
.harsh-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.harsh-card.rank-1 .harsh-rank { background: var(--red); }

.card-demo .badge-emotion { margin-left: 8px; }
.card-demo {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--gray);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex: none;
}
.card-avatar svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.card-quote {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 10px;
  flex: 1;
}
.card-on-line {
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: var(--gray);
  margin-bottom: 4px;
}
.card-on-line-text {
  font-style: italic;
  color: var(--ink-soft);
  display: block;
  margin-top: 2px;
}
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}
.badge-emotion {
  background: var(--badge-care-bg);
  color: var(--green);
}
.badge-emotion.warm { background: var(--badge-warm-bg); color: var(--red); }
.badge-emotion.neutral { background: var(--amber-bg); color: var(--amber); }
.badge-action {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.card-translate {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  align-self: flex-start;
}

.harsh-card.reserved {
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-left-style: dashed;
  color: var(--gray-light);
}
.reserved-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* everyone grid */

.everyone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.everyone-card.dropped {
  color: var(--gray);
  font-family: var(--font-sans);
}
.everyone-card.dropped .card-demo { color: var(--ink-soft); }
.everyone-card.dropped .drop-msg {
  font-size: 11.5px;
  line-height: 1.55;
}
.everyone-card.dropped .drop-msg .err {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gray-light);
  display: block;
  margin-top: 6px;
  word-break: break-word;
}
.everyone-card.enter {
  animation: cardIn 0.35s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- cube svg ---------- */

.cube-edge { stroke: var(--cube-edge); stroke-width: 1; fill: none; }
.cube-halo { fill: var(--cube-halo-fill); stroke: var(--cube-halo-stroke); stroke-width: 1; }
.cube-centroid { fill: none; stroke: var(--navy); stroke-width: 1.2; }

.seat-dot {
  transition: fill 0.25s ease, opacity 0.25s ease, r 0.25s ease;
}
.seat-dot.dim { fill: var(--dot-dim); opacity: 0.9; }
.seat-dot.et { fill: var(--navy); }
.seat-dot.ru { fill: var(--green); }
.seat-dot.pop {
  animation: dotPop 0.4s ease both;
}
.seat-dot.flash {
  animation: dotFlash 0.5s ease both;
}
@keyframes dotPop {
  from { r: 0; opacity: 0; }
  to { opacity: 1; }
}
@keyframes dotFlash {
  0% { r: 3.2; }
  40% { r: 6; }
  100% { r: 3.6; }
}

/* ---------- personas page ---------- */

.news-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 8px;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
}
.news-list li {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.news-list li:first-child { border-top: none; }
.news-title {
  color: var(--ink);
  font-weight: 600;
}
.news-empty {
  color: var(--gray-light);
  font-style: italic;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.persona-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px 18px;
  position: relative;
}
.persona-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-light);
}
.persona-fields {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-family: var(--font-sans);
  font-size: 12.5px;
}
.persona-fields dt {
  color: var(--gray);
  font-weight: 600;
  white-space: nowrap;
}
.persona-fields dd {
  margin: 0;
  color: var(--ink-soft);
}
.persona-ocean {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
}
.persona-ocean b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .harsh-grid { grid-template-columns: repeat(2, 1fr); }
  .everyone-grid { grid-template-columns: repeat(2, 1fr); }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-header-row { flex-direction: column; }
  .comments-cols { grid-template-columns: 1fr; }
  .exec-row { justify-content: flex-start; }
  .exec-stats { gap: 24px; }
  .exec-stat { text-align: left; }
  .page-panel { flex-direction: column; }
  .panel-trust-aside { width: 100%; }
}

@media (max-width: 640px) {
  main { padding: 36px 18px 72px; }
  .headline { font-size: 32px; }
  .topbar-inner { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
  .stepper { gap: 12px; }
  .step-label { display: none; }
  .harsh-grid { grid-template-columns: 1fr; }
  .everyone-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  .news-cols { grid-template-columns: 1fr; }
  .specs-row { flex-direction: column; }
  .specs-key { flex: none; }
  .field-row { flex-direction: column; gap: 20px; }
  .field-col-grow { min-width: 0; }
  .feature-row { grid-template-columns: 1fr; gap: 18px; }
}
