/* R20: a desktop workspace and a separate mobile stage, sharing the real form. */
body.event-studio-open{overflow:hidden!important}
#eventStudioU21{--rail:56px;position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-sizing:border-box;overflow:hidden;font-family:system-ui,sans-serif}
#eventStudioU21:not([open]){display:none}
#eventStudioU21 *,#eventStudioU21 *::before{box-sizing:border-box}
#eventStudioU21::backdrop{background:#211923}
#eventStudioU21>header{position:absolute;inset:0 0 auto;z-index:6;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(12px,env(safe-area-inset-top)) 24px 12px;border-bottom:1px solid var(--pl-line)}
#eventStudioU21>header strong{font-size:16px;letter-spacing:-.2px}
#eventStudioU21 button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 14px;border:1px solid var(--pl-line);border-radius:12px;font:500 13px/1.3 system-ui;cursor:pointer}
#eventStudioU21 button:disabled{cursor:wait}
#eventStudioU21 :focus-visible{outline:3px solid var(--pl-focus);outline-offset:3px}
#eventStudioU21 .es-settings{position:absolute;top:96px;bottom:106px;left:24px;width:340px;border:1px solid var(--pl-line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 8px 24px #45224f0c}
#eventStudioU21 .es-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;border-bottom:1px solid var(--pl-line)}
#eventStudioU21 .es-tools{display:grid;grid-template-columns:1fr;gap:6px;min-width:0}
#eventStudioU21 .es-tools button{justify-content:flex-start;padding:9px 10px;text-align:left;min-width:0;min-height:44px}
#eventStudioU21 .es-tool-icon{display:inline-flex;width:22px;height:22px;flex-shrink:0;min-width:22px;align-items:center;justify-content:center}
#eventStudioU21 .es-tools small{font-size:11px;line-height:1.3;white-space:normal}
#eventStudioU21 #eventCreateForm{display:block!important;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scroll-padding:18px}
#eventStudioU21 .es-panel{padding:20px;min-width:0}
#eventStudioU21 .es-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
#eventStudioU21 .es-panel h2{font-size:18px;line-height:1.3;margin:0}
#eventStudioU21 .es-panel-heading button{display:none}
#eventStudioU21 label{display:grid;gap:8px;margin:0 0 18px;min-width:0;font-size:13px;font-weight:550}
#eventStudioU21 input,#eventStudioU21 textarea,#eventStudioU21 select{width:100%;max-width:100%;min-width:0;min-height:44px;font:400 15px/1.5 system-ui;padding:10px 12px;border:1px solid var(--pl-line);border-radius:10px}
#eventStudioU21 input[type=file]{font-size:12px;padding:10px 6px}
#eventStudioU21 textarea{min-height:130px;resize:vertical}
#eventStudioU21 fieldset{min-width:0;border:1px solid var(--pl-line);border-radius:12px;padding:12px}
#eventStudioU21 p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
#eventStudioU21 .rich-text-toolbar{display:flex;flex-wrap:wrap;gap:4px}
#eventStudioU21 .es-stage{position:absolute;top:96px;bottom:106px;left:390px;right:24px;max-width:960px;margin:auto;overflow:hidden;border:1px solid #8e719a;border-radius:24px;background:radial-gradient(ellipse at 75% 5%,#8660a1,transparent 60%),linear-gradient(140deg,#56325f,#211426)}
#eventStudioU21 .es-media,#eventStudioU21 .es-shade{position:absolute;inset:0;pointer-events:none}
#eventStudioU21 .es-media img,#eventStudioU21 .es-media video{display:block;width:100%;height:100%;object-fit:cover;max-width:none}
#eventStudioU21 .es-shade{background:linear-gradient(180deg,transparent 15%,#1c102555 45%,#170d22eb 100%)}
#eventStudioU21 .es-cover-hint{position:absolute;inset:25px 32px auto;display:grid;gap:8px;max-width:340px}
#eventStudioU21 .es-cover-hint>span{font-size:32px}
#eventStudioU21 .es-cover-hint strong{font-size:20px;font-weight:550;letter-spacing:-.4px}
#eventStudioU21 .es-cover-hint p{margin:0;font-size:13px;max-width:300px}
#eventStudioU21 .es-has-cover .es-cover-hint{display:none}
#eventStudioU21 .event-studio-preview{position:absolute;inset:auto 32px 32px!important;max-width:680px;max-height:65%;display:flex!important;flex-direction:column;gap:10px;padding:0!important;margin:0!important;overflow:auto;overscroll-behavior:contain;border:0!important;border-radius:0!important;overflow-wrap:anywhere;text-shadow:none!important}
#eventStudioU21 .event-studio-preview h3{font-size:clamp(24px,2.6vw,36px);line-height:1.18;letter-spacing:-.8px;margin:0;font-weight:650}
#eventStudioU21 .event-studio-preview p,#eventStudioU21 .event-studio-preview small{line-height:1.5;margin:0;font-size:13px}
#eventStudioU21 .event-studio-preview>small:first-child{font-size:10px;letter-spacing:1.5px}
#eventStudioU21 .event-studio-preview>small:last-child{font-size:11px}
#eventStudioU21>footer{position:absolute;z-index:6;inset:auto 0 0;min-height:82px;display:flex;flex-direction:row-reverse;align-items:center;gap:20px;padding:16px 24px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--pl-line)}
#eventStudioU21 button[type=submit]{min-width:190px;min-height:46px;font-weight:650;font-size:14px;flex-shrink:0}
#eventStudioU21 #eventCreateStatus{margin:0;max-height:60px;overflow:auto;text-align:left;flex:1}
#eventStudioU21.es-preview .es-settings{display:none}
#eventStudioU21.es-preview .es-stage{left:24px;right:24px;max-width:960px}
#eventStudioU21 [hidden]{display:none!important}
/* Same theme layer, scoped above the old generic aside/header/section selectors. */
@layer woryvo-theme{
 html body #eventStudioU21{background:var(--pl-bg)!important;color:var(--pl-ink)!important}
 html body #eventStudioU21 .es-stage .event-studio-preview,
 html body #eventStudioU21 .es-stage .event-studio-preview *{background:transparent!important;background-image:none!important;color:#fff!important;box-shadow:none!important;text-shadow:none!important}
 html body #eventStudioU21 .es-cover-hint,html body #eventStudioU21 .es-cover-hint *{background:transparent!important;color:#fff!important}
 html body #eventStudioU21 .es-tools{background:transparent!important}
 html body #eventStudioU21 .es-tools button[aria-expanded=true]{background:var(--pl-accent)!important;color:var(--pl-on-accent)!important;border-color:var(--pl-accent)!important}
 html body #eventStudioU21 .es-tools button[aria-expanded=true] *{color:inherit!important}
 html body #eventStudioU21 button[type=submit]{background:var(--pl-accent)!important;color:var(--pl-on-accent)!important}
}
@media(max-width:1023px){
 #eventStudioU21>header{min-height:64px;padding-inline:12px;gap:8px}
 #eventStudioU21>header strong{font-size:12px;max-width:110px;text-align:center}
 #eventStudioU21>header button{padding:9px 10px;font-size:12px}
 #eventStudioU21 .es-stage,#eventStudioU21.es-preview .es-stage{inset:64px 0 82px;border:0;border-radius:0;max-width:none}
 #eventStudioU21 .es-settings,#eventStudioU21 .es-tabs,#eventStudioU21 #eventCreateForm{display:contents!important}
 #eventStudioU21.es-preview .es-settings{display:none!important}
 #eventStudioU21 .es-tools{position:absolute;z-index:3;top:84px;width:var(--rail);gap:8px}
 #eventStudioU21 .es-left{left:8px}#eventStudioU21 .es-right{right:8px}
 #eventStudioU21 .es-tools button{min-height:63px;display:grid;justify-items:center;justify-content:center;text-align:center;gap:4px;padding:6px 3px}
 #eventStudioU21 .es-tools small{font-size:9px}#eventStudioU21 .es-tool-icon{font-size:20px}
 #eventStudioU21 .es-panel{position:absolute;z-index:5;top:74px;bottom:94px;left:12px;right:12px;border:1px solid var(--pl-line);border-radius:18px;padding:18px;overflow:auto;overscroll-behavior:contain;box-shadow:0 12px 40px #1b112755}
 #eventStudioU21 .es-panel-heading button{display:inline-flex;width:44px;flex-shrink:0}
 #eventStudioU21 .es-cover-hint{inset:42% 80px auto;max-width:340px}
 #eventStudioU21 .es-cover-hint>span{display:none}
 #eventStudioU21 .es-cover-hint strong{font-size:17px}
 #eventStudioU21 .es-cover-hint p{font-size:12px}
 #eventStudioU21 .event-studio-preview{inset:auto 76px 28px!important;max-height:38%;gap:8px}
 #eventStudioU21 .event-studio-preview h3{font-size:26px;letter-spacing:-.5px}
 #eventStudioU21 .event-studio-preview p,#eventStudioU21 .event-studio-preview small{font-size:12px}
 #eventStudioU21.es-preview .event-studio-preview{inset:auto 24px 28px!important;max-height:60%}
 #eventStudioU21>footer{padding:10px 12px max(10px,env(safe-area-inset-bottom));min-height:82px;gap:6px;flex-direction:column;align-items:stretch}
 #eventStudioU21 button[type=submit]{width:100%;min-width:0;min-height:44px}
 #eventStudioU21 #eventCreateStatus{max-height:28px;flex:none;font-size:12px}
 #eventStudioU21 #eventCreateStatus:empty{display:none}
}
@media(max-height:500px) and (max-width:1023px){
 #eventStudioU21 .es-tools{top:74px;gap:4px}
 #eventStudioU21 .es-tools button{min-height:48px;gap:1px}
 #eventStudioU21 .es-cover-hint{display:none}
 #eventStudioU21 .event-studio-preview{max-height:80%;bottom:20px!important;gap:4px}
 #eventStudioU21 .event-studio-preview h3{font-size:24px}
 #eventStudioU21 .es-panel{top:70px;bottom:88px}
}
@media(prefers-reduced-motion:reduce){#eventStudioU21 *{scroll-behavior:auto!important;animation:none!important}}
