/* Desktop production workspace. Artwork rendering is shared and separately scoped. */
html[data-ad-view=creative]{scroll-behavior:auto}
html[data-ad-view=creative] body{background:#eef0f3;overflow:hidden}
html[data-ad-view=creative] main,html[data-ad-view=creative] main.y3-advertising-page{max-width:none!important;width:100%;padding:0!important;margin:0!important}
html[data-ad-view=creative] .console{grid-template-columns:72px minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden}
html[data-ad-view=creative] .console-sidebar{padding:18px 10px;gap:24px;width:72px;height:100dvh;background:#fff;border-color:#dfe3e9}
html[data-ad-view=creative] .console-brand{padding:0;justify-content:center}
html[data-ad-view=creative] .console-brand b{width:36px;height:36px;border-radius:10px;font-size:21px;background:#6252d9}
html[data-ad-view=creative] .console-brand>span,html[data-ad-view=creative] .console-nav-label,html[data-ad-view=creative] .console-sidebar-bottom{display:none}
html[data-ad-view=creative] .console-menu{gap:10px}
html[data-ad-view=creative] .console-menu button{padding:13px!important;justify-content:center;font-size:0;gap:0;height:46px;border-radius:11px!important}
html[data-ad-view=creative] .console-menu svg{width:20px;height:20px}
html[data-ad-view=creative] .console-page{padding:0;min-width:0;height:100dvh;overflow:hidden}
html[data-ad-view=creative] .console-topbar,html[data-ad-view=creative] #workspace-loading,html[data-ad-view=creative] #creative>h2{display:none!important}
html[data-ad-view=creative] #creative,html[data-ad-view=creative] #campaign{height:100%;margin:0;padding:0;min-width:0}
.console .studio-app.y3-studio{height:100dvh;display:grid;grid-template-rows:64px 50px minmax(0,1fr) 30px;gap:0;margin:0;border:0;border-radius:0;padding:0;background:#fff;color:#273044;box-shadow:none;font:13px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;overflow:hidden}
.console .studio-app [hidden]{display:none!important}
.studio-app-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 24px;border-bottom:1px solid #e1e4e9;background:#fff}
.studio-app-identity{display:flex;align-items:center;gap:12px;min-width:0}
.studio-app-mark{display:none}
.studio-app-name{font-size:16px;font-weight:750;letter-spacing:-.4px;white-space:nowrap}
.studio-app-draft{font-size:11px;color:#7c8495;border-left:1px solid #e1e4e9;padding-left:12px}
.studio-app-actions{display:flex;align-items:center;gap:8px}
.console .studio-app button{border:1px solid #dfe3eb;border-radius:7px;padding:7px 12px;min-height:32px;background:#fff;color:#465066;font-size:12px;font-weight:550;line-height:1.3;letter-spacing:0;white-space:nowrap;box-shadow:none}
.console .studio-app button:hover{background:#f4f5f9;color:#2d3549;border-color:#bdc4d3}
.console .studio-app button:focus-visible{outline:2px solid #7868df;outline-offset:2px}
.console .studio-app button.studio-app-primary{background:#6352d8;color:#fff;border-color:#6352d8;padding:8px 16px;box-shadow:0 2px 4px #30265e10}
.console .studio-app button.studio-app-primary:hover{background:#5746cb}
.console .studio-app .studio-app-tools{display:flex;align-items:center;gap:6px;margin:0;padding:0 16px;border-bottom:1px solid #dfe3e9;overflow:auto;flex-wrap:nowrap;scrollbar-width:none;background:#fafbfc}
.console .studio-app-tools button{background:transparent;border-color:transparent;padding:6px 10px;flex-shrink:0;font-size:11px;min-height:30px}
.console .studio-app-tools button:nth-child(5){border-left:1px solid #dfe3e9;border-radius:0;margin-left:8px}
.console .studio-app .y3-studio-workspace{display:grid;grid-template-columns:232px minmax(0,1fr) 264px;gap:0;padding:0;margin:0;background:#e9ecf0;border:0;border-radius:0;align-items:stretch;min-height:0;overflow:hidden}
.studio-app-assets{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff;border-right:1px solid #dfe3e9;overflow:hidden}
.studio-app-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-bottom:1px solid #e2e5ed;padding:0 7px;flex-shrink:0;height:45px}
.console .studio-app-tabs button{border:0;background:none;padding:0 4px;border-radius:0;color:#8991a1;font-size:11px;min-width:0}
.console .studio-app-tabs button[aria-pressed=true]{background:none;color:#6252d8;border:0;border-bottom:2px solid #6252d8}
.studio-app-panes{padding:20px 14px;overflow:auto;flex:1;min-height:0}
.studio-app-pane{min-width:0}
.console .studio-app h4,.studio-app-section-head{font-size:12px;font-weight:700;margin:0 0 16px;color:#374157}
.console .studio-app p.studio-app-note{font-size:11px;line-height:1.8;color:#8a92a4;margin-top:18px}
.console .studio-app .y3-studio-layers{display:grid;gap:5px;margin:0;padding:0}
.console .studio-app .y3-studio-layer-row{display:flex;padding:5px;background:#f7f8fb;border:1px solid transparent;border-radius:7px;gap:2px}
.console .studio-app .y3-studio-layer-row.active{background:#f0edff;border-color:#dcd4ff}
.console .studio-app .y3-studio-layer-row button{padding:5px 3px;border:0;min-height:28px;font-size:11px;background:transparent}
.console .studio-app .y3-studio-layer-row button:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}
.console .studio-app .y3-studio-layer-row button:disabled{opacity:.25;cursor:default}
.console .studio-app .y3-studio-dropzone{display:grid;gap:8px;justify-items:center;white-space:normal;margin:0;padding:22px 13px;background:#fafaff;border:1px dashed #c6c5de;border-radius:10px;text-align:center;min-height:170px;width:100%}
.console .studio-app .y3-studio-dropzone b{font-size:27px;background:#fff;color:#7465c6;width:42px;height:42px;border-radius:10px}
.console .studio-app .y3-studio-dropzone span,.console .studio-app .y3-studio-dropzone small{font-size:10px;line-height:1.7;color:#9299aa}
.studio-app .y3-studio-templates{display:grid;grid-template-columns:1fr;gap:10px;margin:0 0 28px}
.studio-app .y3-studio-templates>span{font-size:11px;font-weight:700;color:#70798c}
.console .studio-app .y3-studio-templates button{padding:14px;text-align:left;background:#f7f8fb;border:1px solid #e5e7ef;font-size:12px}
.console .studio-app .y3-studio-posters button{min-height:100px;background-image:linear-gradient(0deg,#121b28aa,transparent),var(--poster-image);background-size:cover;background-position:center;display:flex;align-items:end;color:#fff;white-space:normal}
.console .studio-app .y3-studio-canvas{display:grid;grid-template-rows:45px minmax(0,1fr) 40px;gap:0;min-width:0;min-height:0;order:0;overflow:hidden}
.studio-app .y3-studio-canvas-head{display:flex;align-items:center;justify-content:center;padding:0 16px;border-bottom:1px solid #dce0e7;background:#f6f7f9;overflow:auto}
.studio-app .y3-studio-formats{margin:0;display:flex;gap:3px;flex-wrap:nowrap}
.console .studio-app .y3-studio-formats button{min-height:29px;font-size:10px;border:0;background:transparent;padding:6px 9px}
.console .studio-app .y3-studio-formats button[aria-pressed=true]{background:#fff;color:#6152c7;border:1px solid #dfe3ea;box-shadow:0 1px 3px #202a3d08}
.studio-app-artboard{display:grid;place-items:center;align-content:center;min-height:0;min-width:0;overflow:auto;padding:20px;background-color:#e8ebef;background-image:radial-gradient(#c1c7d1 .65px,transparent .65px);background-size:18px 18px}
.console .studio-app .y3-studio-stage{display:block;flex-shrink:0;aspect-ratio:1200/628;min-height:0;margin:auto;border:0;border-radius:0;box-shadow:0 10px 40px #20263825;overflow:hidden}
.console .studio-app .y3-studio-layer{padding:0;border:0;line-height:1.12;letter-spacing:normal;outline-offset:0}
.console .studio-app .y3-studio-layer.selected{outline:1px solid #bba8ff;overflow:visible}
.console .studio-app .y3-studio-layer.selected:after{border:0}
.y3-creative-text{pointer-events:none}
.y3-creative-text[contenteditable=true],.y3-creative-text[contenteditable=plaintext-only]{pointer-events:auto;user-select:text;cursor:text;outline:none}
.console .studio-app .y3-studio-resize{width:9px;height:9px;right:-5px;bottom:-5px;border:1.5px solid #735bdd;border-radius:2px;background:#fff}
.studio-app-canvas-footer{display:flex;align-items:center;justify-content:center;gap:20px;color:#858d9f;background:#f6f7f9;border-top:1px solid #dce0e7;font-size:10px;padding:0 12px}
.console .studio-app .studio-app-zoom{width:auto;border:0!important;background:transparent!important;font-size:11px;padding:4px;color:#546078!important;min-height:27px}
.console .studio-app .y3-studio-inspector{display:block;grid-column:auto;order:0;padding:20px 18px;border:0;border-left:1px solid #dfe3e9;border-radius:0;background:#fff;overflow:auto;min-height:0;min-width:0}
.console .studio-app .y3-studio-inspector h4{margin:0 0 16px;font-size:12px}
.console .studio-app .y3-studio-field{display:grid;gap:6px;margin:15px 0;font-size:11px;color:#7e879a}
.console .studio-app .y3-studio-inspector :is(input,textarea,select){font-size:12px;padding:8px 9px;border-radius:6px;color:#3c465b!important;background:#fafbfc!important;border:1px solid #e1e5ed!important;color-scheme:light;max-width:100%}
.console .studio-app .y3-studio-inspector input[type=range]{padding:0;min-height:22px;border:0!important;background:transparent!important;accent-color:#7563da}
.console .studio-app .y3-studio-inspector input[type=color]{padding:3px;height:31px;width:100%}
.console .studio-app .y3-studio-inspector textarea{min-height:84px;height:84px;resize:vertical;line-height:1.6}
.console .studio-app .y3-studio-inspector button{width:100%;font-size:11px;min-height:29px;margin:3px 0}
.console .studio-app .y3-studio-back{color:#7764c7;background:#f5f2fd;margin-bottom:8px}
.studio-app-geometry{border-top:1px solid #e4e7ed;padding-top:18px;margin-top:18px}
.studio-app-geometry-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.studio-app-geometry-grid label{display:grid;gap:5px;font-size:10px}
.studio-app-footer{display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-top:1px solid #e0e4eb;background:#fff;gap:20px;overflow:hidden}
.console .studio-app .y3-studio-status,.console .studio-app #status{margin:0;min-height:0;font-size:10px;color:#737f92;padding:0;border:0;box-shadow:none;background:none;max-width:75%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.studio-app-footer>span{font-size:10px;color:#8b94a6;white-space:nowrap}
.studio-app-settings,.studio-app-preview{position:fixed;padding:0;border:1px solid #e1e4ec;border-radius:16px;background:#fff;color:#30394d;box-shadow:0 30px 100px #1820313d;max-height:calc(100dvh - 64px);width:min(740px,calc(100vw - 40px));max-width:calc(100vw - 40px);overflow:auto;overscroll-behavior:contain}
.studio-app-settings::backdrop,.studio-app-preview::backdrop{background:#1b243b66;backdrop-filter:blur(3px)}
.studio-app-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px;border-bottom:1px solid #e5e7ee;position:sticky;top:0;background:#fff;z-index:4;font-size:16px;font-weight:700}
.studio-app-setting-fields{padding:22px 26px;display:grid;gap:16px}
.studio-app-setting-fields>.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.studio-app-setting-fields label{display:grid;gap:7px;font-size:12px}
.studio-app-setting-fields :is(input,select,textarea){width:100%;padding:10px;border:1px solid #dce1ea;border-radius:7px;background:#fff!important;color:#3b465c!important;font-size:13px}
.studio-app-setting-fields input[type=checkbox]{width:16px;min-width:16px;height:16px}
.console .studio-app-setting-fields :is(.ad-forecast,.creative-assistant,.y3-studio-policy,.y3-studio-strategy){margin:0;border:1px solid #e4e7ef;border-radius:10px;padding:18px;background:#fafbfc;color:#404b60}
.studio-app-setting-fields>.row~button{padding:12px 18px;background:#6352d8;color:#fff;border-radius:8px;border:0;font-weight:650}
.studio-app-preview{width:max-content;background:#f1f3f6}
.studio-app-preview-body{padding:26px;overflow:auto}
.studio-app-preview-body>.y3-studio-stage{border:0;border-radius:0;box-shadow:0 10px 40px #20263825}
@media(min-width:1700px){.console .studio-app .y3-studio-workspace{grid-template-columns:256px minmax(0,1fr) 292px}.studio-app-header{padding-inline:28px}.studio-app-panes{padding:22px 18px}.console .studio-app .y3-studio-inspector{padding:23px}}
@media(max-width:1100px){.console .studio-app .y3-studio-workspace{grid-template-columns:190px minmax(0,1fr) 228px}.studio-app-draft{display:none}.studio-app-header{padding-inline:16px}.studio-app-shortcut{display:none}.console .studio-app .y3-studio-formats button{font-size:9px;padding:6px}.studio-app-tabs{padding:0}.console .studio-app-tabs button{font-size:10px}}
@media(max-width:800px){html[data-ad-view=creative] body{overflow:auto}html[data-ad-view=creative] .console{grid-template-columns:52px minmax(0,1fr);height:auto;min-height:100dvh;overflow:visible}html[data-ad-view=creative] .console-sidebar{padding:14px 5px;width:52px;position:sticky}html[data-ad-view=creative] .console-menu button{padding:10px!important;height:39px}html[data-ad-view=creative] .console-page{height:auto;overflow:visible}.console .studio-app.y3-studio{height:auto;min-height:100dvh;grid-template-rows:56px auto auto 30px;overflow:visible}.studio-app-header{padding:0 10px;gap:8px}.studio-app-name{font-size:13px}.studio-app-actions{gap:4px}.console .studio-app-actions button{font-size:10px;padding:6px 8px;min-height:29px}.studio-app-actions button:first-child{display:none}.console .studio-app .studio-app-tools{padding:8px;flex-wrap:wrap;height:auto;gap:3px}.console .studio-app .y3-studio-workspace{display:flex;flex-direction:column;overflow:visible}.console .studio-app .y3-studio-canvas{order:-1;grid-template-rows:42px minmax(280px,48dvh) 35px}.studio-app-artboard{padding:16px}.studio-app-assets{height:auto;max-height:330px;border-right:0;border-top:1px solid #dfe3e9;overflow:auto}.studio-app-tabs{height:43px}.studio-app-panes{padding:15px}.console .studio-app .y3-studio-inspector{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #dfe3e9;border-left:0;padding:18px;overflow:visible}.console .studio-app .y3-studio-inspector>h4,.console .studio-app .y3-studio-inspector>textarea,.studio-app-geometry{grid-column:1/-1}.console .studio-app .y3-studio-field{margin:0}.studio-app-footer>span{display:none}.studio-app-settings{max-width:calc(100vw - 20px);width:calc(100vw - 20px)}.studio-app-setting-fields{padding:16px}.studio-app-setting-fields>.row{grid-template-columns:1fr}.studio-app-preview-body{padding:14px}.studio-app .y3-studio-templates{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-app .y3-studio-templates>span{grid-column:1/-1}.studio-app-dimensions{font-size:9px}}

/* Keep useful actions close to the artwork, with a compact control rhythm. */
.studio-app-start{display:grid;gap:8px;margin-top:24px;border-top:1px solid #e3e6ed;padding-top:18px}.studio-app-start h4{margin-bottom:2px!important}.console .studio-app-start button{text-align:left;white-space:normal;background:#f7f6ff;border-color:#e7e2fb;color:#6252b7}.studio-app-align{display:flex;gap:4px;margin-bottom:10px;flex-wrap:wrap}.console .studio-app-align button{padding:6px;font-size:10px}.console .studio-app .y3-studio-field{margin:10px 0}.console .studio-app .y3-studio-inspector{padding:16px}.console .studio-app .y3-studio-inspector h4{margin-bottom:10px}.studio-app-panes{padding:16px 12px}.studio-app-artboard{padding:16px}
html[data-ad-view=creative] .console-menu button:focus-visible::after,html[data-ad-view=creative] .console-menu button:hover::after{content:attr(aria-label);position:fixed;left:62px;background:#29243d;color:white;border-radius:6px;padding:7px 10px;font-size:12px;z-index:50;pointer-events:none}
@media(max-width:800px){.studio-app-start{grid-template-columns:1fr 1fr;margin-top:14px;padding-top:12px}.studio-app-start h4{grid-column:1/-1}.studio-app-name{max-width:100px;white-space:normal;line-height:1.1}.console .studio-app .studio-app-tools button{min-height:36px}.console .studio-app .y3-studio-inspector{padding:14px}.studio-app-align button{min-height:36px!important}}
@media(max-width:800px){html[data-ad-view=creative] .console{display:block!important}html[data-ad-view=creative] .console-sidebar{position:relative;display:flex!important;flex-direction:row;align-items:center;gap:10px;width:100%;height:52px;min-height:0;padding:6px 10px;border-bottom:1px solid #dfe3e9}html[data-ad-view=creative] .console-brand{display:flex!important;flex:0 0 34px}html[data-ad-view=creative] .console-menu{display:flex!important;flex-direction:row;gap:3px;overflow:auto;flex:1}html[data-ad-view=creative] .console-menu button{display:flex!important;flex:0 0 36px;width:36px;height:36px;padding:8px!important}html[data-ad-view=creative] .console-page{width:100%}.console .studio-app .studio-app-tools{flex-wrap:nowrap;padding:6px;min-height:44px;overflow:auto}.studio-app .y3-studio-canvas-head{padding:0 6px}.studio-app-dimensions{white-space:nowrap}}

@media(max-width:800px){.console .studio-app .y3-studio-canvas{grid-template-rows:42px auto 35px;min-height:0}.studio-app-artboard{min-height:0}}
