/* Shared public design system. Authentication forms keep their own styles. */
:root{--paper:#f8f6f3;--surface:#fffefa;--ink:#26262a;--ink-strong:#202125;--muted:#85817e;--line:#e7e2dc;--purple:#7058b4;--purple-soft:#eeebf7;--brand:#7058b4;--brand-deep:#5c449c;--canvas:#f8f6f3;--dark:#242429;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;letter-spacing:0;color-scheme:light}
body.studio-site{background:var(--paper);color:var(--ink);line-height:1.6}
.studio-site *, .studio-site *::before,.studio-site *::after{letter-spacing:0}
.studio-site [hidden]{display:none!important}
.h5-icon{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;pointer-events:none}
.studio-site button{transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s}
.studio-site button:focus-visible,.studio-site a:focus-visible,.studio-site [tabindex]:focus-visible{outline:2px solid #957ec7;outline-offset:3px}
.studio-site>aside{position:sticky;top:0;align-self:flex-start;width:216px;height:100dvh;padding:28px 14px 18px;background:#fbfaf8;border-right:1px solid var(--line);overflow:hidden}
.studio-site>aside .brand{gap:10px;padding:0 12px;font-size:23px;white-space:nowrap}
.studio-site>aside .brand>span{width:34px;height:36px;border-radius:8px;background:#7058b4;box-shadow:none}
.studio-site>aside .brand b{font-weight:760;line-height:1.2}
.studio-site>aside .brand em,.h5-mobile-brand em{font-style:normal;font-weight:500}
.studio-site>aside .brand small{margin-top:5px;color:#9a928b;font-size:10px;font-weight:450}
.studio-site>aside nav{display:flex;flex-direction:column;gap:3px;min-height:0;margin:30px 0 12px;padding:0 0 12px;overflow:auto;scrollbar-width:thin;scrollbar-color:#ded9d3 transparent}
.studio-site>aside nav button{display:flex;align-items:center;flex:none;gap:12px;width:100%;min-height:44px;padding:10px 13px;border:0;border-radius:6px;background:transparent;color:#77726f;font-size:14px;font-weight:550;text-align:left;box-shadow:none}
.studio-site>aside nav button small{display:none}
.studio-site>aside nav button>.h5-icon{width:19px;height:19px;color:#98918a}
.studio-site>aside nav button:hover{background:#efede9;color:#333035}
.studio-site>aside nav button.active{background:#ece7f4;color:#63489b}
.studio-site>aside nav button.active>.h5-icon{color:#7058b4}
.studio-site>aside .studio-nav-heading{margin:19px 13px 6px;color:#aaa19a;font-size:10px;font-weight:500}
.studio-site>aside .side-note{padding:16px 12px 0;margin-top:auto;border-top:1px solid var(--line);font-size:12px;color:#908982}
.studio-site>aside .side-note small{font-size:10px;color:#aaa19a}
.studio-site>.shell{min-width:0;max-width:calc(100% - 216px)}
.studio-site>.shell>header{position:sticky;top:0;z-index:80;flex:none;height:66px;padding:0 34px;background:#fbfaf8f5;border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.studio-site>.shell>header small{display:none}
.studio-site>.shell>header strong{font-size:14px;font-weight:550;color:#837a73}
.studio-site>.shell>header #auth-control,.studio-site>.shell>header #register-control,.studio-site>.shell>header #member-account-control{min-height:34px;height:34px;border-radius:6px;padding:0 13px;line-height:32px;border-color:#e0d9d1;background:transparent;color:#5d5654;font-size:12px;font-weight:550;box-shadow:none}
.studio-site>.shell>header #register-control{background:#7058b4;border-color:#7058b4;color:#fff}
.studio-site>.shell>header .local{height:30px;padding:0 9px;border:0;border-radius:4px;background:#ecf1eb;color:#5b7660;font-size:11px}
.studio-site #app{width:100%;max-width:1680px;min-width:0;padding:34px;margin:0 auto;overflow-wrap:anywhere}
.studio-site #app:not([data-page="account"]) :is(button,input,select,textarea){font-size:14px}
.studio-site #app:where(:not([data-page="account"])) button{min-height:38px;padding:9px 14px;border-radius:6px;box-shadow:none}
.studio-site #app:where(:not([data-page="account"])) button:where(:not(.primary)){background:#fffdf9;border-color:#e1dcd5;color:#5b5456}
.studio-site #app:where(:not([data-page="account"])) button:where(:not(.primary)):hover{border-color:#b9a8cc;background:#f7f4fb}
.studio-site #app:not([data-page="account"]) .primary,.studio-site .h5-preview-footer .primary{background:#7058b4;border-color:#7058b4;color:#fff;box-shadow:none}
.studio-site #app:not([data-page="account"]) .primary:hover,.studio-site .h5-preview-footer .primary:hover{background:#5c449c;border-color:#5c449c}
.studio-site #app:not([data-page="account"]) .page-head{gap:20px;margin-bottom:26px;align-items:center}
.studio-site #app:not([data-page="account"]) .page-head h1{font-size:28px;line-height:1.3;margin:5px 0 8px;font-weight:720}
.studio-site #app:not([data-page="account"]) .page-head p{max-width:720px;font-size:13px;line-height:1.7;color:#8b817b}
.studio-site #app:not([data-page="account"]) .eyebrow{display:none}
.studio-site #app:not([data-page="account"]) :is(.meta,.muted){font-size:12px;line-height:1.65;color:#8c837d}
.studio-site #app:not([data-page="account"]) .card{padding:22px;border-radius:8px;background:#fffdf9;border-color:var(--line);box-shadow:none}
.studio-site #app:not([data-page="account"]) .card :is(h2,h3){font-size:20px;line-height:1.4}
.studio-site #app:not([data-page="account"]) .badge{border-radius:4px;font-size:11px;padding:3px 7px;background:#eeeaf6;color:#7058a7}
.studio-site #app:not([data-page="account"]) :is(.mode-form,.channel-form) label{font-size:13px;font-weight:600}
.studio-site #app:not([data-page="account"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),textarea,select){max-width:100%;min-width:0;border-radius:6px;border-color:#ded7ce;background-color:#fffefb;box-shadow:none}
.studio-site #app:not([data-page="account"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),select){min-height:42px}
.studio-site #app:not([data-page="account"]) :is(textarea,input,select):focus{outline:2px solid #a28bc331;outline-offset:1px;border-color:#a28bc3}
.studio-site #app:not([data-page="account"]) :is(.mode-stage,.template-band,.engine-settings,.image-canvas-studio,.image-edit-canvas-guide){border-radius:0;background:none;box-shadow:none}
.studio-site #app:not([data-page="account"]) .mode-stage{min-height:0;padding:22px 0;color:var(--ink);border-bottom:1px solid var(--line)}
.studio-site #app:not([data-page="account"]) .mode-stage h2{margin:0 0 7px;font-size:23px}
.studio-site #app:not([data-page="account"]) .mode-stage p{margin:0;color:#8c827c;font-size:13px;line-height:1.7}
.studio-site #app:not([data-page="account"]) .mode-shell{gap:22px}
.studio-site #app:not([data-page="account"]) .mode-shell>.card{background:none;border:0;padding:0}
.studio-site #app:not([data-page="account"]) .engine-settings{max-width:none;padding:20px 0;border:0;border-bottom:1px solid var(--line);gap:16px 22px}
.studio-site #app:not([data-page="account"]) .engine-settings>b{font-size:16px}
.studio-site #app:not([data-page="account"]) .reference-group{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 0;background:none;box-shadow:none}
.studio-site #app:not([data-page="account"]) .reference-group>b{font-size:16px}
.studio-site #app:not([data-page="account"]) .reference-group>b::before{display:none}
.studio-site #app:not([data-page="account"]) .reference-group>small{font-size:12px;max-width:880px;line-height:1.7}
.studio-site #app:not([data-page="account"]) .reference-slot{border-radius:8px;box-shadow:none;transform:none;background:#fffdf9}
.studio-site #app:not([data-page="account"]) .reference-slot b{font-size:14px}
.studio-site #app:not([data-page="account"]) .reference-slot small{font-size:12px}
.studio-site #app:not([data-page="account"]) .template-band{padding:20px 0;border:0;border-bottom:1px solid var(--line)}
.studio-site #app:not([data-page="account"]) .template-band h2{font-size:17px;margin:0 0 5px}
.studio-site #app:not([data-page="account"]) .template-band p{font-size:12px}
.studio-site #app:not([data-page="account"]) .v2-grid{gap:8px}
.studio-site #app:not([data-page="account"]) .v2-grid button{min-height:78px;padding:13px 14px;background:#fffdf9;border-radius:6px}
.studio-site #app:not([data-page="account"]) .v2-grid button b{font-size:14px;font-weight:650}
.studio-site #app:not([data-page="account"]) .v2-grid button small{font-size:11px;line-height:1.45;margin-top:5px;color:#938981}
.studio-site #app:not([data-page="account"]) .v2-grid button[aria-pressed="true"]{background:#eee9f6;border-color:#a18abd;color:#634794}
.studio-site #app:not([data-page="account"]) .notice{margin-top:20px;font-size:12px;border-radius:0;background:#f0ede7;border-left-color:#b9aa92;color:#8a7c69}
.studio-site #app:not([data-page="account"]) :is(.image-canvas-studio,.image-edit-canvas-guide){padding:20px 0;border:0;border-bottom:1px solid var(--line)}
.studio-site #app:not([data-page="account"]) .image-canvas-intro h3{font-size:20px}
.studio-site #app:not([data-page="account"]) .image-canvas-intro p{font-size:12px}
.studio-site #app:not([data-page="account"]) .image-output-spec{min-width:190px;padding:12px 16px;border-radius:6px;background:#ece8f4;box-shadow:none;color:#6d579c}
.studio-site #app:not([data-page="account"]) .image-output-spec :is(small,em){color:#8a7c9f;font-size:11px}
.studio-site #app:not([data-page="account"]) .image-output-spec strong{font-size:19px}
.studio-site #app:not([data-page="account"]) .job-card{display:block;border-left:2px solid #dfd7ca}
.studio-site #app:not([data-page="account"]) .job-card.is-active{border-left-color:#a28bc3}
.studio-site #app:not([data-page="account"]) .job-card h2{font-size:19px}
.studio-site #app:not([data-page="account"]) .job-canvas{border-radius:6px;min-width:0;max-width:100%}
.studio-site #app:not([data-page="account"]) .job-prompt-summary{font-size:13px;color:#8d827c}
.studio-site #app:not([data-page="account"]) :is(.empty,.hero,.asset,.asset-slot,.library-asset,.member-work-card){border-radius:8px}
.studio-site #app:not([data-page="account"]) .empty{padding:60px 20px;background:none;border:1px dashed #ded7cd}
.studio-site #app:not([data-page="account"]) .empty h2{font-size:22px}
.studio-site #app:not([data-page="account"]) .empty p{font-size:13px}
.studio-site #app:not([data-page="account"]) .character-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:18px}
.studio-site #app:not([data-page="account"]) .character-card{padding:14px;min-width:0}
.studio-site #app:not([data-page="account"]) .character-card h2{font-size:21px}
.studio-site #app:not([data-page="account"]) .hero-copy h1{font-size:30px}
.studio-site dialog{max-height:calc(100dvh - 32px);overflow:auto;border-radius:8px}
.studio-site .h5-mobile-header,.studio-site .h5-mobile-bottom{display:none}
.studio-site .h5-menu-dialog:not([open]),.studio-site .h5-preview-dialog:not([open]){display:none}

/* Discovery and horizontal feature shelves. */
.studio-site #app[data-page="home"],.studio-site #app[data-page="create"]{padding-top:28px}
.h5-home,.studio-create-page{max-width:1560px;margin:0 auto;min-width:0}
.studio-home-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}
.studio-kicker{display:block;font-size:11px;color:#8c7968;font-weight:500}
.studio-home-heading h1{font-size:29px;line-height:1.4;font-weight:700;margin:5px 0 0}
.studio-site #app :is(.studio-text-link,.studio-section-actions button,.studio-rail-arrow){display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:2px 0;border:0;background:none;box-shadow:none;font-size:12px;font-weight:500;color:#95877d;white-space:nowrap}
.studio-site #app .studio-text-link:hover{color:#6b4fa0;background:none}
.studio-text-link .h5-icon{width:15px;height:15px}
.studio-quick-tools{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 27px;padding:0 0 23px;border-bottom:1px solid var(--line)}
.studio-site #app .studio-quick-tools button{display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 0;border:0;background:transparent;box-shadow:none;text-align:left}
.studio-quick-tools button>span{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:8px;background:#ece8f3;color:#8c70b0}
.studio-quick-tools button:nth-child(2)>span,.studio-quick-tools button:nth-child(5)>span{background:#e5eee9;color:#709184}
.studio-quick-tools button:nth-child(3)>span{background:#f2e6e3;color:#b3857d}
.studio-quick-tools button:nth-child(4)>span{background:#f0eadd;color:#ac956b}
.studio-quick-tools button:nth-child(6)>span{background:#ebe8e2;color:#9f9283}
.studio-quick-tools button b{font-size:13px;font-weight:550}
.studio-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}
.studio-section-head h2{margin:0;font-size:17px;line-height:1.5;font-weight:650}
.studio-section-actions{display:flex;align-items:center;gap:10px}
.studio-site #app .studio-section-actions .studio-rail-arrow{width:26px;min-height:26px;border:1px solid #e5dfd7;border-radius:50%;padding:0}
.studio-rail-arrow .h5-icon{width:14px;height:14px}
.studio-rail-arrow:disabled{opacity:.25;cursor:default}
.studio-latest{padding-bottom:27px;border-bottom:1px solid var(--line)}
.studio-latest-rail,.studio-tool-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 24px)/3.3);gap:12px;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 0 5px;scroll-padding-inline:0}
.studio-latest-rail::-webkit-scrollbar,.studio-tool-rail::-webkit-scrollbar{display:none}
.studio-latest-rail>* ,.studio-tool-rail>*{scroll-snap-align:start;min-width:0}
.studio-latest-rail .h5-gallery-cover{aspect-ratio:16/9}
.studio-latest-rail .h5-gallery-copy{padding-top:9px}
.studio-latest-rail .h5-gallery-copy p{display:none}
.studio-home-tools{display:grid;gap:24px;padding:26px 0 30px;border-bottom:1px solid var(--line)}
.studio-tool-rail{grid-auto-columns:calc((100% - 60px)/5.5);gap:12px}
.studio-site #app .studio-tool-card{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;min-width:0;min-height:160px;height:160px;padding:18px 16px;overflow:hidden;text-align:left;border:1px solid #e4ddef;border-radius:8px;background:#eeebf5;box-shadow:none;color:#63547e}
.studio-site #app .studio-tool-card.tone-jade{background:#e8efea;border-color:#dce7de;color:#627d6b}
.studio-site #app .studio-tool-card.tone-rose{background:#f2e9e6;border-color:#eaded9;color:#a17e76}
.studio-site #app .studio-tool-card.tone-amber{background:#f2eddf;border-color:#e9e1ce;color:#9d875c}
.studio-tool-symbol{display:block;margin:0 0 18px}
.studio-tool-symbol .h5-icon{width:34px;height:34px;stroke-width:1.3}
.studio-tool-copy{display:block;min-width:0;width:100%}
.studio-tool-copy b{display:block;font-size:15px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.studio-tool-copy small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:28px;margin-top:5px;font-size:10px;line-height:1.4;font-weight:450;opacity:.9}
.studio-tool-arrow{position:absolute;right:12px;top:12px;opacity:.5}
.studio-tool-arrow .h5-icon{width:15px;height:15px}
.studio-site #app .studio-tool-card.has-cover{padding:0;color:#fff;border:0;background:#333}
.studio-tool-card.has-cover>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.studio-tool-card.has-cover::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#00000008 25%,#17131dbf 100%)}
.studio-tool-card.has-cover .studio-tool-copy{padding:52px 13px 12px;margin-top:auto}
.studio-tool-card.has-cover small{min-height:0;color:#fff;font-size:10px;-webkit-line-clamp:1}
.studio-site #app .studio-tool-card:hover{border-color:#b09cc6;box-shadow:0 3px 10px #5143340b}
.studio-discovery-section{padding-top:28px}
.studio-discovery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.studio-collection-tabs{display:flex;align-items:center;gap:22px;min-width:0;overflow:auto;scrollbar-width:none}
.studio-site #app .studio-collection-tabs button{position:relative;flex:none;min-height:36px;padding:4px 0;border:0;border-radius:0;background:transparent;color:#a0978f;font-size:13px;font-weight:500}
.studio-site #app .studio-collection-tabs button[aria-pressed="true"]{color:#6c4f9d}
.studio-collection-tabs button[aria-pressed="true"]::after{content:"";position:absolute;inset:auto 0 -1px;height:2px;background:#8a70ad}
.h5-search{display:flex;align-items:center;gap:9px;flex:none;width:240px;height:36px;margin:0;padding:0 11px;border:1px solid #e2dcd4;border-radius:6px;background:#fffdf9}
.h5-search>.h5-icon{width:15px;height:15px;color:#b4a99e}
.studio-site #app .h5-search input{display:block;width:100%;min-width:0;min-height:0;height:100%;border:0!important;outline:0!important;background:transparent;border-radius:0;padding:0;font-size:12px;box-shadow:none}
.h5-search input::placeholder{color:#b5a99f}
.h5-search:focus-within{border-color:#ab96c2}
.h5-filter-row{display:flex;align-items:center;gap:8px;margin:16px 0}
.studio-site #app .h5-filter-row button{min-height:28px;padding:4px 10px;border:0;background:transparent;border-radius:4px;font-size:11px;color:#a89b90;font-weight:500}
.studio-site #app .h5-filter-row button[aria-pressed="true"]{background:#ebe6f2;color:#77618d}
.h5-filter-row>span{margin-left:auto;font-size:11px;color:#b1a497}
.h5-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px 16px;min-width:0}
.h5-gallery-card{min-width:0;background:transparent;border:0;border-radius:0;overflow:hidden}
.studio-site #app .h5-gallery-cover{position:relative;display:block;width:100%;aspect-ratio:16/10;overflow:hidden;padding:0;border:0;border-radius:8px;background:#eae5de;box-shadow:none}
.h5-gallery-cover>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.studio-hover-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;transition:opacity .15s}
.is-hover-playing .studio-hover-video{opacity:1}
.studio-tool-card>.studio-hover-video{z-index:-2}
.h5-gallery-cover>.studio-hover-video{z-index:1}
.h5-gallery-cover>.h5-media-label,.h5-gallery-cover>.h5-play,.h5-gallery-cover>.studio-duration{z-index:2}
.is-hover-playing .h5-play{opacity:0}
@media(hover:hover){.h5-gallery-cover:hover>img{transform:scale(1.035)}}
.h5-media-label{position:absolute;top:9px;left:9px;padding:2px 6px;background:#fffef1e8;color:#7b6d5f;border-radius:3px;font-size:10px;line-height:1.6;font-weight:500}
.h5-play{position:absolute;right:9px;top:9px;display:grid;place-items:center;width:25px;height:25px;background:#fffef3de;border-radius:50%;color:#736456}
.h5-play .h5-icon{width:12px;height:12px;fill:currentColor;stroke-width:1}
.studio-duration{position:absolute;bottom:8px;right:9px;padding:1px 4px;border-radius:3px;background:#231d1c80;color:#fff;font-size:9px;font-weight:400}
.h5-gallery-copy{padding:10px 0 0}
.h5-gallery-copy h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;margin:0;font-size:14px;font-weight:600;line-height:1.6}
.h5-gallery-copy p{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:5px 0 0;color:#a79b90;font-size:10px;line-height:1.5}
.h5-gallery-copy p span{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.h5-gallery-copy p .h5-icon{width:13px;height:13px;color:#b9aa9b}
.h5-no-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;font-size:12px;color:#a09488}
.h5-no-preview>.h5-icon{width:32px;height:32px}
.h5-gallery-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:14px;min-height:240px;padding:48px 16px;text-align:center;color:#b1a495}
.h5-gallery-empty h2{font-size:15px;font-weight:500;margin:0;color:#9d8e80}
.h5-gallery-skeleton{aspect-ratio:16/10;border-radius:8px;background:#eae5df}
.studio-site #app .studio-load-more{display:flex;align-items:center;justify-content:center;gap:8px;min-width:160px;min-height:40px;padding:8px 20px;margin:32px auto;border-color:#e2dad0;background:none;font-size:12px;color:#9a8d80}
.studio-create-page .studio-tool-section{margin-top:30px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.studio-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.studio-account-links{display:flex;gap:24px;margin-top:30px}
.studio-site #app .studio-account-links button{display:flex;align-items:center;gap:10px;padding:10px 0;border:0;background:none;color:#8b7c70;font-size:13px}
.studio-account-links .h5-icon{width:17px;height:17px}

/* Shared menu and preview, independent of the authentication dialog. */
.h5-menu-dialog[open]{display:block;position:fixed;inset:0 0 0 auto;width:min(340px,calc(100% - 28px));height:100dvh;max-height:100dvh;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:#fffdf9;color:#39332f;box-shadow:-12px 0 45px #29201712}
.h5-menu-dialog::backdrop,.h5-preview-dialog::backdrop{background:#2e292975;backdrop-filter:blur(3px)}
body.h5-menu-open{overflow:hidden}
.h5-menu-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 22px;background:#fffdf9;border-bottom:1px solid var(--line)}
.h5-menu-heading h2{margin:0;font-size:18px}
.h5-menu-heading button,.h5-preview-head button{display:grid;place-items:center;flex:none;width:36px;min-height:36px;padding:0;border:0;border-radius:6px;background:none;color:#9a8a7d;box-shadow:none}
.h5-menu-content{padding:10px 20px calc(24px + env(safe-area-inset-bottom))}
.h5-menu-content section{padding:12px 0;border-bottom:1px solid var(--line)}
.h5-menu-content h3{margin:0 0 7px;font-size:11px;font-weight:450;color:#b3a393}
.h5-menu-content button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 5px;border:0;border-radius:5px;background:none;box-shadow:none;font-size:14px;color:#675d55;font-weight:500;text-align:left}
.h5-menu-content button>.h5-icon:first-child{width:18px;height:18px;color:#ac9987}
.h5-menu-content button>.h5-icon:last-child{width:14px;height:14px;margin-left:auto;color:#c5b9ac}
.h5-menu-content button:hover{background:#f1ede7}
.h5-preview-dialog[open]{display:flex;flex-direction:column;width:min(760px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:0;border-radius:8px;background:#fffdf9;color:#3f3732;overflow:auto}
.h5-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px;padding:14px 18px 14px 24px}
.h5-preview-head h2{margin:4px 0 0;font-size:18px;font-weight:650;line-height:1.5}
.h5-preview-media{display:grid;place-items:center;min-height:160px;background:#232125}
.h5-preview-media>img,.h5-preview-media>video{display:block;max-height:58dvh;max-width:100%;width:100%;object-fit:contain}
.h5-preview-footer{padding:18px 24px 24px}
.studio-preview-meta{display:flex;align-items:center;gap:12px;margin-bottom:12px;font-size:12px;color:#a08f7e}
.h5-preview-footer p{margin:0 0 14px;font-size:12px;line-height:1.7;color:#9a8878;overflow-wrap:anywhere}
.h5-preview-footer .h5-template-feedback{color:#b45e56}
.h5-preview-footer .primary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;border-radius:6px;font-size:14px;font-weight:600}
.h5-preview-footer .primary .h5-icon{width:17px;height:17px}
.studio-reward-note{display:flex;align-items:center;gap:7px;padding:10px 12px;background:#f0ecde;border-radius:4px}
.studio-reward-note .h5-icon{width:16px;height:16px}
.studio-site .studio-account-reward-link{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:8px 13px;border:1px solid #dfd4c7;border-radius:6px;background:#fffdf9;color:#8f755f;font-size:12px;box-shadow:none}
.studio-account-reward-link>.h5-icon{width:16px;height:16px}
.studio-site .inspiration-remix-dialog{border-radius:8px;background:#fffdf9}
.studio-site .inspiration-source-slot audio,.studio-site .inspiration-upload-slot audio{display:block;width:100%;max-width:100%;margin:14px 0}
.studio-reward-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:26px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.studio-reward-overview>div{min-width:0}.studio-reward-overview span{display:block;font-size:12px;color:#a39486}
.studio-reward-overview strong{display:block;margin-top:10px;font-size:29px;font-weight:650;color:#6a547c;overflow-wrap:anywhere}
.studio-reward-overview small{margin-left:7px;font-size:11px;font-weight:400;color:#ac9e90}
.studio-reward-policy{padding:22px 0;margin-bottom:18px;border-bottom:1px solid var(--line)}
.studio-reward-policy>span{display:flex;align-items:center;gap:8px;font-size:13px;color:#98816e}.studio-reward-policy .h5-icon{width:18px;height:18px}
.studio-reward-policy p{max-width:760px;margin:9px 0 0;font-size:12px;color:#a99a8b;line-height:1.8}
.studio-reward-ledger article{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}
.studio-reward-ledger article>div{min-width:0}.studio-reward-ledger b{font-size:14px;font-weight:550}
.studio-reward-ledger small{display:block;margin-top:4px;font-size:10px;color:#b3a395}.studio-reward-ledger p{margin:5px 0 0;font-size:12px;color:#9c8b7e}
.studio-reward-ledger-amount{text-align:right;flex:none}.studio-reward-ledger-amount strong{font-size:20px;font-weight:600;color:#729582}
.studio-reward-ledger-amount.reversed strong,.studio-reward-ledger-amount.skipped strong{font-size:13px;color:#ac9385}
.studio-reward-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin:24px 0;font-size:12px;color:#9c8d80}
.studio-site #app[data-page="account"] .member-account-head{padding:16px 0 24px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;color:#343033;box-shadow:none}
.studio-site #app[data-page="account"] .member-account-head h2{font-size:27px;line-height:1.4;color:#343033}
.studio-site #app[data-page="account"] .member-account-head p{font-size:13px;color:#8f8176}
.studio-site #app[data-page="account"] .member-account-head::before,.studio-site #app[data-page="account"] .member-account-head::after{display:none}
.studio-site #app[data-page="account"]>.member-account-stats{position:static;margin:20px 0!important;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.studio-site #app[data-page="account"] .member-account-stats article{min-height:0;padding:16px 18px;border-radius:6px;border:1px solid var(--line);background:#fffdf9;box-shadow:none}
.studio-site #app[data-page="account"] .member-account-stats article b{font-size:24px;color:#6f5688}
.studio-site #app[data-page="account"] .member-account-stats article span{font-size:12px;color:#9c8b7b}
.studio-site #app[data-page="account"] :is(.account-billing,.account-pricing-guide,.account-token-breakdown,.account-password-card){border-radius:8px!important;box-shadow:none!important}
.studio-site #app[data-page="account"] .account-billing h2{font-size:23px}
.studio-site #app[data-page="account"] .account-billing h3{font-size:18px}
@media(min-width:821px) and (max-width:1180px){
  .studio-site>aside{width:188px;padding-inline:10px}.studio-site>.shell{max-width:calc(100% - 188px)}
  .studio-site #app{padding:26px}.studio-site>.shell>header{padding:0 26px}
  .studio-quick-tools{gap:8px}.studio-site #app .studio-quick-tools button{flex-direction:column;gap:6px;text-align:center}
  .h5-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-tool-rail{grid-auto-columns:calc((100% - 36px)/4.2)}
  .studio-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
  html{scroll-padding-top:70px}
  body.studio-site{display:block;font-size:15px}
  .studio-site>aside,.studio-site>.shell>header{display:none!important}
  .studio-site>.shell{max-width:100%;width:100%;min-width:0;padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  .studio-site #app{padding:23px 16px}
  .studio-site #app[data-page="home"],.studio-site #app[data-page="create"]{padding:22px 16px}
  .studio-site .h5-mobile-header{position:sticky;top:0;z-index:120;display:flex;align-items:center;justify-content:space-between;gap:16px;height:58px;padding:0 18px;border-bottom:1px solid var(--line);background:#fbfaf8f5;backdrop-filter:blur(12px)}
  .h5-mobile-header button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:0;border:0;border-radius:6px;background:none;box-shadow:none}
  .h5-mobile-brand{color:#312d30;white-space:nowrap}
  .h5-mobile-brand>span{display:grid;place-items:center;width:29px;height:30px;background:#7058b4;border-radius:7px;color:#fff}
  .h5-mobile-brand>span .h5-icon{width:18px;height:18px}
  .h5-mobile-brand b{font-size:20px;font-weight:750}
  .h5-menu-button{width:40px;color:#958779}
  .h5-menu-button>.h5-icon{width:21px;height:21px}
  .studio-site .h5-mobile-bottom{position:fixed;inset:auto 0 0;z-index:150;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:calc(64px + env(safe-area-inset-bottom));padding:5px 10px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #e4ddd4;background:#fffdf9f7;backdrop-filter:blur(14px)}
  .h5-mobile-bottom button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:0;padding:4px 0;border:0;border-radius:0;background:transparent;color:#b1a193;box-shadow:none;font-size:10px;font-weight:450;line-height:1.3}
  .h5-mobile-bottom .h5-icon{width:21px;height:21px;stroke-width:1.6}
  .h5-mobile-bottom button.is-active{color:#7b5d9e;font-weight:600}
  .h5-mobile-bottom button.is-active::after{content:"";position:absolute;top:0;width:14px;height:2px;border-radius:1px;background:#9d82bd}
  .studio-home-heading{gap:12px;margin-bottom:16px}.studio-home-heading h1{font-size:22px;margin-top:4px}.studio-kicker{font-size:10px}
  .studio-site #app .studio-home-heading>.studio-text-link{font-size:10px}
  .studio-quick-tools{gap:5px;margin-bottom:19px;padding-bottom:18px}
  .studio-site #app .studio-quick-tools button{flex-direction:column;gap:7px;min-height:60px;padding:0;text-align:center}
  .studio-quick-tools button>span{width:34px;height:34px;border-radius:7px}
  .studio-quick-tools button>span .h5-icon{width:19px;height:19px}
  .studio-quick-tools button b{font-size:10px;font-weight:500;white-space:nowrap}
  .studio-section-head{margin-bottom:11px}.studio-section-head h2{font-size:16px}.studio-section-actions{gap:8px}
  .studio-site #app .studio-section-actions .studio-rail-arrow{display:none}
  .studio-latest{padding-bottom:21px}.studio-latest-rail{grid-auto-columns:82%;gap:11px}
  .studio-latest-rail .h5-gallery-copy h3{font-size:12px}
  .studio-home-tools{gap:23px;padding:22px 0 26px}
  .studio-tool-rail{grid-auto-columns:max(86px,calc((100% - 24px)/3.6));gap:8px}
  .studio-site #app .studio-tool-card{min-height:132px;height:132px;padding:13px 10px;border-radius:7px}
  .studio-tool-symbol{margin-bottom:15px}.studio-tool-symbol>.h5-icon{width:27px;height:27px}
  .studio-tool-copy b{font-size:12px}.studio-tool-copy small{font-size:9px;line-height:1.4;min-height:25px}
  .studio-tool-arrow{right:8px;top:9px}.studio-tool-arrow>.h5-icon{width:12px;height:12px}
  .studio-tool-card.has-cover .studio-tool-copy{padding:45px 9px 10px}.studio-tool-card.has-cover small{font-size:9px}
  .studio-discovery-section{padding-top:24px}.studio-discovery-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding-bottom:0;border-bottom:0}
  .studio-collection-tabs{gap:20px;border-bottom:1px solid var(--line)}
  .studio-site #app .studio-collection-tabs button{font-size:12px;min-height:36px}
  .h5-search{width:100%;height:38px}.studio-site #app .h5-search input{font-size:13px}
  .h5-filter-row{margin:13px 0}.h5-filter-row>span{font-size:10px}
  .h5-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 10px}
  .studio-site #app .h5-gallery-cover{border-radius:7px;aspect-ratio:4/3}
  .studio-site #app .studio-latest-rail .h5-gallery-cover{aspect-ratio:16/9}
  .h5-media-label{top:7px;left:7px;font-size:9px;padding:1px 5px}.h5-play{top:7px;right:7px;width:22px;height:22px}
  .studio-duration{bottom:6px;right:6px;font-size:8px}
  .h5-gallery-copy{padding-top:7px}.h5-gallery-copy h3{font-size:12px}.h5-gallery-copy p{font-size:9px;margin-top:4px}
  .h5-gallery-copy p .h5-icon{width:11px;height:11px}
  .studio-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.studio-create-page .studio-tool-section{margin-top:25px;padding-bottom:22px}
  .studio-account-links{gap:14px;flex-wrap:wrap}.studio-site #app .studio-account-links button{font-size:12px}
  .studio-reward-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.studio-reward-overview strong{font-size:26px}.studio-reward-overview span{font-size:11px}
  .studio-reward-ledger article{align-items:start;gap:12px}.studio-reward-ledger b{font-size:13px}.studio-reward-ledger-amount strong{font-size:18px}.studio-reward-ledger-amount small{font-size:9px}
  .h5-preview-dialog[open]{width:calc(100% - 24px);max-height:calc(100dvh - 28px)}
  .h5-preview-head{padding:12px 12px 12px 16px;min-height:64px}.h5-preview-head h2{font-size:16px}
  .h5-preview-footer{padding:14px 16px 18px}.h5-preview-media>img,.h5-preview-media>video{max-height:53dvh}
  .studio-site #app:not([data-page="account"]) .page-head h1{font-size:24px}
  .studio-site #app:not([data-page="account"]) .page-head p{font-size:12px}
  .studio-site #app:not([data-page="account"]) :is(.split,.join-layout,.asset-library-layout){grid-template-columns:1fr}
  .studio-site #app:not([data-page="account"]) .card{padding:16px}
  .studio-site #app:not([data-page="account"]) .mode-shell>.card{padding:0}
  .studio-site #app:not([data-page="account"]) :is(.mode-form,.channel-form) :is(input,textarea,select){font-size:16px}
  .studio-site #app:not([data-page="account"]) .mode-stage h2{font-size:20px}
  .studio-site #app:not([data-page="account"]) .engine-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .studio-site #app:not([data-page="account"]) .engine-settings .voice-field{grid-column:1/-1}
  .studio-site #app:not([data-page="account"]) .reference-grid,.studio-site #app:not([data-page="account"]) .reference-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:100%!important}
  .studio-site #app:not([data-page="account"]) .reference-slot{min-width:0!important;max-width:100%!important}
  .studio-site #app:not([data-page="account"]) .reference-slot[data-reference-role="source-video"]{grid-column:1/-1;max-width:100%!important}
  .studio-site #app:not([data-page="account"]) .reference-slot[data-reference-role="source-video"].has-video{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
  .studio-site #app:not([data-page="account"]) .inline-generation{border-radius:8px!important;max-width:100%;min-width:0}
  .studio-site #app:not([data-page="account"]) .job-topline{display:flex;flex-wrap:wrap;gap:8px}
  .studio-site #app:not([data-page="account"]) .job-card h2{font-size:18px}
  .studio-site #app:not([data-page="account"]) .v2-grid button{min-height:70px;padding:10px}
  .studio-site #app:not([data-page="account"]) .v2-grid button b{font-size:13px}
  .studio-site #app:not([data-page="account"]) .v2-grid button small{font-size:10px}
  .studio-site #app:not([data-page="account"]) .jobs-pagination{gap:8px}.studio-site #app:not([data-page="account"]) .jobs-pagination span{min-width:80px;font-size:12px}
  body.h5-mobile #app[data-page="account"] .auth-story{display:none}
  body.h5-mobile .account-auth{display:block;min-height:0}
  body.h5-mobile .auth-card{width:100%;padding:12px 0 24px;background:transparent;border:0;box-shadow:none}
  body.h5-mobile .auth-card h2{font-size:27px;letter-spacing:0}
  body.h5-mobile .auth-card .eyebrow{letter-spacing:0;font-size:12px}
  body.h5-mobile .auth-form input{min-width:0;width:100%;font-size:16px}
  body.h5-mobile .auth-tabs{margin:20px 0}
  body.h5-mobile .auth-tabs button{font-size:16px}
  body.h5-mobile .auth-form .primary{font-size:16px;min-height:46px}
  .studio-site #app[data-page="account"] .account-sections{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
  .studio-site #app[data-page="account"]>.member-account-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .studio-site #app[data-page="account"] .member-account-stats article{padding:13px!important}
  .studio-site #app[data-page="account"] .member-account-stats article b{font-size:21px}
  .studio-site #app[data-page="account"] .account-billing .split{grid-template-columns:minmax(0,1fr)!important}
  .studio-site #app[data-page="account"] .token-ledger-item{min-width:0;overflow-wrap:anywhere}
  .studio-site #app[data-page="account"] .token-ledger-pagination{display:flex;gap:8px;justify-content:space-between;align-items:center}
  .studio-site #app[data-page="account"] .token-ledger-pagination :is(button,span){font-size:12px}
}
@media(max-width:360px){.studio-quick-tools{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}.studio-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-home-heading h1{font-size:20px}.studio-site #app .studio-home-heading>.studio-text-link{display:none}}
@media(min-width:600px) and (max-width:820px){.studio-site #app{padding:28px 24px}.studio-latest-rail{grid-auto-columns:60%}.studio-tool-rail{grid-auto-columns:calc((100% - 40px)/5.2)}.h5-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.studio-site *,.studio-site *::before,.studio-site *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
