:root {
  --navy: var(--brand-primary, #071d35);
  --navy-2: var(--brand-secondary, #0b2b4d);
  --ink: var(--brand-text, #0b1f3b);
  --muted: #60708a;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --orange: var(--brand-accent, #f57812);
  --orange-soft: color-mix(in srgb, var(--orange) 10%, white);
  --blue-soft: #edf5ff;
  --line: #d9dfeb;
  --green: #10b651;
  --amber: #f7b516;
  --red: #ff514d;
  --radius: 16px;
  --shadow: 0 10px 32px rgba(11, 31, 59, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #eef1f5;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; overflow: hidden; }
body { margin: 0; min-width: 320px; background: #eef1f5; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.shell { height: 100%; padding: 2px; overflow: hidden; background: linear-gradient(135deg, #e0e8f3, #fff); }
.topbar { height: 66px; color: #fff; background: linear-gradient(105deg, var(--navy), var(--navy-2)); border: 1px solid #173a5e; border-radius: 14px 14px 0 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100%, 1180px); height: 100%; box-sizing: border-box; margin: 0 auto; padding: 0 clamp(26px, 6vw, 82px); }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.brand:hover .wordmark { color: #fff7ef; }
.brand-mark { color: var(--orange); font-size: 31px; line-height: 1; transform: rotate(90deg); }
.wordmark { color: #fff; letter-spacing: .22em; font-size: 16px; font-weight: 750; white-space: nowrap; }
.brand-divider { height: 26px; width: 1px; background: rgba(219, 232, 248, .42); }
.product-name { color: #f0f5fb; font-size: 16px; font-weight: 650; white-space: nowrap; }
.topnav { display: flex; align-self: stretch; align-items: center; gap: 34px; font-weight: 700; }
.topnav span, .topnav button { height: 100%; display: grid; align-items: center; border: 0; border-bottom: 4px solid transparent; padding: 0; color: #edf3fb; background: transparent; font-size: inherit; font-weight: inherit; }
.topnav button { cursor: pointer; }
.topnav .active { color: var(--orange); border-bottom-color: var(--orange); }
.language-switcher { display: inline-flex; align-items: center; gap: 7px; margin-left: 24px; color: #dbe8f8; font-size: 14px; font-weight: 750; }
.language-switcher button { border: 0; border-radius: 5px; padding: 5px 2px; color: #dbe8f8; background: transparent; font-size: 14px; font-weight: 850; letter-spacing: .06em; }
.language-switcher button.active { color: var(--navy); background: #fff; }
.language-switcher button:disabled { cursor: wait; opacity: .65; }

.workspace { display: grid; height: calc(100% - 66px); min-height: 0; grid-template-columns: minmax(0, 1fr); background: var(--paper); border-radius: 0 0 14px 14px; overflow: hidden; }
.workspace.opening .content-stage { display: block; background: radial-gradient(ellipse at 85% 32%, rgba(191, 214, 248, .55), transparent 28%), linear-gradient(125deg, #fffdfb, #f8faff); }
.workspace.opening .conversation { width: min(100%, 1420px); height: 100%; margin: 0 auto; padding-left: clamp(24px, 2vw, 34px); padding-right: clamp(24px, 2vw, 34px); background: transparent; }
.content-stage { min-width: 0; min-height: 0; display: flex; overflow: hidden; }
.workspace.library .content-stage { display: block; overflow: auto; background: radial-gradient(ellipse at 88% 12%, rgba(191, 214, 248, .46), transparent 30%), linear-gradient(125deg, #fffdfb, #f8faff); }
.security-gate { display: grid; min-height: 100%; place-items: center; padding: 24px; background: radial-gradient(ellipse at 82% 16%, rgba(191, 214, 248, .58), transparent 32%), linear-gradient(125deg, #fffdfb, #f8faff); }
.security-panel { width: min(100%, 500px); padding: 44px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); text-align: center; }
.security-panel .brand-mark { display: block; margin-bottom: 15px; font-size: 42px; }
.security-panel h1 { margin: 9px 0 12px; font-size: clamp(28px, 3vw, 38px); font-weight: 620; letter-spacing: -.04em; line-height: 1.08; }
.security-panel p { margin: 0; color: #4d5d76; line-height: 1.5; }
.security-status { display: flex; min-height: 24px; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; color: #a32623; font-size: 14px; line-height: 1.35; }
.security-status .send-spinner { border-color: color-mix(in srgb, var(--orange) 32%, transparent); border-top-color: var(--orange); }
.security-panel .secondary-button { margin-top: 10px; }

.sidebar { min-height: 0; overflow: auto; background: radial-gradient(circle at 0 0, var(--navy-2), var(--navy) 65%); color: #fff; padding: 32px 28px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { color: var(--orange); font-size: 13px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.sidebar .eyebrow { color: #cbd6e7; }
.sidebar h2 { margin: 6px 0 0; font-family: inherit; font-size: clamp(22px, 1.7vw, 29px); font-weight: 620; letter-spacing: -.03em; line-height: 1.1; }
.sidebar-copy { margin: 8px 0 0; color: #e2e8f2; font-size: 14px; line-height: 1.4; }
.topic-list { border-top: 1px solid rgba(220, 231, 244, .45); padding-top: 10px; }
.topic { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; padding: 8px 0; }
.status-dot { width: 18px; height: 18px; border-radius: 50%; margin-top: 3px; background: var(--red); border: 2px solid rgba(255,255,255,.16); }
.status-dot.in_progress { background: var(--amber); }
.status-dot.completed { background: var(--green); }
.topic strong { display: block; font-size: 15px; }
.topic small { color: #d4deec; display: block; line-height: 1.25; margin-top: 2px; }
.legend { margin-top: auto; border: 1px solid color-mix(in srgb, var(--orange) 75%, transparent); border-radius: 10px; padding: 14px; font-size: 13px; }
.legend-title { color: var(--orange); font-size: 11px; letter-spacing: .12em; font-weight: 850; margin-bottom: 10px; }
.legend-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: #eff4fb; }
.legend .status-dot { width: 13px; height: 13px; margin: 0; }

.conversation { min-width: 0; min-height: 0; flex: 1 1 100%; display: flex; flex-direction: column; padding: 30px clamp(28px, 5vw, 72px) 20px; background: linear-gradient(120deg, #fffdfb, #fbfcff 75%); transition: flex-basis 560ms cubic-bezier(.22, .8, .24, 1), padding 560ms cubic-bezier(.22, .8, .24, 1); }
.conversation.hero { background: radial-gradient(ellipse at 85% 32%, rgba(191, 214, 248, .55), transparent 28%), linear-gradient(125deg, #fffdfb, #f8faff); }
.agent-intro { display: flex; gap: 18px; align-items: start; margin-bottom: 24px; }
.agent-sun { width: 62px; height: 62px; flex: 0 0 auto; border: 8px dotted var(--orange); border-radius: 50%; background: #fff; }
.agent-intro h1 { font-family: inherit; margin: 5px 0 8px; font-size: clamp(27px, 2.45vw, 38px); font-weight: 620; letter-spacing: -.03em; line-height: 1.08; }
.agent-intro p { margin: 0; max-width: 620px; color: #40516b; font-size: 16px; line-height: 1.4; }
.opening-intro { flex-direction: column; align-items: center; margin: 12px 0 18px; gap: 0; text-align: center; }
.opening-intro .agent-sun { width: 48px; height: 48px; border-width: 6px; }
.opening-intro > div { display: flex; flex-direction: column; align-items: center; }
.opening-kicker { display: flex; justify-content: center; gap: 9px; align-items: center; color: var(--ink); font-size: 15px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.opening-kicker span { color: var(--orange); }
.opening-intro h1 { margin-top: 0; font-size: clamp(34px, 3.7vw, 54px); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; }
.opening-intro h1 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 9px; }
.opening-intro p { max-width: 940px; margin-right: auto; margin-left: auto; font-size: clamp(17px, 1.45vw, 22px); }
.workspace.active .agent-intro { gap: 12px; align-items: center; margin-bottom: 10px; }
.workspace.active .agent-sun { width: 44px; height: 44px; border-width: 6px; }
.workspace.active .agent-intro h1 { margin: 2px 0 3px; font-size: clamp(23px, 1.9vw, 30px); }
.workspace.active .agent-intro p { font-size: 14px; line-height: 1.3; }
.message-stream { min-height: 0; flex: 1 1 auto; overflow: auto; display: flex; flex-direction: column; gap: 22px; padding: 12px 0 18px; overscroll-behavior: contain; }
.message { max-width: 84%; padding: 15px 18px; border-radius: 14px; box-shadow: 0 6px 18px rgba(11, 31, 59, .035); font-size: 15px; line-height: 1.44; white-space: pre-wrap; }
.message.user { align-self: end; background: var(--blue-soft); border-top-right-radius: 4px; }
.message.agent { align-self: start; background: var(--orange-soft); border-top-left-radius: 4px; }
.message-processing { align-self: start; min-width: 180px; background: #fffaf4; border: 1px solid #f3d4b8; border-top-left-radius: 4px; box-shadow: none; }
.processing-lines { display: grid; gap: 7px; }
.processing-lines i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #f3d9bd 20%, #fff4e8 40%, #f3d9bd 60%); background-size: 220% 100%; animation: processing-sheen 1.2s ease-in-out infinite; }
.processing-lines i:nth-child(1) { width: 92%; }
.processing-lines i:nth-child(2) { width: 72%; animation-delay: .12s; }
.processing-lines i:nth-child(3) { width: 81%; animation-delay: .24s; }
.message-body p { margin: 0 0 14px; }
.message-body p:last-child { margin-bottom: 0; }
.message-list { margin: 0 0 14px; padding-left: 21px; }
.message-list li { margin: 4px 0; padding-left: 2px; }
.message-list li::marker { color: #b86c32; }
.message-scout { margin: 16px 0 !important; padding: 11px 12px; border: 1px solid #d4deeb; border-radius: 9px; background: rgba(255, 255, 255, .72); color: #304663; }
.message-scout::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #466182; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.message-scout .message-list { margin-bottom: 0; }
.message-question { margin-top: 18px !important; padding: 13px 0 0; border-top: 1px solid #e5b98d; color: var(--ink); font-weight: 400; }
.message-question::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #9c5728; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.scout-dialog-event { align-self: flex-start; display: grid; grid-template-columns: auto auto auto 1fr; column-gap: 7px; align-items: baseline; max-width: 84%; margin: -8px 0 2px; color: #8b96a7; font-size: 12px; line-height: 1.35; }
.scout-dialog-event > span:first-child { color: #aab4c1; font-size: 17px; line-height: .8; }
.scout-dialog-label { color: #7d8a9b; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scout-dialog-event .message-time { color: #9ca6b3; }
.scout-dialog-text { grid-column: 2 / -1; }
.message-cursor { display: inline-block; width: 7px; height: 1.05em; margin-left: 3px; vertical-align: -2px; background: var(--orange); animation: cursor-blink .8s steps(1, end) infinite; }
.message-meta { display: flex; justify-content: space-between; gap: 18px; color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.message-time { color: #8692a3; font-size: 10px; font-weight: 650; letter-spacing: .04em; }
.examples { margin: auto 0 30px; }
.examples h3 { color: #657188; font-size: 13px; letter-spacing: .13em; text-transform: uppercase; }
.journey { margin: 0 auto 18px; text-align: center; }
.journey img { display: block; width: auto; max-width: 100%; max-height: min(33vh, 310px); margin: 0 auto; object-fit: contain; }
.opening-examples { margin: 0 0 14px; }
.opening-examples h3 { margin: 0 0 8px; }
.example-grid, .option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.example, .option { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.84); padding: 16px; color: var(--ink); text-align: left; line-height: 1.3; }
.opening-examples .example { display: flex; align-items: center; gap: 13px; justify-content: center; padding: 12px; font-weight: 650; box-shadow: 0 6px 16px rgba(11, 31, 59, .06); }
.opening-examples .example span { color: var(--orange); font-size: 26px; line-height: 1; }
.example:hover, .option:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.completion-actions { margin: 4px 0 16px; }
.completion-actions h3 { margin: 0 0 10px; color: var(--ink); font-size: 16px; font-weight: 700; }
.completion-option { min-height: 106px; }
.option { min-height: 130px; }
.option.selected { border: 2px solid var(--orange); padding: 15px; background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 7%, white), #fff); box-shadow: 0 8px 22px color-mix(in srgb, var(--orange) 15%, transparent); }
.option.selected strong::after { content: "Selected"; display: inline-block; margin-left: 8px; color: var(--orange); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.option strong { display: block; margin-bottom: 7px; }
.option span { color: var(--muted); font-size: 14px; display: block; }
.composer { display: grid; grid-template-columns: 1fr 48px; gap: 8px; border: 2px solid var(--orange); border-radius: 13px; padding: 5px; background: #fff; box-shadow: 0 8px 28px color-mix(in srgb, var(--orange) 10%, transparent); }
.workspace.opening .composer { width: min(50%, 720px); margin-right: auto; margin-left: auto; }
.composer textarea { resize: none; min-height: 36px; border: 0; outline: 0; padding: 7px 10px; color: var(--ink); background: transparent; }
.message-limit { grid-column: 1 / -1; padding: 0 10px 3px; color: var(--muted); font-size: 12px; }
.message-limit.over-limit { color: #a32623; }
.send { display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--orange); color: #fff; font-size: 21px; font-weight: 900; }
.send:disabled { cursor: wait; opacity: .6; }
.send-spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes processing-sheen { to { background-position: -120% 0; } }
.inline-note, .error { margin: 10px 0 0; font-size: 14px; }
.inline-note { color: var(--muted); }
.error { color: #a32623; }
.secondary-button { border: 1px solid #b7c4d6; color: var(--ink); background: #fff; border-radius: 9px; padding: 9px 12px; font-weight: 750; }

.brief-stage { flex: 0 0 0; min-width: 0; min-height: 0; max-width: 0; opacity: 0; overflow: hidden; transform: translateX(34px); visibility: hidden; transition: flex-basis 560ms cubic-bezier(.22, .8, .24, 1), max-width 560ms cubic-bezier(.22, .8, .24, 1), opacity 280ms ease 150ms, transform 560ms cubic-bezier(.22, .8, .24, 1), visibility 0s linear 560ms; }
.workspace.active .conversation { flex-basis: 50%; padding-left: clamp(20px, 2.5vw, 40px); padding-right: clamp(20px, 2.5vw, 40px); }
.workspace.active .message { max-width: 93%; }
.workspace.active .brief-stage { flex-basis: 50%; max-width: 50%; opacity: 1; overflow: visible; transform: translateX(0); visibility: visible; transition: flex-basis 560ms cubic-bezier(.22, .8, .24, 1), max-width 560ms cubic-bezier(.22, .8, .24, 1), opacity 280ms ease 100ms, transform 560ms cubic-bezier(.22, .8, .24, 1), visibility 0s; }
.brief { position: relative; z-index: 1; min-width: 380px; height: 100%; padding: 35px 26px 25px; border-left: 1px solid #b9c8d8; background: #fff; box-shadow: -1px 0 4px rgba(11, 31, 59, .07), -10px 0 20px rgba(11, 31, 59, .075); overflow: auto; overscroll-behavior: contain; }
.brief-pending { display: flex; flex-direction: column; }
.brief-pending-status { display: flex; align-items: flex-start; gap: 11px; padding: 18px 0 21px; border-bottom: 1px solid var(--line); color: #40516b; }
.brief-pending-status .send-spinner { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; border-color: color-mix(in srgb, var(--orange) 28%, transparent); border-top-color: var(--orange); }
.brief-pending-status strong { display: block; color: var(--ink); font-size: 15px; }
.brief-pending-status p { margin: 5px 0 0; font-size: 14px; line-height: 1.45; }
.brief-skeleton { display: grid; gap: 18px; padding-top: 24px; }
.brief-skeleton i { display: block; height: 15px; border-radius: 5px; background: linear-gradient(90deg, #eef2f7 20%, #fafbfd 40%, #eef2f7 60%); background-size: 220% 100%; animation: processing-sheen 1.35s ease-in-out infinite; }
.brief-skeleton i:nth-child(1) { width: 48%; }
.brief-skeleton i:nth-child(2) { width: 92%; animation-delay: .1s; }
.brief-skeleton i:nth-child(3) { width: 76%; animation-delay: .2s; }
.brief-skeleton i:nth-child(4) { width: 87%; animation-delay: .3s; }
.brief-skeleton i:nth-child(5) { width: 57%; animation-delay: .4s; }
.brief-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brief-header > div:first-child { min-width: 0; }
.brief-header h1 { margin: 5px 0 0; color: var(--ink); font-size: clamp(23px, 1.8vw, 29px); font-weight: 620; letter-spacing: -.025em; line-height: 1.16; overflow-wrap: anywhere; }
.brief-document-header { display: block; margin: -35px -26px 20px; padding: 29px 26px 21px; border-bottom: 1px solid #d6e0ed; background: linear-gradient(135deg, #f8fbff, #eff5fc); }
.brief-document-header h1 { margin: 6px 0 16px; font-size: clamp(25px, 2vw, 32px); line-height: 1.13; }
.brief-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; color: #63728a; font-size: 11px; line-height: 1.3; }
.brief-meta span { display: inline-flex; gap: 5px; align-items: baseline; }
.brief-meta b { color: #687991; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.brief-meta time, .brief-meta strong { color: #324762; font-weight: 700; }
.brief-status { margin-top: 14px; }
.brief-status .readiness { display: inline-block; }
.brief-localizing { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid #d8e2ef; border-radius: 8px; color: #49617e; background: #f7faff; font-size: 13px; font-weight: 700; }
.brief-localizing .send-spinner { width: 15px; height: 15px; border-color: color-mix(in srgb, var(--orange) 28%, transparent); border-top-color: var(--orange); }
.readiness { border: 1px solid #b8c6d9; border-radius: 8px; padding: 10px 12px; white-space: nowrap; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.readiness::before { content: ""; width: 12px; height: 12px; display: inline-block; border-radius: 50%; border: 3px solid var(--amber); margin-right: 7px; vertical-align: -2px; }
.readiness.ready-to-email { cursor: pointer; color: var(--ink); background: #fff; font: inherit; line-height: inherit; text-align: left; }
.readiness.ready-to-email::before { border-color: var(--green); }
.readiness.ready-to-email:hover { border-color: var(--green); background: #f4fff6; }
.readiness.ready-to-email:focus-visible { outline: 3px solid rgba(16, 182, 81, .3); outline-offset: 3px; }
.brief-progress { margin: 0 0 16px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.brief-progress h2 { margin: 0 0 10px; color: var(--orange); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.brief-progress-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.brief-progress-item { display: flex; align-items: center; gap: 7px; min-width: 0; color: #50617b; font-size: 12px; line-height: 1.2; }
.brief-progress-item .status-dot { width: 10px; height: 10px; flex: 0 0 auto; margin: 0; border-width: 1px; }
.brief-section { position: relative; padding: 17px 38px 18px 0; border-bottom: 1px solid var(--line); }
.brief-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.brief-section-heading h2 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 620; letter-spacing: -.02em; line-height: 1.3; }
.brief-value { margin: 0; font-size: 15px; line-height: 1.46; }
.brief-value.unknown { color: #71809a; }
.evidence { color: #70809b; font-size: 11px; margin-top: 5px; }
.pencil { position: absolute; top: 18px; right: 0; border: 0; background: transparent; color: var(--ink); font-size: 18px; padding: 0 2px; }
.brief-editor { display: grid; gap: 8px; }
.brief-editor textarea { min-height: 74px; padding: 8px; border: 1px solid var(--orange); border-radius: 7px; }
.brief-actions { display: flex; gap: 8px; justify-content: end; }
.primary-button { background: var(--orange); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font-weight: 800; }
.insight-panel { display: grid; gap: 18px; margin-top: 26px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.insight-panel h2 { color: var(--orange); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 11px; }
.path, .question { margin: 8px 0; line-height: 1.35; }
.path small { color: var(--muted); }
.path-comparison-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.path-comparison { width: 100%; min-width: 560px; border-collapse: collapse; color: #314560; font-size: 12px; line-height: 1.4; }
.path-comparison th, .path-comparison td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.path-comparison thead th { color: var(--ink); background: color-mix(in srgb, var(--orange) 7%, white); font-size: 12px; font-weight: 800; }
.path-comparison thead th:first-child { width: 118px; }
.path-comparison tbody th { width: 118px; color: #5c3925; background: #fffdfb; font-size: 11px; font-weight: 800; }
.path-comparison td + td, .path-comparison th + th { border-left: 1px solid var(--line); }
.path-comparison tr:last-child th, .path-comparison tr:last-child td { border-bottom: 0; }
.path-comparison ul { margin: 0; padding-left: 16px; }
.path-comparison li + li { margin-top: 6px; }
.open-questions { border-top: 1px solid var(--line); padding-top: 16px; }
.brief-references { margin-top: 24px; padding: 21px 0 0; border-top: 1px solid #b9c6d6; }
.brief-references .eyebrow { margin-bottom: 5px; font-size: 10px; }
.brief-references h2 { margin: 0; color: var(--ink); font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.brief-references p { margin: 7px 0 12px; color: #61718a; font-size: 13px; line-height: 1.4; }
.brief-references ol { display: grid; gap: 11px; margin: 0; padding-left: 22px; }
.brief-references li { padding-left: 3px; color: #3c506b; font-size: 13px; line-height: 1.35; }
.brief-references a { color: #2a5d88; font-weight: 750; overflow-wrap: anywhere; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.brief-references a:hover { color: var(--orange); }
.brief-references li span { display: block; margin-top: 2px; color: #708099; font-size: 12px; }
.email-card, .delivery-card { margin-top: 16px; padding: 24px; border: 1px solid var(--orange); border-radius: 14px; background: #fffaf4; }
.delivery-card { border-color: #b8ecc6; background: #f4fff6; }
.report-failed { border-color: #f2b8b5; background: #fff7f6; }
.email-card h3, .delivery-card h3 { margin: 0 0 6px; font-family: inherit; font-size: 21px; letter-spacing: -.025em; }
.email-card input { width: 100%; border: 1px solid #b8c6d9; border-radius: 7px; padding: 11px; margin: 12px 0; }
.email-actions { display: flex; justify-content: end; gap: 10px; }
.modal-layer { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(4, 20, 38, .5); backdrop-filter: blur(4px); }
.email-modal { position: relative; width: min(100%, 540px); padding: 34px; border: 1px solid #d9dfeb; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(4, 20, 38, .26); }
.email-modal h2 { margin: 7px 0 10px; color: var(--ink); font-size: 27px; font-weight: 650; letter-spacing: -.03em; }
.email-modal > p { margin: 0; color: #40516b; font-size: 16px; line-height: 1.5; }
.email-modal form { margin-top: 22px; }
.email-modal label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 750; }
.email-modal input { width: 100%; border: 1px solid #b8c6d9; border-radius: 8px; padding: 12px; color: var(--ink); }
.email-modal .email-actions { margin-top: 20px; }
.modal-close { position: absolute; top: 13px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #41516a; background: #f0f4f8; font-size: 24px; line-height: 1; }
.modal-close:hover { color: var(--ink); background: #e3ebf3; }
.report-confirmation { text-align: center; padding: 38px 42px; }
.report-confirmation .email-actions { justify-content: center; }
.modal-status-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 16px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(16, 182, 81, .24); font-size: 31px; font-weight: 800; }
.example-library { width: min(100%, 1360px); min-height: 100%; margin: 0 auto; padding: clamp(38px, 6vh, 72px) clamp(26px, 5vw, 74px); }
.library-header { max-width: 810px; margin-bottom: 34px; }
.library-header h1 { margin: 8px 0 12px; color: var(--ink); font-size: clamp(35px, 4vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.library-header p { margin: 0; color: #4d5d76; font-size: 17px; line-height: 1.5; }
.example-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.example-card { display: flex; min-height: 355px; flex-direction: column; justify-content: space-between; gap: 26px; padding: 28px; border: 1px solid #d9dfeb; border-radius: 18px; background: rgba(255, 255, 255, .9); box-shadow: 0 10px 26px rgba(11, 31, 59, .055); }
.example-card-label { margin-bottom: 22px; color: var(--orange); font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.example-card h2 { margin: 0 0 26px; color: var(--ink); font-size: 24px; font-weight: 620; letter-spacing: -.028em; line-height: 1.18; }
.example-card h3 { margin: 0 0 9px; color: #52617a; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.example-card p { margin: 0; color: #314560; font-size: 15px; line-height: 1.5; }
.download-example { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: fit-content; border: 1px solid var(--orange); border-radius: 9px; padding: 10px 13px; color: var(--orange); font-weight: 750; text-decoration: none; }
.download-example:hover { color: #fff; background: var(--orange); }
.about-page { width: min(100%, 1180px); min-height: 100%; margin: 0 auto; padding: clamp(40px, 7vh, 82px) clamp(26px, 6vw, 82px); }
.about-hero { max-width: 900px; }
.about-hero h1 { max-width: 820px; margin: 10px 0 16px; color: var(--ink); font-size: clamp(40px, 5vw, 68px); font-weight: 600; letter-spacing: -.052em; line-height: 1.02; }
.about-hero p { max-width: 775px; margin: 0; color: #40516b; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.48; }
.about-cta { margin-top: 26px; padding: 12px 17px; }
.about-cta span { margin-left: 6px; font-size: 18px; line-height: 0; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(42px, 7vh, 76px); }
.about-card { min-height: 235px; padding: 26px 28px 28px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .8); box-shadow: 0 8px 24px rgba(11, 31, 59, .04); }
.about-card-number { margin-bottom: 34px; color: var(--orange); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.about-card h2, .about-boundary h2, .about-steps h2 { margin: 0; color: var(--ink); font-size: clamp(22px, 2vw, 28px); font-weight: 620; letter-spacing: -.03em; line-height: 1.12; }
.about-card p, .about-boundary p { margin: 11px 0 0; color: #4d5d76; font-size: 16px; line-height: 1.48; }
.about-boundary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; margin-top: 18px; padding: 24px 27px; border-left: 4px solid var(--orange); background: color-mix(in srgb, var(--orange) 8%, white); }
.about-boundary-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--orange); font-size: 18px; font-weight: 850; }
.about-steps { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; margin-top: clamp(46px, 8vh, 86px); padding-top: 24px; border-top: 1px solid #b9c6d6; }
.about-steps .eyebrow { margin-bottom: 8px; }
.about-steps ol { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.about-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: #334863; font-size: 16px; font-weight: 650; line-height: 1.4; }
.about-steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.about-steps li span { color: var(--orange); font-size: 13px; font-weight: 850; letter-spacing: .08em; }
.landing-page { width: min(100%, 1180px); min-height: 100%; margin: 0 auto; padding: clamp(42px, 7vh, 82px) clamp(26px, 6vw, 82px) 0; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); align-items: center; gap: clamp(36px, 7vw, 90px); }
.landing-hero-copy h1, .landing-evidence h2, .landing-observation h2, .landing-outcome h2, .landing-final h2 { margin: 0; color: var(--ink); font-weight: 620; letter-spacing: -.052em; line-height: 1.03; }
.landing-hero-copy h1 { max-width: 650px; font-size: clamp(45px, 5.6vw, 74px); }
.landing-hero-copy > p { max-width: 610px; margin: 22px 0 0; color: #334863; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.48; }
.landing-cta { margin-top: 28px; padding: 13px 22px; font-size: 17px; }
.landing-cta span { margin-left: 7px; font-size: 19px; }
.conversation-preview { display: grid; gap: 18px; padding: 25px; border: 1px solid #d7dde6; border-radius: 16px; background: rgba(255, 255, 255, .78); box-shadow: 0 12px 30px rgba(11, 31, 59, .045); }
.conversation-preview-label { color: #75849a; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.preview-bubble { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; }
.preview-bubble > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--ink); background: #f1f4f8; font-size: 20px; }
.preview-bubble p { margin: 0; padding: 14px 17px; border-radius: 16px; color: var(--ink); background: #edf0f5; font-size: 17px; line-height: 1.4; }
.preview-agent > span { color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, white); }
.preview-agent p { background: color-mix(in srgb, var(--orange) 10%, white); }
.landing-evidence { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(175px, .75fr) minmax(215px, .9fr); gap: clamp(24px, 4vw, 58px); align-items: start; margin: clamp(62px, 9vh, 108px) -82px 0; padding: clamp(36px, 5vw, 58px) 82px; background: linear-gradient(110deg, color-mix(in srgb, var(--orange) 6%, white), #fffdf9); }
.landing-evidence h2, .landing-observation h2, .landing-outcome h2 { font-size: clamp(31px, 3.6vw, 50px); }
.landing-evidence > div:first-child > p, .landing-observation > p, .landing-outcome > div > p { margin: 16px 0 0; color: #3d506a; font-size: 17px; line-height: 1.5; }
.evidence-stat { min-height: 120px; border-left: 1px solid #c4c9d0; padding-left: clamp(20px, 3vw, 38px); }
.evidence-stat strong { display: block; color: var(--ink); font-size: clamp(46px, 5vw, 68px); font-weight: 650; letter-spacing: -.06em; line-height: .94; }
.evidence-stat b { display: block; margin-top: 7px; color: var(--ink); font-size: 16px; line-height: 1.18; }
.evidence-stat p { margin: 11px 0 0; color: #4d5d76; font-size: 14px; line-height: 1.4; }
.evidence-stat a { display: inline-block; margin-top: 13px; color: #405f7d; font-size: 14px; font-weight: 750; text-underline-offset: 3px; }
.landing-observation { padding: clamp(58px, 8vh, 95px) 0; }
.landing-observation > p { max-width: 800px; }
.observation-questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 34px 0 38px; color: var(--ink); font-size: 17px; font-weight: 700; }
.observation-questions span { padding-right: 18px; border-right: 1px solid #c7cdd6; }
.observation-questions span:last-child { border-right: 0; }
.observation-questions span::first-letter { color: var(--orange); }
.feedback-example { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(180px, .85fr) minmax(180px, .85fr) auto; gap: 22px; align-items: center; padding: 25px 28px; border-radius: 14px; background: color-mix(in srgb, var(--orange) 6%, white); }
.feedback-example .eyebrow { margin-bottom: 7px; }
.feedback-example h3 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 630; letter-spacing: -.03em; line-height: 1.13; }
.feedback-path { padding-left: 22px; border-left: 1px solid #c7cdd6; }
.feedback-path b { color: var(--ink); font-size: 15px; }
.feedback-path p { margin: 7px 0 0; color: #4d5d76; font-size: 14px; line-height: 1.42; }
.text-link { border: 0; padding: 0; color: var(--orange); background: transparent; font-weight: 800; white-space: nowrap; }
.landing-outcome { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(330px, .98fr); gap: clamp(40px, 7vw, 86px); padding: clamp(60px, 9vh, 110px) 0; border-top: 1px solid #e1e6ed; }
.landing-outcome > div > p { max-width: 640px; }
.assessment-preview { position: relative; width: min(100%, 360px); min-height: 250px; margin: 38px 0 0 36px; padding: 31px 27px; border: 1px solid #d7dde6; border-radius: 11px; background: #fff; box-shadow: -12px 9px 0 #f4f6f8, -24px 18px 0 #eceff3, 0 10px 28px rgba(11, 31, 59, .06); }
.pdf-mark { display: grid; width: 40px; height: 46px; place-items: center; border-radius: 6px; color: #fff; background: #ff3d30; font-size: 11px; font-weight: 850; }
.assessment-brand { position: absolute; top: 34px; right: 27px; color: var(--ink); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.assessment-preview h3 { margin: 40px 0 7px; color: var(--ink); font-size: 28px; letter-spacing: -.035em; }
.assessment-preview p { margin: 0 0 19px; color: #465972; font-size: 14px; }
.assessment-preview i { display: block; height: 9px; margin-top: 10px; border-radius: 99px; background: #dfe4ea; }
.assessment-preview i:nth-last-child(2) { width: 77%; }
.assessment-preview i:last-child { width: 86%; }
.outcome-paths { display: grid; align-content: center; gap: 16px; }
.outcome-paths article { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 17px; padding: 24px; border: 1px solid #d4dbe5; border-radius: 13px; background: rgba(255, 255, 255, .78); }
.outcome-paths article > span { color: var(--orange); font-size: 34px; line-height: 1; }
.outcome-paths h3 { margin: 0; color: var(--ink); font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.outcome-paths p { margin: 7px 0 0; color: #475971; font-size: 15px; line-height: 1.42; }
.landing-final { margin: 0 -82px; padding: clamp(44px, 7vh, 70px) 82px; color: #fff; background: radial-gradient(ellipse at 40% 0%, #1e4c76, transparent 55%), #071d35; text-align: center; }
.landing-final h2 { color: #fff; font-size: clamp(32px, 3.8vw, 53px); }
.landing-final .landing-cta { margin-top: 22px; }
.hidden { display: none !important; }

@media (max-width: 1100px) {
  .conversation { padding: 30px 26px 22px; }
  .brief { min-width: 330px; padding: 30px 22px 22px; }
  .example-card { min-height: 340px; padding: 23px; }
  .example-card h2 { font-size: 22px; }
}
@media (min-width: 761px) and (max-height: 800px) {
  .conversation.hero { padding-top: 24px; padding-bottom: 14px; }
  .conversation.hero .agent-intro { margin-bottom: 14px; }
  .conversation.hero .agent-sun { width: 50px; height: 50px; border-width: 6px; }
  .conversation.hero .agent-intro h1 { font-size: clamp(25px, 2.2vw, 33px); }
  .opening-intro { margin-bottom: 18px; }
  .opening-intro h1 { margin-top: 7px; font-size: clamp(31px, 3.2vw, 43px); }
  .opening-intro p { font-size: 16px; }
  .journey { margin: 0 auto 14px; }
  .journey img { max-height: 235px; }
  .opening-examples { margin-bottom: 14px; }
  .opening-examples h3 { margin: 0 0 8px; }
}
@media (max-width: 760px) {
  .topbar { height: auto; min-height: 58px; }
  .topbar-inner { min-height: 58px; box-sizing: border-box; padding: 12px 16px; }
  .wordmark { font-size: 14px; letter-spacing: .14em; }
  .brand { display: none; }
  .topnav { display: flex; gap: 30px; font-size: 14px; }
  .topnav span { display: grid; }
  .product-name, .brand-divider { display: none; }
  .language-switcher { margin-left: auto; }
  .workspace { display: flex; height: calc(100% - 58px); min-height: 0; flex-direction: column; }
  .sidebar { max-height: 188px; flex: 0 0 auto; padding: 18px 20px; gap: 10px; }
  .sidebar h2 { font-size: 25px; }
  .sidebar-copy { margin-top: 4px; }
  .topic-list { display: none; }
  .legend { display: none; }
  .content-stage { display: block; min-height: 0; flex: 1 1 auto; overflow: hidden; }
  .conversation, .workspace.active .conversation { height: 100%; min-height: 0; padding: 25px 18px 18px; }
  .workspace.opening .composer { width: 100%; }
  .workspace.active .conversation { height: 52%; padding-left: 14px; padding-right: 14px; }
  .brief-stage, .workspace.active .brief-stage { max-width: none; max-height: 0; height: 0; transform: translateY(24px); }
  .workspace.active .brief-stage { height: 48%; max-height: none; transform: translateY(0); }
  .brief { min-width: 0; height: 100%; padding: 25px 18px; box-shadow: 0 -8px 22px rgba(11, 31, 59, .07); }
  .brief-document-header { margin: -25px -18px 18px; padding: 24px 18px 19px; }
  .brief-document-header h1 { font-size: 25px; }
  .brief-meta { gap: 8px 12px; }
  .journey { display: block; margin: 0 auto 18px; }
  .journey img { width: auto; max-width: 100%; max-height: min(22vh, 170px); }
  .example-grid, .option-grid, .insight-panel { grid-template-columns: 1fr; }
  .example-library { padding: 34px 20px; }
  .library-header { margin-bottom: 26px; }
  .library-header h1 { font-size: 36px; }
  .example-cards { grid-template-columns: 1fr; }
  .example-card { min-height: 0; }
  .about-page { padding: 36px 20px 48px; }
  .about-hero h1 { font-size: clamp(38px, 12vw, 52px); }
  .about-grid, .about-steps { grid-template-columns: 1fr; }
  .about-card { min-height: 0; padding: 22px; }
  .about-card-number { margin-bottom: 24px; }
  .about-boundary { gap: 13px; padding: 20px; }
  .about-steps { gap: 25px; margin-top: 48px; }
  .landing-page { padding: 34px 20px 0; }
  .landing-hero, .landing-outcome { grid-template-columns: 1fr; gap: 36px; }
  .landing-hero-copy h1 { font-size: clamp(39px, 12vw, 54px); }
  .landing-hero-copy > p { margin-top: 16px; font-size: 17px; }
  .landing-cta { margin-top: 22px; }
  .conversation-preview { padding: 19px; }
  .preview-bubble p { font-size: 16px; }
  .landing-evidence { grid-template-columns: 1fr; gap: 25px; margin: 54px -20px 0; padding: 36px 20px; }
  .landing-evidence h2, .landing-observation h2, .landing-outcome h2 { font-size: clamp(31px, 10vw, 43px); }
  .evidence-stat { min-height: 0; border-top: 1px solid #c4c9d0; border-left: 0; padding: 20px 0 0; }
  .evidence-stat strong { font-size: 48px; }
  .landing-observation { padding: 54px 0; }
  .observation-questions { grid-template-columns: 1fr; gap: 14px; margin: 27px 0 30px; }
  .observation-questions span { padding: 0 0 13px; border-right: 0; border-bottom: 1px solid #d7dde6; }
  .feedback-example { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .feedback-path { padding: 17px 0 0; border-top: 1px solid #c7cdd6; border-left: 0; }
  .landing-outcome { padding: 55px 0; }
  .assessment-preview { width: calc(100% - 26px); min-height: 220px; margin: 32px 0 0 26px; box-sizing: border-box; }
  .outcome-paths article { padding: 20px; }
  .landing-final { margin: 0 -20px; padding: 46px 20px; }
  .security-panel { padding: 35px 24px; }
  .brief-section { padding-right: 32px; }
  .modal-layer { padding: 18px; }
  .email-modal { padding: 28px 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .send-spinner, .message-cursor, .processing-lines i, .brief-skeleton i { animation-duration: 1.8s; }
}

.brand-logo { display: inline-block; max-width: 110px; max-height: 42px; object-fit: contain; vertical-align: middle; margin-right: 12px; }
.wordmark { letter-spacing: .08em; }

.landing-product-name { margin-bottom: 14px; }
.landing-hero-copy > .brand-tagline { margin-top: 12px; color: var(--ink); font-size: 16px; font-weight: 700; }
.brand-logo-light { max-width: 95px; max-height: 28px; object-fit: contain; vertical-align: middle; margin-right: 8px; }
@media (max-width: 760px) {
  .brand { display: flex; min-width: 0; }
  .wordmark { display: flex; align-items: center; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-logo { max-width: 46px; max-height: 30px; margin-right: 6px; }
  .topbar-inner { gap: 12px; }
  .topnav { gap: 15px; }
}

/* Charleston-inspired deployment theme. Brand colors remain configurable. */
:root {
  --accent-ink: color-mix(in srgb, var(--orange) 48%, #111);
  --dark-border: color-mix(in srgb, var(--navy-2) 60%, #fff 16%);
  --dark-muted: #e3d8d4;
}
.shell { padding: 0; background: var(--navy); }
.topbar { background: var(--navy); border: 0; border-bottom: 1px solid var(--dark-border); border-radius: 0; }
.wordmark { font-size: 16px; font-weight: 800; letter-spacing: 0; }
.workspace { border-radius: 0; }
.topnav { gap: 25px; font-size: 14px; font-weight: 650; }
.topnav span, .topnav button { border-bottom-width: 2px; }
.workspace.library .content-stage { background: var(--navy); }
.workspace.opening .content-stage, .conversation.hero, .security-gate { background: #faf8f6; }
.conversation { background: #fff; }
.eyebrow, .legend-title, .brief-progress h2, .example-card-label { color: var(--accent-ink); }
.primary-button, .send { color: var(--navy); background: var(--orange); }
.primary-button:hover, .send:not(:disabled):hover { filter: brightness(1.08); }
.primary-button:focus-visible, .send:focus-visible, .topnav button:focus-visible, .text-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.download-example { color: var(--accent-ink); border-color: var(--accent-ink); }
.download-example:hover { color: var(--navy); background: var(--orange); }
.example-card { border-color: var(--dark-border); border-radius: 12px; background: color-mix(in srgb, var(--navy-2) 85%, #fff 5%); box-shadow: none; }
.library-header h1, .library-header p, .example-card h2, .example-card h3, .example-card p { color: #f7fbfe; }
.library-header .eyebrow, .example-card-label, .download-example { color: var(--orange); }
.download-example { border-color: var(--orange); }
.landing-page { color: #f7fbfe; padding-top: clamp(54px, 9vh, 90px); }
.landing-hero { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.landing-hero-copy { display: flex; flex-direction: column; align-items: center; }
.landing-product-name { color: var(--orange); display: inline-block; border: 1px solid var(--dark-border); border-radius: 999px; padding: 7px 13px; font-size: 11px; letter-spacing: .08em; }
.landing-hero-copy h1, .landing-evidence h2, .landing-observation h2, .landing-outcome h2, .landing-final h2 { color: #f7fbfe; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.landing-hero-copy h1 { max-width: 760px; font-size: clamp(40px, 4.3vw, 58px); }
.landing-hero-copy > p { max-width: 650px; color: var(--dark-muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }
.landing-hero-copy > .brand-tagline { color: #f7fbfe; }
.landing-cta { padding: 15px 24px; }
.conversation-preview { width: min(100%, 680px); text-align: left; border: 1px solid var(--dark-border); border-radius: 12px; background: color-mix(in srgb, var(--navy-2) 85%, #fff 5%); box-shadow: none; }
.conversation-preview-label { color: var(--dark-muted); }
.preview-bubble > span { background: color-mix(in srgb, var(--orange) 20%, var(--navy)); color: var(--orange); }
.preview-bubble p, .preview-agent p { background: color-mix(in srgb, var(--navy-2) 75%, #fff 10%); color: #f7fbfe; border: 1px solid var(--dark-border); border-radius: 10px; }
.landing-evidence { margin-top: clamp(60px, 9vh, 92px); background: color-mix(in srgb, var(--navy-2) 82%, #fff 5%); border-top: 1px solid var(--dark-border); border-bottom: 1px solid var(--dark-border); }
.landing-evidence > div:first-child > p, .landing-observation > p, .landing-outcome > div > p, .evidence-stat p, .feedback-path p, .outcome-paths p { color: var(--dark-muted); }
.evidence-stat strong, .evidence-stat b, .feedback-example h3, .feedback-path b, .observation-questions, .outcome-paths h3 { color: #f7fbfe; }
.evidence-stat, .feedback-path, .observation-questions span { border-color: var(--dark-border); }
.evidence-stat a, .text-link, .feedback-example .eyebrow { color: var(--orange); }
.feedback-example, .outcome-paths article { background: color-mix(in srgb, var(--navy-2) 85%, #fff 5%); border: 1px solid var(--dark-border); box-shadow: none; }
.landing-outcome { border-color: var(--dark-border); }
.assessment-preview { box-shadow: none; }
.landing-final { background: var(--navy-2); border-top: 1px solid var(--dark-border); }
@media (max-width: 760px) {
  .landing-page { padding-top: 38px; }
  .landing-hero { gap: 26px; }
  .landing-hero-copy h1 { font-size: clamp(36px, 10vw, 48px); }
  .landing-hero-copy > p { font-size: 17px; }
  .topnav { gap: 15px; }
}

/* Restart is separate from section navigation and available after the first turn. */
.topnav .restart-button { display: inline-flex; align-items: center; justify-content: center; height: auto; min-height: 38px; border: 1px solid var(--orange); border-radius: 8px; padding: 8px 13px; color: var(--navy); background: var(--orange); font-weight: 800; white-space: nowrap; }
.topnav .restart-button:hover:not(:disabled) { filter: brightness(1.08); }
.topnav .restart-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.topnav .restart-button:disabled { opacity: .5; cursor: wait; }
.topnav .restart-button span { display: inline; height: auto; }
.topnav .restart-button .restart-short { display: none; }
.restart-modal .error { margin-top: 14px; color: #a32623; }
@media (max-width: 760px) {
  .topnav { gap: 10px; }
  .topnav .restart-button { min-height: 36px; padding: 7px 11px; }
  .topnav .restart-button .restart-full { display: none; }
  .topnav .restart-button .restart-short { display: inline; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .wordmark { max-width: 30vw; }
  .restart-modal .email-actions { flex-direction: column-reverse; }
}

/* On phones, give the conversation and brief separate full-height views. */
.mobile-view-switch { display: none; }
@media (max-width: 760px) {
  html, body, #app { height: 100%; height: 100dvh; }
  .shell { height: 100%; }
  .workspace { flex: 1 1 auto; height: auto; min-height: 0; }
  .shell { display: flex; flex-direction: column; }
  .topbar { flex: 0 0 auto; }
  .mobile-view-switch { display: flex; flex: 0 0 auto; gap: 4px; padding: 8px 14px; background: #f7f8fa; border-bottom: 1px solid var(--line); }
  .mobile-view-switch button { flex: 1; min-height: 42px; border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; color: var(--ink); background: transparent; font-weight: 700; }
  .mobile-view-switch button[aria-pressed="true"] { border-color: var(--line); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
  .mobile-view-switch button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
  .workspace .content-stage { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .workspace.active .content-stage { display: flex; }
  .workspace.active .conversation { display: flex; flex: 1 1 100%; width: 100%; height: 100%; min-height: 0; padding: 12px 14px max(12px, env(safe-area-inset-bottom)); }
  .workspace.active .agent-intro { flex: 0 0 auto; margin-bottom: 3px; }
  .workspace.active .agent-intro .agent-sun, .workspace.active .agent-intro .eyebrow, .workspace.active .agent-intro p { display: none; }
  .workspace.active .agent-intro h1 { margin: 0; font-size: 18px; line-height: 1.25; }
  .workspace.active .message-stream { flex: 1 1 auto; min-height: 0; gap: 14px; padding: 12px 0; }
  .workspace.active .message { max-width: 100%; }
  .workspace.active .brief-stage { display: none; flex: 1 1 100%; width: 100%; height: 100%; max-height: none; max-width: none; opacity: 1; visibility: visible; overflow: hidden; transform: none; transition: none; }
  .workspace.active.mobile-brief-active .conversation { display: none; }
  .workspace.active.mobile-brief-active .brief-stage { display: block; }
  .workspace.active .brief { width: 100%; min-width: 0; height: 100%; padding: 24px 18px; border: 0; box-shadow: none; overflow-y: auto; }
  .workspace.active .brief-document-header { margin: -24px -18px 18px; padding: 22px 18px 18px; }
  /* The opening page scrolls in one container, including its composer. */
  .workspace.opening .content-stage { overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  .workspace.opening .conversation { height: auto; min-height: 100%; overflow: visible; }
  .workspace.opening .conversation > * { flex-shrink: 0; }
  .composer { flex: 0 0 auto; }
  .composer textarea { font-size: 16px; min-height: 42px; }
  .email-modal input, .brief-editor textarea { font-size: 16px; }
}
