/* Studio on tablets and desktops.
   Loaded with media="(min-width: 768px) and (min-height: 500px)", so phones
   (portrait and landscape) never read a rule in this file and keep the
   approved mobile layout exactly. Two tiers inside:
   - from 768px: navigation rail, wider pages, more grid columns;
   - from 1100px: two-pane layouts (canvas plus panel, image plus thread). */

:root.studio{--dk-rail:84px;--dk-gut:32px;--w-narrow:640px;--w-form:760px;--w-medium:960px;--w-wide:1280px}
/* Width tokens. Every page maps to one: form (760: edit profile, a post's
   detail column), medium (960: settings, notifications, comments, admin,
   new post, terms) or wide (1280/1440: explore, library, profiles, dex,
   help, guides). Below 1100 the reading pages use the 640 narrow column. */
@media (min-width:1800px){:root.studio{--w-wide:1440px}}
/* Small grey labels meet AA contrast on the larger screens. */
:root.studio,:root.studio .sa-force-dark{--sa-subtle:#8C9199;--sa-cap:#80858D}
:root.studio[data-theme="light"]{--sa-subtle:#696D74;--sa-cap:#6E7279}
@media (min-width:1100px){:root.studio{--dk-gut:40px}}

/* ---- Shell ------------------------------------------------------------ */
html.studio,html.studio body,:root.studio[data-theme="light"],:root.studio[data-theme="light"] body{background:var(--sa-bg)}
#studio-root .sa-page{max-width:none;margin:0;box-shadow:none}
#studio-root .tabbar,#studio-root .sa-acc .tabbar,#studio-root .sa-soc .tabbar,#studio-root .sa-com .tabbar{display:none!important}

/* Rail: the desktop form of the tab bar. Hidden on the landing page and sign in. */
#studio-root .sa-rail{position:fixed;inset-block:0;inset-inline-start:0;width:var(--dk-rail);z-index:40;display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 0 16px;background:var(--sa-bg);border-inline-end:1px solid var(--sa-s2)}
#studio-root:has(>[data-studio-screen="home"]:not([hidden]),>[data-studio-screen="signin"]:not([hidden]),>[data-studio-screen="signup"]:not([hidden])) .sa-rail{display:none}
#studio-root:has(>.sa-rail) .sa-page{margin-inline-start:var(--dk-rail)}
#studio-root:has(>.sa-rail) .sa-home,#studio-root:has(>.sa-rail) .sa-auth-page{margin-inline-start:0}
#studio-root .sa-rail-logo{width:40px;height:40px;border-radius:11px;border:0;padding:0;cursor:pointer;background:var(--sa-acc);display:flex;align-items:center;justify-content:center;margin-bottom:14px;flex-shrink:0}
#studio-root .sa-skip{position:absolute;inset-inline-start:8px;top:8px;z-index:60;padding:10px 14px;border-radius:10px;background:var(--sa-acc);color:var(--sa-ink);font:600 14px 'Space Grotesk',sans-serif;text-decoration:none;white-space:nowrap;transform:translateY(-200%)}
#studio-root .sa-skip:focus{transform:none}
#studio-root [data-studio-screen]:focus{outline:0}
#studio-root .sa-rail-logo .sa-logo{stroke:var(--sa-ink);width:28px;height:28px}
#studio-root .sa-rail-i{width:76px;min-height:60px;border:0;border-radius:14px;background:transparent;color:var(--sa-muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:500 11px/1.15 'Space Grotesk',sans-serif;padding:6px 0;cursor:pointer;flex-shrink:0;text-align:center;transition:background-color .12s,color .12s}
/* Labels never break inside a word: the longest (Einstellungen,
   Configurações) fit the 76px item; hyphenation is the last resort. */
#studio-root .sa-rail-i>span{max-width:76px;letter-spacing:-.015em;overflow-wrap:normal;word-break:normal;hyphens:auto;-webkit-hyphens:auto}
#studio-root .sa-rail-i:hover,#studio-root .sa-rail-ib:hover{color:var(--sa-text);background:var(--sa-s05)}
#studio-root .sa-rail svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#studio-root .sa-rail-gap{flex:1}
#studio-root .sa-rail-ib{width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--sa-dim);display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
#studio-root .sa-rail-sun{display:none}
:root.studio[data-theme="light"] #studio-root .sa-rail-sun{display:block}
:root.studio[data-theme="light"] #studio-root .sa-rail-moon{display:none}
/* The active section: its own screen and every screen inside it. */
#studio-root .sa-rail-i[aria-current="page"],
#studio-root:has(>:is([data-studio-screen="create"],[data-studio-screen="generating"],[data-studio-screen="result"],[data-studio-screen="unlock"],[data-studio-screen="build"],[data-studio-screen="frame3d"]):not([hidden])) .sa-rail .sa-rail-i[data-studio-tab="create"],
#studio-root:has(>:is([data-studio-screen="explore"],[data-studio-screen="post"],[data-studio-screen="comments"],[data-studio-screen="artist"],[data-studio-screen="terms"],[data-studio-screen="post-pick"],[data-studio-screen="post-write"],[data-studio-screen="dex"][data-own="false"]):not([hidden])) .sa-rail .sa-rail-i[data-studio-tab="explore"],
#studio-root:has(>[data-studio-screen="library"]:not([hidden])) .sa-rail .sa-rail-i[data-studio-tab="library"],
#studio-root:has(>:is([data-studio-screen="guides"],[data-studio-screen="guide"]):not([hidden])) .sa-rail .sa-rail-i[data-rail="guides"],
#studio-root:has(>:is([data-studio-screen="me"],[data-studio-screen="dex"]:not([data-own="false"]),[data-studio-screen="profile-edit"],[data-studio-screen="notifications"]):not([hidden])) .sa-rail .sa-rail-i[data-studio-tab="me"]{color:var(--sa-acc-tx);background:var(--sa-s1)}
#studio-root:has(>:is([data-studio-screen="settings"],[data-studio-screen="help"],[data-studio-screen="admin"],[data-studio-screen="admin-reports"]):not([hidden])) .sa-rail .sa-rail-i[data-rail="settings"]{color:var(--sa-acc-tx);background:var(--sa-s1)}


/* Toasts: bottom centre of the content area, clear of every app bar and tab. */
html.studio #toastContainer{top:auto;bottom:24px;inset-inline:calc(var(--dk-rail) + 24px) 24px;align-items:center}
html.studio #toastContainer .toast{max-width:420px;width:auto;min-width:280px}
html.studio #toastContainer .toast.hiding{transform:translateY(8px)}
html.studio:has(#studio-root>:is([data-studio-screen="home"],[data-studio-screen="signin"],[data-studio-screen="signup"]):not([hidden])) #toastContainer{inset-inline-start:24px}

/* Bottom sheets become dialogs, centred on the content area (beside the rail). */
#studio-root .sa-sheet-layer>.sheet,#studio-root .sa-acc-sheet .sheet{--dk-mid:calc(var(--dk-rail) + (100vw - var(--dk-rail)) / 2);top:auto;bottom:auto;left:var(--dk-mid);top:50%;right:auto;width:min(520px,calc(100vw - var(--dk-rail) - 48px));max-width:none;max-height:min(760px,calc(100vh - 48px));transform:translate(-50%,-50%);border-radius:24px;margin:0;padding-bottom:0;box-shadow:0 0 0 1px var(--sa-line0),0 30px 80px var(--sa-shade)}
html[dir=rtl] #studio-root .sa-sheet-layer>.sheet,html[dir=rtl] #studio-root .sa-acc-sheet .sheet{--dk-mid:calc((100vw - var(--dk-rail)) / 2)}
#studio-root:has(>:is([data-studio-screen="home"],[data-studio-screen="signin"],[data-studio-screen="signup"]):not([hidden])) :is(.sa-sheet-layer>.sheet,.sa-acc-sheet .sheet){--dk-mid:50vw}
#studio-root .sa-sheet-layer>.sheet .handle,#studio-root .sa-acc-sheet .sheet .handle{visibility:hidden;height:0;margin:8px auto 0}
/* Close buttons sit flush with the dialog edge: keep their focus ring inside. */
#studio-root :is(.sa-sheet-layer,.sa-acc-sheet) .sheet .ib:focus-visible{outline-offset:-2px}
/* Design menu: a compact action list headed by the design's name. */
#studio-root .sa-acc-sheet .sheet.sa-menu-sheet{width:min(380px,calc(100vw - var(--dk-rail) - 48px))}
#studio-root .sa-menu-sheet .sa-menu-grp{margin:6px 12px 12px}
#studio-root .sa-menu-sheet .sa-library-14{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#studio-root .sa-menu-sheet .li:hover{background:var(--sa-s15)}
/* Opened from a card's ⋯ handle on two-pane screens: a menu under the handle. */
#studio-root .sa-acc-sheet.is-anchored>.scrim{background:transparent}
#studio-root .sa-acc-sheet.is-anchored .sheet.sa-menu-sheet{top:var(--pop-top);bottom:auto;left:auto;right:auto;inset-inline-end:var(--pop-end);transform:none;width:260px;border-radius:14px;box-shadow:0 0 0 1px var(--sa-line),0 18px 48px var(--sa-shade)}
#studio-root .sa-acc-sheet.is-anchored.is-up .sheet.sa-menu-sheet{top:auto;bottom:var(--pop-bottom)}
#studio-root .sa-acc-sheet.is-anchored .sa-library-13{padding:12px 16px 2px;min-height:0}
#studio-root .sa-acc-sheet.is-anchored .sa-library-13 .ib{display:none}
#studio-root .sa-acc-sheet.is-anchored .sa-library-14{font-size:13px;font-weight:500;color:var(--sa-muted)}
#studio-root .sa-acc-sheet.is-anchored .sa-menu-grp{margin:6px}
#studio-root .sa-acc-sheet.is-anchored .sa-menu-grp .li{min-height:40px;height:40px;font-size:14px;border-radius:10px}
/* Website language: ten languages in two short columns, a footnote below. */
#studio-root .sa-acc-sheet.sa-langsheet .sheet{width:min(640px,calc(100vw - var(--dk-rail) - 48px))}
#studio-root .sa-langsheet .sa-lang-9{padding:0 16px 20px}
#studio-root .sa-langsheet [role="list"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,auto);grid-auto-flow:column;column-gap:12px}
#studio-root .sa-langsheet .lang:is(.sa-lang-11,.sa-lang-14,.sa-lang-15){border-bottom:1px solid var(--sa-line0)}
#studio-root .sa-langsheet .lang:nth-child(5n){border-bottom:0}
#studio-root .sa-langsheet .lang:hover:not(.sa-lang-11){background:var(--sa-s15);border-radius:12px}
#studio-root .sa-langsheet .sa-lang-16{margin-top:12px;padding:14px 4px 0;border-top:1px solid var(--sa-s2)}
/* Save design: the retention note is a quiet line, the action a footer. */
/* The 7-day note is a footnote beside Save, not a subtitle above the form. */
#studio-root .sa-acc .sa-library-16{background:none;box-shadow:none;padding:0;justify-content:flex-start;gap:6px;position:absolute;inset-inline-start:20px;bottom:34px;max-width:calc(100% - 200px);font-size:13px;color:var(--sa-muted)}
#studio-root .sa-acc .sa-library-16 .sa-library-17{font-size:13px}
#studio-root .sa-acc .sa-library-19{height:auto;padding:0;background:none;border-radius:0;font-size:13px;text-decoration:underline;text-underline-offset:3px}
#studio-root .sa-acc .sa-library-20{display:flex;justify-content:flex-end;padding:20px 16px 20px}
#studio-root .sa-acc .sa-library-21{width:auto;height:48px;padding:0 28px}
#studio-root .sa-sheet-actions{padding-bottom:20px}
#studio-root .sa-sheet-scrim{background:rgba(5,6,7,.66);opacity:1}

/* Full-screen layers (crop, thread colour) become dialogs over a dimmed app. */
#studio-root .sa-layer{background:rgba(5,6,7,.66);display:flex;align-items:flex-start;justify-content:center;padding:32px 24px;padding-inline-start:calc(var(--dk-rail) + 24px)}
#studio-root .sa-layer>.sa-page{margin:auto;width:min(560px,100%);min-height:0;border-radius:24px;overflow:hidden;box-shadow:0 0 0 1px var(--sa-line0),0 30px 80px rgba(0,0,0,.5)}
#studio-root .sa-crop>.sa-page{width:min(960px,100%);background:var(--sa-s1)}
#studio-root .sa-crop-page>.bar{background:var(--sa-s1);border-bottom:1px solid var(--sa-s2)}
#studio-root .sa-crop-page>.bar>.ib{display:none}
#studio-root .sa-crop-page>.bar::before{content:'';width:44px}
#studio-root .sa-crop-stage{height:min(720px,calc(100vh - 290px));min-height:300px;background:#000}
#studio-root .sa-crop-controls{padding:20px 24px 0}
#studio-root .sa-crop-actions{padding:20px 24px;margin-top:20px;border-top:1px solid var(--sa-s2);justify-content:flex-end}
#studio-root .sa-crop-actions :is(.sec,.pri){flex:none;height:48px;min-width:140px;padding:0 24px}
/* Thread colour: a compact dialog with a close button and a clear selection. */
#studio-root .sa-thread>.sa-page{width:min(460px,100%)}
#studio-root .sa-thread-page{padding-bottom:20px}
#studio-root .sa-thread-page>.bar{border-bottom:1px solid var(--sa-s2);margin-bottom:16px}
#studio-root .sa-thread-page>.bar>.ib{order:3}
#studio-root .sa-thread-page>.bar>.ib svg{display:none}
#studio-root .sa-thread-page>.bar>.ib::before{content:'';width:22px;height:22px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/22px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/22px no-repeat}
#studio-root .sa-thread-page>.bar>.sa-bar-spacer{order:-1;width:44px}
#studio-root .sa-thread-body{padding:0 20px}
#studio-root .sa-thread :is(.sa-seg-3,.sa-seg-6) button{height:48px}
#studio-root .sa-thread :is(.sa-seg-3,.sa-seg-6) button[aria-checked="true"],#studio-root .sa-thread .sa-palette[aria-checked="true"]{box-shadow:inset 0 0 0 1.5px var(--sa-acc)}
/* Two-pane workspace: Thread colour is a popover under its own row in the
   settings panel (opens upward when the row is low), with no dimmed page. */
#studio-root .sa-thread.is-anchored{background:transparent;display:block;padding:0;overflow:visible}
#studio-root .sa-thread.is-anchored>.sa-page{position:fixed;top:var(--pop-top);inset-inline-end:var(--pop-end);width:max(var(--pop-w),340px);margin:0;border-radius:16px;background:var(--sa-s1);box-shadow:0 0 0 1px var(--sa-line),0 18px 48px var(--sa-shade);max-height:calc(100vh - var(--pop-top) - 16px);overflow-y:auto}
#studio-root .sa-thread.is-anchored.is-up>.sa-page{top:auto;bottom:var(--pop-bottom);max-height:calc(100vh - var(--pop-bottom) - 16px)}
#studio-root .sa-thread.is-anchored .sa-thread-page>.bar{display:none}
#studio-root .sa-thread.is-anchored .sa-thread-page{padding:12px 0}
#studio-root .sa-thread.is-anchored .sa-thread-body{padding:0 12px}
#studio-root .sa-thread.is-anchored :is(.sa-seg-3,.sa-seg-6){background:var(--sa-bg)}
#studio-root .sa-thread.is-anchored :is(.sa-seg-3,.sa-seg-6) button{height:44px}

/* A content column: the page keeps its full width (so backgrounds and
   sticky bars still span it) and its contents sit in a centred column. */
#studio-root .sa-page{--dk-col:720px;padding-inline:max(var(--dk-gut),calc((100% - var(--dk-col)) / 2))}
#studio-root .sa-layer>.sa-page{padding-inline:0}
#studio-root .sa-page>.bar{height:64px}

/* ---- Home (landing) --------------------------------------------------- */
#studio-root .sa-home{--dk-col:1160px;padding-bottom:0}
#studio-root .sa-home-bar{height:72px;padding:0}
#studio-root .sa-home-bar .sa-brand{font-size:17px}
#studio-root .sa-home-actions{gap:10px}
#studio-root .sa-home-actions .sa-signin{padding:0 14px}
#studio-root .sa-home-hero{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:22px;padding:24px 0 0}
#studio-root .sa-home-hero h1{font-size:56px;max-width:640px;margin-top:12px}
#studio-root .sa-home-lede{font-size:18px;max-width:520px}
#studio-root .sa-home-ctas{flex-direction:row;justify-content:center}
#studio-root .sa-home-ctas .btn{width:auto;padding:0 26px;min-width:200px}
#studio-root .sa-home-disk{width:380px;height:380px;background:#f2f1ee;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06),inset 0 6px 24px rgba(0,0,0,.08),0 0 0 1px var(--sa-line),0 0 80px var(--sa-glow);animation:dk-disk-in .7s ease .5s both}
#studio-root .sa-home-disk canvas:first-child{mix-blend-mode:multiply}
@keyframes dk-disk-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){#studio-root .sa-home-disk{animation:none}}
/* Signed in: the header offers the way back into the app. */
#studio-root .sa-home-actions .sa-home-open{display:flex;width:auto;height:40px;padding:0 16px;font-size:14px}
#studio-root .sa-home-actions .sa-signin:not([hidden])~.sa-home-open{display:none}
#studio-root .sa-home-actions .sa-signin{margin-inline-end:-14px}
#studio-root .sa-home-how,#studio-root .sa-home-features,#studio-root .sa-home-faq{padding:72px 0 0}
/* Home algorithm showcase: a wide stage, the picker beside it from 1100px. */
#studio-root .sa-home-algos{padding:72px 0 0;align-items:center;text-align:center}
#studio-root .sa-home-algos .sa-eyebrow{font-size:13px;margin-bottom:14px}
#studio-root .sa-home-algos h2{font-size:44px;max-width:680px}
#studio-root .sa-algos-lede{font-size:17px;max-width:600px;margin-top:14px;text-wrap:balance}
#studio-root .sa-algos-stage{width:100%;margin-top:32px;padding:56px 40px}
#studio-root .sa-algos-disk{max-width:440px}
#studio-root .sa-algos-side{top:24px;min-width:36px;height:36px;font-size:15px;border-radius:12px}
#studio-root .sa-algos-side-a{left:24px}
#studio-root .sa-algos-side-b{right:24px}
#studio-root .sa-algos-src{left:24px;bottom:24px;flex-direction:column;align-items:flex-start;gap:10px}
#studio-root .sa-algos-src img{width:88px;height:88px}
#studio-root .sa-algos-play{right:24px;bottom:24px}
#studio-root .sa-algos-knob{width:48px;height:48px}
#studio-root .sa-algos-picks{width:100%;max-width:640px;margin-top:16px;text-align:start;display:grid;grid-template-columns:1fr 1fr}
#studio-root .sa-algos-pick-color{grid-column:1/-1}
#studio-root .sa-algos-foot{flex-direction:row;justify-content:center;gap:20px;margin-top:20px}
#studio-root .sa-algos-foot .btn{width:auto;padding:0 28px;height:52px}
@media (hover:hover){#studio-root .sa-algos-disk:hover .sa-algos-knob{scale:1.06}}
@media (min-width:1100px){
  #studio-root .sa-home-algos{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:center;gap:56px;text-align:start}
  #studio-root .sa-algos-copy{display:flex;flex-direction:column;align-items:flex-start;grid-column:2;grid-row:1}
  #studio-root .sa-algos-stage{grid-column:1;grid-row:1;margin:0;padding:72px 48px;border-radius:28px}
  #studio-root .sa-algos-disk{max-width:480px}
  #studio-root .sa-home-algos h2{font-size:48px}
  #studio-root .sa-algos-lede{text-wrap:pretty;max-width:520px}
  #studio-root .sa-algos-picks{margin-top:28px}
  #studio-root .sa-algos-foot{justify-content:flex-start;margin-top:24px}
}

#studio-root .sa-home-how .sa-eyebrow,#studio-root .sa-home-features .sa-eyebrow{margin-bottom:22px}
#studio-root .sa-home-how ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#studio-root .sa-home-how li{flex-direction:column;gap:18px;background:var(--sa-s1);border-radius:20px;padding:24px}
#studio-root .sa-home-how li>span{font-size:14px;color:var(--sa-acc-tx);width:auto;padding:0}
#studio-root .sa-home-how h3{font-size:19px}
#studio-root .sa-home-how p{font-size:15px;margin-top:6px}
#studio-root .sa-home-features ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#studio-root .sa-home-features li{padding:22px;min-height:0;gap:8px;border-radius:20px}
#studio-root .sa-home-features h3{font-size:17px}
#studio-root .sa-home-features p{font-size:14px}
#studio-root .sa-home-features .ic{width:22px;height:22px}
#studio-root .sa-home-faq{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
#studio-root .sa-home-faq summary{font-size:17px}
#studio-root .sa-home-faq details{padding:20px 0}
#studio-root .sa-home-faq details p{font-size:15px;max-width:720px}
#studio-root .sa-home-gift{grid-template-columns:auto minmax(0,1fr) auto;margin:56px 0 0;padding:20px 24px;max-width:820px}
#studio-root .sa-home-gift-btn{grid-column:auto;width:auto;padding:0 20px}
#studio-root .sa-home-ideas{padding:72px 0 0;max-width:820px}
#studio-root .sa-home-ideas .sa-eyebrow{font-size:13px;margin-bottom:8px}
#studio-root .sa-home-ideas ul{display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
#studio-root .sa-home-ideas li:nth-child(2){border-top:0}
#studio-root .sa-home-ideas a{font-size:17px}
#studio-root .sa-home-final{margin:72px 0 0;padding:36px 40px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 32px;background:radial-gradient(120% 160% at 100% 0%,var(--sa-acc-12),transparent 55%),var(--sa-s1);border-radius:24px}
#studio-root .sa-home-final h2{font-size:30px;grid-column:1}
#studio-root .sa-home-final p{font-size:16px;grid-column:1}
#studio-root .sa-home-final .btn{grid-column:2;grid-row:1 / span 2;width:auto;padding:0 32px}
#studio-root .sa-home-dev{margin:16px 0 0;padding:28px 40px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px}
#studio-root .sa-home-dev h3{font-size:22px}
#studio-root .sa-home-dev p{font-size:15px;max-width:640px}
#studio-root .sa-home-dev .btn{width:auto;padding:0 24px}
#studio-root .sa-home-actions .sa-home-api{display:flex;height:40px;padding:0 14px;color:var(--sa-muted);font-size:14px;font-weight:500}
#studio-root .sa-home-actions .sa-home-api:hover{color:var(--sa-text)}
#studio-root .sa-home-footer{flex-direction:row;justify-content:space-between;padding:32px 0 40px;margin-top:48px;border-top:1px solid var(--sa-s2)}
#studio-root .sa-home-footer nav{order:2}
#studio-root .sa-home-footer nav a{height:36px;color:var(--sa-muted);text-decoration:none}
#studio-root .sa-home-footer nav a:hover{color:var(--sa-text);text-decoration:underline}
#studio-root .sa-home-footer nav{margin-inline-end:-10px}
#studio-root .sa-home-footer>div{font-size:13px;color:var(--sa-muted)}
#studio-root .sa-home-footer>div::before{content:'\00A9  '}
@media (min-width:1100px){
  #studio-root .sa-home-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:". art" "h1 art" "lede art" "cta art" ". art";grid-template-rows:1fr auto auto auto 1fr;justify-items:start;text-align:start;column-gap:56px;row-gap:22px;min-height:min(640px,calc(100vh - 72px));padding:12px 0 24px}
  #studio-root .sa-home-hero h1{grid-area:h1;font-size:68px;max-width:none;margin:0}
  #studio-root .sa-home-lede{grid-area:lede;font-size:19px}
  #studio-root .sa-home-ctas{grid-area:cta;justify-content:flex-start;margin-top:10px}
  #studio-root .sa-home-showcase{grid-area:art;justify-self:end;align-self:center;padding:0;gap:20px}
  #studio-root .sa-home-disk{width:min(480px,40vw);height:min(480px,40vw)}
  #studio-root .sa-home-faq{grid-template-columns:minmax(0,1fr);max-width:820px}
  #studio-root .sa-home-faq .sa-eyebrow{font-size:13px;margin-bottom:8px}
  /* The first step cards peek into view on a 900px window. */
  #studio-root .sa-home-hero{min-height:min(600px,calc(100vh - 112px));padding-bottom:8px}
  #studio-root .sa-home-how{padding-top:56px}
}
@media (min-width:1800px){
  /* Large screens: a wider landing so it is not a small island in a void. */
  #studio-root .sa-home{--dk-col:1280px}
  #studio-root .sa-home-hero h1{font-size:clamp(56px,4.2vw,88px)}
  #studio-root .sa-home-lede{font-size:21px;max-width:600px}
  #studio-root .sa-home-hero{min-height:min(720px,calc(100vh - 112px))}
  #studio-root .sa-home-disk{width:560px;height:560px}
}

/* ---- Sign in and create account: art on the left, the form on the right */
#studio-root [data-studio-screen="signin"],#studio-root [data-studio-screen="signup"]{--dk-col:440px;margin-inline-start:0;justify-content:center}
#studio-root [data-studio-screen="signin"]>.bar,#studio-root [data-studio-screen="signup"]>.bar{height:64px;padding-inline:0}
#studio-root .sa-acc .sa-signin-1{inset-inline:0;height:420px}
#studio-root .sa-acc .sa-signin-19,#studio-root .sa-acc .sa-signup-17{margin-top:32px;padding-bottom:32px}
/* One column: brand row, heading, form and footer share the same edges. */
#studio-root .sa-acc :is(.sa-signin-2,.sa-signin-6,.sa-signin-10,.sa-signin-19,.sa-signup-2,.sa-signup-3,.sa-signup-8,.sa-signup-17){padding-inline:0}
#studio-root .sa-acc :is(.sa-signin-2,.sa-signup-2)>.ib{margin-inline-end:-10px}
#studio-root .sa-acc .sa-signup-2{justify-content:space-between}
#studio-root .sa-acc .sa-signup-2>.sa-signup-brand{display:flex;align-items:center;gap:10px}
#studio-root .sa-acc .sa-signup-3{flex-direction:column-reverse;text-align:center;gap:22px;padding-top:10px}
#studio-root .sa-acc .sa-signup-7{width:112px;height:112px}
#studio-root .sa-acc :is(.sa-signin-19>div:last-child,.sa-signup-20){text-wrap:balance}
#studio-root .sa-acc .sa-signup-20{font-size:13px;color:var(--sa-muted)}
#studio-root .sa-acc :is(.sa-signin-1,.sa-signup-1){display:none}
@media (min-width:1100px){
  #studio-root [data-studio-screen="signin"],#studio-root [data-studio-screen="signup"]{padding-inline:calc(50% + max(48px,(50% - 440px) / 2)) max(48px,(50% - 440px) / 2)}
  #studio-root [data-studio-screen="signin"]::before,#studio-root [data-studio-screen="signup"]::before{content:'';position:fixed;inset-block:0;inset-inline-start:0;width:50%;background:radial-gradient(circle at 50% 50%,var(--sa-acc-18),transparent 60%),var(--sa-s05);border-inline-end:1px solid var(--sa-s2)}
  #studio-root [data-studio-screen="signin"]::after,#studio-root [data-studio-screen="signup"]::after{content:'';position:fixed;inset-inline-start:25%;top:50%;width:min(36vw,calc(100vh - 160px),520px);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#fff url(/static/images/studio/showcase-toddler-900.webp) center / cover no-repeat;box-shadow:0 0 0 1px var(--sa-acc-35),0 0 0 12px var(--sa-acc-12),0 30px 90px var(--sa-shade)}
  html[dir=rtl] #studio-root [data-studio-screen="signin"]::after,html[dir=rtl] #studio-root [data-studio-screen="signup"]::after{transform:translate(50%,-50%)}
  /* The art panel already shows the piece; no second small copy. */
  #studio-root .sa-acc :is(.sa-signin-7,.sa-signup-7){display:none}
  #studio-root .sa-acc .sa-signup-3{padding-top:24px}
  /* Caption under the art, as on Home. */
  #studio-root .sa-acc .sa-auth-cap{display:block;position:fixed;z-index:1;inset-inline-start:25%;top:calc(50% + min(18vw,(100vh - 160px) / 2,260px) + 28px);transform:translateX(-50%);margin:0;white-space:nowrap;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--sa-muted)}
  html[dir=rtl] #studio-root .sa-acc .sa-auth-cap{transform:translateX(50%)}
  #studio-root .sa-acc .sa-auth-cap i{font-style:normal;color:var(--sa-line2)}
}
/* Short windows: the small art disk pushes Create account below the fold. */
@media (max-width:1099.98px) and (max-height:820px){
  #studio-root .sa-acc .sa-signup-7{display:none}
  #studio-root .sa-acc .sa-signup-3{padding-top:0}
}
#studio-root .sa-acc .sa-signin-19>div:last-child{font-size:13px;color:var(--sa-muted)}

/* ---- Create, Generate, Result, Unlock, Build ------------------------- */
#studio-root .sa-create,#studio-root .sa-gen,#studio-root .sa-result,#studio-root .sa-unlock,#studio-root .sa-build{--dk-col:640px}
#studio-root .sa-page>.steps{padding-inline:0}
/* The dimmed surround reaches every corner of a large stage (a 400px
   spread drew its own giant circle edge inside the stage at 1920). */
#studio-root .sa-stage-cut{box-shadow:0 0 0 3000px var(--sa-cut)}
#studio-root .sa-create-actions,#studio-root .sa-result-cta,#studio-root .sa-unlock-cta,#studio-root .sa-build-foot{padding-bottom:28px}

@media (min-width:900px){
  /* A workspace: the canvas on the left, the panel on the right. Landscape
     tablets (900 to 1099) get the same arrangement with a narrower panel. */
  #studio-root :is(.sa-create,.sa-result,.sa-unlock,.sa-build){--dk-panel:340px;display:grid;grid-template-columns:minmax(0,1fr) var(--dk-panel);grid-auto-rows:min-content;align-content:start;column-gap:0;padding-inline:0;min-height:100vh}
  #studio-root :is(.sa-create,.sa-result,.sa-build)>.bar{grid-column:1 / -1;padding-inline:20px 24px;border-bottom:1px solid var(--sa-s2)}
  #studio-root :is(.sa-create,.sa-result,.sa-build)>.steps{grid-column:1 / -1;padding:14px 24px 0;max-width:none}
  #studio-root :is(.sa-create,.sa-result,.sa-unlock,.sa-build)>:not(.bar,.steps,.sa-sheet-layer,.sa-create-setup,.sa-create-empty){grid-column:2}

  /* Create: the stage fills the left; every setting is in the right panel. */
  #studio-root .sa-create-setup,#studio-root .sa-create-empty{display:contents}
  #studio-root .sa-create-empty[hidden],#studio-root .sa-create-setup[hidden]{display:none!important}
  #studio-root .sa-stage-wrap,#studio-root .sa-drop{grid-column:1;grid-row:3 / span 20;padding:24px 24px 32px;align-self:stretch}
  #studio-root .sa-drop{margin:24px 24px 32px;min-height:calc(100vh - 160px);gap:18px}
  #studio-root .sa-drop h2{font-size:26px}
  #studio-root .sa-drop p{font-size:15px;max-width:340px}
  #studio-root .sa-drop-icon{width:88px;height:88px}
  #studio-root .sa-stage{height:calc(100vh - 162px);min-height:460px;border-radius:24px}
  #studio-root .sa-stage-tools{bottom:16px}
  #studio-root .sa-create .sa-shape,#studio-root .sa-create .sa-tool-panel,#studio-root .sa-create .sa-dock-wrap,#studio-root .sa-create .sa-create-actions{display:none!important}
  #studio-root .sa-restore-card{grid-column:2;grid-row:4;margin:0;margin-inline-end:24px}
  /* The first-pattern offer floats at the top of the stage, over the drop area. */
  #studio-root .sa-create>.sa-offer-bar{grid-column:1;grid-row:3;align-self:start;justify-self:center;position:relative;z-index:2;margin:40px 40px 0;max-width:560px}
  #studio-root .sa-create [data-studio-sheet="settings"],#studio-root .sa-create [data-studio-sheet="settings"][hidden]{display:block!important;position:sticky;top:0;inset:auto;grid-column:2;grid-row:3;z-index:1;overflow:visible;padding:24px 0 16px;padding-inline-end:24px;align-self:start}
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-sheet-scrim,#studio-root .sa-create [data-studio-sheet="settings"] .handle,#studio-root .sa-create [data-studio-sheet="settings"] .sa-sheet-head .ib{display:none}
  #studio-root .sa-create [data-studio-sheet="settings"]>.sheet{position:static;transform:none;width:auto;max-height:calc(100vh - 146px);border-radius:20px;box-shadow:inset 0 0 0 1px var(--sa-line0);padding:8px 0 0}
  /* When the window is short the settings scroll: a thin scrollbar and a fade say so. */
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{scrollbar-width:thin;scrollbar-color:var(--sa-line2) transparent;padding-bottom:20px}
  /* The bottom fade shows only while there is more to scroll to (a
     scroll-driven animation is inactive when the panel does not scroll). */
  /* A header action with nothing to act on (no saved session) steps aside. */
  #studio-root .sa-create>.bar>.ib:disabled{visibility:hidden}
  #studio-root .sa-create .sa-sheet-actions{border-top:1px solid var(--sa-s2)}
  /* With no photo yet, Generate reads as unavailable. */
  #studio-root .sa-create:has(>.sa-create-empty:not([hidden])) .sa-sheet-actions .pri{background:var(--sa-s2);color:var(--sa-dim);box-shadow:none;cursor:not-allowed}
  /* Header actions carry their names on wide screens. */
  #studio-root .sa-create>.bar>.ib{width:auto;gap:8px;padding:0 14px 0 10px;border-radius:12px;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-soft)}
  #studio-root .sa-create>.bar>.ib::after{content:attr(aria-label)}
  #studio-root .sa-create>.bar>.ib:hover{background:var(--sa-s1);color:var(--sa-text)}
  #studio-root .sa-create .sa-sheet-head{padding:10px 16px 2px}
  #studio-root .sa-create .sa-sheet-head h2{font-size:18px}
  #studio-root .sa-create .sa-sheet-actions{padding:18px 16px 16px}

  /* Generating: the same full-width header and stepper as Create and Result,
     so nothing jumps between the three steps. The drawing grows; the
     percentage, numbers and the note sit beside it as one block. */
  #studio-root .sa-gen{display:grid;grid-template-columns:minmax(0,1fr) auto 320px minmax(0,1fr);grid-template-rows:auto auto minmax(24px,1fr) auto auto auto minmax(24px,1fr);padding-inline:0;min-height:100vh}
  #studio-root .sa-gen>.bar{grid-column:1 / -1;grid-row:1;padding-inline:20px 24px;border-bottom:1px solid var(--sa-s2)}
  #studio-root .sa-gen>.steps{grid-column:1 / -1;grid-row:2;padding:14px 24px 0;max-width:none}
  #studio-root .sa-gen-main{display:contents}
  #studio-root .sa-gen-ring{grid-column:2;grid-row:3 / 8;align-self:center;zoom:1.55;margin-inline-end:calc(72px / 1.55)}
  #studio-root .sa-gen-pct{grid-column:3;grid-row:4;display:flex;flex-direction:column;gap:20px;align-items:flex-start;text-align:start;width:320px}
  #studio-root .sa-gen-pct>.mono{font-size:72px}
  #studio-root .sa-gen-stats{grid-column:3;grid-row:5;width:320px;margin-top:28px}
  #studio-root .sa-gen-note{grid-column:3;grid-row:6;padding:0;margin-top:16px;text-align:start;font-size:13px}
  @media (max-height:700px){#studio-root .sa-gen-ring{zoom:1.2;margin-inline-end:calc(56px / 1.2)}}

  /* Result */
  #studio-root .sa-result-stage{grid-column:1!important;grid-row:3 / span 20;padding:28px 32px 40px;justify-content:center;position:sticky;top:0;min-height:calc(100vh - 106px)}
  #studio-root .sa-result-bar{position:relative}
  #studio-root .sa-result-tabs{position:absolute;left:calc((100% - var(--dk-panel)) / 2);transform:translateX(-50%);width:330px}
  #studio-root .sa-result-bar>.ib:last-child{margin-inline-start:auto}
  #studio-root .sa-algo-row{margin:28px 0 0;margin-inline-end:24px;justify-content:stretch}
  #studio-root .sa-algo-seg{width:100%}
  #studio-root .sa-algo-row.is-letters{padding:0}
  #studio-root .sa-algo-row.is-letters .sa-algo-seg{max-width:none}
  #studio-root .sa-thread-card{margin:28px 0 0;margin-inline-end:24px}
  #studio-root .sa-algo-row:not([hidden])+.sa-thread-card{margin-top:14px}
  #studio-root .sa-result-acts{padding:20px 0 0;padding-inline-end:24px}
  #studio-root .sa-result-cta{padding:20px 0 28px;padding-inline-end:24px;margin-top:0}
  /* The panel sits centred against the canvas instead of hanging from the top. */
  #studio-root .sa-result{grid-template-rows:auto auto minmax(0,1fr) auto auto auto auto minmax(0,1fr)}
  #studio-root .sa-result-stage{grid-row:3 / 9!important}
  #studio-root .sa-result>.sa-algo-row{grid-row:4}
  #studio-root .sa-result>.sa-thread-card{grid-row:5}
  #studio-root .sa-result>.sa-result-acts{grid-row:6}
  #studio-root .sa-result>.sa-result-cta{grid-row:7}
  /* Secondary actions read as a quiet toolbar, not four equal call-outs. */
  #studio-root .sa-result-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #studio-root .sa-act{width:auto;flex-direction:row;justify-content:flex-start;gap:10px;height:44px;padding:0 12px 0 6px;border-radius:12px;background:var(--sa-s1);box-shadow:inset 0 0 0 1px var(--sa-line0);font-size:14px;font-weight:500;color:var(--sa-text);transition:background-color .12s}
  #studio-root .sa-act:hover{background:var(--sa-s2)}
  #studio-root .sa-act span.c{width:32px;height:32px;background:transparent}
  #studio-root .sa-act svg{width:19px;height:19px}
  /* The meta chip sits clear below the canvas ring, never on its edge. */
  #studio-root .sa-result-chip{bottom:-50px}
  #studio-root .sa-result-stage{padding-bottom:72px}

  /* Unlock: the finished piece glows on the left, plans on the right. */
  #studio-root .sa-unlock{padding-top:64px;grid-template-rows:minmax(24px,1fr) auto auto auto auto minmax(24px,1fr)}
  #studio-root .sa-unlock-hero{grid-column:1!important;grid-row:1 / -1;height:auto;min-height:calc(100vh - 64px);position:sticky;top:64px;background:radial-gradient(circle at 50% 52%,var(--sa-warm3) 0%,var(--sa-warm2) 30%,var(--sa-bg) 62%)}
  /* The same 64px app bar as Result and Build, across the whole screen. */
  #studio-root .sa-unlock-hero .bar{position:fixed;top:0;inset-inline:var(--dk-rail) 0;height:64px;padding-inline:20px 24px;background:var(--sa-bg);border-bottom:1px solid var(--sa-s2);z-index:5}
  /* The same three-step stepper as Create, Generating and Result. */
  #studio-root .sa-unlock-step{display:none}
  #studio-root .sa-unlock .sa-unlock-steps{display:flex;position:fixed;top:64px;inset-inline:var(--dk-rail) 0;z-index:5;margin:0;padding:14px 24px 10px;background:var(--sa-bg)}
  #studio-root .sa-unlock{padding-top:110px}
  #studio-root .sa-unlock-hero{top:110px;min-height:calc(100vh - 110px)}
  /* A quieter halo: the piece, not the glow, is the hero. */
  #studio-root .sa-unlock-art{box-shadow:0 0 0 6px var(--sa-acc-12),0 0 0 1px var(--sa-acc-35),0 24px 60px var(--sa-shade)}
  #studio-root .sa-unlock>.sa-unlock-head{grid-row:2}
  #studio-root .sa-unlock>.sa-unlock-seq{grid-row:3}
  #studio-root .sa-unlock>.sa-unlock-plans{grid-row:4}
  #studio-root .sa-unlock>.sa-unlock-cta{grid-row:5;padding-bottom:0}
  #studio-root .sa-unlock-foot .btn{color:var(--sa-acc-tx);text-decoration:underline;text-decoration-color:var(--sa-acc-35);text-underline-offset:3px}
  #studio-root .sa-unlock-foot .btn:hover{text-decoration-color:currentColor}
  #studio-root .sa-unlock-art{top:50%;left:50%;width:min(680px,calc(100vh - 200px),calc(100vw - var(--dk-rail) - var(--dk-panel) - 128px));height:auto;aspect-ratio:1;margin:0;transform:translate(-50%,-50%)}
  #studio-root .sa-unlock-art.is-rect{aspect-ratio:auto}
  #studio-root .sa-unlock-head{text-align:start;padding:0;padding-inline:0 24px}
  #studio-root .sa-unlock-head h1{font-size:36px}
  #studio-root .sa-unlock-seq,#studio-root .sa-unlock-plans,#studio-root .sa-unlock-cta{margin-inline:0 24px;padding-inline:0}
  #studio-root .sa-unlock-seq{margin-top:20px}
  #studio-root .sa-unlock-cta{margin-top:20px}

  /* Build: a big board on the left; the call-outs and voice on the right. */
  #studio-root .sa-build{grid-template-rows:auto minmax(16px,1fr) auto auto auto auto minmax(16px,1fr)}
  #studio-root .sa-build-stage{grid-column:1!important;grid-row:2 / 8;align-items:center;padding:24px 32px;min-height:calc(100vh - 64px);position:sticky;top:0}
  #studio-root .sa-build>.sa-build-progress{grid-row:3}
  #studio-root .sa-build>.sa-build-nails{grid-row:4}
  #studio-root .sa-build>.sa-build-next{grid-row:5}
  #studio-root .sa-build>.sa-build-foot{grid-row:6}
  #studio-root .sa-build-progress .fill{min-width:6px}
  #studio-root .sa-build>.bar>.ib[data-studio-action="downloads"]{width:auto;gap:8px;padding:0 14px 0 10px;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-soft)}
  #studio-root .sa-build>.bar>.ib[data-studio-action="downloads"]::after{content:attr(title)}
  #studio-root .sa-build-board{zoom:1.9}
  @media (max-height:820px){#studio-root .sa-build-board{zoom:1.6}}
  @media (max-height:680px){#studio-root .sa-build-board{zoom:1.3}}
  #studio-root .sa-build-progress{padding:0;padding-inline-end:24px}
  #studio-root .sa-build-nails{margin:32px 0 0;margin-inline-end:24px}
  #studio-root .sa-build-to-num{font-size:96px}
  #studio-root .sa-build-from-num{font-size:36px}
  #studio-root .sa-build-next{padding:24px 0 0;padding-inline-end:24px}
  #studio-root .sa-build-foot{padding:28px 0;padding-inline-end:24px;margin-top:0}
}

/* Landscape tablets and short laptop windows: the settings panel tightens
   so every control (down to Reduce diamond pattern) fits without scrolling
   at 768px tall; shorter windows scroll with the fade as the cue. */
@media (min-width:900px) and (max-height:940px){
  #studio-root .sa-create [data-studio-sheet="settings"]{padding-top:16px}
  #studio-root .sa-create [data-studio-sheet="settings"]>.sheet{max-height:calc(100vh - 136px);padding-top:4px}
  #studio-root .sa-create .sa-sheet-head{padding:8px 16px 0}
  #studio-root .sa-create .sa-sheet-head h2{font-size:17px}
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{gap:8px;padding-top:8px;padding-bottom:10px}
  #studio-root .sa-create .sa-settings-body>.seg{height:40px}
  #studio-root .sa-create .sa-setting{gap:2px}
  #studio-root .sa-create .sa-setting-name{font-size:14px}
  #studio-root .sa-create .vchip{height:30px;font-size:14px;border-radius:8px}
  #studio-root .sa-create .sa-color-row{min-height:46px}
  #studio-root .sa-create .sa-toggle-row{padding:8px 14px}
  #studio-root .sa-create .sa-sheet-actions{padding:14px 16px 14px}
  #studio-root .sa-create .sa-sheet-actions :is(.sec,.pri){height:48px}
  #studio-root .sa-create .sa-stage-wrap,#studio-root .sa-create .sa-drop{padding-top:16px}
  #studio-root .sa-create .sa-drop{margin-top:16px}
}

/* Portrait tablets (768 to 899): one column, but sized for the screen.
   The photo stage and the result grow with the window, every setting sits
   in view under the photo, and the main action stays pinned to the bottom. */
@media (max-width:899px){
  #studio-root :is(.sa-create,.sa-gen,.sa-result,.sa-unlock,.sa-build){--dk-col:680px}
  #studio-root .sa-create .sa-drop{flex:none;height:min(44vh,440px);min-height:300px}
  #studio-root .sa-create .sa-stage-wrap{padding:6px 0 0}
  #studio-root .sa-create .sa-stage{height:min(50vh,560px);min-height:400px}
  #studio-root .sa-create .sa-shape,#studio-root .sa-create .sa-tool-panel,#studio-root .sa-create .sa-dock-wrap,#studio-root .sa-create .sa-create-actions{display:none!important}
  #studio-root .sa-create .sa-restore-card{margin-top:16px}
  #studio-root .sa-create [data-studio-sheet="settings"],#studio-root .sa-create [data-studio-sheet="settings"][hidden]{display:block!important;position:static;inset:auto;z-index:auto;overflow:visible;margin-top:20px;padding-bottom:32px}
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-sheet-scrim,#studio-root .sa-create [data-studio-sheet="settings"] .handle,#studio-root .sa-create [data-studio-sheet="settings"] .sa-sheet-head .ib{display:none}
  #studio-root .sa-create [data-studio-sheet="settings"]>.sheet{position:static;transform:none;left:auto;top:auto;width:auto;max-width:none;max-height:none;border-radius:20px;box-shadow:inset 0 0 0 1px var(--sa-line0);padding:8px 0 0}
  #studio-root .sa-create .sa-sheet-head{padding:10px 20px 2px}
  #studio-root .sa-create .sa-sheet-head h2{font-size:18px}
  #studio-root .sa-create .sa-settings-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px;padding:12px 20px 0;overflow:visible}
  #studio-root .sa-create .sa-settings-body>:is(.seg,.sa-settings-group){grid-column:1 / -1}
  #studio-root .sa-create .sa-sheet-actions{padding:20px}
  /* Portrait tablets: the settings run below the photo, so Generate stays pinned to the
     bottom of the screen until the end of the card scrolls into view (J, Nov 21). */
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-sheet-actions{position:sticky;bottom:0;z-index:2;background:var(--sa-s1);border-radius:0 0 20px 20px;box-shadow:0 -1px 0 var(--sa-s2)}

  #studio-root .sa-result-stage{padding:16px 0 4px}
  #studio-root .sa-result .sa-thread-card{margin-inline:0}
  #studio-root .sa-result-acts{padding-inline:0}
  #studio-root .sa-result-cta{position:sticky;bottom:0;z-index:2;margin-top:8px;padding:20px 0 24px;background:linear-gradient(to bottom,transparent,var(--sa-bg) 24px)}
  #studio-root .sa-build-foot{position:sticky;bottom:0;z-index:2;background:linear-gradient(to bottom,transparent,var(--sa-bg) 24px);padding-top:20px}
  #studio-root .sa-unlock-cta{position:sticky;bottom:0;z-index:2;background:linear-gradient(to bottom,transparent,var(--sa-bg) 24px);padding-top:20px}
  /* Build: the board grows with the window so the controls follow it
     instead of leaving a dead band above the pinned footer. */
  #studio-root .sa-build-stage{padding-top:16px}
}
@media (max-width:899px) and (min-height:900px){#studio-root .sa-build-board{zoom:1.4}}
@media (max-width:899px) and (min-height:1100px){#studio-root .sa-build-board{zoom:1.75}}
@media (max-width:899px) and (min-height:1150px){#studio-root .sa-build-board{zoom:2}}

/* Large screens: Result and Build keep the canvas and its panel together
   as one centred workspace (the header and stepper still span the window),
   instead of drifting 375px apart. */
@media (min-width:1600px){
  #studio-root :is(.sa-result,.sa-build){grid-template-columns:minmax(0,1fr) minmax(0,960px) var(--dk-panel) minmax(0,1fr)}
  #studio-root :is(.sa-result,.sa-build)>:not(.bar,.steps,.sa-sheet-layer){grid-column:3}
  #studio-root :is(.sa-result-stage,.sa-build-stage){grid-column:2!important}
  #studio-root :is(.sa-result,.sa-build)>:is(.sa-algo-row,.sa-thread-card,.sa-result-acts,.sa-result-cta,.sa-build-progress,.sa-build-nails,.sa-build-next,.sa-build-foot){margin-inline-end:0;padding-inline-end:0}
  /* Unlock follows the same centred workspace, with a larger piece. */
  #studio-root .sa-unlock{grid-template-columns:minmax(0,1fr) minmax(0,960px) var(--dk-panel) minmax(0,1fr)}
  #studio-root .sa-unlock>:not(.bar,.steps,.sa-sheet-layer){grid-column:3}
  #studio-root .sa-unlock>.sa-unlock-hero{grid-column:2!important}
  #studio-root .sa-unlock>.sa-unlock-head{padding-inline-end:0}
  #studio-root .sa-unlock>:is(.sa-unlock-seq,.sa-unlock-plans,.sa-unlock-cta){margin-inline-end:0}

}
/* One panel track for every step of the flow, so the right column never
   jumps or resizes between Create, Result, Unlock and Build. */
#studio-root :is(.sa-create,.sa-result,.sa-unlock,.sa-build){--dk-panel:340px}
@media (min-width:1100px){
  #studio-root :is(.sa-create,.sa-result,.sa-unlock,.sa-build){--dk-panel:400px}
}

/* ---- Explore: a gallery ------------------------------------------------ */
#studio-root .sa-explore{--dk-col:var(--w-wide);padding-bottom:48px}
#studio-root .sa-com .sa-explore-1{padding:16px 0 0;height:88px}
#studio-root .sa-com .sa-explore-2{font-size:32px;font-weight:600;letter-spacing:-.01em}
#studio-root .sa-com .sa-explore-3{gap:4px}
#studio-root .sa-com .sa-explore-5{margin-inline-start:8px;margin-inline-end:0}
#studio-root .sa-explore>.tabs{padding-inline:0;position:sticky;top:0;z-index:5;background:var(--sa-bg)}
#studio-root .sa-com .sa-explore-7{padding-inline:0;padding-top:28px}
#studio-root .sa-com .sa-explore-10{padding-inline:0}
#studio-root .sa-com .sa-explore-18{display:none}
#studio-root .sa-com .sa-ex-search{padding-inline:0;max-width:520px}
#studio-root .sa-com .sa-ex-search .ic{inset-inline-start:14px}
/* Featured: wide cards, never a lone thumbnail in an empty strip. */
#studio-root .sa-com .sa-explore-10{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px;overflow:visible;padding-bottom:8px}
#studio-root .sa-com button.feat{width:auto;display:grid;grid-template-columns:132px minmax(0,1fr);grid-template-rows:1fr auto auto 1fr;column-gap:20px;align-items:center;text-align:start;padding:12px;border:0;border-radius:20px;background:var(--sa-s1);box-shadow:inset 0 0 0 1px var(--sa-line);color:var(--sa-text);font-family:inherit;cursor:pointer;transition:background-color .12s,box-shadow .12s}
#studio-root .sa-com button.feat:hover{background:var(--sa-s2);box-shadow:inset 0 0 0 1px var(--sa-line2)}
#studio-root .sa-com .feat .fi{grid-row:1 / -1;width:132px;height:132px;border-radius:14px}
#studio-root .sa-com .feat .fn{grid-column:2;grid-row:2;font-size:17px;margin:0}
#studio-root .sa-com .feat .fa{grid-column:2;grid-row:3;margin-top:6px;font-size:14px}
#studio-root .sa-com .feat .fa .av{width:22px;height:22px;font-size:10px}
#studio-root .sa-com .feat .sa-explore-12{width:112px;height:112px}
/* Gallery cards: the piece, its title, the maker and the counts. */
#studio-root [data-studio-explore-feed]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px 20px;align-items:start;padding-top:24px}
#studio-root [data-studio-explore-feed] .post{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"media media" "text text" "who acts";align-items:center;border:0;border-radius:20px;background:var(--sa-s1);padding:0 0 10px;overflow:hidden;box-shadow:inset 0 0 0 1px var(--sa-line0);transition:transform .15s,box-shadow .15s}
#studio-root [data-studio-explore-feed] .post:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--sa-line2),0 14px 32px var(--sa-shade)}
#studio-root [data-studio-explore-feed] [data-studio-post-media]{grid-area:media;cursor:pointer}
#studio-root [data-studio-explore-feed] .sa-explore-22{height:auto;aspect-ratio:1}
#studio-root [data-studio-explore-feed] .sa-explore-23{width:82%;max-width:none;height:auto;aspect-ratio:1}
#studio-root [data-studio-explore-feed] :is(.sa-explore-33,.sa-explore-37){width:100%;height:auto;aspect-ratio:1;object-fit:contain}
#studio-root [data-studio-explore-feed] .ptxt{grid-area:text;padding:14px 16px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
#studio-root [data-studio-explore-feed] .ptxt [data-title]{font-size:16px}
#studio-root [data-studio-explore-feed] .ptxt [data-desc]{display:none}
#studio-root [data-studio-explore-feed] .ph-row{grid-area:who;padding:6px 0 0 16px;gap:8px;min-width:0}
#studio-root [data-studio-explore-feed] .ph-row>.av{width:24px;height:24px;font-size:10px}
#studio-root [data-studio-explore-feed] .ph-row .nm{font-size:13px;font-weight:500;color:var(--sa-muted)}
#studio-root [data-studio-explore-feed] .ph-row .nm .sa-explore-21{font-size:13px;color:var(--sa-dim)}
#studio-root [data-studio-explore-feed] .ph-row .tm{display:none}
#studio-root [data-studio-explore-feed] .ph-row>.ib{position:absolute;top:10px;inset-inline-end:10px;width:36px;height:36px;border-radius:50%;background:var(--sa-chip-glass);backdrop-filter:blur(8px);opacity:0;transition:opacity .12s}
#studio-root [data-studio-explore-feed] .post:is(:hover,:focus-within) .ph-row>.ib{opacity:1}
/* Loop 18: the media box (position:relative) paints after the row, so lift the chip above it. */
#studio-root [data-studio-explore-feed] .ph-row>.ib{z-index:2;color:var(--sa-text)}
#studio-root [data-studio-explore-feed] .ph-row>.ib:hover{background:var(--sa-chip-glass);box-shadow:inset 0 0 0 1px var(--sa-line)}
#studio-root [data-studio-explore-feed] .ph-row>.ib:focus-visible{opacity:1;outline:2px solid var(--sa-acc);outline-offset:2px}
@media (hover:none){#studio-root [data-studio-explore-feed] .ph-row>.ib{opacity:1}}
#studio-root [data-studio-explore-feed] .pacts{grid-area:acts;padding:6px 8px 0 0;gap:0}
#studio-root [data-studio-explore-feed] .pa{height:36px;min-width:0;padding:0 8px;font-size:13px;gap:5px;color:var(--sa-muted)}
#studio-root [data-studio-explore-feed] .pa:hover{color:var(--sa-text);background:var(--sa-s2)}
#studio-root [data-studio-explore-feed] .pa svg{width:18px;height:18px}
#studio-root [data-studio-explore-feed] .pa:is([data-studio-post-share],.vw){display:none}
#studio-root [data-studio-explore-feed] :is(.liked,.topc,.vall,.dots,.sa-explore-29){display:none!important}
#studio-root [data-studio-explore-feed] .ftag{top:12px;inset-inline-start:12px;inset-inline-end:auto;width:auto}
/* A single featured post is already badged in the feed: no one-card strip. */
#studio-root [data-studio-explore-featwrap]:has(.sa-explore-10>.feat:only-child){display:none}
/* Narrow cards keep the maker's name whole; the date goes first. */
@media (max-width:1099px){#studio-root [data-studio-explore-feed] .ph-row .nm .sa-explore-21{display:none}}
#studio-root .sa-com .sa-explore-38{border:0;border-radius:20px;background:var(--sa-s1);max-width:420px}

/* ---- Post: the piece on the left, the conversation on the right ------- */
#studio-root .sa-postpg{--dk-col:var(--w-form)}
#studio-root .sa-com .sa-post-4{height:auto;aspect-ratio:1.3;border-radius:20px}
#studio-root .sa-com .sa-post-5{width:62%}
#studio-root .sa-com .sa-pd-photo-img{height:auto;aspect-ratio:1.3}
#studio-root .sa-postpg>.ph-row{padding-inline:0}
#studio-root .sa-postpg>.pacts{padding-inline:0;margin-inline-start:-8px}
#studio-root .sa-postpg>.ptxt{padding-inline:0}
#studio-root .sa-com .sa-post-11{display:block;font-size:20px;line-height:1.3;margin-bottom:6px;color:var(--sa-text)}
#studio-root .sa-com .sa-post-12{padding-inline:0}
#studio-root .sa-com .sa-post-15{margin-inline:0}
#studio-root .sa-com .sa-postpg .sa-post-26{padding-inline:0}
@media (min-width:1100px){
  #studio-root .sa-postpg{--dk-side:440px;display:grid;grid-template-columns:minmax(0,1fr) var(--dk-side);grid-template-rows:auto auto auto auto auto auto auto minmax(0,1fr) auto;padding-inline:0;align-content:stretch;min-height:100vh}
  #studio-root .sa-postpg>*{grid-column:2;padding-inline:28px}
  #studio-root .sa-postpg>.bar{grid-column:1 / -1;grid-row:1;border-bottom:1px solid var(--sa-s2);padding-inline:20px 24px}
  #studio-root .sa-postpg>.ph-row{grid-row:2;padding:20px 28px 8px}
  #studio-root .sa-postpg>.pacts{grid-row:3;margin-inline-start:0;padding-inline:20px}
  #studio-root .sa-postpg>.ptxt{grid-row:4;padding:8px 28px 0}
  #studio-root .sa-postpg>.sa-post-12{grid-row:5;padding-inline:28px}
  #studio-root .sa-postpg>.sa-pd-seq{grid-row:6}
  #studio-root .sa-postpg>.sa-post-15{grid-row:7;margin-inline:28px;padding-inline:0}
  #studio-root .sa-postpg>.sa-post-26{grid-row:9;padding:14px 28px 20px;margin-top:0}
  /* The piece sits on its own board, inset from the app chrome. */
  #studio-root .sa-com .sa-post-4{grid-column:1;grid-row:2 / 10;height:auto;aspect-ratio:auto;min-height:calc(100vh - 112px);margin:24px;position:sticky;top:24px;align-self:start;border-radius:20px;padding-inline:0}
  #studio-root .sa-com .sa-post-5{width:min(76%,calc(100vh - 220px));max-width:none}
  #studio-root .sa-com .sa-pd-photo-img{height:calc(100vh - 112px);aspect-ratio:auto;border-radius:20px}
  #studio-root .sa-postpg>.dots{grid-column:1;grid-row:9;align-self:end;margin-bottom:36px;z-index:2;padding-inline:0}
  #studio-root .sa-postpg::after{content:'';grid-column:2;grid-row:2 / 10;border-inline-start:1px solid var(--sa-s2);pointer-events:none;margin-inline-start:-1px;padding:0}
}

/* Arabic UI: people's own words keep their reading order but line up on
   the page's start edge, under their right-aligned names. */
html[dir=rtl] #studio-root :is(.sa-postpg,.sa-comments) :is(.cmt,.cm,.ptxt) [dir="auto"],html[dir=rtl] #studio-root .sa-postpg>.ptxt{text-align:right}
/* ---- All comments and community terms: reading columns --------------- */
#studio-root .sa-comments{--dk-col:var(--w-narrow)}
#studio-root .sa-terms{--dk-col:var(--w-narrow)}
/* Terms read like a document; the decision stays in reach at the bottom. */
#studio-root .sa-soc :is(.sa-terms-2,.sa-terms-7,.sa-terms-15){padding-inline:0}
#studio-root .sa-soc .sa-terms-12,#studio-root .sa-soc .sa-terms-14,#studio-root .sa-terms .tl li{font-size:15px;line-height:1.6}
#studio-root .sa-terms .tl li::before{top:11px}
#studio-root .sa-soc .sa-terms-16{font-size:15px}
/* Desktop wording: "selecting", not "tapping". */
#studio-root .sa-soc .sa-terms-16:not(.sa-terms-dk){display:none}
#studio-root .sa-soc .sa-terms-dk{display:block}
#studio-root .sa-terms .tsec{scroll-margin-top:24px}
@media (min-width:1100px){
  /* Eight sections on a long page: a sticky contents list beside the text. */
  #studio-root .sa-terms{--dk-col:var(--w-medium);display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:60px;grid-auto-rows:min-content}
  #studio-root .sa-terms>*{grid-column:2}
  #studio-root .sa-terms>.bar{grid-column:1 / -1}
  #studio-root .sa-terms>.sa-terms-23{grid-column:1 / -1}
  #studio-root .sa-terms .sa-terms-toc{display:flex;flex-direction:column;gap:2px;grid-column:1;grid-row:2 / span 3;align-self:start;position:sticky;top:24px;padding-top:8px}
  #studio-root .sa-terms .sa-terms-toc-h{font-size:11px;letter-spacing:.08em;color:var(--sa-muted);text-transform:uppercase;padding:0 10px 8px}
  #studio-root .sa-terms .sa-terms-toc-i{display:flex;gap:10px;align-items:baseline;text-align:start;border:0;background:none;color:var(--sa-soft);font:500 14px/1.35 'Space Grotesk',sans-serif;padding:7px 10px;border-radius:10px;cursor:pointer}
  #studio-root .sa-terms .sa-terms-toc-i .mono{font-size:12px;color:var(--sa-acc-tx)}
  #studio-root .sa-terms .sa-terms-toc-i:hover{background:var(--sa-s1);color:var(--sa-text)}
}
#studio-root .sa-soc .sa-terms-23{padding:16px 0 24px;margin-top:24px;justify-content:flex-end;background:var(--sa-bg);border-top:1px solid var(--sa-s2);z-index:2}
#studio-root .sa-soc .sa-terms-24,#studio-root .sa-soc .sa-terms-25{flex:none;width:auto;height:48px;padding:0 24px}
#studio-root .sa-soc .sa-comments-3{margin-inline:0}
#studio-root .sa-soc .sa-comments-3:hover{background:var(--sa-s2)}
#studio-root .sa-cm-sheet{max-width:none;margin-inline:0}
/* The composer stays pinned to the bottom of the window at the thread's
   width, like a chat, so it is never adrift in the middle of the page. */
#studio-root .sa-comments{display:flex;flex-direction:column;min-height:100vh}
#studio-root .sa-soc .sa-cm-sheet:not(.open){margin-top:auto;padding:12px 0 24px;position:sticky;bottom:0}
#studio-root .sa-soc .sa-comments-12{padding-bottom:24px}
/* The like total is a count, not an alert. */
#studio-root .sa-soc .sa-comments-10{color:var(--sa-muted)}
#studio-root .sa-soc .sa-comments-11{fill:none}
#studio-root .sa-soc .sa-cm-sheet:not(.open) .sa-comments-24{margin-inline-start:0}

/* ---- New post, both steps: one column, one progress bar, desktop footers */
#studio-root .sa-sw .sa-postpick-5,#studio-root .sa-com .sa-newpost-6{padding-inline:0}
#studio-root .sa-com .sa-newpost-4{padding-inline:0}
#studio-root .sa-sw .sa-postpick-4{padding-inline:0}
#studio-root .sa-sw .sa-postpick-25,#studio-root .sa-com .sa-newpost-32{flex-direction:row;align-items:center;justify-content:flex-end;gap:12px;margin-top:32px;padding:20px 0 40px;border-top:1px solid var(--sa-s2)}
#studio-root .sa-sw .sa-postpick-26{width:auto;padding:0 20px;height:48px}
#studio-root .sa-sw .sa-postpick-27{width:auto;padding:0 24px;height:48px}
#studio-root .sa-sw .sa-postpick-27:disabled,#studio-root .sa-com .sa-newpost-35:disabled{opacity:1;background:var(--sa-s2);color:var(--sa-dim);box-shadow:none}
#studio-root .sa-com .sa-newpost-33{flex:1;max-width:520px;margin-inline-end:auto}
#studio-root .sa-com .sa-newpost-35{width:auto;height:48px;padding:0 28px}
#studio-root .sa-np>.bar{padding-inline:0}
#studio-root .sa-np>.bar>.ib:first-child{margin-inline-start:-10px}
#studio-root .sa-np>.bar>.ib:last-child{margin-inline-end:0}
/* Close sits at the end on both steps; Back (step 2) is the only start control. */
#studio-root [data-studio-screen="post-pick"]>.bar>.ib:first-child{order:3;margin-inline:0}
#studio-root [data-studio-screen="post-pick"]>.bar>.sa-postpick-3{order:-1}
/* Skip is the quiet alternative; Next is the only button. */
#studio-root .sa-sw .sa-postpick-26{background:transparent;box-shadow:none;color:var(--sa-soft);text-decoration:underline;text-decoration-color:var(--sa-line2);text-underline-offset:4px}
#studio-root .sa-sw .sa-postpick-26:hover{color:var(--sa-text);text-decoration-color:currentColor}
/* Photos: one wide drop area with the Add tile and the hint inside it. */
#studio-root .sa-com .sa-newpost-15{flex-wrap:wrap;gap:12px;padding:14px;border-radius:18px;border:1.5px dashed var(--sa-line2);background:var(--sa-s05)}
#studio-root .sa-com .sa-newpost-15 .sa-newpost-19{width:104px;height:104px;border-style:solid;border-width:1px;background:var(--sa-s1);color:var(--sa-text);cursor:pointer}
#studio-root .sa-com .sa-newpost-15 .sa-newpost-19:hover{background:var(--sa-s2)}
#studio-root .sa-com .sa-newpost-15 .sa-newpost-16{width:104px;height:104px}
#studio-root .sa-com .sa-newpost-20{flex:1;min-width:200px;font-size:14px;padding-inline:8px 0}
#studio-root .sa-com .sa-newpost-33 a{color:var(--sa-soft);text-decoration:underline;text-decoration-color:var(--sa-line2);text-underline-offset:3px}
#studio-root .sa-com .sa-newpost-33 a:hover{color:var(--sa-text)}
#studio-root .sa-com .sa-newpost-1{display:flex;flex-direction:column;align-items:center;justify-content:center}

/* ---- Profiles: the person on the left, their work on the right -------- */
#studio-root .sa-pf{--dk-col:var(--w-wide);padding-bottom:48px}
/* No decorative banner: a clean page header like every other top-level page. */
#studio-root .sa-pf>.pcover{display:none}
#studio-root .sa-pf>.bar{position:static;height:88px;padding:16px 0 0;z-index:auto}
#studio-root .sa-pf .glass{background:transparent;backdrop-filter:none;border-radius:12px}
#studio-root .sa-pf .glass:hover{background:var(--sa-s1)}
#studio-root .sa-soc .sa-me-4{font-size:32px;font-weight:600;letter-spacing:-.01em}
#studio-root .sa-pf>.bar>.ib:first-child{margin-inline-start:-10px}
/* Someone else's profile: the same sub-page header as Help (Back link over a
   title), with Share and More at the end. Share is no longer a card button. */
#studio-root [data-studio-screen="artist"]>.bar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"back shr more" "ttl shr more";height:auto;min-height:88px;padding:10px 0 0;column-gap:4px;row-gap:2px;align-items:center}
#studio-root [data-studio-screen="artist"]>.bar>.ib:first-child{grid-area:back;justify-self:start;width:auto;height:30px;gap:2px;padding:0 10px 0 2px;margin-inline-start:-6px;border-radius:8px;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-muted)}
#studio-root [data-studio-screen="artist"]>.bar>.ib:first-child svg{width:18px;height:18px}
#studio-root [data-studio-screen="artist"]>.bar>.ib:first-child:hover{color:var(--sa-text);background:var(--sa-s1)}
#studio-root .sa-pf .sa-artist-ttl{display:block;grid-area:ttl;font-size:32px;font-weight:600;letter-spacing:-.01em;line-height:1.2;margin:0}
#studio-root .sa-pf .sa-artist-shr{display:flex;grid-area:shr;align-self:end}
#studio-root [data-studio-screen="artist"]>.bar>.ib:last-child{grid-area:more;align-self:end;margin-inline-end:-10px}
#studio-root [data-studio-screen="artist"] .sa-pf-share{display:none!important}
/* The person: one card. */
#studio-root .sa-pf>:is(.sa-me-9,.sa-artist-10){margin-top:8px;padding:24px 24px 0;background:var(--sa-s1);border-radius:20px 20px 0 0;align-items:center}
#studio-root .sa-pf>:is(.sa-me-15,.sa-artist-16){padding:16px 24px 0;background:var(--sa-s1)}
#studio-root .sa-pf>:is(.sa-me-24,.sa-artist-25){padding:20px 24px 24px;background:var(--sa-s1);border-radius:0 0 20px 20px;display:flex;flex-direction:column;gap:12px}
#studio-root .sa-pf :is(.sa-me-10,.sa-artist-11){box-shadow:none}
#studio-root .sa-pf :is(.sa-me-11,.sa-artist-12){max-width:360px;padding-bottom:0}
#studio-root .sa-pf :is(.sa-me-11,.sa-artist-12)>*{min-width:0;padding-inline:4px;text-align:center}
#studio-root .sa-pf :is(.sa-me-11,.sa-artist-12) .lbl{overflow-wrap:normal;line-height:1.25}
#studio-root .sa-pf :is(.sa-me-14,.sa-artist-15){border-left:0;border-inline-start:1px solid var(--sa-line)}
/* The Dex teaser: the counter and the bar read in the page's direction. */
#studio-root .sa-pf :is(.sa-me-37,.sa-artist-36){direction:ltr;unicode-bidi:isolate}
html[dir=rtl] #studio-root .sa-pf :is(.sa-me-39,.sa-artist-38){left:auto;right:0}
#studio-root .sa-pf :is(.sa-me-40,.sa-artist-39){white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4}
#studio-root .sa-pf :is(.sa-me-18,.sa-artist-19){flex-wrap:wrap;gap:6px 14px}
#studio-root .sa-pf :is(.sa-me-19,.sa-artist-20){min-width:0;max-width:100%}
#studio-root .sa-pf :is(.sa-me-22,.sa-artist-23){overflow:hidden;text-overflow:ellipsis}
#studio-root .sa-pf :is(.sa-me-27,.sa-artist-26){background:var(--sa-bg);box-shadow:inset 0 0 0 1px var(--sa-line0)}
#studio-root .sa-pf :is(.sa-me-27,.sa-artist-26):hover{box-shadow:inset 0 0 0 1px var(--sa-line2)}
/* Two actions share a row when their labels fit, otherwise each takes a row. */
#studio-root .sa-pf .sa-me-24>.sa-me-5{flex-wrap:wrap}
#studio-root .sa-pf .sa-me-5 .btn{flex:1 1 auto;min-width:0;white-space:nowrap;padding-inline:14px}
/* Their work: compact left-aligned tabs and a gallery with hover. */
#studio-root .sa-pf :is(.sa-me-43,.sa-artist-42){display:flex;gap:28px}
#studio-root .sa-pf .ptab{padding:0 2px}
#studio-root .sa-pf .ptab:hover{color:var(--sa-text)}
#studio-root .sa-pf :is(.sa-me-42,.sa-artist-41){padding-top:0}
#studio-root .sa-pf .postg2{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:12px!important;padding-top:20px!important}
#studio-root .sa-pf .postg2 .pt{border-radius:14px;cursor:pointer;transition:transform .15s,box-shadow .15s}
#studio-root .sa-pf .postg2 .pt:hover{box-shadow:0 0 0 1px var(--sa-line2),0 12px 28px var(--sa-shade);transform:translateY(-2px)}
#studio-root .sa-pf .sa-pf-mcs,#studio-root .sa-pf .sa-pf-empty{padding-top:12px}
@media (min-width:1100px){
  #studio-root .sa-pf{display:grid;grid-template-columns:340px minmax(0,1fr);column-gap:40px;grid-auto-rows:min-content;align-content:start}
  #studio-root .sa-pf>*{grid-column:1}
  #studio-root .sa-pf>.bar{grid-column:1 / -1;grid-row:1;padding-inline:0}
  /* The person card: avatar, name and bio, then the numbers as a full-width
     strip (long numbers and labels fit in every language), then actions. */
  #studio-root .sa-pf::before{content:'';grid-column:1;grid-row:2 / 6;margin-top:8px;background:var(--sa-s1);border-radius:20px}
  #studio-root .sa-pf>:is(.sa-me-9,.sa-artist-10){display:contents}
  #studio-root .sa-pf>:is(.sa-me-9,.sa-artist-10)>.av{grid-column:1;grid-row:2;justify-self:start;margin:32px 24px 0;width:80px;height:80px;box-shadow:none;position:relative}
  #studio-root .sa-pf>:is(.sa-me-15,.sa-artist-16){grid-row:3;background:none}
  #studio-root .sa-pf :is(.sa-me-11,.sa-artist-12){grid-column:1;grid-row:4;max-width:none;margin:20px 24px 0;padding:14px 0;border-block:1px solid var(--sa-s2);position:relative;align-self:start}
  #studio-root .sa-pf>:is(.sa-me-24,.sa-artist-25){grid-row:5;background:none;align-self:start}
  #studio-root .sa-pf>.menu{grid-column:2;grid-row:1;justify-self:end;align-self:end}
  #studio-root .sa-pf>:is(.sa-me-42,.sa-artist-41){grid-column:2;grid-row:2;align-self:start;margin-top:8px}
  /* Tabs and the work start beside the card's top, not under its first row. */
  #studio-root .sa-pf>:is(.postg2,.sa-pf-mcs,.sa-pf-empty){grid-column:2;grid-row:2 / span 30;align-self:start;margin-top:52px}
}

/* ---- String Dex ------------------------------------------------------ */
#studio-root .sa-dex{--dk-col:var(--w-wide)}
#studio-root .sa-dex>.bar{padding-inline:0}
#studio-root .sa-dex>.bar>.ib:first-child{margin-inline-start:-10px}
#studio-root .sa-soc .sa-dex-7{display:none}
#studio-root .sa-soc .dx2{transition:background-color .12s,box-shadow .12s}
#studio-root .sa-soc .dx2:not(.off):hover{box-shadow:inset 0 0 0 1px var(--sa-line2)}
#studio-root .sa-soc .dx2.off .dn{color:var(--sa-muted)}
/* An entry opens as a dialog over the dimmed Dex, centred on the content. */
#studio-root .sa-dex-layer{max-width:none;margin:0;inset-inline-start:var(--dk-rail)}
#studio-root .sa-dex-layer.sa-dex-sheet-on{background:rgba(5,6,7,.66)}
#studio-root .sa-dex-layer .sa-dex-ghost{display:none}
#studio-root .sa-dex-layer>.sheet{bottom:auto;top:50%;left:50%;right:auto;width:min(440px,calc(100% - 48px));max-height:calc(100vh - 48px);transform:translate(-50%,-50%);border-radius:24px;box-shadow:0 0 0 1px var(--sa-line0),0 30px 80px var(--sa-shade);padding-bottom:0}
html[dir=rtl] #studio-root .sa-dex-layer>.sheet{transform:translate(50%,-50%);left:auto;right:50%}
#studio-root .sa-dex-layer>.sheet .handle{display:none}
#studio-root .sa-dex-layer .sa-dexentry-45{padding-bottom:20px;margin-top:20px}
#studio-root .sa-dex .sa-dex-42{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))!important}
/* Light theme: the Dex card is a light panel like every other card. */
:root.studio[data-theme="light"] #studio-root .sa-soc .dexframe{background:var(--sa-s1);box-shadow:inset 0 0 0 1px var(--sa-line)}
#studio-root .sa-soc .sa-dex-17{color:#5B6068}
/* "Sorted by number" is a note, not a control. */
#studio-root .sa-dex .sa-dex-38 [data-dex-sorted]{font:500 13px 'Space Grotesk',sans-serif;letter-spacing:0;text-transform:none;color:var(--sa-muted)}
@media (min-width:1100px){
  #studio-root .sa-dex{display:grid;grid-template-columns:400px minmax(0,1fr);column-gap:40px;grid-auto-rows:min-content;align-content:start;padding-bottom:40px}
  #studio-root .sa-dex>*{grid-column:2}
  #studio-root .sa-dex>.bar{grid-column:1 / -1}
  #studio-root .sa-dex>.sa-dex-2{grid-column:1;grid-row:2;align-self:start;padding-inline:0}
  #studio-root .sa-dex>.sa-dex-layer{grid-column:auto}
  /* Categories become a filter list under the summary, with counts. */
  #studio-root .sa-dex>.sa-dex-35{grid-column:1;grid-row:3 / span 6;align-self:start;flex-direction:column;gap:2px;padding:20px 0 0;overflow:visible;-webkit-mask-image:none;mask-image:none;position:sticky;top:16px}
  #studio-root .sa-dex .sa-dex-35 .sa-dex-36{display:flex;justify-content:space-between;align-items:center;width:100%;height:40px;padding:0 14px;border-radius:12px;background:transparent;color:var(--sa-soft);font-size:14px;text-align:start;cursor:pointer}
  #studio-root .sa-dex .sa-dex-35 .sa-dex-36:hover{background:var(--sa-s1);color:var(--sa-text)}
  #studio-root .sa-dex .sa-dex-35 .sa-dex-36.on{background:var(--sa-s1);color:var(--sa-text);box-shadow:inset 3px 0 0 var(--sa-acc)}
  html[dir=rtl] #studio-root .sa-dex .sa-dex-35 .sa-dex-36.on{box-shadow:inset -3px 0 0 var(--sa-acc)}
  #studio-root .sa-dex .sa-dex-35 .sa-dex-37{opacity:1;color:var(--sa-muted)}
  #studio-root .sa-dex>.sa-dex-38{grid-row:2;align-self:start;padding-top:0}
  #studio-root .sa-dex>.sa-dex-search{grid-row:2;align-self:start}
  #studio-root .sa-dex>:is(.sa-dex-42,[data-dex-empty]){grid-row:2 / span 20;align-self:start;margin-top:60px}
  #studio-root .sa-dex:has(>.sa-dex-search:not([hidden]))>:is(.sa-dex-38,.sa-dex-42,[data-dex-empty]){margin-top:64px}
  #studio-root .sa-dex:has(>.sa-dex-search:not([hidden]))>:is(.sa-dex-42,[data-dex-empty]){margin-top:124px}
  #studio-root .sa-dex>.sa-dex-59{grid-row:22}
}

/* ---- Library and choosing a design to post: wide grids ---------------- */
#studio-root [data-studio-screen="library"]{--dk-col:var(--w-wide);padding-bottom:48px}
#studio-root [data-studio-screen="library"]>.bar{padding:30px 0 0;height:auto;min-height:88px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t new" "c new";column-gap:16px;align-content:center}
#studio-root [data-studio-screen="library"] .sa-library-1{grid-area:t;font-size:32px;font-weight:600;letter-spacing:-.01em}
#studio-root [data-studio-screen="library"] .sa-library-2{grid-area:c;font-size:14px;margin-top:2px}
#studio-root .sa-acc .sa-lib-new{grid-area:new;display:flex;align-self:center;width:auto;height:44px;padding:0 18px 0 14px;gap:8px;font-size:15px}
#studio-root .sa-acc .sa-lib-new .ic{width:18px;height:18px}
#studio-root .sa-acc .sa-library-3{padding:16px 0 4px;max-width:420px}
#studio-root .sa-acc .sa-library-7{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;gap:20px!important;padding:20px 0 0!important}
#studio-root .sa-acc .sa-lib-card{position:relative;padding:12px 12px 14px;border-radius:18px;background:var(--sa-s1);box-shadow:inset 0 0 0 1px var(--sa-line0);transition:background-color .12s,box-shadow .12s,transform .15s}
#studio-root .sa-acc .sa-lib-card:not(.sa-lib-ghost):hover{background:var(--sa-s2);box-shadow:inset 0 0 0 1px var(--sa-line2);transform:translateY(-2px)}
#studio-root .sa-acc .sa-lib-card .sa-library-8{transition:transform .2s}
#studio-root .sa-acc .sa-lib-card:hover .sa-library-8{transform:scale(1.02)}
#studio-root .sa-acc .sa-lib-card .sa-library-9{font-size:15px;margin-top:4px}
#studio-root .sa-acc .sa-library-10{color:var(--sa-green);margin-top:2px}
#studio-root .sa-acc .sa-library-11{color:var(--sa-acc-tx);display:flex;align-items:center;gap:5px;margin-top:2px}
#studio-root .sa-acc .sa-library-11::before{content:'';width:12px;height:12px;flex-shrink:0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/12px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/12px no-repeat}
#studio-root .sa-acc .sa-lib-more{position:absolute;top:18px;inset-inline-end:18px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--sa-chip-glass);backdrop-filter:blur(8px);color:var(--sa-text);opacity:0;transition:opacity .12s;box-shadow:0 0 0 1px var(--sa-line0)}
#studio-root .sa-acc .sa-lib-more svg{width:18px;height:18px;fill:currentColor;stroke:currentColor;stroke-width:1.2}
#studio-root .sa-acc .sa-lib-card:is(:hover,:focus-visible) .sa-lib-more{opacity:1}
#studio-root .sa-acc .sa-lib-more:hover{background:var(--sa-s2)}
#studio-root .sa-np{--dk-col:var(--w-medium)}
#studio-root .sa-sw .sa-postpick-8{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))!important}

/* ---- Page headers ----------------------------------------------------
   Top-level pages (Library, Explore, Me, Settings, Help, Notifications,
   Admin) share one header: a 32px title at the content edge, an optional
   back arrow before it, actions at the end. Sub pages keep the 64px bar. */
#studio-root :is([data-studio-screen="settings"],[data-studio-screen="help"],[data-studio-screen="notifications"])>.bar.nav,
#studio-root .sa-adm>.bar{height:88px;padding:16px 0 0;justify-content:flex-start;gap:6px}
#studio-root :is([data-studio-screen="settings"],[data-studio-screen="help"],[data-studio-screen="notifications"])>.bar.nav .ttl,
#studio-root .sa-adm>.bar>.ttl{font-size:32px;font-weight:600;letter-spacing:-.01em;line-height:1.2;margin:0}
/* Sub pages (Help, Notifications, Admin): a small labelled Back link sits
   above the title, so the title starts on the content edge like every
   other page header. */
#studio-root :is([data-studio-screen="help"],[data-studio-screen="notifications"])>.bar.nav,
#studio-root .sa-adm>.bar{height:auto;min-height:88px;padding:10px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"back acts" "ttl acts";align-items:center;row-gap:2px}
#studio-root :is([data-studio-screen="help"],[data-studio-screen="notifications"])>.bar.nav>.ib:first-child,
#studio-root .sa-adm>.bar>.ib:first-child{grid-area:back;justify-self:start;width:auto;height:30px;gap:2px;padding:0 10px 0 2px;margin-inline-start:-6px;border-radius:8px;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-muted)}
#studio-root :is([data-studio-screen="help"],[data-studio-screen="notifications"])>.bar.nav>.ib:first-child svg,
#studio-root .sa-adm>.bar>.ib:first-child svg{width:18px;height:18px}
#studio-root :is([data-studio-screen="help"],[data-studio-screen="notifications"])>.bar.nav>.ib:first-child:hover,
#studio-root .sa-adm>.bar>.ib:first-child:hover{color:var(--sa-text);background:var(--sa-s1)}
#studio-root .sa-back-lbl{display:inline}
html[dir=rtl] #studio-root .sa-back-lbl{padding-inline-start:2px}
#studio-root :is([data-studio-screen="help"],[data-studio-screen="notifications"])>.bar.nav>.ttl,
#studio-root .sa-adm>.bar>.ttl{grid-area:ttl}
#studio-root .sa-adm>.bar>.ib:last-child{grid-area:acts;align-self:end;margin-bottom:-2px}
#studio-root [data-studio-screen="settings"]>.bar.nav>.ib:first-child{display:none}
#studio-root :is([data-studio-screen="settings"],[data-studio-screen="help"],[data-studio-screen="notifications"])>.bar.nav>span:last-child{display:none}

/* ---- Account screens: centred columns, two panes where it helps -------- */
#studio-root [data-studio-screen="settings"]{--dk-col:var(--w-narrow);padding-bottom:0}
/* Settings is one reading column (account, preferences, support, sign out).
   The account card is a plain card: no ticket notches or dashed tear line. */
#studio-root .sa-acc :is(.sa-settings-12,.sa-settings-13){display:none}
#studio-root .sa-acc .sa-settings-11{height:1px;margin:0 16px;background:var(--sa-s2)}
#studio-root .sa-acc .sa-settings-4{padding:18px 14px 18px 20px;border-radius:22px 22px 0 0}
#studio-root .sa-acc .sa-settings-4:hover .sa-settings-9{color:var(--sa-text)}
#studio-root .sa-acc .sa-settings-14{display:flex;align-items:center;gap:16px;padding:18px 20px}
#studio-root .sa-acc .sa-settings-15{flex:1;min-width:0}
#studio-root .sa-acc .sa-settings-18{width:auto;margin:0;padding:0 22px;flex:none}
#studio-root [data-studio-screen="profile-edit"],#studio-root [data-studio-screen="notifications"]{--dk-col:var(--w-narrow)}
#studio-root [data-studio-screen="help"]{--dk-col:var(--w-medium)}
#studio-root .sa-acc .sa-settings-2,#studio-root .sa-acc .sa-help-2{padding-inline:0;padding-top:16px}
#studio-root .sa-acc .sa-settings-2{gap:24px;padding-top:20px}
#studio-root .sa-acc .sl{font-size:12px;color:var(--sa-muted)}
#studio-root .sa-acc :is(.sa-help-3,.sa-help-7,.sa-help-8,.sa-settings-20){padding-inline:0}
#studio-root .sa-acc .sa-settings-22{padding-inline:0}
#studio-root .sa-acc .sa-settings-23{padding-inline:0}
/* The library has its own rail item; no duplicate "My designs" row here. */
#studio-root .sa-acc .sa-settings-3+div{display:none}
#studio-root .sa-acc .sa-settings-22{margin-top:32px;padding:20px 0 40px;border-top:1px solid var(--sa-s2);justify-content:flex-start}
#studio-root .sa-acc .sa-settings-23{color:var(--sa-muted);text-decoration:none}
#studio-root .sa-acc .sa-settings-23:hover{color:var(--sa-text);text-decoration:underline}
#studio-root .sa-acc .li:is(button):hover{background:var(--sa-s15)}
/* Help: the send button is the form card's footer, right-aligned. */
#studio-root .sa-acc .sa-help-9{border-radius:18px 18px 0 0;padding:20px 20px 4px}
#studio-root .sa-acc .sa-help-13{display:flex;justify-content:flex-end;padding:16px 20px 20px;margin:0 0 32px;background:var(--sa-s1);border-radius:0 0 18px 18px}
#studio-root .sa-acc .sa-help-14{width:auto;height:48px;padding:0 24px}
#studio-root .sa-acc .sa-help-direct{display:flex;flex-direction:column;gap:6px;margin-top:22px;padding:18px 16px;border-radius:18px;background:var(--sa-s1)}
#studio-root .sa-acc .sa-help-direct .sl{padding:0}
#studio-root .sa-acc .sa-help-mail{font-size:16px;font-weight:600;color:var(--sa-acc-tx);text-decoration:none}
#studio-root .sa-acc .sa-help-mail:hover{text-decoration:underline}
#studio-root .sa-acc .sa-help-direct .muted{font-size:13px;line-height:1.45}
#studio-root .sa-acc .sa-help-11 .chip.on{background:transparent}
/* Notifications: compact filter, a real empty state, no phone gesture hint. */
#studio-root .sa-acc .sa-notifications-2{padding:12px 0 8px}
/* Nothing to filter yet: no All/Unread toggle over an empty list. */
#studio-root .sa-acc .sa-notifications-2:has(.on[data-studio-notif-filter="all"]):has(+.sa-notifications-4:empty){display:none}
#studio-root .sa-acc .sa-notifications-3{display:inline-grid;grid-template-columns:repeat(2,auto)}
#studio-root .sa-acc .sa-notifications-3 button{padding:0 18px;height:36px}
#studio-root .sa-acc .sa-notifications-4{padding-inline:0}
#studio-root .sa-acc .sa-notifications-22{margin-top:32px;padding:0 0 40px}
#studio-root .sa-acc .sa-notifications-25,#studio-root .sa-acc .sa-notif-cta{display:none}
#studio-root .sa-acc .sa-notifications-4:empty+.sa-notifications-22{margin-top:min(14vh,120px);gap:10px}
#studio-root .sa-acc .sa-notifications-4:empty+.sa-notifications-22 .sa-notifications-23{width:64px;height:64px;margin-bottom:6px}
#studio-root .sa-acc .sa-notifications-4:empty+.sa-notifications-22 .sa-notifications-23 .ic{width:28px;height:28px}
#studio-root .sa-acc .sa-notifications-4:empty+.sa-notifications-22 .sa-notifications-24{font-size:20px;font-weight:600}
#studio-root .sa-acc .sa-notifications-4:empty+.sa-notifications-22 .sa-notifications-25{display:block;font-size:14px}
#studio-root .sa-acc .sa-notifications-4:empty+.sa-notifications-22 .sa-notif-cta{display:flex;margin-top:14px;height:44px;padding:0 20px;width:auto}
/* Edit profile: a page header like Settings, one left-aligned form, and
   Cancel beside Save in the footer. */
#studio-root .sa-acc .sa-profile-edit-1{height:88px;padding:16px 0 0;justify-content:flex-start}
#studio-root .sa-acc .sa-profile-edit-1 .ttl{font-size:32px;font-weight:600;letter-spacing:-.01em;line-height:1.2;margin:0}
#studio-root .sa-acc :is(.sa-profile-edit-2,.sa-profile-edit-3){display:none}
#studio-root .sa-acc .sa-profile-edit-4{padding:20px 0 0}
#studio-root .sa-acc .sa-profile-edit-8{display:none}
#studio-root .sa-acc .sa-profile-edit-5{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"av up" "av col";column-gap:24px;row-gap:14px;align-items:center;justify-items:start;padding:20px;border-radius:20px;background:var(--sa-s1)}
#studio-root .sa-acc .sa-profile-edit-6{grid-area:av;width:96px;height:96px}
#studio-root .sa-acc .sa-profile-edit-7{width:96px;height:96px;box-shadow:none}
#studio-root .sa-acc .sa-profile-edit-10{grid-area:up;align-self:end}
#studio-root .sa-acc .sa-profile-edit-11{grid-area:col;align-self:start;margin:0;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
#studio-root .sa-acc .sa-profile-edit-12{margin:0;text-align:start}
#studio-root .sa-acc .sa-profile-edit-13{gap:12px;justify-content:flex-start}
#studio-root .sa-acc .sa-profile-edit-13>.av{width:32px;height:32px;cursor:pointer}
#studio-root .sa-acc .sa-profile-edit-13>.av{box-shadow:none}
#studio-root .sa-acc .sa-profile-edit-13>.av[aria-checked="true"]{box-shadow:0 0 0 2px var(--sa-s1),0 0 0 4px var(--sa-text)}
#studio-root .sa-acc .sa-profile-edit-15{width:16px;height:16px}
#studio-root .sa-acc .sa-profile-edit-30{display:flex;justify-content:flex-end;gap:12px;padding:28px 0 48px;margin-top:0}
#studio-root .sa-acc .sa-pe-cancel{display:flex;width:auto;height:48px;padding:0 22px}
#studio-root .sa-acc .sa-profile-edit-31{width:auto;height:48px;padding:0 28px}
@media (min-width:1100px){
  #studio-root .sa-acc .sa-help-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);column-gap:32px;align-items:start}
  #studio-root .sa-acc .sa-help-13{margin-inline-start:calc((100% - 32px) / 2.3 + 32px)}
}

/* ---- Guides ---------------------------------------------------------- */
#studio-root .sa-guides{--dk-col:var(--w-wide);padding-bottom:48px}
#studio-root [data-studio-screen="guide"]{--dk-col:var(--w-medium)}
/* Guides is a rail destination: no back arrow, the title leads. */
#studio-root .sa-guides>.bar{display:none}
#studio-root .sa-gd.sa-page .sa-guides-2{padding:30px 0 0}
#studio-root .sa-gd .sa-gd-h1{white-space:normal;font-size:40px;letter-spacing:-.015em}
#studio-root .sa-gd.sa-page .sa-guides-4{font-size:16px;max-width:620px}
/* Tabs: the same underline tabs as Explore and the profiles. */
#studio-root .sa-gd.sa-page .sa-guides-5{display:flex;gap:28px;margin-top:24px;padding:0;background:none;border-radius:0;border-bottom:1px solid var(--sa-s2)}
#studio-root .sa-gd.sa-page .sa-guides-5 button{height:44px;padding:0;border-radius:0;background:none;font-size:15px;font-weight:600;color:var(--sa-muted);cursor:pointer}
#studio-root .sa-gd.sa-page .sa-guides-5 button:hover{color:var(--sa-text)}
#studio-root .sa-gd.sa-page .sa-guides-5 button.on{background:none;color:var(--sa-text);box-shadow:inset 0 -2px 0 var(--sa-acc)}
#studio-root .sa-gd button.card.sa-gd-method{transition:box-shadow .15s,transform .15s}
#studio-root .sa-gd button.card.sa-gd-method:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--sa-line2),0 14px 32px var(--sa-shade)}
/* One guide: everything on the column grid; one progress indicator. */
#studio-root .sa-gd .sa-gd-body{padding-inline:0}
/* The guide's bar sits on the column: "‹ Guides" on the H1's edge, a
   labelled Template PDF action at the other end. */
#studio-root .sa-gd .sa-gd-topbar{margin-inline:0;padding-inline:0}
#studio-root .sa-gd .sa-gd-topbar>.ib{width:auto;height:36px;gap:4px;border-radius:10px;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-soft)}
#studio-root .sa-gd .sa-gd-topbar>.ib:first-child{padding:0 10px 0 2px;margin-inline-start:-6px;color:var(--sa-muted)}
#studio-root .sa-gd .sa-gd-topbar>[data-studio-action="dl-template"]{padding:0 14px 0 10px;margin-inline-end:-4px;gap:8px;box-shadow:inset 0 0 0 1px var(--sa-line)}
#studio-root .sa-gd .sa-gd-topbar>.ib svg{width:18px;height:18px}
#studio-root .sa-gd .sa-gd-topbar>.ib:hover{background:var(--sa-s1);color:var(--sa-text)}
#studio-root .sa-gd .sa-gd-topbar [data-gd-steplabel]{visibility:hidden}
#studio-root .sa-gd .sa-gd-dock{padding-inline:0;padding-bottom:28px}
@media (min-width:1100px){
  #studio-root .sa-guides [data-gd-pane="setup"]:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
  #studio-root .sa-guides [data-gd-pane="setup"]>:not(.sa-gd-method){grid-column:1 / -1}
  #studio-root .sa-guides [data-gd-pane="setup"]>.sa-gd-method{margin:0;display:flex;flex-direction:column}
  #studio-root .sa-guides [data-gd-pane="setup"]>.sa-gd-method>.meta{margin-top:auto}
  #studio-root .sa-guide .sa-gd-body{display:grid;grid-template-columns:minmax(0,1fr) 360px;column-gap:48px;align-items:start}
  #studio-root .sa-guide .sa-gd-body>*{grid-column:1}
  #studio-root .sa-guide .sa-gd-body>[data-gd-only]{grid-column:2;grid-row:1 / span 12;position:sticky;top:24px}
  #studio-root .sa-guide .sa-gd-dock{padding-inline-end:408px}
}

/* ---- Small shared pieces ---------------------------------------------- */
/* Before the first line there is no FROM: the first nail stands alone. */
#studio-root .sa-build-nails.is-start>:is(div:first-child,svg){display:none}
#studio-root .sa-build-nails.is-start{justify-content:flex-start}
#studio-root .sa-build-nails.is-start .sa-build-to-wrap{text-align:start;align-items:flex-start;margin-inline-start:0}
/* A black swatch on a dark surface still reads as a filled chip. */
#studio-root .sw.sa-sw-black{background:#000;box-shadow:0 0 0 1px #3a3d42,inset 0 0 0 1px rgba(255,255,255,.08)}
:root.studio[data-theme="light"] #studio-root .sw.sa-sw-black{box-shadow:0 0 0 1px var(--sa-line2)}
/* Downloads: room below the last row, and the dialog may use the window. */
#studio-root .sa-sheet-layer.sa-dl-layer>.sheet{max-height:calc(100vh - 64px);padding-bottom:20px}
/* Pin sequence PDF: pick a size, then a labelled Download PDF button right
   beside it (no download icon in the row header that ignores the choice). */
#studio-root .sa-dl-seq{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px}
#studio-root .sa-dl-seq>.sa-dl-row{grid-column:1 / -1}
#studio-root .sa-dl-seq [data-studio-dl-icon]{display:none}
#studio-root .sa-dl-seq .sa-dl-pdfbtn{display:flex;grid-column:2;height:50px;padding:0 18px 0 14px;gap:8px;font-size:14px;margin-inline-end:14px;white-space:nowrap}
#studio-root .sa-dl-seq .sa-dl-pdfbtn .ic{width:18px;height:18px}
#studio-root .sa-dl-seq .sa-pdf-size{grid-column:1}
/* Short windows: the rail tightens, then scrolls rather than clipping. */
@media (max-height:680px){
  #studio-root .sa-rail{gap:2px;padding-block:10px 12px;overflow-y:auto;scrollbar-width:none}
  #studio-root .sa-rail-logo{margin-bottom:12px}
  #studio-root .sa-rail-i{min-height:52px;gap:3px}
}

/* ---- Scrolling --------------------------------------------------------
   body's overflow-x:hidden made it a scroll container of its own, so no
   position:sticky element in the app could stick. clip trims the same
   horizontal spill without that side effect. */
html.studio body{overflow-x:clip}

/* ---- Admin: one toolbar, a clean table, a footer that fits the column -- */
#studio-root .sa-adm{--dk-col:var(--w-medium);padding-bottom:0}
#studio-root .sa-com .sa-admin-1{padding:16px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 12px;align-items:center}
#studio-root .sa-com .sa-admin-1>:is(.sa-admin-2,.sa-admin-3){grid-column:1 / -1}
#studio-root .sa-com .sa-admin-1>.sa-admin-9{grid-column:1;max-width:420px}
#studio-root .sa-com .sa-admin-1>[data-adm-pane]:not([hidden]){grid-column:2;display:flex;gap:10px;align-items:center}
#studio-root .sa-com .sa-admin-1>[data-adm-pane] .sa-admin-3{display:flex;gap:10px}
#studio-root .sa-com .sa-admin-1 .sel{width:auto;min-width:150px;height:44px;font-size:14px}
#studio-root .sa-com .sa-admin-1 .sa-admin-11{height:44px}
#studio-root .sa-com .sa-admin-12{padding:12px 0 0}
#studio-root .sa-com .sa-admin-26{flex-direction:row;align-items:center;gap:16px;padding:16px 0 32px;margin-top:24px}
#studio-root .sa-com .sa-admin-26>.row{flex:none;gap:16px}
#studio-root .sa-com .sa-admin-27[aria-disabled="true"]{opacity:.45;cursor:default;pointer-events:none}
#studio-root .sa-com .sa-admin-30{width:auto;padding:0 18px;margin-inline-start:auto}
#studio-root .sa-sw .sa-reports-1{padding-inline:0;padding-top:16px}
/* Filters use the app's select style: no OS chevron. */
#studio-root .sa-adm select.sel{appearance:none;-webkit-appearance:none;padding-inline:14px 36px;background:var(--sa-s1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C9199' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px;cursor:pointer;transition:border-color .12s}
html[dir=rtl] #studio-root .sa-adm select.sel{background-position:left 12px center}
#studio-root .sa-adm select.sel:hover{border-color:var(--sa-line2);background-color:var(--sa-s15)}
/* Totals are numbers, not filters: one neutral tile style. */
#studio-root .sa-com .sa-admin-7,#studio-root .sa-sw .sa-reports-4{box-shadow:inset 0 0 0 1px var(--sa-line0)}
#studio-root .sa-com .sa-admin-4,#studio-root .sa-com .sa-admin-7{padding:16px 18px;box-shadow:inset 0 0 0 1px var(--sa-line0)}
/* Design rows: a table with fixed columns, so status and actions line up. */
#studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow){display:grid;grid-template-columns:48px minmax(0,1fr) 128px 144px;grid-template-rows:auto auto auto;column-gap:16px;row-gap:1px;align-items:center;padding:14px 0}
#studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow)>.thumb{grid-row:1 / -1}
#studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow)>.sa-admin-15{display:contents}
#studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow) .sa-admin-16{grid-column:2;grid-row:1;font-weight:500}
#studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow) .sa-adm-detail{display:block;grid-column:2;grid-row:2;font-size:13px;color:var(--sa-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow) .sa-admin-18{grid-column:2;grid-row:3}
/* A generation's settings line sits above its date and place, like a post's facts. */
#studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow) .sa-adm-summary{grid-row:2}
#studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow) .stat{grid-column:3;grid-row:1 / -1;justify-self:start;padding:4px 8px;border-radius:8px;background:var(--sa-s1)}
#studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow) .stat.sa-admin-17{background:var(--sa-acc-12)}
#studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow)>.sa-admin-19{grid-column:4;grid-row:1 / -1;justify-content:flex-end}
#studio-root .sa-adm .abtn:hover{background:var(--sa-s2)}
/* Reports: one card per report. Triage is one quiet segmented control,
   the post's own actions sit at the other end of the same row. */
#studio-root .sa-sw .sa-reports-3{gap:12px}
#studio-root .sa-sw .sa-reports-3 .kpi{background:var(--sa-s1);padding:14px 16px;border-radius:16px;box-shadow:inset 0 0 0 1px var(--sa-line0)}
#studio-root .sa-sw .sa-reports-3 .kpi b{font-size:22px}
#studio-root .sa-sw .sa-adm-rlist{display:flex;flex-direction:column;gap:12px}
#studio-root .sa-sw .sa-reports-7{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 16px;padding:18px 20px;border-radius:20px}
#studio-root .sa-sw .sa-reports-7>:is(.sa-reports-8,.sa-reports-13){grid-column:1 / -1}
#studio-root .sa-sw .sa-reports-7>.sa-reports-19,#studio-root .sa-sw .sa-reports-7 .sa-reports-20{display:none}
#studio-root .sa-sw .sa-reports-13{margin-inline-start:64px}
#studio-root .sa-sw .sa-reports-15{display:inline-flex;justify-self:start;gap:2px;padding:3px;margin-inline-start:64px;border-radius:12px;background:var(--sa-bg);box-shadow:inset 0 0 0 1px var(--sa-line0)}
#studio-root .sa-sw .sa-reports-15 .abtn{height:34px;padding:0 14px 0 12px;gap:8px;border-radius:9px;background:transparent;color:var(--sa-soft);font-size:13px;font-weight:500;box-shadow:none;cursor:pointer}
#studio-root .sa-sw .sa-reports-15 .abtn::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--sa-subtle)}
#studio-root .sa-sw .sa-reports-15 .sa-reports-16::before{background:var(--sa-green)}
#studio-root .sa-sw .sa-reports-15 .sa-reports-17::before{background:var(--sa-danger)}
#studio-root .sa-sw .sa-reports-15 .abtn:hover{background:var(--sa-s2);color:var(--sa-text)}
#studio-root .sa-sw .sa-reports-7>.row{grid-column:2;align-self:center}
#studio-root .sa-sw .sa-reports-7 .mbtn{height:34px;background:transparent;box-shadow:inset 0 0 0 1px var(--sa-line0);cursor:pointer}
#studio-root .sa-sw .sa-reports-7 .mbtn:hover{background:var(--sa-s2)}
#studio-root .sa-sw .sa-reports-25{padding:16px 12px 16px 20px;border-radius:20px;gap:12px}
#studio-root .sa-sw .sa-reports-25 .sa-adm-rav{width:52px;height:52px;font-size:17px;flex-shrink:0}
#studio-root .sa-sw .sa-reports-25 .sa-reports-28{font-size:13px}
#studio-root .sa-sw .sa-reports-25:hover{background:var(--sa-s15)}
#studio-root .sa-sw .sa-reports-41{display:none}
/* Latin emails and names keep the row's right edge in RTL. */
html[dir=rtl] #studio-root .sa-adm [dir="auto"]{text-align:right}
/* A failed load says so in the page, with a way to retry. */
#studio-root .sa-adm .sa-adm-empty[data-adm-error]{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:24px;padding:40px 24px;border-radius:20px;background:var(--sa-s1)}
#studio-root .sa-adm .sa-adm-err-t{font-size:16px;font-weight:600;color:var(--sa-text)}
#studio-root .sa-adm .sa-adm-err-s{font-size:14px;color:var(--sa-muted)}
#studio-root .sa-adm .sa-adm-err-b{width:auto;height:40px;padding:0 18px;margin-top:12px}
@media (max-width:899px){
  #studio-root .sa-com .sa-admin-1{grid-template-columns:minmax(0,1fr)}
  #studio-root .sa-com .sa-admin-1>:is(.sa-admin-9,[data-adm-pane]:not([hidden])){grid-column:1;max-width:none}
  #studio-root .sa-com .sa-admin-1>[data-adm-pane] .sel{flex:1}
}

/* ---- 3D frame between tablet and the full desktop builder ------------- */
#studio-root .sa-f3{--dk-col:720px}
#studio-root .sa-f3-hint{display:none}
#studio-root .sa-f3-foot{position:sticky;bottom:0;z-index:2;margin-top:24px;padding:16px 0 24px;background:var(--sa-bg);border-top:1px solid var(--sa-s2)}
#studio-root .sa-f3-actions .btn:disabled,#studio-root .sa-f3d .dk-btn:disabled{opacity:1;background:var(--sa-s2);color:var(--sa-dim);box-shadow:none}
@media (min-width:1280px){
  /* The builder keeps the app's own rail instead of drawing a second one. */
  #studio-root .sa-f3d{inset-inline-start:var(--dk-rail);z-index:41}
  #studio-root .sa-f3d .dk-rail{display:none}
  #studio-root .sa-f3d .dk-top{justify-content:flex-start;padding-inline:20px 24px}
  #studio-root .sa-f3d .dk-top>[data-studio-action="f3-back"]{order:-1;background:transparent;padding:0 12px 0 8px;color:var(--sa-soft)}
  #studio-root .sa-f3d .dk-top>[data-studio-action="f3-back"]:hover{background:var(--sa-s1);color:var(--sa-text)}
  #studio-root .sa-f3d .dk-crumb{margin-inline-end:auto;padding-inline-start:12px;border-inline-start:1px solid var(--sa-s2)}
}
@media (min-width:900px){
  html[dir=rtl] #studio-root .sa-result-tabs{left:auto;right:calc((100% - var(--dk-panel)) / 2);transform:translateX(50%)}
}

/* Arabic is a joined script: tracking pulls its letters apart, and the
   monospace fallback draws it unjoined. Mono labels fall back to the
   system sans for Arabic (Latin digits keep JetBrains Mono). */
html[lang="ar"] #studio-root *{letter-spacing:0!important}
html[lang="ar"] #studio-root :is(.lbl,.sl,.stat,.sh,.eb,.steps,.sec-h,.ftag,.tagm,.tagp,.pill,.st-p,.st-x,.badge,.dn,.cnt,.mono,.sa-eyebrow,.k,.code,.val,.grp,.dr,.sa-gd-method small,.sh>span,[style*="Mono"]){font-family:'JetBrains Mono',system-ui,sans-serif!important}
/* Any other monospace stack: JetBrains Mono has no Arabic glyphs, so the
   Arabic range of the family maps to the system's Arabic sans (joined) before
   the generic monospace face can draw it, in a regular and a bold cut.
   Latin keeps JetBrains Mono: Chrome only combines faces of one family whose
   weight ranges match, so the Latin faces (same files as studio.css) are
   declared again for each of the two Arabic ranges. */
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 550;font-display:swap;src:url(/static/fonts/studio/JetBrainsMono-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 550;font-display:swap;src:url(/static/fonts/studio/JetBrainsMono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 550;font-display:swap;src:local('SF Arabic'),local('SFArabic-Regular'),local('Geeza Pro'),local('GeezaPro'),local('Segoe UI'),local('SegoeUI'),local('Noto Sans Arabic'),local('NotoSansArabic-Regular'),local('Tahoma'),local('Arial'),local('ArialMT'),local('DejaVu Sans'),local('DejaVuSans');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:551 900;font-display:swap;src:url(/static/fonts/studio/JetBrainsMono-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:551 900;font-display:swap;src:url(/static/fonts/studio/JetBrainsMono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:551 900;font-display:swap;src:local('SF Arabic Bold'),local('SFArabic-Bold'),local('Geeza Pro Bold'),local('GeezaPro-Bold'),local('Segoe UI Bold'),local('SegoeUI-Bold'),local('Noto Sans Arabic Bold'),local('NotoSansArabic-Bold'),local('Tahoma Bold'),local('Tahoma-Bold'),local('Arial Bold'),local('Arial-BoldMT'),local('DejaVu Sans Bold'),local('DejaVuSans-Bold');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}

/* Frame 3D: quiet idle hint beside Apply when nothing is pending */
#studio-root [data-studio-f3-pending][hidden]+.sa-f3-idle{display:block;margin:0;font-size:13px;line-height:1.4;color:var(--sa-muted)}
#studio-root [data-studio-f3-pending]:not([hidden])+.sa-f3-idle{display:none}

/* Dex entry: Close is a quiet secondary action; Share is the primary. */
#studio-root .sa-dex-layer .sa-dexentry-45{justify-content:flex-end;align-items:center}
#studio-root .sa-dex-layer .sa-dexentry-46{flex:0 0 auto;height:48px;padding:0 18px;background:none;box-shadow:none;color:var(--sa-soft)}
#studio-root .sa-dex-layer .sa-dexentry-46:hover{color:var(--sa-text);background:var(--sa-s1)}
#studio-root .sa-dex-layer .sa-dexentry-47{flex:0 0 auto;height:48px;padding:0 28px;min-width:160px}

/* Library: touch tablets cannot hover, so the card menu shows at rest. */
@media (hover:none){#studio-root .sa-acc .sa-lib-more{opacity:1}}

/* Create panel footer: long labels (de, fr) stay on one line. */
@media (min-width:900px){
  #studio-root .sa-create .sa-sheet-actions :is(.sec,.pri){white-space:nowrap;padding-inline:12px;min-width:0}
  #studio-root .sa-create .sa-sheet-actions .sec{flex:0 1 auto;padding-inline:18px}
  #studio-root .sa-create .sa-sheet-actions .pri{flex:1 1 auto}
}

/* ======================================================================
   Consistency pass: one page edge, two header patterns, top-aligned panels
   ====================================================================== */

/* ---- One left edge ----------------------------------------------------
   Every top-level page starts its title on the same line as Explore,
   Library and Me. Narrow reading pages keep their column width but sit on
   that edge instead of drifting to the centre, so switching rail tabs never
   moves the title sideways. */
#studio-root :is([data-studio-screen="settings"],[data-studio-screen="help"],[data-studio-screen="notifications"],[data-studio-screen="profile-edit"],.sa-adm,.sa-comments,.sa-terms,.sa-np,.sa-guide){--dk-edge:max(var(--dk-gut),calc((100% - var(--w-wide)) / 2));padding-inline:var(--dk-edge) max(var(--dk-edge),calc(100% - var(--dk-rail) - var(--dk-edge) - var(--dk-col)))}
@media (max-width:1099.98px){
  #studio-root .sa-postpg{--dk-edge:max(var(--dk-gut),calc((100% - var(--w-wide)) / 2));padding-inline:var(--dk-edge) max(var(--dk-gut),calc(100% - var(--dk-rail) - var(--dk-edge) - var(--dk-col)))}
}

/* ---- Page header: a small "‹ Back" link above a 32px title ------------
   Dex, All comments and Edit profile join Help, Notifications, Admin and
   the artist profile. */
#studio-root :is(.sa-dex,.sa-comments,[data-studio-screen="profile-edit"])>.bar{height:auto;min-height:88px;padding:10px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"back acts" "ttl acts";align-items:center;row-gap:2px;column-gap:8px}
#studio-root :is(.sa-dex,.sa-comments)>.bar>.ib:first-child,
#studio-root [data-studio-screen="profile-edit"]>.bar>.sa-pe-back{grid-area:back;justify-self:start;display:flex;align-items:center;width:auto;height:30px;gap:2px;padding:0 10px 0 2px;margin-inline-start:-6px;border:0;border-radius:8px;background:transparent;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-muted);cursor:pointer}
#studio-root :is(.sa-dex,.sa-comments)>.bar>.ib:first-child svg,
#studio-root [data-studio-screen="profile-edit"]>.bar>.sa-pe-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#studio-root :is(.sa-dex,.sa-comments)>.bar>.ib:first-child:hover,
#studio-root [data-studio-screen="profile-edit"]>.bar>.sa-pe-back:hover{color:var(--sa-text);background:var(--sa-s1)}
#studio-root :is(.sa-dex,.sa-comments,[data-studio-screen="profile-edit"])>.bar>.ttl{grid-area:ttl;justify-self:start;font-size:32px;font-weight:600;letter-spacing:-.01em;line-height:1.2;margin:0;text-align:start}
#studio-root .sa-dex>.bar>.ib:last-child{grid-area:acts;align-self:end;margin:0 -10px -2px 0}
html[dir=rtl] #studio-root .sa-dex>.bar>.ib:last-child{margin:0 0 -2px -10px}
#studio-root .sa-comments>.bar>.sa-comments-2{display:none}
#studio-root .sa-acc .sa-profile-edit-1{height:auto}

/* ---- Flow bar: "‹ Back | Title" at the start, actions at the end ------
   Create, Generating, Result, Unlock, Build, the 3D frame (tablet) and a
   post all use it, so the header never changes shape inside a flow. */
#studio-root :is(.sa-create,.sa-gen,.sa-build,.sa-f3,.sa-postpg)>.bar,#studio-root .sa-result-bar,#studio-root .sa-unlock-hero .bar{justify-content:flex-start;gap:4px}
#studio-root :is(.sa-create,.sa-gen,.sa-build,.sa-f3,.sa-postpg)>.bar>.ttl,#studio-root .sa-unlock-hero .bar>.sa-unlock-ttl{display:block;position:static;transform:none;flex:0 1 auto;min-width:0;margin:0;font-size:16px;font-weight:600;line-height:20px;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The leading Back control: chevron and a word, quiet until hovered. */
#studio-root :is(.sa-build,.sa-f3,.sa-postpg)>.bar>.ib:first-child,#studio-root .sa-result-bar>.ib:first-child,#studio-root .sa-unlock-hero .bar>.ib:first-child{width:auto;height:36px;gap:2px;padding:0 12px 0 4px;margin-inline-start:-4px;border-radius:10px;background:transparent;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-muted);flex:none}
#studio-root :is(.sa-build,.sa-f3,.sa-postpg)>.bar>.ib:first-child svg,#studio-root .sa-result-bar>.ib:first-child svg,#studio-root .sa-unlock-hero .bar>.ib:first-child svg{width:20px;height:20px}
#studio-root :is(.sa-build,.sa-f3,.sa-postpg)>.bar>.ib:first-child:hover,#studio-root .sa-result-bar>.ib:first-child:hover,#studio-root .sa-unlock-hero .bar>.ib:first-child:hover{color:var(--sa-text);background:var(--sa-s1)}
/* A thin divider between Back and the title. */
#studio-root :is(.sa-build,.sa-f3,.sa-postpg)>.bar>.ib:first-child+.ttl,#studio-root .sa-unlock-hero .bar>.sa-unlock-ttl{margin-inline-start:6px;padding-inline-start:14px;border-inline-start:1px solid var(--sa-line)}
/* Actions sit at the end. */
#studio-root :is(.sa-create,.sa-build,.sa-postpg)>.bar>.ib:last-child,#studio-root .sa-gen>.bar>.sa-gen-cancel,#studio-root .sa-result-bar>.ib:last-child{margin-inline-start:auto}
#studio-root :is(.sa-f3)>.bar>.sa-bar-spacer,#studio-root .sa-gen>.bar>.sa-gen-spacer,#studio-root .sa-unlock-hero .bar>.sa-bar-spacer{display:none}
/* Create: the title leads; Restore and Load are labelled actions at the end. */
#studio-root .sa-create>.bar>.ttl{order:-1}
#studio-root .sa-create>.bar>.ib:first-child{margin-inline-start:auto}
#studio-root .sa-create>.bar>.ib:last-child{margin-inline-start:0}
/* Generating: Cancel is a quiet text action at the end. */
#studio-root .sa-gen>.bar>.sa-gen-cancel{width:auto;height:36px;padding:0 14px;border-radius:10px;font-size:14px;color:var(--sa-soft)}
#studio-root .sa-gen>.bar>.sa-gen-cancel:hover{background:var(--sa-s1);color:var(--sa-text)}
/* Unlock: Back (not an X) and its name, like every other step. */
#studio-root .sa-unlock-hero .bar>.ib:first-child>svg:first-child{display:none}
#studio-root .sa-unlock-hero .bar .sa-unlock-chev{display:block}
#studio-root .sa-unlock-step{display:none}
/* Build: one Back in the header; the step control says Previous. */
#studio-root .sa-build-prev-ph{display:none}
#studio-root .sa-build-prev-dk{display:inline}
/* Previous and Next are an equal pair; their labels never wrap. */
#studio-root .sa-build-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#studio-root .sa-build-nav .btn{width:auto;min-width:0;white-space:nowrap;padding-inline:12px;gap:6px}
/* Post: labelled actions. */
#studio-root .sa-postpg>.bar>.ib:last-child{margin-inline-end:-10px}
#studio-root .sa-postpg>.bar{padding-inline:0}
@media (min-width:1100px){#studio-root .sa-postpg>.bar{padding-inline:20px 24px}}
/* Result at tablet width: tabs follow Back instead of floating over it. */
@media (max-width:899.98px){
  #studio-root .sa-result-bar>.ib:last-child{margin-inline-start:0}
  #studio-root .sa-result-bar .sa-result-tabs{margin-inline:auto}
}

/* ---- Me and the artist profile ---------------------------------------- */
#studio-root .sa-me-ttl-ph{display:none}
#studio-root .sa-me-ttl-dk{display:inline}

/* ---- Light theme: small grey and green text meets AA on large screens --- */
:root.studio[data-theme="light"]{--sa-dim:#62666D;--sa-green:#237043}
:root.studio[data-theme="light"] #studio-root .av:is(.sa-tone-blue,.sa-tone-coral,.sa-tone-violet,.sa-tone-green){color:#fff}

/* ---- Clickable things look clickable ----------------------------------- */
#studio-root :is(.tabs button,[role="tab"],.ptab,.li:is(button,a),.sa-settings-4,.chip:is(button),.seg button,[role="radio"],.sa-color-row){cursor:pointer}
#studio-root :is(button,[role="tab"],[role="radio"]):disabled{cursor:not-allowed}

/* ---- Arabic: a value and its unit read in one direction ("60 cm") ------ */
#studio-root :is(.vchip,.val,.mono,.sa-setting-val [data-studio-inches]){unicode-bidi:isolate}
#studio-root .sa-setting-val [data-studio-inches]{white-space:nowrap}
html[dir=rtl] #studio-root :is(.vchip,.sa-thread-stats .val,.sa-gen-stats .val,[data-studio-inches]){direction:ltr}

/* ---- Create flow: panels share the stage's top edge ------------------- */
@media (min-width:900px){
  /* Create: the settings card is exactly as tall as the photo stage, with
     the footer pinned to its bottom edge. */
  #studio-root .sa-create{--dk-stage-h:max(460px,calc(100vh - 162px))}
  #studio-root .sa-stage{height:var(--dk-stage-h)}
  #studio-root .sa-create [data-studio-sheet="settings"]>.sheet{height:var(--dk-stage-h);max-height:none}
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{flex:1 1 auto}
  /* Light theme: the letterbox beside the photo is the app's own surface. */
  /* Dark theme: the area outside the frame is clearly dimmed. */
  :root.studio:not([data-theme="light"]) #studio-root .sa-create .sa-stage-cut{box-shadow:0 0 0 3000px rgba(8,9,10,.7)}
  /* Short windows: a labelled cue says more settings are below. */
  #studio-root .sa-create [data-studio-sheet="settings"]>.sheet{position:relative;left:auto;top:auto;timeline-scope:--dk-setb}
  /* Same top padding as the stage (the [hidden] variant outranked it). */
  #studio-root .sa-create [data-studio-sheet="settings"]:is([hidden],:not([hidden])){padding-top:24px}
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{scroll-timeline:--dk-setb block}
  /* The cue is the scroller's own last row, stuck to its bottom edge on an
     opaque strip: content scrolls under it (as under any panel edge) and it
     never sits on a control. It shows only while more is below. */
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{padding-bottom:12px;scroll-padding-block:16px 44px}
  #studio-root .sa-more-cue{display:flex;position:sticky;bottom:-12px;z-index:1;flex:none;height:34px;margin:calc(-34px - var(--dk-setgap,8px)) -16px -12px;align-items:center;justify-content:center;pointer-events:none;background:var(--sa-s1);opacity:0}
  #studio-root .sa-more-cue::before{content:'';position:absolute;inset-inline:0;bottom:100%;height:24px;background:linear-gradient(to bottom,transparent,var(--sa-s1))}
  #studio-root .sa-more-cue>span{display:flex;align-items:center;gap:4px;font:500 12px 'Space Grotesk',sans-serif;color:var(--sa-muted)}
  #studio-root .sa-more-cue svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  /* Scrolled: a hairline under the title says the list continues above. */
  #studio-root .sa-create .sa-sheet-head{position:relative;z-index:2;box-shadow:0 1px 0 transparent;padding-bottom:10px}
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{padding-top:4px}
  @supports (animation-timeline:scroll()){
    #studio-root .sa-more-cue{animation:dk-cue linear both;animation-timeline:--dk-setb}
    #studio-root .sa-create .sa-sheet-head{animation:dk-sethead linear both;animation-timeline:--dk-setb}
    #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{animation:dk-settop linear both;animation-timeline:scroll(self)}
  }

  /* Result: the panel starts level with the canvas, not mid-window. */
  #studio-root .sa-result{grid-template-rows:auto auto auto auto auto auto minmax(0,1fr)}
  #studio-root .sa-result-stage{grid-row:3 / 8!important;justify-content:flex-start}
  #studio-root .sa-result>.sa-algo-row{grid-row:3}
  #studio-root .sa-result>.sa-thread-card{grid-row:4}
  #studio-root .sa-result>.sa-result-acts{grid-row:5}
  #studio-root .sa-result>.sa-result-cta{grid-row:6}
  /* The units note becomes the toggle's tooltip. */
  #studio-root .sa-result .sa-thread-note{display:none}

  /* Build: the board and the call-outs start on the same line. */
  #studio-root .sa-build{grid-template-rows:auto auto auto auto auto minmax(0,1fr)}
  #studio-root .sa-build-stage{grid-row:2 / 7!important;align-items:flex-start;padding:52px 32px 24px}
  #studio-root .sa-build>.sa-build-progress{grid-row:2;padding-top:28px}
  #studio-root .sa-build>.sa-build-nails{grid-row:3}
  #studio-root .sa-build>.sa-build-next{grid-row:4}
  #studio-root .sa-build>.sa-build-foot{grid-row:5}

  /* Unlock: the piece and the plans share a top edge; the glow is the
     piece's own soft shadow, so no box edge can show. */
  #studio-root .sa-unlock{grid-template-rows:auto auto auto auto minmax(0,1fr)}
  #studio-root .sa-unlock-hero{background:none}
  #studio-root .sa-unlock-art{top:28px;transform:translateX(-50%);box-shadow:0 0 0 6px var(--sa-acc-12),0 0 0 1px var(--sa-acc-35),0 24px 60px var(--sa-shade),0 0 160px 20px var(--dk-uglow)}
  html[dir=rtl] #studio-root .sa-unlock-art{transform:translateX(50%);left:auto;right:50%}
  #studio-root .sa-unlock>.sa-unlock-head{grid-row:1;padding-top:28px}
  #studio-root .sa-unlock>.sa-unlock-seq{grid-row:2}
  #studio-root .sa-unlock>.sa-unlock-plans{grid-row:3}
  #studio-root .sa-unlock>.sa-unlock-cta{grid-row:4;padding-bottom:32px}
  #studio-root .sa-unlock-head h1{line-height:1.15;margin-top:-4px}
}
@media (min-width:900px) and (max-height:940px){
  #studio-root .sa-create [data-studio-sheet="settings"]:is([hidden],:not([hidden])){padding-top:16px}
  #studio-root .sa-create .sa-sheet-head{padding-bottom:8px}
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{padding-top:2px}
}
/* Spare height spreads the rows evenly instead of pooling under the last card. */
@media (min-width:900px){
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{--dk-setgap:clamp(8px,(100vh - 780px) / 6,24px);gap:var(--dk-setgap)}
}
/* Very tall windows: the photo stops growing at 1000px, the settings card
   keeps the stage's height (footer on its bottom edge) and the rows spread
   evenly over it, so no orphan gap opens under either column. */
@media (min-width:900px) and (min-height:1180px){
  #studio-root .sa-create{--dk-stage-h:min(calc(100vh - 162px),1000px)}
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{--dk-setgap:24px}
  #studio-root .sa-create .sa-more-cue{display:none}
}
@keyframes dk-cue{from,82%{opacity:1}to{opacity:0}}
@keyframes dk-settop{from{-webkit-mask-image:none;mask-image:none}3%,to{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 14px);mask-image:linear-gradient(to bottom,transparent,#000 14px)}}
@keyframes dk-sethead{from{box-shadow:0 1px 0 transparent}3%,to{box-shadow:0 1px 0 var(--sa-s2)}}

/* ---- Large screens: one centred workspace, header and stepper included -
   The header's Back and actions and the stepper's ends line up with the
   canvas column and the panel, instead of the window's far edges. */
@media (min-width:1600px){
  #studio-root :is(.sa-create,.sa-gen,.sa-result,.sa-unlock,.sa-build){--dk-stagew:960px;--dk-ws:calc(var(--dk-stagew) + var(--dk-panel));--dk-wspad:max(24px,calc((100% - var(--dk-ws)) / 2))}
  #studio-root .sa-gen{--dk-panel:400px}
  #studio-root :is(.sa-create,.sa-gen,.sa-result,.sa-build)>.bar{padding-inline:var(--dk-wspad)}
  #studio-root :is(.sa-create,.sa-gen,.sa-result,.sa-build)>.steps{padding-inline:var(--dk-wspad)}
  /* Fixed bars measure the window, not the page. */
  #studio-root .sa-unlock-hero .bar,#studio-root .sa-unlock .sa-unlock-steps{padding-inline:max(24px,calc((100vw - var(--dk-rail) - var(--dk-ws)) / 2))}
  #studio-root :is(.sa-result,.sa-build,.sa-unlock){grid-template-columns:minmax(0,1fr) minmax(0,var(--dk-stagew)) var(--dk-panel) minmax(0,1fr)}
  #studio-root .sa-result-tabs{left:calc(var(--dk-wspad) + min(var(--dk-stagew),100% - var(--dk-panel)) / 2)}
  html[dir=rtl] #studio-root .sa-result-tabs{left:auto;right:calc(var(--dk-wspad) + min(var(--dk-stagew),100% - var(--dk-panel)) / 2)}
  /* Create follows the same columns. */
  #studio-root .sa-create{grid-template-columns:minmax(0,1fr) minmax(0,var(--dk-stagew)) var(--dk-panel) minmax(0,1fr)}
  #studio-root .sa-create>:not(.bar,.steps,.sa-sheet-layer,.sa-create-setup,.sa-create-empty){grid-column:3}
  #studio-root .sa-create :is(.sa-stage-wrap,.sa-drop){grid-column:2}
  #studio-root .sa-create [data-studio-sheet="settings"],#studio-root .sa-create [data-studio-sheet="settings"][hidden],#studio-root .sa-restore-card{grid-column:3}
  /* Stage and panel meet with the usual 24px gutter at the stage's end. */
  #studio-root .sa-create :is(.sa-stage-wrap){padding-inline-start:0}
  #studio-root .sa-create .sa-drop{margin-inline-start:0}
  #studio-root .sa-create [data-studio-sheet="settings"]:is([hidden],:not([hidden])){padding-inline-end:0}
  #studio-root :is(.sa-result-stage,.sa-build-stage){padding-inline-start:0}
  #studio-root .sa-unlock-hero{margin-inline-start:0}
  /* The piece keeps the size it had on Result. */
  #studio-root .sa-unlock-art{width:min(1120px,calc(100vh - 200px),calc(var(--dk-stagew) - 96px))}
}
@media (min-width:2200px){
  #studio-root :is(.sa-create,.sa-gen,.sa-result,.sa-unlock,.sa-build){--dk-stagew:1200px}
}

/* ---- Portrait tablets (768 to 899): the create flow -------------------- */
@media (max-width:899.98px){
  /* The stepper keeps clear of the header. */
  #studio-root :is(.sa-create,.sa-gen,.sa-result)>.steps{padding-top:12px}
  /* Generating: ring, numbers and the note read as one centred block. */
  #studio-root .sa-gen{min-height:100vh}
  #studio-root .sa-gen-main{flex:none;margin-top:auto}
  #studio-root .sa-gen-note{margin-bottom:auto;padding:16px 32px 48px;max-width:420px;align-self:center}
  /* Unlock: the same stepper as its siblings, the piece larger, and the
     button right under the plans (sticky only when the page scrolls). */
  #studio-root .sa-unlock-hero{height:auto;overflow:visible;background:none;display:flex;flex-direction:column}
  #studio-root .sa-unlock .sa-unlock-steps{display:flex;padding:12px 0 0}
  #studio-root .sa-unlock-art{position:relative;left:auto;top:auto;margin:36px auto 28px;width:min(300px,30vh);height:auto;aspect-ratio:1;box-shadow:0 0 0 6px var(--sa-acc-12),0 0 0 1px var(--sa-acc-35),0 24px 60px var(--sa-shade),0 0 120px 10px var(--sa-glow)}
  #studio-root .sa-unlock-art.is-rect{aspect-ratio:auto}
  #studio-root .sa-unlock-cta{margin-top:24px}
  /* Build: the voice card follows Up next; only the page end is the floor. */
  #studio-root .sa-build-foot{position:static;margin-top:24px;background:none;padding-top:0}
}

/* ---- Crop in short windows: less chrome, more photo -------------------- */
@media (max-height:680px){
  #studio-root .sa-layer.sa-crop{padding-block:12px}
  #studio-root .sa-crop-page>.bar{height:48px}
  #studio-root .sa-crop-stage{height:calc(100vh - 208px);min-height:240px}
  #studio-root .sa-crop-controls{padding:10px 24px 0;gap:8px}
  #studio-root .sa-crop-actions{padding:10px 24px;margin-top:10px}
  #studio-root .sa-crop-actions :is(.sec,.pri){height:44px}
}

/* ---- Thread colour: a flyout beside the settings panel ---------------- */
#studio-root .sa-thread.is-anchored>.sa-page{top:var(--pop-top);bottom:auto;width:var(--pop-w,340px);max-height:calc(100vh - 32px);overflow:visible;box-shadow:0 0 0 1px var(--sa-line),0 24px 64px var(--sa-shade),0 4px 12px var(--sa-shade-soft)}
#studio-root .sa-thread.is-anchored .sa-thread-page{max-height:calc(100vh - 32px);overflow-y:auto;border-radius:16px}
/* The selected chip shows one ring; keyboard focus adds a separate outer one. */
#studio-root .sa-thread :is(.sa-seg-3 button,.sa-seg-6 button,.sa-palette):focus-visible{outline-offset:3px}
#studio-root .sa-thread :is(.sa-seg-3 button,.sa-seg-6 button,.sa-palette):focus:not(:focus-visible){outline:0}

/* ---- Downloads: the focus ring follows the row's rounded corners ------- */
#studio-root .sa-dl-layer :is(.sa-dl-row,.sa-dl-card):focus-visible{outline-offset:2px;border-radius:14px}
#studio-root .sa-dl-card:has(>.sa-dl-row:focus-visible){outline:2px solid var(--sa-acc);outline-offset:2px}
#studio-root .sa-dl-card>.sa-dl-row:focus-visible{outline:0}

/* ---- Explore: the header and its tabs stay together when scrolled ----- */
#studio-root .sa-com .sa-explore-1{position:sticky;top:0;z-index:6;background:var(--sa-bg)}
#studio-root .sa-explore>.tabs{top:88px}

/* ---- Post below 1100: the title and caption show with the composer ---- */
@media (max-width:1099.98px){
  #studio-root .sa-com .sa-post-4{max-height:max(300px,calc(100vh - 400px))}
  #studio-root .sa-com .sa-post-5{width:min(62%,calc(max(300px,100vh - 400px) * .8))}
  #studio-root .sa-com .sa-pd-photo-img{max-height:max(300px,calc(100vh - 400px))}
}

/* ---- New post, step 1: the piece fills its card, status as in Library - */
#studio-root .sa-np .dcell{align-items:stretch;padding:10px 10px 12px;gap:2px;text-align:start;transition:background-color .12s,box-shadow .12s}
#studio-root .sa-np .dcell:not(.sa-postpick-9):hover{background:var(--sa-s15);box-shadow:inset 0 0 0 1px var(--sa-line2)}
#studio-root .sa-np .sa-postpick-10{width:100%;height:auto;aspect-ratio:1;margin-bottom:8px}
#studio-root .sa-np .sa-postpick-13{text-align:start;font-size:14px;padding-inline:2px}
#studio-root .sa-np :is(.sa-postpick-14,.sa-postpick-15,.sa-postpick-17){padding-inline:2px}
#studio-root .sa-np .sa-postpick-15{color:var(--sa-green)}
#studio-root .sa-np .sa-postpick-17{display:flex;align-items:center;gap:5px;color:var(--sa-acc-tx)}
#studio-root .sa-np .sa-postpick-17::before{content:'';width:12px;height:12px;flex-shrink:0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/12px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/12px no-repeat}
#studio-root .sa-sw .sa-postpick-8{grid-template-columns:repeat(auto-fill,minmax(168px,1fr))!important;gap:16px!important}

/* ---- Profiles ---------------------------------------------------------- */
/* The posts grid keeps a steady density across the 1100 breakpoint. */
#studio-root .sa-pf .postg2{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))!important}
/* Someone's profile is titled with their name; the card starts with the
   avatar and bio, so the name is not said twice. */
#studio-root [data-studio-screen="artist"] .sa-artist-ttl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

/* ---- Dex: locked badges are quiet outlines in light mode --------------- */
:root.studio[data-theme="light"] #studio-root .sa-soc .md.lk2{background:var(--sa-s2);box-shadow:inset 0 0 0 1.5px var(--sa-line2);color:#9A9EA5}
:root.studio[data-theme="light"] #studio-root .sa-soc .md.lk2.sa-dex-xl-locked{background:var(--sa-s2);box-shadow:inset 0 0 0 1.5px var(--sa-line2);color:#9A9EA5}
/* Arabic: the category chips fade out at their reading end. */
@media (max-width:1099.98px){html[dir=rtl] #studio-root .sa-soc .sa-dex-35{-webkit-mask-image:linear-gradient(270deg,#000 80%,transparent);mask-image:linear-gradient(270deg,#000 80%,transparent)}}

/* ---- Library: the ⋯ handle stays while its menu is open ---------------- */
#studio-root .sa-acc .sa-lib-card.is-menu-open .sa-lib-more{opacity:1;background:var(--sa-s2)}
#studio-root .sa-acc .sa-lib-card.is-menu-open{box-shadow:inset 0 0 0 1px var(--sa-line2)}
#studio-root .sa-acc-sheet.is-anchored .sheet.sa-menu-sheet{width:var(--pop-w,240px)}

/* ---- Save design: the retention note is the footer's first item ------- */
#studio-root .sa-acc .sa-library-15>.sa-library-16{display:none}
#studio-root .sa-acc .sa-library-20>.sa-save-ret{display:flex;position:static;max-width:none;margin-inline-end:auto;align-self:center}
#studio-root .sa-acc .sa-library-20>.sa-save-ret[hidden]{display:none}
#studio-root .sa-acc .sa-library-20{align-items:center;gap:16px;padding-inline:20px}

/* ---- Help: both columns' cards start on the same line ----------------- */
@media (min-width:1100px){
  #studio-root .sa-acc .sa-help-2{align-items:start}
}

/* ---- Terms: close sits at the end, the title on the page edge --------- */
#studio-root [data-studio-screen="terms"]>.bar{justify-content:flex-start;padding-inline:0}
#studio-root [data-studio-screen="terms"]>.bar>.ib:first-child{order:3;margin-inline:auto 0}
#studio-root [data-studio-screen="terms"]>.bar>.ttl{font-size:20px}
#studio-root [data-studio-screen="terms"]>.bar>.sa-terms-1{display:none}
#studio-root .sa-terms .sa-terms-toc-i[aria-current="true"]{background:var(--sa-s1);color:var(--sa-text);box-shadow:inset 2px 0 0 var(--sa-acc)}
html[dir=rtl] #studio-root .sa-terms .sa-terms-toc-i[aria-current="true"]{box-shadow:inset -2px 0 0 var(--sa-acc)}

/* ---- Admin reports: triage never runs under the post's own actions ---- */
#studio-root .sa-sw .sa-reports-7{grid-template-columns:minmax(0,1fr)}
#studio-root .sa-sw .sa-reports-7>.row{grid-column:1;justify-self:start;margin-inline-start:64px}
@media (min-width:1100px){
  #studio-root .sa-sw .sa-reports-7{grid-template-columns:minmax(0,1fr) auto}
  #studio-root .sa-sw .sa-reports-7>.row{grid-column:2;justify-self:end;margin-inline-start:0}
}
#studio-root [data-studio-screen="artist"] .sa-artist-17{display:none}

/* ---- New post: flow bars like the rest of the app --------------------- */
#studio-root .sa-np>.bar{justify-content:flex-start;gap:4px;height:72px}
#studio-root .sa-np>.bar :is(.sa-postpick-1,.sa-newpost-1){display:flex;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:12px;text-align:start;min-width:0}
#studio-root .sa-np>.bar :is(.sa-postpick-1,.sa-newpost-1) .ttl{font-size:20px;white-space:nowrap}
#studio-root [data-studio-screen="post-pick"]>.bar>.sa-postpick-3{display:none}
#studio-root [data-studio-screen="post-pick"]>.bar>.ib:first-child{margin-inline:auto 0}
#studio-root [data-studio-screen="post-write"]>.bar>.ib:first-child{width:auto;height:36px;gap:2px;padding:0 12px 0 4px;margin-inline-start:-6px;border-radius:10px;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-muted)}
#studio-root [data-studio-screen="post-write"]>.bar>.ib:first-child:hover{color:var(--sa-text);background:var(--sa-s1)}
#studio-root [data-studio-screen="post-write"]>.bar>.ib:first-child+.sa-newpost-1{margin-inline-start:6px;padding-inline-start:14px;border-inline-start:1px solid var(--sa-line)}
#studio-root [data-studio-screen="post-write"]>.bar>.ib:last-child{margin-inline-start:auto}
@media (min-width:1100px){#studio-root .sa-acc .sa-help-8{display:none}}
/* Tablet portrait: flow bars sit on the column edge like the stepper. */
@media (max-width:899.98px){
  #studio-root :is(.sa-create,.sa-gen,.sa-result,.sa-build,.sa-f3)>.bar,#studio-root .sa-unlock-hero .bar{padding-inline:0}
  #studio-root .sa-create>.bar>.ib:last-child,#studio-root .sa-gen>.bar>.sa-gen-cancel,#studio-root .sa-result-bar>.ib:last-child,#studio-root .sa-build>.bar>.ib:last-child{margin-inline-end:-10px}
}
/* Sign in and sign up have no rail: the form centres in its own half. */
#studio-root:has(>.sa-rail) :is([data-studio-screen="signin"],[data-studio-screen="signup"]){margin-inline-start:0}
:root.studio[data-theme="light"] #studio-root .sa-stage{background:var(--sa-s2)}

/* ---- Unlock: the sequence teaser and the fine print -------------------- */
#studio-root .sa-unlock-seq{padding-inline:16px;gap:14px}
#studio-root .sa-unlock-seq-lbl{width:auto;white-space:nowrap}
#studio-root .sa-restore-ph{display:none}
#studio-root .sa-restore-dk{display:inline}
/* "Restore purchase" is one link style at every width. */
#studio-root .sa-unlock-foot .btn{color:var(--sa-acc-tx);text-decoration:underline;text-decoration-color:var(--sa-acc-35);text-underline-offset:3px;white-space:nowrap}
#studio-root .sa-unlock-foot .btn:hover{text-decoration-color:currentColor}
#studio-root .sa-unlock-seq-nums{overflow:hidden;-webkit-mask-image:linear-gradient(to right,#000 75%,transparent);mask-image:linear-gradient(to right,#000 75%,transparent)}
html[dir=rtl] #studio-root .sa-unlock-seq-nums{-webkit-mask-image:linear-gradient(to left,#000 75%,transparent);mask-image:linear-gradient(to left,#000 75%,transparent)}
#studio-root .sa-unlock-foot{flex-wrap:wrap;column-gap:16px;row-gap:0}
#studio-root .sa-unlock-foot>span{white-space:nowrap}
/* Create's header actions carry their names on tablets too. */
@media (max-width:899.98px){
  #studio-root .sa-create>.bar>.ib{width:auto;gap:8px;padding:0 14px 0 10px;border-radius:12px;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-soft)}
  #studio-root .sa-create>.bar>.ib::after{content:attr(aria-label)}
  #studio-root .sa-create>.bar>.ib:hover{background:var(--sa-s1);color:var(--sa-text)}
  #studio-root .sa-create>.bar>.ib:disabled{display:none}
}
/* Light theme: outside the frame is clearly veiled, so the strung area reads. */
:root.studio[data-theme="light"] #studio-root .sa-create .sa-stage-cut{box-shadow:0 0 0 3000px rgba(246,245,242,.8);outline-color:var(--sa-acc)}
/* Result: Algorithm B also shows a small spinner while it is still computing (percent and fill are in studio.css). */
#studio-root .sa-algo-seg button.is-computing::after{content:'';flex:none;width:12px;height:12px;border-radius:50%;border:1.5px solid currentColor;border-inline-end-color:transparent;animation:dk-spin .8s linear infinite;opacity:.8}
@keyframes dk-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#studio-root .sa-algo-seg button.is-computing::after{animation-duration:2.4s}}
#studio-root .sa-result .sa-thread-note{display:none}

/* ---- 3D frame on tablets (768 to 1099) --------------------------------
   Every block sits on the column edges (no phone 16px insets), the model
   gets real room, and the footer is pinned to the window's bottom. */
@media (max-width:1279.98px){
  #studio-root .sa-f3{min-height:100vh;padding-bottom:0}
  #studio-root .sa-f3 :is(.sa-f3-stage,.sa-f3-main,.sa-f3-more){margin-inline:0}
  #studio-root .sa-f3-stage{height:min(50vh,440px);min-height:300px;margin-top:8px;container-type:size}
  /* The model keeps the phone stage's proportions (its camera is framed for
     them), centred in the larger stage above the view switch. */
  #studio-root .sa-f3-host{left:50%;top:calc(50% - 26px);width:min(100cqw - 32px,(100cqh - 100px) * 1.38);height:auto;aspect-ratio:216 / 157;margin:0;transform:translate(-50%,-50%)}
  #studio-root .sa-f3-view{left:50%;right:auto;width:min(360px,calc(100% - 24px));transform:translateX(-50%);bottom:12px}
  html[dir=rtl] #studio-root .sa-f3-view{transform:translateX(50%);left:auto;right:50%}
  #studio-root .sa-f3-foot{margin-top:auto;padding:16px 0 24px}
  #studio-root .sa-f3-main{margin-top:16px}
}
/* Landscape tablets: the model on the left, its settings on the right. */
@media (min-width:900px) and (max-width:1279.98px){
  #studio-root .sa-f3{display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto auto auto minmax(0,1fr) auto;column-gap:24px;align-content:stretch;padding-inline:var(--dk-gut)}
  #studio-root .sa-f3>.bar{grid-column:1 / -1;grid-row:1}
  #studio-root .sa-f3>.sa-f3-stage{grid-column:1;grid-row:2 / 6;align-self:start;position:sticky;top:16px;height:calc(100vh - 64px - 40px);min-height:360px;margin:8px 0 24px}
  #studio-root .sa-f3>.sa-f3-main{grid-column:2;grid-row:2;margin-top:8px}
  #studio-root .sa-f3>.sa-f3-more{grid-column:2;grid-row:3}
  #studio-root .sa-f3>.sa-f3-foot{grid-column:2;grid-row:5}
  #studio-root .sa-f3-actions .btn{min-width:0;white-space:nowrap;padding-inline:12px}
}
/* 3D frame (desktop): the same "‹ Back | Title" flow bar as every other step. */
@media (min-width:1280px){
  #studio-root .sa-f3d .dk-top{gap:4px}
  #studio-root .sa-f3d .dk-top>[data-studio-action="f3-back"]{height:36px;gap:2px;padding:0 12px 0 4px;margin-inline-start:-4px;border-radius:10px;border:0;box-shadow:none;background:transparent;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-muted)}
  #studio-root .sa-f3d .dk-top>[data-studio-action="f3-back"] svg{width:20px;height:20px}
  #studio-root .sa-f3d .dk-top>[data-studio-action="f3-back"]:hover{background:var(--sa-s1);color:var(--sa-text)}
  #studio-root .sa-f3d .dk-crumb{margin-inline-start:6px;padding-inline-start:14px;border-inline-start:1px solid var(--sa-line);font-size:14px}
  #studio-root .sa-f3d .dk-crumb h1{font-size:16px;line-height:20px}
}
/* Unlock: a faint, wide glow (a strong one shows banding rings). */
:root.studio{--dk-uglow:rgba(255,181,71,.07)}
:root.studio[data-theme="light"]{--dk-uglow:rgba(214,138,20,.16)}
/* Unlock in the 340px panel (landscape tablets): perks read one per line. */
@media (min-width:900px) and (max-width:1099.98px){
  #studio-root .sa-unlock .sa-plan-perks{grid-template-columns:minmax(0,1fr);gap:6px}
}
/* Short windows: a smaller heading, and the buy button stays in view. */
@media (min-width:900px) and (max-height:700px){
  #studio-root .sa-unlock>.sa-unlock-head{padding-top:20px}
  #studio-root .sa-unlock-head h1{font-size:28px}
  #studio-root .sa-unlock-seq{margin-top:14px}
  #studio-root .sa-unlock-plans{padding-top:16px}
  #studio-root .sa-unlock>.sa-unlock-cta{position:sticky;bottom:0;z-index:2;margin-top:0;padding-top:14px;padding-bottom:16px;background:var(--sa-bg)}
}
/* The third step is where the piece is unlocked and built. */
#studio-root .sa-step-ph{display:none}
#studio-root .sa-step-dk{display:inline}
/* Settings: the section is "General", so German does not repeat the title. */
#studio-root .sa-pref-ph{display:none}
#studio-root .sa-pref-dk{display:inline}
/* ---- Home on landscape tablets (960 to 1099): the two-column hero, so
   the primary action is above the fold at 1024x768. */
@media (min-width:960px) and (max-width:1099.98px){
  #studio-root .sa-home-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:". art" "h1 art" "lede art" "cta art" ". art";grid-template-rows:1fr auto auto auto 1fr;justify-items:start;text-align:start;column-gap:40px;row-gap:20px;min-height:min(560px,calc(100vh - 112px));padding:8px 0 16px}
  #studio-root .sa-home-hero h1{grid-area:h1;font-size:52px;max-width:none;margin:0}
  #studio-root .sa-home-lede{grid-area:lede;font-size:17px}
  #studio-root .sa-home-ctas{grid-area:cta;justify-content:flex-start;flex-wrap:wrap;margin-top:8px}
  #studio-root .sa-home-ctas .btn{min-width:0}
  #studio-root .sa-home-showcase{grid-area:art;justify-self:end;align-self:center;padding:0;gap:18px}
  #studio-root .sa-home-disk{width:min(400px,38vw,calc(100vh - 200px));height:min(400px,38vw,calc(100vh - 200px))}
  #studio-root .sa-home-how{padding-top:48px}
}
/* Stacked hero in a short window: the disk shrinks so the action shows. */
@media (max-width:959.98px) and (max-height:900px){
  #studio-root .sa-home-disk{width:min(380px,40vh);height:min(380px,40vh)}
}
/* Account screens: an initials avatar has the same colour as in Explore,
   comments and profiles. */
#studio-root .sa-acc .av.sa-tone-acc{background:var(--sa-acc)}
#studio-root .sa-acc .av.sa-tone-blue{background:var(--sa-blue)}
#studio-root .sa-acc .av.sa-tone-coral{background:var(--sa-coral)}
#studio-root .sa-acc .av.sa-tone-violet{background:var(--sa-violet)}
#studio-root .sa-acc .av.sa-tone-green{background:var(--sa-green)}

/* ---- Comments: the shared page-header spacing above the post card ----- */
#studio-root .sa-comments>.bar{margin-bottom:20px}

/* ---- Post: a detail page fills the content width below 1100 ----------- */
@media (max-width:1099.98px){
  #studio-root .sa-postpg{padding-inline:var(--dk-gut)}
}
/* ---- Post (two panes): title and caption lead, the counts follow ----- */
@media (min-width:1100px){
  #studio-root .sa-postpg>.ptxt{grid-row:3;padding:4px 28px 0}
  #studio-root .sa-postpg>.pacts{grid-row:4;padding-top:6px}
}

/* ---- Explore: a hairline under the header once the feed scrolls ------ */
#studio-root .sa-explore>.tabs{box-shadow:0 1px 0 var(--sa-s2)}
@supports (animation-timeline:scroll()){
  #studio-root .sa-explore>.tabs{box-shadow:none;animation:dk-stuck linear both;animation-timeline:scroll(root);animation-range:0 120px}
}
@keyframes dk-stuck{from{box-shadow:0 1px 0 transparent}to{box-shadow:0 1px 0 var(--sa-s2),0 10px 24px -14px var(--sa-shade)}}

/* ---- Notifications: the empty state is a framed panel on the column --- */
#studio-root .sa-acc .sa-notifications-4:empty+.sa-notifications-22{margin-top:12px;padding:56px 32px 48px;border-radius:20px;background:var(--sa-s1);box-shadow:inset 0 0 0 1px var(--sa-line0)}

/* ---- Help: one "we read every message" line (the email card's), and the
   two columns span the shared content width (5 : 7) from 1100. */
#studio-root .sa-acc .sa-help-8{display:none}
@media (min-width:1100px){
  #studio-root [data-studio-screen="help"]{--dk-col:var(--w-wide)}
  #studio-root .sa-acc .sa-help-2{grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:32px}
  #studio-root .sa-acc .sa-help-13{margin-inline-start:calc((100% - 32px) * 5 / 12 + 32px)}
}

/* ---- Settings: two columns in the medium container from 1100 (the same
   right edge as Notifications and Admin) instead of one marooned one */
@media (min-width:1100px){
  #studio-root [data-studio-screen="settings"]{--dk-col:var(--w-medium)}
  #studio-root .sa-acc .sa-settings-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;row-gap:24px;align-items:start}
  #studio-root .sa-acc .sa-settings-2>.sa-settings-3{grid-column:1 / -1;grid-row:1}
  #studio-root .sa-acc .sa-settings-2>:nth-child(3){grid-column:1;grid-row:2}
  #studio-root .sa-acc .sa-settings-2>:nth-child(4){grid-column:2;grid-row:2}
  #studio-root .sa-acc .sa-settings-2>:nth-child(5){grid-column:2;grid-row:3;margin-top:-8px}
}

/* Light Dex: blue labels (RARE, numbers) meet AA on the cream page. */
:root.studio[data-theme="light"] #studio-root .sa-dex{--sa-blue:#2A63BE}
:root.studio[data-theme="light"] #studio-root .sa-soc .dexframe .dexscreen{background:var(--sa-bg);background-image:none;box-shadow:inset 0 0 0 1px var(--sa-line)}
/* Dex: the summary, chips, toolbar, search and grid share the title's edges. */
#studio-root .sa-soc .sa-dex>:is(.sa-dex-2,.sa-dex-35,.sa-dex-38,.sa-dex-42,.sa-dex-search){padding-inline:0}
#studio-root .sa-acc .sa-notifications-4:empty+.sa-notifications-22 .sa-notifications-23{background:var(--sa-s2)}

/* ---- Library: "New pattern" sits level with the title, like Explore's Post */
#studio-root [data-studio-screen="library"]>.bar{grid-template-areas:"t new" "c ."}
/* The anchored card menu: the card is outlined, so no repeated title row;
   the shorter list ends above the card's name. */
#studio-root .sa-acc-sheet.is-anchored .sa-library-13{display:none}
#studio-root .sa-acc-sheet.is-anchored .sa-menu-grp{margin:6px}
/* Save design: title, fields and footer share one 20px inset. */
#studio-root .sa-acc .sa-library-15{padding-inline:20px}

/* ---- Guide: the sticky footer is an opaque band over the whole column
   (timeline rail included), with a short fade above it. */
#studio-root .sa-gd .sa-gd-dock{background:none;isolation:isolate}
#studio-root .sa-gd .sa-gd-dock::before{content:'';position:absolute;z-index:-1;inset-block:0;inset-inline:-32px var(--dk-dock-end,-32px);background:linear-gradient(to bottom,var(--sa-bg0),var(--sa-bg) 28px);pointer-events:none}
#studio-root .sa-gd .sa-gd-topbar>[data-studio-action="dl-template"]{margin-inline-end:0}
@media (min-width:1100px){
  #studio-root .sa-guide{--dk-dock-end:408px}
  /* The materials card fits the window and scrolls inside its own corners. */
  #studio-root .sa-guide .sa-gd-body>[data-gd-only]>.card{max-height:calc(100vh - 48px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--sa-line2) transparent}
}

/* ---- Terms: the title and close stay in reach while reading ----------- */
#studio-root [data-studio-screen="terms"]>.bar{position:sticky;top:0;z-index:5;background:var(--sa-bg);box-shadow:0 1px 0 var(--sa-s2)}
#studio-root .sa-terms .tsec{scroll-margin-top:88px}
@media (min-width:1100px){#studio-root .sa-terms .sa-terms-toc{top:88px}}

/* ---- Admin reports: triage reads as three buttons, not a legend ------- */
#studio-root .sa-sw .sa-reports-15{gap:8px;padding:0;background:none;box-shadow:none}
#studio-root .sa-sw .sa-reports-15 .abtn{height:36px;padding:0 14px 0 12px;border-radius:10px;background:var(--sa-s1);box-shadow:inset 0 0 0 1px var(--sa-line);color:var(--sa-text)}
#studio-root .sa-sw .sa-reports-15 .abtn:hover{background:var(--sa-s2);box-shadow:inset 0 0 0 1px var(--sa-line2)}
#studio-root .sa-sw .sa-reports-15 .sa-reports-16::before{background:var(--sa-green)}
#studio-root .sa-sw .sa-reports-15 .sa-reports-17::before{background:var(--sa-acc)}
#studio-root .sa-sw .sa-reports-15 .sa-reports-18::before{background:var(--sa-subtle)}

/* ---- Thread colour flyout: a caret points at its row in the panel ----- */
#studio-root .sa-thread.is-anchored::after{content:'';position:fixed;z-index:1;top:calc(var(--pop-top) + var(--pop-arrow,40px) - 7px);inset-inline-end:calc(var(--pop-end) - 7px);width:14px;height:14px;background:var(--sa-s1);border:1px solid var(--sa-line);border-inline-start-color:transparent;border-bottom-color:transparent;transform:rotate(45deg);border-radius:0 3px 0 0;pointer-events:none}
html[dir=rtl] #studio-root .sa-thread.is-anchored::after{border-color:var(--sa-line);border-top-color:transparent;border-right-color:transparent;border-radius:0 0 0 3px}
/* 3D frame parameters: a 40px rhythm instead of a cramped 35px one. */
@media (min-width:1280px) and (min-height:1000px){#studio-root .sa-f3d .dk-p{padding:6px 0 7px}}
/* Portrait tablets: every flow step shares one 64px bar and one column. */
@media (max-width:899.98px){
  #studio-root .sa-f3{--dk-col:680px}
  #studio-root .sa-unlock-hero .bar{height:64px}
  #studio-root .sa-unlock .sa-unlock-seq,#studio-root .sa-build .sa-build-nails{margin-inline:0}
}
@media (min-width:900px) and (max-width:1279.98px){
  #studio-root .sa-f3{padding-inline:24px}
  #studio-root .sa-f3>.bar{padding-inline:20px 0;margin-inline-start:-24px}
}
/* Large screens: reading pages widen so they are not a strip in a void. */
@media (min-width:1600px){
  #studio-root :is([data-studio-screen="notifications"],.sa-comments){--dk-col:var(--w-medium)}
  #studio-root [data-studio-screen="profile-edit"]{--dk-col:var(--w-form)}
}
/* 768-tall tablets: a few pixels less chrome so every setting fits unscrolled. */
@media (min-width:900px) and (max-height:800px){
  #studio-root .sa-create [data-studio-sheet="settings"]>.sheet{padding-top:2px}
  #studio-root .sa-create .sa-sheet-head{padding-bottom:6px}
  #studio-root .sa-create .sa-settings-body>.seg{height:36px}
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{padding-bottom:8px}
  #studio-root .sa-more-cue{bottom:-8px;margin-bottom:-8px}
  #studio-root .sa-create .sa-sheet-actions{padding-block:12px}
  #studio-root .sa-create .sa-toggle-row{padding-block:6px}
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{--dk-setgap:7px}
}

/* ======================================================================
   Loop 5: final polish
   ====================================================================== */
/* ---- Dex: the summary, chips, toolbar, search and grid share the title's
   edges (.sa-soc and .sa-dex are the same element). */
#studio-root .sa-dex>:is(.sa-dex-2,.sa-dex-35,.sa-dex-38,.sa-dex-42,.sa-dex-search){padding-inline:0}
#studio-root .sa-dex>.bar>.ib:last-child{margin-inline-end:-10px}
/* The page is the String Dex; "Achievements" is what it collects. */
#studio-root .sa-dex-ttl-ph{display:none}
#studio-root .sa-dex-ttl-dk{display:inline}
@media (min-width:1100px){
  #studio-root .sa-dex .sa-dex-35 .sa-dex-36:not(.on):hover{background:var(--sa-s1);color:var(--sa-text)}
}

/* ---- Guide: on tablets the checklist is two compact columns, so the first
   step (what "Mark done, next" acts on) shows on the first screen; from
   1100 the guide uses the shared wide content width. */
@media (max-width:1099.98px){
  #studio-root .sa-gd [data-gd-needs]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
  #studio-root .sa-gd [data-gd-needs] .mrow:nth-child(2){border-top:0}
  #studio-root .sa-gd [data-gd-needs] .mrow{padding:9px 0}
}
@media (min-width:1100px){
  #studio-root .sa-guide{--dk-col:var(--w-wide)}
  #studio-root .sa-guide .sa-gd-body{grid-template-columns:minmax(0,1fr) 380px;column-gap:56px}
  #studio-root .sa-guide .sa-gd-dock{padding-inline-end:436px}
  #studio-root .sa-guide{--dk-dock-end:436px}
}

/* ---- Help: popular questions finish the self-help column; each opens its
   answer in the FAQ. The selected topic reads as selected. */
#studio-root .sa-acc .sa-help-pop{display:block;margin-top:22px}
#studio-root .sa-acc .sa-help-pop>.sl{display:block;padding:0 0 8px}
#studio-root .sa-acc .sa-help-q{height:auto;min-height:52px;padding:12px 4px;font-size:14px;line-height:1.35;cursor:pointer}
#studio-root .sa-acc .sa-help-q+.sa-help-q{border-top:1px solid var(--sa-s2)}
#studio-root .sa-acc .sa-help-q:hover{background:transparent;color:var(--sa-acc-tx)}
#studio-root .sa-acc .sa-help-q>span:first-child{min-width:0}
#studio-root .sa-acc .sa-help-11 .chip{cursor:pointer}
#studio-root .sa-acc .sa-help-11 .chip.on{background:var(--sa-text);color:var(--sa-bg);box-shadow:inset 0 0 0 1px var(--sa-text)}
#studio-root .sa-acc .sa-help-11 .chip:not(.on):hover{background:var(--sa-s15);color:var(--sa-text)}

/* ---- Library: each card's ⋯ is its own button beside the card (in the tab
   order), drawn over the card's corner; the card and its handle lift together. */
#studio-root .sa-acc .sa-lib-cell{position:relative;display:flex;min-width:0;transition:transform .15s}
#studio-root .sa-acc .sa-lib-cell>.sa-lib-card{flex:1;min-width:0;width:100%}
#studio-root .sa-acc .sa-lib-cell>.sa-lib-card:hover{transform:none}
#studio-root .sa-acc .sa-lib-cell:hover{transform:translateY(-2px)}
#studio-root .sa-acc .sa-lib-cell:hover>.sa-lib-card{background:var(--sa-s2);box-shadow:inset 0 0 0 1px var(--sa-line2)}
#studio-root .sa-acc .sa-lib-cell:hover .sa-library-8{transform:scale(1.02)}
#studio-root .sa-acc .sa-lib-cell>.sa-lib-more{border:0;padding:0;cursor:pointer;z-index:1}
#studio-root .sa-acc .sa-lib-cell:is(:hover,:focus-within)>.sa-lib-more,#studio-root .sa-acc .sa-lib-card.is-menu-open+.sa-lib-more{opacity:1}
#studio-root .sa-acc .sa-lib-card.is-menu-open+.sa-lib-more{background:var(--sa-s2)}
#studio-root .sa-acc .sa-lib-cell>.sa-lib-more:focus-visible{opacity:1;outline:2px solid var(--sa-acc);outline-offset:2px}
@media (prefers-reduced-motion:reduce){#studio-root .sa-acc .sa-lib-cell:hover{transform:none}}

/* ---- Downloads: a locked sequence PDF offers Unlock (secondary, with a
   lock), not an enabled Download with a size picker. */
#studio-root .sa-dl-seq .sa-dl-pdfbtn .sa-dl-pdf-lock{display:none}
#studio-root .sa-dl-seq.is-locked .sa-dl-pdfbtn .sa-dl-pdf-get{display:none}
#studio-root .sa-dl-seq.is-locked .sa-dl-pdfbtn .sa-dl-pdf-lock{display:inline}
#studio-root .sa-dl-seq.is-locked .sa-dl-pdfbtn svg.sa-dl-pdf-lock{display:block}
#studio-root .sa-dl-seq.is-locked .sa-pdf-size{display:none}
#studio-root .sa-dl-seq.is-locked>.sa-dl-row{grid-column:1}
#studio-root .sa-dl-seq.is-locked .sa-dl-pdfbtn{grid-row:1;grid-column:2;align-self:center;background:var(--sa-s2);color:var(--sa-text);box-shadow:inset 0 0 0 1px var(--sa-line);height:40px;padding:0 16px 0 12px}
#studio-root .sa-dl-seq.is-locked .sa-dl-pdfbtn:hover{background:var(--sa-s3,var(--sa-s2));box-shadow:inset 0 0 0 1px var(--sa-line2)}

/* ---- Build: the same stepper as Result and Unlock; the board fills the
   stage (its zoom is set from the stage size by studio-build.js) and sits
   centred in it; labels never wrap. */
#studio-root .sa-build>.sa-build-steps{display:flex}
@media (max-width:899.98px){#studio-root .sa-build>.steps{padding-top:12px}}
@media (min-width:900px){
  #studio-root .sa-build{grid-template-rows:auto auto auto auto auto auto minmax(0,1fr)}
  #studio-root .sa-build>.sa-build-steps{grid-row:2}
  #studio-root .sa-build-stage{grid-row:3 / 8!important;align-items:center;justify-content:center;padding:24px 32px;min-height:calc(100vh - 112px)}
  #studio-root .sa-build .sa-build-board{zoom:var(--dk-bz,1.9)}
  #studio-root .sa-build>.sa-build-progress{grid-row:3}
  #studio-root .sa-build>.sa-build-nails{grid-row:4}
  #studio-root .sa-build>.sa-build-next{grid-row:5}
  #studio-root .sa-build>.sa-build-foot{grid-row:6}
}
#studio-root .sa-build-progress>.row{gap:12px;flex-wrap:nowrap}
#studio-root .sa-build-step{white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
#studio-root .sa-build .sa-jump{flex:none;white-space:nowrap}
/* "Up next" is a caption above the chips, like "Go to nail" above the number. */
#studio-root .sa-build-next{flex-wrap:wrap;row-gap:10px}
#studio-root .sa-build-next>.mono{width:100%;min-width:0;white-space:nowrap;line-height:1.2}
#studio-root .sa-build-next>div{flex:1 1 100%}
/* Look-ahead nails read as "later" by a fading tile and a quieter
   colour, not by fading the number: every number stays AA (4.5:1). */
#studio-root .sa-build-next{--sa-ahead:#8A8E95;--sa-ahead-4:rgba(23,25,28,.55);--sa-ahead-5:rgba(23,25,28,.2)}
:root.studio[data-theme="light"] #studio-root .sa-build-next{--sa-ahead:#696D74;--sa-ahead-4:rgba(255,255,255,.55);--sa-ahead-5:rgba(255,255,255,.2)}
#studio-root .sa-build-next .pill:nth-child(n+2){opacity:1}
#studio-root .sa-build-next .pill:nth-child(4){color:var(--sa-ahead);background:var(--sa-ahead-4)}
#studio-root .sa-build-next .pill:nth-child(5){color:var(--sa-ahead);background:var(--sa-ahead-5);box-shadow:inset 0 0 0 1px var(--sa-ahead-4)}
/* The 340px panel (900 to 1099): Jump to step is an icon button with a tooltip. */
@media (min-width:900px) and (max-width:1099.98px){
  #studio-root .sa-build .sa-jump{width:36px;padding:0;justify-content:center;font-size:0;gap:0}
}

/* ---- Result: the frame spec heads the panel (no chip under the canvas);
   selected segments are neutral, so orange marks only the action and the
   key number; Share is labelled on wide screens. */
#studio-root .sa-result-spec{display:none}
@media (min-width:900px){
  #studio-root .sa-result{grid-template-rows:auto auto auto auto auto auto auto minmax(0,1fr)}
  #studio-root .sa-result-stage{grid-row:3 / 9!important}
  #studio-root .sa-result>.sa-result-spec{display:block;grid-row:3;padding:30px 0 0;margin-inline-end:24px;font-size:11px;letter-spacing:.07em;line-height:16px;color:var(--sa-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #studio-root .sa-result>.sa-algo-row{grid-row:4;margin-top:12px}
  #studio-root .sa-result>.sa-thread-card{grid-row:5}
  #studio-root .sa-result>.sa-thread-card{margin-top:14px}
  #studio-root .sa-result>.sa-result-acts{grid-row:6}
  #studio-root .sa-result>.sa-result-cta{grid-row:7}
  #studio-root .sa-result-chip{display:none}
  #studio-root .sa-result-stage{padding-bottom:40px}
}
@media (min-width:1600px){#studio-root .sa-result>.sa-result-spec{margin-inline-end:0}}
@media (min-width:768px){
  #studio-root :is(.sa-algo-seg,.sa-unit-seg) button[aria-checked="true"]{background:var(--sa-s2);color:var(--sa-text);box-shadow:inset 0 0 0 1px var(--sa-line2)}
  :root.studio[data-theme="light"] #studio-root :is(.sa-algo-seg,.sa-unit-seg) button[aria-checked="true"]{background:var(--sa-s1);box-shadow:inset 0 0 0 1px var(--sa-line2),0 1px 2px rgba(0,0,0,.08)}
  #studio-root :is(.sa-algo-seg,.sa-unit-seg) button:not([aria-checked="true"]):not(:disabled):hover{color:var(--sa-text)}
}
@media (min-width:1100px){
  #studio-root .sa-result-bar>.ib:last-child{width:auto;gap:8px;padding:0 14px 0 10px;border-radius:12px;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-soft)}
  #studio-root .sa-result-bar>.ib:last-child::after{content:attr(title)}
  #studio-root .sa-result-bar>.ib:last-child svg{width:20px;height:20px}
  #studio-root .sa-result-bar>.ib:last-child:hover{background:var(--sa-s1);color:var(--sa-text)}
}

/* ---- Create: "More settings" is a real control (it scrolls the panel) and
   a shorter band with a 16px fade; at the end it steps out of the way. */
@media (min-width:900px){
  #studio-root .sa-create .sa-more-cue{pointer-events:auto;cursor:pointer;height:30px;margin-top:calc(-30px - var(--dk-setgap,8px))}
  #studio-root .sa-create .sa-more-cue::before{height:16px}
  #studio-root .sa-create .sa-more-cue:hover>span{color:var(--sa-text)}
  #studio-root .sa-create .sa-settings-body.is-end .sa-more-cue{pointer-events:none;cursor:default}
}

/* ---- Crop: the shared dialog header (title at the start, ✕ at the end). */
#studio-root .sa-crop-page>.bar{justify-content:flex-start;padding-inline:24px 12px}
#studio-root .sa-crop-page>.bar::before{content:none}
#studio-root .sa-crop-page>.bar>.ib{display:flex;order:3;margin-inline-start:auto}
#studio-root .sa-crop-page>.bar>.sa-bar-spacer{display:none}
#studio-root .sa-crop-page>.bar>.ttl{text-align:start;font-size:20px;font-weight:600;margin:0}

/* ---- Sign up: the same header inset as sign in; the small art disk follows
   one rule on both pages (hidden in short tablet windows). */
#studio-root .sa-acc .bar.nav.sa-signup-2{padding-inline:0}
@media (max-width:1099.98px) and (max-height:820px){
  #studio-root .sa-acc .sa-signin-7{display:none}
}

/* ---- Terms: the text starts a clear 28px under the sticky bar, and the
   contents list starts on the eyebrow's line. */
#studio-root .sa-soc .sa-terms-2{padding-top:28px}
@media (min-width:1100px){#studio-root .sa-terms .sa-terms-toc{padding-top:4px}}

/* ---- Comments: the count is a quiet number after the title. */
#studio-root .sa-cm-count{margin-inline-start:.35em;font-weight:500;color:var(--sa-muted)}

/* ---- Admin: Reports' totals use the Designs tile (number over its label),
   and Dismissed has a tile like every other filter. */
#studio-root .sa-sw .sa-reports-3{grid-template-columns:repeat(5,minmax(0,1fr))}
#studio-root .sa-sw .sa-reports-3 .kpi{flex-direction:column-reverse;justify-content:flex-end;gap:2px;padding:16px 18px;border-radius:16px}
#studio-root .sa-sw .sa-reports-3 .kpi b{font-size:22px;font-weight:600;line-height:1.3}
#studio-root .sa-sw .sa-reports-3 .kpi span{font-size:13px;color:var(--sa-muted)}
#studio-root .sa-sw .sa-reports-3 .sa-rk-dismissed{display:flex}
/* Report cards below 1100: triage and the post's actions share one row when
   they fit (they wrap, end-aligned, when a language needs the room). */
@media (max-width:1099.98px){
  #studio-root .sa-sw .sa-reports-7{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:14px 12px}
  #studio-root .sa-sw .sa-reports-7>:is(.sa-reports-8,.sa-reports-13){flex:1 1 100%}
  #studio-root .sa-sw .sa-reports-7>.sa-reports-15{flex:none}
  #studio-root .sa-sw .sa-reports-7>.row{flex:none;margin-inline-start:auto}
}

/* ---- 3D frame on tablets: steppers (touch) as before, plus what the
   desktop builder shows: zoom controls, the summary and the guide link. */
#studio-root .sa-f3 .sa-f3-zoom{display:flex;position:absolute;top:12px;inset-inline-end:12px;gap:6px;z-index:2}
#studio-root .sa-f3 .sa-f3-zoom .ib{width:40px;height:40px;border-radius:12px;background:var(--sa-s1);box-shadow:inset 0 0 0 1px var(--sa-line);color:var(--sa-soft)}
#studio-root .sa-f3 .sa-f3-zoom .ib:hover{background:var(--sa-s2);color:var(--sa-text)}
#studio-root .sa-f3 .sa-f3-zoom svg{width:18px;height:18px}
#studio-root .sa-f3 .sa-f3-extra{display:flex;flex-direction:column;gap:2px;margin-top:8px}
#studio-root .sa-f3 .sa-f3-kvs{background:var(--sa-s1);border-radius:14px;padding:10px 14px 8px}
#studio-root .sa-f3 .sa-f3-kvh{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--sa-muted);margin-bottom:4px}
#studio-root .sa-f3 .sa-f3-kv{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:14px;color:var(--sa-soft);line-height:24px}
#studio-root .sa-f3 .sa-f3-kv b{font-weight:500;font-size:14px;color:var(--sa-text)}
#studio-root .sa-f3 .sa-f3-guide{display:flex;align-items:center;gap:8px;height:40px;padding:0 4px;border:0;background:none;width:100%;text-align:start;font:500 14px 'Space Grotesk',sans-serif;color:var(--sa-acc-tx);cursor:pointer}
#studio-root .sa-f3 .sa-f3-guide .ic{width:16px;height:16px;flex:none}
#studio-root .sa-f3 .sa-f3-guide .sa-f3-fwd{margin-inline-start:auto}
html[dir=rtl] #studio-root .sa-f3 .sa-f3-guide .sa-f3-fwd{transform:scaleX(-1)}
#studio-root .sa-f3 .sa-f3-guide:hover span{text-decoration:underline;text-underline-offset:3px}
@media (min-width:900px) and (max-width:1279.98px){
  #studio-root .sa-f3{grid-template-rows:auto auto auto auto minmax(0,1fr) auto}
  #studio-root .sa-f3>.sa-f3-stage{grid-row:2 / 7;height:calc(100vh - 64px - 32px);margin:8px 0 24px}
  #studio-root .sa-f3>.sa-f3-extra{grid-column:2;grid-row:4}
  #studio-root .sa-f3>.sa-f3-foot{grid-row:6}
}
@media (min-width:1280px){#studio-root .sa-f3 :is(.sa-f3-extra,.sa-f3-zoom){display:none}}
@media (min-width:1100px){
  /* The form card grows (a taller message box) to the self-help column's
     height, so Send always sits right under it. */
  #studio-root .sa-acc .sa-help-2{align-items:stretch}
  #studio-root .sa-acc .sa-help-2>div:last-child{display:flex;flex-direction:column}
  #studio-root .sa-acc .sa-help-2>div:last-child>.sa-help-9{flex:1;display:flex;flex-direction:column}
  #studio-root .sa-acc .sa-help-9>div:last-child{flex:1;display:flex;flex-direction:column}
  #studio-root .sa-acc .sa-help-9 .sa-help-12{flex:1;min-height:116px}
}

/* ---- Reading pages from 1100: Notifications and All comments use the
   medium column (the same right edge as Admin), Edit profile 760px. */
@media (min-width:1100px){
  #studio-root :is([data-studio-screen="notifications"],.sa-comments){--dk-col:var(--w-medium)}
  #studio-root [data-studio-screen="profile-edit"]{--dk-col:var(--w-form)}
}
/* 3D frame (desktop): the side cards end on the header's 24px edge. */
@media (min-width:1280px){#studio-root .sa-f3d .dk-side{padding-inline-end:24px}}
/* Portrait tablets: Build's blocks share the stepper's column edges. */
@media (max-width:899.98px){
  #studio-root .sa-build>:is(.sa-build-progress,.sa-build-next,.sa-build-foot){padding-inline:0}
  #studio-root .sa-build>.sa-build-progress{padding-top:20px}
}

/* ======================================================================
   Loop 6
   ====================================================================== */
/* ---- 3D frame (desktop, from 1280): "‹ Back | 3D frame" like every other
   step; the spec chip never runs under the zoom buttons; in short windows
   the illustration card gives way so the export column fits unscrolled. */
@media (min-width:1280px){
  #studio-root .sa-f3d .dk-crumb>span{display:none}
  #studio-root .sa-f3d .dk-tag{max-width:calc(100% - 40px - 132px - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (min-width:1280px) and (max-height:760px){
  #studio-root .sa-f3d .dk-pin{display:none}
}

/* ---- Build ------------------------------------------------------------- */
/* Short windows: a compact readout and tighter rhythm, so Previous and Next
   always sit inside the window (the page never scrolls). */
@media (min-width:900px) and (max-height:720px){
  #studio-root .sa-build>.sa-build-progress{padding-top:16px}
  #studio-root .sa-build-nails{margin-top:16px}
  #studio-root .sa-build-to-num{font-size:64px}
  #studio-root .sa-build-from-num{font-size:28px}
  #studio-root .sa-build-next{padding-top:16px}
  #studio-root .sa-build-next{row-gap:8px}
  #studio-root .sa-build-foot{padding-block:16px}
  #studio-root .sa-build-stage{min-height:calc(100vh - 104px)}
}
/* Two panes: the panel is centred against the board (it is centred in the
   stage), so the readout sits beside the piece, never above a tall void.
   Result does the same. In short windows the spacers collapse to nothing. */
@media (min-width:900px){
  #studio-root .sa-build{grid-template-rows:auto auto minmax(0,1fr) auto auto auto auto minmax(0,1fr)}
  #studio-root .sa-build-stage{grid-row:3 / 9!important}
  #studio-root .sa-build>.sa-build-progress{grid-row:4}
  #studio-root .sa-build>.sa-build-nails{grid-row:5}
  #studio-root .sa-build>.sa-build-next{grid-row:6}
  #studio-root .sa-build>.sa-build-foot{grid-row:7}
}
/* Portrait tablets: less air around the stacked blocks; the board takes the
   rest of the window (studio-build.js). */
@media (min-width:768px) and (max-width:899.98px){
  #studio-root .sa-build-stage{padding-top:8px}
  #studio-root .sa-build-next{padding-top:12px}
  #studio-root .sa-build-foot{margin-top:16px;padding-bottom:20px}
}

/* ---- Flow stepper: finished steps read as done (a check, the text colour
   and a solid neutral bar); only the current step is orange. */
#studio-root :is(.sa-gen,.sa-result,.sa-build,.sa-unlock) .steps>span:has(~span.on){color:var(--sa-soft);border-color:var(--sa-muted)}
#studio-root :is(.sa-gen,.sa-result,.sa-build,.sa-unlock) .steps>span:has(~span.on) b{font-size:0}
#studio-root :is(.sa-gen,.sa-result,.sa-build,.sa-unlock) .steps>span:has(~span.on) b::before{content:'\2713';font-size:11px;line-height:inherit}

/* ---- Result: "‹ Back | Your pattern" like every other step (the view tabs
   stay centred over the canvas), and the panel is centred against the
   canvas like Build's. */
#studio-root .sa-result-bar>.sa-result-ttl{display:block;position:static;transform:none;flex:0 1 auto;min-width:0;margin:0;margin-inline-start:6px;padding-inline-start:14px;border-inline-start:1px solid var(--sa-line);font-size:16px;font-weight:600;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:900px){
  #studio-root .sa-result{grid-template-rows:auto auto minmax(0,1fr) auto auto auto auto auto minmax(0,1fr)}
  #studio-root .sa-result-stage{grid-row:3 / 10!important}
  #studio-root .sa-result>.sa-result-spec{grid-row:4}
  #studio-root .sa-result>.sa-algo-row{grid-row:5}
  #studio-root .sa-result>.sa-thread-card{grid-row:6}
  #studio-root .sa-result>.sa-result-acts{grid-row:7}
  #studio-root .sa-result>.sa-result-cta{grid-row:8}
}

/* ---- Create in very short windows (620px and less): the page ends at the
   window's edge, and the "More settings" band is a slim 24px strip that
   clears the slider above it. */
@media (min-width:900px){
  /* The visually hidden toggle inputs stay inside the scrolling list (they
     were positioned against the card and stretched the page). */
  #studio-root .sa-create [data-studio-sheet="settings"] .sa-settings-body{position:relative}
}
@media (min-width:900px) and (max-height:620px){
  #studio-root .sa-create :is(.sa-stage-wrap,.sa-drop){padding-bottom:16px}
  #studio-root .sa-create .sa-more-cue{height:24px;margin-top:calc(-24px - var(--dk-setgap,8px))}
  #studio-root .sa-create .sa-more-cue::before{height:12px}
}

/* ---- Downloads: the Unlock pill ends on the same line as the download
   and chevron glyphs of the other rows. */
#studio-root .sa-dl-seq.is-locked .sa-dl-pdfbtn{position:relative;inset-inline-start:12px}
/* Arabic: the Downloads title keeps its 20px inset at the reading start. */
html[dir=rtl] #studio-root .sa-dl-head{padding:2px 20px 4px 8px}
/* ---- Admin reports: a profile or comment report is the same card as a
   post report, its initials avatar the size of the post thumbnail. */
#studio-root .sa-sw .sa-reports-7 .sa-adm-rav{width:52px;height:52px;font-size:17px;flex-shrink:0}
/* Up to 1399 the stage is too narrow to centre the view tabs over it
   without meeting the title: they follow the title instead. */
@media (min-width:900px) and (max-width:1399.98px){
  #studio-root .sa-result-bar .sa-result-tabs,html[dir=rtl] #studio-root .sa-result-bar .sa-result-tabs{position:static;transform:none;margin-inline-start:24px;width:300px;flex:none}
}

/* ======================================================================
   Loop 7
   ====================================================================== */
/* ---- Build on portrait tablets (768 to 899): Previous / Next stick to the
   window's bottom edge whenever the page scrolls (short windows, split
   views). The footer box steps aside so the nav row can stick on its own;
   the voice card and the nav keep the footer's exact spacing. */
@media (min-width:768px) and (max-width:899.98px){
  #studio-root .sa-build>.sa-build-foot{display:contents}
  #studio-root .sa-build>.sa-build-foot>.sa-voice{margin-top:16px}
  #studio-root .sa-build>.sa-build-foot>.sa-build-nav{position:sticky;bottom:0;z-index:2;padding:12px 0 20px;background:linear-gradient(to bottom,transparent,var(--sa-bg) 12px)}
}
/* Short stacked windows: the desktop short-window readout (studio-build.js
   then trims the board so the nail number and Up next stay above the nav);
   under 640px tall the stepper gives way too. */
@media (min-width:768px) and (max-width:899.98px) and (max-height:720px){
  #studio-root .sa-build>.sa-build-progress{padding-top:14px}
  #studio-root .sa-build-to-num{font-size:64px}
  #studio-root .sa-build-from-num{font-size:28px}
  #studio-root .sa-build-next{padding-top:10px;row-gap:8px}
}
@media (min-width:768px) and (max-width:899.98px) and (max-height:640px){
  #studio-root .sa-build>.sa-build-steps{display:none}
}

/* ---- Terms (and every .tl list): the dash marks the start edge, so Arabic
   bullets sit beside their right-aligned lines. */
#studio-root .sa-soc .tl li{padding-left:0;padding-inline-start:16px}
#studio-root .sa-soc .tl li::before{left:auto;inset-inline-start:0}
/* The section body sits under the heading's text, past its number, on the
   start edge (it was a physical left indent). */
#studio-root .sa-soc .sa-terms-11{padding-left:0;padding-inline-start:31px}

/* ---- 3D frame on landscape tablets (900 to 1279) in short windows: the
   derived-values Summary gives way (the guide link stays), and
   below 660px the rows tighten, so the column fits unscrolled. */
@media (min-width:900px) and (max-width:1279.98px) and (max-height:760px){
  #studio-root .sa-f3 .sa-f3-extra .sa-f3-kvs{display:none}
}
@media (min-width:900px) and (max-width:1279.98px) and (max-height:660px){
  #studio-root .sa-f3 .sa-f3-row{height:42px}
  #studio-root .sa-f3 .sa-f3-more .sa-f3-head{height:44px}
  #studio-root .sa-f3 .sa-f3-foot{padding:12px 0 16px}
}

/* ---- Explore: the post image is a keyboard target ("Open post"). The card
   clips it, so the ring goes round the whole card (as on Library cards). */
#studio-root [data-studio-explore-feed] [data-studio-post-media]:focus-visible{outline:0}
#studio-root [data-studio-explore-feed] .post:has(>[data-studio-post-media]:focus-visible){outline:2px solid var(--sa-acc);outline-offset:2px}

/* ---- Guides: each method card fills its grid cell. The phone rule
   (button.card.sa-gd-method{display:block}) outranked the grid rule, so
   shorter cards centred their content: the media now sits on the top edge
   and the Level/Time/Needs row on the bottom edge of every card. */
@media (min-width:1100px){
  #studio-root .sa-guides [data-gd-pane="setup"]>button.card.sa-gd-method{display:flex;flex-direction:column;justify-content:flex-start;height:100%}
  #studio-root .sa-guides [data-gd-pane="setup"]>button.card.sa-gd-method>:is(.sa-guides-21,.sa-guides-34,.sa-guides-43){flex:none}
  #studio-root .sa-guides [data-gd-pane="setup"]>button.card.sa-gd-method>.meta{margin-top:auto}
  /* A long value ("Principiante", "Temps d'impression") widens its own
     column instead of running into the divider; equal columns otherwise. */
  #studio-root .sa-guides [data-gd-pane="setup"]>button.card.sa-gd-method>.meta{grid-template-columns:repeat(3,minmax(min-content,1fr))}
}
/* The step count ("7 SCHRITTE") never breaks; the title wraps instead. */
#studio-root .sa-gd .sa-gd-method .sa-guides-31{white-space:nowrap;flex:none}

/* ---- Result: the thread card's units note is hidden on desktop, so the
   card gets its own bottom inset, matching the 14px top. */
#studio-root .sa-result .sa-thread-card{padding-bottom:14px}

/* ---- Explore: the maker's name gives way, never the time. */
/* Loop 19: the 280px minimum is for cards that show the time (>= 1100).
   Below that the 260px minimum stands, so 968-1099 (iPad landscape) gets
   3 columns of 260-304px instead of 2 oversized ones; 768-967 stay at 2
   (300-399px). Card size now shrinks, never grows, across 1100. */
@media (min-width:1100px){
  #studio-root [data-studio-explore-feed]{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
}
#studio-root [data-studio-explore-feed] .ph-row .nm{display:flex;align-items:baseline;gap:.3em;min-width:0}
#studio-root [data-studio-explore-feed] .ph-row .nm [data-name]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#studio-root [data-studio-explore-feed] .ph-row .nm .sa-explore-21{flex:none;white-space:nowrap}

/* ---- Post (RTL): the author's name sits by its avatar and meta line.
   dir=auto keeps the bidi isolation of a Latin name; the line aligns right. */
html[dir=rtl] #studio-root .sa-postpg>.ph-row .nm[dir=auto]{text-align:right}

/* ---- Create, portrait tablets: the empty drop zone spans the column like
   the photo stage that replaces it (no phone 16px side inset). */
@media (max-width:899.98px){
  #studio-root .sa-create .sa-create-empty{padding-inline:0}
}

/* ---- Admin: Designs, Comments and Reports share one tab bar: 40px tabs
   and a 16px gap to what follows, so switching tabs doesn't jump. */
#studio-root .sa-com .sa-admin-2 button{height:40px}
#studio-root .sa-sw .sa-reports-2{margin-bottom:4px}

/* ---- Unlock: "Restore purchase" lines up with the payment note's icon
   when it wraps, and with the CTA's end edge when it doesn't. */
#studio-root .sa-unlock-foot .btn{margin-inline:-4px}

/* ---- 3D frame: the track is inset by the knob's radius, so a knob at
   either end stays inside the column. */
#studio-root .sa-f3d .dk-trk{margin-inline:7px}
/* Logical insets (RTL cards kept the avatar flush on the card edge), and a
   slightly tighter counts group so long names fit 280px cards in Arabic. */
#studio-root [data-studio-explore-feed] .ph-row{padding:6px 0 0;padding-inline-start:16px}
#studio-root [data-studio-explore-feed] .pacts{padding:6px 0 0;padding-inline-end:10px}
#studio-root [data-studio-explore-feed] .pa{padding:0 6px;gap:3px}
#studio-root [data-studio-explore-feed] .ph-row{gap:7px}
/* Guides at 1100 to 1279: the three narrow cards' fact cells tighten a little
   so the longest values (fr "Temps d'impression") still fit. */
@media (min-width:1100px) and (max-width:1279.98px){
  #studio-root .sa-guides [data-gd-pane="setup"]>button.card.sa-gd-method>.meta>span{padding-inline:12px}
}

/* ---- Comments (RTL): a reply is indented from the start edge, as in the
   Post side panel. The selected-reply rule (studio.css) still wins. */
html[dir=rtl] #studio-root .sa-soc .sa-comments-17{margin-left:0;margin-right:42px}

/* ---- Comment composers: "Post" reads as unavailable until there is text
   (an empty submit did nothing). Editing a comment starts with text, so
   "Save" stays live. */
#studio-root .sa-soc form:has(.sa-cm-input:placeholder-shown) .sa-comments-31,
#studio-root .sa-com form:has(.sa-post-29:placeholder-shown) .sa-post-31{background:var(--sa-s2);color:var(--sa-dim);box-shadow:none;pointer-events:none;cursor:default}

/* ---- Result: the thread card's values never wrap. Columns grow to fit a
   long value ("15,748 ft") and keep their 1.25 : 1 : 1 rhythm otherwise;
   the 340px panel (900 to 1099) uses a slightly smaller value size. */
#studio-root .sa-result .sa-thread-stats{grid-template-columns:minmax(min-content,1.25fr) minmax(min-content,1fr);column-gap:12px}
#studio-root .sa-result .sa-thread-stats .val{white-space:nowrap}
/* RTL: the values stay LTR for their digits but line up under their labels. */
html[dir=rtl] #studio-root .sa-result .sa-thread-stats .val{text-align:right}
@media (min-width:900px) and (max-width:1099.98px){
  #studio-root .sa-result .sa-thread-stats .val{font-size:16px}
  #studio-root .sa-result .sa-thread-stats .val.sa-total{font-size:21px}
}
/* From 1600 the panel's end-padding reset also stripped the card's own
   inset, so the unit switch and "Avg line" sat on the card's edge. */
@media (min-width:1600px){
  #studio-root .sa-result>.sa-thread-card{padding-inline-end:14px}
}

/* ---- Save dialog: the button label never breaks. When the footer is
   short of room (German), "Buy a pass" drops under the retention note,
   aligned with its text, instead of every phrase breaking mid-way. */
#studio-root .sa-acc .sa-library-20>.sa-library-21{white-space:nowrap;flex:none}
#studio-root .sa-acc .sa-library-20>.sa-save-ret{flex-wrap:wrap;column-gap:6px;row-gap:2px;min-width:0;position:relative;inset:auto;padding-inline-start:28px}
#studio-root .sa-acc .sa-library-20>.sa-save-ret>.sa-library-17{white-space:nowrap}
#studio-root .sa-acc .sa-library-20>.sa-save-ret .sa-library-18{position:absolute;inset-inline-start:0;top:0}
#studio-root .sa-acc .sa-library-20>.sa-save-ret>.sa-library-19{white-space:nowrap}

/* ---- Unlock in short windows (700px tall or less): both plans and the
   buy button fit without scrolling. The locked-sequence teaser and the
   subtitle step aside, and the buy area tightens. */
@media (max-height:700px){
  #studio-root .sa-unlock-head p,#studio-root .sa-unlock .sa-unlock-seq{display:none}
  #studio-root .sa-unlock-cta>.btn{height:48px;font-size:16px}
  #studio-root .sa-unlock-foot{min-height:0;padding-top:6px}
  #studio-root .sa-unlock-foot .btn{height:32px}
}
@media (min-width:900px) and (max-height:700px){
  #studio-root .sa-unlock-plans{padding-top:22px}
  #studio-root .sa-unlock>.sa-unlock-cta{padding-top:12px;padding-bottom:12px}
}
/* The 340px panel (900 to 1099) in a short window: the bar already names
   the step, so the heading is kept for screen readers only, and the perks
   sit closer together. */
@media (min-width:900px) and (max-width:1099.98px) and (max-height:700px){
  #studio-root .sa-unlock>.sa-unlock-head{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  #studio-root .sa-unlock-plans{padding-top:20px}
  #studio-root .sa-unlock .sa-plan-perks{gap:4px}
}
/* The 340px panel: the credit option's name gets more of the row, so
   "1 Entwurfsguthaben verwenden" takes two lines instead of three. */
@media (min-width:900px) and (max-width:1099.98px){
  #studio-root .sa-unlock .sa-plan-one{gap:10px}
  #studio-root .sa-unlock .sa-plan-one>.val{font-size:16px}
  #studio-root .sa-unlock .sa-plan-one .sa-plan-name>span:first-child{font-size:15px}
}
/* Portrait-tablet column in a short window: the piece is already on the
   result screen, so the plans take its place. */
@media (max-width:899.98px) and (max-height:700px){
  #studio-root .sa-unlock-art{display:none}
  #studio-root .sa-unlock>.sa-unlock-head{padding-top:24px}
  #studio-root .sa-unlock-cta{margin-top:4px}
}

/* ==== Loop 10 ============================================================ */

/* ---- Long translated labels. A button label is one line: in the 340px
   panel (900 to 1099) the long CTAs step down to 15px and tighter insets
   instead of breaking ("Déverrouiller la séquence des / clous"). */
#studio-root :is(.sa-result-cta-bar,.sa-unlock-cta)>.btn,
#studio-root .sa-home-ctas .btn,
#studio-root .sa-create a.chip,
#studio-root .sa-f3d .dk-seg button{white-space:nowrap}
@media (min-width:900px) and (max-width:1099.98px){
  #studio-root .sa-result [data-studio-action="result-unlock"],
  #studio-root .sa-unlock-cta>.btn.pri{font-size:15px;letter-spacing:-.01em;padding-inline:12px;gap:8px}
  /* Build: "Previous nail" and "Next" share the row evenly; the label
     alone (no back chevron) fits "Chiodo precedente", "Vorheriger Nagel". */
  #studio-root .sa-build .sa-build-nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #studio-root .sa-build .sa-build-nav>.btn{min-width:0;font-size:15px;padding-inline:10px;gap:6px;white-space:nowrap}
  #studio-root .sa-build .sa-build-nav>[data-studio-action="build-prev"]>.ic{display:none}
  /* Voice guidance: the status line may take two lines, never an ellipsis. */
  #studio-root .sa-build .sa-voice-txt>div+div{white-space:normal;overflow:visible;text-overflow:clip;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.35}
  /* The three voice selects stay inside the card: the delay keeps its
     natural width, voice and language share the rest, the globe and clock
     glyphs step aside (the values name themselves), and the text is 13px. */
  #studio-root .sa-build .sa-voice{padding-inline:10px}
  #studio-root .sa-build .sa-voice-opts{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:4px}
  #studio-root .sa-build .sa-voice-opts .sel{min-width:0;font-size:13px;padding:0 8px 0 10px;gap:6px}
  #studio-root .sa-build .sa-voice-opts .sel>span{min-width:0}
  #studio-root .sa-build .sa-voice-opts .sel:last-child{padding-inline:8px 6px}
  #studio-root .sa-build .sa-voice-opts .sel>span>.ic{display:none}
  /* Unlock: "Unbegrenzter Zugriff" keeps to one line. */
  #studio-root .sa-unlock .sa-plan-best .sa-plan-name>span:first-child{font-size:15px;white-space:nowrap}
}
/* Generating below 1000: the ring scales down, so the percentage, the
   stats card and Cancel stay inside the window (the grid was 66px wider
   than the 900 window and clipped). */
@media (min-width:900px) and (max-width:999.98px){
  #studio-root .sa-gen-ring{zoom:1.3;margin-inline-end:calc(48px / 1.3)}
}
@media (min-width:900px) and (max-width:999.98px) and (max-height:700px){
  #studio-root .sa-gen-ring{zoom:1.15;margin-inline-end:calc(44px / 1.15)}
}
/* Secondary lines under a name may wrap, and then break evenly. */
#studio-root :is(.sa-plan-name>span+span,.sa-soc .sa-me-40,.sa-soc .sa-artist-39){text-wrap:pretty}
/* The guide link may take two lines (de, fr, it, pt); they break evenly. */
#studio-root .sa-f3d .dk-guide{text-wrap:balance;line-height:1.3;text-align:start}

/* Home hero: the two CTAs never break inside; when the column is short
   of room (fr at 1100) the second one moves under the first. */
#studio-root .sa-home-ctas{flex-wrap:wrap}
@media (min-width:1100px) and (max-width:1279.98px){#studio-root .sa-home-ctas .btn{padding-inline:18px}}

/* Downloads, PDF text size: a long hint ("am besten lesbar", "ページ数が
   少ない") takes a second line inside the button, which grows to fit,
   instead of running past its edges. The three sizes stay equal. */
#studio-root .sa-pdf-size button{height:auto;min-height:44px;padding:5px 4px}
#studio-root .sa-pdf-size button>span+span{line-height:1.2;text-wrap:balance}

/* Downloads: with the sequence locked the size chooser is hidden, so the
   card drops the bottom inset reserved for it (studio.css .sa-dl-seq). */
#studio-root .sa-dl-seq.is-locked{padding-bottom:0}

/* 3D frame: the view switch grows with its labels ("Assemblaggio
   completo") and keeps two equal halves. */
#studio-root .sa-f3d .dk-seg{width:auto;min-width:300px;grid-template-columns:repeat(2,minmax(max-content,1fr))}
#studio-root .sa-f3d .dk-seg button{padding-inline:14px}

/* Explore cards: the like/comment counts sit 2px tighter, so a full
   "Kenji Watanabe · 1 dia" fits a 284px card. */
#studio-root [data-studio-explore-feed] .pa{padding:0 4px}

/* Admin at 768: the design's details may take two lines instead of an
   ellipsis. */
@media (max-width:899.98px){
  #studio-root .sa-adm .sa-admin-12 .arow:not(.sa-adm-crow) .sa-adm-detail{white-space:normal;overflow:visible;text-overflow:clip}
}

/* Short portrait-tablet windows (768x600): the pinned CTA bars of Result
   and the 3D frame get a hairline, so the content scrolling under them is
   cut by an intentional edge. */
@media (max-width:899.98px) and (max-height:820px){
  #studio-root .sa-result-cta{background:var(--sa-bg);box-shadow:0 -1px 0 var(--sa-line0);padding-top:16px}
  #studio-root .sa-f3-foot{border-top-color:var(--sa-line0)}
}

/* ---- RTL. dir=auto keeps a Latin name or post title isolated, but its
   line still follows the page: aligned right, like Library titles.
   Empty fields (dir=auto) show their Arabic placeholder from the right. */
html[dir=rtl] #studio-root [dir=auto]:not(input,textarea){text-align:right}
html[dir=rtl] #studio-root :is(input,textarea)[dir=auto]:placeholder-shown{direction:rtl;text-align:right}
/* studio.css aligns these rows and cards with physical left/right. */
html[dir=rtl] #studio-root :is(.sa-palette-txt,.sa-plan,.sa-dl-row,.sa-f3-head,.sa-acc .sa-settings-4,.sa-soc .menu button,.sa-soc .sa-me-27,.sa-soc .sa-artist-26,.sa-sw .menu button,.sa-sw .li){text-align:right}
html[dir=rtl] #studio-root :is(.sa-plan-price,.sa-build-nails:not(.is-start) .sa-build-to-wrap,.sa-soc .dl b,.sa-soc .sa-dex-11,.sa-soc .sa-dex-18,.sa-gd .kv span:last-child){text-align:left}
/* ...and push the trailing chevron/count to the row's end with margin-left:auto. */
html[dir=rtl] #studio-root :is(.sa-acc .li .r,.sa-com .pa.vw,.sa-soc .sa-dex-11,.sa-sw .pa.vw,.sa-sw .li .r,.sa-gd .grph span.c,.sa-gd .sech span.c){margin-left:0;margin-right:auto}

/* ---- Guides (1100+): the three method cards share row lines (subgrid),
   so their Level/Time/Needs rows start on one line even when a value
   wraps; from 1400 the values have room and stay on one line. */
@media (min-width:1100px){
  #studio-root .sa-guides [data-gd-pane="setup"]>button.card.sa-gd-method{display:grid;grid-row:span 3;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr);row-gap:0;height:auto}
  #studio-root .sa-guides [data-gd-pane="setup"]>button.card.sa-gd-method>.meta{margin-top:0}
}
@media (min-width:1400px){
  #studio-root .sa-guides [data-gd-pane="setup"]>button.card.sa-gd-method>.meta{grid-template-columns:repeat(3,minmax(max-content,1fr))}
  #studio-root .sa-guides [data-gd-pane="setup"]>button.card.sa-gd-method>.meta b{white-space:nowrap}
}

/* ---- Create: the photo tools keep their icons at full size, and below
   1000 the three chips tighten so "Hintergrund entfernen" stays on one
   line in the 428px stage. */
#studio-root .sa-stage-tools .chip svg{flex:none}
/* Result: "アルゴリズム B" and its computing spinner stay on one line. */
#studio-root .sa-algo-seg button{white-space:nowrap}
@media (min-width:900px) and (max-width:999.98px){
  #studio-root .sa-stage-tools{left:8px;right:8px;gap:6px}
  #studio-root .sa-stage-tools .chip{padding:0 10px;gap:5px;font-size:12.5px}
}

/* ==== Loop 11 ============================================================ */

/* Build (900 to 1099): "Previous nail" keeps a real inset in every
   language ("Chiodo precedente" had 7px); its column grows to fit the
   label and Next takes the rest. Where both fit, the halves stay equal. */
@media (min-width:900px) and (max-width:1099.98px){
  #studio-root .sa-build .sa-build-nav{grid-template-columns:minmax(max-content,1fr) minmax(0,1fr)}
  #studio-root .sa-build .sa-build-nav>.btn{padding-inline:18px}
}

/* Profile, String Dex row (1100+, a 142px column): the badge name after
   "Rarest:" starts its own line instead of breaking at an arbitrary word
   ("Rarest: String / Theory PhD"). A long name ("Doctorado en teoría de
   cuerdas") wraps evenly onto a third line rather than being cut. */
@media (min-width:1100px){
  #studio-root .sa-pf .sa-me-40{-webkit-line-clamp:3}
  #studio-root .sa-pf .sa-me-40>.sa-me-badge{display:block;text-wrap:balance}
}

/* Downloads, PDF text size: the labels share a top line when one hint
   takes one line and its neighbours two ("Mittel" sat 8px lower). The
   top inset (6.9px) is where centring put the labels in a 44px button
   with one-line hints, so en, es and the rest look as before. */
#studio-root .sa-pdf-size button{justify-content:flex-start;padding-top:6.9px}

/* Admin at 768: each fact of a design ("220 nails", "3,000 lines") stays
   on one line; the row breaks between facts. */
@media (max-width:899.98px){
  #studio-root .sa-adm .sa-adm-detail>.sa-adm-fact{white-space:nowrap}
}

/* Explore cards: keyboard order follows what the card shows top down:
   the media, its More button (pinned to the media's corner), the author,
   then the actions; the source order put the author first. */
#studio-root [data-studio-explore-feed] .post{reading-flow:grid-rows}
#studio-root [data-studio-explore-feed] .post>.ph-row{reading-flow:source-order}
#studio-root [data-studio-explore-feed] .post>.ph-row>.ib{reading-order:-1}

/* ==== Loop 12 ============================================================ */

/* Dex entry: a click on the dimmed backdrop closes the dialog, as every
   other dialog does. The phone ghost grid (the phone backdrop, with the
   dex-close action) becomes the dimmed backdrop itself, under the sheet,
   and like the other dialogs' scrims it also covers the rail. */
#studio-root .sa-dex-layer.sa-dex-sheet-on{background:none}
#studio-root .sa-dex-layer .sa-dex-ghost:not([hidden]){display:block;position:absolute;inset-block:0;inset-inline:calc(-1 * var(--dk-rail)) 0;padding:0;opacity:1;background:rgba(5,6,7,.66);cursor:default}
#studio-root .sa-dex-layer .sa-dex-ghost>*{display:none}
#studio-root .sa-dex-layer>.sheet{z-index:2}
/* Short windows: Close and Share stay fully inside the dialog. The hero
   medal steps down so the whole entry fits at 600px tall; shorter still,
   the actions row sticks to the dialog's bottom edge while the rest
   scrolls. */
#studio-root .sa-dex-layer .sa-dexentry-45{position:sticky;bottom:0;z-index:1;background:var(--sa-s1)}
@media (max-height:680px){
  #studio-root .sa-soc .sa-dex-layer .sa-dexentry-29{width:100px;height:100px}
  #studio-root .sa-soc .sa-dex-layer .sa-dexentry-31{width:80px;height:80px}
  #studio-root .sa-soc .sa-dex-layer .sa-medal-xl .sa-medal-ic{width:36px;height:36px}
  #studio-root .sa-soc .sa-dex-layer .sa-dexentry-33{margin-top:6px;font-size:24px}
  #studio-root .sa-soc .sa-dex-layer .sa-dexentry-35{margin-top:14px}
  #studio-root .sa-dex-layer .sa-dexentry-45{margin-top:14px;padding-top:2px;padding-bottom:16px}
}

/* Build (1100+): the 900 to 1099 column rule holds here too, so "Chiodo
   precedente" keeps a real inset; where both labels fit, the halves stay
   equal. */
@media (min-width:1100px){
  #studio-root .sa-build .sa-build-nav{grid-template-columns:minmax(max-content,1fr) minmax(0,1fr)}
  #studio-root .sa-build .sa-build-nav>.btn{padding-inline:18px}
}
/* Build (900 to 1099): neither step button has a chevron. With the back
   chevron, Italian would squeeze Next to 103px; the labels say it all. */
@media (min-width:900px) and (max-width:1099.98px){
  #studio-root .sa-build .sa-build-nav>[data-studio-action="build-next"]>.ic{display:none}
}

/* Create settings panel (900 to 1099, 284px wide): toggle names match the
   14px setting names, so "Reducir el efecto de rombos" (es) stays on one
   line beside its switch (loop 13 sweep). */
@media (min-width:900px) and (max-width:1099.98px){
  #studio-root .sa-create .sa-toggle-name{font-size:14px}
}

/* 3D frame (1280+): the "One segment + pin" card holds a 240px preview
   instead of stretching with the window, and spare height falls below the
   guide link. In shorter windows only the preview gives way (the card is
   hidden up to 780px tall). The cut-out render sits on the theme's
   viewport surface, so in light it matches the 3D stage beside it. */
#studio-root .sa-f3d .dk-pin{flex:0 1 auto;min-height:auto}
#studio-root .sa-f3d .dk-pinimg{flex:0 1 240px;min-height:112px;position:relative}
#studio-root .sa-f3d .dk-pinimg img{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);object-fit:contain}
@media (min-width:1280px) and (max-height:780px){
  #studio-root .sa-f3d .dk-pin{display:none}
}
:root.studio[data-theme="light"] #studio-root .sa-f3d .dk-pinimg{background:var(--sa-bg);box-shadow:inset 0 0 0 1px var(--sa-line)}

/* Create (768 to 1280): when the crop sits near the photo's bottom edge the
   stage shows a band of backdrop under the photo. A soft bottom scrim gives
   the Crop / Remove BG / Replace bar one consistent surface either way. */
@media (max-width:1280px){
  /* Tall enough to cover a low crop's photo edge (about 30px above the
     stage bottom at 768 to 1280) as well as seat the tools. */
  #studio-root .sa-create .sa-stage::after{content:"";position:absolute;inset-inline:0;bottom:0;height:140px;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.5) 40%,rgba(0,0,0,.9) 76%,rgba(0,0,0,.92));pointer-events:none}
  #studio-root .sa-create .sa-stage-tools{z-index:1}
  :root.studio[data-theme="light"] #studio-root .sa-create .sa-stage::after{background:linear-gradient(rgba(246,245,242,0),rgba(246,245,242,.55) 40%,rgba(246,245,242,.9) 76%,rgba(246,245,242,.92))}
}

/* ---- Loop 15 fixes ------------------------------------------------------ */
/* The comments emoji picker is a floating card on wide screens: rounded on
   every corner, lifted off the window edge, no phone safe-area padding. */
#studio-root .sa-soc .sa-cm-sheet.open{border-radius:24px;margin-bottom:16px;bottom:16px;padding-bottom:4px}
#studio-root .sa-soc .sa-cm-sheet.open .sa-comments-36{padding-bottom:12px}
/* Focus placed on a screen title after navigation shows no ring. */
#studio-root [data-studio-nav-focus]:focus{outline:none}
/* No lone last word in the Create switch descriptions. */
#studio-root .sa-toggle-sub{text-wrap:pretty}

/* ---- Loop 17 fixes ------------------------------------------------------ */
/* Write your post: the terms and "Share post" stay in reach on laptop
   heights, as the Guide's footer does: an opaque band with a top hairline. */
#studio-root .sa-com .sa-newpost-32{position:sticky;bottom:0;z-index:3;margin-top:24px;padding:16px 0;background:var(--sa-bg);border-top:1px solid var(--sa-line)}
/* Create, 768 to 899 with no session to restore: Load design still sits at
   the end of the bar (the hidden Restore button carried the auto margin). */
@media (max-width:899.98px){
  #studio-root .sa-create>.bar>.ib:disabled~.ib:last-child{margin-inline-start:auto}
}
/* Rail: hover reads differently from the active section (a light fill
   with a hairline edge, against the active item's solid tile). */
#studio-root .sa-rail-i:hover{box-shadow:inset 0 0 0 1px var(--sa-s2)}
/* Fields reached with Tab scroll clear of that footer. */
html.studio:has(#studio-root>[data-studio-screen="post-write"]:not([hidden])){scroll-padding-bottom:104px}

/* ---- Loop 19: one artwork backdrop in dark mode. The feed and the post
   page set the disc on a cream "paper" block while Me, Artist and Library
   show the same pieces on dark tiles, so one post looked different in the
   feed and on its maker's profile. On tablets and desktops the dark tile
   (the card surface) is the one treatment; light mode keeps its paper. */
/* Feed card: the media box is see-through, so the card's own surface and
   hairline run unbroken around the piece. */
:root.studio:not([data-theme="light"]) #studio-root [data-studio-explore-feed] .sa-explore-22{background:transparent}
:root.studio:not([data-theme="light"]) #studio-root [data-studio-explore-feed] .sa-explore-23{box-shadow:none}
/* Post page: the piece sits on a card-surface panel. */
:root.studio:not([data-theme="light"]) #studio-root .sa-com .sa-post-4{background:var(--sa-s1)}
/* Featured strip: the thumbnail is a tile one step up from its card. */
:root.studio:not([data-theme="light"]) #studio-root .sa-com .sa-explore-11{background:var(--sa-s2)}
/* The glass ⋯ chip now sits on the dark card, not on paper: a hairline
   keeps its edge, as on the Library card's ⋯. */
:root.studio:not([data-theme="light"]) #studio-root [data-studio-explore-feed] .ph-row>.ib:not(:hover){box-shadow:inset 0 0 0 1px var(--sa-line0)}

/* ---- Loop 20 -------------------------------------------------------------
   Light mode: keyboard focus and focused fields use the deep amber
   (--sa-acc-tx, #9A5800: 5.4:1 on cream and white); the bright amber is
   1.8:1 there. Screens that stay dark (crop) resolve the token to the bright
   amber. The crop circle's outline is not a focus ring. */
:root.studio[data-theme="light"] #studio-root :not(.sa-stage-cut){outline-color:var(--sa-acc-tx)!important}
:root.studio[data-theme="light"] #studio-root .sel:focus-within{box-shadow:0 0 0 2px var(--sa-acc-tx)}
:root.studio[data-theme="light"] #studio-root .sa-acc :is(.fld:focus-within,.inp:focus,.sa-profile-edit-24:focus-within),:root.studio[data-theme="light"] #studio-root .sa-gd .inp:focus{border-color:var(--sa-acc-tx)}
/* The comment composer's focused edge (both themes): a 2px amber ring, as
   on the post page's field; the grey hairline it had was about 1.6:1. */
:root.studio #studio-root .sa-soc .sa-comments-25:focus-within,:root.studio #studio-root .sa-soc .sa-cm-sheet .sa-comments-25:focus-within{box-shadow:inset 0 0 0 2px var(--sa-acc-tx)}
:root.studio[data-theme="light"] #studio-root .sa-f3d .dk-trk:has(.dk-range:focus-visible) .dk-knob{box-shadow:0 0 0 3px var(--sa-bg),0 0 0 5px var(--sa-acc-tx)}

/* Admin (Arabic): each fact of a design row ("220 مسمار") is its own
   right-to-left unit, so its number stays beside its own word when the
   title is Latin. */
html[dir="rtl"] #studio-root .sa-adm .sa-adm-fact{unicode-bidi:isolate;direction:rtl}

/* Unlock: the plan line breaks evenly ("Pays for itself / at 10 designs"). */
#studio-root .sa-unlock .sa-plan-name>.sa-plan-sub{display:block;text-wrap:balance}

/* One artwork treatment in both themes: the piece sits on the card surface
   (white in light, the dark tile in dark), as on Me, Artist and Library.
   The feed disc keeps a 16px inset, in line with the card's text. */
:root.studio[data-theme="light"] #studio-root [data-studio-explore-feed] .sa-explore-22{background:transparent}
:root.studio[data-theme="light"] #studio-root [data-studio-explore-feed] .sa-explore-23{box-shadow:none}
:root.studio[data-theme="light"] #studio-root .sa-com .sa-post-4{background:var(--sa-s1);box-shadow:inset 0 0 0 1px var(--sa-line)}
:root.studio[data-theme="light"] #studio-root [data-studio-explore-feed] .ph-row>.ib:not(:hover){box-shadow:inset 0 0 0 1px var(--sa-line)}
#studio-root [data-studio-explore-feed] .sa-explore-23{width:calc(100% - 32px)}

/* ---- Loop 21 -------------------------------------------------------------
   First paint. A reload that reopens another screen (studio.js), or a
   shared ?post= / ?guide= / ?profile= link, keeps the screens blank until
   it has, and the rail marks that screen from the start, so the editor
   never shows first. */
html[data-sa-restoring] #studio-root>[data-studio-screen]{visibility:hidden}
html[data-sa-restoring] #studio-root .sa-rail .sa-rail-i{color:var(--sa-muted)!important;background:transparent!important}
html:is([data-sa-restoring="explore"],[data-sa-restoring="post"],[data-sa-restoring="profile"]) #studio-root .sa-rail .sa-rail-i[data-studio-tab="explore"],
html:is([data-sa-restoring="library"]) #studio-root .sa-rail .sa-rail-i[data-studio-tab="library"],
html:is([data-sa-restoring="guides"],[data-sa-restoring="guide"]) #studio-root .sa-rail .sa-rail-i[data-rail="guides"],
html:is([data-sa-restoring="settings"],[data-sa-restoring="help"]) #studio-root .sa-rail .sa-rail-i[data-rail="settings"],
html:is([data-sa-restoring="notifications"],[data-sa-restoring="me"]) #studio-root .sa-rail .sa-rail-i[data-studio-tab="me"]{color:var(--sa-acc-tx)!important;background:var(--sa-s1)!important}
/* Create: the settings panel shows once it holds the current values. */
#studio-root .sa-create:not([data-sa-ready]) [data-studio-sheet="settings"] .sa-settings-body{visibility:hidden}
/* Post page: the comment field's focus is one 2px amber edge, as on the
   Comments page (the field's own hairline becomes part of it). */
#studio-root .sa-com.sa-postpg .sa-post-29:focus{outline:none;border-color:var(--sa-acc-tx);box-shadow:inset 0 0 0 1px var(--sa-acc-tx)}

/* ---- Loop 22 -------------------------------------------------------------
   3D frame on portrait tablets in short windows (768 to 899, up to 700px
   tall): the model stage gives up height, so the settings card shows its
   header and two whole rows above the pinned Apply / Download footer
   instead of a row cut at the fold. */
@media (min-width:768px) and (max-width:899.98px) and (max-height:700px){
  #studio-root .sa-f3-stage{height:calc(100vh - 340px);min-height:200px}
}
