* { box-sizing: border-box; }
[hidden] { display:none !important; }
body { margin:0; height:100vh; height:100dvh; display:flex; flex-direction:column; color:var(--ink); background:white; font:16px/1.55 var(--sans); -webkit-font-smoothing:antialiased; }
h1,h2,h3,p,ol,dl { margin:0; }
h1,h2,h3 { line-height:1.14; letter-spacing:-.035em; font-weight:630; }
h2 { font-size:clamp(21px,3vw,28px); }
h3 { font-size:19px; }
a,.text-button,.link { color:var(--blue-hover); text-underline-offset:3px; }
button,input,textarea,select { font:inherit; color:inherit; }
button,summary { cursor:pointer; }
button { font-size:14px; font-weight:600; line-height:1.4; padding:10px 15px; background:white; border:1px solid var(--line); border-radius:9px; }
button:hover { border-color:#aeb9c6; }
button:disabled { opacity:.55; cursor:default; }
/* Brand kit §8: steps inside the assessment take ink buttons; neon (.cta) marks only the conversions, with a 1px ink border on white. */
.primary,.cta,#answer button[type=submit] { display:inline-flex; align-items:center; gap:15px; background:var(--ink); border-color:var(--ink); color:white; }
.primary:hover,#answer button[type=submit]:hover { background:#1f2937; border-color:#1f2937; }
.cta { background:var(--neon); border-color:var(--ink); color:var(--ink); }
.cta:hover { background:#dbec1a; border-color:var(--ink); }
.text-button,.link { padding:5px 0; border:0; background:transparent; }
.text-button:hover,.link:hover { text-decoration:underline; }
:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
main:focus,.scroll-pane:focus:not(:focus-visible) { outline:none; }
.sr,.skip:not(:focus) { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip:focus { position:absolute; z-index:8; top:6px; left:12px; background:white; padding:8px 15px; }
/* The logo and links line up with the other pages' bar: the same 72rem column (1rem from the edge on phones, 1.5rem otherwise). */
.topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 max(1.5rem,calc((100% - 72rem) / 2)); min-height:72px; border-bottom:1px solid var(--line); flex:none; }
.brand { display:flex; align-items:center; gap:20px; }
.brand img { width:80px; height:auto; }
.brand span { border-left:1px solid #cbd3df; padding-left:20px; font-size:14px; font-weight:400; }
.admin-link { color:var(--muted); text-decoration:none; font-size:13px; }
.admin-link:hover { color:var(--ink); }
.workspace { flex:1; min-height:0; display:grid; grid-template-columns:clamp(210px,21vw,302px) minmax(0,1fr); }
.rail { display:flex; flex-direction:column; align-items:start; padding:clamp(36px,5.7vh,70px) clamp(17px,2.8vw,48px) 24px; border-right:1px solid var(--line); background:#f8fafc; overflow:auto; }
.rail-title { font-size:13px; color:var(--muted); font-weight:560; margin-bottom:22px; }
#outline { list-style:none; padding:0; }
#outline li { display:flex; gap:13px; position:relative; align-items:flex-start; min-height:69px; }
#outline li:not(:last-child)::after { content:""; width:1px; background:#d5dce6; position:absolute; top:29px; bottom:3px; left:12px; }
.step-mark { width:25px; height:25px; flex:none; border:1px solid #c9d2df; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:600; color:var(--muted); background:#fff; }
.current .step-mark { border-color:var(--blue); background:var(--blue); color:white; }
.done .step-mark { color:var(--blue-hover); border-color:#bedbff; background:var(--tint); }
#outline b { display:block; font-size:14px; line-height:25px; font-weight:560; }
#outline .current b { color:var(--blue-hover); }
#outline small { font-size:12px; line-height:1.45; display:block; }
.rail-foot { display:flex; align-items:center; gap:8px; margin-top:auto; padding-top:28px; color:var(--muted); font-size:12px; }
.privacy-dot { width:8px; height:8px; border-radius:50%; background:var(--blue); }
main { display:flex; flex-direction:column; min-width:0; min-height:0; position:relative; }
#error { flex:none; margin:6px 16px; border:1px solid #efc5b5; border-radius:8px; color:#822e16; background:#fff5ef; padding:9px 14px; font-size:14px; }
#intake,#email-step { flex:1; overflow:auto; }
.welcome,.session-inner { width:min(100%,860px); margin-inline:auto; padding-inline:clamp(22px,4.5vw,76px); }
.welcome { padding-top:clamp(32px,7vh,90px); padding-bottom:32px; }
.byline { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; }
.welcome h1 { font-size:clamp(42px,4.35vw,70px); line-height:1.01; margin:22px 0 16px; letter-spacing:-.06em; }
.lead { max-width:55ch; font-size:clamp(16px,1.45vw,19px); color:#39475a; }
#leadform { margin:25px 0 15px; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 18px; }
label { display:grid; align-content:start; gap:6px; font-size:13px; font-weight:550; }
input,select,textarea { background:white; border:1px solid #bcc6d3; border-radius:8px; padding:10px 12px; min-width:0; width:100%; font-size:15px; line-height:1.4; font-weight:400; }
textarea { resize:vertical; }
input::placeholder,textarea::placeholder { color:#697688; opacity:1; }
#begin { margin-top:21px; }
.footnote,.note,small { font-size:13px; line-height:1.5; color:var(--muted); }
#session { flex:1; min-height:0; }
.session-inner { height:100%; display:flex; flex-direction:column; }
.session-heading { padding:clamp(18px,3.5vh,42px) 0 13px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex:none; }
.progress-label { color:var(--blue-hover); font-size:12px; font-weight:560; margin-bottom:4px; }
.session-heading h1 { font-size:clamp(24px,3vw,38px); overflow-wrap:anywhere; }
.menu { position:relative; }
.menu summary { font-size:24px; line-height:24px; padding:5px 10px 8px; list-style:none; border-radius:8px; }
.menu summary:hover,.menu[open] summary { background:#f1f5f9; }
.menu>div { position:absolute; right:0; top:100%; z-index:5; border:1px solid var(--line); border-radius:9px; padding:8px 15px; background:white; white-space:nowrap; box-shadow:0 6px 20px #11182712; }
summary { font-weight:560; font-size:14px; }
.menu summary::-webkit-details-marker { display:none; }
.sources { border-block:1px solid var(--line); flex:none; }
.sources summary { padding:10px 0; color:#35445a; }
.count { color:var(--muted); font-size:12px; font-weight:420; margin-left:6px; }
.source-list { max-height:min(26vh,230px); overflow:auto; overscroll-behavior:contain; }
.part { padding:12px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.part p { margin:4px 0; }
.source-list .part,.source-list p { font-size:14px; }
.source-list .note { margin:0 0 10px; }
.scroll-pane { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; overflow-wrap:anywhere; }
.thread,.editor,.report { padding:clamp(18px,3.3vh,38px) 4px 24px; }
.message { display:flex; align-items:flex-start; gap:12px; margin-bottom:23px; }
.message b { display:block; font-size:13px; font-weight:620; margin-bottom:3px; }
.message p { white-space:pre-wrap; line-height:1.55; }
.avatar { flex:none; margin-top:1px; }
.mine { justify-content:flex-end; padding-left:40px; }
.mine p { border-radius:15px 15px 4px 15px; max-width:90%; padding:10px 15px; background:var(--tint); }
.receipt,.activity { margin:9px 0 16px 42px; color:var(--muted); font-size:13px; }
.activity { display:flex; align-items:center; gap:8px; }
.compose-area { padding:11px 2px max(15px,env(safe-area-inset-bottom)); flex:none; background:white; }
#chat { display:flex; align-items:flex-end; gap:8px; border:1px solid #aab7c7; border-radius:15px; padding:8px; background:white; box-shadow:0 3px 12px #11182708; }
#chat:focus-within { outline:2px solid var(--blue); outline-offset:1px; }
#reply { border:0; outline:0; resize:none; min-height:41px; max-height:min(130px,18dvh); field-sizing:content; padding:9px 7px; }
.send { width:41px; height:41px; flex:none; display:grid; place-items:center; padding:0; border-radius:9px; background:var(--ink); border-color:var(--ink); color:white; font-size:23px; }
.send:disabled { opacity:1; color:#747f8e; background:#edf1f4; border-color:#edf1f4; }
.compose-tools,.inline-actions,.actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; }
.compose-tools { padding:4px 5px 0; }
.compose-tools button { color:var(--muted); font-size:12px; font-weight:500; }
.draft-card,.review { padding:14px 0; border-top:1px solid var(--line); }
.draft-card { margin:10px 0 0 42px; }
.draft-card details p,.review-fold dl,.report-fold dl { margin:9px 0; }
.draft-card details p { font-size:14px; } .draft-card details span { color:var(--muted); }
.draft-card .inline-actions { margin-top:7px; }
.small { padding:7px 12px; }
.review h2,.editor h2 { margin-bottom:12px; }
.review-fold,.report-fold { border-bottom:1px solid var(--line); padding:12px 0; }
.review button.primary,.actions { margin:14px 0; }
fieldset { border:0; padding:0; margin:15px 0; min-width:0; }
fieldset+fieldset { border-top:1px solid var(--line); padding-top:15px; }
.full { grid-column:1/-1; }
.stephead,.value { display:flex; align-items:baseline; justify-content:space-between; gap:15px; }
.stephead { margin-bottom:10px; }
.value { padding:5px 0; border-bottom:1px solid #eef0f3; font-size:14px; }
.value dt { color:var(--muted); } .value dd { margin:0; text-align:right; }
.report p,.report h3,.report ul { margin-block:10px; } .report .sources { margin-top:16px; }
@media(max-width:760px) {
  .workspace { grid-template-columns:minmax(0,1fr); } .rail { display:none; }
  .welcome,.session-inner { padding-inline:clamp(17px,4.8vw,34px); }
  .topbar { min-height:60px; } .brand { gap:12px; } .brand span { padding-left:12px; font-size:13px; }
  .session-heading { padding-top:16px; } .welcome { padding-top:30px; }
  input,select,textarea { font-size:16px; }
}
@media(max-width:480px) {
  .welcome h1 { font-size:45px; }
  .grid { gap:11px; } #leadform label:nth-child(-n+2),.editor .grid>* { grid-column:1/-1; }
  .mine p { max-width:100%; } .draft-card { margin-left:0; }
}
@media print {
  body,.workspace,main,#session,.session-inner,.scroll-pane,.source-list { display:block; overflow:visible; height:auto; max-height:none; width:auto; padding:0; }
  .topbar { border:0; padding:0; } .rail,.menu,.actions,button,.admin-link,.team-online,#error,.skip { display:none; }
  .part,.value { break-inside:avoid; } .report-fold,.sources { border:0; }
}
.draft-preview { margin:6px 0 0; font-size:14px; }
#chat-draft[open]+.draft-preview { display:none; }
.agent-byline {display:flex;align-items:center;gap:10px;margin:0 0 17px;color:var(--muted);font-size:13px;font-weight:600}
#choice-tool h2:focus {outline:none}
.choice-hint,.pick-help {color:var(--muted);font-size:14px;margin:6px 0 12px}
.pick-field {margin:18px 0}
.pick-field legend,.choice-menu label {font-size:14px;font-weight:580}
.pick-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(215px,100%),1fr));gap:8px}
.pick {display:flex;align-items:center;gap:10px;min-height:45px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer;font-weight:480;font-size:14px}
.pick:hover,.pick:focus-within {border-color:var(--blue)}
.pick:has(input:checked) {border-color:var(--blue);background:var(--tint)}
.pick input {width:17px;height:17px;margin:0;flex:none;accent-color:var(--blue)}
.pick-cards .pick-grid {grid-template-columns:minmax(0,1fr);gap:10px}
.pick-cards .pick {min-height:64px;padding:16px;line-height:1.5;font-size:16px}
.pick-cards .pick span {overflow-wrap:anywhere}
.pick-cards .pick:has(input:focus-visible) {outline:2px solid var(--blue);outline-offset:3px}
.pick-described .pick {align-items:flex-start}
.pick-described input {margin-top:.2rem}
.pick-described strong,.pick-described small {display:block}
.pick-described strong {font-weight:600}
.pick-described small {margin-top:.25rem;font-size:.875rem;font-weight:400;color:var(--muted)}
@media(min-width:620px){.pick-described .pick-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
.custom-entry,.choice-menu {margin-top:13px}
.choice-menu {max-width:36rem}
.choice-actions {display:flex;align-items:center;gap:24px;margin:22px 0 8px}
#finish {display:grid;gap:10px;margin-top:22px}
#finish button {justify-self:start}
.last-choice {margin-bottom:18px;color:var(--muted);font-size:13px}
.last-choice summary {font-size:13px}
.last-choice p {margin-top:5px;overflow-wrap:anywhere}
/* Sales handoff on the finished report (handoff.js). */
.handoff {margin:22px 0 8px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--tint)}
.handoff h3 {margin:0 0 6px}
.handoff .consent {display:flex;gap:10px;align-items:flex-start;margin:12px 0;font-size:14px;line-height:1.45}
.handoff .consent input {width:auto;margin-top:3px;flex:none}
.handoff-check:not(:empty) {margin:8px 0}
.handoff #handoff-status:empty {display:none}
#report-specialist .team-person {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;padding:1rem 0;border:0;border-bottom:1px solid var(--line)}
#report-specialist .team-avatar {width:3rem;height:3rem;background:white}
#report-specialist .available {display:inline-flex;align-items:center;gap:.4rem;padding:0;color:#166534;background:transparent}
#report-specialist .available::before {content:'';width:.55rem;height:.55rem;border-radius:50%;background:#16803d}
#report-specialist .team-actions {margin:0}
#report-specialist .team-start {background:var(--ink);color:white}
#report-specialist .with-icon {width:auto;padding:0 .85rem}
#report-specialist .with-icon .label {position:static;width:auto;height:auto;clip-path:none;white-space:normal}
@media print {.handoff {display:none}}
/* Describe-it box and suggestion notice on the choice pages (describe.js). */
.describe {margin:0 0 16px;padding:10px 14px;border:1px solid var(--line);border-radius:10px}
.describe summary {cursor:pointer;font-size:14px;color:var(--blue-hover)}
.describe form {display:grid;gap:10px;margin-top:10px;justify-items:start}
.notice {margin:0 0 14px;padding:10px 14px;border-radius:10px;background:var(--tint);font-size:14px}

/* The other paths in the top bar as plain links (Oğuz, 2026-12-02). Verified leads see the
   KIVA team dialog button instead of the /team link. */
.top-nav { display:flex;align-items:center;gap:18px; }
.nav-button,#team-open { padding:0;border:0;background:transparent;color:var(--muted);font-size:14px;font-weight:400;line-height:1.5;text-decoration:none;white-space:nowrap; }
.nav-button:hover,#team-open:hover { color:var(--ink); }
.topbar .admin-link { font-size:14px;font-weight:400; }
.top-links,.top-nav { gap:20px !important; }
#team-open:not([hidden]) ~ .top-nav .team-link { display:none; }
.top-nav .short { display:none; }
/* Sign out: an icon at the right end of the top bar (portal.mjs signOutButton). */
.nav-signout{display:grid;place-items:center;flex:none;width:2.25rem;height:2.25rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.nav-signout[hidden]{display:none}.nav-signout:hover{color:var(--ink);background:#f1f5f9}.nav-signout:disabled{opacity:.5;cursor:default}
.nav-signout svg{width:18px;height:18px}
.team-online { position:relative;display:flex;align-items:center;text-decoration:none; }
.team-online[hidden] { display:none; }
.team-online .team-avatar { width:30px;height:30px;flex:none;border:2px solid white;font-size:10.5px;font-weight:600;letter-spacing:-.01em; }
.team-online .team-avatar + .team-avatar { margin-left:-7px; }
.team-online .team-online-more { background:#f1f5f9;color:var(--muted); }
.team-online::after { content:'';position:absolute;right:-3px;bottom:-1px;width:10px;height:10px;border:2px solid white;border-radius:50%;background:#16803d; }
.team-online:hover .team-avatar { border-color:var(--tint); }
/* While someone is online the avatars stand in for the team links (they open /team or the team dialog),
   and a thin line separates them from the Kiva Advisor link with its AI mark. */
.team-online:not([hidden]) ~ #team-open,.team-online:not([hidden]) ~ .top-nav .team-link { display:none; }
.team-online:not([hidden]) ~ .top-nav::before { content:'';width:1px;height:18px;background:var(--line); }
.nav-chat { display:inline-flex;align-items:center;gap:6px; }
.nav-ai { width:18px;height:18px;flex:none; }
@media(max-width:680px){ .team-online .team-avatar { width:26px;height:26px;font-size:9.5px; } .topbar { padding-inline:1rem; } .topbar .brand span { display:none; } .top-links,.top-nav { gap:14px !important; } .nav-button,#team-open,.topbar .admin-link { font-size:13px; } .top-nav .full { display:none; } .top-nav .short { display:inline; } }
.team-directory { width:min(31rem,calc(100vw - 1.5rem));max-height:80dvh;padding:1.2rem;border:1px solid var(--line);border-radius:1rem;color:var(--ink);font:inherit;box-shadow:0 12px 36px #17243530; }
.team-directory::backdrop { background:#11182770; }
.team-head,.team-identity,.team-actions { display:flex;align-items:center;gap:.65rem; }
.team-head { justify-content:space-between;margin-bottom:.6rem; }
.team-head h2 { font-size:1.25rem; }
.team-close { min-width:2.75rem;min-height:2.75rem;font-size:1.1rem; }
/* The leave offer (leave-offer.js): Kiva Advisor, and the people online when there are any. */
.leave-offer { width:min(29rem,calc(100vw - 1.5rem));padding:1.25rem;border:1px solid var(--line);border-radius:1rem;color:var(--ink);font:inherit;box-shadow:0 12px 36px #17243530; }
.leave-offer::backdrop { background:#11182770; }
.leave-offer .team-head { align-items:flex-start; }
.leave-offer .leave-copy { margin:0;color:var(--muted);font-size:.9375rem;line-height:1.55; }
.leave-team { display:flex;align-items:center;gap:.75rem;margin-top:1rem;padding:.75rem .85rem;border-radius:.75rem;background:var(--tint); }
.leave-team p { margin:0;font-size:.875rem;line-height:1.45; }
.leave-avatars { display:flex;flex:none; }
.leave-avatars .team-avatar { width:2.25rem;height:2.25rem;border:2px solid white;font-size:.75rem; }
.leave-avatars .team-avatar + .team-avatar { margin-left:-.6rem; }
.leave-actions { display:flex;flex-direction:column;gap:.5rem;margin-top:1.1rem; }
.leave-actions > * { display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.75rem;padding:10px 15px;border:1px solid var(--line);border-radius:9px;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none; }
.leave-actions .cta { background:var(--neon);border-color:var(--ink);color:var(--ink); }
.leave-actions .secondary { background:white;color:var(--ink); }
.leave-actions .leave-chat img { flex:none; }
.leave-actions .leave-stay { border-color:transparent;background:transparent;color:var(--muted);font-weight:500; }
.leave-actions .leave-stay:hover { color:var(--ink); }
.team-person { margin:0;padding:.85rem 0;border-top:1px solid var(--line); }
.team-identity strong { display:block;font-weight:600; }
.team-identity small { display:inline-block;margin-top:.1rem;color:var(--muted);font-size:.8rem; }
.team-identity .available { padding:.05rem .5rem;border-radius:.375rem;background:#34d399;color:var(--ink);font-weight:500; }
.team-avatar { display:grid;place-items:center;position:relative;overflow:hidden;width:2.4rem;height:2.4rem;border-radius:50%;background:var(--tint);color:var(--blue);font-weight:600; }
.team-avatar img { position:absolute;width:100%;height:100%;object-fit:cover; }
/* Brand kit buttons: 44 px tall, 8 px radius, 14 px medium. Ink for the call, outline for the calendar. */
.team-actions { margin-top:.6rem;flex-wrap:wrap; }
.team-actions :is(a,button) { display:inline-flex;align-items:center;min-height:2.75rem;padding:0 1.1rem;border:1px solid var(--ink);border-radius:.5rem;background:#fff;color:var(--ink);font-size:.875rem;font-weight:500;text-decoration:none; }
.team-actions :is(a,button):hover { background:#f3f4f6; }
.team-directory .team-start,.team-directory .team-start:hover { background:var(--ink);color:#fff; }
.team-directory p { margin:.6rem 0; }
.team-directory .consent-notice { font-size:.8125rem;color:var(--muted); }
.with-icon { gap:.45rem; }.with-icon svg { flex:none;width:1.15rem;height:1.15rem; }
.team-directory .consent { display:flex;align-items:flex-start;gap:.55rem;margin:.75rem 0;font-size:.8125rem;line-height:1.45;color:var(--muted);cursor:pointer; }
.team-directory .consent input { flex:none;width:1rem;height:1rem;margin:.1rem 0 0;accent-color:var(--ink); }
@media(max-width:680px){
  .team-directory .team-person { display:flex;align-items:center;justify-content:space-between;gap:.75rem; }
  .team-directory .team-person .team-actions { margin-top:0;flex-wrap:nowrap;gap:.5rem; }
  .team-actions .with-icon { width:2.75rem;padding:0;justify-content:center; }.with-icon svg { width:1.3rem;height:1.3rem; }
  .with-icon .label { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
}


.answer-dictation {margin:12px 0 18px}
.dictation-controls,.dictation-toggle {display:flex;align-items:center;gap:8px}
.dictation-toggle {padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:white;color:inherit;font:inherit;font-size:14px;cursor:pointer}
.dictation-toggle[aria-pressed=true] {color:#075da3;border-color:#86bcea;background:#edf6ff}
.dictation-toggle:focus-visible {outline:2px solid #087aca;outline-offset:2px}
.dictation-toggle svg {width:17px;height:17px}
.spoken-text,.dictation-status {margin:6px 0 0;font-size:14px;overflow-wrap:anywhere}
.dictation-status {color:var(--muted)}
.spoken-text:empty,.dictation-status:empty {display:none}
