.starter-canvas{min-width:0}
.starter-workbench{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:24px;align-items:start}.starter-composer{padding:26px;position:sticky;top:20px}.starter-composer h2{font-size:23px;letter-spacing:-.6px;margin:0 0 14px}.starter-composer p{font-size:14px;line-height:1.65;color:#686975}.starter-composer label{display:block;font-size:13px;font-weight:600;margin:25px 0 9px}.starter-composer textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #d7d7e4;border-radius:10px;padding:14px;font:inherit;font-size:14px;line-height:1.6;background:#f9f9fc;color:#181923}.starter-composer textarea:focus{outline:2px solid #5462ff;outline-offset:2px}.starter-suggestions{display:grid;gap:7px;margin:12px 0 20px}.starter-suggestion{font:inherit;text-align:left;font-size:12px;padding:9px 12px;border:1px solid #e3e2ed;border-radius:7px;background:#fff;color:#52546c;cursor:pointer}.starter-suggestion:hover{background:#efedff}.starter-composer .primary{width:100%;justify-content:center}.starter-composer .starter-allowance{font-size:12px;text-align:center}.starter-next{margin-top:25px;border-top:1px solid #e9e8ef;padding-top:23px}.starter-next strong{font-size:14px}.starter-composer .d-fine{font-size:11px}/* Empty canvas: the MovePacket packet mark and signal palette. */
.starter-empty{min-height:540px;border:1px solid var(--line);background-color:var(--paper);background-image:radial-gradient(#cecece .75px,transparent .75px);background-size:16px 16px;border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:46px;color:var(--ink)}
.starter-spark{display:block;width:86px;color:var(--blue);margin-bottom:32px}.starter-spark svg{display:block;width:100%}
.starter-empty h2{font-size:clamp(30px,3vw,46px);max-width:420px;line-height:1.05;letter-spacing:-1.8px;margin:0 0 22px;color:var(--ink)}
.starter-empty p{max-width:320px;color:var(--muted);line-height:1.7;font-size:15px;margin:0}
.starter-empty>span:last-child{font:10px var(--mono);letter-spacing:1.5px;color:var(--muted)}
.starter-empty-track{display:flex;width:100%;height:76px;align-items:flex-end;gap:8px;margin:34px 0 30px}.starter-empty-track i{flex:1;height:38%;background:var(--blue);border-radius:4px}.starter-empty-track i:nth-child(2){height:75%;background:var(--blue)}.starter-empty-track i:nth-child(3){height:100%;background:var(--lime)}.starter-empty-track i:nth-child(4){height:46%;background:var(--paper);border:1px solid #b7b4aa}
.starter-preview-bar{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#77798b;margin:0 0 14px}.starter-tools{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 10px}.starter-explanation{color:#606174;font-size:14px;line-height:1.7}.starter-library{margin-top:40px}.starter-library h2{font-size:20px}.starter-library a{text-decoration:none}.starter-library a p{font-size:13px;color:#818191}.starter-attribution{text-align:center;font-size:14px;color:#747685;margin:35px}.starter-top{display:flex;justify-content:space-between;padding:28px 6vw;border-bottom:1px solid #e1e2e8}.starter-top a{color:#222;text-decoration:none;font-weight:600}.starter-public{background:#f5f5f9}.shared-season{max-width:1200px;margin:45px auto;padding:0 24px}.season{--accent:#415fff;border:1px solid #e1e2ea;background:#fff;border-radius:15px;overflow:hidden;padding:28px;color:#20212d}.season-lime{--accent:#66851c}.season-violet{--accent:#8754b5}.season-coral{--accent:#d36b42}.season-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.season-label{font-size:9px;letter-spacing:2px;color:var(--accent)}.season-heading h2{font-size:30px;line-height:1.1;letter-spacing:-1px;margin:12px 0}.season-heading p{font-size:13px;color:#777986;line-height:1.6}.season-sample{white-space:nowrap;font-size:10px;background:#f2f3f7;border-radius:20px;padding:7px 9px;color:#72758c}.season-stats{display:flex;gap:40px;border-top:1px solid #eeeff4;border-bottom:1px solid #eeeff4;padding:22px 0;margin:15px 0 23px}.season-stats strong{display:block;font-size:28px;color:var(--accent)}.season-stats span{font-size:11px;color:#777986}.season-riders{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:28px}.season-riders>div{display:flex;gap:9px;align-items:center}.season-avatar{background:#eceffb;color:var(--accent);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:12px;font-weight:700}.season-riders strong{font-size:12px;display:block}.season-riders small{font-size:10px;color:#828593;display:block;max-width:200px;margin-top:3px}.season-legend{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.season-legend span{border-radius:5px;padding:4px 8px;font-size:10px;text-transform:capitalize}.phase-base{background:#e4eaff;color:#314b8f}.phase-build{background:#ede5fc;color:#695092}.phase-race{background:#ffeadb;color:#99602a}.phase-recovery{background:#e7f2d7;color:#536c31}.phase-empty{background:#f3f4f8;color:#80828f}.season-scroll{overflow-x:auto;padding-bottom:16px}.season-weeks{display:flex;gap:6px}.season-week{flex:0 0 95px}.season-week>small{font-size:9px;color:#7a7d8e;display:block;margin-bottom:10px}.season-block{padding:13px 10px;border-radius:7px}.season-week .season-block{min-height:160px}.season-block strong{font-size:12px;display:block;line-height:1.5}.season-block span{font-size:10px;line-height:1.65;display:block;margin-top:9px}.season-event{font-size:10px;line-height:1.5;margin-top:12px;display:flex;gap:6px;color:#333746}.season-event b{background:var(--accent);color:white;display:inline-grid;place-items:center;flex:0 0 18px;height:18px;border-radius:4px}.season-phase-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.season-phase-cards small{font-size:10px}.season-phase-cards h3{font-size:17px;margin:12px 0}.season-phase-cards p{font-size:12px;line-height:1.7}.season-foot{font-size:10px;color:#9092a0;margin-top:25px;line-height:1.6}.starter-composer .d-notice{margin:18px 0 0;font-size:13px}@media(max-width:1050px){.starter-workbench{grid-template-columns:minmax(0,1fr)}.starter-composer{position:static}.starter-empty{min-height:330px}.starter-suggestions{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.season{padding:18px}.season-heading{flex-direction:column}.season-heading h2{font-size:25px}.season-phase-cards{grid-template-columns:1fr}.season-stats{gap:25px}.starter-preview-bar{flex-direction:column}.starter-suggestions{grid-template-columns:1fr}.starter-composer{padding:20px}.starter-empty{padding:20px}.starter-empty h2{font-size:26px}}

.project-frame{width:100%;height:720px;border:1px solid #dedfe8;border-radius:14px;background:white;display:block}.shared-season:has(.project-frame){max-width:1400px}.shared-season .project-frame{height:80vh;min-height:600px}@media(max-width:600px){.project-frame{height:650px}}

/* The creation workbench uses the shared workspace shell and homepage canvas. */
.starter-composer.d-card{background:var(--surface,#fffefa);border:1px solid var(--line);border-radius:10px;box-shadow:none}
.starter-composer p,.starter-explanation{color:var(--muted)}
.starter-composer textarea{background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--ink);font-family:var(--sans)}
.starter-composer textarea:focus{outline:2px solid var(--blue);outline-offset:2px}
.starter-suggestion{border-radius:6px;background:var(--paper);border-color:var(--line);color:var(--ink);padding:11px 12px}
.starter-suggestion:hover{background:#eeeeee;border-color:var(--blue)}
.starter-composer .starter-allowance,.starter-preview-bar{font:10px/1.6 var(--mono);color:var(--muted)}
.starter-next{border-color:var(--line)}
.starter-composer .d-notice{border-radius:6px;border:1px solid var(--line);border-left:3px solid var(--blue);background:var(--paper);color:var(--ink)}
.starter-library a span{color:var(--blue)}
.project-frame{border-radius:10px;border-color:var(--line)}
@media(max-width:600px){.starter-empty{padding:28px;min-height:400px}.starter-empty h2{font-size:32px}.starter-empty-track{margin:28px 0}.starter-spark{width:64px;margin-bottom:24px}}

/* Keep generation visible without replacing the saved preview. */
.starter-canvas{position:relative}
#starter-output.is-generating{opacity:.16;pointer-events:none;min-height:420px}
.starter-loading{position:absolute;inset:0;min-height:420px;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;padding:80px 32px 32px;background:rgba(255,255,255,.9);border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:10px;color:var(--ink)}
.starter-loading[hidden]{display:none}
.starter-loading h2{font-size:26px;letter-spacing:-.7px;margin:24px 0 12px}
.starter-loading p{max-width:36ch;margin:0;color:var(--muted);line-height:1.6}
.starter-spinner,.starter-button-spinner{display:inline-block;flex-shrink:0;border:3px solid #dce3ff;border-top-color:var(--blue);border-radius:50%;width:42px;height:42px;animation:starter-spin .85s linear infinite}
.starter-button-spinner{width:16px;height:16px;border-width:2px;border-color:#ffffff60;border-top-color:#fff}
.starter-loading-track{width:160px;height:3px;background:var(--blue);margin-top:28px;animation:starter-breathe 1.5s ease-in-out infinite}
@keyframes starter-spin{to{transform:rotate(360deg)}}
@keyframes starter-breathe{50%{opacity:.25;transform:scaleX(.6)}}
@media(prefers-reduced-motion:reduce){.starter-spinner,.starter-button-spinner,.starter-loading-track{animation:none}}

/* Preview-led workspace: retain the existing shell and top frame. */
.dashboard .d-main.is-builder>.d-view{padding:0 0 0;max-width:none;width:100%}
.starter-page{--changes-width:320px;color:var(--ink);background:var(--surface,#fff)}
.starter-header{min-height:44px;padding:5px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);box-sizing:border-box}
.starter-heading{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0}.starter-heading>a{color:var(--muted);text-decoration:none;font-size:20px;padding:4px}.starter-heading h1{font:500 12px/1.4 var(--sans);color:var(--muted);letter-spacing:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.starter-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.starter-header .d-button{font-size:12px;padding:8px 11px;white-space:nowrap}
.starter-page .starter-workbench{display:grid;grid-template-columns:var(--changes-width) 0 minmax(0,1fr);gap:0;align-items:stretch;height:calc(100dvh - 89px);min-height:560px}
.starter-page .starter-composer{position:static;min-width:0;padding:0;display:flex;flex-direction:column;min-height:0;border:0;border-radius:0;background:var(--surface,#fff)}
.starter-panel-heading{height:49px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--line);flex-shrink:0}.starter-panel-heading h2{font-size:13px;font-weight:600;letter-spacing:0;margin:0}.starter-reset{border:0;background:none;color:var(--muted);padding:6px;cursor:pointer;font-size:18px!important}
.starter-conversation{padding:20px 16px;overflow:auto;flex:1;min-height:0}.starter-guide h3{font-size:19px;letter-spacing:-.6px;line-height:1.3;margin:0 0 12px}.starter-guide p{font-size:13px;line-height:1.7;margin:0}
.starter-page .starter-suggestions{display:grid;grid-template-columns:1fr;gap:8px;margin:24px 0}.starter-page .starter-suggestion{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 12px;font-size:12px;background:transparent;border:0;border-radius:0}.starter-suggestion span{color:var(--muted)}.starter-page .starter-suggestion:hover{background:var(--paper);border-color:var(--muted)}
.starter-input-area{padding:12px;flex-shrink:0}.starter-page #starter-form{border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff);box-shadow:none;padding:8px}.starter-page #starter-form:focus-within{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.starter-page #starter-prompt{display:block;width:100%;border:0;outline:none;box-shadow:none;background:transparent;padding:8px;resize:none;min-height:64px;max-height:180px;font-size:13px;line-height:1.6}.starter-page #starter-prompt::placeholder{color:var(--muted)}
.starter-input-actions{display:flex;align-items:center;justify-content:space-between;padding:2px 4px}.starter-send{width:34px;height:34px;display:grid;place-items:center;padding:7px;border:0;border-radius:50%;background:var(--ink);color:var(--surface,#fff);cursor:pointer}.starter-send svg{width:20px;height:20px}.starter-page .starter-allowance{font:10px/1.6 var(--sans);color:var(--muted);margin:0 10px 0 auto}.starter-input-area .d-fine{font-size:10px;line-height:1.5;margin:0 3px;color:var(--muted)}
.starter-divider{cursor:col-resize;touch-action:none;position:relative;width:9px;transform:translateX(-4px);background:linear-gradient(to right,transparent 4px,var(--line) 4px,var(--line) 5px,transparent 5px);border:0;z-index:3}.starter-divider:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}.starter-page.is-resizing{cursor:col-resize;user-select:none}.starter-page.is-resizing .project-frame{pointer-events:none}
.starter-preview{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--paper)}.starter-page .starter-preview-bar{height:49px;box-sizing:border-box;margin:0;padding:0 20px;align-items:center;flex-shrink:0;border-bottom:1px solid var(--line);font:11px/1.5 var(--sans)}
.starter-page .starter-canvas{flex:1;min-height:0;margin:0;overflow:auto;border:0;border-radius:0;background:var(--surface,#fff)}.starter-page #starter-output{height:100%}.starter-page .project-frame{width:100%;height:100%;min-height:0;border:0;border-radius:0}.starter-preview-foot{font-size:10px;color:var(--muted);margin:0;padding:10px 20px 14px;line-height:1.5}
.starter-page .starter-empty{height:100%;min-height:0;border:0;border-radius:0;box-sizing:border-box;padding:24px;background:var(--surface,#fff);align-items:center;justify-content:center}.starter-page .starter-empty p{font-size:13px;color:var(--muted);margin:0}

.starter-page .starter-loading{min-height:100%;border:0;box-sizing:border-box;justify-content:center;padding:24px;border-radius:0}.starter-page #starter-output.is-generating{min-height:100%}
.starter-menu{position:relative}.starter-menu>summary{list-style:none;display:grid;place-items:center;width:32px;height:32px;border-radius:6px;cursor:pointer;font-size:16px}.starter-menu>summary::-webkit-details-marker{display:none}.starter-menu>summary:hover{background:var(--paper)}.starter-menu-content{position:absolute;right:0;top:calc(100% + 8px);z-index:10;width:230px;max-width:calc(100vw - 40px);padding:8px;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px #00000016;background:var(--surface,#fff);max-height:60vh;overflow:auto}.starter-menu-content>a,.starter-menu-content>button{display:block;text-align:left;width:100%;box-sizing:border-box;padding:10px;border:0;border-radius:5px;background:none;color:var(--ink);text-decoration:none;font:12px/1.4 var(--sans);cursor:pointer}.starter-menu-content>a:hover,.starter-menu-content>button:hover{background:var(--paper)}.starter-menu-content p{font-size:11px;line-height:1.5;margin:8px 10px;color:var(--muted)}.starter-add>summary{font-size:23px}.starter-add .starter-menu-content{top:auto;bottom:calc(100% + 10px);left:0;right:auto}
.starter-page.changes-collapsed .starter-workbench{grid-template-columns:minmax(0,1fr)}.starter-page.changes-collapsed .starter-composer,.starter-page.changes-collapsed .starter-divider{display:none}
.starter-page :is(button,a,summary):focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.starter-page.is-narrow .starter-header{flex-wrap:wrap;padding:12px 16px}.starter-page.is-narrow .starter-header-actions{flex-wrap:wrap;gap:6px}.starter-page.is-narrow .starter-workbench{height:auto;min-height:0;grid-template-columns:minmax(0,1fr)}.starter-page.is-narrow .starter-divider{display:none}.starter-page.is-narrow .starter-preview{min-height:540px;height:70dvh;grid-row:1}.starter-page.is-narrow .starter-composer{grid-row:2;border-top:1px solid var(--line)}.starter-page.is-narrow .starter-conversation{max-height:280px}.starter-page.is-narrow .starter-preview-bar{flex-direction:row;padding-inline:16px;font-size:10px;gap:8px}.starter-page.is-narrow .starter-canvas{margin:0}.starter-page.is-narrow .starter-preview-foot{padding-inline:14px}.starter-page.is-narrow .starter-reset{display:none}
.starter-page .starter-header{height:auto;max-width:none;margin:0;width:100%}
.starter-page.is-narrow .starter-header-actions{max-width:100%;flex-shrink:1}
.starter-page.is-narrow:not(.has-project) .starter-composer{grid-row:1}
.starter-page.is-narrow:not(.has-project) .starter-preview{grid-row:2}

.starter-heading #starter-preview-state{font-size:10px;color:var(--muted);white-space:nowrap}.starter-page.is-narrow .starter-heading{gap:1px}.starter-page .starter-loading h2{font-size:16px;font-weight:500}.starter-page .starter-spinner{width:24px;height:24px;border-width:2px}

/* Compact the existing top frame only while the project workspace is open. */
.d-main:has(>.d-view>.starter-page)>.d-topbar .d-context{font-size:11px;gap:10px}.starter-header #starter-core{font-size:12px;padding:7px 11px}.starter-header .starter-menu>summary{color:var(--muted);font-size:12px}

/* The project conversation stays inside the existing resizable pane. */
.starter-message{margin:0 0 22px;overflow-wrap:anywhere;font:13px/1.65 var(--sans);color:var(--ink)}
.starter-message>p{margin:0 0 10px;color:var(--ink);white-space:pre-wrap}
.starter-message-user{margin-left:22px;padding:10px 13px;border-radius:14px;background:var(--paper)}
.starter-message-user>p:last-child{margin:0}
.project-message-actions{display:flex;align-items:flex-start;flex-direction:column;gap:5px;margin-top:12px}
.project-message-actions button,.project-message-actions a{border:0;background:none;padding:5px 0;text-align:left;font:12px/1.5 var(--sans);color:var(--blue);cursor:pointer;text-decoration:none}
.project-message-actions button:hover,.project-message-actions a:hover{text-decoration:underline}
.starter-message details{margin:10px 0;border-top:1px solid var(--line);padding-top:8px}
.starter-message summary{cursor:pointer;font-size:12px}.starter-message summary span{display:block;color:var(--muted);font-size:11px}
.starter-message .tt-muted,.starter-message .tt-sources{font-size:11px;color:var(--muted)}
.starter-message .tt-sources a{color:var(--blue)}

/* Builder controls use the shared workspace top bar. */
.starter-page .starter-header{height:76px;min-height:76px;padding:5px 24px;flex-wrap:nowrap;gap:10px;background:var(--paper)}
.starter-heading{flex:1}.starter-heading h1{color:var(--ink)}
/* Secondary project controls follow the sidebar, with a lighter emphasis. */
.starter-header :is(#starter-open,#starter-share),.starter-header .starter-menu>summary{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;box-sizing:border-box;border:0;border-radius:6px;background:transparent;padding:6px 8px;font:12px/1 var(--sans);font-weight:400!important;color:#686868;text-decoration:none}
.starter-header :is(#starter-open,#starter-share):hover,.starter-header .starter-menu>summary:hover{background:#eeeeee;color:var(--ink)}
.starter-header :is(#starter-open,#starter-share) svg{display:block;width:16px;height:16px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

.starter-page .starter-workbench{height:calc(100dvh - 76px);min-height:360px}
.starter-page[data-layout=chat] .starter-workbench,.starter-page[data-layout=preview] .starter-workbench{grid-template-columns:minmax(0,1fr)}
.starter-page[data-layout=chat] :is(.starter-preview,.starter-divider),.starter-page[data-layout=preview] :is(.starter-composer,.starter-divider){display:none}
.starter-page[data-layout=chat] .starter-composer{width:100%;max-width:760px;margin-inline:auto}
.starter-page[data-layout=chat] .starter-conversation{padding:36px 24px}
.starter-page[data-layout=chat] .starter-input-area{padding:12px 24px 20px}
.starter-page[data-layout=chat]:not(.has-project) .starter-guide{padding-top:clamp(24px,14vh,140px)}
.starter-page[data-layout=chat] .starter-guide h3{font-size:28px}
.starter-page[data-layout=chat] .starter-suggestions{max-width:460px}
.starter-page.is-narrow .starter-workbench{height:calc(100dvh - 76px);min-height:360px}
.starter-page.is-narrow .starter-preview{height:auto;min-height:0;grid-row:1}
.starter-page.is-narrow .starter-composer{grid-row:1;border:0}
.starter-page.is-narrow .starter-conversation{max-height:none}
.starter-page.is-narrow[data-layout=split] .starter-composer{display:none}
.starter-page.is-narrow .starter-header-actions{flex-wrap:nowrap;gap:3px}
.starter-page.is-narrow .starter-header .d-button{padding:6px}
.starter-page.is-narrow .starter-header{gap:4px}
@media(max-width:580px){
 .starter-page .starter-header{height:58px;min-height:58px;padding:5px 12px}
 .starter-page .starter-header #starter-core{max-width:130px;white-space:normal;font-size:10px!important;line-height:1.2}
 .starter-page .starter-heading h1{max-width:100%;font-size:11px}
 .starter-page #starter-share{display:none}
}

/* One workspace from verification through the first saved version. */
.starter-page{--changes-width:360px}
.starter-preparing .starter-heading span{font-size:10px;color:var(--muted)}
.starter-preparing .starter-divider{cursor:default;pointer-events:none}
.starter-preparing .first-project-entry{max-width:none;margin:28px 0;text-align:left}
.starter-preparing .first-project-entry h2{font-size:15px;line-height:1.5;letter-spacing:0;margin:0 0 12px}
.starter-preparing .first-project-entry .d-notice{padding:0;border:0;background:none;font-size:13px;line-height:1.7}
.starter-preparing .first-project-entry .customer-actions{justify-content:flex-start}
.starter-preparing-note{font-size:12px;line-height:1.6;color:var(--muted);padding:0 8px}
.starter-build-progress{font:12px/1.6 var(--sans);margin:20px 0 28px;color:var(--ink)}
[data-build-elapsed]{font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}
.starter-page .starter-loading p{font-size:13px;max-width:32ch}
.starter-page .starter-loading{background:var(--surface,#fff)}
@media(max-width:1050px){.starter-preparing .starter-workbench{grid-template-columns:minmax(0,1fr)}.starter-preparing :is(.starter-divider,.starter-preview){display:none}.starter-preparing .starter-composer{max-width:600px;width:100%;margin:auto;height:100%}}

/* Ordinary chat copy with quiet, expandable work beneath it. */
.starter-build-progress{border:0;background:transparent;padding:0 0 12px;font-size:14px;line-height:1.65}
.build-plan-summary{color:var(--ink);font:inherit;margin:0 0 18px}
.build-plan-details,.build-activity{color:var(--muted);font:13px/1.6 var(--sans)}
.build-plan-details{margin:10px 0 18px}
.build-plan-details summary,.build-activity summary{cursor:pointer;font-weight:400}
.build-activity summary{padding:5px 0;list-style:none;display:flex;align-items:center;gap:8px}
.build-activity summary::-webkit-details-marker{display:none}
.build-activity summary::after{content:'⌄';margin-left:2px;font-size:12px}
.build-activity:not([open])>summary::after{content:'›'}
.build-activity-icon{width:15px;height:15px;flex-shrink:0;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.build-activity-line{padding:5px 0;display:flex;align-items:center;gap:8px}
.build-activity-line:is(details){display:block;padding:0}
.build-activity-line p,.build-plan-details p{padding-left:23px;margin:8px 0 12px;font-size:12px;line-height:1.6}
.starter-build-progress[data-finished="failed"] .build-activity summary{color:var(--ink)}

@keyframes builder-text-shimmer{from{background-position:160% 0}to{background-position:-60% 0}}
@supports(background-clip:text){
 .starter-build-progress:not([data-finished]) [data-build-status]{background:linear-gradient(100deg,var(--muted) 34%,var(--ink) 48%,var(--muted) 62%);background-size:220% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:builder-text-shimmer 2.6s linear infinite}
}
@media(prefers-reduced-motion:reduce){.starter-build-progress:not([data-finished]) [data-build-status]{animation:none;background:none;color:var(--muted)}}

/* ChatKit owns the conversation and composer; the project preview stays local. */
.starter-composer:has(.starter-chatkit){padding:0;gap:0;min-height:0;overflow:hidden}
.starter-chatkit{flex:1;min-height:0;width:100%;display:flex}
.starter-chatkit openai-chatkit{display:block;width:100%;height:100%;min-height:0;flex:1}
.starter-composer:has(.starter-chatkit)>#starter-notice{margin:12px 16px;font-size:13px}

/* A compact, consistent editor toolbar. */
.starter-page .starter-heading h1{font:600 14px/1.4 Geist,Arial,sans-serif}
.starter-page .starter-header :is(.d-button,#starter-core,#starter-open,#starter-share){font-family:Geist,Arial,sans-serif;font-size:14px}
.starter-page .starter-menu-content>a,.starter-page .starter-menu-content>button{font:400 14px/1.4 Geist,Arial,sans-serif}
.starter-header-actions .d-environment{display:none}
.starter-header #starter-open>span{display:none}
.starter-header #starter-open{width:32px;padding:6px}
.starter-header .starter-menu>summary{width:32px;gap:0;padding:8px}
.starter-header .starter-menu>summary::after{content:none}

/* Match the shared logo/header height, with 32px controls and 16px icons. */
.starter-page .starter-header{height:var(--workspace-header-height,56px);min-height:var(--workspace-header-height,56px);padding:4px 16px}
.starter-page .starter-header :is(#starter-core,#starter-open,.starter-menu>summary){height:32px;min-height:32px}
.starter-page .starter-header #starter-core{display:inline-flex;align-items:center;padding:6px 10px;line-height:1.2}
.starter-header #starter-open{width:32px;padding:8px}
.starter-heading #starter-preview-state{line-height:1.25}
.starter-page .starter-workbench,.starter-page.is-narrow .starter-workbench{height:calc(100dvh - var(--workspace-header-height,56px))}
@media(max-width:580px){
 .starter-page .starter-header{padding:4px 8px;gap:4px}
 .starter-page .starter-header-actions{gap:2px}
 .starter-page .starter-header #starter-core{max-width:124px;white-space:normal}
 .starter-page .starter-heading{overflow:hidden}
 .starter-heading #starter-preview-state{max-width:100%;overflow:hidden;text-overflow:ellipsis}
}

.local-ride-controls{padding:12px 16px;border-bottom:1px solid #dce2e9;font:13px/1.5 system-ui,sans-serif}.local-ride-controls label{font-weight:600}.local-ride-controls input{margin-left:10px;max-width:100%}.local-ride-controls p{margin:4px 0;color:#566476}

.starter-page #starter-output:has(.local-ride-controls){display:flex;flex-direction:column}.starter-page #starter-output:has(.local-ride-controls)>.project-frame{flex:1;min-height:450px}.local-ride-view{padding:12px}.project-frame[hidden]{display:none!important}

/* The climb is decorative; actual build phases remain in the conversation. */
.build-climb{margin:0;width:100%;max-width:440px}.build-climb img{display:block;width:100%;height:clamp(200px,40vh,400px);object-fit:contain}.build-climb figcaption{font:500 15px/1.5 var(--sans,system-ui);color:var(--ink,#19232f)}.build-climb figcaption span{display:block;font-size:12px;font-weight:400;color:var(--muted,#566476);margin-top:3px}.starter-loading.has-climb [data-build-climb]{width:100%;display:flex;justify-content:center}.starter-loading.has-climb>.starter-spinner{display:none}.starter-page .starter-loading.has-climb h2{margin:22px 0 8px}

/* Playground release state stays quiet until there is a built version. */
.playground-release{min-height:58px;display:flex;align-items:center;gap:12px;padding:9px 16px;border-bottom:1px solid var(--line);background:var(--surface,#fff);font:12px/1.4 Geist,Arial,sans-serif}
.playground-release[hidden]{display:none}.playground-release-mark{width:8px;height:8px;border-radius:50%;background:var(--lime,#c3ff46);box-shadow:0 0 0 4px color-mix(in srgb,var(--lime,#c3ff46) 18%,transparent);flex:0 0 auto}
.playground-release-copy,.playground-project-picker{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1;color:var(--muted)}.playground-release-copy strong,.playground-project-picker strong{color:var(--ink);font-weight:600}.playground-release-copy span,.playground-project-picker span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.playground-release-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.playground-project-picker select{margin-top:4px;min-width:220px;max-width:360px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink);padding:7px 28px 7px 9px;font:inherit}
.starter-page.is-playground:has(.playground-release:not([hidden])) .starter-workbench{height:calc(100dvh - var(--workspace-header-height,56px) - 58px)}
@media(max-width:700px){.playground-release{align-items:flex-start;flex-wrap:wrap}.playground-release-copy,.playground-project-picker{flex-basis:calc(100% - 24px)}.playground-release-actions{width:100%;margin-left:20px}.playground-project-picker select{min-width:0;width:100%}.starter-page.is-playground:has(.playground-release:not([hidden])) .starter-workbench{height:calc(100dvh - var(--workspace-header-height,56px) - 96px)}}

/* A provider-independent text renderer keeps the existing builder usable. */
.project-chat-fallback{align-self:flex-start;margin:8px 12px}.project-text-chat{display:flex;flex-direction:column;height:100%;min-height:280px;font:14px/1.5 var(--sans,system-ui);color:var(--ink,#19232f)}.project-text-chat-history{flex:1;overflow:auto;min-height:0;padding:8px 16px;overscroll-behavior:contain}.project-text-actions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.project-text-chat-status{margin:0;color:var(--muted,#566476);font-size:12px}

.project-text-chat input[type=file],.project-text-files{grid-column:1/-1;max-width:100%;font:inherit}.project-text-files:empty{display:none}.project-text-files button{max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* Playground starts with an idea; the preview joins when there is a result. */
.playground-welcome,.playground-ideas{display:none}
.is-playground:not(.has-conversation) .starter-composer{justify-content:center;padding:24px;overflow:auto}
.is-playground:not(.has-conversation) .playground-welcome{display:block;text-align:center;flex:none}
.is-playground .playground-welcome h2{--workspace-text-size:clamp(26px,3vw,36px);font-size:var(--workspace-text-size);font-weight:550;line-height:1.2;letter-spacing:-1.1px;margin:0 0 24px}
.is-playground:not(.has-conversation) .starter-chatkit{flex:0 0 190px;min-height:190px}
.is-playground:not(.has-conversation) .starter-chatkit:has(.project-text-chat){flex:0 0 auto;min-height:0}
.is-playground:not(.has-conversation) .project-text-chat{height:auto}
.is-playground:not(.has-conversation) .playground-ideas{display:flex;flex:none;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px}
.playground-ideas .d-button{--workspace-text-size:12px;background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:7px 12px;font-weight:400}
.playground-ideas .d-button:hover{background:var(--paper);color:var(--ink)}
.starter-page .playground-build-progress{position:static;flex:none;min-height:0;max-height:35%;overflow:hidden;border:0;border-radius:0;background:transparent;padding:12px 20px;color:var(--muted)}
.starter-page .playground-build-progress .build-climb img{height:clamp(70px,15dvh,150px)}
.starter-page .playground-build-progress .build-climb figcaption{--workspace-text-size:12px}
.starter-page .playground-build-progress .build-climb figcaption span{display:none}
.starter-page .playground-build-progress.has-climb h2{--workspace-text-size:14px;margin:8px 0 0;letter-spacing:0}
.starter-page .playground-build-progress>p{--workspace-text-size:12px;margin-top:4px}
.is-playground .project-text-chat{width:100%;flex:1;min-height:0}
.is-playground:not(.has-conversation) .project-text-chat-history{display:none}
.is-playground:not(.has-conversation) .project-text-chat form{margin:0 0 6px}
.is-playground:not(.has-conversation) .project-text-chat{justify-content:flex-end}
@media(max-width:580px){.is-playground:not(.has-conversation) .starter-composer{padding:16px}.is-playground .playground-welcome h2{letter-spacing:-.6px}.playground-ideas .d-button{padding:7px 10px}.starter-page .playground-build-progress>p{display:none}}

.starter-model-state{font-size:.78rem;color:var(--muted,#64748b);white-space:nowrap}

/* All builder chats must shrink with the split pane, including document cards. */
.starter-chatkit,.project-text-chat{min-width:0}
.project-text-chat{width:100%;flex:1;min-height:0}
.project-text-chat-history{min-width:0;overflow-wrap:anywhere}
.project-text-chat form.mp-chat-composer{flex:0 0 auto;min-width:0}
.project-text-chat .mp-pasted-meta{white-space:normal;overflow-wrap:anywhere}
.project-text-chat .mp-pasted-text{max-width:100%}

/* The approved Playground empty canvas, using the existing conversation and shell. */
.is-playground:not(.has-conversation) .starter-workbench{position:relative;isolation:isolate}
.hub-build-canvas::before,.is-playground:not(.has-conversation) .starter-workbench::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(var(--workspace-empty-dot) 1.25px,transparent 1.25px) 0 0/20px 20px;mask-image:radial-gradient(ellipse 48% 42% at 50% 52%,transparent 45%,#000 100%)}
.is-playground:not(.has-conversation) .starter-composer{background:transparent}
.is-playground .playground-welcome h2{--workspace-text-size:clamp(30px,3vw,38px);font-weight:800;letter-spacing:-.04em}
.is-playground .playground-ideas .d-button{--workspace-text-size:14px;min-height:44px;border-radius:999px;padding:0 16px;color:var(--ink);background:var(--surface)}
.is-playground:not(.has-conversation) .project-text-chat-hint{display:none}
.is-playground:not(.has-conversation) .starter-chatkit{width:100%;max-width:690px;margin-inline:auto}
@media(prefers-reduced-motion:reduce){.is-playground:not(.has-conversation) *{animation:none!important;transition:none!important}}

.is-playground .playground-ideas .d-button{font-weight:500}

.is-playground:not(.has-conversation) .project-text-chat form.mp-chat-composer{width:100%;margin-inline:0}

/* Direct panel toggle, using the same Lucide glyph and stroke as the header. */
.starter-header .starter-view-toggle{position:relative;display:flex;align-items:center;justify-content:center;width:34px;height:34px;padding:9px;box-sizing:border-box;border:0;border-radius:9px;background:color-mix(in srgb,var(--ink) 5%,var(--surface));cursor:pointer;color:var(--ink)}
.starter-view-toggle:hover{background:color-mix(in srgb,var(--ink) 10%,var(--surface))}
.starter-view-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.starter-view-toggle[aria-disabled=true]{color:var(--muted);cursor:default}
.starter-view-toggle:is(:hover,:focus-visible)::after{content:attr(data-tooltip);position:absolute;right:0;top:calc(100% + 8px);padding:8px 11px;border-radius:8px;background:var(--ink);color:var(--surface);font:400 12px/1.4 var(--sans);white-space:nowrap;pointer-events:none;z-index:40;box-shadow:0 4px 14px #0002}
@media(max-width:580px){.starter-view-toggle:is(:hover,:focus-visible)::after{max-width:210px;white-space:normal}}

/* Always-visible panel controls share the same behavior across builders. */
.workbench-panels{display:flex;align-items:center;gap:6px}.workbench-panels .d-button{font-weight:400!important;gap:6px;padding:7px 10px;min-height:36px;background:transparent;color:var(--muted)}.workbench-panels .d-button[aria-pressed=true]{color:var(--ink);background:var(--surface);border-color:var(--ink)}.workbench-panels .d-button span{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:600px){.workbench-panels .d-button{font-weight:400;padding:6px 8px}.workbench-panels .d-button span{max-width:110px}}
