/* LuckyStudio compact customer workspace, preview chrome only. */
body.studio-one.one-working .one-app-bar{min-height:50px!important;gap:7px!important;padding:5px 12px!important;box-shadow:none!important}
body.studio-one.one-working .one-app-bar .one-app-identity{min-width:140px;max-width:210px;gap:7px}
body.studio-one.one-working .one-app-bar .one-app-mark{width:29px;height:29px}
body.studio-one.one-working .one-app-bar .one-app-heading strong{font-size:15px!important}
body.studio-one.one-working .one-app-bar .one-app-heading p{font-size:10px!important}
body.studio-one.one-working .one-app-bar .one-switch{padding:2px;gap:2px}
body.studio-one.one-working .one-app-bar .one-switch button{min-height:32px;padding:5px 10px;font-size:11px}
body.studio-one.one-working .one-app-bar .one-app-original{padding-left:8px;gap:6px}
body.studio-one.one-working .one-app-bar .one-app-original select{min-height:32px;max-width:166px;padding:5px 7px;font-size:11px}
body.studio-one.one-working .one-app-bar .one-focus,body.studio-one.one-working .one-app-bar .one-exit{min-height:32px;padding:5px 9px;font-size:11px}
body.studio-one.one-working #lw-staging-checkout{padding:7px 9px;font-size:11px;border-radius:8px}
/* Make Web's existing eight tool tiles a slim row, with no second shortcut toolbar. */
html.studio-embedded-web .lwstudio-dialog .lwstudio-head{min-height:44px!important;padding:5px 12px!important}
html.studio-embedded-web .lwstudio-dialog .lwstudio-emblem{width:29px;height:29px}
html.studio-embedded-web .lwstudio-dialog .lwstudio-head h2{font-size:17px!important}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-hiend-workbar{display:none!important}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-toolbar{min-height:0!important;padding:5px 8px!important;gap:5px!important;box-shadow:none!important}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-card{flex:none;min-width:0;min-height:45px;padding:5px 6px;gap:5px;border-radius:8px;box-shadow:none;font-size:11px;line-height:1.15;transform:none!important}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-card:hover{transform:none!important;box-shadow:none}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-icon{flex:0 0 24px;width:24px;height:24px;border-radius:6px}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-icon svg{width:17px;height:17px}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-tour-trigger{min-width:75px;padding:5px 7px;font-size:11px;border-radius:8px}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-sheet-head{padding:12px 14px;gap:8px}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-sheet-title{gap:4px}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-sheet-title h3{font-size:19px}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-dismiss{width:33px;height:33px;font-size:21px}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-sheet .studio-industry-quick{gap:8px!important;padding:13px!important}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-sheet:is([data-panel="content"],[data-panel="sections"],[data-panel="media"],[data-panel="copy"],[data-panel="publish"])>.lwstudio-controls{padding:13px!important}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-stage .lwstudio-preview-bar{min-height:37px!important;padding:5px 8px!important}
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-stage .lwstudio-preview-area{padding:6px!important;background-image:none!important;background-color:#0c2118!important;overflow-x:hidden!important;overscroll-behavior-x:contain}
/* 80% zoom is applied inside the existing viewport. Never make the preview wider than its parent. */
html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-stage .lwstudio-preview-frame:not(.mobile){zoom:.8;width:100%!important;max-width:100%!important;margin:0 auto!important;transition:none!important}
@media(min-width:900px){
 html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-open>.studio-tile-sheet{flex:0 0 clamp(265px,23vw,335px)!important;width:clamp(265px,23vw,335px)!important;max-width:34%!important}
}
/* Shop gets the same tight controls and compensated zoom; mobile is unscaled. */
html.studio-embedded-shop #editor.shop-tile-ui .shop-tiles-toolbar{padding:5px 8px!important;gap:5px!important;box-shadow:none!important}
html.studio-embedded-shop #editor.shop-tile-ui .shop-tool{flex:1 1 0;min-width:0;min-height:44px;padding:5px 6px;gap:5px;border-radius:8px;box-shadow:none;font-size:11px}
html.studio-embedded-shop #editor.shop-tile-ui .shop-tool-icon{flex:0 0 23px;width:23px;height:23px;font-size:16px;border-radius:6px}
html.studio-embedded-shop #editor.shop-tile-ui .shop-tool:hover{transform:none;box-shadow:none}
html.studio-embedded-shop #editor.shop-tile-ui .preview-panel .preview-toolbar{min-height:40px;height:auto;padding:4px 10px;gap:6px}
html.studio-embedded-shop #editor.shop-tile-ui .preview-panel .preview-stage{padding:6px!important;background-image:none!important;background-color:#0c2118!important;overflow-x:hidden!important;overscroll-behavior-x:contain}
html.studio-embedded-shop #editor.shop-tile-ui .preview-panel:not(.is-mobile) .storefront{zoom:.8;width:100%;max-width:100%!important;margin:0 auto;transition:none}
html.studio-embedded-shop #editor.shop-tile-ui .preview-panel.is-mobile .storefront[data-pd-sector] :is(.preview-grid,.storefront-story){grid-template-columns:minmax(0,1fr)!important}
html.studio-embedded-shop #editor.shop-tile-ui .preview-panel.is-mobile .storefront[data-pd-sector] .storefront-story :is(strong,p){min-width:0;overflow-wrap:anywhere}
html.studio-embedded-shop #editor.shop-tile-ui .preview-panel.is-mobile .storefront[data-pd-sector][data-pd-index="2"] .preview-product{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;width:100%;min-width:0;gap:12px!important}
html.studio-embedded-shop #editor.shop-tile-ui .preview-panel.is-mobile .storefront[data-pd-sector][data-pd-index="2"] .product-picture{width:100%!important;height:230px!important;grid-column:auto!important;grid-row:auto!important}
html.studio-embedded-shop #editor.shop-tile-ui .preview-panel.is-mobile .storefront[data-pd-sector][data-pd-index="2"] .preview-product :is(h4,p,.preview-product-footer){grid-column:auto!important;grid-row:auto!important;width:100%;overflow-wrap:normal;word-break:normal}
@media(min-width:900px){
 html.studio-embedded-shop #editor.shop-tile-ui.shop-sheet-open .editor-layout>.editor-panel{flex:0 0 clamp(265px,23vw,335px)!important;width:clamp(265px,23vw,335px)!important;max-width:34%!important}
}
/* Plátno stays in source and local storage; public Studio opens on templates. */
.lwstudio-dialog:not(.lwstudio-inline-shop-active) .lwstudio-shell:not(.fc-advanced-enabled)>.fc-mode-bar{display:none!important}
.one-rotate-hint{display:none;flex:none;align-items:center;gap:9px;padding:7px 11px;background:#123b29;color:#eafff3;font:600 12px/1.35 system-ui;border-bottom:1px solid #437959}
.one-rotate-hint button{margin-left:auto;background:transparent;color:#c5ffe0;border:1px solid #73bb94;border-radius:7px;padding:3px 9px;font:inherit;cursor:pointer;min-width:32px;min-height:28px}
.one-rotate-hint[hidden]{display:none!important}
@media(max-width:850px){
 html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-grid{display:flex;gap:4px;overflow-x:auto}
 html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-card{flex:0 0 76px;min-width:76px;min-height:46px}
 html.studio-embedded-shop #editor.shop-tile-ui .shop-tool{flex:0 0 76px;min-width:76px;min-height:46px}
}
@media(max-width:740px){
 body.studio-one.one-working .one-app-bar{min-height:64px!important;padding:5px 8px!important;gap:5px!important}
 body.studio-one.one-working .one-app-bar .one-app-identity{min-width:0;max-width:none}
 body.studio-one.one-working .one-app-bar .one-app-original select{min-height:32px;max-width:145px}
 html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-sheet-head{padding:11px 12px}
}
@media(max-width:850px) and (orientation:portrait){body.studio-one.one-working .one-rotate-hint:not([hidden]){display:flex}}
@media(max-width:850px) and (orientation:landscape){
 body.studio-one.one-working .one-app-bar{min-height:42px!important;flex-wrap:nowrap!important;align-content:center}
 body.studio-one.one-working .one-app-bar .one-app-heading p,body.studio-one.one-working .one-app-bar .one-app-original label{display:none}
 body.studio-one.one-working .one-app-bar .one-app-mark{width:25px;height:25px}
 html.studio-embedded-web .lwstudio-dialog .lwstudio-head{min-height:38px!important;padding:3px 9px!important}
 html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-toolbar{padding:3px 6px!important}
 html.studio-embedded-web .lwstudio-dialog.studio-tile-ready .studio-tile-card{min-height:39px;padding:3px 5px}
 html.studio-embedded-shop #editor.shop-tile-ui .shop-tool{min-height:39px;padding:3px 5px}
}

/* A single demo checkout lives in the outer Studio toolbar; embedded editors keep a clean header. */
html.studio-embedded-web #lw-staging-checkout,html.studio-embedded-shop #lw-staging-checkout{display:none!important}

/* Extra-narrow landscape devices must keep all buttons reachable. */
@media(max-width:650px) and (orientation:landscape){body.studio-one.one-working .one-app-bar{flex-wrap:wrap!important;gap:4px!important}}
