/* SMBs V2 · new header (snowball bear) + our 512x381 windows ready for Ivan's examples · v1 (approved by Nikolina, Nov 19 2026)
   Load in <head>, after the page's own CSS. Markup is in the HTML; no script builds anything. */

/* 1 · HEADER — desktop (1200 px and up): vertical window 460 x 590 */
@media (min-width:1200px){
  .sbh-vis{left:calc(50% + 61px)!important;right:auto!important;top:170px!important;width:460px!important;height:590px!important}
  .sbh-lens{left:0!important;top:0!important;width:460px!important;height:590px!important}
  .sbh-clear{left:-895px!important;top:-225px!important;width:1536px!important;height:1024px!important;clip-path:inset(225px 181px 209px 895px round 28px)!important}
  .sbh-frost{left:-1562px!important;top:-2562px!important;width:3002px!important;height:4161px!important;max-width:none!important}
  .mkv{position:absolute;left:calc(50% + 166px);top:534px;width:250px;z-index:6;display:flex;flex-direction:column;gap:8px;
    font-family:Inter,system-ui,sans-serif;color:#34365F;font-size:12.5px;line-height:1.4}
  .mkv .b{align-self:flex-end;border-radius:14px 14px 4px 14px;background:#fff;padding:8px 11px;box-shadow:0 6px 18px -10px rgba(40,52,120,.35)}
  .mkv .m{border-radius:14px 14px 14px 4px;background:#ECE8FA;padding:8px 11px;display:flex;gap:7px;align-items:flex-start;box-shadow:0 6px 18px -10px rgba(40,52,120,.3)}
  .mkv .m img{width:18px;height:18px;flex:none}
  .mkv .card{background:#fff;border-radius:14px;padding:9px 11px;box-shadow:0 8px 22px -12px rgba(40,52,120,.35)}
  .mkv .card p{margin:0 0 5px;font-weight:600}
  .mkv .row{display:flex;gap:7px;align-items:center;padding:2px 0}
  .mkv .n{width:16px;height:16px;border-radius:50%;background:#E4E9FB;color:#33407F;font-size:10px;line-height:1;display:grid;place-items:center;flex:none}
  .mkv .n.ok{background:#33407F;color:#fff}
}
@media (max-width:1199.98px){.mkv{display:none}}
/* header fade into the page: no white strip at the bottom edge */
.sbh-grain,.sbh-grain2{-webkit-mask-image:linear-gradient(180deg,#000 0,#000 600px,transparent 860px);mask-image:linear-gradient(180deg,#000 0,#000 600px,transparent 860px)}
@media (min-width:1100px){
  .sbh-fade{top:540px!important;bottom:auto!important;height:360px!important;background:linear-gradient(180deg,rgba(254,250,248,0) 0%,rgba(254,250,248,.18) 22%,rgba(254,250,248,.45) 45%,rgba(254,250,248,.75) 68%,rgba(254,250,248,.93) 86%,#FEFAF8 100%)!important}
}
@media (max-width:1099.98px){
  .sbh-fade{background:linear-gradient(180deg,rgba(254,250,248,0) 0%,rgba(254,250,248,.45) 45%,rgba(254,250,248,.93) 86%,#FEFAF8 100%)!important}
}

/* 2 · OUR WINDOW (every module): pure white 512 x 381, centred in the 595 x 446 frame */
.st-sec .mc.mkx .mc-win,.st-sec .mc.mkx .panes,.st-sec .mc.mkx .mc-sr{display:none!important}
.mkx-win{position:absolute;left:50%;top:50%;width:512px;height:381px;transform:translate(-50%,-50%) scale(var(--kw,1));
  background:#fff;border-radius:22px;overflow:hidden;z-index:5;container-type:size}
.mkx-win .cpa__panel{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .45s}
.mkx-win .cpa__panel.on,.mkx-win .cpa__panel.is-active{opacity:1;visibility:visible;transition:opacity .45s ease,visibility 0s}
@media (prefers-reduced-motion:reduce){.mkx-win .cpa__panel,.mkx-win .cpa__panel.on{transition:none}}
/* Ivan's inner card fills our window: no second card, no shadow, no rounded inner edge */
.mkx-win .cpa__panel>.cpa__ill{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;aspect-ratio:auto!important}
.mkx-win .smq-w{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;container-type:size}
.mkx-win .smq-scene,.mkx-win .smq-sq-scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important;aspect-ratio:auto!important;padding:0!important;background:#fff!important}
.mkx-win [data-pause],.mkx-win [data-replay],.mkx-win .smq-fiction,.mkx-win .smq-controls{display:none!important}
.mkx-win .smq-scene>.smq-browser,.mkx-win .smq-scene>.smq-panel,.mkx-win .smq-scene>.smq-product,.mkx-win .smq-sq-scene>.smq-sq-wbx{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important;border:0!important;transform:none!important;translate:none!important}
.mkx-win .smq-scene>.smq-panel{padding:24px 26px!important;background:#fff!important}
.mkx-win .smq-scene>.smq-product{background:#fff!important}
.mkx-win .smq-sq-scene>.smq-sq-wbx{zoom:1.2;inset:auto!important;left:0!important;top:0!important;padding:20px 22px!important;background:#fff!important}
.mkx-win .smq-scene>.smq-social-post{position:absolute!important;top:0!important;bottom:0!important;left:50%!important;transform:translateX(-50%)!important;height:100%!important;margin:0!important;border-radius:0!important;box-shadow:none!important;border:0!important;border-left:1px solid #ECEEF6!important;border-right:1px solid #ECEEF6!important}

/* 3 · COLOURS + CONTRAST (4.5:1) inside the examples */
.mkx-win .smq-muted,.mkx-win .smq-cal-item,.mkx-win .smq-user-message>small,.mkx-win .smq-assistant-message>div>small,.mkx-win .smq-phase-label,.mkx-win .smq-sq-av-small,.mkx-win .smq-product-head>span,.mkx-win .smq-progress>span,.mkx-win .smq-dev-state>small,.mkx-win .smq-outline-row>b,.mkx-win .smq-ready-label>span,.mkx-win .smq-old-copy>small,.mkx-win .smq-old-copy>p,.mkx-win .smq-new-copy>small,.mkx-win .smq-metric-head>div>small,.mkx-win .smq-metric-head>p,.mkx-win .smq-comparison-chart>div>span,.mkx-win .smq-current>span,.mkx-win .smq-analytics-definition>p,.mkx-win .smq-analytics>footer,.mkx-win .smq-analytics>footer>span{color:#5F6584!important}
.mkx-win .smq-pill,.mkx-win .smq-sq-av-tag:not(.smq-sq-av-tag--review){color:#33407F!important}
.mkx-win .smq-comparison-chart>div>i{background:#FFDDC9!important}
.mkx-win .smq-comparison-chart>.smq-current>i{background:linear-gradient(180deg,#F8B9AE 0%,#B2A6E9 100%)!important}
.mkx-win .smq-composer>span,.mkx-win .smq-composer>span>b{color:#6B7190!important}
.mkx-win .smq-site-nav>span,.mkx-win .smq-site-copy>small,.mkx-win .smq-site-copy>p,.mkx-win .smq-site-foot>span,.mkx-win .smq-enquiry-form>small,.mkx-win .smq-enquiry-form>p,.mkx-win .smq-form-note,.mkx-win .smq-social-head>div>small,.mkx-win .smq-ad-action>div>small,.mkx-win .smq-mini-page>div>p,.mkx-win .smq-muted-link{color:#5E6660!important}
/* (Ivan's scene CSS goes in its own block below once the scenes arrive: font-size max(10.5px, Xcqw), mint -> our blue map,
   other greens hue 75-190 -> hue 228 in Marktic-interface rules; Bloom & Stem rules keep their colours.) */

/* 4 · PHONES (<=640 px): the window is never scaled as a picture.
   It keeps a real size inside a taller frame, content reflows at >=10.5 px; one height per module so tabs never jump. */
@media (max-width:640px){
  .st-sec .mc.mkx:is(#go-card,#ac-card,.mkx){aspect-ratio:auto!important;height:calc(var(--mwh,404px) + 28px)!important}
  .mkx-win{left:14px;right:14px;top:14px;width:auto;height:var(--mwh,404px);transform:none;--mkmin:10.5px}
  .mkx-win .smq-sq-scene>.smq-sq-wbx{zoom:1}
  .mkx-win .smq-scene>.smq-panel{padding:16px!important}
  .mkx-win .smq-scene>.smq-social-post{left:0!important;right:0!important;transform:none!important;width:auto!important;border:0!important}
  /* busy examples (site, calendar, chart, lists) stop after the 4th item */
  .mkx-win .smq-cal-item:nth-of-type(n+5),.mkx-win .smq-sq-av-li:nth-of-type(n+5),.mkx-win .smq-outline-row:nth-of-type(n+5){display:none!important}
}
/* modules with a round button keep the window clear of it on phones */
@media (max-width:640px){.st-sec .mc.mkx:is(#go-card,#ac-card,.mkx):has(>.mk-btn){height:calc(var(--mwh,404px) + 66px)!important}}

/* v6 · header grain only on the background around the picture window, never over the bear (the picture has its own grain).
   The grain keeps its fade (600-860 px) and gets a hole the exact size and place of the 460x590 window (radius 28). */
@media (min-width:1200px){
  .sbh-grain,.sbh-grain2{
    -webkit-mask-image:linear-gradient(180deg,#000 0,#000 600px,transparent 860px),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='590'%3E%3Crect width='460' height='590' rx='28' fill='%23000'/%3E%3C/svg%3E");
    mask-image:linear-gradient(180deg,#000 0,#000 600px,transparent 860px),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='590'%3E%3Crect width='460' height='590' rx='28' fill='%23000'/%3E%3C/svg%3E");
    -webkit-mask-size:100% 100%,460px 590px;mask-size:100% 100%,460px 590px;
    -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
    /* window left = 50% + 61px  ->  mask position = (W - 460) * 50% + 291px */
    -webkit-mask-position:0 0,calc(50% + 291px) 170px;mask-position:0 0,calc(50% + 291px) 170px;
    -webkit-mask-composite:source-out;mask-composite:subtract}
}
