/* Keep the shared navigation visible; Build supplies its own content header. */
body.codey-build-active > .app > .main > .topbar{display:none}
#page-build{padding:0!important;overflow:hidden}
#codey-build-root{height:100%;--bw-bg:#101510;--bw-surface:#171d17;--bw-line:#303a30;--bw-text:#ecf0e9;--bw-muted:#a7b3a2;--bw-green:#c3f66b;--bw-error:#ffb1a5}
.bw-shell{height:100%;display:flex;flex-direction:column;background:var(--bw-bg);color:var(--bw-text);font:14px/1.65 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif}
.bw-shell *{box-sizing:border-box}
.bw-shell button,.bw-shell input,.bw-shell select,.bw-shell textarea{font:inherit}
.bw-shell button{cursor:pointer}
.bw-shell button:disabled{cursor:wait;opacity:.45;transform:none}
.bw-shell :focus-visible{outline:2px solid var(--bw-green);outline-offset:4px}
.bw-shell h1,.bw-shell h2,.bw-shell h3,.bw-shell p{margin:0}
.bw-shell h1{font-size:clamp(28px,3.2vw,42px);line-height:1.32;letter-spacing:-.04em;font-weight:650}
.bw-shell h2{font-size:25px;line-height:1.4;font-weight:600}
.bw-shell h3{font-size:16px}
.bw-shell p{overflow-wrap:anywhere}
.bw-header{height:82px;flex-shrink:0;display:flex;align-items:center;gap:26px;padding:0 4vw;border-bottom:1px solid var(--bw-line)}
.bw-brand{display:flex;align-items:center;gap:8px;background:none;border:0;color:var(--bw-text);font-size:20px!important;white-space:nowrap;letter-spacing:-.5px;min-height:44px}
.bw-brand b{font-weight:450;color:var(--bw-green)}
.bw-brand-mark{width:33px;height:33px;display:grid;place-items:center;background:var(--bw-green);color:#14210b;border-radius:10px;font-size:26px;font-weight:750;margin-right:3px;line-height:1}
.bw-header-context{color:var(--bw-muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.bw-header nav{display:flex;gap:10px;margin-left:auto;flex-shrink:0}
.bw-button{min-height:44px;padding:10px 17px;border:1px solid var(--bw-line);border-radius:9px;background:transparent;color:var(--bw-text);font-size:14px!important;transition:background .15s,border-color .15s;display:inline-flex;align-items:center;justify-content:center;gap:16px;text-decoration:none}
.bw-button:hover{background:#252e23;border-color:#65745a}
.bw-button.bw-primary{background:var(--bw-green);border-color:var(--bw-green);color:#1b290e;font-weight:650;min-height:48px;padding:12px 23px}
.bw-button.bw-primary:hover{background:#d3ff8b}
.bw-link{min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--bw-muted);text-decoration:none;text-underline-offset:5px}
.bw-link:hover{color:var(--bw-green);text-decoration:underline}
.bw-scroll{flex:1;min-height:0;overflow:auto;scrollbar-color:#43503e transparent}
.bw-start{max-width:1230px;padding:clamp(50px,10vh,115px) 48px 45px;margin:auto;position:relative;min-height:680px}
.bw-eyebrow{display:block;font-size:13px;font-weight:600;letter-spacing:.09em;color:var(--bw-green);margin-bottom:18px}
.bw-start h1{font-size:clamp(42px,5vw,68px);line-height:1.22;letter-spacing:-.055em;position:relative;z-index:1}
.bw-start h1 em{color:var(--bw-green);font-style:normal}
.bw-lead{color:var(--bw-muted);font-size:16px;line-height:1.8;margin:20px 0 32px!important}
.bw-start .bw-lead{max-width:550px;position:relative;z-index:1}
.bw-start-actions{display:flex;align-items:stretch;gap:12px;flex-wrap:wrap;position:relative;z-index:1}
.bw-start-actions .bw-primary{min-width:224px;justify-content:space-between}
.bw-start-bottom{border-top:1px solid var(--bw-line);margin-top:76px;padding-top:26px;display:flex;align-items:center;justify-content:space-between;gap:25px;font-size:14px}
.bw-start-bottom p span{color:var(--bw-muted)}
.bw-resume{margin-top:20px!important;color:var(--bw-muted)}
.bw-object{position:absolute;width:254px;height:254px;right:70px;top:130px;border:1px solid #414e35;border-radius:55px;background:linear-gradient(135deg,#343e2c,#20291d);box-shadow:22px 30px 65px #0007,inset 2px 2px 2px #a6ba7033;transform:rotate(-9deg);pointer-events:none}
.bw-object-screen{position:absolute;inset:24px 22px 47px;border-radius:35px;background:#0b100b;box-shadow:inset 2px 3px 8px #000;display:flex;align-items:center;justify-content:center;gap:36px}
.bw-object-screen i{height:51px;width:24px;background:var(--bw-green);border-radius:15px;box-shadow:0 0 25px #baff7330}
.bw-object-base{position:absolute;bottom:22px;width:26px;height:4px;left:calc(50% - 13px);background:#99b775;border-radius:3px}
.bw-object>span{position:absolute;bottom:-60px;left:15px;color:#9ba98f;transform:rotate(9deg);font-size:13px;letter-spacing:3px}
.bw-focus{max-width:830px;padding:48px 36px 80px;margin:auto}
.bw-onboarding{padding-top:75px;max-width:820px}
.bw-overline{display:flex;align-items:center;justify-content:space-between;color:var(--bw-muted);margin-bottom:20px}
.bw-thin-progress{height:3px;background:#2c3727;margin-bottom:50px}
.bw-thin-progress i{display:block;height:100%;background:var(--bw-green);transition:width .2s}
.bw-field{display:flex;flex-direction:column;gap:9px;font-size:14px!important;color:#d2dccc!important;font-weight:500;margin:18px 0}
.bw-shell textarea,.bw-shell input:not([type=checkbox]),.bw-shell select{background:#171e16!important;border:1px solid #46533f!important;border-radius:9px!important;color:var(--bw-text)!important;padding:13px 15px!important;font-size:15px!important;line-height:1.7!important;min-height:48px;width:100%;max-width:100%;outline:none}
.bw-shell textarea{resize:vertical;min-height:105px}
.bw-shell textarea:focus,.bw-shell input:focus,.bw-shell select:focus{border-color:var(--bw-green)!important}
.bw-shell textarea::placeholder,.bw-shell input::placeholder{color:#90a087}
.bw-onboarding textarea{min-height:175px}
.bw-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.bw-action-row{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:28px}
.bw-action-row>span{color:var(--bw-muted);font-size:13px;max-width:65%}
.bw-capabilities{border:0;margin:26px 0;padding:0;display:flex;gap:10px 20px;flex-wrap:wrap}
.bw-capabilities legend{margin-bottom:14px;font-size:14px}
.bw-capabilities label,.bw-check{display:flex;align-items:center;gap:8px;color:#d3decc!important;min-height:44px;font-size:14px!important}
.bw-shell input[type=checkbox]{width:18px;height:18px;accent-color:var(--bw-green)}
.bw-muted{color:var(--bw-muted);font-size:14px}
.bw-notice{padding:16px 18px;border-left:2px solid var(--bw-green);background:#c3f66b08;color:#bac7b0;margin:18px 0!important}
.bw-work-layout{display:grid;grid-template-columns:minmax(0,1fr);max-width:1480px;min-height:100%;margin:auto}
.bw-work-layout.with-partner{grid-template-columns:minmax(0,1fr) minmax(280px,27%)}
.bw-main{padding:30px clamp(24px,4vw,68px) 36px;min-width:0;max-width:1020px;width:100%;margin:0 auto;align-self:start}
.bw-stage{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:26px;border-bottom:1px solid var(--bw-line)}
.bw-stage>div{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.bw-stage .bw-eyebrow{margin:0}
.bw-stage strong{font-size:15px}
.bw-stage .bw-muted{font-size:13px}
.bw-stage .bw-button{font-size:13px!important;padding:8px 11px;white-space:nowrap}
.bw-task-heading{margin:34px 0 26px}
.bw-task-heading>p:first-child{margin-bottom:12px;color:var(--bw-muted)}
.bw-task-heading h1{margin-bottom:12px}
.bw-task-heading>p:last-child{color:var(--bw-muted);font-size:15px}
.bw-operation{padding:27px 30px 30px;background:var(--bw-surface);border-radius:16px;min-width:0}
.bw-step-label{font-size:13px;color:var(--bw-green);display:block;margin-bottom:12px}
.bw-operation>p{margin-top:15px;font-size:15px;color:#bdc9b6}
.bw-operation h2{font-size:24px}
.bw-operation .bw-action-row>span{max-width:55%}
.bw-task-notes{display:flex;gap:28px;flex-wrap:wrap;margin:16px 0}
.bw-details{margin:14px 0;color:var(--bw-muted);font-size:14px}
.bw-details summary{cursor:pointer;min-height:44px;display:list-item;padding:11px 0}
.bw-details summary:hover{color:var(--bw-green)}
.bw-details p{max-width:620px;margin:10px 0;line-height:1.8}
.bw-details[open]{flex-basis:100%}
.bw-work-footer{display:flex;justify-content:space-between;align-items:center;color:var(--bw-muted);font-size:13px;border-top:1px solid var(--bw-line);padding-top:20px;gap:12px}
.bw-work-footer .bw-button{border:0;color:var(--bw-muted);font-size:13px!important}
.bw-system-line{display:flex;align-items:center;gap:18px;color:#c9d7bf;flex-wrap:wrap;margin:18px 0}
.bw-system-line span:not(:last-child):after{content:' →';color:#7c916e;margin-left:18px}
.bw-device-status{color:#b8c6ad;font-size:14px;display:inline-flex;gap:8px;align-items:center;overflow-wrap:anywhere}
.bw-device-status:before{content:'';width:7px;height:7px;background:#e4ba71;border-radius:50%;flex-shrink:0}
.bw-device-status.is-online:before{background:var(--bw-green)}
.bw-wire{display:flex;align-items:center;margin:24px 0;color:#cfdfbf}
.bw-wire span{padding:18px 20px;border:1px solid #526047;border-radius:12px;text-align:center}
.bw-wire i{flex:1;max-width:160px;margin:0 10px;border-bottom:2px solid #6e835b;text-align:center;font-size:13px;color:var(--bw-muted);font-style:normal;padding:0 0 7px}
.bw-connection .bw-wire{margin:18px 0}.bw-connection .bw-wire span{padding:12px 20px}.bw-connection .bw-action-row{margin-top:18px}.bw-connection .bw-details{margin-bottom:0}.bw-connection ol{padding-left:22px;margin:12px 0}.bw-connection li{margin:7px 0}
.bw-connection-steps{display:flex;gap:32px;flex-wrap:wrap;padding-left:20px;color:var(--bw-muted);font-size:14px}
.bw-error{color:var(--bw-error);border-left:2px solid #d88879;padding:14px 18px;background:#ff8c7009;margin:18px 0;font-size:14px}
.bw-error p{margin:10px 0}.bw-error .bw-button{margin:5px 8px 0 0}
.bw-observation{padding:20px 0;margin:15px 0;border-top:1px solid var(--bw-line);border-bottom:1px solid var(--bw-line);font-size:15px;color:var(--bw-green)}
.bw-partner{border-left:1px solid var(--bw-line);padding:29px 25px;background:#131912;min-width:0;align-self:stretch}
.bw-partner-head{display:flex;gap:10px;align-items:center;margin-bottom:37px}
.bw-partner-head strong{font-size:14px;font-weight:550;flex:1}
.bw-partner-head small{display:block;font-size:13px;color:var(--bw-muted);font-weight:400;margin-top:4px}
.bw-partner-head .bw-button{padding:8px;font-size:13px!important;border:0;color:var(--bw-muted)}
.bw-partner-spark{font-size:25px;color:var(--bw-green)}
.bw-partner-body{font-size:14px;color:#becbb5}
.bw-partner-body .bw-eyebrow{color:var(--bw-muted)}
.bw-prompts{display:flex;flex-wrap:wrap;gap:7px;margin:30px 0 18px}
.bw-prompts .bw-button{font-size:13px!important;padding:8px 11px;min-height:40px;color:#bacbb1;border-color:#35432e}
.bw-chat-form{display:flex;flex-direction:column;gap:10px}
.bw-chat-form textarea{min-height:100px;font-size:14px!important}
.bw-chat-form button{align-self:flex-end;min-height:40px}
.bw-partner-note{margin-top:16px!important;color:#a1b295;font-size:13px}
.bw-chat-message{margin-top:20px;padding-top:16px;border-top:1px solid var(--bw-line)}
.bw-chat-message small{font-size:13px;color:var(--bw-green)}
.bw-chat-message p{margin-top:7px;white-space:pre-wrap}
.bw-chat-message.is-user small{color:var(--bw-muted)}
.bw-dialog{margin:auto;width:min(720px,calc(100vw - 32px));max-height:87dvh;padding:0;border:1px solid #47523e;border-radius:16px;background:#151d13;color:var(--bw-text);box-shadow:0 24px 100px #0008;overscroll-behavior:contain}
.bw-dialog::backdrop{background:#060b09c9;backdrop-filter:blur(5px)}
.bw-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:23px 28px;border-bottom:1px solid var(--bw-line);gap:18px;position:sticky;top:0;background:#151d13;z-index:1}
.bw-dialog-head h2{font-size:22px}
.bw-dialog-body{padding:26px 28px 35px}
.bw-dialog-body>p{margin-bottom:18px}
.bw-tool-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bw-tool-list button,.bw-project-option{background:#1b2518;border:1px solid #34452c;border-radius:9px;padding:16px;text-align:left;color:var(--bw-text);display:flex;flex-direction:column;gap:7px;min-height:78px}
.bw-tool-list button:hover,.bw-project-option:hover{border-color:var(--bw-green)}
.bw-tool-list strong,.bw-project-option strong{font-size:15px;font-weight:500}
.bw-tool-list span,.bw-project-option span{color:var(--bw-muted);font-size:13px}
.bw-project-option{width:100%;margin-bottom:12px}
.bw-legacy{margin:25px 0;padding:20px 0;border-top:1px solid var(--bw-line)}
.bw-legacy p{margin:10px 0;color:var(--bw-muted)}
.bw-road-phase{padding:18px 0;border-bottom:1px solid var(--bw-line)}
.bw-road-phase h3{color:var(--bw-green);margin-bottom:12px}
.bw-road-phase ul{list-style:none;margin:0;padding:0}
.bw-road-phase li{display:flex;gap:10px;padding:10px 0;color:#c2cfb9;font-size:14px}
.bw-road-phase li small{margin-left:auto;color:var(--bw-muted);font-size:13px}
.bw-record{padding:22px 0;border-bottom:1px solid var(--bw-line)}
.bw-record small{font-size:13px;color:var(--bw-muted)}
.bw-record h3{margin:7px 0}.bw-record p{white-space:pre-wrap;margin:10px 0}
.bw-record a{color:var(--bw-green)}
.bw-brief-summary{display:grid;grid-template-columns:1fr 1fr;gap:22px 28px;margin:28px 0}
.bw-brief-summary>div:first-child,.bw-brief-summary>div:nth-child(2),.bw-brief-summary>div:last-child{grid-column:1/-1}
.bw-brief-summary dt{font-size:13px;color:var(--bw-muted);margin-bottom:6px}
.bw-brief-summary dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;color:var(--bw-text)}
.bw-brief-collaborate{padding:4px 20px 20px;background:var(--bw-surface);border-radius:12px;margin:24px 0}
@media(max-width:600px){.bw-brief-summary{grid-template-columns:1fr}.bw-brief-summary>div{grid-column:1}}
.bw-code{white-space:pre-wrap;overflow-wrap:anywhere;background:#10170f;padding:16px;border-radius:8px;font-size:13px;line-height:1.6;max-height:440px;overflow:auto}
.bw-onboarding .bw-chat-message{margin:18px 0;padding:16px;border-radius:10px;background:#1b2518}
.bw-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere}
.bw-focus .bw-system-line{align-items:stretch;flex-wrap:wrap}
.bw-focus .bw-system-line>span{flex:1;min-width:140px;white-space:normal;overflow-wrap:anywhere}
.bw-road-phase li{align-items:center;flex-wrap:wrap}
.bw-road-phase .bw-button{text-align:left;white-space:normal;flex:1}
.bw-header-context{overflow-wrap:anywhere}
.bw-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 35px);background:#2e4023;border:1px solid #819662;padding:13px 20px;border-radius:9px;color:#edffdd;box-shadow:0 10px 35px #0007;z-index:200;font-size:14px}
.bw-toast.is-error{background:#432d25;border-color:#c98974;color:#ffe2d2}
.bw-toast[hidden]{display:none}
.bw-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1550px){.bw-start{padding-top:130px}.bw-object{right:80px;top:150px}}
@media(max-width:1100px){.bw-object{width:195px;height:195px;right:45px;top:110px;border-radius:42px;opacity:.85}.bw-object-screen{inset:20px 20px 40px;border-radius:25px;gap:26px}.bw-object-screen i{height:38px;width:20px}.bw-start{padding-left:36px;padding-right:36px}.bw-start h1{font-size:52px}.bw-start .bw-lead{max-width:470px}.bw-stage .bw-muted{display:none}.bw-header-context{display:none}.bw-main{padding:24px}.bw-operation{padding:24px}.bw-partner{padding:25px 18px}}
@media(max-width:820px){.bw-header{height:auto;min-height:74px;padding:14px 18px;gap:12px;flex-wrap:wrap}.bw-header nav{gap:7px}.bw-header .bw-button{padding:8px 10px;font-size:13px!important;min-height:42px}.bw-brand{font-size:18px!important}.bw-brand-mark{width:28px;height:28px;font-size:23px}.bw-start{padding:48px 24px;min-height:0}.bw-start h1{font-size:46px}.bw-object{display:none}.bw-start-bottom{margin-top:52px;align-items:flex-start;flex-direction:column;gap:12px}.bw-start-actions{flex-direction:column;align-items:stretch;max-width:420px}.bw-start .bw-lead{font-size:15px}.bw-focus{padding:32px 22px 55px}.bw-field-grid{grid-template-columns:1fr;gap:0}.bw-work-layout.with-partner{grid-template-columns:1fr}.bw-partner{border-left:0;border-top:1px solid var(--bw-line);padding:26px}.bw-main{padding:20px 18px}.bw-operation{padding:22px 18px}.bw-shell h1{font-size:30px}.bw-stage>div{gap:5px 13px}.bw-stage .bw-eyebrow{font-size:13px}.bw-task-heading{margin:28px 0 23px}.bw-action-row{align-items:stretch}.bw-action-row>.bw-primary{width:100%;margin-top:4px}.bw-action-row>span{max-width:100%!important}.bw-connection-steps{display:block}.bw-connection-steps li{margin-bottom:8px}.bw-task-notes{gap:0 20px}.bw-tool-list{grid-template-columns:1fr}.bw-dialog-body{padding:20px}.bw-dialog-head{padding:18px 20px}.bw-dialog-head h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.bw-shell *{transition:none!important}}
