/* Focus first; the optional companion appears only after an explicit exit. */
.setup-focused .sidebar,.setup-focused .topbar,.setup-focused .app-footer,.setup-focused .subscription-notice{display:none}
body.setup-focused .app-frame{margin-left:0;width:100%;min-height:100dvh;background:var(--gm-surface)}
.setup-focused #main{max-width:none;padding:0;min-height:0}
.setup-focused .account-verification-notice{margin:0;border-radius:0}
.guided-setup{max-width:1180px;margin:auto;padding:28px 48px 64px}
.guide-header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:52px}
.guide-header img{width:160px;height:auto;display:block}
.guide-header .brand-dark,[data-theme=dark] .guide-header .brand-light{display:none}
[data-theme=dark] .guide-header .brand-dark{display:block}
.guide-layout{display:grid;grid-template-columns:230px minmax(0,560px);gap:72px;justify-content:center;margin:80px auto 0}
.guide-rail ol{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.guide-rail button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;background:none;border:0;padding:6px 0;text-align:left;font:inherit;font-size:14px;color:var(--gm-text-muted);cursor:pointer}
.guide-rail button:disabled{cursor:default;opacity:.65}
.guide-rail button[aria-current]{color:var(--gm-heading);font-weight:600}
.guide-step-number{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border:1px solid var(--gm-border-control);border-radius:50%;font-size:12px}
[aria-current] .guide-step-number{background:var(--gm-action);border-color:var(--gm-action);color:var(--gm-action-text)}
.guide-step-number.done{background:var(--gm-success-bg);border-color:transparent;color:var(--gm-success)}
.guide-content{min-width:0}
.guide-step-label{font-size:12px;color:var(--gm-text-muted)}
.guide-content h1{font-size:32px;line-height:1.2;letter-spacing:-.9px;font-weight:600;margin:14px 0 32px}
.guide-content h1:focus{outline:none;box-shadow:none}
.guide-goals{display:grid;gap:12px}
.guide-goal{display:flex;gap:16px;align-items:center;min-height:86px;padding:20px;border:1px solid var(--gm-border-control);border-radius:12px;background:var(--gm-surface);color:var(--gm-text);font:inherit;text-align:left;cursor:pointer}
.guide-goal>span:first-child{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:var(--gm-canvas);color:var(--gm-text-muted);flex-shrink:0}
.guide-goal strong{font-size:15px;font-weight:600;flex:1}
.guide-goal[aria-pressed=true]{border-color:var(--gm-action);box-shadow:0 0 0 1px var(--gm-action);background:var(--gm-selected-bg)}
.guide-goal[aria-pressed=true]>span:first-child{background:var(--gm-surface);color:var(--gm-selected-text)}
.guide-choice{border:1px solid var(--gm-border-control);border-radius:50%;width:22px;height:22px;display:grid;place-items:center;flex-shrink:0}
[aria-pressed=true] .guide-choice{background:var(--gm-action);color:var(--gm-action-text);border-color:var(--gm-action)}
.guide-content .field{gap:8px;font-size:13px}.guide-content .input{min-height:46px}
.guide-brand{margin-top:24px;border-top:1px solid var(--gm-border-subtle);padding-top:20px}
.guide-brand summary{cursor:pointer;font-size:13px}.guide-brand summary span{color:var(--gm-text-muted);margin-left:8px;font-size:12px}
.guide-brand .form-grid{margin-top:20px}
.guide-actions{display:flex;justify-content:space-between;gap:12px;margin-top:32px;border-top:1px solid var(--gm-border-subtle);padding-top:24px}
.guide-actions .btn{min-height:44px}
.guide-first-draft{padding:34px 24px;border:1px solid var(--gm-border-subtle);border-radius:14px;text-align:center;background:var(--gm-canvas);display:flex;flex-direction:column;align-items:center;gap:16px}
.guide-draft-icon{display:grid;place-items:center;background:var(--gm-surface);color:var(--gm-selected-text);width:64px;height:64px;border-radius:16px}
.guide-first-draft h2{font-size:19px;margin:0 0 4px;font-weight:600}
.guide-readiness{border:1px solid var(--gm-border-subtle);border-radius:12px;overflow:hidden}
.guide-readiness>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid var(--gm-border-subtle)}
.guide-readiness>div:last-child{border-bottom:0}
.guide-readiness strong,.guide-readiness small{display:block}.guide-readiness strong{font-size:14px;font-weight:600}.guide-readiness small{font-size:12px;color:var(--gm-text-muted);margin-top:6px}
.guide-note{font-size:12px;color:var(--gm-text-muted);margin:16px 0 0}
.guide-loading{padding:48px;max-width:700px;margin:auto}
.setup-companion{position:fixed;z-index:28;bottom:24px;right:24px;width:306px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 120px);overflow:auto;background:var(--gm-surface);border:1px solid var(--gm-border-control);border-radius:14px;box-shadow:var(--gm-shadow-card);color:var(--gm-text)}
.setup-companion[hidden],.setup-handoff[hidden]{display:none}
.setup-companion.over-editor{bottom:94px}
body:has(.setup-companion:not([hidden])) .toasts{bottom:auto;top:80px}
.setup-companion-toggle{display:flex;align-items:center;gap:12px;padding:17px 18px;width:100%;min-height:64px;background:none;border:0;color:inherit;text-align:left;font:inherit;cursor:pointer}
.setup-companion-toggle>svg:first-child{color:var(--gm-action)}
.setup-companion-toggle>span{flex:1}.setup-companion-toggle strong{display:block;font-size:14px;font-weight:600}.setup-companion-toggle small{display:block;font-size:11px;color:var(--gm-text-muted);margin-top:3px}
.setup-companion progress{display:block;width:calc(100% - 36px);height:4px;margin:0 18px 12px;accent-color:var(--gm-action)}
.setup-companion ol{list-style:none;padding:0 10px;margin:0}.setup-companion li a{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 8px;font-size:12px;color:var(--gm-text);text-decoration:none;border-radius:6px}
.setup-companion li a:hover{background:var(--gm-selected-bg)}.setup-companion li a>svg{margin-left:auto;color:var(--gm-text-muted)}
.setup-companion li a>span{display:grid;place-items:center;width:22px;height:22px;flex-shrink:0;border:1px solid var(--gm-border-control);border-radius:50%;font-size:10px}
.setup-companion li .done{background:var(--gm-success-bg);color:var(--gm-success);border-color:transparent}
.setup-companion-actions{display:flex;justify-content:space-between;border-top:1px solid var(--gm-border-subtle);margin-top:8px;padding:8px 18px}.setup-companion-actions button{font-size:11px;min-height:36px}
.setup-companion .workspace-error{margin:12px;font-size:12px}
.setup-handoff{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 32px;background:var(--gm-selected-bg);border-bottom:1px solid var(--gm-border-subtle);font-size:12px;color:var(--gm-selected-text)}
.setup-handoff>span{margin-right:auto}.setup-handoff .text-link{min-height:36px;display:inline-flex;align-items:center}.setup-handoff .workspace-error{width:100%;margin:0}
@media(max-width:900px){.guide-layout{gap:36px;grid-template-columns:190px minmax(0,1fr)}.guided-setup{padding:24px 32px 48px}}
@media(max-width:760px){
 .guide-header img{width:132px}.guide-header{gap:12px}.guide-header .btn{font-size:12px;padding:8px 10px}
 .guided-setup{padding:20px 20px 40px}.guide-layout{display:block;margin-top:28px}
 .guide-rail ol{display:flex;gap:12px;justify-content:space-between;margin-bottom:36px}
 .guide-rail button{width:auto;min-width:44px;min-height:44px;justify-content:center;padding:0}.guide-rail button>span:last-child{display:none}
 .guide-content h1{font-size:28px;margin:12px 0 24px}.guide-goal{min-height:80px;padding:16px;gap:12px}.guide-goal strong{font-size:14px}
 .guide-readiness>div{padding:16px}.guide-actions{gap:8px}.guide-actions .btn{font-size:12px}
 .setup-companion{right:16px;bottom:16px;width:288px}.setup-handoff{padding:10px 16px;gap:10px}.setup-handoff>span{flex-basis:100%}
 .guide-loading{padding:24px}
}
