/* Match site-wide header without importing global styles into the colour tool. */
.studio-topbar{position:sticky;top:0;z-index:50;display:block;padding:0;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-bottom:1px solid #e6eaf0;color:#0d1321;font:15px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
.studio-topbar .topbar__inner{display:flex;align-items:center;justify-content:space-between;min-height:74px;width:100%;max-width:1700px;margin:auto;padding:12px clamp(20px,2.1vw,36px);gap:clamp(10px,1vw,16px)}
.studio-topbar a{text-decoration:none}
.studio-topbar .brand{order:0;gap:12px;flex-shrink:0;font-size:inherit;color:#0d1321}
.studio-topbar .brand__mark{width:38px;height:38px;flex:0 0 38px}
.studio-topbar .brand__mark img{display:block;width:38px;height:38px}
.studio-topbar .brand__text{display:flex;flex-direction:column;line-height:1.1}
.studio-topbar .brand__name{font-weight:800;font-size:16px}
.studio-topbar .brand__tag{font-size:12px;color:#5b6472;font-weight:400}
.studio-topbar .nav{order:1;display:flex;flex:1;min-width:0;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px clamp(8px,.85vw,15px)}
.studio-topbar .nav a{font-size:clamp(12px,.96vw,14px);white-space:nowrap;font-weight:600;color:#1b2430;opacity:.88}
.studio-topbar .nav a.is-active{opacity:1;color:#075b91;text-decoration:underline;text-underline-offset:6px;text-decoration-color:#0879b9;text-decoration-thickness:2px}
.studio-topbar .nav a.btn--sky{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 12px;border-radius:12px;font-weight:800;background:linear-gradient(135deg,#075b91,#0879b9);color:#fff;opacity:1;box-shadow:0 6px 18px rgba(11,31,58,.06);border:1px solid transparent;letter-spacing:.1px}
.studio-topbar .icon{width:18px;height:18px;flex:none}
.studio-topbar .language-picker{position:relative;flex-shrink:0;color:#0b1f3a;order:3;margin-left:auto}
.studio-topbar .language-picker summary{display:flex;align-items:center;gap:5px;cursor:pointer;font-weight:700;font-size:13px;padding:8px;border:1px solid #e6eaf0;border-radius:9px;list-style:none;background:#fff;white-space:nowrap}
.studio-topbar .language-picker summary::-webkit-details-marker{display:none}
.studio-topbar .language-options{position:absolute;right:0;top:calc(100% + 7px);width:190px;max-height:65vh;overflow:auto;padding:6px;background:#fff;border:1px solid #e6eaf0;border-radius:12px;box-shadow:0 12px 32px #0b1f3a26;z-index:70}
.studio-topbar .language-options a{display:flex;gap:10px;padding:8px;border-radius:6px;align-items:center;color:#0b1f3a;font-size:14px;min-height:40px}
.studio-topbar .language-options a span{font-size:11px;font-weight:700;width:23px;color:#5b6472}
.studio-topbar .language-options a:hover,.studio-topbar .language-options a[aria-current]{background:#e9f4fc}
.studio-topbar .language-options a[aria-current=true]{font-weight:700}
.studio-topbar .menu-toggle{display:none;order:4;font:inherit;font-weight:700;color:#0b1f3a;background:#f7faff;border:1px solid #e6eaf0;border-radius:10px;padding:8px 12px;cursor:pointer;white-space:nowrap}
.studio-topbar :focus-visible{outline:2px solid #258ed6;outline-offset:3px}
.studio-embed .studio-topbar{display:none!important}
html:not(.studio-embed) .preview{top:calc(var(--studio-header-height,74px) + 16px)}
@media(max-width:1350px){
 .studio-topbar .topbar__inner{flex-wrap:wrap;gap:8px;padding-inline:24px}
 .studio-topbar .language-picker{order:1}
 .studio-topbar .menu-toggle{order:2}
 .studio-nav-ready .studio-topbar .menu-toggle:not([hidden]){display:block}
 .studio-topbar .nav{order:3;flex:0 0 100%;width:100%;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:6px 0 10px;gap:3px;max-height:calc(100dvh - 90px);overflow:auto;overscroll-behavior:contain}
 .studio-nav-ready .studio-topbar .nav:not(.is-open){display:none}
 .studio-topbar .nav a{font-size:14px;white-space:normal;overflow-wrap:anywhere;padding:9px 12px}
 .studio-topbar .nav a.btn{align-self:flex-start}
}
@media(max-width:600px){.studio-topbar .topbar__inner{padding-inline:18px}}
@media(max-width:450px){
 .studio-topbar .topbar__inner{padding-inline:10px}
 .studio-topbar .brand{gap:6px;flex:1;min-width:0}
 .studio-topbar .brand__mark{flex:0 0 32px;width:32px;height:32px}
 .studio-topbar .brand__mark img{width:32px;height:32px}
 .studio-topbar .brand__name{font-size:15px}
 .studio-topbar .brand__tag{font-size:10px;overflow-wrap:anywhere}
 .studio-topbar .menu-toggle{padding:7px;font-size:12px}
 .studio-topbar .language-picker summary{padding:7px;gap:3px}
}
@media(max-width:360px){.studio-topbar .brand__tag,.studio-topbar .language-picker summary svg{display:none}}
@media(max-width:800px){html:not(.studio-embed) .preview{top:var(--studio-header-height,74px)}}
@media(max-width:800px) and (min-height:670px){html:not(.studio-embed) .preview .canvaswrap:not([data-custom=true]):not(.editing) canvas{max-height:min(35vh,calc(100dvh - 270px))}}
@media print{.studio-topbar{display:none!important}}
