/* Geometry is VK-scoped. AGM colours never reach the standalone recognizers. */
body #view.vk-stage.vk-studio-v227{padding:20px!important;overflow:visible!important;min-width:0}
body #view.vk-stage.vk-studio-v227 .vk-page{display:grid!important;gap:0!important;border:1px solid var(--line);border-top:0;border-radius:0 0 8px 8px;overflow:visible;margin:0!important}
body #view.vk-stage.vk-studio-v227 .vk-page{grid-template-columns:188px minmax(0,1fr)!important}
body #view.vk-stage.vk-studio-v227 .vk227-nav{width:188px!important;min-width:0!important;position:sticky!important;top:76px!important;align-self:start;padding:22px 12px!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:560px;display:flex!important;flex-direction:column;gap:5px}
body #view.vk-stage.vk-studio-v227 .vk227-nav>.vk-brand,body #view.vk-stage.vk-studio-v227 .vk227-nav>.vk-work-nav-head-v196{display:none!important}
body #view.vk-stage.vk-studio-v227 .vk227-nav-button{position:relative;isolation:isolate;overflow:hidden;display:flex!important;align-items:center;gap:10px;width:100%;min-height:48px!important;height:auto!important;padding:13px 11px!important;border:0!important;border-radius:4px!important;box-shadow:none!important;text-align:left;font-size:14px!important;line-height:1.5!important}
body #view.vk-stage.vk-studio-v227 .vk-work-nav-icon-v196{width:20px!important;height:20px!important;flex:0 0 20px!important;background:none!important;border-radius:0!important}
body #view.vk-stage.vk-studio-v227 .vk-work-nav-icon-v196 svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none}
body #view.vk-stage.vk-studio-v227 .vk227-nav-label{min-width:0;overflow-wrap:normal}
body #view.vk-stage.vk-studio-v227 .vk227-nav-footer{margin-top:auto;padding-top:40px}
body #view.vk-stage.vk-studio-v227 .vk227-nav-footer button{font-size:11px!important;border:0!important;width:100%;padding:8px!important;min-height:34px!important}
body #view.vk-stage.vk-studio-v227 .vk-col{min-width:0!important;overflow:visible!important;padding:0!important;gap:0!important}
body #view.vk-stage.vk-studio-v227 .vk-work-main-v196{padding:24px 26px!important;border:0!important;box-shadow:none!important;border-radius:0!important;min-width:0!important}
body #view.vk-stage.vk-studio-v227 .vk227-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:19px}
body #view.vk-stage.vk-studio-v227 .vk227-kicker{font-size:10px!important;line-height:1.5!important;letter-spacing:1.3px!important;color:var(--mut);margin-bottom:7px}
body #view.vk-stage.vk-studio-v227 .vk227-title{font:700 36px/1.2 Arial,sans-serif!important;letter-spacing:-1px!important;margin:0!important;overflow-wrap:anywhere}
body #view.vk-stage.vk-studio-v227 .vk227-title::after{content:'.';color:var(--acc)}
body #view.vk-stage.vk-studio-v227 .vk227-tabs{display:flex;flex-wrap:wrap;gap:0 22px;border-bottom:1px solid var(--line);margin-bottom:24px}
body #view.vk-stage.vk-studio-v227 .vk227-tab{background:transparent!important;color:var(--mut)!important;border:0!important;border-bottom:3px solid transparent!important;box-shadow:none!important;border-radius:0!important;min-height:43px!important;height:auto!important;padding:10px 0!important;font:400 14px/1.4 Arial,sans-serif!important;white-space:normal!important}
body #view.vk-stage.vk-studio-v227 .vk227-tab[aria-pressed=true]{color:var(--ink)!important;border-bottom-color:var(--acc)!important;font-weight:700!important}
body #view.vk-stage.vk-studio-v227 .vk227-duplicate-title{display:none!important}
body #view.vk-stage.vk-studio-v227 .vk227-brand{display:flex;align-items:center;gap:18px;min-width:0;flex-wrap:wrap}
body #view.vk-stage.vk-studio-v227 .vk227-logo{display:none;object-fit:contain;width:95px;height:35px}
body #view.vk-stage.vk-studio-v227 .vk227-brand-place{font-size:28px;font-weight:bold}
body #view.vk-stage.vk-studio-v227 .vk227-brand-slash{font-size:31px;font-weight:bold}
body #view.vk-stage.vk-studio-v227 .vk227-brand-name{font-size:12px;letter-spacing:1px}
body #view.vk-stage.vk-studio-v227 .vk-hero{margin:0!important;min-height:76px!important;padding:17px 24px!important;border-radius:8px 8px 0 0!important;gap:16px!important;border:0!important}
body #view.vk-stage.vk-studio-v227 .vk-hero>.vk-hero-logo,body #view.vk-stage.vk-studio-v227 .vk-hero>.vk-hero-txt{display:none!important}
body #view.vk-stage.vk-studio-v227 .vk-hero-right{margin-left:auto;gap:12px;display:flex;align-items:center;flex-wrap:wrap}
body #view.vk-stage.vk-studio-v227 .vk-hero-right>.s-ico{display:none!important}
body #view.vk-stage.vk-studio-v227 .vka-switch-v194{padding:16px 26px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;gap:12px!important}
body #view.vk-stage.vk-studio-v227 .vka-current-v194{padding:0!important;box-shadow:none!important;border:0!important;min-height:42px!important}
body #view.vk-stage.vk-studio-v227 .vka-logo-v194{width:30px!important;height:30px!important;min-width:30px!important;border-radius:3px!important;font-size:13px!important}
body #view.vk-stage.vk-studio-v227 .vka-current-copy-v194 b{font-size:15px!important}
body #view.vk-stage.vk-studio-v227 .vk-alz{margin:14px 24px 0!important}
body #view.vk-stage.vk-studio-v227 .vh-cta{margin:14px 26px 0!important;padding:12px 16px!important}
body #view.vk-stage.vk-studio-v227 :is(.vkw-grid-v195,.vk-l-grid-v188,.vkw-fields-v195,.vk-l-fields-v188){gap:18px!important;min-width:0!important}
body #view.vk-stage.vk-studio-v227 :is(.vkw-card-v195,.vkw-test-v195,.vk-opt-card-v192,.vka-card-v194,.vkap-card-v196,.vkap-section-v196,.vk-l-step-v188){padding:20px!important;border-radius:5px!important;min-width:0!important;overflow:visible!important}
body #view.vk-stage.vk-studio-v227 :is(.vkw-card-top-v195,.vkap-card-top-v196,.vk-opt-head-v192,.vka-head-v194,.vkap-head-v196){gap:12px!important;flex-wrap:wrap!important;align-items:flex-start!important}
body #view.vk-stage.vk-studio-v227 :is(.vkw-card-top-v195,.vkap-card-top-v196)>:first-child{flex:1 1 200px;min-width:0}
body #view.vk-stage.vk-studio-v227 :is(.vkw-badge-v195,.vkap-status-v196,.vk-opt-badge-v192){max-width:100%;white-space:normal!important;height:auto!important;overflow-wrap:anywhere;flex-shrink:0;line-height:1.45!important;padding:5px 9px!important}
body #view.vk-stage.vk-studio-v227 :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-family:Arial,sans-serif!important;font-size:14px!important;line-height:1.45!important;border-radius:4px!important;min-height:43px!important;height:auto!important;max-width:100%;box-sizing:border-box!important}
body #view.vk-stage.vk-studio-v227 :is(label,.vk-l-field-v188>span,.vkw-field-v195>span){font:600 12px/1.5 Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;margin-bottom:7px}
body #view.vk-stage.vk-studio-v227 .vka-search-v194{position:relative!important;padding:0!important}
body #view.vk-stage.vk-studio-v227 .vka-search-icon-v199{left:13px!important;top:50%!important;transform:translateY(-50%)!important;width:17px!important;height:17px!important;pointer-events:none}
body #view.vk-stage.vk-studio-v227 #vkAgencySearchV194{padding-left:40px!important}
body #view.vk-stage.vk-studio-v227 :is(.vka-managed-form-v199,.vk-l-template-row-v188,.vk-l-search-v188){display:flex;gap:10px;flex-wrap:wrap;min-width:0}
body #view.vk-stage.vk-studio-v227 .vka-managed-form-v199 input{flex:1 1 180px;min-width:0!important}
body #view.vk-stage.vk-studio-v227 .vka-managed-form-v199 button{flex:0 0 auto}
body #view.vk-stage.vk-studio-v227 .vk-tbz{max-width:100%;overflow-x:auto!important;border-radius:4px!important;border:0!important}
body #view.vk-stage.vk-studio-v227 .vk-tb{min-width:960px!important;table-layout:fixed!important}
body #view.vk-stage.vk-studio-v227 .vk-tb :is(th,td){padding:15px 10px!important;font:400 13px/1.45 Arial,sans-serif!important;vertical-align:middle}
body #view.vk-stage.vk-studio-v227 .vk-tb th{font-size:12px!important}
body #view.vk-stage.vk-studio-v227 .vk-tb td.nm{min-width:220px!important}
body #view.vk-stage.vk-studio-v227 .vk-tb .tx{white-space:normal!important;max-width:none!important;font-size:14px!important;line-height:1.45!important}
body #view.vk-stage.vk-studio-v227 .vkc-grid-v195{gap:18px!important}
body #view.vk-stage.vk-studio-v227 .vkc-grid-v195{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important}
body #view.vk-stage.vk-studio-v227 .vkc-card-v195{border-radius:5px!important;overflow:hidden!important}
body #view.vk-stage.vk-studio-v227 .vkc-preview-v195{height:250px!important;min-height:200px;aspect-ratio:auto!important}
body #view.vk-stage.vk-studio-v227 .vkc-preview-v195 img{width:100%;height:100%;object-fit:contain!important;opacity:1!important;filter:none!important}
body #view.vk-stage.vk-studio-v227 .vkc-body-v195{padding:18px!important;min-width:0}
body #view.vk-stage.vk-studio-v227 .vkc-body-v195 h4{font:600 17px/1.4 Arial,sans-serif!important;overflow-wrap:anywhere}
body #view.vk-stage.vk-studio-v227 .vkc-card-actions-v199{display:flex;gap:10px;flex-wrap:wrap}
body #view.vk-stage.vk-studio-v227[data-vk227-page=creative_checks] .vkc-metrics-v195{display:none!important}
body #view.vk-stage.vk-studio-v227[data-vk227-page=creative_checks] .vkc-card-actions-v199>button:first-child{display:none!important}
body #view.vk-stage.vk-studio-v227[data-vk227-page=agency] .vka-managed-v199{display:none!important}
body #view.vk-stage.vk-studio-v227[data-vk227-page=account_access] .vka-shell-v194>:not(.vka-head-v194):not(.vka-managed-v199):not(.vk-note):not(.vka-empty-v194){display:none!important}
body #view.vk-stage.vk-studio-v227 .vk227-roll{position:relative!important;isolation:isolate;overflow:hidden!important;min-height:43px!important;height:auto!important;padding:11px 17px!important;border-radius:4px!important;box-shadow:none!important;font:600 14px/1.45 Arial,sans-serif!important;display:inline-block!important;max-width:100%;text-align:center;transform:none!important}
body #view.vk-stage.vk-studio-v227 .vk227-roll-label{position:relative;display:block;transition:transform .28s cubic-bezier(.2,.75,.25,1)}
body #view.vk-stage.vk-studio-v227 .vk227-roll-copy{position:absolute;inset:11px 17px;display:flex;align-items:center;justify-content:center;transform:translateY(170%);transition:transform .28s cubic-bezier(.2,.75,.25,1);pointer-events:none}
body #view.vk-stage.vk-studio-v227 .vk227-roll-copy::before{content:attr(data-label)}
body #view.vk-stage.vk-studio-v227 .vk227-roll:not(:disabled):hover .vk227-roll-label,body #view.vk-stage.vk-studio-v227 .vk227-roll:not(:disabled):focus-visible .vk227-roll-label{transform:translateY(-170%)}
body #view.vk-stage.vk-studio-v227 .vk227-roll:not(:disabled):hover .vk227-roll-copy,body #view.vk-stage.vk-studio-v227 .vk227-roll:not(:disabled):focus-visible .vk227-roll-copy{transform:translateY(0)}
/* Brand palette stays inside VK, and only in the pre-existing AGM theme. */
body[data-theme=agm] #view.vk-stage.vk-studio-v227{background:#f6f6f4!important;color:#111!important;font-family:Arial,sans-serif!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk-page{border-color:#dededb;background:linear-gradient(to right,#111 188px,#fff 188px)!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 :is(.vk-col,.vk-work-main-v196){background:#fff!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk-hero{background:#111!important;border-top:4px solid #eb0000!important;color:#fff!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-logo{display:block!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-brand-place{display:none!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-brand-slash{color:#eb0000!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-brand-name{color:#fff!important;text-transform:uppercase}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 :is(.vk227-nav,.vk227-nav-button){background:#111!important;color:#ededed!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-nav-button.on{background:#eb0000!important;color:#fff!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-nav-button :is(span,svg){color:inherit!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-nav-footer button{background:#111!important;color:#bfbfbf!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-nav-button::before,body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-roll::before{content:'';position:absolute;inset:0;z-index:-1;background:#eb0000!important;transform:translateY(103%);transition:transform .28s cubic-bezier(.2,.75,.25,1);border-radius:inherit}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-nav-button:hover::before,body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-nav-button:focus-visible::before,body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-roll:not(:disabled):hover::before,body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-roll:not(:disabled):focus-visible::before{transform:translateY(0)}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-title::after{color:#eb0000}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-title{color:#111!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-kicker{color:#62625e!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-tabs{border-color:#dededb}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-tab{color:#62625e!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-tab[aria-pressed=true]{color:#111!important;border-bottom-color:#eb0000!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-roll,body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-roll:hover{color:#fff!important;background:#111!important;border:1px solid #111!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-roll :is(span,b,strong){color:#fff!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-roll:disabled{background:#ededeb!important;color:#70706b!important;border-color:#d5d5d0!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-roll:disabled span{color:#70706b!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk227-roll:disabled::before{display:none}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 :is(.dc-card,.vkw-card-v195,.vk-opt-card-v192,.vka-card-v194,.vkap-section-v196){border-radius:5px!important;border-color:#dededb!important;box-shadow:none!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 :is(.vh-mx,.vk-l-summary-v188,.vkc-kpis-v195,.vkl-kpis-v195,.vk-opt-kpis-v192,.vka-kpis-v194,.vkap-kpis-v196){border-radius:0!important;box-shadow:none!important;margin-bottom:22px!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 :is(.vh-m,.vkc-kpi-v195,.vkl-kpi-v195,.vk-opt-kpi-v192,.vka-kpi-v194,.vkap-kpi-v196){background:#fff!important;border:0!important;border-right:1px solid #dededb!important;border-radius:0!important;padding:16px 18px!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 :is(.vh-m,.vkc-kpi-v195,.vkl-kpi-v195,.vk-opt-kpi-v192,.vka-kpi-v194,.vkap-kpi-v196) b{font:700 27px/1.3 Arial,sans-serif!important;letter-spacing:-.6px!important;overflow-wrap:anywhere}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vka-current-v194{background:#fff!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk-tb th{background:#f6f6f4!important;color:#575751!important;text-transform:none!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk-tb td{background:#fff!important;border-color:#dededb!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227 .vk-tb tr:hover td{background:#f7f7f4!important}
@media(prefers-reduced-motion:reduce){body #view.vk-stage.vk-studio-v227 .vk227-roll-label,body #view.vk-stage.vk-studio-v227 .vk227-roll-copy,body #view.vk-stage.vk-studio-v227 .vk227-roll::before,body #view.vk-stage.vk-studio-v227 .vk227-nav-button::before{transition:none!important}}

/* Live preview corrections: prevent full-width alerts plus margins and keep the icon legible. */
body #view.vk-stage.vk-studio-v227 .vk-alz{width:auto!important;max-width:calc(100% - 48px)!important;min-width:0!important}
body #view.vk-stage.vk-studio-v227 .vk-alz>*{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere}
body[data-theme=agm] #view.vk-stage.vk-studio-v227[data-vk227-page] .vk227-nav-button .vk-work-nav-icon-v196,body[data-theme=agm] #view.vk-stage.vk-studio-v227[data-vk227-page] .vk227-nav-button .vk-work-nav-icon-v196 *{color:#ededed!important;stroke:currentColor!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227[data-vk227-page] button.vk227-roll{color:#fff!important;background:#111!important;border:1px solid #111!important}
body[data-theme=agm] #view.vk-stage.vk-studio-v227[data-vk227-page] button.vk227-roll:disabled{color:#70706b!important;background:#ededeb!important;border-color:#d5d5d0!important}

body #view.vk-stage.vk-studio-v227[data-vk227-page] .vkc-card-v195 .vkc-preview-v195{overflow:hidden!important}
body #view.vk-stage.vk-studio-v227[data-vk227-page] .vkc-card-v195 .vkc-preview-v195 img{display:block!important;width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;object-fit:contain!important}

body #view.vk-stage.vk-studio-v227>.phead.vk-brand-v1{display:none!important}
