/* Builder, minimal pass: one clear task at a time. Loaded after aura-builder-system.css; keeps every id and class the JS and tests use. */
.aura-studio #guest-builder{column-gap:clamp(32px,5vw,72px);grid-template-columns:minmax(360px,440px) minmax(0,1fr)}

/* 1. Intro: headline and one line, nothing else competing */
.aura-studio .introduction{padding:32px 0 8px;margin:0}
.aura-studio .introduction .eyebrow{display:none}
.aura-studio .introduction h1{margin:0 0 8px;font-size:clamp(28px,2.6vw,36px);font-weight:600;letter-spacing:-.035em}
.aura-studio .introduction>p{margin:0 0 4px;color:var(--studio-muted);font-size:15px}
.aura-studio .builder-costs{margin:0}
.aura-studio .builder-costs summary{min-height:32px;font-size:13px;color:var(--studio-muted)}

/* 2. Hide the process chrome: 3 step cards and the reassurance banner. The form headings already say what comes next. */
.aura-studio .builder-steps,.aura-studio .reassure{display:none}

/* 3. Selected template: one quiet row */
.aura-studio .start-chooser{gap:12px;margin:16px 0 0}
.aura-studio .selected-template{align-items:center;gap:14px;padding:0 0 16px;border:0;border-bottom:1px solid var(--studio-line);border-radius:0;background:none}
.aura-studio .sel-thumb{width:72px;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:6px}
.aura-studio .sel-label{margin:0;font-size:12px;color:var(--studio-muted)}
.aura-studio .sel-name{margin:0}
.aura-studio .sel-sample,.aura-studio .sel-actions a:not(.sel-change){display:none}
.aura-studio .sel-actions{margin:4px 0 0}
.aura-studio .sel-change{background:none;border:0;padding:0;min-height:32px;color:var(--accent,#ffab87);text-decoration:underline;text-underline-offset:3px}

/* 4. AI helper: a flat, collapsed row */
.aura-studio .ai-helper{border:0;border-bottom:1px solid var(--studio-line);border-radius:0;background:none;padding:0}
.aura-studio .ai-helper>summary{padding:12px 0}
.aura-studio .ai-helper>summary small{display:block;font-weight:400;font-size:13px;color:var(--studio-muted)}

/* 5. Form: open page, not a boxed card; one field per row */
.aura-studio #shop-form{border:0;background:none;padding:0}
.aura-studio .editor-panel{padding-top:16px}
.aura-studio #draft-status{margin:0 0 16px;font-size:13px}
.aura-studio fieldset{border:0;padding:0;margin:0 0 28px}
.aura-studio legend{padding:0;margin:0 0 14px;font-size:18px;font-weight:600;letter-spacing:-.02em;float:left;width:100%}
.aura-studio legend+*{clear:both}
.aura-studio #shop-form label{font-size:14px;font-weight:600}
.aura-studio :is(input,textarea,select){border-radius:8px}

/* 6. Secondary fields tucked away */
.look-fields{margin:8px 0 0;border-top:1px solid var(--studio-line)}
.look-fields>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px;cursor:pointer;font-weight:600;list-style:none}
.look-fields>summary::-webkit-details-marker{display:none}
.look-fields>summary::after{content:"+";font-size:20px;color:var(--studio-muted)}
.look-fields[open]>summary::after{content:"\2212"}
.look-fields>summary small{margin-left:auto;font-weight:400;font-size:13px;color:var(--studio-muted)}
.look-fields[open]{padding-bottom:8px}
.look-fields .template-fallback{margin:0 0 8px}

/* 7. Save: one primary action */
.aura-studio .save-step{border:0;padding:0;margin-top:8px}
.aura-studio .save-step .step-heading{display:none}
.aura-studio .form-actions{display:grid;gap:10px}
.aura-studio .form-actions #preview{min-height:52px;font-weight:700}
.aura-studio .save-step .terms{font-size:12px}

/* 8. Preview: calm stage, one slim control row */
.aura-studio #guest-builder .preview-panel{background:#101010;border:0;padding:0 16px 16px;border-radius:16px}
.aura-studio .preview-toolbar{padding:14px 4px 8px;font-size:13px;letter-spacing:0;text-transform:none;color:var(--studio-muted)}
.aura-studio .preview-devices{justify-content:flex-end;margin:-44px 0 14px;position:relative;pointer-events:none}
.aura-studio .preview-devices button{pointer-events:auto;min-height:36px;padding:0 14px;font-size:13px;border:0;color:var(--studio-muted)}
.aura-studio .preview-devices button[aria-pressed='true']{background:#fff2;color:var(--studio-ink)}
.aura-studio #guest-builder .preview-panel iframe{border-radius:10px;box-shadow:0 16px 48px #0008}
.aura-studio .preview-toolbar a{min-height:32px}
@media(max-width:900px){.aura-studio .preview-devices{margin:0 0 10px;justify-content:center;pointer-events:auto}}

/* 9. Font picker: a short list of ready pairings, each drawn in its own fonts */
.font-picker{display:grid;gap:8px;margin:16px 0 8px}
.font-picker-label{margin:0;font-size:14px;font-weight:600}
.aura-studio .font-card{display:grid;gap:2px;width:100%;min-height:64px;padding:12px 14px;text-align:left;background:transparent;color:var(--studio-ink);border:1px solid var(--studio-line);border-radius:10px}
.aura-studio .font-card strong{font-size:17px;font-weight:600;line-height:1.3}
.aura-studio .font-card span{font-size:13px;color:var(--studio-muted)}
.aura-studio .font-card:hover{border-color:#ffffff66}
.aura-studio .font-card[aria-checked='true']{border-color:var(--accent,#ffab87);box-shadow:inset 0 0 0 1px var(--accent,#ffab87)}

/* 10. Light, neutral palette (Squarespace-like): white panel, soft grey stage, black ink, no accent colour except focus. */
html[data-site-theme] body.aura-studio{--studio-bg:#fff;--studio-surface:#fff;--studio-soft:#f6f5f2;--studio-ink:#111;--studio-muted:#5f5e59;--studio-line:#e3e1db;--accent:#111;--focus-ring:#111;--primary:#111;--muted:#5f5e59;color-scheme:light}
.aura-studio :is(summary,.ai-helper>summary span,.aura-site-header a,.aura-site-header span,.aura-site-header button,.sel-label,.sel-kind){color:#111!important}
.aura-studio :is(.sel-kind,.ai-helper>summary small,.sel-label){color:var(--studio-muted)!important}
html[data-site-theme] .aura-studio .aura-site-header{background:#fff;border-bottom:1px solid var(--studio-line)}
.aura-studio .aura-site-header :is(a,button,span){color:#111}
.aura-studio .aura-site-header img,.aura-studio .aura-site-header svg{filter:invert(1)}
.aura-studio .aura-site-header .aura-site-account{background:#111;color:#fff;border-radius:2px}
.aura-studio button{background:#111;color:#fff;border-radius:2px;font-weight:600}
.aura-studio button:hover:not(:disabled){background:#333}
.aura-studio :is(button.secondary,.preview-devices button,.prompt-examples button,.font-card,.sel-change){background:#fff;color:#111;border:1px solid var(--studio-line)}
.aura-studio :is(button.secondary,.prompt-examples button,.sel-change):hover{border-color:#111;background:#fff}
.aura-studio .link-button{background:none;color:#111;text-decoration:underline}
.aura-studio :is(input,textarea,select){background:#fff;color:#111;border:1px solid #d4d2cb;border-radius:4px}
.aura-studio :is(input,textarea,select):focus{border-color:#111;outline:0;box-shadow:0 0 0 1px #111}
.aura-studio .sel-change{padding:0 16px;text-decoration:none}
.aura-studio .font-card:hover{border-color:#111}
.aura-studio .font-card[aria-checked='true']{border-color:#111;box-shadow:inset 0 0 0 1px #111}
.aura-studio .font-card span{color:var(--studio-muted)}
.aura-studio .ai-helper :is(textarea,.ai-history li){background:#fff;color:#111}
.aura-studio #guest-builder .preview-panel{background:#f1f0ec;border:0}
.aura-studio .preview-toolbar{color:var(--studio-muted)}
.aura-studio .preview-devices button{border:0;background:transparent;color:var(--studio-muted)}
.aura-studio .preview-devices button[aria-pressed='true']{background:#fff;color:#111;box-shadow:0 1px 2px #0002}
.aura-studio #guest-builder .preview-panel iframe{box-shadow:0 8px 32px #0000001f}
.aura-studio .mobile-workspace-tabs{background:#fff}
.aura-studio .mobile-workspace-tabs button{background:transparent;color:#111}
.aura-studio .mobile-workspace-tabs [aria-pressed='true']{background:#111;color:#fff}

/* 11. Quiet status: one muted line; drop duplicate and boxed notes */
#draft-recovery{display:none}
.aura-studio .tpl-note{padding:0;border:0;background:none;font-size:13px;color:var(--studio-muted)}
.aura-studio .tpl-note p{margin:0 0 6px}
.aura-studio .tpl-note-actions button{min-height:32px;padding:0 12px;font-size:13px}
.aura-studio .selected-template{display:grid;grid-template-columns:72px 1fr;align-items:start}
.aura-studio .selected-template>.sel-body{min-width:0}
.aura-studio #draft-status{color:var(--studio-muted)}
.aura-studio .form-note,.aura-studio .save-step .terms{color:var(--studio-muted)}

/* 12. Editor layout (desktop): slim left panel, preview takes the rest of the screen, full height. */
@media(min-width:901px){
 .aura-studio .aura-site-header .aura-site-header-inner{min-height:56px;padding:8px 24px}
 .aura-studio .aura-site-header .aura-site-account{min-height:36px;padding:6px 16px}
 .aura-studio #guest-builder{max-width:none;padding:0;column-gap:0;grid-template-columns:minmax(340px,380px) minmax(0,1fr);grid-template-rows:auto auto 1fr;min-height:calc(100dvh - 57px)}
 .aura-studio #guest-builder>:is(.introduction,.start-chooser),.aura-studio #guest-builder .editor-panel{padding-left:24px;padding-right:24px}
 .aura-studio #guest-builder>.introduction{padding-top:20px}
 .aura-studio .introduction>p,.aura-studio .builder-costs{display:none}
 .aura-studio .introduction h1{font-size:20px;margin:0}
 .aura-studio #guest-builder .preview-panel{grid-column:2;grid-row:1/span 3;position:sticky;top:57px;align-self:start;height:calc(100dvh - 57px);max-height:none;margin:0;padding:0;border-radius:0;display:grid;grid-template-columns:1fr auto;grid-template-rows:52px minmax(0,1fr);overflow:hidden;border-left:1px solid var(--studio-line)}
 .aura-studio #guest-builder .preview-toolbar{grid-column:1;grid-row:1;padding:0 20px;align-self:center;gap:16px}
 .aura-studio #guest-builder .preview-devices{grid-column:2;grid-row:1;margin:0 16px 0 0;align-self:center;justify-content:flex-end;pointer-events:auto}
 .aura-studio #guest-builder .preview-panel>:is(iframe,#empty-preview){grid-column:1/-1;grid-row:2}
 .aura-studio #guest-builder .preview-panel iframe{width:100%;height:100%;min-height:0;border-radius:0;box-shadow:none;justify-self:center;background:#fff}
 .aura-studio #guest-builder .preview-panel.phone iframe{width:390px;max-width:100%;height:calc(100% - 24px);margin-bottom:24px;border-radius:24px;box-shadow:0 8px 32px #0000002e}
}
.aura-studio .req-legend{display:none}

/* 13. Icon rail + drawer (desktop): one section at a time; click the active icon to close the drawer. */
.editor-rail{display:none}
@media(min-width:901px){
 .aura-studio #guest-builder{grid-template-columns:76px 340px minmax(0,1fr);transition:grid-template-columns .25s ease}
 .aura-studio #guest-builder[data-drawer=closed]{grid-template-columns:76px 0 minmax(0,1fr)}
 .aura-studio #guest-builder[data-drawer=closed]>:is(.introduction,.start-chooser),.aura-studio #guest-builder[data-drawer=closed] .editor-panel{visibility:hidden;overflow:hidden;padding-left:0;padding-right:0}
 .editor-rail{display:flex;flex-direction:column;gap:4px;grid-column:1;grid-row:1/span 3;position:sticky;top:57px;align-self:start;height:calc(100dvh - 57px);padding:12px 6px;border-right:1px solid var(--studio-line);background:#fff}
 .aura-studio .editor-rail button{display:grid;justify-items:center;gap:4px;width:100%;min-height:60px;padding:8px 2px;background:transparent;color:var(--studio-muted);border:0;border-radius:8px;font-size:12px;font-weight:600}
 .aura-studio .editor-rail button:hover:not(:disabled){background:var(--studio-soft);color:#111}
 .aura-studio .editor-rail button[aria-pressed=true]{background:#111;color:#fff}
 .aura-studio #guest-builder>:is(.introduction,.start-chooser),.aura-studio #guest-builder .editor-panel{grid-column:2}
 .aura-studio #guest-builder .preview-panel{grid-column:3}
 .aura-studio .introduction{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);padding:0}
 .aura-studio #guest-builder>.start-chooser{margin-top:20px}
 /* sections */
 #guest-builder:not([data-tab=ai]) #start-ai{display:none}
 #guest-builder:not([data-tab=template]) .selected-template{display:block;padding:0;border:0}
 #guest-builder:not([data-tab=template]) .selected-template>.sel-thumb,#guest-builder:not([data-tab=template]) .sel-body>:not(.tpl-note){display:none}
 #guest-builder:is([data-tab=template],[data-tab=ai]) #shop-form fieldset{display:none}
 #guest-builder[data-tab=shop] #shop-form fieldset:nth-of-type(2),#guest-builder[data-tab=shop] .look-fields{display:none}
 #guest-builder[data-tab=look] #shop-form fieldset:nth-of-type(2),#guest-builder[data-tab=look] #shop-form fieldset:first-of-type>:not(.look-fields){display:none}
 #guest-builder[data-tab=look] .look-fields{border-top:0}#guest-builder[data-tab=look] .look-fields>summary{display:none}
 #guest-builder[data-tab=products] #shop-form fieldset:first-of-type{display:none}
 .aura-studio .save-step{position:sticky;bottom:0;margin:0;padding:12px 0 16px;background:#fff}
 .aura-studio .save-step :is(.terms:not(#draft-status),.form-note){display:none}
.aura-studio .save-step #draft-status{display:block;margin:0 0 8px;font-size:12px;line-height:1.4}
 .look-fields .template-fallback{display:none}
}

/* 14. Floating pieces (desktop), same look as the dashboard rail: pill rail, drawer card, preview card on a dotted canvas. */
@media(min-width:901px){
 .aura-studio #guest-builder{height:calc(100dvh - 57px);min-height:0;padding:16px;column-gap:16px;grid-template-columns:72px 340px minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;background:#eef0ec radial-gradient(#14241c1a 1px,transparent 1.2px) 0 0/18px 18px}
 .aura-studio #guest-builder[data-drawer=closed]{grid-template-columns:72px 0 minmax(0,1fr)}
 .aura-studio .editor-rail{position:static;grid-column:1;grid-row:1;align-self:center;height:auto;gap:6px;padding:10px 8px;border:1px solid #14241c16;border-radius:36px;background:#fcfdfc;box-shadow:0 8px 24px #14241c14}
 .aura-studio .editor-rail button{width:54px;min-height:54px;padding:0;border-radius:20px;color:#56615a}
 .aura-studio .editor-rail button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .aura-studio .editor-rail button:hover:not(:disabled){background:#f3f5f2;color:#18201b}
 .aura-studio .editor-rail button[aria-pressed=true]{background:#a8481c;color:#fff7f2}
 .editor-drawer{grid-column:2;grid-row:1;min-height:0;overflow:auto;padding:20px;background:#fcfdfc;border:1px solid #14241c16;border-radius:28px;box-shadow:0 8px 24px #14241c14}
 .aura-studio #guest-builder[data-drawer=closed] .editor-drawer{display:none}
 .editor-drawer :is(.start-chooser,.editor-panel){padding:0!important;margin:0;grid-column:auto;visibility:visible!important}
 .aura-studio .editor-drawer .start-chooser{margin-bottom:8px}
 .aura-studio #guest-builder .preview-panel{grid-column:3;grid-row:1;position:relative;top:auto;height:auto;border:1px solid #14241c16;border-radius:28px;box-shadow:0 8px 24px #14241c14;background:#fcfdfc}
 .aura-studio #guest-builder .preview-panel iframe{background:#fcfdfc}
 .aura-studio .save-step{background:#fcfdfc;padding-bottom:0}
}

/* 15. Soft and round, like the dashboard: pills, big radii, no hard corners, no hairline boxes. */
.aura-studio button,.aura-studio .btn,.aura-studio .aura-site-header .aura-site-account{border-radius:999px}
.aura-studio :is(input,textarea,select):focus{background:#fff;border-color:#a8481c;box-shadow:0 0 0 3px #a8481c22}
.aura-studio .font-card{border-radius:20px;border:1px solid #14241c16;background:#fff}
.aura-studio .font-card[aria-checked='true']{border-color:#a8481c;box-shadow:0 0 0 2px #a8481c33}
.aura-studio .sel-thumb{border-radius:14px}
.aura-studio :is(button.secondary,.sel-change,.prompt-examples button){border-radius:999px;border-color:#14241c2b}
.aura-studio .form-actions #preview{min-height:50px}
.aura-studio .look-fields,.aura-studio .ai-helper{border-color:#14241c16}
.aura-studio .preview-devices{padding:4px;gap:2px;background:#f3f5f2;border-radius:16px}
.aura-studio .preview-devices button{border-radius:12px}
.aura-studio .preview-devices button[aria-pressed='true']{box-shadow:0 1px 3px #14241c26}
@media(min-width:901px){
 html[data-site-theme] .aura-studio .aura-site-header{background:#eef0ec;border-bottom:0}
 /* the long swap explanation stays for screen readers; sighted users get the undo button only */
 .aura-studio #swap-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .aura-studio .tpl-note-actions button{background:#f3f5f2;color:#18201b;border:0}
 .aura-studio #guest-builder .preview-toolbar{padding-left:24px}
 .aura-studio #guest-builder .preview-panel{overflow:hidden}
}
@media(min-width:901px){.aura-studio #guest-builder .preview-panel{align-self:stretch;height:100%;max-height:none}}
@media(min-width:901px){.aura-studio #guest-builder{height:calc(100dvh - 104px)}}

/* 16. One connected surface: rail + drawer share a single rounded shell; the active tab bleeds into the panel with curved joins. */
@media(min-width:901px){
 .aura-studio #guest-builder,.aura-studio #guest-builder[data-drawer=closed]{grid-template-columns:auto minmax(0,1fr)}
 .editor-shell{grid-column:1;grid-row:1;display:flex;align-self:start;max-height:100%;min-height:0;overflow:hidden;background:#fcfdfc;border:1px solid #14241c16;border-radius:30px;box-shadow:0 10px 30px #14241c1a}
 .aura-studio .editor-shell .editor-rail{position:static;flex:none;width:76px;height:auto;align-self:stretch;gap:10px;padding:18px 0 18px 10px;border:0;border-radius:0;background:#f0f2ee;box-shadow:none}
 .aura-studio .editor-rail button{position:relative;width:56px;min-height:56px;border-radius:20px;background:transparent;color:#56615a}
 .aura-studio .editor-rail button[aria-pressed=true]{width:66px;margin-right:0;border-radius:20px 0 0 20px;background:#fcfdfc;color:#a8481c;box-shadow:none}
 .aura-studio .editor-rail button[aria-pressed=true]::before,.aura-studio .editor-rail button[aria-pressed=true]::after{content:"";position:absolute;right:0;width:16px;height:16px;pointer-events:none}
 .aura-studio .editor-rail button[aria-pressed=true]::before{top:-16px;background:radial-gradient(circle at 0 0,transparent 16px,#fcfdfc 16.5px)}
 .aura-studio .editor-rail button[aria-pressed=true]::after{bottom:-16px;background:radial-gradient(circle at 0 100%,transparent 16px,#fcfdfc 16.5px)}
 .aura-studio .editor-rail button:hover:not(:disabled):not([aria-pressed=true]){background:#e4e8e2}
 .editor-shell .editor-drawer{grid-column:auto;flex:none;width:340px;min-height:0;overflow:auto;padding:22px 20px;background:transparent;border:0;border-radius:0;box-shadow:none}
 .aura-studio #guest-builder .preview-panel{grid-column:2}
 .aura-studio .save-step{background:#fcfdfc}
}
.aura-studio :is(#preview,#continue,#add-product,.form-actions button,.tpl-note-actions button,#ai-generate){border-radius:999px}

/* 17. Liquid pill (AuraDash.indicator, same as the dashboard menu), one white surface, equal heights, animated drawer. */
.editor-rail>.dw-ind{position:absolute;left:0;top:0;z-index:0;width:0;height:0;background:#a8481c;pointer-events:none;will-change:clip-path}
.editor-rail>.dw-ind.is-liquid{transform:none!important;border-radius:0}
.editor-rail.has-ind button[aria-pressed=true]{background:transparent!important}
.aura-studio .editor-rail button{position:relative;z-index:1}
.editor-error-dedupe{display:none}
.aura-studio .editor-panel:has(#error-summary:not([hidden])) #feedback{display:none}
@media(min-width:901px){
 .editor-shell{align-self:stretch;max-height:none;height:100%;transition:border-radius .3s}
 #guest-builder[data-drawer=closed] .editor-shell{align-self:center;height:auto;border-radius:36px}
 .aura-studio .editor-shell .editor-rail{background:#fcfdfc;padding:16px 10px;width:76px;position:relative;align-self:stretch;box-shadow:inset -1px 0 0 #14241c10}
 .aura-studio #guest-builder[data-drawer=closed] .editor-shell .editor-rail{box-shadow:none}
 .aura-studio .editor-rail button,.aura-studio .editor-rail button[aria-pressed=true]{width:56px;min-height:56px;border-radius:20px;margin:0}
 .aura-studio .editor-rail button[aria-pressed=true]{background:#a8481c;color:#fff7f2}
 .aura-studio .editor-rail button[aria-pressed=true]::before,.aura-studio .editor-rail button[aria-pressed=true]::after{display:none}
 .aura-studio .editor-rail button:hover:not(:disabled):not([aria-pressed=true]){background:#f3f5f2}
 .editor-shell .editor-drawer{overflow:auto;height:100%}
}
@media(prefers-reduced-motion:reduce){.editor-shell{transition:none}}

/* 18. The system stylesheet only makes #guest-builder a grid from 1200px; the editor layout needs it from 901px. */
@media(min-width:901px){
 .aura-studio #guest-builder{display:grid}
 .aura-studio #guest-builder>.workspace{display:contents}
}
@media(min-width:901px) and (max-width:1199px){
 .editor-shell .editor-drawer{width:300px}
 .aura-studio #guest-builder{padding:12px;column-gap:12px}
}

/* 19. Studio look (editor reference): flat grey canvas, white rounded app surface, orange accent, outlined pill buttons, uppercase actions. */
.aura-studio{--ed-accent:#f47a2e;--ed-accent-ink:#fff;--ed-line:#14141412}
.editor-rail>.dw-ind{background:var(--ed-accent)}
.aura-studio .editor-rail button[aria-pressed=true]{color:var(--ed-accent-ink);background:var(--ed-accent)}
.aura-studio :is(input,textarea,select):focus{border-color:var(--ed-accent);box-shadow:0 0 0 3px #f47a2e26}
.aura-studio .font-card[aria-checked='true']{border-color:var(--ed-accent);box-shadow:0 0 0 2px #f47a2e33}
.aura-studio :is(#preview,#continue,#ai-generate){background:var(--ed-accent);color:#fff;border:0;font-weight:700;letter-spacing:.05em;text-transform:uppercase;font-size:13px;box-shadow:0 6px 16px #f47a2e40}
.aura-studio :is(#preview,#continue,#ai-generate):hover:not(:disabled){background:#e86a1c}
.aura-studio .form-actions button:not(#preview),.aura-studio .sel-change{background:#fff;color:#18181b;border:1px solid #14141426;font-weight:700;letter-spacing:.05em;text-transform:uppercase;font-size:13px}
.aura-studio .preview-devices{background:#fff;border:1px solid var(--ed-line)}
.aura-studio .preview-devices button[aria-pressed='true']{background:#f2f2f0;color:#18181b;box-shadow:none}
@media(min-width:901px){
 .aura-studio #guest-builder,.aura-studio #guest-builder[data-drawer=closed]{background:#ebebea}
 html[data-site-theme] .aura-studio .aura-site-header{background:#ebebea}
 .editor-shell,.aura-studio #guest-builder .preview-panel{background:#fff;border-color:var(--ed-line);border-radius:32px;box-shadow:0 24px 60px #00000014,0 2px 6px #0000000a}
 .aura-studio .editor-shell .editor-rail{background:#fff;box-shadow:none}
 .aura-studio .editor-rail button:hover:not(:disabled):not([aria-pressed=true]){background:#f5f5f3}
 .aura-studio .save-step{background:#fff}
}
.aura-studio .editor-rail button{display:grid;place-items:center;align-content:center;line-height:0}
.aura-studio .editor-rail button svg{display:block;margin:0}

/* 20. Template list inside the drawer: search plus a scrolling two-column grid of soft pastel tiles (fitlo look); one click swaps the design. */
.tpl-picker{display:none}
#guest-builder[data-tab=template] .tpl-picker{display:block}
#guest-builder[data-tab=template] :is(.sel-sample,.sel-change,.sel-actions a:last-child){display:none}
.tpl-search{position:sticky;top:0;z-index:2;display:block;margin:0 0 12px;padding:4px 0 8px;background:#fff}
.tpl-search>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tpl-search input{width:100%}
.tpl-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.aura-studio .tpl-tile{display:grid;grid-template-rows:auto 1fr;align-content:start;gap:0;min-height:0;padding:0;overflow:hidden;text-align:left;cursor:pointer;border:0;border-radius:22px;background:color-mix(in srgb,var(--tc,#f3f1ee) 55%,#fff)!important;color:#18181b!important;box-shadow:0 0 0 1px #1418180d;transition:transform .25s,box-shadow .25s}
.aura-studio .tpl-tile[hidden]{display:none}
.tpl-tile img{display:block;width:100%;aspect-ratio:8/5;object-fit:cover;object-position:top}
.tpl-tile b{display:block;padding:10px 12px 0;font-size:13px;font-weight:600;line-height:1.2}
.aura-studio .tpl-tile small{display:block;padding:2px 12px 12px;color:#6b6b6b!important;font-size:12px;font-weight:400;line-height:1.3}
.aura-studio .tpl-tile:hover{transform:translateY(-3px);box-shadow:0 12px 28px #0000001a}
.aura-studio .tpl-tile[aria-checked=true]{box-shadow:0 0 0 3px var(--ed-accent,#f47a2e),0 10px 24px #f47a2e33}
.tpl-tile:focus-visible{outline:2px solid var(--ed-accent,#f47a2e);outline-offset:3px}
.tpl-empty{margin:24px 0;text-align:center;color:#6b6b6b}

/* Preview device frames: iPhone (Dynamic Island) and iPad bezels drawn on the iframe, island/camera on the panel. */
@media(min-width:901px){
 .aura-studio #guest-builder .preview-panel:is(.phone,.tablet) iframe{box-sizing:border-box;background:#fff;border:12px solid #0b0b0c;box-shadow:0 0 0 2px #3d3d40,0 24px 48px #00000040}
 .aura-studio #guest-builder .preview-panel.phone iframe{width:414px;border-radius:58px}
 .aura-studio #guest-builder .preview-panel.tablet iframe{width:min(820px,100%);border-width:16px;border-radius:36px;height:calc(100% - 24px);margin-bottom:24px}
 .aura-studio #guest-builder .preview-panel:is(.phone,.tablet)::after{content:"";position:absolute;left:50%;z-index:2;pointer-events:none;background:#000}
 .aura-studio #guest-builder .preview-panel.phone::after{top:calc(var(--dev-top,52px) + 22px);width:112px;height:32px;margin-left:-56px;border-radius:99px}
 .aura-studio #guest-builder .preview-panel.tablet::after{top:calc(var(--dev-top,52px) + 5px);width:8px;height:8px;margin-left:-4px;border-radius:50%;background:#1b2233}
}

/* 21. Tooltips, icon-only device switch, browser-frame dots (Squarespace demo frame). */
.ed-tip{position:fixed;z-index:200;max-width:220px;padding:6px 11px;border-radius:10px;background:#18181b;color:#fff;font:600 12px/1.3 inherit;pointer-events:none;box-shadow:0 8px 20px #00000033;animation:ed-tip-in .15s ease-out}
.ed-tip[hidden]{display:none}
@keyframes ed-tip-in{from{opacity:0;translate:0 3px}}
.aura-studio .preview-devices button{display:grid;place-items:center;width:40px;min-height:36px;padding:0}
.aura-studio .preview-devices .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media(min-width:901px){
 .aura-studio #guest-builder .preview-toolbar{display:flex;align-items:center;gap:8px}
 .aura-studio #guest-builder .preview-toolbar::before{content:"";flex:none;width:9px;height:9px;margin-right:34px;border-radius:50%;background:#dcdad4;box-shadow:15px 0 #dcdad4,30px 0 #dcdad4}
}
@media(prefers-reduced-motion:reduce){.ed-tip{animation:none}}

/* 22. iPhone frame, real proportions: 393x852 screen (iPhone 15 Pro class) in an even 11px black bezel, concentric corners, titanium rail, side buttons and home indicator. The Dynamic Island floats over the screen like the real one. --dev-top and --dev-h are the iframe's real box, set by guest-shop.js. */
@media(min-width:901px){
 .aura-studio #guest-builder .preview-panel.phone iframe{width:415px;max-width:100%;height:min(calc(100% - 28px),874px);margin:14px auto;border:11px solid #0a0a0b;border-radius:58px;box-shadow:0 0 0 1.5px #3a3a3d,0 0 0 4.5px #b6b4ae,0 0 0 5.5px #8d8b85,0 30px 56px #00000033,inset 0 0 0 1px #ffffff1f}
 .aura-studio #guest-builder .preview-panel.phone::after{top:calc(var(--dev-top,52px) + 20px);width:96px;height:28px;margin-left:-48px;border-radius:99px;background:#000;box-shadow:inset 0 0 0 1px #ffffff0d}
 .aura-studio #guest-builder .preview-panel.phone::before{content:"";position:absolute;left:50%;z-index:2;pointer-events:none;top:var(--dev-top,52px);height:var(--dev-h,874px);width:427px;margin-left:-213.5px;background:
  linear-gradient(#0a0a0b,#0a0a0b) 50% calc(100% - 20px)/134px 5px no-repeat,
  linear-gradient(#a9a7a1,#a9a7a1) 0 118px/3px 28px no-repeat,
  linear-gradient(#a9a7a1,#a9a7a1) 0 172px/3px 54px no-repeat,
  linear-gradient(#a9a7a1,#a9a7a1) 0 238px/3px 54px no-repeat,
  linear-gradient(#a9a7a1,#a9a7a1) 100% 190px/3px 86px no-repeat}
}

/* 23. Device switch matches the icon rail: soft rounded tiles, active one filled with the accent. Sized to sit inside the preview card's top band. */
.aura-studio #guest-builder .preview-devices{gap:4px;padding:4px;border-radius:16px;overflow:hidden;align-self:center;margin:0 14px 0 0}
@media(min-width:901px){.aura-studio #guest-builder .preview-toolbar{box-sizing:border-box;min-height:64px;padding-block:0}.aura-studio #guest-builder .preview-panel{grid-template-rows:64px auto}.aura-studio #guest-builder .preview-panel:not(.phone):not(.tablet) iframe{height:calc(100dvh - 210px)}}
.aura-studio #guest-builder .preview-devices button{width:38px;min-height:38px;border-radius:12px;color:#56615a;background:transparent;transition:background .2s,color .2s}
.aura-studio #guest-builder .preview-devices button svg{width:18px;height:18px}
.aura-studio #guest-builder .preview-devices button:hover:not([aria-pressed=true]){background:#f3f5f2;color:#18201b}
.aura-studio #guest-builder .preview-devices button[aria-pressed=true]{background:var(--ed-accent);color:var(--ed-accent-ink);box-shadow:none}
@media(prefers-reduced-motion:reduce){.aura-studio #guest-builder .preview-devices button{transition:none}}
/* Font cards preview their own faces; beats the !important body font in aura-brand-typography.css */
html[data-site-theme] body.aura-studio .font-card :is(strong,span){font-family:var(--ff,var(--aura-font-family-body))!important}
#guest-builder:not([data-tab=ai]) .chat-teaser{display:none}

.aura-studio .chat-teaser{position:relative;margin:14px 0 0;padding:16px;border:1px solid var(--studio-line);border-radius:16px;background:linear-gradient(135deg,#f6f4ff,#fff 60%);font-size:13px}
.aura-studio .chat-teaser strong{display:block;font-size:15px;padding-right:90px}
.aura-studio .chat-chip{position:absolute;right:12px;top:12px;padding:3px 10px;border-radius:999px;background:#1800E1;color:#fff;font-size:11px;font-weight:600}
.aura-studio .chat-demo{display:grid;gap:6px;margin:12px 0 8px}
.aura-studio .chat-demo span{max-width:82%;padding:8px 12px;border-radius:14px;line-height:1.4}
.aura-studio .chat-q{justify-self:end;background:#fff;border:1px solid var(--studio-line);border-bottom-right-radius:4px}
.aura-studio .chat-a{justify-self:start;background:#1800E1;color:#fff;border-bottom-left-radius:4px}
.aura-studio .chat-teaser p{margin:0;color:var(--studio-muted)}
/* AI helper on the light studio: the dark-theme cream text is unreadable on white */
html body.aura-studio .ai-helper{color:var(--studio-ink,#111)}
html body.aura-studio .ai-helper :is(.ai-title,label,.credit-line,.ai-actions,strong){color:var(--studio-ink,#111)}
html body.aura-studio .ai-helper :is(.terms,.ai-note,.ai-privacy,#ai-feedback,.credit-reset){color:#4b4f4a}
html body.aura-studio .ai-helper textarea{background:#fff;border-color:var(--studio-line);color:#111}
html body.aura-studio .ai-helper textarea::placeholder{color:#6b6f69}
html body.aura-studio .ai-helper :is(.ai-history li,.ai-credit-meter){background:#f6f6f4;border-color:var(--studio-line);color:#111}
.aura-studio .chat-teaser label{display:grid;gap:4px;margin-top:10px;font-size:13px;font-weight:600}
