@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#142b49;--muted:#41546d;--primary:#2563a6;--line:#dce4ef;--bg:#f4f7fc}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:calc(14px + 1pt) 'DM Sans',sans-serif}aside{position:fixed;width:242px;height:100vh;background:#eaf0f8;border-right:1px solid var(--line);padding:33px 22px}.brand{font-size:calc(25px + 1pt);color:var(--primary);text-decoration:none;display:flex;gap:9px;align-items:center}.brand span{font-size:calc(19px + 1pt);font-weight:700;letter-spacing:-.8px}.brand .muted{font-weight:400}.muted{color:var(--muted)}.workspace{font-size:calc(9px + 1pt);letter-spacing:1.4px;margin:48px 12px 26px;color:#465b75}.workspace small{display:block;letter-spacing:0;font-size:calc(13px + 1pt);color:var(--ink);margin-top:9px}nav button{display:block;text-align:left;width:100%;padding:14px 12px;margin:4px 0;border:0;background:none;color:#354e6c;border-radius:6px}nav button.active{background:#dce8f7;color:var(--ink);font-weight:700}.sidebar-bottom{position:absolute;bottom:32px;font-size:calc(12px + 1pt)}.sidebar-bottom p{line-height:1.8;color:var(--muted);margin:18px 0 30px}.sidebar-bottom small{font-size:calc(9px + 1pt);letter-spacing:1.8px;color:#4c607b}.dot{display:inline-block;width:6px;height:6px;background:#528dcc;border-radius:50%;margin-right:6px}main{margin-left:242px}header{height:80px;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;font-size:calc(12px + 1pt)}.badge{background:#edf3fb;border:1px solid #dce6f3;padding:6px 10px;border-radius:20px;font-size:calc(10px + 1pt);color:#476787}.view{max-width:1450px;margin:auto;padding:43px 42px}.eyebrow{font-size:calc(10px + 1pt);letter-spacing:2px;color:#435e7d}h1{font:500 calc(39px + 1pt) 'Manrope',sans-serif;letter-spacing:-1.8px;margin:14px 0}p{line-height:1.7}.lead{color:var(--muted);margin-top:0;font-size:calc(14px + 1pt)}.topline{display:flex;justify-content:space-between;align-items:center;margin:35px 0 16px;font-size:calc(10px + 1pt);letter-spacing:1.5px}.subtle{background:transparent;border:1px solid var(--line);padding:9px 12px;border-radius:5px;color:var(--primary);letter-spacing:0}.workspace-grid{display:grid;grid-template-columns:minmax(320px,1.4fr) minmax(310px,1fr);gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 3px 12px #223e6203}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:21px 22px;border-bottom:1px solid var(--line);font-weight:600;font-size:calc(13px + 1pt)}.chat-panel{display:flex;flex-direction:column;min-height:600px}#messages{flex:1;padding:26px 22px;max-height:490px;overflow:auto}.assistant{display:flex;gap:12px}.avatar{background:#e4eefb;width:32px;height:32px;display:grid;place-items:center;flex-shrink:0;border-radius:8px}.assistant strong{font-weight:500;font-size:calc(14px + 1pt)}.assistant p{color:#3c5675;font-size:calc(13px + 1pt)}.suggestions button{display:block;margin:8px 0;border:1px solid var(--line);padding:10px 12px;background:#f9fbff;border-radius:5px;color:#365d85;text-align:left;font-size:calc(11px + 1pt)}.user-message{background:#edf4fc;padding:13px;border-radius:7px;margin:15px 0;white-space:pre-wrap}.reply{border-left:2px solid #a8c4e4;padding:2px 14px;margin:20px 0;white-space:pre-wrap;line-height:1.8;font-size:calc(13px + 1pt)}#chat-form{margin:20px 20px 0;border:1px solid #cfdceb;border-radius:8px;background:#fbfdff;padding:12px}textarea{resize:vertical;min-height:70px;width:100%;border:1px solid var(--line);font:inherit;padding:10px;background:#fbfdff;border-radius:5px}#question{border:0;outline:0;font-size:calc(12px + 1pt);min-height:65px}.composer-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center}.composer-bottom select{max-width:170px;font-size:calc(10px + 1pt);border:0;background:none}.primary{background:var(--primary);color:white;border:0;border-radius:5px;padding:12px 16px;font-size:calc(11px + 1pt);cursor:pointer}.primary:hover{background:#194c84}button{cursor:pointer;font-family:inherit}button:disabled{opacity:.5;cursor:wait}.fine{font-size:calc(10px + 1pt);color:#455e7b;line-height:1.7}.chat-panel>.fine{margin:12px 22px 18px}.plan{padding-bottom:20px}.plan>label,.plan>p,.plan>div,.plan>details{margin-left:20px;margin-right:20px}.plan .panel-heading{margin:0 0 20px}.step{font-size:calc(9px + 1pt);letter-spacing:1px;color:#4b6080}label{display:block;font-size:calc(9px + 1pt);letter-spacing:1px;color:#405c7c;margin-bottom:15px}input,select{width:100%;border:1px solid var(--line);background:#fff;border-radius:4px;padding:10px;color:var(--ink);font:calc(12px + 1pt) 'DM Sans',sans-serif;margin-top:7px;min-width:0}select[multiple]{height:90px}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.twocol label{min-width:0}summary{font-size:calc(12px + 1pt);margin-bottom:16px;cursor:pointer;color:#35597e}details{border-top:1px solid var(--line);padding-top:17px}.check{display:flex;align-items:flex-start;gap:9px;letter-spacing:0;font-size:calc(11px + 1pt);line-height:1.5}.check input{width:auto;margin:2px 0}.full{width:calc(100% - 40px);margin:0 20px}.execution{margin:20px 0}.execution .panel-heading{font-size:calc(12px + 1pt)}#events{padding:18px 22px;display:flex;flex-wrap:wrap;gap:12px}.event{border:1px solid #dbe7f5;border-radius:4px;padding:9px;color:#4b7099}.pad{padding:25px;margin:20px 0}h2{font-size:calc(17px + 1pt);font-weight:500}.source-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings{max-width:600px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.metric{padding:22px}.metric small{font-size:calc(10px + 1pt);color:var(--muted)}.metric strong{display:block;font:500 calc(30px + 1pt) 'Manrope';margin:12px 0}.metric p{font-size:calc(11px + 1pt);color:var(--muted)}.warning{font-size:calc(12px + 1pt);line-height:1.8;color:#65511d}table{width:100%;border-collapse:collapse;font-size:calc(12px + 1pt)}td,th{text-align:left;border-bottom:1px solid var(--line);padding:12px}footer{display:flex;justify-content:space-between;margin:20px 42px;padding:20px 0;border-top:1px solid var(--line);font-size:calc(10px + 1pt);color:#496080}#toast{position:fixed;bottom:22px;right:25px;background:#142b49;color:white;border-radius:6px;max-width:460px;padding:15px;display:none;z-index:20}pre{overflow:auto;font-size:calc(11px + 1pt)}svg{width:100%;height:220px}a{color:var(--primary)}[hidden]{display:none!important}@media(max-width:1100px){aside{width:200px;padding:25px 14px}main{margin-left:200px}.view{padding:30px 24px}.workspace-grid{grid-template-columns:1fr}.chat-panel{min-height:400px}}@media(max-width:680px){aside{position:static;width:auto;height:auto;padding:16px}aside .workspace,.sidebar-bottom{display:none}nav{display:flex;overflow:auto}nav button{white-space:nowrap;font-size:calc(10px + 1pt)}.brand{font-size:calc(20px + 1pt)}main{margin:0}header{padding:0 20px;height:55px}.view{padding:25px 18px}h1{font-size:calc(30px + 1pt)}.source-grid,.result-grid{grid-template-columns:1fr}.topline{gap:10px}.topline>span{font-size:calc(8px + 1pt)}footer{margin:10px 18px}}
.agent-intro{padding-top:12px;font-size:calc(13px + 1pt);color:#385778}.small-title{font-size:calc(11px + 1pt);letter-spacing:.4px;margin:20px 0 12px}.decision{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:10px 0;font-size:calc(11px + 1pt)}.decision span{color:var(--muted)}.decision strong{font-weight:500;overflow-wrap:anywhere;text-align:right}.audit-item{padding:10px 0;border-bottom:1px solid var(--line);font-size:calc(11px + 1pt)}.event small{text-transform:uppercase;letter-spacing:1px;font-size:calc(8px + 1pt);color:#3d6289}.plan{max-height:750px;overflow:auto}.plan h3{font-weight:600}#messages{max-height:650px;min-height:310px}.chat-panel{min-height:650px}
.session-data-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:2px 0 12px}.session-data-actions .subtle{font-size:calc(10px + 1pt)}.attachment-chip{display:inline-block;background:#eaf2fc;color:#426b99;border:1px solid #d7e5f5;border-radius:4px;font-size:calc(10px + 1pt);padding:6px 8px;margin:0 6px 7px 0;overflow-wrap:anywhere}.sample-option{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--line);flex-wrap:wrap}.sample-option>div{flex:1;min-width:160px}.sample-option strong{font-size:calc(12px + 1pt);font-weight:500}.sample-option p{margin:5px 0 0}.sample-option a{font-size:calc(10px + 1pt)}.sample-card h2{margin-top:0}

/* Two persistent workspace panels; the activity belongs to the right panel. */
#workspace{max-width:1680px;overflow-x:auto}
.workspace-grid{grid-template-columns:minmax(360px,1.45fr) minmax(300px,1fr);align-items:start;min-width:680px;gap:22px}
.workspace-left{min-width:0;overflow:hidden}
.workspace-right{min-width:0;position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto;padding-bottom:20px}
.workspace-right>.panel-heading{position:sticky;top:0;z-index:1;background:#fff;gap:10px;flex-wrap:wrap;margin:0;padding:18px 20px}
.workspace-right .agent-intro{padding-top:0}
.workspace-right .agent-activity{margin:24px 20px 0;border-top:1px solid var(--line);padding-top:16px}
.agent-activity .panel-heading{padding:0 0 12px;border:0;align-items:flex-start;gap:10px;flex-wrap:wrap}
.agent-activity #status{font-weight:500;color:#2c537e}
.agent-activity #events{padding:0;display:flex;flex-direction:column;gap:10px}
.agent-activity .event{background:#f5f9ff;padding:12px;line-height:1.65}
.sample-picker{margin:18px 20px 22px;padding-top:16px}
.sample-picker summary{font-weight:600;color:#234e7f}
.workspace-left>#result{padding:0 20px 20px}
.workspace-left .result-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.workspace-left .metric strong{overflow-wrap:anywhere}
.workspace-left .metric{padding:16px}
.workspace-left .pad{padding:18px}
button,input,select,textarea{line-height:1.5}
textarea::placeholder,input::placeholder{color:#4b6481;opacity:1}
@media(max-width:1100px){.workspace-grid{grid-template-columns:minmax(360px,1.45fr) minmax(300px,1fr)}.view{padding-left:22px;padding-right:22px}}
@media(max-width:680px){.workspace-grid{grid-template-columns:360px 300px;min-width:682px}.workspace-right{position:static;max-height:900px}.view{padding-left:16px;padding-right:16px}.composer-bottom{flex-wrap:wrap}}

button{font-size:calc(13.333px + 1pt)}
.workspace-left,.workspace-right{height:calc(100vh - 335px);min-height:560px;max-height:none;overflow-y:auto;position:relative;top:auto}
.workspace-left{container-type:inline-size}
.workspace-left>.panel-heading{position:sticky;top:0;z-index:2;background:#fff;flex-shrink:0}
.workspace-left .result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.workspace-left .metric:last-child{grid-column:1/-1}
.workspace-right .agent-activity{margin-top:18px;margin-bottom:22px}
.agent-activity #events{max-height:230px;overflow:auto}
@container(max-width:500px){.workspace-left .result-grid{grid-template-columns:1fr}.workspace-left .metric:last-child{grid-column:auto}}

/* Reclaim the space from the removed workspace introduction. */
#workspace{padding-top:18px}
#workspace>.topline{margin-top:0}
.workspace-left,.workspace-right{height:calc(100vh - 190px)}

/* Give the chat and agent panels the available application space. */
aside nav{margin-top:28px}
header{height:56px;padding:0 22px}
#workspace{max-width:none;padding:12px 18px 8px}
#workspace>.topline{margin:0 0 10px}
.workspace-grid{gap:14px}
.workspace-left,.workspace-right{height:calc(100dvh - 124px);min-height:560px}
#messages{max-height:none}
@media(max-width:1100px){#workspace{padding-left:12px;padding-right:12px}}
@media(max-width:680px){aside{padding:12px}aside nav{margin-top:12px}header{height:44px;padding:0 16px}#workspace{padding:10px 12px}.workspace-left,.workspace-right{height:calc(100dvh - 205px)}}

/* The sample action now lives in the top bar. */
.workspace-left,.workspace-right{height:calc(100dvh - 88px)}
@media(max-width:680px){header{gap:10px}header>span{font-size:12px}header #demo{font-size:11px;padding:6px 8px}.workspace-left,.workspace-right{height:calc(100dvh - 170px)}}
.header-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}header{gap:15px;min-height:56px;height:auto;padding-top:8px;padding-bottom:8px}dialog{width:min(560px,92vw);border:1px solid var(--line);border-radius:10px;padding:26px;color:var(--ink);background:#fff;max-height:90vh;overflow:auto}dialog::backdrop{background:#142b4966}.dialog-actions,.library-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:18px 0}.library-actions{justify-content:flex-start}.saved-analysis-card{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px;margin:14px 0}.saved-analysis-card h2{margin:12px 0 4px}.saved-analysis-card p{margin:6px 0}.saved-analysis-card>div{min-width:0;overflow-wrap:anywhere}.report-history{margin-top:30px}#library-progress{padding:14px 0;color:#2d5682;font-weight:500}#library-runs td{max-width:300px;overflow-wrap:anywhere}#analysis-details h3{font-size:15px}#analysis-search{max-width:620px}@media(max-width:680px){header{align-items:flex-start}.header-actions{gap:6px}.header-actions button{font-size:11px;padding:7px}.saved-analysis-card{align-items:flex-start;flex-direction:column}}

/* One plain progress feed, with only the panel itself scrolling. */
.workspace-right{padding-bottom:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
.workspace-right>.panel-heading{margin:0;padding:18px 20px;flex-wrap:wrap;gap:8px}
.workspace-right #status{font-size:calc(11px + 1pt);font-weight:400;color:var(--muted)}
.workspace-right>.agent-feed{margin:0;padding:8px 22px 24px;max-height:none;overflow:visible}
.workspace-right #events{display:block;padding:0;max-height:none;overflow:visible}
.workspace-right .feed-update,.workspace-right .feed-empty{margin:0;padding:14px 0;font-size:calc(13px + 1pt);line-height:1.85;color:var(--ink);overflow-wrap:anywhere}
.workspace-right .feed-update strong{font-weight:600}
.workspace-right .feed-number{color:var(--primary);font-weight:600;margin-right:5px}
.workspace-right #agent-plan,.workspace-right #quality-summary,.workspace-right #confounder-summary{overflow:visible;max-height:none}

.data-structure{padding:20px 0;border-bottom:1px solid var(--line)}.data-structure:last-child{border-bottom:0}.schema-columns{display:flex;flex-wrap:wrap;gap:12px 24px;margin:12px 0 18px}.schema-columns span{display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.schema-columns b{font-size:13px;font-weight:500}.schema-columns small{color:var(--muted);font-size:12px}.data-structure details{border:0;padding-top:0}.data-structure summary{margin-bottom:8px}

.saved-transcript p{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.8}
.leadership-prompts{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.leadership-table{overflow-x:auto}.leadership-brief{overflow-wrap:anywhere}.leadership-brief h3{font-size:18px;margin-top:28px}.requirement-row{padding:16px 0;border-bottom:1px solid var(--line)}.requirement-row p{margin:7px 0}.leadership-brief form{max-width:650px;margin-top:22px}#executive-counts{margin:20px 0}#executive-register .saved-analysis-card{margin:12px 0}#executive-readiness{padding:12px 16px;background:#eaf2fc;border-radius:6px}

.brand>span{line-height:1.25;letter-spacing:-.4px}.brand small{display:block;font-size:calc(13px + 1pt);font-weight:500;letter-spacing:0;margin-top:3px}

.brand-logo{width:52px;height:52px;object-fit:contain;flex-shrink:0}.account-logo{width:72px;height:72px;object-fit:contain}.avatar img{width:26px;height:26px;object-fit:contain}.library-actions select{width:auto;max-width:100%;margin:0}.saved-analysis-card input[type=checkbox]{width:auto;margin-right:8px}.saved-analysis-card label{letter-spacing:0}dialog{border:1px solid var(--line);border-radius:10px;color:var(--ink);max-width:640px;width:90%;padding:28px}dialog::backdrop{background:#142b4970}

/* Full-height, two-panel analysis studio. Only messages and the right feed scroll. */
@media(min-width:901px){aside{width:200px;padding:24px 16px}main{margin-left:200px}#workspace{height:calc(100dvh - 68px);padding:12px 16px}.workspace-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);height:100%;gap:16px}.workspace-left,.workspace-right{height:100%;min-height:0}.workspace-left{overflow:hidden}.workspace-left #messages{min-height:0;flex:1;overflow-y:auto;max-height:none}.workspace-left #chat-form{flex-shrink:0;margin-top:0}.workspace-left>.fine{margin:8px 18px}.workspace-left .sample-picker{margin:0 18px 12px}.workspace-right{overflow-y:auto}.workspace-right .result-grid{grid-template-columns:1fr}.workspace-right .metric{padding:16px}.workspace-right .metric strong{font-size:27px}body:has(#workspace:not([hidden])) footer{display:none}}
.workspace-empty{max-width:540px;margin:auto;padding:30px 8px}.workspace-empty>img{width:44px;height:44px;object-fit:contain}.workspace-empty h2{font-size:24px;line-height:1.4}.empty-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.account-button{text-decoration:none;white-space:nowrap}.auth-topbar{display:flex;justify-content:flex-end;padding:18px 24px}.auth-topbar a{text-decoration:none}.workspace-right #result{padding-top:12px}.workspace-right #result .pad{padding:18px;margin:12px 0}.header-actions{gap:8px}#question{min-height:90px}
@media(max-width:900px){.workspace-grid{grid-template-columns:1fr}.workspace-left{height:75dvh;min-height:480px;overflow:hidden}.workspace-left #messages{min-height:0;flex:1;overflow:auto}.workspace-right{height:70dvh;min-height:420px}header{padding:12px}.workspace-empty{padding:20px 6px}}

.company-caption{display:none}.header-actions button,.header-actions a{font-size:13px;padding:8px 10px}.header-actions select{font-size:12px;width:auto;margin:0}.header-actions .account-button{order:10}
@media(min-width:901px){body{height:100dvh;overflow:hidden}main{height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{flex-shrink:0;min-height:60px}.view{min-height:0;overflow-y:auto;flex:1;width:100%}#workspace{height:auto;min-height:0;overflow:hidden;flex:1}footer{display:none}}
@media(max-width:900px){.workspace-grid{min-width:0}.workspace-empty h2{font-size:21px}}

/* Keep the start actions visible and reserve most of the left panel for chat. */
.brand>span{font-size:17px}aside nav button{font-size:13px;padding:12px 8px}#messages{padding:18px}.workspace-empty{padding:8px 4px;margin:0}.workspace-empty>img{width:30px;height:30px}.workspace-empty h2{font-size:21px;margin:12px 0;line-height:1.35}.workspace-empty p{margin:8px 0}.empty-actions{margin-top:14px}#question{min-height:64px;height:74px}.workspace-left #chat-form{margin:0 16px;padding:10px}.composer-bottom>span{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.composer-bottom select{margin:0;width:100%;max-width:230px}.session-data-actions{margin:6px 0}.workspace-left .sample-picker{font-size:13px}.workspace-left .sample-picker summary{margin-bottom:0}
