/* Shared Revision 6 studio surfaces and interaction rules. */
body:has(#app-shell:not(.hidden)){background:#f1ece4!important}
#page-creator .udhen-creator-header,#page-style .style-banner{background:#f1ece4!important;border-color:#ded7cd!important;box-shadow:none!important;color:#303238!important}
#page-creator .udhen-creator-header h1,#page-creator .udhen-creator-header h2,#page-style .style-banner h1{color:#303238!important;-webkit-text-fill-color:#303238!important;background:none!important}
#page-creator .udhen-creator-header p,#page-style .style-banner p{color:#62656b!important}
#page-creator .udhen-creator-header>.uc-gate,#page-style .style-banner>.uc-gate,
#page-creator .udhen-creator-header>.uc-sweep,#page-style .style-banner>.uc-sweep,
#page-creator .udhen-creator-header>.uc-credit,#page-style .style-banner>.uc-credit{display:none!important}
#page-video .u-app #toolbar-generate{display:none!important}
#page-video .u-processing .preview-overlay{display:none!important}
#page-style{background:#f1ece4!important;color:#303238!important;border-radius:24px;padding:16px}
#page-style .style-heading,#page-style .style-section-title,#page-style .style-section-heading h2,#page-style .style-section-heading p{color:#303238!important}
#page-style #smart-fashion-selector,#page-style .ss-controls,#page-style .ss-preview-pane,#page-style .ss-step,
#page-style .ss-generate-panel,#page-style #ss-generate-panel{background:#faf9f6!important;color:#303238!important;border-color:#dcd7cf!important}
#page-style .ss-status,#page-style .ss-preview-caption,#page-style .ss-step label{color:#303238!important}
#page-style .ss-setting,#page-style .ss-more-input,#page-style .ss-original-toggles,#page-style .ss-extra-toggle{background:#f3f0e9!important;color:#303238!important;border-color:#d7d0c5!important}
#page-style #smart-fashion-selector textarea,#page-style #smart-fashion-selector select,#page-style #smart-fashion-selector input:not([type=checkbox]):not([type=radio]):not([type=color]){
 background:#fff!important;color:#303238!important;border-color:#bdb9b1!important}
#page-style .ss-color-card,#page-style .ss-fabric-card{background:#fff!important;color:#303238!important;border-color:#d4cfc7!important}
#page-style .ss-color-card[aria-pressed=true],#page-style .ss-fabric-card[aria-pressed=true]{outline:2px solid #526f86;outline-offset:2px}
#page-style .ss-setting small,#page-style .ss-step p,#page-style .ss-preview-pane p,#page-style .ss-status{color:#62656b!important}
#ss-size-system-selector[hidden],#ss-size-selector[hidden],.r6-deferred-control{display:none!important}
#r6-selected-design{font-size:13px;line-height:1.6;color:#303238;background:#e5eddf;border-radius:12px;padding:12px 16px}
#r6-selected-design:empty{display:none}
.r6-approval{box-sizing:border-box;width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;border:1px solid #d7d0c5;border-radius:24px;background:#faf9f6;color:#303238;box-shadow:0 28px 90px #10172855}
.r6-approval::backdrop{background:#101728b3;backdrop-filter:blur(5px)}
.r6-approval form{margin:0}.r6-approval-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.r6-approval .r6-eyebrow{margin:0!important}.r6-approval h2{font-size:28px;letter-spacing:-.04em;margin:18px 0 12px;color:#303238}
.r6-approval p{font-size:14px;line-height:1.65;color:#62656b}
.r6-approval img{display:block;width:100%;height:230px;object-fit:contain;background:#ece9e3;border-radius:15px;margin:20px 0}
.r6-approval-check{display:flex;align-items:start;gap:12px;font-size:14px;line-height:1.6;cursor:pointer}
.r6-approval-check input{width:22px;height:22px;flex-shrink:0;margin-top:3px;accent-color:#526f86}
.r6-approval-note{font-size:12px!important}.r6-approval-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}
.r6-approval button{min-height:44px;padding:10px 16px;border:1px solid #b8b5ae;border-radius:12px;cursor:pointer;font:600 13px/1.5 Arial,sans-serif;color:#303238;background:#f1ece4}
.r6-approval button.r6-button{color:white;border:0}
.r6-approval .r6-approval-close{padding:8px;width:44px;font-size:22px}
.r6-approval :focus-visible{outline:3px solid #315b86;outline-offset:4px}
.r6-approval-error{color:#9a293f!important}
.r6-size-note{display:block;color:#62656b;font-size:12px;line-height:1.5;margin-top:8px}
#r6-size-mode,#r6-standard-size{margin-bottom:10px;min-height:44px}
.r6-style-progress{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-height:520px;background:#101728;color:#faf9f6;border-radius:24px;margin:30px 0;padding:40px 24px;text-align:center}
.r6-style-progress[hidden]{display:none!important}
.r6-image-top{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:.12em}
.r6-image-top button{min-height:44px;border:1px solid #8ba8cb;border-radius:12px;color:#faf9f6;background:#1d2940;padding:10px 16px;cursor:pointer}
.r6-style-progress h2{color:#faf9f6!important;margin:0;font-size:30px}
.r6-style-progress p{color:#d8deea!important;line-height:1.6;margin:0}
.r6-style-progress .r6-image-note{font-size:12px;max-width:420px}
.r6-image-chip{bottom:86px!important}
.r6-style-busy #smart-fashion-selector{display:none!important}
@media(max-width:600px){#page-style{padding:10px;border-radius:18px}.r6-approval{padding:22px}.r6-approval h2{font-size:24px}.r6-approval img{height:210px}.r6-approval-actions{justify-content:stretch}.r6-approval-actions button{flex:1}.r6-style-progress{min-height:540px;padding:24px 18px}}

#page-style .u-step-val{color:#504460!important;background:#f1eaf9!important;border-color:#d8c6ee!important}

#page-style .u-gal-pick .u-gal-spot{background:#151b40!important;color:#f5f7ff!important}
#page-style .u-gal-pick .u-gal-spot :is(h2,h3,h4,p,span,small,strong,b){color:#f5f7ff!important}

#page-video #ref-drop button[hidden],#page-video .side-card>button[hidden]{display:none!important}
#r6-reference-policy{font-size:12px;line-height:1.65;color:#c4ccdc}


/* Category posters remain visible in the approved cream studio theme. */
#app-shell .uc-studio-hero{
 --uh-surface:#f1ece4;--uh-ink:#182438;--uh-muted:#52605b;--uh-line:#d7d0c5;
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);align-items:center!important;justify-content:stretch!important;
 gap:32px;min-height:340px!important;padding:32px!important;background:var(--uh-surface)!important;border:1px solid var(--uh-line)!important;
 border-radius:22px!important;color:var(--uh-ink)!important;text-align:left!important;contain:paint
}
#app-shell .uc-studio-hero>div:not(.uc-hero-media){grid-column:1;grid-row:1;min-width:0;max-width:100%;width:100%;align-items:flex-start;text-align:left}
#app-shell .uc-studio-hero>.uc-hero-media{display:block!important;position:relative!important;inset:auto!important;grid-column:2;grid-row:1;z-index:1;min-width:0;width:100%;height:auto;overflow:visible;border-radius:16px}
#app-shell .uc-studio-hero::after,#app-shell .uc-studio-hero>.uc-hero-media::before,#app-shell .uc-studio-hero>.uc-hero-media::after{display:none!important}
#app-shell .uc-studio-hero>.udhen-creator-tagline,#app-shell .uc-studio-hero>.uc-credit{display:none!important}
body #app-shell .uc-studio-hero h1{font-family:var(--uc-display)!important;font-size:clamp(38px,4.2vw,64px)!important;font-weight:800!important;line-height:1.06!important;letter-spacing:-.01em!important;color:var(--uh-ink)!important;-webkit-text-fill-color:var(--uh-ink)!important;background:none!important;max-width:15ch!important;margin:0 0 16px!important;padding:0}
body #app-shell #page-style .style-banner.uc-studio-hero h1{font-size:clamp(64px,7vw,112px)!important;margin-inline:0!important}
#app-shell .uc-studio-hero p{font-family:inherit!important;font-size:16px!important;line-height:1.6!important;color:var(--uh-muted)!important;max-width:48ch!important}
#app-shell .uc-studio-hero .style-subtitle{display:block!important;margin:0 0 20px!important}
#app-shell .uc-studio-hero .style-uptitle{display:none!important}
#app-shell .uc-studio-hero .style-search{width:100%;max-width:100%;margin:20px 0 0;box-sizing:border-box}
.uc-studio-visual{position:relative;margin:0;display:flex;flex-direction:column;gap:10px;max-width:100%}
.uc-preview-frame{position:relative;aspect-ratio:4/3;overflow:hidden;background:#e8e4dc;border-radius:16px;isolation:isolate}
.uc-preview-frame>img,.uc-preview-frame>video{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover;max-width:100%;border-radius:inherit}
.uc-preview-frame>[hidden],.uc-studio-visual>[hidden]{display:none!important}
.uc-preview-frame>video{z-index:2;background:#182438}
.uc-preview-frame.uc-poster-fallback>img{object-fit:contain;padding:20px;box-sizing:border-box}
.uc-preview-frame.uc-cutout-frame{background:transparent;aspect-ratio:4/3;max-height:350px}
.uc-preview-frame.uc-cutout-frame>img{object-fit:contain;animation:uc-sticker-enter .8s ease-out both}
@keyframes uc-sticker-enter{from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.uc-preview-frame.uc-sticker-frame{display:grid;grid-template-columns:1.15fr .85fr;grid-template-rows:1fr 1fr;gap:8px;background:#e7e9df;padding:16px;box-sizing:border-box}
.uc-sticker-frame>img{position:relative;inset:auto;object-fit:contain;min-height:0;filter:drop-shadow(0 10px 10px #18243814)}
.uc-sticker-frame>img:first-child{grid-row:1/3;transform:rotate(-5deg)}
.uc-sticker-frame>img:nth-child(2){transform:rotate(6deg)}
.uc-preview-caption{font-size:12px;line-height:1.5;color:#52605b;white-space:normal;max-width:100%}
.uc-preview-play,.uc-preview-retry{min-height:44px;padding:10px 14px;border-radius:9px;border:1px solid #929b9a;background:#faf9f6;color:#182438;font:600 13px/1.4 inherit;cursor:pointer;align-self:flex-start}
.uc-preview-play:hover,.uc-preview-retry:hover{background:#e2e8e2}
.uc-studio-visual :focus-visible,.udw-account-actions :focus-visible,#udw-workspace-nav:focus-visible{outline:3px solid #315b86;outline-offset:3px}
.udw-account-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 24px}
.udw-account-actions button{min-height:44px}
.udw-film-projects{margin:24px 0;border:1px solid #d7d0c5;background:#f9f7f3;color:#182438;padding:16px;border-radius:14px}
.udw-film-projects>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650}
.udw-decor-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:24px;padding:24px;margin:18px 0 24px;border:1px solid #d7d0c5;border-radius:18px;background:#f1ece4;color:#182438}
.udw-decor-intro h2{font:500 32px/1.2 Georgia,serif;color:#182438;margin:0 0 12px}
.udw-decor-intro p{color:#52605b;line-height:1.6;max-width:44ch}
.udw-decor-intro img{width:100%;height:240px;object-fit:contain}
.udw-decor-intro button{min-height:44px;cursor:pointer}
.udw-decor-intro :focus-visible{outline:3px solid #315b86;outline-offset:3px}
.uc-hero-toggle{position:absolute!important;z-index:4;right:24px;bottom:20px;min-height:44px;padding:10px 14px;background:#182438;color:#faf9f6;border:1px solid #a6adb6;border-radius:10px;cursor:pointer}
.uc-hero-toggle:focus-visible{outline:3px solid #faf9f6;outline-offset:3px}
.uc-hero-media>video[hidden]{display:none!important}
@media(max-width:700px){
 #app-shell .uc-studio-hero{grid-template-columns:minmax(0,1fr);gap:22px;padding:22px!important;min-height:0!important}
 #app-shell .uc-studio-hero>.uc-hero-media{grid-column:1;grid-row:2;max-width:540px;justify-self:center}
 body #app-shell .uc-studio-hero h1{font-size:clamp(36px,10vw,52px)!important;max-width:17ch!important;margin-inline:0!important}
 #app-shell .uc-studio-hero p{font-size:16px!important}
 .uc-preview-frame{aspect-ratio:16/10}
 .udw-decor-intro{grid-template-columns:minmax(0,1fr);gap:12px;padding:20px}
 .udw-decor-intro img{grid-row:1;height:190px}
}
@media(prefers-reduced-motion:reduce){.uc-studio-visual *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
