/* Adaptive House shell. Original functional component CSS remains beneath this layer. */
:root{--os-nav:226px;--violet:var(--purple)}body{background:radial-gradient(ellipse at 84% 4%,#16213970,transparent 50%),var(--bg);color:var(--text)}.shell{max-width:none;margin:0;display:grid;grid-template-columns:var(--os-nav) minmax(0,1fr);grid-template-rows:86px 1fr;min-height:100dvh;padding:0 0 32px}.os-nav{position:fixed;z-index:35;left:0;top:0;bottom:0;width:var(--os-nav);padding:29px 18px 50px;background:linear-gradient(165deg,#0a1525,#070c17);border-right:1px solid #2e4663;display:flex;flex-direction:column}.os-nav:before{content:'';position:absolute;left:0;top:0;width:6px;height:135px;background:linear-gradient(var(--violet),var(--cyan));border-radius:0 0 6px 0}.os-nav .brand{gap:10px;font-size:19px;letter-spacing:.13em}.os-nav .brand small{font-size:8px;letter-spacing:.17em;margin-top:6px}.nav-section-label{font:10px var(--display);letter-spacing:.18em;color:var(--muted);margin:41px 12px 16px}.os-nav nav{display:grid;gap:9px}.os-nav nav button{border:1px solid transparent;position:relative;width:100%;background:transparent;display:flex;align-items:center;gap:13px;padding:13px 10px;color:#a9b6ce;min-height:47px;text-align:left;border-radius:7px;font-size:12px;font-weight:500}.os-nav nav button .icon{width:20px;height:20px}.os-nav nav button:hover{color:#fff;background:#16314d}.os-nav nav button[aria-current=page]{color:var(--orange);background:linear-gradient(90deg,#54362766,#16253855);border-color:#c191563d}.nav-tick{margin-left:auto;width:3px;height:15px;background:transparent}.os-nav nav button[aria-current=page] .nav-tick{background:var(--orange)}.nav-bottom{margin-top:auto;display:grid;gap:18px;padding-top:30px}.nav-bottom .btn{justify-content:flex-start;font-size:12px}.nav-rule{height:1px;background:#27364d}.operator-badge{display:flex;gap:13px;align-items:center;padding:0 7px}.operator-icon{display:grid;place-items:center;background:#22354b;width:38px;height:38px;border-radius:50%;color:var(--cyan)}.operator-badge strong{font-size:13px}.operator-badge small{display:block;color:var(--muted);font-size:8px;letter-spacing:.13em;margin-top:4px}.nav-house{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;padding:6px}.nav-house .icon{width:14px}.app-bar{grid-column:2;grid-row:1;position:relative;top:auto;display:flex;gap:17px;padding:22px 34px;background:transparent;border:0;min-width:0;z-index:10}.app-bar:after{content:'';position:absolute;bottom:0;left:34px;right:34px;height:5px;background:linear-gradient(to right,var(--orange) 0 12%,transparent 12% 12.6%,#263d5b 12.6% 67%,transparent 67% 67.6%,var(--violet) 67.6% 86%,transparent 86% 86.6%,#3a637d 86.6%);border-radius:10px}.app-title{font-size:17px;letter-spacing:.045em;color:#bac9df;font-weight:500;white-space:nowrap}.app-actions{margin-left:auto;gap:8px}.app-actions .text-button{font-size:11px}.header-presence{display:flex;gap:8px;align-items:center;background:none;border:0;color:var(--text);padding:0;min-width:108px;text-align:left}.header-presence steve-presence{width:49px;height:49px}.header-presence b{font:12px var(--display);letter-spacing:.16em}.header-presence small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.app-main{grid-column:2;grid-row:2;padding:29px 34px 60px;min-width:0;width:100%;margin:0;max-width:none}.view{max-width:1600px;margin:0 auto}.view>.card{margin-bottom:20px}.page-intro{margin-bottom:28px}.page-intro h1{font-size:36px;margin:12px 0}.page-intro>p:not(.eyebrow){color:var(--muted);font-size:14px}.os-bottom-rail{position:fixed;left:var(--os-nav);right:0;bottom:0;display:flex;justify-content:space-between;z-index:20;gap:15px;height:29px;padding:8px 34px;background:#060d18;border-top:1px solid #314763;color:#7488a8;font:9px var(--display);letter-spacing:.18em}.os-bottom-rail span:first-child{color:#b4a0d4}.os-bottom-rail:after{content:'';position:absolute;right:0;bottom:0;top:0;width:7px;background:var(--orange)}#nav-toggle{display:none}.nav-scrim{position:fixed;inset:0;background:#0009;z-index:30;border:0;border-radius:0}.os-hero{display:grid;grid-template-columns:1.12fr 1fr;align-items:center;position:relative;min-height:355px;margin-bottom:28px;border-bottom:1px solid #2d425b;background:radial-gradient(ellipse at 78% 50%,#32408822,transparent 53%)}.hero-copy{padding:20px 0 37px;position:relative;z-index:2}.hero-copy h1{font-family:var(--display);font-size:clamp(30px,3.2vw,53px);line-height:1.12;letter-spacing:-.035em;font-weight:500;margin:18px 0 20px}.hero-copy h1 span{color:var(--orange)}.hero-description{font-size:14px;line-height:1.8;color:var(--muted);max-width:400px}.hero-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:25px 0 17px}.hero-buttons .btn{font-size:12px}.hero-connection{font-size:11px;color:#8eabc1;display:flex;align-items:center;gap:7px}.hero-connection:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.hero-orbit{height:350px;display:flex;align-items:center;justify-content:center;position:relative;flex-direction:column}.hero-orbit steve-presence{width:min(100%,395px);height:350px;position:absolute;top:-9px}.presence-caption{position:absolute;bottom:17px;display:flex;align-items:center;gap:16px;font-size:10px;color:var(--muted)}.presence-caption .eyebrow{font-size:10px}.section-heading{display:flex;gap:14px;align-items:center;justify-content:space-between;margin:0 0 17px}.section-heading h2,.home-lower h2{font-family:var(--display);font-size:20px;font-weight:500;margin:0}.section-heading>.muted{font:9px var(--display);letter-spacing:.14em}.workspace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:26px}.workspace-card{min-width:0;position:relative;padding:25px 22px 19px;text-align:left;color:var(--text);background:linear-gradient(140deg,#16253a9c,#0d1625);border:1px solid #365374;border-radius:16px 7px 16px 7px;overflow:hidden}.workspace-card:before{position:absolute;content:'';height:3px;left:0;top:0;width:90px;background:var(--cyan)}.workspace-card:nth-child(2):before{background:var(--orange)}.workspace-card:nth-child(3):before{background:var(--violet)}.workspace-card .card-symbol{position:absolute;right:21px;top:22px;color:var(--cyan)}.workspace-card:nth-child(2) .card-symbol{color:var(--orange)}.workspace-card:nth-child(3) .card-symbol{color:var(--violet)}.workspace-card>.eyebrow{font-size:9px}.workspace-card h3{font-size:19px;font-family:var(--display);font-weight:500;margin:20px 0 11px}.workspace-card p{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 18px}.workspace-action{border-top:1px solid #2f435f;display:flex;align-items:center;justify-content:space-between;padding-top:15px;font-size:11px;color:var(--cyan)}.workspace-action .icon{width:17px}.workspace-card:hover{border-color:var(--cyan);background:#15273d}.home-lower{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.home-lower .panel{padding:22px;border-color:#314867}.home-metrics{display:flex;justify-content:space-between;gap:17px;margin:27px 0 23px}.home-metric{min-width:0;flex:1}.home-metric strong{font-family:var(--display);font-size:27px;color:var(--cyan);font-weight:500;display:block}.home-metric span{font-size:10px;display:block;margin-top:6px;color:var(--muted)}.small-note{color:#8ba0bb;font-size:11px;line-height:1.6}.home-models #home-models{margin:20px 0}.home-model-row{display:flex;gap:10px;justify-content:space-between;font-size:11px;margin:13px 0}.home-model-row strong{font-weight:400;color:#b9aed7;text-align:right;overflow-wrap:anywhere}.home-model-row span{color:var(--muted);flex-shrink:0}.home-lower .text-button{font-size:10px;padding:7px 0;min-height:36px}.home-lower .text-button .icon{width:16px}.card{background:linear-gradient(130deg,#132136d9,#0b1525);border:1px solid #324a68;border-radius:13px;padding:23px;box-shadow:none;color:var(--text)}.section-title{font-family:var(--display);letter-spacing:.09em;color:var(--orange);font-size:13px;margin:7px 0 17px}.toolbar{gap:15px;padding:14px 0;flex-wrap:wrap}.toolbar label{font-size:11px;color:var(--muted)}.toolbar select{font-size:12px;padding:9px;min-height:42px;background:#101d2f}.phase-list{gap:13px}.phase-card,.campaign-card,.planning-session-card{background:#101d30;border-color:#36506f;border-radius:10px;color:var(--text)}.phase-card:focus-visible{outline:2px solid var(--cyan)}.metric-grid{gap:11px}.metric{background:#081424;padding:15px;border:1px solid #243d57;border-radius:7px}.metric-label{color:var(--muted);font-size:11px}.metric-value{font-family:var(--display);font-size:24px;color:var(--cyan);font-weight:500}.command-notice{background:#0b1f30;border:1px solid #315578;font-size:12px;line-height:1.6;color:#b9cfdf;border-radius:6px;padding:13px}.command-notice.warning{background:#35261b;color:#ffd19f;border-color:#8b6740}.command-notice.error,.error-text{color:#ffb0a6}.primary-button{color:#1a100c;background:var(--orange);border-color:var(--orange);font-size:13px;min-height:44px;border-radius:7px}.primary-button:hover{background:#ffc48c}.secondary-button,.icon-button{background:#13283d;border:1px solid #3e5c7a;color:#b8d8ec;min-height:44px;border-radius:7px}.text-button{color:var(--cyan);min-height:44px}.icon-button{min-width:42px}.new-phase-button{width:auto;margin:5px 8px 22px 0;display:inline-flex}.new-phase-button.text-button{font-size:11px}#model-status-card,#system-status-card{margin:0 0 23px}.system-status-kv,.kv{overflow-wrap:anywhere}.kv dt{color:var(--muted)}.kv dd{min-width:0}.phase-lookup{border:0;padding:8px 0}.phase-lookup-controls{gap:10px}#notebook-view{display:grid;grid-template-columns:minmax(240px,.6fr) minmax(0,1.4fr);gap:20px}#notebook-view>.page-intro,#notebook-view>.card:first-of-type{grid-column:1/-1}#notebook-view .card{margin:0}.steve-chat-layout{gap:22px}.steve-history-panel{padding:15px}.chat-orbit{display:flex;align-items:center;flex-direction:column;margin:-15px -3px 20px;padding-bottom:13px;border-bottom:1px solid #2c4260}.chat-orbit steve-presence{width:220px;height:190px}.chat-orbit .eyebrow{margin-top:-10px}.chat-orbit [data-presence-label]{font-size:10px;color:var(--muted);margin-top:5px}.steve-history-heading{display:grid;gap:7px}.steve-history-heading .section-title{margin:0;font-size:12px}.steve-history-help{font-size:10px;line-height:1.6}.steve-history-controls{display:grid;gap:8px}.steve-history-panel input,.steve-history-panel select{font-size:11px}.steve-chat-panel{min-width:0}.steve-chat-panel h2{font-family:var(--display);font-size:27px;font-weight:500}.conversation-list{background:transparent}.conversation-item,.steve-message{border:1px solid #354863;background:#101f33;border-radius:10px}.conversation-item.user,.steve-message.user{background:#173548;border-color:#36627b}.steve-composer{background:#071321;border:1px solid #42637e;border-radius:12px;padding:13px}#steve-message-input{background:transparent;border:0;padding:7px;box-shadow:none;min-height:85px}.steve-composer-actions{gap:8px;flex-wrap:wrap}.steve-composer-actions .text-button{font-size:10px;padding:8px 9px}.steve-composer-actions .icon{width:16px}.steve-composer #steve-send-button{margin-left:auto}#steve-composer-status{margin-bottom:6px}.steve-composer>p.muted{font-size:10px}.steve-title-row{display:block}.steve-chat-management{gap:8px}.steve-title-controls{flex:1;min-width:170px}.steve-title-controls input{min-width:0;width:100%}.models-provider-card,.models-role-card{background:#102036;border-color:#355274}.empty-state{font-size:13px;padding:20px;color:#92a5bf}.login-card{width:100%;max-width:430px;padding:35px;align-self:center}.login-card h2{font:26px var(--display);margin:0 0 17px}.login-card .muted{font-size:12px;line-height:1.8}.login-card label{font-size:11px;margin:16px 0 9px}.login-card input{margin-bottom:4px}.login-card .primary-button{width:100%;margin-top:23px}#login-view{display:grid;grid-template-columns:1fr 1fr;gap:60px;max-width:980px;min-height:calc(100dvh - 200px);align-items:center}.login-intro{text-align:center}.login-intro steve-presence{width:330px;max-width:100%;height:330px;display:block;margin:auto}.login-intro h1{font:46px var(--display);margin:10px 0}.login-intro p:not(.eyebrow){color:var(--muted);font-size:14px}.login-intro .eyebrow{font-size:10px}body[data-portal-auth=false] .shell{grid-template-columns:1fr}body[data-portal-auth=false] .app-bar,body[data-portal-auth=false] .app-main{grid-column:1}body[data-portal-auth=false] .os-nav{display:none}body[data-portal-auth=false] .os-bottom-rail{left:0}body[data-portal-auth=false] #header-presence{display:none}body[data-portal-auth=false] #nav-toggle{display:none}
@media(min-width:1500px){.app-main{padding-left:50px;padding-right:50px}.os-hero{min-height:430px}.hero-orbit{height:420px}.hero-orbit steve-presence{height:420px;width:460px}.presence-caption{bottom:24px}.workspace-card{padding:30px}}
@media(max-width:1190px){:root{--os-nav:196px}.os-nav{padding-left:12px;padding-right:12px}.os-nav nav button{font-size:11px;gap:10px}.app-main{padding:25px 24px 45px}.app-bar{padding:20px 24px}.app-bar:after{left:24px;right:24px}.hero-copy h1{font-size:35px}.hero-orbit{height:290px}.hero-orbit steve-presence{height:290px}.hero-copy{padding-top:5px}.os-hero{min-height:305px}.hero-buttons{gap:8px}.hero-buttons .btn{padding:12px}.workspace-card{padding:20px 15px 15px}.workspace-card h3{font-size:17px}.workspace-card .card-symbol{right:15px;top:16px}.workspace-card>.eyebrow{font-size:8px}.home-lower{grid-template-columns:1fr 1fr}.home-metric strong{font-size:21px}.home-model-row{display:grid;gap:3px}.home-model-row strong{text-align:left}.steve-chat-layout{grid-template-columns:minmax(190px,230px) minmax(0,1fr)}.chat-orbit steve-presence{width:185px;height:175px}}
@media(max-width:900px){:root{--os-nav:0px}.os-nav{width:245px;transform:translateX(-100%);transition:transform .2s}.nav-open .os-nav{transform:translateX(0)}.app-bar{grid-column:2}.app-main{padding:23px 23px 50px}#nav-toggle{display:inline-grid;place-items:center}.app-title{font-size:15px}.header-presence{min-width:75px}.header-presence span{display:none}.app-bar{height:82px}.connection-state{font-size:10px;max-width:100px}.os-bottom-rail{padding-left:23px}.os-hero{grid-template-columns:1.15fr 1fr}.hero-copy h1{font-size:40px}.workspace-card h3{font-size:18px}#login-view{gap:30px;padding:20px;min-height:auto}.login-intro h1{font-size:37px}.login-intro steve-presence{width:260px;height:260px}}
@media(max-width:650px){.shell{grid-template-rows:76px 1fr}.app-bar{height:76px;padding:16px 15px;gap:8px}.app-title{font-size:13px;letter-spacing:0;overflow:hidden;text-overflow:ellipsis}.app-bar:after{left:15px;right:15px;height:4px}.app-actions{gap:0}.app-actions .text-button{font-size:10px;padding:7px}.app-actions .connection-state{display:none}.header-presence{min-width:41px}.header-presence steve-presence{width:41px;height:41px}.app-main{padding:20px 15px 55px}.os-hero{display:flex;flex-direction:column-reverse;min-height:auto;margin-bottom:22px}.hero-orbit{width:100%;height:210px}.hero-orbit steve-presence{height:230px;width:260px;top:-15px}.presence-caption{bottom:4px}.hero-copy{padding:20px 0 25px;width:100%;text-align:center}.hero-copy h1{font-size:34px;line-height:1.14;margin:13px 0}.hero-description{font-size:12px;margin:auto;max-width:310px}.hero-buttons{justify-content:center;margin-top:19px}.hero-connection{justify-content:center;margin-bottom:0;font-size:10px}.hero-copy .eyebrow{font-size:9px}.workspace-grid{grid-template-columns:1fr;gap:11px}.workspace-card{padding:18px 19px 14px}.workspace-card h3{margin:10px 0 8px;font-size:21px}.workspace-card p{font-size:12px;margin:0 0 12px}.workspace-card .card-symbol{right:22px;top:18px}.workspace-card .card-symbol .icon{width:25px;height:25px}.workspace-action{padding-top:11px}.workspace-card .eyebrow{font-size:9px}.section-heading>.muted{display:none}.home-lower{grid-template-columns:1fr}.home-lower .panel{padding:19px}.home-metric strong{font-size:26px}.home-model-row{display:flex;margin:15px 0}.home-model-row strong{text-align:right}.page-intro h1{font-size:29px}.page-intro p:not(.eyebrow){font-size:12px}.card{padding:17px}.toolbar{gap:10px}.new-phase-button{font-size:11px;margin-right:5px;margin-bottom:11px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value{font-size:22px}.steve-chat-layout{display:flex;flex-direction:column}.steve-history-panel{padding:15px}.chat-orbit{display:none}.steve-history-panel .steve-history-help{display:none}.steve-history-controls{grid-template-columns:1fr 1fr}.steve-history-heading{display:flex;justify-content:space-between;margin-bottom:12px}#steve-history-list{max-height:165px;overflow:auto}.steve-chat-panel{padding:15px}.steve-title-controls{min-width:180px}.steve-chat-management{flex-wrap:wrap}.steve-composer-actions{gap:2px}.steve-composer-actions .text-button{font-size:9px;padding:7px}.steve-composer #steve-send-button{min-width:65px;font-size:11px}.steward-workspace{display:block}.estimate-grid{grid-template-columns:1fr 1fr}#notebook-view{grid-template-columns:1fr}#notebook-view>.card{grid-column:1}.kv{grid-template-columns:minmax(90px,.4fr) minmax(0,1fr)}.os-bottom-rail{padding:8px 15px;font-size:8px;letter-spacing:.09em}.os-bottom-rail span:first-child{display:none}#login-view{display:flex;flex-direction:column;gap:22px;padding:0}.login-intro steve-presence{height:225px;width:240px}.login-intro h1{font-size:34px;margin:0}.login-intro .eyebrow{margin:0}.login-intro p:not(.eyebrow){font-size:12px}.login-card{padding:25px;max-width:430px}.login-card .muted{font-size:11px}.login-card h2{font-size:25px}.view{overflow-wrap:anywhere}}

.os-nav .brand>span{white-space:nowrap;font-size:17px;letter-spacing:.12em}.os-nav .brand small{display:block;margin-top:6px}.os-nav .brand img{width:43px;height:43px}
