/* Design Studio – layout as per mock (v546). Triple-id selectors beat legacy !important stacks. */
#stWorkspace#stWorkspace#stWorkspace{font-family:Inter,system-ui,sans-serif!important;color:#202124}
#stWorkspace#stWorkspace#stWorkspace .stws-header{min-height:52px!important;padding:8px 18px!important;gap:14px!important;border-bottom:1px solid #e8eaed!important}
#stWorkspace#stWorkspace#stWorkspace .stws-brand{min-width:0!important;display:flex!important;align-items:baseline!important;gap:10px!important}
#stWorkspace#stWorkspace#stWorkspace .stws-brand>span{display:flex!important;align-items:baseline!important;gap:10px!important}
#stWorkspace#stWorkspace#stWorkspace .stws-brand strong{font:700 18px Lora,Georgia,serif!important;letter-spacing:-.01em!important;white-space:nowrap}
#stWorkspace#stWorkspace#stWorkspace .stws-brand small{margin:0!important;font-size:11px!important;color:#5f6368!important;white-space:nowrap}
#stWorkspace#stWorkspace#stWorkspace .stws-pages{margin-left:6px}
#stWorkspace#stWorkspace#stWorkspace #stwPagesBtn{min-height:34px!important;padding:0 14px!important;border:1px solid #dadce0!important;border-radius:8px!important;background:#fff!important;color:#202124!important;font-weight:600!important;font-size:12.5px!important}
#stWorkspace#stWorkspace#stWorkspace .stws-header-actions{gap:8px!important}
#stWorkspace#stWorkspace#stWorkspace .stws-header-actions .stws-btn{min-height:34px!important;padding:0 14px!important;border:1px solid #dadce0!important;border-radius:6px!important;background:#fff!important;color:#202124!important;font-size:12.5px!important;font-weight:500!important;white-space:nowrap}
#stWorkspace#stWorkspace#stWorkspace .stws-header-actions .stws-btn .stws-label-hide{display:inline!important}
#stWorkspace#stWorkspace#stWorkspace .stws-header-actions .stws-btn.close-btn{background:#1a73e8!important;border-color:#1a73e8!important;color:#fff!important;font-weight:600!important}
#stWorkspace#stWorkspace#stWorkspace .stws-header-actions .stws-btn:disabled{opacity:.55!important}
#stWorkspace#stWorkspace#stWorkspace .stws-nav{display:none!important}
#stWorkspace#stWorkspace#stWorkspace .stws-body{display:block!important;min-height:0;flex:1}
#stWorkspace#stWorkspace#stWorkspace .stws-workarea{display:grid!important;grid-template-columns:300px minmax(0,1fr) 270px!important;height:100%!important;min-height:0!important;overflow:hidden!important}
#stWorkspace#stWorkspace#stWorkspace .stws-leftcol{display:flex!important;flex-direction:column!important;min-height:0!important;min-width:0!important;background:#fff!important;border-right:1px solid #e8eaed!important;overflow:hidden}
#stWorkspace#stWorkspace#stWorkspace .stws-tabs{display:flex!important;flex:0 0 auto}
#stWorkspace#stWorkspace#stWorkspace .stws-tabs button{flex:1 1 50%;height:38px;border:0;border-bottom:1px solid #e8eaed;background:#f1f3f4;color:#5f6368;font:600 13px Inter,system-ui,sans-serif;cursor:pointer}
#stWorkspace#stWorkspace#stWorkspace .stws-tabs button[aria-current="page"]{background:#fff;color:#202124;border-bottom-color:#fff}
#stWorkspace#stWorkspace#stWorkspace .stws-editor{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:0!important;background:#fff!important}
#stWorkspace#stWorkspace#stWorkspace .stws-editor .mk-sec{padding:16px 14px 14px;border-bottom:1px solid #e8eaed}
#stWorkspace#stWorkspace#stWorkspace .stws-editor .mk-sec h4{margin:0 0 10px;font:700 10px Inter,system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:#5f6368}
.mk-chips{display:flex;flex-wrap:wrap;gap:6px}
.mk-chip,.mk-orig{height:30px;padding:0 12px;border:1px solid #dadce0;border-radius:6px;background:#fff;color:#202124;font:500 12.5px Inter,system-ui,sans-serif;cursor:pointer}
.mk-chip.on,.mk-chip[aria-pressed=true]{background:#1a73e8;border-color:#1a73e8;color:#fff;font-weight:600}
.mk-dots{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.mk-orig{height:32px;margin-right:2px}
.mk-orig.on{border-color:#1a73e8;color:#1a73e8}
.mk-dot{width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #dadce0;padding:0;cursor:pointer}
.mk-dot.on{box-shadow:0 0 0 2px #1a73e8}
.mk-boldrow{display:flex;align-items:center;gap:7px;margin-top:10px}.mk-boldrow span{font-size:11px;color:#5f6368;width:26px}
.mk-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;font-size:13px;color:#202124}
.mk-row>span{flex:0 0 auto;max-width:48%}
.mk-row select,.mk-row input[type=url],.mk-row input[type=text]{height:32px;min-width:0;width:54%;padding:0 8px;border:1px solid #dadce0;border-radius:6px;background:#fff;font:13px Inter,system-ui,sans-serif;color:#202124}
.mk-row input[type=color]{width:24px;height:24px;padding:0;border:1px solid #dadce0;border-radius:6px;background:none;cursor:pointer}
.mk-row input[type=color]::-webkit-color-swatch-wrapper{padding:0}.mk-row input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}
.mk-also{margin:2px 0 8px;font-size:10.5px;line-height:1.35;color:#5f6368}
.mk-seg{display:flex;border:1px solid #dadce0;border-radius:6px;overflow:hidden}
.mk-seg button{height:30px;padding:0 9px;border:0;border-right:1px solid #dadce0;background:#fff;font:500 12px Inter,system-ui,sans-serif;cursor:pointer;color:#202124}
.mk-seg button:last-child{border-right:0}.mk-seg button.on{background:#202124;color:#fff;font-weight:600}
.mk-sw{position:relative;display:inline-block;width:36px;height:20px}
.mk-sw input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;z-index:2}
.mk-sw i{position:absolute;inset:0;border-radius:20px;background:#c9ccd1;transition:background .15s}
.mk-sw i:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.mk-sw input:checked+i{background:#1a73e8}.mk-sw input:checked+i:after{transform:translateX(16px)}
/* centre */
#stWorkspace#stWorkspace#stWorkspace .stws-preview{padding:0!important;background:#fff!important;border:0!important;position:relative}
#stWorkspace#stWorkspace#stWorkspace .stws-preview-frame{border:0!important;border-radius:0!important;background:#fff!important}
#stWorkspace#stWorkspace#stWorkspace .stws-ftb{position:absolute!important;z-index:5;left:50%;top:14px;transform:translateX(-50%);margin:0!important;display:none!important}
#stWorkspace#stWorkspace#stWorkspace .stws-ftb .stws-ftb-h{display:none!important}
#stWorkspace#stWorkspace#stWorkspace .stws-preview-frame{margin-top:62px!important;height:calc(100% - 62px)!important;flex:1 1 auto!important}
#stWorkspace#stWorkspace#stWorkspace #stWorkspacePreviewFrame #colPreview .pv-head,#stWorkspace#stWorkspace#stWorkspace #stWorkspacePreviewFrame #cvThemeBar{display:none!important}
#stWorkspace#stWorkspace#stWorkspace #stWorkspacePreviewFrame #cvPreviewViewport{box-shadow:0 2px 14px rgba(60,64,67,.22)!important;border-top:5px solid #dce6ee!important}
/* right */
#stWorkspace#stWorkspace#stWorkspace .stws-right{display:block!important;background:#fff!important;border-left:1px solid #e8eaed!important;padding:16px 16px 28px!important;overflow:auto!important}
#stWorkspace#stWorkspace#stWorkspace .stws-right h3{margin:0 0 10px!important;font:700 10px Inter,system-ui,sans-serif!important;letter-spacing:.09em!important}
#stWorkspace#stWorkspace#stWorkspace .stws-right .stws-sect{padding-bottom:12px!important;margin-bottom:12px!important;border-bottom:0!important}
.stws-right .mk-num{display:flex;align-items:center;gap:6px;width:54%}
.stws-right .mk-num input{width:100%;height:32px;padding:0 8px;border:1px solid #dadce0;border-radius:6px;font:13px Inter,system-ui,sans-serif;text-align:left}
.stws-right .mk-num em{position:absolute;margin-left:46px;font-style:normal;font-size:12px;color:#202124;pointer-events:none}
.stws-right .mk-num{position:relative}
.stws-right .mk-num input{padding-right:30px}
.stws-right .mk-num em{right:10px;margin:0}
.stws-right .mk-row input[type=color]{width:24px;height:24px;border-radius:6px}
#stWorkspace#stWorkspace#stWorkspace .stws-right .stws-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
#stWorkspace#stWorkspace#stWorkspace .stws-right .stws-actions .stws-btn{min-height:32px!important;padding:0 10px!important;border:1px solid #dadce0!important;border-radius:6px!important;font-size:12px!important;font-weight:500!important}
#stWorkspace#stWorkspace#stWorkspace .stws-oi{display:flex!important;align-items:center;gap:6px;height:34px;margin:0 0 8px;padding:0 6px 0 10px;border:1px solid #dadce0;border-radius:6px;background:#fff;font-size:13px;cursor:pointer}
#stWorkspace#stWorkspace#stWorkspace .stws-oi.is-sel{background:#e8f0fe;border-color:#c6dafc}
#stWorkspace#stWorkspace#stWorkspace .stws-oi .nm{flex:1 1 auto;text-transform:none;font-weight:500;color:#202124;letter-spacing:0;font-size:13px}
#stWorkspace#stWorkspace#stWorkspace .stws-oi .nm:first-letter{text-transform:uppercase}
#stWorkspace#stWorkspace#stWorkspace .stws-oi button{flex:0 0 auto;width:20px;height:22px;min-height:0;padding:0;border:1px solid #dadce0;border-radius:4px;background:#fff;color:#202124;font-size:9px;line-height:1;cursor:pointer}
#stWorkspace#stWorkspace#stWorkspace .stws-oi button.mk-tg{position:relative;width:34px;height:18px;border:0;border-radius:18px;background:#c9ccd1;margin-left:2px;font-size:0}
#stWorkspace#stWorkspace#stWorkspace .stws-oi button.mk-tg.on{background:#1a73e8}
#stWorkspace#stWorkspace#stWorkspace .stws-oi button.mk-tg i{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s}
#stWorkspace#stWorkspace#stWorkspace .stws-oi button.mk-tg.on i{transform:translateX(16px)}
#stWorkspace#stWorkspace#stWorkspace .stws-oi.is-hidden{opacity:.6}
/* footer note hidden as in mock */
#stWorkspace#stWorkspace#stWorkspace .stws-footer{display:none!important}
@media (max-width:1279px){
#stWorkspace#stWorkspace#stWorkspace .stws-workarea{grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr) minmax(0,1fr)!important;overflow:auto!important}
#stWorkspace#stWorkspace#stWorkspace .stws-right{display:none!important}
#stWorkspace#stWorkspace#stWorkspace .stws-brand small{display:none}
#stWorkspace#stWorkspace#stWorkspace .stws-header-actions .stws-btn{padding:0 9px!important}
}
#stWorkspace#stWorkspace#stWorkspace #stWorkspacePreviewFrame #cvThemeSlot,#stWorkspace#stWorkspace#stWorkspace #stWorkspacePreviewFrame .v100-top{display:none!important}
.mk-row select{width:58%}
.mk-seg button{padding:0 7px;font-size:11.5px}
.mk-row .mk-seg{flex:0 0 auto}
.stws-right .mk-row>span{max-width:none;flex:1 1 auto}
.stws-right .mk-num{width:90px;flex:0 0 90px}
.stws-right .mk-num em{color:#202124!important}
#stWorkspace#stWorkspace#stWorkspace .stws-oi .nm{text-transform:lowercase!important}
#stWorkspace#stWorkspace#stWorkspace .stws-oi .nm:first-letter{text-transform:uppercase!important}
#stWorkspacePreviewFrame #preview [data-mk-sel]{outline:1.5px solid #1a73e8!important;outline-offset:3px;position:relative}
#stWorkspacePreviewFrame #preview [data-mk-sel]:after{content:"Selected section: " attr(data-mk-sel);position:absolute;right:0;top:-12px;padding:2px 8px;border-radius:4px;background:#1a73e8;color:#fff;font:600 10px Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none;white-space:nowrap;z-index:6}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace #stWorkspacePreviewFrame #cvThemeSlot,html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace #stWorkspacePreviewFrame .v100-top,html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace #stWorkspacePreviewFrame #cvThemeBar,html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace #stWorkspacePreviewFrame .pv-head{display:none!important}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-right .mk-num em{color:#202124!important;background:none!important}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .mk-seg button{padding:0 6px!important;font-size:11px!important}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .mk-row>span{max-width:42%}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace #stWorkspacePreviewFrame #cvThemeSlot{visibility:hidden!important;height:0!important;min-height:0!important;max-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
@media (max-width:1279px){
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-header{flex-wrap:wrap!important;gap:6px 10px!important;padding:8px 10px!important}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-header-actions{order:3;width:100%;margin-left:0!important;overflow-x:auto;gap:6px!important;padding-bottom:2px}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-header-actions .stws-btn{flex:0 0 auto}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-header-actions .stws-btn.close-btn{position:absolute;right:10px;top:8px;order:2}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-pages{margin-left:auto!important;margin-right:92px}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-workarea{display:flex!important;flex-direction:column!important;overflow:hidden!important;height:100%!important}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-leftcol{flex:0 0 46%!important;border-right:0!important;border-bottom:1px solid #e8eaed!important}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-preview{flex:1 1 auto!important;min-height:0!important}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-ftb{position:static!important;transform:none!important;margin:6px auto!important;max-width:100%;overflow-x:auto}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-preview-frame{margin-top:0!important;height:auto!important}
html:root body.shell[class][class]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#a10):not(#a11):not(#a12) #stWorkspace#stWorkspace .stws-header{position:relative}
}
/* v552: phone header – brand + Close on one row, actions on a scrollable row */
@media (max-width:640px){
#stWorkspace#stWorkspace#stWorkspace .stws-header{display:block!important;position:relative!important;padding:8px 12px!important}
#stWorkspace#stWorkspace#stWorkspace .stws-brand{display:block!important;padding:4px 110px 6px 0!important}
#stWorkspace#stWorkspace#stWorkspace .stws-header-actions{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:6px!important;padding-bottom:2px!important;-webkit-overflow-scrolling:touch}
#stWorkspace#stWorkspace#stWorkspace .stws-header-actions .stws-btn{flex:0 0 auto!important;min-height:30px!important;padding:0 8px!important;font-size:12px!important;white-space:nowrap!important}
#stWorkspace#stWorkspace#stWorkspace .stws-header-actions .stws-btn.close-btn{position:absolute!important;top:8px!important;right:12px!important;min-height:34px!important;padding:0 12px!important;font-size:13px!important}
}
/* v555: phone – the floating text toolbar above the preview duplicates the Edit tab, remove it */
@media (max-width:900px){#stWorkspace#stWorkspace#stWorkspace .stws-ftb{display:none!important}}
#stWorkspace#stWorkspace#stWorkspace#stWorkspace .stws-ftb{display:none!important}
#stWorkspace#stWorkspace#stWorkspace#stWorkspace .stws-preview-frame{margin-top:0!important;height:100%!important}
