/* Setup stays in the left column and normal flow: it never covers controls. */
.setup-host{min-width:0;max-width:230px;margin-top:26px;color:var(--muted);font-size:12px}
.setup-checklist{background:var(--paper);border:1px solid var(--control-line);border-radius:8px;padding:4px 8px}
#setup-steps{max-height:min(330px,calc(100dvh - 390px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.setup-toggle,.setup-launcher{display:flex;align-items:center;gap:7px;width:100%;min-height:44px;padding:8px 4px;text-align:left;color:var(--muted);font-size:12px;border-radius:5px}
.setup-toggle{color:var(--ink)}
.setup-toggle>span:first-child{font-weight:600}
.setup-launcher{font-weight:500}
.setup-progress,.setup-launcher>span{margin-left:auto;font-size:11px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
.setup-chevron{font-size:15px}
.setup-step-list{list-style:none;margin:0;padding:0}
.setup-step-list li>span,.setup-step-list button{display:flex;gap:7px;align-items:flex-start;min-height:44px;width:100%;padding:9px 4px;line-height:1.6;text-align:left;font-size:11px;border-radius:5px;overflow-wrap:anywhere}
.setup-step-list button{color:var(--ink)}
.setup-step-list li>span{color:var(--muted)}
.setup-step-marker{flex:0 0 12px;color:var(--teal);text-align:center;font-size:12px}
.setup-step-arrow{margin-left:auto;flex:0 0 auto;color:var(--muted)}
.setup-step-list small{display:block;margin-top:2px;font-size:10px;color:var(--muted)}
.setup-note{margin:6px 4px;color:var(--muted);font-size:10px;line-height:1.65;overflow-wrap:anywhere}
.setup-dismiss{min-height:44px;padding:8px 4px;color:var(--muted);font-size:10px;text-decoration:underline;text-underline-offset:3px}
.setup-host button:focus-visible{outline:2px solid var(--teal-dark);outline-offset:2px}
.setup-host button:hover{background:var(--teal-wash)}
html[data-theme="dark"] .setup-checklist{background:var(--surface-alt)}
html[data-theme="dark"] .setup-host button:hover{background:var(--paper)}
.home-directory:has(>.setup-host){display:flex;flex-direction:column;height:calc(100dvh - var(--setup-column-top,250px) - 20px);min-height:0}
.home-directory:has(>.setup-host)>.home-section-heading{flex:0 0 auto}
.home-directory:has(>.setup-host)>.home-craft-list{min-height:67px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.home-directory>.setup-host{flex:0 0 auto;margin-top:auto;padding-top:14px;width:100%}
.spacecraft-navigation:has(>.setup-host){display:flex;flex-direction:column}
.spacecraft-navigation:has(>.setup-host)>.spacecraft-sidebar-disclosure{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.spacecraft-navigation:has(>.setup-host) .spacecraft-sidebar-list{min-height:0;max-height:none;overflow:visible}
.spacecraft-navigation>.setup-host{flex:0 0 auto;width:100%;margin-top:14px}
.spacecraft-navigation:has(>.setup-host)>.sidebar-heading,.spacecraft-navigation:has(>.setup-host)>.spacecraft-sidebar-create,.spacecraft-navigation:has(>.setup-host)>.pages-trash-link{flex:0 0 auto}
.setup-data-content{min-width:0}
.setup-data-shell:has(.setup-data-navigation:empty){display:block}
.setup-data-navigation:empty{display:none}
.setup-data-navigation{position:sticky;top:76px;align-self:start;height:calc(100dvh - 76px);display:flex;flex-direction:column;align-items:flex-start;padding:27px 15px}
.setup-data-navigation>.setup-host{flex:0 0 auto;margin-top:auto;width:100%}
@media(min-width:751px) and (max-width:1150px){
 .spacecraft-navigation:has(>.setup-host),.setup-data-navigation{top:106px;height:calc(100dvh - 106px)}
}
@media(min-width:751px) and (max-height:650px){
 #setup-steps{max-height:max(44px,calc(100dvh - 470px))}
 .spacecraft-navigation:has(>.setup-host){padding-top:16px;padding-bottom:16px}
 .spacecraft-navigation:has(>.setup-host)>.sidebar-heading{margin-bottom:10px}
 .spacecraft-navigation:has(>.setup-host)>.pages-trash-link{margin-top:8px}
}
@media(max-width:750px){
 .setup-host{max-width:230px}
 .setup-host button{scroll-margin-top:120px}
 .home-directory:has(>.setup-host){height:auto;min-height:0}
 .home-directory:has(>.setup-host)>.home-craft-list{max-height:235px}
 .home-directory>.setup-host{margin-top:12px;padding-top:0}
 .spacecraft-navigation:has(>.setup-host){display:block}
 .spacecraft-navigation:has(>.setup-host)>.spacecraft-sidebar-disclosure{display:block}
 .spacecraft-navigation:has(>.setup-host) .spacecraft-sidebar-list{max-height:min(48dvh,360px);overflow-y:auto}
 .setup-data-navigation{position:static;height:auto;padding:18px 20px;order:2}
 .setup-data-navigation>.setup-host{margin-top:0}
 #setup-steps{max-height:none;overflow:visible}
}
