:root{--navy:#0d1d38;--blue:#2f6fed;--ink:#12203a;--muted:#61718a;--line:#e5eaf1;--page:#f7f9fc}
*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--page);color:var(--ink)}
a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible,textarea:focus-visible{outline:3px solid #86adff;outline-offset:3px}
[hidden]{display:none!important}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip{position:absolute;top:-100px;background:#fff;padding:12px;z-index:10}.skip:focus{top:4px}
body{display:flex;flex-direction:column}
.topbar{height:64px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 24px;background:#fff;border-bottom:1px solid var(--line)}
.brand{display:flex;gap:10px;align-items:center;color:var(--ink)}.brand:hover{text-decoration:none}.brand img{width:30px;height:30px;object-fit:contain}
.brand strong{font-size:17px}.brand strong span{color:var(--blue)}.brand small{display:block;font-size:8px;letter-spacing:.13em;font-weight:700;color:var(--muted);margin-top:3px}
.top-links{display:flex;gap:18px;font-size:13px;font-weight:600}.signout{color:var(--muted)}
.frame{flex:1;min-height:0;display:grid;grid-template-columns:260px minmax(0,1fr) 280px}
.stage{min-height:0;display:flex;justify-content:center;padding:20px 16px}
.chat-card{width:100%;max-width:860px;display:flex;flex-direction:column;min-height:0;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 28px rgba(16,32,58,.06);overflow:hidden}
.chat-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.chat-head img{width:44px;height:44px;border-radius:50%;object-fit:cover}.chat-head strong{display:block;font-size:15px}.chat-head span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.status{margin-left:auto;font-size:11px!important;font-weight:600;color:var(--muted)}
.log{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:20px}
.bubble{max-width:78%;padding:11px 15px;border-radius:18px;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.bubble.sarah{align-self:flex-start;background:#eef2f8;color:var(--ink);border-bottom-left-radius:6px}
.bubble.user{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:6px}
.bubble.system{align-self:center;background:#fff7e6;color:#6b4e00;font-size:12.5px;max-width:90%}
.gate{padding:24px;text-align:center;border-top:1px solid var(--line)}.gate p{margin:0 0 14px;color:var(--muted)}
.button{display:inline-block;background:var(--blue);color:#fff;font-weight:600;padding:11px 22px;border-radius:10px}.button:hover{text-decoration:none;background:#2560d6}
.composer{display:flex;gap:10px;padding:14px 16px;border-top:1px solid var(--line)}
.composer textarea{flex:1;resize:none;min-height:44px;max-height:140px;padding:11px 14px;border:1px solid #d5dce8;border-radius:12px;font:inherit;font-size:14px}
.composer button{flex:none;border:0;background:var(--blue);color:#fff;font:inherit;font-weight:600;padding:0 20px;border-radius:12px;cursor:pointer}.composer button:disabled{opacity:.5;cursor:default}
.note{margin:0;padding:8px 16px 12px;font-size:11px;color:var(--muted);text-align:center}
@media (max-width:600px){.topbar{padding:0 16px}.brand small{display:none}.stage{padding:0}.chat-card{border-radius:0;border-left:0;border-right:0}.bubble{max-width:88%}}
.startbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-top:1px solid var(--line);background:#f4f8ff;font-size:13px;font-weight:600}
.startbar .button{padding:8px 16px;border:0;font:inherit;cursor:pointer}
.start{flex:1;min-height:0;overflow-y:auto;padding:24px}
.start h2{margin:0 0 16px;font-size:20px}
.plans{border:0;margin:0 0 16px;padding:0}.plans legend{font-weight:600;font-size:14px;margin-bottom:10px}
#plan-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.plan{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid #d5dce8;border-radius:12px;cursor:pointer}
.plan:has(input:checked){border-color:var(--blue);box-shadow:0 0 0 2px rgba(47,111,237,.15)}
.plan input{margin-top:4px}.plan strong{display:block;font-size:15px}.plan em{display:block;font-style:normal;font-weight:600;color:var(--blue);margin:2px 0 4px}.plan small{color:var(--muted);font-size:12.5px;line-height:1.4}
.terms{display:flex;gap:10px;align-items:flex-start;font-size:14px;margin:6px 0 10px}.terms input{margin-top:3px}
.small{font-size:12px;color:var(--muted);margin:8px 0}
.start-msg{background:#fff7e6;color:#6b4e00;padding:10px 12px;border-radius:10px;font-size:13px}
.start-actions{display:flex;gap:16px;align-items:center;margin:14px 0 6px}
.start-actions .button{border:0;font:inherit;cursor:pointer}.start-actions .button:disabled{opacity:.5;cursor:default}
.link{background:none;border:0;color:var(--blue);font:inherit;font-size:14px;cursor:pointer;padding:0}
.status-card{max-width:560px;margin:auto;padding:32px;text-align:center}.status-card h1{font-size:22px;margin:0 0 10px}.status-card p{color:var(--muted);line-height:1.5}
.spinner{width:28px;height:28px;margin:8px auto 16px;border:3px solid #dbe5f7;border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation:none}}
.chat-card[hidden]{display:none}
.checking{align-self:center;color:#5b6b80;font-size:15px;text-align:center;margin:0}
.bubble p{margin:0 0 8px}.bubble p:last-child,.bubble ul:last-child,.bubble ol:last-child{margin-bottom:0}
.bubble ul,.bubble ol{margin:0 0 8px;padding-left:20px}.bubble li{margin:2px 0}.bubble .md-h{font-weight:700;margin:6px 0 4px}
.choices{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start;max-width:88%}
.choice{border:1px solid var(--blue);background:#fff;color:var(--blue);font:inherit;font-size:13.5px;font-weight:600;padding:8px 14px;border-radius:999px;cursor:pointer}
.choice:hover{background:#f0f5ff}.choice:disabled{opacity:.5;cursor:default}
.account{position:relative}.account-menu::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
.avatar{width:36px;height:36px;border-radius:50%;border:0;background:var(--blue);color:#fff;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.account-menu{position:absolute;right:0;top:44px;min-width:220px;max-width:300px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 28px rgba(16,32,58,.12);padding:12px 14px;z-index:20;font-size:13px}
.account-menu strong{display:block;font-size:14px;overflow-wrap:anywhere}.account-menu span{display:block;color:var(--muted);margin:2px 0 10px;overflow-wrap:anywhere}
.account-menu a,.account-menu button{display:block;font-weight:600}
.coworker-pick{display:block;margin:0 0 16px;font-size:14px}.coworker-pick label{display:block;font-weight:600;margin-bottom:6px}
.coworker-pick select{width:100%;max-width:420px;padding:9px 12px;border:1px solid #d5dce8;border-radius:10px;font:inherit;font-size:14px;background:#fff}
.signout-warn{margin:0 0 8px;color:#6b4e00;background:#fff7e6;border-radius:8px;padding:6px 8px;font-size:12.5px}

/* Side panels (v3.8): coworkers left, package right; shown after the sign-in check */
.team,.package{display:none;min-height:0;overflow-y:auto;padding:20px 16px}
.signed-in .team,.signed-in .package{display:block}
.team{background:#fff;border-right:1px solid var(--line)}
.side-h{display:block;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}
.team-sarah{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid #cfdcf7;background:#eef4ff;border-radius:12px}
.team-sarah img,.team-list img{width:42px;height:42px;border-radius:50%;object-fit:cover;flex:none}
.team-sarah strong,.team-list strong{display:block;font-size:14px}.team-sarah small,.team-list small{display:block;font-size:12px;color:var(--muted);line-height:1.3}
.team-sarah em{display:block;font-style:normal;font-size:11.5px;font-weight:700;color:var(--blue);margin-top:3px}
.team-note{font-size:12.5px;color:var(--muted);margin:16px 4px 8px}
.team-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.team-list li{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:12px}
.pkg-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 4px 14px rgba(16,32,58,.04)}
.pkg-card h2{font-size:18px;margin:0 0 4px}
.pkg-who{margin:0 0 14px;font-size:14px;color:var(--muted);font-weight:600}
.pkg-free{margin:0;font-size:26px;font-weight:800;color:var(--ink)}
.pkg-then{margin:4px 0 14px;font-size:13.5px;color:var(--muted)}
.pkg-points{margin:0 0 16px;padding-left:18px;font-size:13px;line-height:1.7;color:var(--ink)}
.pkg-card .button{border:0;font:inherit;font-weight:600;cursor:pointer;width:100%}
/* v3.9: typing dots while Sarah writes */
.bubble.typing{display:flex;gap:5px;align-items:center;padding:14px 16px}
.bubble.typing .dot{width:7px;height:7px;border-radius:50%;background:#8a94a6;animation:bp-dot 1.2s infinite ease-in-out}
.bubble.typing .dot:nth-child(2){animation-delay:.15s}.bubble.typing .dot:nth-child(3){animation-delay:.3s}
@keyframes bp-dot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.bubble.typing .dot{animation:none;opacity:.6}}

/* v3.11: tables in Sarah's replies. A wide table scrolls inside the bubble; the page never scrolls sideways. */
.bubble .md-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:4px 0 8px;border:1px solid var(--line);border-radius:10px;background:#fff}
.bubble .md-table:last-child{margin-bottom:0}
.bubble .md-table:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.bubble .md-table table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.4}
.bubble .md-table th,.bubble .md-table td{padding:7px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:break-word;min-width:72px;max-width:260px}
.bubble .md-table th{background:var(--page);color:var(--ink);font-weight:600;white-space:nowrap}
.bubble .md-table tbody tr:last-child td{border-bottom:0}
@media (max-width:600px){.bubble .md-table table{font-size:12.5px}.bubble .md-table th,.bubble .md-table td{padding:6px 8px;min-width:56px;max-width:150px}}
.bubble.sarah{min-width:0}.stage,.chat-card,.log{min-width:0}

/* ============ v3.13 layout (Eddie 1 Dec, "Onboarding" frame): same layout as the workspace, Sarah only ============ */
.frame{flex:1;min-height:0;display:grid;grid-template-columns:272px minmax(0,1fr);background:#fff}
.frame .side{display:flex;flex-direction:column;min-height:0;background:var(--page);border-right:1px solid var(--line);padding:16px 12px 0}
.frame .brand{padding:4px 8px 16px}.frame .brand img{width:32px;height:32px}
.frame .cw-part{flex:1;min-height:0;overflow-y:auto}
.frame .side-h{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:14px 8px 8px;font-weight:700}
.frame .team-sarah{border:0;background:#e4ecfb;border-radius:10px;padding:8px}
.frame .team-sarah img{width:36px;height:36px}
.frame .team-note{margin:0 8px 6px}
.frame .team-list li{padding:6px 8px}.frame .team-list img{width:36px;height:36px}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.steps li{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;font-size:14.5px;color:#4a586e}
.steps .num{width:26px;height:26px;border-radius:50%;border:1.5px solid #c3ccd9;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:600;flex:none;color:#4a586e}
.steps li[aria-current]{color:var(--blue);font-weight:600}.steps li[aria-current] .num{background:var(--blue);border-color:var(--blue);color:#fff}
.steps li.done .num{background:#e4ecfb;border-color:#b9cbef;color:var(--blue)}
.frame .side-foot{flex:none;display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 8px 14px;margin-top:8px}
.member{margin:0;font-size:14px;color:#4a586e}.member a{font-weight:600}
.frame .account{position:relative}
.frame .avatar{width:40px;height:40px;border-radius:50%;border:0;background:var(--navy);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.frame .account-menu{position:absolute;left:0;right:auto;top:auto;bottom:50px}
.mainwrap{min-width:0;min-height:0;display:flex;flex-direction:column}
.mainbar{flex:none;display:flex;align-items:center;gap:14px;min-height:68px;padding:10px 24px;border-bottom:1px solid var(--line);background:#fff}
.menu-btn{display:none;width:44px;height:44px;border:0;background:none;color:var(--ink);border-radius:10px;cursor:pointer;padding:10px;flex:none}.menu-btn svg{width:24px;height:24px}
.mainbar .chat-head{display:flex;align-items:center;gap:12px;min-width:0;flex:1;padding:0;border:0}
.mainbar .chat-head img{width:40px;height:40px}
.mainbar .chat-head h1{margin:0;font-size:inherit;font-weight:400;min-width:0}
.mainbar .chat-head strong{font-size:16px}.mainbar .chat-head span{font-size:13px}
.mainbar .status{margin-left:6px;font-size:12px!important;color:var(--muted)}
.bar-right{margin-left:auto;display:flex;align-items:center;gap:10px;flex:none}
.step-pill{background:#e8effd;color:#1f56c6;border-radius:999px;padding:8px 14px;font-size:13.5px;font-weight:600;white-space:nowrap}
.tasks-btn{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;padding:0 14px;min-height:40px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}
.tasks-btn svg{width:18px;height:18px}.tasks-btn:hover{border-color:#b9c9e8}
.mainbar .help{font-size:14px;font-weight:600;white-space:nowrap;padding:8px 4px}
body:not(.signed-in) .tasks-btn,body:not(.signed-in) .step-pill{display:none}
.frame .stage{flex:1;min-height:0;display:flex;padding:0;justify-content:stretch}
.frame .checking{margin:auto}
.frame .chat-card{max-width:none;border:0;border-radius:0;box-shadow:none;background:#fff}
.frame .log{gap:14px;padding:28px max(20px,calc((100% - 780px)/2)) 12px}
.frame .bubble{max-width:100%;font-size:16px;line-height:1.6}
.frame .bubble.sarah{background:none;padding:2px 0 2px 42px;border-radius:0;position:relative;align-self:stretch}
.frame .bubble.sarah::before{content:"";position:absolute;left:0;top:2px;width:30px;height:30px;border-radius:50%;background:url(/assets/sarah.jpg) center/cover}
.frame .bubble.sarah.typing{align-self:flex-start;background:#f0f2f5;border-radius:18px;padding:14px 16px;margin-left:42px}
.frame .bubble.sarah.typing::before{left:-42px;top:4px}
.frame .bubble.user{background:#f0f2f5;color:var(--ink);padding:12px 18px;border-radius:20px;max-width:80%}
.frame .bubble p{margin:0 0 12px}.frame .bubble p:last-child{margin-bottom:0}
.frame .choices{max-width:100%;padding-left:42px;gap:10px}
.frame .choice{border:1.5px solid var(--blue);color:var(--blue);background:#fff;font-size:14.5px;font-weight:600;padding:0 18px;min-height:44px;box-shadow:0 1px 2px rgba(15,23,42,.08)}
.frame .choice:hover{background:#eef4ff}
.frame .choice.primary{background:var(--blue);color:#fff;padding:0 22px;box-shadow:0 2px 6px rgba(37,99,235,.28)}
.frame .choice.primary::after{content:" \2192";margin-left:2px}
.frame .choice.primary:hover{filter:brightness(.93);background:var(--blue)}
.frame .choice:focus-visible{outline:3px solid #93b4f5;outline-offset:2px}
.frame .startbar{margin:0 max(20px,calc((100% - 780px)/2)) 8px;border:1px solid #cfdcf7;border-radius:14px;font-size:14px}
.frame .startbar .button{border:0;font:inherit;font-weight:600;cursor:pointer}
.frame .composer{flex:none;display:block;border:0;padding:8px max(20px,calc((100% - 780px)/2)) 6px}
.comp-box{display:flex;align-items:flex-end;gap:10px;border:1px solid #d5dce8;border-radius:24px;background:#fff;padding:8px 8px 8px 18px;box-shadow:0 4px 18px rgba(16,32,58,.06)}
.comp-box:focus-within{border-color:#86adff;box-shadow:0 0 0 3px rgba(134,173,255,.35)}
.frame .composer textarea{flex:1;resize:none;min-height:44px;max-height:200px;padding:11px 0;border:0;outline:none;font:inherit;font-size:16px;line-height:1.4;background:none;color:var(--ink)}
.frame .composer button{width:44px;height:44px;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center}
.frame .composer button svg{width:20px;height:20px}
.frame .note{padding:6px 20px 14px;font-size:12px}.frame .note a{text-decoration:underline}
.frame .start,.frame .status-card{width:100%;max-width:780px;margin:0 auto}
/* Pilot package: a slide-over from the header button */
.frame .package,.signed-in .frame .package{display:block;position:fixed;top:0;right:0;bottom:0;width:min(380px,100%);z-index:40;background:var(--page);border-left:1px solid var(--line);padding:18px 20px 28px;overflow-y:auto;box-shadow:-12px 0 36px rgba(16,32,58,.14);transform:translateX(105%);visibility:hidden;transition:transform .2s,visibility .2s}
.frame .package.open{transform:none;visibility:visible}
.ins-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}.ins-title{font-size:18px;margin:0}
.close-insights{border:0;background:none;color:var(--blue);font:inherit;font-weight:700;min-height:44px;padding:0 6px;cursor:pointer}
.scrim{position:fixed;inset:0;background:rgba(13,29,56,.28);z-index:35}
/* Before the sign-in check only the logo and the check show */
@media (max-width:1020px){.tasks-txt{display:none}.tasks-btn{width:44px;padding:0;justify-content:center}}
@media (max-width:760px){
 .frame{grid-template-columns:1fr}
 .frame .side{position:fixed;top:0;left:0;bottom:0;width:min(300px,86vw);z-index:40;transform:translateX(-105%);visibility:hidden;transition:transform .2s,visibility .2s;box-shadow:12px 0 36px rgba(16,32,58,.14)}
 body.side-open .frame .side{transform:none;visibility:visible}
 .menu-btn{display:block;margin-left:-8px}
 .mainbar{padding:8px 12px;gap:8px;min-height:60px}
 .mainbar .chat-head span,.mainbar .status{display:none}
 .mainbar .help{display:none}
 .step-pill{padding:6px 10px;font-size:12.5px}
 .frame .log{padding:18px 16px 8px}
 .frame .bubble.sarah{padding-left:0}.frame .bubble.sarah::before{display:none}.frame .bubble.sarah.typing{margin-left:0}
 .frame .choices{padding-left:0}
 .frame .composer{padding:6px 12px 4px}
 .frame .startbar{margin:0 12px 8px}
}
@media (prefers-reduced-motion:reduce){.frame .side,.frame .package{transition:none}}
body:not(.signed-in) .frame .cw-part{visibility:hidden}
