/* Glass look for the Studio type chooser and the FAQ (replaces glass-controls-20261123.css at Jet's request, 24 Nov 2026).
   Same language as the header: frosted panels, a soft translucent pill that slides to the chosen item, no bevels. */
.studio-type-picker{margin:28px 0 24px;padding:18px;border:1px solid var(--sheet-edge);border-radius:24px;background:var(--sheet);box-shadow:0 18px 50px rgba(0,0,0,.18);-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%)}
.studio-type-picker .eyebrow{margin:0 0 12px}
.studio-type-tabs{--type-gap:6px;position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--type-gap);padding:6px;border-radius:20px;background:var(--field);border:1px solid var(--field-edge)}
.studio-type-tabs:before{content:"";position:absolute;z-index:-1;top:6px;bottom:6px;left:6px;width:calc((100% - 12px - 3*var(--type-gap))/4);border-radius:14px;background:var(--glass-front,rgba(255,255,255,.7));border:1px solid var(--sheet-edge);box-shadow:0 6px 18px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.35);transform:translateX(calc(var(--type-index,0)*(100% + var(--type-gap))));transition:transform .35s cubic-bezier(.2,.8,.2,1)}
html[data-theme=dark] .studio-type-tabs:before{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.18)}
.studio-type-tabs [role=tab]{min-width:0;min-height:64px;padding:10px 5px;display:grid;place-items:center;gap:5px;font-size:15px;font-weight:700;border:0;border-radius:14px;background:none;color:var(--muted);box-shadow:none}
.studio-type-tabs [role=tab][aria-selected=true]{color:var(--ink);background:none}
.studio-type-tabs [role=tab]:focus-visible{outline:3px solid #457bdf;outline-offset:2px}
.studio-format-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;min-width:0}
.studio-format-panel>p{grid-column:1/-1;margin:0}.studio-format-panel label{min-width:0;margin:0}.studio-format-panel input,.studio-format-panel select{min-width:0;width:100%}
.studio-format-panel:focus{outline:none}
.studio-format-panel input,.studio-format-panel select{background:var(--field);border:1px solid var(--field-edge);border-radius:14px;color:var(--ink);min-height:46px;padding:10px 12px}
.studio-selected{padding-block:32px 64px}.studio-selected>h2{font-size:1.35rem}
#studio-preview{min-width:0}#studio-preview .studio-out{overflow-wrap:anywhere}
#studio-format-status{min-height:1.5em}
/* FAQ as a frosted sheet */
.faq-section .faq-list{border:1px solid var(--sheet-edge);border-radius:24px;background:var(--sheet);padding:4px 22px;-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);box-shadow:0 18px 50px rgba(0,0,0,.16)}
.faq-section .faq-list details:last-child{border-bottom:0}
@media(max-width:720px){.studio-type-picker{padding:12px;border-radius:20px}.studio-type-tabs [role=tab]{font-size:14px;padding-inline:3px;min-height:60px}.studio-format-panel{grid-template-columns:1fr}.studio-selected{padding-block:24px 44px}}
@media(prefers-reduced-motion:reduce){.studio-type-tabs:before{transition:none!important}}
/* Category icons: side rail on every screen size, as approved by Jet (23 Nov); replaces the horizontal scrolling row. */
.workflows{grid-template-columns:44px minmax(0,1fr);column-gap:10px;align-items:start}
.workflows>.wf-main{grid-column:2;min-width:0}.workflows .wf-main>form{grid-column:1/-1}
.workflows .wf-cats{grid-column:1;grid-row:1/span 2;position:sticky;top:72px;flex-direction:column;flex-wrap:nowrap;gap:6px;padding:4px;border-radius:14px;width:max-content;max-width:none;overflow:visible}
.workflows .wf-cats [role=tab]{flex:0 0 auto;width:36px;height:36px;border-radius:10px}
@media(max-width:899px){.workflows.wrap{width:calc(100% - 20px)}}
@media(min-width:900px){.workflows{grid-template-columns:64px minmax(0,1fr);column-gap:28px}.workflows .wf-cats{top:96px;padding:8px;border-radius:20px}.workflows .wf-cats [role=tab]{width:52px;height:52px;border-radius:14px}}
/* Fix (Jet, 26 Nov): side cards no longer slide under or over the icon rail; the rail stays on top; no blue tap flash on phones. */
.workflows>.wf-main{overflow-x:clip;overflow-clip-margin:0}
.workflows .wf-cats{z-index:60;background:rgba(22,26,36,.82)}
html:not([data-theme=dark]) .workflows .wf-cats{background:rgba(255,255,255,.86)}
.cf,.cf *,.wf-cats [role=tab],.studio-type-tabs [role=tab],body>header a,body>header button,footer a,footer button,.primary,.ghost,.option{-webkit-tap-highlight-color:transparent}
/* Design Motion rules audit (Jet, 26 Nov 2026). */
/* Touch targets at least 44x44px (owning standard; DM-003, DM-020) */
.workflows .wf-cats [role=tab]{width:44px!important;height:44px!important}
@media(max-width:899px){.workflows{grid-template-columns:52px minmax(0,1fr)}}
body>header .head-btn,body>header .cart-btn,body>header .appearance,.cf-btn{width:44px!important;height:44px!important;min-height:44px}
.logo{min-height:44px;display:inline-flex;align-items:center}
.wf-head{min-height:44px;align-items:center}
.wf-info summary,details>summary{min-height:44px;display:flex;align-items:center}
.dialog-close{height:44px!important}
@media(max-width:640px){body>header .head-actions{gap:0!important}body>header .header-inner{padding:2px 2px 2px 8px!important;gap:0!important}body>header .logo img{width:36px;height:auto}}
/* Readable body text at least 16px (owning standard; DM-043) */
.wf-head span,.wf-count,.wf-gets,.chip span,.wf-info summary,.wf-info p,.wf-info strong,.cf-title,.place,.proof-quote,.proof-quote span,
.studio-format-panel label,.studio-format-panel .small,.lbl,.st-help,.st-actions .primary,.st-actions .ghost,.privacy-note,.request-note,.dialog-lead,
.gift-face small,.gift-rules,.small,small,.studio-type-tabs [role=tab],.studio-type-tabs [role=tab] span{font-size:1rem!important}
/* Placeholder text needs 4.5:1 contrast (DM-070) */
input::placeholder,textarea::placeholder{color:var(--muted)!important;opacity:1}
/* Keyboard focus must not hide behind the floating header (DM-046) */
html{scroll-padding-top:110px}
/* Entrances 200-300ms, short stagger; never delay use (DM-014, DM-021) */
.pd-dialog[open],.cart-panel:not([hidden]){animation-duration:.28s!important}
.pd-dialog[open] form>*,.pd-dialog[open] .gift-step:not([hidden])>*,.cart-panel:not([hidden])>*{animation-duration:.25s!important}
.pd-dialog[open] form>*:nth-child(2),.pd-dialog[open] .gift-step:not([hidden])>*:nth-child(2),.cart-panel:not([hidden])>*:nth-child(2){animation-delay:.04s!important}
.pd-dialog[open] form>*:nth-child(3),.pd-dialog[open] .gift-step:not([hidden])>*:nth-child(3),.cart-panel:not([hidden])>*:nth-child(3){animation-delay:.08s!important}
.pd-dialog[open] form>*:nth-child(n+4),.pd-dialog[open] .gift-step:not([hidden])>*:nth-child(n+4),.cart-panel:not([hidden])>*:nth-child(n+4){animation-delay:.12s!important}
/* Hover lift only where hover exists, so touch taps don't leave cards stuck raised (DM-006, DM-064) */
@media(hover:none){.primary:hover,.ghost:hover,.option:hover,.st-generate:hover,.gift-tile:hover .gift-face{transform:none!important;box-shadow:none}}
.chip span{min-height:44px;display:inline-flex;align-items:center}
.gift-pill span{min-height:44px;display:inline-flex;align-items:center;font-size:1rem!important}
.pd-dialog label,.result-back label,.cart-panel label,.studio-inputs label,.gift-step label{font-size:1rem!important}
.scope-switch span{min-height:44px;display:inline-flex;align-items:center}
.result-back :is(p,dt,dd,li,a,span,label,summary,small){font-size:max(1rem,1em)!important}
a.primary{min-height:44px;padding:10px 22px;box-sizing:border-box}
main a:not(p a):not(li a):not(dd a):not(td a):not(.logo){display:inline-flex;align-items:center;min-height:44px}
