:root {
  --seed-red: #aa003d;
  --seed-red-deep: #82002f;
  --seed-red-soft: #f7e7ed;
  --seed-olive: #999873;
  --seed-blue: #a7c9e2;
  --seed-orange: #eba129;
  --ink: #191a1e;
  --ink-2: #3e4249;
  --muted: #747a83;
  --line: #e5e6e4;
  --line-strong: #d8dad8;
  --canvas: #eeefec;
  --surface: #fff;
  --surface-soft: #f6f6f3;
  --surface-warm: #faf9f6;
  --shadow: 0 24px 70px rgba(24, 26, 29, .10);
  --shadow-soft: 0 10px 30px rgba(24, 26, 29, .07);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 8%, rgba(167, 201, 226, .20), transparent 28%),
    radial-gradient(circle at 92% 92%, rgba(235, 161, 41, .08), transparent 24%),
    var(--canvas);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, textarea, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 3px solid rgba(170, 0, 61, .22);
  outline-offset: 3px;
}
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-frame {
  height: 100dvh;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  padding: 0 14px 14px;
  gap: 0;
}

.app-header {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; text-decoration: none; }
.brand img { width: 43px; height: 43px; object-fit: contain; }
.brand div { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 16px; letter-spacing: -.025em; }
.brand span { color: var(--muted); font-size: 10px; letter-spacing: .02em; }
.header-spacer { min-width: 0; }
.phase-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; color: var(--seed-red); background: var(--seed-red-soft); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.icon-button, .quiet-button, .new-chat-button, .composer-icon-button, .send-button, .panel-close, .modal-close,
.widget-actions button, .message-action {
  border: 0;
  cursor: pointer;
}
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: transparent; }
.icon-button:hover { background: rgba(255,255,255,.72); }
.icon-button:disabled { opacity: .33; cursor: default; }
.icon-button svg, .quiet-button svg, .new-chat-button svg, .composer-icon-button svg, .send-button svg, .panel-close svg, .modal-close svg, .widget-actions svg, .message-action svg { width: 20px; height: 20px; }
.quiet-button { height: 42px; display: none; align-items: center; gap: 8px; padding: 0 13px; border-radius: 13px; background: rgba(255,255,255,.72); font-size: 12px; font-weight: 750; }
.quiet-button:hover { background: #fff; }
.new-chat-button { height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 16px 0 18px; border-radius: 14px; color: #fff; background: var(--seed-red); box-shadow: 0 8px 20px rgba(170,0,61,.18); font-size: 13px; font-weight: 760; }
.new-chat-button:hover { background: var(--seed-red-deep); }
.new-chat-button svg { width: 17px; height: 17px; }

.widget-header { display: none; }

.app-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 12px;
}
.conversation-pane, .insight-pane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(24,26,29,.07);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}
.conversation-pane { display: grid; grid-template-rows: minmax(0,1fr) auto; border-radius: 24px; }
.conversation { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.conversation::-webkit-scrollbar, .insight-pane::-webkit-scrollbar { width: 9px; }
.conversation::-webkit-scrollbar-thumb, .insight-pane::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #d2d4d2; background-clip: padding-box; }

.start-screen {
  min-height: 100%;
  width: min(880px, calc(100% - 56px));
  margin: 0 auto;
  padding: 48px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-mark { width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 21px; border-radius: 28px; background: linear-gradient(145deg,#fff,#f2f2ee); box-shadow: 0 17px 42px rgba(24,26,29,.11), inset 0 0 0 1px rgba(24,26,29,.04); }
.hero-mark img { width: 72px; height: 72px; object-fit: contain; }
.eyebrow { margin: 0 0 10px; color: var(--seed-red); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.start-screen h1 { margin: 0; max-width: 760px; font-size: clamp(36px, 3.4vw, 62px); line-height: 1.03; letter-spacing: -.055em; }
.hero-copy { max-width: 660px; margin: 19px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.starter-grid { width: min(790px,100%); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.starter-grid button { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; text-align: left; background: #fff; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.starter-grid button:hover { transform: translateY(-2px); border-color: #cfd1cf; box-shadow: 0 12px 28px rgba(24,26,29,.08); }
.starter-grid button > span:first-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.starter-grid strong { font-size: 13px; letter-spacing: -.015em; }
.starter-grid small { color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.starter-grid svg { width: 17px; height: 17px; color: #8b8f94; }
.starter-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; font-size: 11px; font-weight: 850; }
.starter-frame { color: var(--seed-red); background: var(--seed-red-soft); }
.starter-explore { color: #4b7692; background: #edf5fa; }
.starter-create { color: #82711a; background: #f7f1d9; }
.primary-start-button { min-height: 48px; margin-top: 18px; padding: 0 22px; border: 0; border-radius: 14px; color: #fff; background: var(--seed-red); box-shadow: 0 9px 24px rgba(170,0,61,.17); font-weight: 760; cursor: pointer; }
.primary-start-button:hover { background: var(--seed-red-deep); }
.start-note { margin: 10px 0 0; color: #95999f; font-size: 10.5px; }

.messages { width: min(820px, calc(100% - 64px)); margin: 0 auto; padding: 38px 0 28px; }
.message-row { display: grid; margin: 0 0 28px; }
.message-row.user { justify-items: end; }
.message-row.assistant { grid-template-columns: 34px minmax(0,1fr); gap: 12px; align-items: start; }
.message-avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.message-avatar img { width: 27px; height: 27px; }
.message-card { min-width: 0; }
.user .message-card { max-width: min(78%, 620px); padding: 12px 16px; border-radius: 17px 17px 5px 17px; color: #fff; background: var(--seed-red); box-shadow: 0 8px 24px rgba(170,0,61,.12); font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.user .message-card.suggested { color: #30333a; border: 1px solid #e7d8de; background: #fbf4f7; box-shadow: none; }
.suggested-label { display: block; margin-bottom: 5px; color: var(--seed-red); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.assistant .message-card { max-width: 740px; }
.message-phase { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--seed-red); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.message-phase::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--seed-red); }
.assistant-body { color: #30333a; font-size: 14.5px; line-height: 1.68; }
.assistant-body > :first-child { margin-top: 0; }
.assistant-body > :last-child { margin-bottom: 0; }
.assistant-body h1 { margin: 0 0 12px; font-size: 22px; line-height: 1.18; letter-spacing: -.035em; }
.assistant-body h2 { margin: 22px 0 9px; font-size: 15.5px; line-height: 1.3; letter-spacing: -.018em; }
.assistant-body h1 + p, .assistant-body h2 + p { margin-top: 0; }
.assistant-body p { margin: 0 0 12px; }
.assistant-body strong { color: #292d33; font-weight: 760; }
.assistant-body em { color: #4f555d; }
.assistant-body ul, .assistant-body ol { margin: 9px 0 14px; padding-left: 22px; }
.assistant-body li { margin: 6px 0; padding-left: 2px; }
.assistant-body blockquote { margin: 15px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: #f7f7f4; }
.assistant-body a { color: var(--seed-red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.assistant-body table {
  width: 100%;
  margin: 16px 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  font-size: 13px;
  line-height: 1.48;
}
.assistant-body th,
.assistant-body td {
  padding: 11px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.assistant-body th {
  color: #34383e;
  background: #f4f4f0;
  font-weight: 780;
}
.assistant-body th:last-child,
.assistant-body td:last-child { border-right: 0; }
.assistant-body tbody tr:last-child td { border-bottom: 0; }
.assistant-body tbody tr:nth-child(even) td { background: #fbfbf9; }

@media (max-width: 720px) {
  .assistant-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .assistant-body th,
  .assistant-body td { min-width: 132px; }
}
.message-tools { display: flex; align-items: center; gap: 3px; margin-top: 8px; }
.message-action { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #878c93; background: transparent; }
.message-action:hover, .message-action.is-speaking, .message-action.is-loading { color: var(--seed-red); background: var(--seed-red-soft); }
.message-action.is-loading svg { animation: voiceActionPulse .9s ease-in-out infinite; }
@keyframes voiceActionPulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.message-action svg { width: 16px; height: 16px; }
.suggestion-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.suggestion-chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #4b5057; font-size: 11px; font-weight: 690; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.suggestion-chip:hover { border-color: rgba(170,0,61,.25); color: var(--seed-red); background: #fff9fb; }
.suggestion-chip[data-type="challenge"]::before { content: "↗"; margin-right: 6px; color: var(--seed-red); }
.suggestion-chip[data-type="create"]::before { content: "+"; margin-right: 6px; color: var(--seed-orange); font-weight: 900; }
.suggestion-chip[data-type="refine"]::before { content: "◇"; margin-right: 6px; color: var(--seed-olive); }
.suggestion-chip[data-type="explore"]::before { content: "○"; margin-right: 6px; color: #5e8daa; }
.typing-card { width: 60px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 13px; background: var(--surface-soft); }
.typing-card span { width: 5px; height: 5px; border-radius: 50%; background: #8f949b; animation: typing 1.1s infinite ease-in-out; }
.typing-card span:nth-child(2) { animation-delay: .13s; }
.typing-card span:nth-child(3) { animation-delay: .26s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

.composer-zone { padding: 12px 22px 13px; border-top: 1px solid rgba(229,230,228,.85); background: rgba(255,255,255,.93); backdrop-filter: blur(14px); }
.composer { width: min(860px,100%); min-height: 56px; margin: 0 auto; display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-strong); border-radius: 18px; background: #fff; box-shadow: 0 9px 25px rgba(24,26,29,.05); }
.composer:focus-within { border-color: rgba(170,0,61,.32); box-shadow: 0 0 0 4px rgba(170,0,61,.06), 0 9px 25px rgba(24,26,29,.05); }
.composer textarea { flex: 1; min-width: 0; max-height: 150px; resize: none; padding: 9px 0 7px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.48; }
.composer textarea::placeholder { color: #a0a4aa; }
.composer-actions { display: flex; align-items: center; gap: 5px; }
.composer-icon-button, .send-button { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; }
.composer-icon-button { color: #7a7f86; background: var(--surface-soft); }
.composer-icon-button:hover { color: var(--seed-red); background: var(--seed-red-soft); }
.composer-icon-button:disabled { opacity: .38; cursor: default; }
.voice-input-button .recording-stop-icon { display: none; }
.voice-recording .voice-input-button { color: #fff; background: var(--seed-red); box-shadow: 0 0 0 5px rgba(170,0,61,.09); }
.voice-recording .voice-input-button .microphone-icon { display: none; }
.voice-recording .voice-input-button .recording-stop-icon { display: block; }
.voice-input-status { width: min(850px,100%); min-height: 28px; margin: 7px auto 0; display: flex; align-items: center; gap: 8px; color: #737880; font-size: 10px; font-weight: 650; }
.voice-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--seed-red); box-shadow: 0 0 0 4px rgba(170,0,61,.08); animation: voicePulse 1.3s ease-in-out infinite; }
.voice-input-status time { margin-left: auto; color: #999da2; font-variant-numeric: tabular-nums; }
@keyframes voicePulse { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1); } }
.send-button { color: #fff; background: var(--seed-red); }
.send-button:hover { background: var(--seed-red-deep); }
.send-button:disabled { color: #b0b3b7; background: #ececea; cursor: default; }
.composer-meta { width: min(850px,100%); margin: 7px auto 0; display: flex; justify-content: space-between; gap: 18px; color: #9a9ea4; font-size: 9.5px; }
.composer-meta-right { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 14px; text-align: right; }
.voice-disclosure { color: #858a91; }
.composer-meta a { text-underline-offset: 2px; }

.insight-pane { overflow-y: auto; border-radius: 24px; background: rgba(255,255,255,.97); }
.insight-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.insight-header h2 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.panel-close { display: none; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: #f1f1ee; }
.workspace-empty { min-height: calc(100% - 68px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 38px 30px; text-align: center; }
.workspace-empty-mark { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 21px; background: #fff; box-shadow: 0 12px 30px rgba(24,26,29,.07); }
.workspace-empty-mark img { width: 52px; height: 52px; }
.workspace-empty h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.03em; }
.workspace-empty p { max-width: 280px; margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.58; }
.workspace-content { padding: 0 18px 22px; }
.workspace-summary { padding: 20px 2px 19px; border-bottom: 1px solid var(--line); }
.summary-topline { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.summary-topline > span:last-child { color: #8d9298; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.workspace-summary h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.26; letter-spacing: -.035em; }
.workspace-summary > p { margin: 0; color: #60656c; font-size: 11.5px; line-height: 1.55; }
.reflection-inline { margin-top: 14px; padding: 12px 13px; border-left: 2px solid var(--seed-red); border-radius: 0 11px 11px 0; background: #f7f7f4; }
.reflection-inline > span { display: block; margin-bottom: 5px; color: var(--seed-red); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.reflection-inline p { margin: 0; color: #555a61; font-size: 10.5px; line-height: 1.52; }
.workspace-section { padding: 18px 2px 17px; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-title h3 { margin: 0; font-size: 12.5px; letter-spacing: -.012em; }
.section-count { min-width: 24px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #777c82; background: #f1f1ee; font-size: 8.5px; font-weight: 800; }
.state-list { display: grid; gap: 7px; }
.state-item { padding: 11px 12px; border: 1px solid #e8e9e6; border-radius: 13px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.state-item:hover { border-color: #d8dad7; box-shadow: 0 7px 18px rgba(24,26,29,.04); }
.state-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.state-item strong { font-size: 10.5px; line-height: 1.35; }
.state-item em { flex: 0 0 auto; padding-top: 1px; color: #999da2; font-size: 7.5px; font-style: normal; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.state-item[data-kind="gap"] em { color: var(--seed-red); }
.state-item[data-kind="opportunity"] em { color: #98701c; }
.state-item[data-kind="intervention"] em { color: #6c704f; }
.state-item p { margin: 4px 0 0; color: #6a6f76; font-size: 9.8px; line-height: 1.47; }
.state-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.state-action { min-height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; color: #555a61; background: #fafaf8; font-size: 8.5px; font-weight: 750; cursor: pointer; }
.state-action:hover { border-color: rgba(170,0,61,.25); color: var(--seed-red); background: #fff8fa; }
.state-action[data-type="create"], .state-action[data-type="refine"] { color: #676b52; }
.show-more-button { margin-top: 9px; padding: 2px 0; border: 0; color: var(--seed-red); background: transparent; font-size: 9px; font-weight: 760; cursor: pointer; }
.show-more-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.next-moves-section { border-bottom: 0; }
.next-moves { display: flex; flex-wrap: wrap; gap: 7px; }
.next-move { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; text-align: left; background: #fff; cursor: pointer; }
.next-move:hover { border-color: rgba(170,0,61,.25); color: var(--seed-red); background: #fff9fb; }
.next-move span { font-size: 9.5px; font-weight: 710; }
.next-move small { color: #999da2; font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.workspace-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(23,25,28,.28); backdrop-filter: blur(3px); }
.modal-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(28,30,34,.38); backdrop-filter: blur(8px); }
.modal-card { position: relative; width: min(620px,100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 34px; border: 1px solid rgba(24,26,29,.08); border-radius: 28px; background: #fff; box-shadow: 0 30px 90px rgba(20,22,26,.25); }
.modal-mark { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 20px; background: var(--surface-soft); }
.modal-mark img { width: 52px; height: 52px; }
.modal-card h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.08; letter-spacing: -.045em; }
.privacy-intro { max-width: 540px; margin: 0 0 18px; color: #555a61; font-size: 13px; line-height: 1.58; }
.privacy-sections { display: grid; gap: 9px; }
.privacy-sections section { padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-warm); }
.privacy-sections h3 { margin: 0 0 7px; font-size: 11.5px; }
.privacy-sections p { margin: 0; color: #666b72; font-size: 10.8px; line-height: 1.58; }
.privacy-copy { display: grid; gap: 12px; margin-top: 17px; }
.privacy-copy p { margin: 0; color: #62676d; font-size: 10.8px; line-height: 1.62; }
.consent-check { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; margin: 20px 0; padding: 14px; border-radius: 14px; background: var(--surface-soft); color: #555a61; font-size: 11.5px; line-height: 1.5; }
.consent-check input { margin-top: 2px; accent-color: var(--seed-red); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-actions button { min-height: 43px; padding: 0 16px; border-radius: 12px; font-weight: 730; cursor: pointer; }
.secondary-button { border: 1px solid var(--line); background: #fff; }
.primary-button { border: 0; color: #fff; background: var(--seed-red); }
.primary-button:disabled { opacity: .42; cursor: default; }
.privacy-link { color: var(--seed-red); font-weight: 750; text-underline-offset: 3px; }
.privacy-actions { display: grid; gap: 7px; }
.privacy-actions .primary-button { width: 100%; }
.privacy-leave { border-color: transparent; background: transparent; }
.privacy-leave:hover { background: var(--surface-soft); }
.privacy-version { margin: 13px 0 0; color: #999da2; text-align: center; font-size: 9px; font-weight: 650; letter-spacing: .025em; }
.modal-close { position: absolute; top: 17px; right: 17px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-soft); }
.how-intro { max-width: 520px; margin: 0 0 21px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.how-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.how-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-warm); }
.how-grid article > span { color: var(--seed-red); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.how-grid h3 { margin: 8px 0 5px; font-size: 13px; }
.how-grid p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.how-links { display: flex; gap: 18px; margin-top: 18px; }
.how-links a { color: var(--seed-red); font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); padding: 11px 15px; border-radius: 11px; color: #fff; background: #25272c; box-shadow: 0 12px 32px rgba(0,0,0,.2); font-size: 11px; }

@media (max-width: 1120px) {
  .app-main { grid-template-columns: minmax(0,1fr) 350px; }
}

@media (max-width: 940px) {
  .quiet-button.workspace-toggle { display: inline-flex; }
  .app-main { grid-template-columns: 1fr; }
  .insight-pane { position: fixed; z-index: 40; top: 12px; right: 12px; bottom: 12px; width: min(390px,calc(100vw - 24px)); transform: translateX(calc(100% + 24px)); transition: transform .2s ease; }
  .workspace-open .insight-pane { transform: translateX(0); }
  .panel-close { display: grid; }
}

@media (max-width: 720px) {
  .app-frame { grid-template-rows: 64px minmax(0,1fr); padding: 0 8px 8px; gap: 0; }
  .app-header { padding: 0 2px; }
  .brand span, .quiet-button span, .new-chat-button span { display: none; }
  .brand img { width: 39px; height: 39px; }
  .new-chat-button { width: 42px; padding: 0; justify-content: center; }
  .conversation-pane { border-radius: 22px; }
  .start-screen { width: min(100% - 30px,680px); padding: 34px 0 28px; }
  .start-screen h1 { font-size: 38px; }
  .hero-copy { font-size: 14px; }
  .starter-grid { grid-template-columns: 1fr; }
  .messages { width: calc(100% - 30px); padding-top: 28px; }
  .user .message-card { max-width: 88%; }
  .composer-zone { padding: 9px 10px 10px; }
  .composer-meta > span:first-child { display: none; }
  .composer-meta { justify-content: flex-end; }
  .composer-meta-right { gap: 4px 10px; }
  .voice-input-status { padding: 0 4px; }
  .how-grid { grid-template-columns: 1fr; }
}

body.mode-embed { background: #fff; }
.mode-embed .app-frame { grid-template-rows: 64px minmax(0,1fr); padding: 0; gap: 0; }
.mode-embed .app-header { display: none; }
.mode-embed .widget-header { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #fff; background: var(--seed-red); }
.widget-brand { display: flex; align-items: center; gap: 9px; }
.widget-brand img { width: 39px; height: 39px; padding: 2px; border-radius: 50%; background: #fff; }
.widget-brand strong { font-size: 14px; }
.widget-actions { display: flex; gap: 3px; }
.widget-actions button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: transparent; }
.widget-actions button:hover { background: rgba(255,255,255,.12); }
.mode-embed .app-main { display: block; }
.mode-embed .conversation-pane { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.mode-embed .insight-pane { position: fixed; z-index: 40; inset: 64px 0 0 auto; width: min(390px,100%); border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: -16px 0 42px rgba(24,26,29,.14); transform: translateX(100%); transition: transform .2s ease; }
.mode-embed.workspace-open .insight-pane { transform: translateX(0); }
.mode-embed .panel-close { display: grid; }
.mode-embed .start-screen { width: calc(100% - 34px); padding: 28px 0 24px; }
.mode-embed .hero-mark { width: 70px; height: 70px; border-radius: 22px; }
.mode-embed .hero-mark img { width: 57px; height: 57px; }
.mode-embed .start-screen h1 { font-size: clamp(30px,7vw,42px); }
.mode-embed .hero-copy { margin: 14px 0 20px; font-size: 13px; }
.mode-embed .starter-grid { grid-template-columns: 1fr; }
.mode-embed .starter-grid button:nth-child(3) { display: none; }
.mode-embed .messages { width: calc(100% - 28px); padding: 24px 0 16px; }
.mode-embed .message-row.assistant { grid-template-columns: 30px minmax(0,1fr); gap: 9px; }
.mode-embed .message-avatar { width: 30px; height: 30px; }
.mode-embed .message-avatar img { width: 24px; height: 24px; }
.mode-embed .assistant-body { font-size: 13px; }
.mode-embed .suggestion-chip { font-size: 10px; }
.mode-embed .composer-zone { padding: 9px 10px 10px; }
.mode-embed .composer-meta > span:first-child { display: none; }
.mode-embed .composer-meta { justify-content: center; }
.mode-embed .composer-meta-right { justify-content: center; text-align: center; }
.mode-embed .voice-input-status { padding: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.lens-section { margin: 13px 0 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.lens-section summary { padding: 13px 15px; color: #666b72; font-size: 10px; font-weight: 760; cursor: pointer; list-style: none; }
.lens-section summary::-webkit-details-marker { display: none; }
.lens-section summary::after { content: "+"; float: right; color: var(--seed-red); font-size: 15px; line-height: .8; }
.lens-section[open] summary::after { content: "−"; }
.lens-content { display: grid; gap: 13px; padding: 0 15px 15px; }
.lens-content h4 { margin: 0 0 7px; color: #969aa0; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.lens-list { display: grid; gap: 6px; }
.lens-list p, .lens-list article { margin: 0; padding: 9px 10px; border-radius: 10px; background: var(--surface-soft); color: #62676e; font-size: 9.5px; line-height: 1.45; }
.lens-list article { display: flex; flex-direction: column; gap: 3px; }
.lens-list strong { color: #3f4349; font-size: 9.5px; }
.lens-list span { color: #747980; font-size: 9px; }

/* =========================
   v3.2 — provenance and functional colour
   ========================= */
:root {
  --workspace-blue-bg: #f4f8fb;
  --workspace-blue-line: #dbe8f0;
  --workspace-blue-accent: #628da8;
  --workspace-red-bg: #fbf4f7;
  --workspace-red-line: #ecd8e0;
  --workspace-gold-bg: #fbf8ee;
  --workspace-gold-line: #ebe2c8;
  --workspace-gold-accent: #96701c;
  --workspace-olive-bg: #f5f6f1;
  --workspace-olive-line: #e0e3d5;
  --workspace-olive-accent: #717451;
}

.message-phase { gap: 0; }
.message-phase::before { display: none; content: none; }

.user .message-card.suggested {
  color: #30333a;
  border-color: #e5dadd;
  background: #faf7f8;
}
.suggested-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  margin-bottom: 7px;
}
.suggested-label {
  display: inline-block;
  margin: 0;
  color: var(--seed-red);
}
.suggested-context {
  color: #8d9197;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.suggestion-chip[data-type="explore"],
.state-action[data-type="explore"],
.next-move[data-type="explore"] {
  border-color: var(--workspace-blue-line);
  background: var(--workspace-blue-bg);
}
.suggestion-chip[data-type="challenge"],
.state-action[data-type="challenge"],
.next-move[data-type="challenge"] {
  border-color: var(--workspace-red-line);
  background: var(--workspace-red-bg);
}
.suggestion-chip[data-type="create"],
.state-action[data-type="create"],
.next-move[data-type="create"] {
  border-color: var(--workspace-gold-line);
  background: var(--workspace-gold-bg);
}
.suggestion-chip[data-type="refine"],
.state-action[data-type="refine"],
.next-move[data-type="refine"] {
  border-color: var(--workspace-olive-line);
  background: var(--workspace-olive-bg);
}
.suggestion-chip:hover,
.state-action:hover,
.next-move:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(24,26,29,.055);
}

.insight-pane {
  background: #fbfbf9;
}
.insight-header {
  background: rgba(251,251,249,.95);
}
.workspace-content {
  display: grid;
  gap: 10px;
  padding: 12px 12px 18px;
}
.workspace-summary {
  padding: 16px;
  border: 1px solid #e5e6e2;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
}
.workspace-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
#understandingSection {
  border-color: var(--workspace-blue-line);
  background: var(--workspace-blue-bg);
}
#gapsSection {
  border-color: var(--workspace-red-line);
  background: var(--workspace-red-bg);
}
#possibilitiesSection {
  border-color: var(--workspace-gold-line);
  background: var(--workspace-gold-bg);
}
#nextMovesSection {
  border-color: var(--workspace-olive-line);
  background: var(--workspace-olive-bg);
}
.section-title {
  align-items: flex-start;
  margin-bottom: 11px;
}
.section-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-origin {
  color: #8c9196;
  font-size: 7px;
  font-weight: 830;
  letter-spacing: .095em;
  line-height: 1.2;
  text-transform: uppercase;
}
#understandingSection .section-origin { color: var(--workspace-blue-accent); }
#gapsSection .section-origin { color: var(--seed-red); }
#possibilitiesSection .section-origin { color: var(--workspace-gold-accent); }
#nextMovesSection .section-origin { color: var(--workspace-olive-accent); }
.section-title h3 {
  font-size: 13px;
  line-height: 1.25;
}
.section-count {
  margin-top: 1px;
  border: 1px solid rgba(24,26,29,.045);
  background: rgba(255,255,255,.72);
}
#understandingSection .section-count { color: var(--workspace-blue-accent); }
#gapsSection .section-count { color: var(--seed-red); }
#possibilitiesSection .section-count { color: var(--workspace-gold-accent); }

.state-list { gap: 8px; }
.state-item {
  border-color: rgba(24,26,29,.085);
  background: rgba(255,255,255,.84);
  box-shadow: 0 1px 0 rgba(255,255,255,.65) inset;
}
.state-item:hover {
  border-color: rgba(24,26,29,.14);
  box-shadow: 0 8px 20px rgba(24,26,29,.045);
}
.state-item em {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f0f1ef;
}
.state-item[data-kind="established"] em {
  color: #577a90;
  background: #edf4f8;
}
.state-item[data-kind="emerging"] em {
  color: #687151;
  background: #f0f2e8;
}
.state-item[data-kind="gap"] em {
  color: var(--seed-red);
  background: #faeaf0;
}
.state-item[data-kind="opportunity"] em {
  color: #8e6815;
  background: #f8efd4;
}
.state-item[data-kind="intervention"] em {
  color: #666b49;
  background: #ecefdf;
}
.state-action,
.next-move,
.suggestion-chip {
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.show-more-button {
  margin: 10px 0 0;
}
.next-moves-section { border-bottom: 1px solid var(--workspace-olive-line); }
.next-move {
  background: rgba(255,255,255,.8);
}
.next-move small {
  color: #858a8f;
}

@media (max-width: 940px) {
  .workspace-content { padding: 12px 12px 20px; }
}

/* =========================
   v3.2.1 — synthesis and suggestion refinement
   ========================= */
.user .message-card.suggested {
  border-color: #e5dadd;
  background: #faf7f8;
  box-shadow: none;
}
.suggested-meta { margin-bottom: 6px; }
.suggested-context { display: none; }
.next-move { justify-content: flex-start; }
.next-move small { display: none; }


/* =========================
   v3.2.3 — spatial refinement and response hierarchy
   ========================= */
:root {
  --workspace-blue-bg: #eaf2f7;
  --workspace-blue-line: #bfd3df;
  --workspace-blue-accent: #466f88;
  --workspace-red-bg: #f8e9ef;
  --workspace-red-line: #dfb8c8;
  --workspace-gold-bg: #f7f0dc;
  --workspace-gold-line: #dfca94;
  --workspace-gold-accent: #7d5d16;
  --workspace-olive-bg: #eef0e6;
  --workspace-olive-line: #c9ceb3;
  --workspace-olive-accent: #606642;
  --workspace-width: clamp(330px, 25vw, 390px);
  --canvas: #f2f2ee;
}

body {
  background:
    radial-gradient(circle at 3% 7%, rgba(167, 201, 226, .13), transparent 25%),
    radial-gradient(circle at 94% 94%, rgba(235, 161, 41, .055), transparent 22%),
    var(--canvas);
}

.app-frame { grid-template-rows: 76px minmax(0, 1fr); }
.app-header {
  padding: 0 4px;
}
.brand { gap: 13px; }
.brand img { width: 49px; height: 49px; }
.brand div { gap: 3px; }
.brand strong { font-size: 18px; line-height: 1; letter-spacing: -.035em; }
.brand span {
  color: #777c82;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .105em;
  line-height: 1.15;
  text-transform: uppercase;
}

.app-main {
  position: relative;
  grid-template-columns: minmax(0, 1fr) var(--workspace-width);
  gap: 12px;
  transition: grid-template-columns .22s ease, gap .22s ease;
}
.conversation-pane, .insight-pane { border-radius: 18px; }
.insight-pane {
  width: 100%;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .16s ease, transform .22s ease, border-color .22s ease;
}
.workspace-rail-toggle {
  position: absolute;
  z-index: 18;
  top: 18px;
  right: calc(var(--workspace-width) + 6px);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d7d9d6;
  border-radius: 50%;
  color: #474b50;
  background: rgba(255,255,255,.96);
  box-shadow: 0 7px 18px rgba(24,26,29,.10);
  cursor: pointer;
  transform: translateX(50%);
  transition: right .22s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}
.workspace-rail-toggle:hover {
  color: var(--seed-red);
  background: #fff;
  box-shadow: 0 9px 22px rgba(24,26,29,.13);
}
.workspace-rail-toggle svg {
  width: 17px;
  height: 17px;
  transition: transform .2s ease;
}
.workspace-collapsed .app-main { grid-template-columns: minmax(0, 1fr) 0; gap: 0; }
.workspace-collapsed .insight-pane {
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  border-color: transparent;
}
.workspace-collapsed .workspace-rail-toggle { right: 8px; }
.workspace-collapsed .workspace-rail-toggle svg { transform: rotate(180deg); }

.workspace-summary {
  border-color: #d9dad6;
  background: rgba(255,255,255,.96);
}
.state-item {
  border-color: rgba(24,26,29,.12);
  background: rgba(255,255,255,.91);
}
.suggestion-chip[data-type="explore"],
.state-action[data-type="explore"],
.next-move[data-type="explore"] { color: #365f78; }
.suggestion-chip[data-type="challenge"],
.state-action[data-type="challenge"],
.next-move[data-type="challenge"] { color: #8e0738; }
.suggestion-chip[data-type="create"],
.state-action[data-type="create"],
.next-move[data-type="create"] { color: #715311; }
.suggestion-chip[data-type="refine"],
.state-action[data-type="refine"],
.next-move[data-type="refine"] { color: #565d38; }

.response-callout {
  margin: 16px 0;
  padding: 15px 16px 14px;
  border: 1px solid;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(24,26,29,.025);
}
.response-callout--established {
  border-color: #cfd7cd;
  background: #f2f5f0;
}
.response-callout--inferred {
  border-color: var(--workspace-blue-line);
  background: var(--workspace-blue-bg);
}
.response-callout--open {
  border-color: var(--workspace-red-line);
  background: var(--workspace-red-bg);
}
.response-callout-label {
  margin: 0 0 8px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .095em;
  line-height: 1.2;
  text-transform: uppercase;
}
.response-callout--established .response-callout-label { color: #4f5a52; }
.response-callout--inferred .response-callout-label { color: var(--workspace-blue-accent); }
.response-callout--open .response-callout-label { color: var(--seed-red); }
.response-callout-content { color: #3e4349; }
.response-callout-content > :first-child { margin-top: 0; }
.response-callout-content > :last-child { margin-bottom: 0; }
.response-callout-content p { margin-bottom: 8px; }
.response-callout-action {
  min-height: 34px;
  margin-top: 11px;
  padding: 0 12px;
  border: 1px solid #d9aabd;
  border-radius: 999px;
  color: #8e0738;
  background: rgba(255,255,255,.74);
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}
.response-callout-action:hover { background: #fff; }
.assistant-body > blockquote:not(.response-callout) {
  border-color: var(--line);
  background: #f7f7f4;
}
.assistant-body .citations-heading {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
.assistant-body .citations-heading + ol,
.assistant-body .citations-heading + ul {
  margin-top: 10px;
  padding-left: 23px;
}
.assistant-body .citations-heading + ol li,
.assistant-body .citations-heading + ul li {
  margin: 10px 0;
  padding-left: 3px;
  line-height: 1.58;
}
.assistant-body .citations-heading + ol a,
.assistant-body .citations-heading + ul a,
.assistant-body a.verified-link {
  white-space: nowrap;
  font-weight: 720;
}

@media (max-width: 940px) {
  .app-frame { grid-template-rows: 68px minmax(0, 1fr); }
  .brand img { width: 42px; height: 42px; }
  .app-main { grid-template-columns: 1fr; gap: 0; }
  .workspace-rail-toggle { display: none; }
  .insight-pane,
  .workspace-collapsed .insight-pane {
    width: min(390px, calc(100vw - 24px));
    opacity: 1;
    transform: translateX(calc(100% + 24px));
    pointer-events: auto;
  }
  .workspace-open .insight-pane,
  .workspace-collapsed.workspace-open .insight-pane { transform: translateX(0); }
  .workspace-collapsed .app-main { grid-template-columns: 1fr; gap: 0; }
}

.mode-embed .workspace-rail-toggle { display: none; }
.mode-embed .app-main { display: block; }
.mode-embed .conversation-pane,
.mode-embed .insight-pane { border-radius: 0; }
.mode-embed .insight-pane,
.mode-embed.workspace-collapsed .insight-pane {
  opacity: 1;
  transform: translateX(100%);
  pointer-events: auto;
}
.mode-embed.workspace-open .insight-pane,
.mode-embed.workspace-collapsed.workspace-open .insight-pane { transform: translateX(0); }


/* =========================
   v3.2.4 — synthesis, lens hierarchy and verified sources
   ========================= */
.lens-section summary {
  padding: 14px 15px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.lens-section summary::after {
  font-size: 17px;
  color: #737870;
}
.assistant-body .citations-heading {
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.assistant-body .citations-heading + ol,
.assistant-body .citations-heading + ul {
  padding-left: 20px;
  color: #555a61;
  font-size: 12.5px;
  line-height: 1.58;
}
.assistant-body .verified-link {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 700;
  text-decoration-thickness: 1px;
}
.assistant-body .verified-link::after {
  content: "Verified link ↗";
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #c7d3c0;
  border-radius: 999px;
  color: #556044;
  background: #f1f4eb;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: .035em;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

/* =========================
   v3.2.6 — compact workspace accordions and session safeguards
   ========================= */
.app-header {
  border-bottom: 0 !important;
}

.workspace-content {
  gap: 10px;
}

.workspace-section,
#understandingSection,
#gapsSection,
#possibilitiesSection,
#nextMovesSection {
  padding: 0;
  overflow: hidden;
  border-left-width: 1px;
  box-shadow: none;
}

.section-toggle {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.section-toggle:hover {
  background: rgba(255,255,255,.28);
}
.section-toggle:focus-visible {
  position: relative;
  z-index: 1;
  outline-offset: -4px;
}
.section-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.section-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.section-toggle-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-toggle-meta svg {
  width: 16px;
  height: 16px;
  color: #71766f;
  transform: rotate(90deg);
  transition: transform .18s ease;
}
.workspace-section.is-open .section-toggle-meta svg {
  transform: rotate(-90deg);
}
.section-count {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.section-body {
  padding: 0 14px 14px;
}
.section-body[hidden] {
  display: none !important;
}
.workspace-section.is-open .section-toggle {
  padding-bottom: 11px;
}
.state-list {
  gap: 9px;
}

.next-moves-section {
  border-bottom: 1px solid var(--workspace-olive-line);
}
.next-moves {
  padding: 0;
}

.lens-section {
  margin: 0;
  overflow: hidden;
  border-color: #d9dad6;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
}
.lens-section summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.lens-section summary:hover {
  background: rgba(24,26,29,.025);
}
.lens-section summary::after {
  float: none;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(24,26,29,.07);
  border-radius: 999px;
  color: #71766f;
  background: rgba(255,255,255,.74);
  font-size: 17px;
  line-height: 1;
}
.lens-content {
  padding: 0 14px 14px;
}

.confirmation-card {
  width: min(460px, 100%);
}
.confirmation-card > p:not(.eyebrow) {
  margin: 0;
  color: #555a61;
  font-size: 13px;
  line-height: 1.6;
}
.confirmation-card .modal-actions {
  margin-top: 22px;
}

@media (max-width: 720px) {
  .section-toggle,
  .lens-section summary {
    min-height: 64px;
  }
}

/* =========================
   v3.2.7 — stable workspace geometry and emphasis repair
   ========================= */
.conversation,
.insight-pane {
  scrollbar-gutter: stable;
}

.assistant-body strong,
.assistant-body b {
  color: #292d33;
  font-weight: 780;
}

.workspace-content,
.workspace-summary,
.workspace-section,
.lens-section {
  width: 100%;
  min-width: 0;
}

.section-toggle,
.workspace-section.is-open .section-toggle {
  min-height: 68px;
  height: 68px;
  padding: 14px;
}

.section-heading {
  min-height: 36px;
  justify-content: center;
}

.section-toggle-meta {
  width: 54px;
  min-width: 54px;
  justify-content: flex-end;
}

.section-count {
  width: 28px;
  min-width: 28px;
  padding: 0;
}

.section-toggle:focus,
.section-toggle:focus-visible {
  outline: none;
}

.section-toggle:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(24, 26, 29, .18);
}

.lens-section summary:focus,
.lens-section summary:focus-visible {
  outline: none;
}

.lens-section summary:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(24, 26, 29, .18);
}

@media (max-width: 720px) {
  .section-toggle,
  .workspace-section.is-open .section-toggle,
  .lens-section summary {
    min-height: 64px;
    height: 64px;
  }
}



/* =========================
   v3.2.8 — stable panel colour, tinted counts and consistent casing UI
   ========================= */
.section-toggle,
.section-toggle:hover,
.section-toggle:active,
.workspace-section.is-open .section-toggle,
.workspace-section.is-open .section-toggle:hover,
.workspace-section.is-open .section-toggle:active {
  background: transparent;
}

#understandingSection .section-count {
  color: #406f8b;
  border-color: rgba(64, 111, 139, .14);
  background: rgba(64, 111, 139, .12);
}
#gapsSection .section-count {
  color: #970038;
  border-color: rgba(151, 0, 56, .14);
  background: rgba(151, 0, 56, .10);
}
#possibilitiesSection .section-count {
  color: #8a6211;
  border-color: rgba(138, 98, 17, .16);
  background: rgba(203, 150, 43, .15);
}
#nextMovesSection .section-count {
  color: #626746;
  border-color: rgba(98, 103, 70, .16);
  background: rgba(136, 143, 93, .15);
}

.lens-section summary,
.lens-section summary:hover,
.lens-section summary:active {
  background: transparent;
}
.lens-section summary::after {
  content: none !important;
  display: none !important;
}
.lens-name {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.lens-toggle-meta {
  width: 54px;
  min-width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
.lens-toggle-meta svg {
  width: 16px;
  height: 16px;
  color: #71766f;
  transform: rotate(90deg);
  transition: transform .18s ease;
}
.lens-section[open] .lens-toggle-meta svg {
  transform: rotate(-90deg);
}


/* v3.3.8 — stable privacy action hierarchy */
.privacy-card .privacy-actions {
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch;
  justify-items: stretch;
  gap: 8px;
}
.privacy-card .privacy-actions .primary-button {
  width: 100% !important;
  justify-self: stretch;
}
.privacy-card .privacy-actions .privacy-leave {
  width: auto !important;
  min-height: 38px;
  justify-self: center;
  padding-inline: 22px;
  border-color: transparent;
  background: transparent;
}
.privacy-card .privacy-version {
  width: 100%;
  text-align: center;
}

.starter-icon { display: none !important; }


/* v3.3.18a — contained references styling patch
   Visual bullets replace incidental numbering, and Source links receive
   clear separation from the preceding reference text. */
.assistant-body .citations-heading + ol {
  list-style-type: disc;
}

.assistant-body .citations-heading + ol > li::marker,
.assistant-body .citations-heading + ul > li::marker {
  color: #8f949a;
  font-size: .82em;
}

.assistant-body .citations-heading + ol a,
.assistant-body .citations-heading + ul a {
  display: inline-block;
  margin-left: .35em;
}


/* v3.5.0 - participant PDF project snapshot */
.pdf-export-button {
  width: auto;
  min-width: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: #6f747c;
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: .01em;
}
.pdf-export-button svg { width: 17px; height: 17px; }
.pdf-export-button:hover { color: var(--seed-red); background: rgba(255,255,255,.82); }
@media (max-width: 720px) {
  .pdf-export-button { width: 42px; min-width: 42px; padding: 0; }
  .pdf-export-button span { display: none; }
}
