/* Shared theme across the shell, navigation and editor. */
html.theme-changing body{animation:bms-theme-reveal .45s ease both}
@keyframes bms-theme-reveal{from{opacity:.78}to{opacity:1}}
@media(prefers-reduced-motion:reduce){html.theme-changing body{animation:none}}
/* Full schematic stays legible at the edges, quieter behind the login form. */
/* Keep the technical drawing outside the complete login stack, at any width. */
/* Deep blue technical-glass login, with restrained illuminated circuitry. */
/* Original SINUM editor artwork, arranged as a spacious equipment composition. */

/* One blue surface palette in the shell, editor and navigation shadow roots. */
:root,:host{--color-surface-solid:#165188;--color-surface:#16518899;--color-surface-raised:#176ec0;--surface:213 72% 31%;--surface-raised:212 77% 42%;--panel:rgba(22,76,136,.65)}
body{background:radial-gradient(ellipse at 18% 0%,#20568866,transparent 58%),#0b2a48}
#app-shell,.editor-workspace{background:radial-gradient(ellipse at 18% 0%,#20568838,transparent 58%),#0b2a48}
.bms-custom-space{background:#0d2f4f}
.editor-shell>.connect-sidebar-host{background:#0d2f4f}

:root,:host{--bms-panel-glass:linear-gradient(135deg,#96ccff30,transparent 48%,#247fd51c),rgba(17,66,121,.82);--bms-panel-border:#8bc7ff70;--bms-panel-shadow:inset 0 1px 0 #d5ebff55,inset 0 -1px 0 #07244038,0 8px 24px #02172a55}
.glass{background:var(--bms-panel-glass);border-color:var(--bms-panel-border);box-shadow:var(--bms-panel-shadow);backdrop-filter:blur(22px) saturate(140%);-webkit-backdrop-filter:blur(22px) saturate(140%)}
.bms-physical-card:not([data-online=false]),.bms-measurement-list article:not([data-online=false]),.bms-device-group{background:var(--bms-panel-glass);border-color:var(--bms-panel-border);box-shadow:var(--bms-panel-shadow);backdrop-filter:blur(22px) saturate(140%);-webkit-backdrop-filter:blur(22px) saturate(140%)}
.bms-custom-tabs button{background:linear-gradient(135deg,#96ccff30,transparent 65%),#165188b8;border-color:#8bc7ff70;box-shadow:inset 0 1px #d5ebff44}
.bms-custom-tabs button[aria-selected=true]{background:linear-gradient(135deg,#96ccff38,transparent 65%),#126cc0db;border-color:#b5dbffa0}

/* Rounded navigation exposes the same backdrop on both sides of the iframe. */
:root,:host{--bms-workspace-background:#0d2f4f}
html,body,#editor,#app-shell,.editor-workspace,.bms-custom-space{background:var(--bms-workspace-background)}
.editor-shell>.connect-sidebar-host{background:transparent}

/* Login and workspace share the exact same surface colors. */
@keyframes bms-login-enter{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}

.bms-login-arrival{animation:bms-login-enter .55s ease-out both}
@media(prefers-reduced-motion:reduce){.bms-login-arrival{animation:none}}

:is(.nav-circle,.bms-circle,.bms-header-tools button,.bms-workspace-language-switch button):disabled{opacity:.32!important;cursor:default!important;filter:saturate(.35);box-shadow:none!important;pointer-events:none}

/* Entrance belongs to the actual workspace after authentication. */
.bms-login-arrival{animation:bms-workspace-arrival .75s cubic-bezier(.16,1,.3,1) both}
.bms-login-arrival>.main{animation:bms-workspace-content .85s cubic-bezier(.16,1,.3,1) both}
/* Avoid a persistent filtered raster layer around the entire SVG workspace in WebKit. */
@keyframes bms-workspace-arrival{from{opacity:0}to{opacity:1}}
@keyframes bms-workspace-content{from{translate:0 14px;opacity:0}to{translate:0 0;opacity:1}}
@media(prefers-reduced-motion:reduce){.bms-login-arrival,.bms-login-arrival>.main{animation:none}}
/* The single login design: same blue palette as the workspace. */
.bms-auth-screen{position:relative;isolation:isolate;min-height:100dvh;display:grid;place-items:center;padding:56px 24px;background:var(--bms-workspace-background);overflow:hidden}
.bms-auth-glow{position:absolute;inset:-20%;z-index:-1;background:radial-gradient(ellipse at 25% 45%,#237fd52b,transparent 45%),radial-gradient(ellipse at 80% 65%,#3075b522,transparent 42%);animation:bms-auth-light 16s ease-in-out infinite alternate;pointer-events:none}
.bms-auth-layout{width:min(880px,100%);display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center;animation:bms-login-enter .7s ease-out both}
.bms-auth-brand>img{width:240px;max-width:100%;height:auto}.bms-auth-brand h1{font-size:40px;line-height:1.15;font-weight:700;margin:24px 0 14px;letter-spacing:-1px}.bms-auth-brand p{font-size:15px;color:#bad6f1}
.bms-auth-emblem{width:150px;height:150px;position:relative;display:grid;place-items:center;margin:42px 0 0}.bms-auth-emblem img{width:65px;filter:brightness(0) invert(1);opacity:.95}.bms-auth-emblem span{position:absolute;inset:0;border:1px solid #85c4ff3b;border-radius:35%;transform:rotate(25deg);background:linear-gradient(135deg,#80c2ff12,transparent);animation:bms-auth-orbit 22s linear infinite}.bms-auth-emblem span:nth-child(2){inset:16px;animation-direction:reverse;animation-duration:18s;border-color:#a4d3ff55}
.bms-auth-card{padding:32px;border:1px solid var(--bms-panel-border);border-radius:26px;background:var(--bms-panel-glass);box-shadow:var(--bms-panel-shadow);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.bms-auth-card h2{font-size:25px;font-weight:700;margin:0 0 8px}.bms-auth-card header p{font-size:13px;color:#c4ddf4}.bms-auth-card form{display:grid;gap:20px;margin-top:28px}.bms-auth-card label{font-size:12px;letter-spacing:.2px;color:#d4eaff;gap:8px;margin:0}.bms-auth-card input{height:46px;background:#0d2f4fcc;border:1px solid #7eb9f060;border-radius:11px;font-size:15px;color:white;box-shadow:inset 0 1px 4px #051e3529}.bms-auth-card input:focus-visible{outline:2px solid #79beff;outline-offset:2px}.bms-auth-card input::placeholder{color:#94b8da}.bms-auth-card .primary{height:46px;background:linear-gradient(135deg,#86c4ff30,transparent),#126cc0;border:1px solid #a2d2ff88;border-radius:11px;box-shadow:inset 0 1px #d2e9ff44;font-size:14px;font-weight:700}.bms-auth-card .primary:hover{background-color:#217ed5}.bms-auth-card .error{min-height:0;margin:0;font-size:12px}.bms-auth-card .error:empty{display:none}.bms-auth-card footer{margin-top:24px;font-size:11px;color:#a9ccec;line-height:1.5}.bms-auth-version{position:absolute;bottom:20px;color:#a0c0df;font-size:10px;letter-spacing:1px}
@keyframes bms-auth-orbit{to{rotate:360deg}}@keyframes bms-auth-light{to{translate:3% -3%;scale:1.08}}
@media(max-width:700px){.bms-auth-layout{max-width:410px;grid-template-columns:1fr;gap:24px}.bms-auth-brand{text-align:center}.bms-auth-brand>img{width:210px}.bms-auth-brand h1,.bms-auth-emblem{display:none}.bms-auth-brand p{margin-top:12px;font-size:13px}.bms-auth-card{padding:26px}.bms-auth-screen{padding:36px 18px 56px}}
@media(prefers-reduced-motion:reduce){.bms-auth-glow,.bms-auth-layout,.bms-auth-emblem span{animation:none}}

.bms-auth-equipment{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;mask-image:linear-gradient(90deg,#000 0,transparent calc(50% - 400px),transparent calc(50% + 400px),#000 100%)}
.bms-auth-equipment img{position:absolute;object-fit:contain;opacity:.43;filter:drop-shadow(8px 16px 18px #07223b33);max-width:none;user-select:none;animation:bms-equipment-float 14s ease-in-out infinite alternate}.bms-auth-equipment img:nth-child(even){animation-delay:-7s;animation-duration:18s}
.bms-auth-equipment .heatpump{width:clamp(200px,24vw,410px);left:-3%;top:5%;transform:rotate(-16deg)}.bms-auth-equipment .separator{width:clamp(110px,13vw,230px);left:24%;top:-10%;transform:rotate(27deg);opacity:.27}.bms-auth-equipment .pump{width:clamp(100px,12vw,190px);left:23%;bottom:7%;transform:rotate(-24deg);opacity:.36}.bms-auth-equipment .boiler{width:clamp(155px,16vw,280px);left:1%;bottom:-15%;transform:rotate(17deg);opacity:.3}.bms-auth-equipment .tank{width:clamp(200px,21vw,340px);right:-2%;top:17%;transform:rotate(17deg)}.bms-auth-equipment .mixer{width:clamp(105px,13vw,195px);right:22%;top:-8%;transform:rotate(-27deg);opacity:.3}.bms-auth-equipment .buffer{width:clamp(135px,15vw,260px);right:19%;bottom:-20%;transform:rotate(-20deg);opacity:.3}.bms-auth-equipment .sensor{width:clamp(55px,7vw,110px);right:2%;bottom:-6%;transform:rotate(32deg);opacity:.32}
@keyframes bms-equipment-float{from{translate:0 -7px}to{translate:0 9px}}
@media(max-width:1000px){.bms-auth-equipment{mask-image:linear-gradient(90deg,#000,transparent 18%,transparent 82%,#000)}}
@media(prefers-reduced-motion:reduce){.bms-auth-equipment img{animation:none}}

/* Centered brand composition shared by login and update screens. */
.bms-auth-layout{gap:64px;align-items:center}
.bms-auth-brand{display:flex;flex-direction:column;align-items:center;text-align:center;gap:26px}
.bms-auth-identity{width:100%;padding-bottom:22px;background:linear-gradient(90deg,transparent,#a6d4ff60,transparent) center bottom/96px 1px no-repeat}
.bms-auth-identity>img{display:block;width:240px;max-width:100%;height:auto;margin:0 auto}
.bms-auth-identity>.bms-auth-tagline{margin:12px 0 0;color:#bad6f1;font-size:14px;line-height:1.5;letter-spacing:.15px}
.bms-auth-brand .bms-auth-emblem{margin:0;width:108px;height:108px}
.bms-auth-emblem img{width:52px}
.bms-auth-message{width:100%;padding-top:22px;background:linear-gradient(90deg,transparent,#a6d4ff50,transparent) center top/96px 1px no-repeat}
.bms-auth-message h1{margin:0;font-size:34px;line-height:1.18;letter-spacing:-.6px;font-weight:700}
.bms-auth-message .bms-auth-promise{margin:14px 0 0;font-size:20px;line-height:1.4;font-weight:600;letter-spacing:0;color:#c8e4ff}
.bms-auth-card>header,.bms-auth-card footer{text-align:center}
@media(max-width:700px){.bms-auth-layout{gap:24px}.bms-auth-brand{gap:0}.bms-auth-identity{padding:0;background:none}.bms-auth-identity>img{width:210px}.bms-auth-identity>.bms-auth-tagline{font-size:13px;margin-top:10px}.bms-auth-message{display:none}}


/* Content contrast palette; navigation/header surfaces keep their own settings. */
:root,:host{--bms-content-glass:linear-gradient(135deg,#96ccff30,transparent 48%,#247fd51c),rgba(17,66,121,.94);--bms-content-border:#9aceff9c;--bms-content-shadow:inset 0 1px #e1f0ff66,inset 0 -1px #07244055,0 8px 24px #02172a66;--bms-content-control:linear-gradient(135deg,#c2e1ff28,transparent 60%),#1b5388ed}
.panel.glass,.site.glass,.stat.glass,.canvas-card.glass,.empty.glass{background:var(--bms-content-glass);border-color:var(--bms-content-border);box-shadow:var(--bms-content-shadow)}
.bms-custom-space .bms-physical-card:not([data-online=false]),.bms-custom-space .bms-measurement-list article:not([data-online=false]),.bms-custom-space .bms-device-group{background:var(--bms-content-glass)!important;border-color:var(--bms-content-border)!important;box-shadow:var(--bms-content-shadow)!important}
.bms-custom-space .bms-custom-tabs button,.bms-custom-space .bms-device-transport button{background:var(--bms-content-control);border-color:#98cdff8a;color:#f1f8ff;box-shadow:inset 0 1px #dbeeff55,0 3px 9px #031d3544}
.bms-custom-space .bms-custom-tabs button[aria-selected=true],.bms-custom-space .bms-device-transport button[aria-selected=true]{background:linear-gradient(135deg,#bcdfff35,transparent 65%),#146fc4;border-color:#d0e8ffc9;color:white}
.bms-custom-space .bms-measurement-list small,.bms-custom-space .bms-physical-card small{color:#d0e6fa}

/* Canonical SINUM Connect palette: sinumconnect-web-review/app/globals.css. */
:root,:host{--color-bg:#01070e;--color-surface-solid:#155693;--color-surface:color-mix(in srgb,#155693 65%,transparent);--color-surface-raised:#0d72c4;--color-brand:#1192e8;--color-brand-strong:#0078d4;--color-text:#ffffff;--color-text-muted:#dbe6f3;--color-text-dim:#b9cce5;--bms-workspace-background:#01070e;--surface:209 75% 33%;--surface-raised:207 88% 41%;--panel:rgba(21,86,147,.65);--bms-panel-glass:linear-gradient(145deg,#ffffff20,transparent 48%,#ffffff05),rgba(21,86,147,.82);--bms-panel-border:#dbe6f366;--bms-panel-shadow:inset 0 1px #ffffff30,0 8px 24px #01070e55;--bms-control-glass:linear-gradient(145deg,#ffffff20,#ffffff08),#155693aa;--bms-control-hover:#155693dd;--bms-control-border:#dbe6f355}
.bms-auth-screen,.bms-update-screen,.bms-editor-loading{background:var(--color-bg)}
.bms-update-screen .bms-update-card,.bms-auth-card{background:var(--bms-panel-glass);border-color:var(--bms-panel-border)}
.bms-custom-space .bms-custom-card:not([data-online=false]){background:linear-gradient(145deg,#ffffff20,transparent 48%),#155693!important}
.bms-custom-space .bms-custom-card[data-online=false]{background:linear-gradient(145deg,#ffffff0a,transparent),#111b25!important}
.bms-device-info-board,.bms-device-info-board header{background:var(--color-surface-solid)}

/* Blue schematic canvas; shared Connect navigation and card tokens stay intact. */
.editor-workspace,.bms-editor-body,.bms-canvas,.bms-editor-loading{background:#103b65}

/* Three complete surface themes. Blue is the established schematic design. */
:root,:host{--bms-canvas-bg:#103b65;--bms-theme-panel:#155693;--bms-theme-ink:#fff;--bms-theme-muted:#dbe6f3;--bms-theme-field:#123956;--bms-value-bg:#123056;--bms-value-ink:#eef6ff}
:root[data-theme=black],:host([data-theme=black]){--color-bg:#080b10;--bms-workspace-background:#080b10;--bms-canvas-bg:#080b10;--color-surface-solid:#202832;--color-surface:#202832dd;--color-surface-raised:#344353;--bms-theme-panel:#202832;--bms-theme-field:#151d27;--bms-panel-glass:linear-gradient(145deg,#ffffff0e,transparent),#202832f5;--bms-panel-border:#879aaf55;--bms-control-glass:linear-gradient(145deg,#ffffff12,transparent),#26313ee8;--bms-control-hover:#364554;--bms-control-border:#879aaf66;--bms-content-glass:var(--bms-panel-glass);--bms-content-control:var(--bms-control-glass);--bms-value-bg:#202c39;--bms-value-ink:#f0f5fa}
:root[data-theme=light],:host([data-theme=light]){--color-bg:#a9cef2;--bms-workspace-background:#a9cef2;--bms-canvas-bg:#a9cef2;--color-surface-solid:#bbdaf7;--color-surface:#bbdaf7ee;--color-surface-raised:#91bfea;--color-text:#153854;--color-text-muted:#385b76;--color-text-dim:#56728a;--color-sidebar-foreground:#153854!important;--color-sidebar-accent:#91bfea!important;--bms-theme-panel:#bbdaf7;--bms-theme-ink:#153854;--bms-theme-muted:#385b76;--bms-theme-field:#c9e2fa;--bms-panel-glass:linear-gradient(145deg,#c5e1fa,#bbdaf7e8);--bms-panel-border:#9cb8cf88;--bms-panel-shadow:inset 0 1px #fff,0 6px 20px #163b5a12;--bms-control-glass:linear-gradient(145deg,#c5e1fa,#a0c9efed);--bms-control-hover:#91bfea;--bms-control-border:#9cb8cfaa;--bms-content-glass:var(--bms-panel-glass);--bms-content-control:var(--bms-control-glass);--bms-value-bg:#c5e1fa;--bms-value-ink:#153854;color:#153854!important}
.editor-workspace,.bms-editor-body,.bms-canvas,.bms-editor-loading{background:var(--bms-canvas-bg)}
.bms-theme-control{position:relative}.bms-theme-menu{position:absolute;right:0;top:48px;z-index:110;width:170px;padding:6px;border:1px solid var(--bms-panel-border);border-radius:14px;background:var(--bms-theme-panel);box-shadow:var(--bms-panel-shadow);color:var(--bms-theme-ink)}.bms-theme-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:9px;background:transparent;color:inherit;font:inherit;font-size:13px}.bms-theme-menu button:hover,.bms-theme-menu button[aria-checked=true]{background:var(--bms-control-hover)}.bms-theme-menu button>span:nth-child(2){flex:1;text-align:left}.bms-theme-swatch{width:20px;height:20px;border-radius:50%;border:1px solid #95b4ce;background:#155693}.bms-theme-swatch[data-theme=black]{background:#151d27}.bms-theme-swatch[data-theme=light]{background:#a9cef2}

/* Surface overrides are scoped; equipment state colours remain semantic. */
:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-custom-space .bms-custom-card,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-canvas-thermostats,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-physical-card,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-device-group,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-device-info-board,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-device-info-board header,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-kiosk-modal form,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-update-screen .bms-update-card,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-auth-card,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-floating-panel,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-custom-expanded{background:var(--bms-panel-glass)!important;color:var(--bms-theme-ink)!important;border-color:var(--bms-panel-border)!important;box-shadow:var(--bms-panel-shadow)!important}
:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-statistics-page,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-communication-page,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-server-load-page{background:var(--bms-canvas-bg);color:var(--bms-theme-ink)}
:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) [class*="statistics_chart"],:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) [class*="statistics_sidebar"],:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) [class*="statistics_seriesEditor"],:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) [class*="statistics_savedDialog"],:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) [class*="notification-bell_popup"],:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) [class*="notification-bell_list"] article{background:var(--bms-panel-glass)!important;color:var(--bms-theme-ink)!important;border-color:var(--bms-panel-border)!important}
:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-update-screen,:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .bms-auth-screen{background:var(--bms-canvas-bg)!important}
:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .mr-value-badge>rect{fill:var(--bms-value-bg);stroke:var(--bms-panel-border)}
:is(html[data-theme=black],html[data-theme=light],:host([data-theme=black]),:host([data-theme=light])) .mr-value-badge>text{fill:var(--bms-value-ink)}
:is(html[data-theme=light],:host([data-theme=light])) .bms-circle,:is(html[data-theme=light],:host([data-theme=light])) .nav-circle,:is(html[data-theme=light],:host([data-theme=light])) .app-circle-control,:is(html[data-theme=light],:host([data-theme=light])) .bms-header-tools button,:is(html[data-theme=light],:host([data-theme=light])) .bms-history-controls button,:is(html[data-theme=light],:host([data-theme=light])) .bms-panel-toggle,:is(html[data-theme=light],:host([data-theme=light])) .bms-view-controls,:is(html[data-theme=light],:host([data-theme=light])) .bms-view-controls button,:is(html[data-theme=light],:host([data-theme=light])) .bms-nameplate,:is(html[data-theme=light],:host([data-theme=light])) .bms-nameplate button,:is(html[data-theme=light],:host([data-theme=light])) .bms-workspace-language-switch button,:is(html[data-theme=light],:host([data-theme=light])) .app-desktop-user>div,:is(html[data-theme=light],:host([data-theme=light])) .app-desktop-user button{color:var(--bms-theme-ink)!important;border-color:var(--bms-control-border)!important;background:var(--bms-control-glass)!important}
:is(html[data-theme=light],:host([data-theme=light])) .bms-canvas-thermostats strong,:is(html[data-theme=light],:host([data-theme=light])) .bms-canvas-thermostats header,:is(html[data-theme=light],:host([data-theme=light])) .bms-thermostat-row-name,:is(html[data-theme=light],:host([data-theme=light])) .bms-thermostat-table-head,:is(html[data-theme=light],:host([data-theme=light])) .bms-custom-card h2,:is(html[data-theme=light],:host([data-theme=light])) .sinum-native-view,:is(html[data-theme=light],:host([data-theme=light])) .bms-device-info-board li b,:is(html[data-theme=light],:host([data-theme=light])) .bms-device-info-board li span,:is(html[data-theme=light],:host([data-theme=light])) .bms-auth-card p,:is(html[data-theme=light],:host([data-theme=light])) .bms-auth-card label,:is(html[data-theme=light],:host([data-theme=light])) .bms-auth-card small,:is(html[data-theme=light],:host([data-theme=light])) .bms-update-card h2,:is(html[data-theme=light],:host([data-theme=light])) .bms-update-card p,:is(html[data-theme=light],:host([data-theme=light])) .bms-update-card small,:is(html[data-theme=light],:host([data-theme=light])) .bms-update-details strong,:is(html[data-theme=light],:host([data-theme=light])) .bms-update-details span{color:var(--bms-theme-ink)!important;text-shadow:none}
:is(html[data-theme=light],:host([data-theme=light])) .bms-custom-card input,:is(html[data-theme=light],:host([data-theme=light])) .bms-custom-card select,:is(html[data-theme=light],:host([data-theme=light])) .bms-custom-card button,:is(html[data-theme=light],:host([data-theme=light])) .bms-auth-card input,:is(html[data-theme=light],:host([data-theme=light])) .bms-kiosk-modal input,:is(html[data-theme=light],:host([data-theme=light])) .bms-statistics-page button,:is(html[data-theme=light],:host([data-theme=light])) .bms-statistics-page select,:is(html[data-theme=light],:host([data-theme=light])) .bms-statistics-page input{color:var(--bms-theme-ink)!important;background:var(--bms-theme-field)!important;border-color:var(--bms-panel-border)!important}
:is(html[data-theme=light],:host([data-theme=light])) .bms-unboxed-label{fill:var(--bms-theme-ink)!important}
:is(html[data-theme=light],:host([data-theme=light])) .bms-thermometer-art,:is(html[data-theme=light],:host([data-theme=light])) .bms-circuit-art{filter:brightness(.35) sepia(.2) saturate(2)}
:is(html[data-theme=light],:host([data-theme=light])) .bms-editor-loading,:is(html[data-theme=light],:host([data-theme=light])) .bms-device-info-board,:is(html[data-theme=light],:host([data-theme=light])) .bms-update-screen{color:var(--bms-theme-ink)}
:is(html[data-theme=light],:host([data-theme=light])) .bms-editor-loading img,:is(html[data-theme=light],:host([data-theme=light])) .bms-auth-emblem img{filter:brightness(.4) sepia(.2) saturate(2)!important}
/* Világos téma: a fehér Sinum | BMS logó helyett a sötétkék változat (a frissítőképernyő kék felületén a fehér marad). */
:is(html[data-theme=light],:host([data-theme=light])) img[src$="logo-sidebar-sinum-bms.svg"]:not(.bms-update-screen img){content:url(/logo-sidebar-sinum-bms-dark.svg);filter:none!important}
:is(html[data-theme=light],:host([data-theme=light])) .bms-canvas-grid{background-image:radial-gradient(circle,#15569340 1px,transparent 1px)!important}
:is(html[data-theme=light],:host([data-theme=light])) .bms-thermostat-table-row,:is(html[data-theme=light],:host([data-theme=light])) .bms-custom-card[data-online=false]{border-color:#9cb8cf55!important}
:is(html[data-theme=light],:host([data-theme=light])) .bms-thermostat-row-demand{color:#607c92}
:is(html[data-theme=light],:host([data-theme=light])) .bms-thermostat-row-demand[data-active=true][data-mode=heating]{color:#c22f45}
:is(html[data-theme=light],:host([data-theme=light])) .bms-thermostat-row-demand[data-active=true][data-mode=cooling]{color:#0872b8}

/* Contrast and depth stay readable on baby-blue surfaces. */
:root,:host{--bms-stat-chart:#12365e;--bms-depth:drop-shadow(1px 2px 1px #0008) drop-shadow(4px 7px 5px #0005)}
:root[data-theme=black],:host([data-theme=black]){--bms-stat-chart:#17212e;--bms-depth:drop-shadow(0 0 1px #c2dbfa70) drop-shadow(3px 6px 4px #000a)}
:root[data-theme=light],:host([data-theme=light]){--bms-stat-chart:#b5d7f6;--bms-depth:drop-shadow(0 1px 1px #254e7870) drop-shadow(3px 5px 4px #254e7840);--bms-content-border:#5889b877;--bms-content-shadow:inset 0 1px #d8ecff88,0 5px 15px #234c7526;--bms-panel-shadow:inset 0 1px #d8ecff88,0 5px 15px #234c7526}
.mr-equipment-depth{filter:var(--bms-depth)}
:is(html[data-theme=light],:host([data-theme=light])) :is(.text-white,[class*="group/user"],.app-desktop-logout button,.app-mobile-logout button){color:var(--bms-theme-ink)!important}
:is(html[data-theme=light],:host([data-theme=light])) :is(.bms-thermostat-table-row[data-online=false],.bms-device-row[data-online=false],.bms-device-module[data-online=false],.bms-custom-card[data-online=false],.bms-measurement-list article[data-online=false]){background:#a2c5e5!important;color:#244563!important;opacity:1}
:is(html[data-theme=light],:host([data-theme=light])) :is(.bms-canvas-thermostats small,.bms-canvas-thermostats header span,.bms-thermostat-table-row,.bms-card-loading,.bms-device-status){color:#315575!important}
:is(html[data-theme=light],:host([data-theme=light])) :is(.bms-card-loading-logo,.bms-editor-loading img){filter:brightness(0) saturate(100%)!important;opacity:.75}
:is(html[data-theme=light],:host([data-theme=light])) .bms-editor-loading::before{background-image:radial-gradient(circle,#23588b 1px,transparent 1px)}
:is(html[data-theme=light],:host([data-theme=light])) .bms-editor-loading::after{background-image:radial-gradient(circle,#155693 1.3px,transparent 1.8px)}
:is(html[data-theme=light],:host([data-theme=light])) :is([class*="statistics_plot"],[class*="server-load_chart"]) svg text{fill:#254b70!important}
:is(html[data-theme=light],:host([data-theme=light])) :is([class*="statistics_tooltip"],[class*="statistics_timeZoom"],[class*="statistics_chip"],.bms-custom-expanded>header,.sinum-native-section.with-background){background:#a4cbef!important;color:#153854!important}
:is(html[data-theme=light],:host([data-theme=light])) :is([class*="statistics_timeZoom"],[class*="statistics_chip"]) :is(span,small,output,button){color:#153854!important}
html[data-theme=light] :is(.main,.pagehead,.panel,.panel h2,.panel p,.panel label,.muted){color:var(--bms-theme-ink)!important}
:is(html[data-theme=light],:host([data-theme=light])) :is(.bms-floating-panel,.bms-custom-expanded,.bms-device-dialog) :is(button,input,select,label,small,h2,h3){color:var(--bms-theme-ink)!important}
:is(html[data-theme=light],:host([data-theme=light])) :is(.bms-communication-notice,.bms-device-group>button,.bms-device-group>button small,.bms-custom-tabs button,.bms-device-transport button,.bms-custom-space>p){color:var(--bms-theme-ink)!important}
:is(html[data-theme=light],:host([data-theme=light])) .bms-custom-tabs button[aria-selected=true]{background:#397fbd!important;color:#fff!important}
/* The blue theme has one workspace background on every route and loading screen. */
:root[data-theme=blue],:host([data-theme=blue]){--color-bg:#103b65;--bms-workspace-background:#103b65;--bms-canvas-bg:#103b65;--bms-stat-chart:#103b65}
:root[data-theme=black],:host([data-theme=black]){--color-bg:#080b10;--bms-workspace-background:#080b10;--bms-canvas-bg:#080b10;--bms-stat-chart:#080b10;--color-sidebar-accent:#344353;--color-sidebar-foreground:#eef4fa;--bms-content-border:#879aaf55;--bms-content-shadow:inset 0 1px #ffffff18,0 5px 16px #0007}
:is(html[data-theme=black],:host([data-theme=black])) :is(.bms-custom-tabs button,.bms-device-transport button,.bms-custom-card select,.bms-custom-card input,.sinum-native-slider button,.bms-custom-expanded>header,.sinum-native-section.with-background,.bms-plant-options>button){background:var(--bms-control-glass)!important;color:var(--bms-theme-ink)!important;border-color:var(--bms-control-border)!important}
:is(html[data-theme=black],:host([data-theme=black])) :is(.bms-custom-tabs button[aria-selected=true],.bms-device-transport button[aria-selected=true],.bms-circle[aria-current=page]){background:#41536a!important;border-color:#a3bad2!important}
:is(html[data-theme=black],:host([data-theme=black])) :is(.bms-auth-glow,.bms-update-screen .bms-auth-glow){opacity:.25}
/* Scroll surfaces use painted glass, never stacked live backdrop sampling.
   Kept in the unprocessed sheet: prefixed minification previously dropped the
   standard declaration, leaving Chromium's costly blur enabled. */
.bms-custom-space,.bms-custom-space *{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.bms-device-group[data-open=false]>.bms-device-group-content{display:none}

.bms-boot-screen{position:fixed;inset:0;z-index:10000;transition:opacity .18s ease;overflow:hidden;background:var(--bms-workspace-background,#0d2f4f)}
.bms-boot-screen::before,.bms-boot-screen::after,.bms-update-screen::before,.bms-update-screen::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle,#86c4ff 1px,transparent 1px);background-size:20px 20px}
.bms-boot-screen::before,.bms-update-screen::before{opacity:.16}
.bms-boot-screen::after,.bms-update-screen::after{background-image:radial-gradient(circle,#dbe6f3 1.3px,transparent 1.8px);mask-image:linear-gradient(105deg,transparent 5%,#000 50%,transparent 95%);-webkit-mask-image:linear-gradient(105deg,transparent 5%,#000 50%,transparent 95%);mask-size:45% 100%;-webkit-mask-size:45% 100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;animation:bms-boot-dot-sweep 1.4s ease-in-out infinite}
@keyframes bms-boot-dot-sweep{0%{mask-position:-85% 0;-webkit-mask-position:-85% 0;opacity:0}15%,80%{opacity:.75}100%{mask-position:185% 0;-webkit-mask-position:185% 0;opacity:0}}
@media(prefers-reduced-motion:reduce){.bms-boot-screen::after,.bms-update-screen::after{animation:none;mask-image:none;-webkit-mask-image:none;opacity:.12}}

.bms-boot-screen>a{position:absolute;left:50%;top:60%;transform:translateX(-50%);color:#deefff;font-size:14px;visibility:hidden;animation:bms-boot-retry 0s 20s forwards}
@keyframes bms-boot-retry{to{visibility:visible}}

.bms-boot-screen.is-ready{opacity:0;pointer-events:none}
/* Muted blue authentication edges; preserve readable text and keyboard focus. */
.bms-auth-screen:not(.bms-update-screen){--auth-card:#0a3154f5;--auth-input:#061e35;--auth-ink:#e2edf8;--auth-muted:#adc3d9;--auth-placeholder:#91abc3;--auth-edge:#416a9080;--auth-focus:#70aee0}
html[data-theme=black] .bms-auth-screen:not(.bms-update-screen){--auth-card:#0e1927f7;--auth-input:#050b13;--auth-edge:#536c8580}
html[data-theme=light] .bms-auth-screen:not(.bms-update-screen){--auth-card:#fffffff7;--auth-input:#f5f9fd;--auth-ink:#102d49;--auth-muted:#294a68;--auth-placeholder:#526b82;--auth-edge:#6887a3;--auth-focus:#075da9}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-card{background:var(--auth-card)!important;color:var(--auth-ink)!important;border-color:var(--auth-edge)!important;box-shadow:0 20px 50px #0004,inset 0 1px #8fbbea14!important}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-card :is(h2,label){color:var(--auth-ink)!important}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-card :is(p,footer,small){color:var(--auth-muted)!important}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-card input{background:var(--auth-input)!important;color:var(--auth-ink)!important;border:1px solid var(--auth-edge)!important}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-card input::placeholder{color:var(--auth-placeholder);opacity:1}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-card input:focus-visible{outline:2px solid var(--auth-focus);outline-offset:3px}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-card button.primary{background:#145a99;color:#eaf3fc;border:1px solid #689aca66;box-shadow:0 3px 12px #001d3a40}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-card a{color:var(--auth-focus);text-underline-offset:3px}
.bms-auth-screen:not(.bms-update-screen) :is(.bms-auth-tagline,.bms-auth-promise,.bms-auth-version){color:var(--auth-muted)!important}

/* Quiet machinery above and below the central login form. */
.bms-auth-center-equipment{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.bms-auth-center-equipment img{position:absolute;object-fit:contain;opacity:.2;filter:saturate(.7);user-select:none;max-width:none}

.bms-auth-center-equipment .below{width:280px;height:190px;bottom:-60px;left:calc(50% - 140px);transform:rotate(12deg)}
@media(max-width:600px){.bms-auth-center-equipment img{opacity:.12}.bms-auth-center-equipment .below{width:260px;left:calc(50% - 130px);bottom:-65px}}

/* Login identity: larger wordmark, a subtle rule, then the tagline. */
.bms-auth-screen:not(.bms-update-screen) .bms-auth-identity>img{width:360px;max-width:100%;height:auto}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-identity>.bms-auth-tagline{position:relative;margin-top:20px;padding-top:18px;font-size:14px;font-weight:400;color:#adc3d9}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-identity>.bms-auth-tagline::before{content:"";position:absolute;top:0;left:50%;width:150px;height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#8db9df90,transparent)}
@media(max-width:600px){.bms-auth-screen:not(.bms-update-screen) .bms-auth-identity>img{width:300px}}

.bms-auth-card>.bms-auth-version{position:static;display:block;margin:22px 0 0;text-align:center;font-size:10px;letter-spacing:.7px;opacity:.7}

.bms-auth-screen:not(.bms-update-screen) .bms-auth-card{box-shadow:0 30px 80px #020c20a6,0 12px 28px #020c2073,0 2px 7px #020c2066,inset 0 1px #8fbbea14!important}


.bms-auth-center-equipment .below{width:280px;height:194px;bottom:8px;left:calc(50% - 140px);opacity:.34;transform:rotate(10deg)}
@media(max-width:600px){.bms-auth-center-equipment .below{width:230px;height:159px;left:calc(50% - 115px);bottom:0;opacity:.24}}

@media(max-width:600px){}

/* Lift the login composition slightly, keeping short/mobile screens scrollable. */
@media(min-height:740px){.bms-auth-screen:not(.bms-update-screen) .bms-auth-layout{position:relative;top:-28px}}

.bms-update-screen::before,.bms-update-screen::after{z-index:-1}
.bms-update-screen .bms-auth-equipment,.bms-update-screen .bms-auth-glow{display:none}
.bms-update-screen::after{animation-duration:3s}

/* Public surfaces follow the approved fixed separator and calm blue palette. */
.bms-auth-screen:not(.bms-update-screen) .bms-auth-identity>.bms-auth-tagline::before{width:220px;max-width:80%;height:3px;background:linear-gradient(90deg,#76baf540,#a6d2f5cc 50%,#76baf540);clip-path:polygon(0 50%,50% 0,100% 50%,50% 100%);animation:none;opacity:1}
.bms-boot-screen,.bms-auth-screen.bms-connection-screen{background:#123c63!important}
.bms-boot-screen::after{animation-duration:1.5s}
.bms-connection-screen .bms-auth-card>.primary{display:block;width:100%;margin-top:24px}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-links{border-top-color:#416a9060}

/* Login/initial loading runs one sweep; the approved update screen keeps its own loop. */
.bms-boot-screen::after{animation-iteration-count:1;animation-fill-mode:forwards}

:is(html[data-theme=light],:host([data-theme=light])) .marketplace-release{color:var(--bms-theme-ink);border-color:var(--bms-panel-border)}
:is(html[data-theme=light],:host([data-theme=light])) .marketplace-release a{color:var(--bms-theme-ink);background:var(--bms-control-glass);border-color:var(--bms-control-border)}

/* Shared menu tokens: all menu surfaces follow blue / black / light. */
:root,:host{--bms-menu-surface:linear-gradient(135deg,#469ee644,#126fc52e 55%,#06396b33),#0c3e6eef;--bms-menu-control:linear-gradient(135deg,#75bffc40,#197bc633),#185c96;--bms-menu-border:#84c7fa99;--bms-menu-shadow:inset 0 1px #d4edff5c,0 10px 25px #00152755;--bms-menu-ink:#eff8ff;--bms-menu-muted:#c8e4fa;--bms-menu-accent:#8fdcff;--bms-menu-grid:#a0c8ff24}
:root[data-theme=black],:host([data-theme=black]){--bms-menu-surface:linear-gradient(135deg,#ffffff13,transparent 65%),#202832f5;--bms-menu-control:linear-gradient(135deg,#ffffff16,transparent),#303d4e;--bms-menu-border:#a7bac477;--bms-menu-shadow:inset 0 1px #dce8f52d,0 10px 25px #0008;--bms-menu-ink:#f0f5fa;--bms-menu-muted:#c3cdd9;--bms-menu-accent:#b5d5f3;--bms-menu-grid:#c5d2e025}
:root[data-theme=light],:host([data-theme=light]){--bms-menu-surface:linear-gradient(135deg,#f7fbffcc,#c0ddf5e8),#c5e1fa;--bms-menu-control:linear-gradient(135deg,#f5fbffb3,#9fc9ee),#b6d8f5;--bms-menu-border:#527c9a99;--bms-menu-shadow:inset 0 1px #fff,0 7px 20px #234c752b;--bms-menu-ink:#12324d;--bms-menu-muted:#355571;--bms-menu-accent:#086393;--bms-menu-grid:#234c7530}

/* Extend the dashboard canvas behind rounded header edges and to the viewport edge. */
html:has(#app-shell[data-page=dashboard]){--bms-dashboard-background:var(--bms-workspace-background,#103b65);background:var(--bms-dashboard-background)}
html[data-theme=black]:has(#app-shell[data-page=dashboard]){--bms-dashboard-background:#0b0b0d}
html[data-theme=light]:has(#app-shell[data-page=dashboard]){--bms-dashboard-background:#dfebf6}
html:has(#app-shell[data-page=dashboard]) body,
#app-shell[data-page=dashboard],#app-shell[data-page=dashboard]>.main{background:var(--bms-dashboard-background)!important;min-height:100dvh}
#app-shell[data-page=dashboard]>.main{padding-bottom:0}

/* Dark menu contrast: distinguish controls from their surrounding card. */
:root[data-theme=blue],:host([data-theme=blue]){--bms-menu-control:linear-gradient(145deg,#4385b9,#245e90);--bms-menu-border:#95c9ef99;--bms-menu-muted:#d0e5f6;--bms-menu-accent:#b5e2ff}
:root[data-theme=black],:host([data-theme=black]){--bms-menu-surface:linear-gradient(145deg,#37373bf5,#242427f7);--bms-menu-control:linear-gradient(145deg,#55555b,#3b3b40);--bms-menu-border:#ffffff66;--bms-menu-shadow:inset 0 1px #ffffff2b,0 8px 22px #0008;--bms-menu-ink:#f7f7f8;--bms-menu-muted:#d2d2d7;--bms-menu-accent:#f1f1f4;--bms-menu-grid:#ffffff25}

/* Selected plant remains unmistakable in every palette. */
.bms-plant-options>button[aria-current=true]{background:linear-gradient(145deg,#285d82,#1b4566)!important;border:1px solid #a9d0ec99!important;box-shadow:inset 0 1px #ffffff20,0 4px 12px #0003;color:#fff!important}
.bms-plant-options>button[aria-current=true] b{font-weight:650}
.bms-plant-selected-check{flex-shrink:0;padding:2px;box-sizing:content-box;border-radius:50%;background:#ffffff12;border:0;color:inherit}
:is(html[data-theme=black],:host([data-theme=black])) .bms-plant-options>button[aria-current=true]{background:linear-gradient(145deg,#55555c,#35353b)!important;border-color:#ededf2!important;color:#fff!important;box-shadow:inset 0 1px #ffffff38,0 8px 18px #0007}
:is(html[data-theme=light],:host([data-theme=light])) .bms-plant-options>button[aria-current=true]{background:linear-gradient(145deg,#c7e6ff,#9bcef4)!important;border-color:#216696!important;color:#103e62!important;box-shadow:inset 0 1px #ffffffb3,0 8px 18px #163c592b}
:is(html[data-theme=light],:host([data-theme=light])) .bms-plant-selected-check{background:#216696;color:#fff;border-color:#216696}

/* Shared original blue interior backdrop. */
:root[data-theme=blue],:host([data-theme=blue]){--color-bg:#103b65;--bms-workspace-background:#103b65;--bms-canvas-bg:#103b65;--bms-stat-chart:#103b65}
html[data-theme=blue] #app-shell,html[data-theme=blue] #app-shell>.main,html[data-theme=blue] .editor-workspace{background:#103b65}

/* One restrained glass palette for menus and dashboard cards. */
:root,:host{--bms-glass-surface:linear-gradient(145deg,#d6edff14,transparent 65%),#153f66db;--bms-glass-control:linear-gradient(145deg,#d6edff24,#d6edff08),#285779cc;--bms-glass-edge:#acd1ed52;--bms-glass-shadow:inset 0 1px #e0f2ff26,0 8px 24px #041a302e;--bms-menu-surface:var(--bms-glass-surface);--bms-menu-control:var(--bms-glass-control);--bms-menu-border:var(--bms-glass-edge);--bms-menu-shadow:var(--bms-glass-shadow)}
:root[data-theme=black],:host([data-theme=black]){--bms-glass-surface:linear-gradient(145deg,#ffffff12,transparent 65%),#202023e6;--bms-glass-control:linear-gradient(145deg,#ffffff20,#ffffff08),#38383ed9;--bms-glass-edge:#ffffff40;--bms-glass-shadow:inset 0 1px #ffffff24,0 8px 24px #0005}
:root[data-theme=light],:host([data-theme=light]){--bms-glass-surface:linear-gradient(145deg,#ffffffa3,#ffffff30),#e4eff9e6;--bms-glass-control:linear-gradient(145deg,#ffffff99,#ffffff20),#b8d4e9cc;--bms-glass-edge:#49789b59;--bms-glass-shadow:inset 0 1px #fff,0 8px 24px #234c751a}
.bms-auth-screen:not(.bms-update-screen){--auth-card:var(--bms-glass-surface);--auth-edge:var(--bms-glass-edge)}
html[data-theme] .bms-auth-screen:not(.bms-update-screen){--auth-card:var(--bms-glass-surface);--auth-edge:var(--bms-glass-edge)}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-card{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--bms-glass-shadow),0 20px 50px #020c2040!important}

html[data-theme=blue]:has(#app-shell[data-page=dashboard]){--bms-dashboard-background:#123c63}

/* Loading blue is the common interior base; glass keeps the same hue. */
:root[data-theme=blue],:host([data-theme=blue]){--color-bg:#123c63;--bms-workspace-background:#123c63;--bms-canvas-bg:#123c63;--bms-stat-chart:#123c63;--bms-glass-surface:linear-gradient(145deg,#d6edff14,transparent 65%),#17365fdb;--bms-glass-control:linear-gradient(145deg,#d6edff24,#d6edff08),#274b7bcc}
html[data-theme=blue] #app-shell,html[data-theme=blue] #app-shell>.main,html[data-theme=blue] .editor-workspace{background:#123c63}

/* Canonical blue palette. All surface families reference these same roles. */
:root[data-theme=blue],:host([data-theme=blue]){
 --bms-blue-base:#123c63;--bms-blue-surface:#17365f;--bms-blue-control:#274b7b;--bms-blue-field:#102c50;--bms-blue-edge:#acc8eb52;
 --bg:var(--bms-blue-base);--color-bg:var(--bms-blue-base);--bms-workspace-background:var(--bms-blue-base);--bms-canvas-bg:var(--bms-blue-base);--bms-stat-chart:var(--bms-blue-base);
 --color-surface-solid:var(--bms-blue-surface);--color-surface:#17365fdb;--color-surface-raised:var(--bms-blue-control);--panel:#17365fdb;
 --bms-theme-panel:var(--bms-blue-surface);--bms-theme-field:var(--bms-blue-field);--bms-value-bg:var(--bms-blue-field);
 --bms-glass-surface:linear-gradient(145deg,#d6e5ff14,transparent 65%),#17365fdb;--bms-glass-control:linear-gradient(145deg,#d6e5ff24,#d6e5ff08),#274b7bcc;--bms-glass-edge:var(--bms-blue-edge);
 --bms-panel-glass:var(--bms-glass-surface);--bms-panel-border:var(--bms-blue-edge);--bms-panel-shadow:var(--bms-glass-shadow);
 --bms-control-glass:var(--bms-glass-control);--bms-control-border:var(--bms-blue-edge);--bms-control-hover:#315b90;
 --bms-content-glass:var(--bms-glass-surface);--bms-content-control:var(--bms-glass-control);--bms-content-border:var(--bms-blue-edge);--bms-content-shadow:var(--bms-glass-shadow);
 --bms-menu-surface:var(--bms-glass-surface);--bms-menu-control:var(--bms-glass-control);--bms-menu-border:var(--bms-blue-edge);--bms-menu-muted:#c7d9ef;--bms-menu-accent:#a7caff;--bms-theme-muted:#c7d9ef;
}
html[data-theme=blue] body{background:var(--bms-blue-base)}
html[data-theme=blue] .bms-auth-screen:not(.bms-update-screen){--auth-input:var(--bms-blue-field);--auth-focus:#a7caff}
html[data-theme=blue] .bms-auth-screen:not(.bms-update-screen) .bms-auth-card button.primary{background:var(--bms-glass-control);border-color:var(--bms-blue-edge)}
/* Blue navigation: neutral highlights, no violet cast from saturated backdrop. */
:root[data-theme=blue],:host([data-theme=blue]){--bms-sidebar-surface:linear-gradient(160deg,#ffffff0c,transparent 55%),#123c63;--bms-sidebar-filter:blur(20px) saturate(100%)}
/* Thermostat controls use the local card palette, including offline cards. */
:is(html[data-theme=light],:host([data-theme=light])) .bms-native-thermostat button{
 color:var(--bms-theme-ink)!important;background:var(--bms-control-glass)!important;border:1px solid var(--bms-control-border)!important;opacity:1;
}
:is(html[data-theme=light],:host([data-theme=light])) .bms-native-thermostat .bms-thermostat-modes button[aria-pressed=true]{border:2px solid currentColor!important}
:is(html[data-theme=light],:host([data-theme=light])) .bms-native-thermostat .bms-thermostat-setpoint small{color:var(--bms-theme-muted)}
:is(html[data-theme=light],:host([data-theme=light])) .bms-native-thermostat .bms-thermostat-setpoint>svg{color:var(--bms-theme-muted)}
:is(html[data-theme=light],:host([data-theme=light])) .bms-native-thermostat .bms-thermostat-sensors>span{color:var(--bms-theme-ink);background:var(--bms-control-glass);border:1px solid var(--bms-control-border)}
:is(html[data-theme=light],:host([data-theme=light])) .bms-native-thermostat .bms-thermostat-modes button[data-active=true][data-mode=heating]{background:#f7c1c5!important;color:#7c1729!important}
:is(html[data-theme=light],:host([data-theme=light])) .bms-native-thermostat .bms-thermostat-modes button[data-active=true][data-mode=cooling]{background:#b5dbf8!important;color:#094a78!important}
/* Offline native device cards retain their status palette in every skin. */
:is(html[data-theme],:host([data-theme])) .bms-custom-card[data-online=false]{
 --bms-theme-ink:#edf5ff;--bms-theme-muted:#bdcbd8;--bms-theme-panel:#101820;--bms-theme-field:#17212c;
 --bms-control-glass:#202a34;--bms-control-hover:#334250;--bms-control-border:#b4c8da66;
 background:linear-gradient(135deg,#ffffff09,transparent),#050a0e!important;color:#edf5ff!important;border:1px solid #737373!important;
}

/* Keep the themed workspace visible while a new iframe document is loading. */
.editor-frame{background:var(--bms-canvas-bg,#103b65)}
.editor-frame[data-loading]{visibility:hidden}

/* Shared frame and shadow for application actions, in every theme. */
:root,:host{--bms-action-edge:rgb(184 218 250 / 44%);--bms-action-shadow:inset 0 1px rgb(255 255 255 / 12%),0 3px 8px rgb(0 10 24 / 22%)}
:root[data-theme=light],:host([data-theme=light]){--bms-action-edge:rgb(51 87 120 / 42%);--bms-action-shadow:inset 0 1px rgb(255 255 255 / 48%),0 3px 8px rgb(24 52 78 / 14%)}
:is([data-bms-surface],.bms-settings-panel,.bms-auth-card,.bms-header-tools) button:not(.bms-language-switcher button):not(.bms-contact-link):not(.bms-sidebar-collapse):not([data-bms-page] button):not(.bms-plant-card-action):not(.bms-custom-card button):not(.bms-native-thermostat button):not(.bms-plant-options button),
button[data-slot="button"],.bms-circle,.nav-circle{
 background:transparent!important;background-image:none!important;
 border:1px solid var(--bms-action-edge)!important;box-shadow:var(--bms-action-shadow)!important;
}
:is([data-bms-surface],.bms-settings-panel,.bms-auth-card) button:not(.bms-language-switcher button):not(.bms-contact-link):not(.bms-sidebar-collapse):not([data-bms-page] button):not(.bms-plant-card-action):not(.bms-custom-card button):not(.bms-native-thermostat button):not(.bms-plant-options button):hover:not(:disabled){border-color:currentColor!important}
:is([data-bms-surface],.bms-settings-panel) button[aria-pressed=true]:not(.bms-custom-card button):not(.bms-native-thermostat button),.bms-circle[aria-pressed=true],.nav-circle[aria-pressed=true]{outline:2px solid currentColor;outline-offset:-2px}

/* The editor uses the same unfilled action style as the dashboard. */
.bms-editor-body button:not(.bms-plant-card-action):not(.bms-custom-card button):not(.bms-native-thermostat button):not(.bms-plant-options button){background:transparent!important;background-image:none!important;border-color:var(--bms-action-edge)!important;box-shadow:var(--bms-action-shadow)!important}
.bms-editor-body button[aria-pressed=true]:not(.bms-custom-card button):not(.bms-native-thermostat button){outline:2px solid currentColor;outline-offset:-2px}
.bms-editor-body :is(.bms-view-controls,.bms-history-controls,.bms-panel-toggle){background:transparent!important;background-image:none!important;box-shadow:var(--bms-action-shadow)!important}

/* A single icon-control treatment in navigation and editor chrome. */
:is([data-bms-surface],.bms-editor-body) :is(.bms-circle,.nav-circle,.app-circle-control,.bms-panel-toggle,.bms-history-controls button,.bms-view-controls>button):not(.bms-mode-trigger){
 box-sizing:border-box!important;width:var(--bms-circle-size,40px)!important;height:var(--bms-circle-size,40px)!important;min-width:var(--bms-circle-size,40px)!important;min-height:var(--bms-circle-size,40px)!important;
 padding:0!important;border-radius:50%!important;display:inline-flex;align-items:center;justify-content:center;
 background:transparent!important;border:1px solid var(--bms-action-edge)!important;box-shadow:var(--bms-action-shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
:is([data-bms-surface],.bms-editor-body) :is(.bms-circle,.nav-circle,.app-circle-control,.bms-panel-toggle,.bms-history-controls button,.bms-view-controls>button):is([aria-pressed=true],[aria-expanded=true],[aria-current=page]){border:2px solid currentColor!important;background:transparent!important}
:is([data-bms-surface],.bms-editor-body) :is(.bms-circle,.nav-circle,.app-circle-control,.bms-panel-toggle,.bms-history-controls button,.bms-view-controls>button)>svg{width:20px;height:20px;stroke-width:2}
.bms-editor-body .bms-view-controls:not(.bms-canvas-system-mode){height:auto;min-height:46px;border:0;box-shadow:none!important;padding:3px;gap:6px}

/* Group wrappers are layout only: avoid a second glass plate behind circles. */
.bms-editor-body .bms-history-controls,
.bms-editor-body .bms-view-controls:not(.bms-canvas-system-mode){background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.bms-editor-body .bms-view-controls:not(.bms-canvas-system-mode){padding:0;min-height:40px;height:40px;gap:8px;align-items:center}
.bms-editor-body .bms-canvas-system-mode{padding:3px 10px;height:40px;min-height:40px;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.bms-editor-body .bms-canvas-system-mode>.bms-mode-trigger{border:0!important;outline:0;box-shadow:none!important;background:none!important;width:auto;height:32px;min-height:32px;gap:7px}

/* Quiet inactive outlines; selected controls retain their strong white ring. */
:is([data-bms-surface],.bms-editor-body) :is(.bms-circle,.nav-circle,.app-circle-control,.bms-panel-toggle,.bms-header-tools button,.bms-history-controls button,.bms-view-controls>button):not(.bms-mode-trigger):not(.bms-custom-card button):not(.bms-native-thermostat button):not(.bms-plant-options button){border:1px solid rgb(255 255 255 / 20%)!important}
:is([data-bms-surface],.bms-editor-body) :is(.bms-circle,.nav-circle,.app-circle-control,.bms-panel-toggle,.bms-header-tools button,.bms-history-controls button,.bms-view-controls>button):is([aria-pressed=true],[aria-expanded=true],[aria-current=page]):not(.bms-mode-trigger):not(.bms-custom-card button):not(.bms-native-thermostat button):not(.bms-plant-options button){border:2px solid #fff!important}

:root,:host{--bms-label-surface:#123454;--bms-label-ink:#fff}
:root[data-theme=black],:host([data-theme=black]){--bms-label-surface:#123454;--bms-label-ink:#fff}
:root[data-theme=light],:host([data-theme=light]){--bms-label-surface:#123454;--bms-label-ink:#fff}
.bms-diagram-caption{filter:drop-shadow(0 2px 2px #0003)}

/* One frame per selector; inner triggers must not acquire generic action rings. */
.bms-sidebar-brand img.size-7{filter:brightness(0) invert(1)!important}
.app-desktop-logout{width:148px;flex:0 0 148px}
:is(.bms-editor-body,.bms-viewer) .bms-canvas-system-mode.bms-view-controls{background:var(--bms-selector-solid,#17466f)!important;border:1px solid #ffffffe6!important;box-shadow:var(--bms-action-shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:is(.bms-editor-body,.bms-viewer) .bms-canvas-system-mode>.bms-mode-trigger.bms-mode-trigger:not(.bms-custom-card button):not(.bms-native-thermostat button),
:is(.bms-editor-body,.bms-viewer) .bms-nameplate .bms-plant-switcher>button:not(.bms-plant-options button):not(.bms-custom-card button):not(.bms-native-thermostat button){background:none!important;border:0!important;outline:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:inherit}
:is(.bms-editor-body,.bms-viewer) .bms-nameplate{box-sizing:border-box;background:var(--bms-selector-solid,#17466f)!important;box-shadow:var(--bms-action-shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* The workspace selector has one moving ring, not a ring on each option. */
[data-bms-surface] .bms-workspace-language-switch button:not(.bms-plant-card-action):not(.bms-custom-card button):not(.bms-native-thermostat button):not(.bms-plant-options button){border:0!important;box-shadow:none!important;background:transparent!important}

/* Authentication uses the same base and surface colors as the workspace. */
html[data-theme] .bms-auth-screen:not(.bms-update-screen){background:var(--bms-workspace-background);--auth-card:var(--bms-panel-glass);--auth-input:var(--bms-theme-field);--auth-edge:var(--bms-panel-border);--auth-ink:var(--bms-theme-ink);--auth-muted:var(--bms-theme-muted)}
.bms-auth-screen:not(.bms-update-screen) .bms-auth-glow{background:radial-gradient(ellipse at 25% 45%,#ffffff08,transparent 45%),radial-gradient(ellipse at 80% 65%,#ffffff05,transparent 42%)}
.bms-auth-card form[aria-busy=true]{min-height:214px;pointer-events:none}

/* Energy CONNECT login palette: identical blue gradient and neutral translucent card. */
html:not([data-theme=light]):not([data-theme=black]) .bms-auth-screen:not(.bms-update-screen){
 background:radial-gradient(ellipse 42% 48% at 88% 12%,rgb(45 173 224 / 14%),transparent 100%),radial-gradient(ellipse 38% 42% at 12% 76%,rgb(44 148 215 / 11%),transparent 100%),radial-gradient(ellipse 30% 36% at 68% 88%,rgb(73 173 222 / 8%),transparent 100%),var(--bms-energy-base,#123c63);
 --auth-card:rgb(255 255 255 / 6.5%);--auth-input:rgb(255 255 255 / 10%);--auth-edge:rgb(255 255 255 / 20%);--auth-ink:#fff;--auth-muted:rgb(255 255 255 / 78%);
}
html:not([data-theme=light]):not([data-theme=black]) .bms-auth-screen:not(.bms-update-screen) .bms-auth-glow{background:none}
.bms-auth-card .bms-auth-links{gap:12px;align-items:stretch}
.bms-auth-card .bms-auth-links button{box-sizing:border-box;flex:1 1 auto;min-height:44px;padding:10px 16px;border-radius:12px;font:inherit;font-size:14px;line-height:1.3;text-decoration:none;white-space:normal;color:var(--auth-ink)}
/* Unfilled tabs and group headers share the navigation frame and shadow. */
:is(html[data-theme],:host([data-theme])) .bms-device-group,
:is(html[data-theme],:host([data-theme])) .bms-custom-tabs button,
.bms-device-group,.bms-custom-tabs button{background:transparent!important;background-image:none!important;border-color:var(--bms-action-edge)!important;box-shadow:var(--bms-action-shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.bms-device-group>button{background:transparent!important;box-shadow:none!important;border:0!important}
.bms-custom-tabs button[aria-selected=true]{outline:2px solid currentColor;outline-offset:-2px}
.bms-custom-tabs button:hover:not(:disabled),.bms-device-group:hover{border-color:currentColor!important}

/* Energy CONNECT palette across the blue BMS workspace (including shadow roots). */
:root[data-theme=blue],:host([data-theme=blue]){
 --bms-energy-base:#123c63;
 --bms-energy-background:radial-gradient(ellipse 42% 48% at 88% 12%,rgb(45 173 224 / 14%),transparent 100%),radial-gradient(ellipse 38% 42% at 12% 76%,rgb(44 148 215 / 11%),transparent 100%),radial-gradient(ellipse 30% 36% at 68% 88%,rgb(73 173 222 / 8%),transparent 100%),var(--bms-energy-base,#123c63);
 --bms-blue-base:#0a2140;--bms-blue-surface:#193b5c;--bms-blue-control:#254968;--bms-blue-field:rgb(255 255 255 / 10%);--bms-blue-edge:rgb(255 255 255 / 24%);
 --bg:#0a2140;--color-bg:#0a2140;--bms-workspace-background:#0a2140;--bms-canvas-bg:#0a2140;--bms-stat-chart:#0a2140;
 --color-surface-solid:#193b5c;--color-surface:rgb(255 255 255 / 6.5%);--color-surface-raised:#254968;--panel:rgb(255 255 255 / 6.5%);
 --bms-theme-panel:#193b5c;--bms-theme-field:rgb(255 255 255 / 10%);--bms-theme-ink:#fff;--bms-theme-muted:rgb(255 255 255 / 78%);--bms-value-bg:rgb(255 255 255 / 10%);--bms-value-ink:#fff;
 --bms-glass-surface:rgb(255 255 255 / 6.5%);--bms-glass-control:rgb(255 255 255 / 10%);--bms-glass-edge:rgb(255 255 255 / 24%);--bms-glass-shadow:inset 0 1px rgb(255 255 255 / 12%),0 8px 24px rgb(0 10 24 / 28%);
 --bms-panel-glass:var(--bms-glass-surface);--bms-panel-border:var(--bms-glass-edge);--bms-panel-shadow:var(--bms-glass-shadow);
 --bms-content-glass:var(--bms-glass-surface);--bms-content-control:var(--bms-glass-control);--bms-content-border:var(--bms-glass-edge);--bms-content-shadow:var(--bms-glass-shadow);
 --bms-control-glass:rgb(255 255 255 / 10%);--bms-control-hover:rgb(255 255 255 / 16%);--bms-control-border:rgb(255 255 255 / 24%);
 --bms-menu-surface:#193b5cf5;--bms-menu-control:rgb(255 255 255 / 10%);--bms-menu-border:var(--bms-glass-edge);--bms-menu-shadow:var(--bms-glass-shadow);--bms-menu-ink:#fff;--bms-menu-muted:rgb(255 255 255 / 78%);--bms-menu-accent:#73d6ff;
 --bms-sidebar-surface:rgb(255 255 255 / 6.5%);--bms-sidebar-filter:blur(20px) saturate(100%);--bms-navigation-saturation:100%;
 --bms-action-edge:rgb(255 255 255 / 24%);--color-brand:#28baf0;--color-brand-strong:#1499d2;
}
/* Paint once below the shell so rounded header corners reveal the same background. */
html[data-theme=blue]{background:var(--bms-energy-background);background-size:100% 100%;background-repeat:no-repeat;background-color:#123c63}
html[data-theme=blue] body,html[data-theme=blue] #app-shell,html[data-theme=blue] #app-shell>.main,
html[data-theme=blue] .editor-workspace,html[data-theme=blue] .editor-frame,html[data-theme=blue] .bms-editor-body,
html[data-theme=blue] .bms-canvas,html[data-theme=blue] .bms-custom-space,html[data-theme=blue] #editor{background:transparent!important}
html[data-theme=blue]:has(#editor){background:transparent}
html[data-theme=blue]:has(#app-shell[data-page=dashboard]){--bms-dashboard-background:transparent}
html[data-theme=blue] .bms-boot-screen,html[data-theme=blue] .bms-editor-loading{background:var(--bms-energy-background)}

:is(html[data-theme=blue],:host([data-theme=blue])) :is(.bms-custom-expanded,.bms-floating-panel,.bms-kiosk-modal form){background:var(--bms-menu-surface)!important}
:is(html[data-theme=blue],:host([data-theme=blue])) .bms-device-info-board{background:var(--bms-panel-glass)}
:is(html[data-theme=blue],:host([data-theme=blue])) .bms-device-info-board header{background:transparent}
/* Dashboard's historical root rule must not clear the shared gradient. */
html[data-theme=blue]:has(#app-shell[data-page=dashboard]){background:var(--bms-energy-background)!important;background-size:100% 100%!important;background-repeat:no-repeat!important;background-color:#123c63!important}

/* Energy cyan accents; neutral white glass must not add violet/saturated tints. */
:root[data-theme=blue],:host([data-theme=blue]){--bms-menu-accent:#25c7ef;--bms-control-hover:rgb(37 199 239 / 12%);--color-brand:#25c7ef;--color-brand-strong:#1bafe1}
html[data-theme=blue] .bms-auth-screen:not(.bms-update-screen){--auth-focus:#25c7ef}
html[data-theme=blue] .bms-auth-card .bms-auth-links button{color:#25c7ef}
:is(html[data-theme=blue],:host([data-theme=blue])) :is(.bms-custom-card .bms-custom-actions button,.sinum-native-button,.bms-thermostat-range button){background:transparent!important;border:1px solid var(--bms-action-edge)!important;box-shadow:var(--bms-action-shadow)!important}
:is(html[data-theme=blue],:host([data-theme=blue])) .bms-custom-card .bms-custom-power[aria-pressed=true]{border-color:#25c7ef!important;color:#25c7ef}
/* Schematic workspace is deliberately a single Energy blue, without gradients. */
html[data-theme=blue]:has(#editor){background:var(--bms-energy-base,#123c63)!important}
html[data-theme=blue] :is(.editor-workspace,.editor-frame,.bms-editor-body,.bms-canvas,.bms-custom-space,#editor){background:var(--bms-energy-base,#123c63)!important}

/* Custom Devices retain the controller's native SINUM palette, not BMS glass. */
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat){
 --bms-theme-ink:#fff;--bms-theme-muted:#e5f6ff;--bms-theme-field:#003962;--bms-control-glass:#003962;--bms-control-border:#4d9cd5;--bms-control-hover:#005b9c;
 background:#0072c3!important;color:#fff!important;border:0!important;border-radius:8px!important;padding:8px;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat)>header{margin-bottom:8px}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) h2{font-size:16px;font-weight:600;text-shadow:none}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) .sinum-native-view{color:#fff;font-size:14px}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) :is(select,input:not([type=range]),.sinum-native-button){background:#003962!important;color:#fff!important;border:1px solid #4d9cd5!important;border-radius:8px;box-shadow:none!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) .sinum-native-slider button{background:rgb(0 0 0 / 27%)!important;border:0!important;border-radius:8px;color:#e5f6ff;box-shadow:none!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) input[type=range]{background:#003962!important;border:0!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) .bms-custom-actions button{background:transparent!important;border:1px solid #4d9cd5!important;color:#fff!important;border-radius:8px;box-shadow:none!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) .bms-custom-actions .bms-custom-power[aria-pressed=true]{background:#168ee0!important;border:2px solid #edf7ff!important;color:white!important;box-shadow:inset 0 1px #fff8!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat)[data-online=false]{background:#050a0e!important;border:1px solid #737373!important;--bms-theme-field:#17212c;--bms-control-glass:#17212c}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat)[data-online=false] :is(select,input,.sinum-native-button){background:#17212c!important}

/* Schematic and its loading layer share one uninterrupted blue plane. */
html[data-theme=blue]:has(#app-shell[data-page=editor]),html[data-theme=blue]:has(#editor),
html[data-theme=blue] :is(.bms-editor-loading,.editor-workspace,.editor-frame,.bms-editor-body,.bms-canvas,#editor){background:var(--bms-energy-base,#123c63)!important;background-image:none!important}
/* Hydraulic artwork is a white nameplate in every theme. */
:is(html[data-theme],:host([data-theme])) .bms-circuit-art{filter:brightness(0) invert(1)!important}

/* SINUM Custom Device colors; only switch activation uses BMS blue. */
.sinum-native-switch{outline:1.5px solid rgb(235 247 255 / 75%);outline-offset:0}
.bms-custom-expanded[data-online=false]{background:#080d12!important;color:#f0f3f6!important;filter:grayscale(1)}
.bms-custom-expanded[data-online=false]>header{background:#111820!important;color:#f0f3f6!important}
.bms-custom-expanded[data-online=false] .sinum-native-section.with-background{background:#ffffff06!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) .sinum-native-section.with-background{background:#00509c!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) .sinum-native-switch{background:#003962!important;border:0!important;box-shadow:none!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) .sinum-native-switch.on{background:#168ee0!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) .sinum-native-switch>span{background:#fff!important;box-shadow:none!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat):is([data-online=false],[data-enabled=false]){background:#050a0e!important}
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat):is([data-online=false],[data-enabled=false]) .sinum-native-section.with-background{background:#ffffff06!important}

/* Login field focus is white; link accent remains independent. */
html[data-theme=blue] .bms-auth-screen:not(.bms-update-screen) .bms-auth-card input:focus-visible{outline-color:#fff}

/* Active demand must survive shared unfilled-button and theme overrides. */
:is(html[data-theme],:host([data-theme])) .bms-native-thermostat .bms-thermostat-modes button[data-active=true][data-mode=heating]{background:#ff8389!important;color:#fff!important;border-color:#fff!important}
:is(html[data-theme],:host([data-theme])) .bms-native-thermostat .bms-thermostat-modes button[data-active=true][data-mode=cooling]{background:#68a8e5!important;color:#fff!important;border-color:#fff!important}
:is(html[data-theme],:host([data-theme])) .bms-thermostat-row-demand[data-active=true]{opacity:1!important;color:#ff9ba0!important}
:is(html[data-theme],:host([data-theme])) .bms-thermostat-row-demand[data-active=true][data-mode=cooling]{color:#7dc0ff!important}

/* Range tracks and handles remain legible in Safari and expanded devices. */
:is(html[data-theme],:host([data-theme])) .bms-custom-card:not(.bms-native-thermostat) input[type=range]{background:#07527f!important;box-shadow:inset 0 0 0 1px #80c9f566!important;opacity:1!important;-webkit-appearance:none;appearance:none}
.sinum-native-view input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#fff!important;border:1px solid #b7e3ff;width:20px;height:20px;border-radius:50%;box-shadow:0 1px 4px #001b3080}
.sinum-native-view input[type=range]::-moz-range-thumb{background:#fff;border:1px solid #b7e3ff;width:20px;height:20px;border-radius:50%}

/* Native thermostat palette, independent of the surrounding BMS glass. */
:is(html[data-theme],:host([data-theme])) .bms-native-thermostat:not([data-online=false]){background:#0072c3!important;color:#fff!important;--bms-theme-ink:#fff;--bms-theme-muted:#e5f6ff}
:is(html[data-theme],:host([data-theme])) .bms-native-thermostat :is(h2,strong,small){color:inherit!important}
:is(html[data-theme],:host([data-theme])) .bms-native-thermostat .bms-thermostat-setpoint,:is(html[data-theme],:host([data-theme])) .bms-native-thermostat footer{background:#004475!important}
:is(html[data-theme],:host([data-theme])) .bms-native-thermostat .bms-thermostat-range input{background:#003962!important;border:1px solid #4d9cd5!important;opacity:1}
:is(html[data-theme],:host([data-theme])) .bms-native-thermostat[data-online=false]{background:#050a0e!important;color:#fff!important}
:is(html[data-theme],:host([data-theme])) .bms-native-thermostat[data-online=false] :is(.bms-thermostat-setpoint,footer){background:#17212c!important}

/* Stronger separation without changing native device state colors. */
:root[data-theme=blue],:host([data-theme=blue]){--bms-panel-glass:rgb(255 255 255 / 10%);--bms-panel-border:rgb(255 255 255 / 32%);--bms-panel-shadow:inset 0 1px rgb(255 255 255 / 14%),0 8px 20px rgb(0 10 24 / 35%);--bms-action-edge:rgb(255 255 255 / 32%);--bms-theme-muted:rgb(255 255 255 / 86%)}

/* Subtle visible setpoint band, without a heavy dark stripe. */
:is(html[data-theme],:host([data-theme])) .bms-native-thermostat:not([data-online=false]) .bms-thermostat-setpoint{background:rgb(0 34 62 / 24%)!important;box-shadow:inset 0 1px 0 rgb(255 255 255 / 8%)!important;border:1px solid rgb(255 255 255 / 16%)!important;border-radius:8px;padding:10px 8px 12px;gap:12px}

:is(html[data-theme],:host([data-theme])) .bms-native-thermostat:not([data-online=false]) .bms-thermostat-setpoint>svg{color:#c5eaff}
/* Physical-device navigation/actions are unfilled; channel pictograms retain color. */
:is(html[data-theme],:host([data-theme])) .bms-devices-page :is(.bms-device-transport button,.bms-device-model-filters button,.bms-device-page-heading>button,.bms-physical-card>header>button,.bms-physical-expand){background:transparent!important;background-image:none!important;border-color:var(--bms-action-edge)!important;box-shadow:var(--bms-action-shadow)!important}
:is(html[data-theme],:host([data-theme])) .bms-devices-page :is(.bms-device-transport button[aria-selected=true],.bms-device-model-filters button[aria-pressed=true]){outline:2px solid currentColor;outline-offset:-2px}

/* Approved original login composition with a light matte card in the blue theme. */
html[data-theme=blue] .bms-auth-screen:not(.bms-update-screen):not(.bms-connection-screen) .bms-auth-card{--auth-card:linear-gradient(135deg,rgb(255 255 255 / 8%),transparent 60%),rgb(240 242 240 / 88%);--auth-input:rgb(255 255 255 / 65%);--auth-edge:#b8c1c9;--auth-ink:#252b32;--auth-muted:#52606c;--auth-placeholder:#667581;--auth-focus:#17679c;box-shadow:0 24px 64px #04142645,inset 0 1px #ffffff66,inset 1px 0 #ffffff22!important}
html[data-theme=blue] .bms-auth-screen:not(.bms-update-screen):not(.bms-connection-screen) .bms-auth-card button.primary{background:#126aa2!important;border-color:#126aa2!important;color:#fff!important}
html[data-theme=blue] .bms-auth-screen:not(.bms-update-screen):not(.bms-connection-screen) .bms-auth-links button{background:transparent!important;color:#284b65!important;box-shadow:none!important;border-color:#b8c1c9!important}
html[data-theme=blue] .bms-auth-screen:not(.bms-update-screen):not(.bms-connection-screen) .bms-auth-card .error{color:#a52332}
html[data-theme=blue] .bms-auth-screen:not(.bms-update-screen):not(.bms-connection-screen) .bms-auth-card input:focus-visible{outline-color:var(--auth-focus)}

/* Slightly more compact login card, retaining readable frosted glass. */
.bms-auth-screen:not(.bms-update-screen):not(.bms-connection-screen) .bms-auth-card{box-sizing:border-box;width:min(456px,100%);align-self:center;padding:28px;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}
@media(max-width:600px){.bms-auth-screen:not(.bms-update-screen):not(.bms-connection-screen) .bms-auth-card{padding:24px}}

/* Successful authentication flips the card before the existing loading wave. */
.bms-auth-card.is-login-success{display:grid;place-items:center}
.bms-auth-card.is-login-success>[hidden]{display:none!important}
.bms-auth-card .bms-login-success{text-align:center;padding:28px 0;color:var(--auth-ink)}
.bms-auth-card .bms-login-success-check{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 24px;border-radius:50%;border:1px solid currentColor;color:var(--auth-focus);font-size:32px;font-weight:400;background:color-mix(in srgb,currentColor 8%,transparent)}
.bms-auth-card .bms-login-success h2{margin-bottom:10px}
.bms-auth-card .bms-login-success p{font-size:14px;line-height:1.5}

/* One hover ring for icon controls; an inset outline never changes geometry. */
@media(hover:hover) and (pointer:fine){
 :is(.bms-circle,.nav-circle,.app-circle-control,.bms-panel-toggle,button.circle,.bms-header-tools button,.bms-history-controls button,.bms-view-controls>button,.bms-custom-actions button,.bms-thermostat-modes button,button[aria-label]:has(svg),button[title]:has(svg)):not(.bms-sidebar-collapse:not(.bms-circle)):not(.bms-plant-switcher>button):not(:disabled):not([aria-disabled=true]):hover{outline:2px solid currentColor!important;outline-offset:-2px!important}
}
:is(.bms-circle,.nav-circle,.app-circle-control,.bms-panel-toggle,button.circle,.bms-header-tools button,.bms-history-controls button,.bms-view-controls>button,.bms-custom-actions button,.bms-thermostat-modes button,button[aria-label]:has(svg),button[title]:has(svg)):not(.bms-sidebar-collapse:not(.bms-circle)):not(.bms-plant-switcher>button):not(:disabled):focus-visible{outline:2px solid currentColor!important;outline-offset:2px!important}

@media(hover:hover) and (pointer:fine){
 :is(.app-desktop-logout,.app-mobile-logout) button:not(:disabled):hover,.app-desktop-user>[tabindex]:hover{outline:2px solid currentColor!important;outline-offset:-2px!important}
}
:is(.app-desktop-logout,.app-mobile-logout) button:focus-visible,.app-desktop-user>[tabindex]:focus-visible{outline:2px solid currentColor!important;outline-offset:2px!important}

/* Canvas dots must never bleed through fixed selectors. */
:root,:host{--bms-selector-solid:#17466f}
:root[data-theme=black],:host([data-theme=black]){--bms-selector-solid:#17212b}
:root[data-theme=light],:host([data-theme=light]){--bms-selector-solid:#e3eff8}
.bms-editor-body .bms-plant-switcher>button,.bms-editor-body .bms-canvas-system-mode,.bms-editor-body .bms-canvas-system-mode>.bms-mode-trigger{background:var(--bms-selector-solid)!important;background-image:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Shared interaction ring across the app, editor iframe and styled shadow roots. */
@media(hover:hover) and (pointer:fine){
 :is(button,[role=button],a[href],select,summary,[tabindex="0"]):not(.mr-fault-interactive):not([data-panel-control]):not(.bms-sidebar-collapse:not(.bms-circle)):not(.bms-plant-switcher>button):not(:disabled):not([aria-disabled=true]):not([inert]):hover{outline:2px solid currentColor!important;outline-offset:-2px!important}
}
:is(button,[role=button],a[href],select,summary,[tabindex="0"]):not(.mr-fault-interactive):not([data-panel-control]):not(.bms-sidebar-collapse:not(.bms-circle)):not(.bms-plant-switcher>button):not(:disabled):not([aria-disabled=true]):focus-visible{outline:2px solid currentColor!important;outline-offset:2px!important}

/* Safari must keep HTML cards in their SVG coordinate system when offline.
   Use actual monochrome colors instead of compositing filters in foreignObject. */
foreignObject .bms-canvas-thermostats,foreignObject .bms-canvas-thermostats *{filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
foreignObject .bms-canvas-thermostats[data-online=false]{background:#0c0e11!important;color:#e6e6e6!important;border-color:#727272!important}
foreignObject .bms-canvas-thermostats[data-online=false] :is(header,strong,span,small),foreignObject .bms-thermostat-table-row[data-online=false]{color:#d3d3d3!important}
foreignObject .bms-thermostat-table-row[data-online=false]{background:#111316!important}

/* The loading asset itself is white: do not recolour SVG images in Safari. */
:is(html[data-theme],:host([data-theme])) .bms-card-loading-logo,
.bms-card-loading-logo{filter:none!important;opacity:1!important}

/* Group headers own a rounded outline, matching the containing card. */
.bms-device-group>button{border-radius:16px}
/* Statistics actions use the shared unfilled control treatment in every theme. */
:is(html[data-theme],:host([data-theme])) .bms-statistics-page button,
:is(html[data-theme],:host([data-theme])) .bms-statistics-page select{
 background:transparent!important;background-image:none!important;
 border:1px solid var(--bms-action-edge)!important;
 box-shadow:var(--bms-action-shadow)!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
:is(html[data-theme],:host([data-theme])) .bms-statistics-page button[aria-pressed=true]{border-color:currentColor!important}

/* Account: compact identity/preferences, aligned administration, separate destructive action. */
.bms-account-page{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1120px;padding-bottom:24px;align-items:start}
.bms-account-page>.bms-settings-panel{box-sizing:border-box;width:100%;max-width:none;margin:0!important;padding:24px!important;border-radius:18px!important;background:var(--bms-panel-glass)!important;border:1px solid var(--bms-panel-border)!important;box-shadow:0 6px 18px #00152626!important}
.bms-account-page h2{margin:0 0 12px;font-size:18px;line-height:1.35}
.bms-account-page p{font-size:14px;line-height:1.6;color:var(--bms-theme-muted);margin:8px 0}
.bms-account-profile{display:flex;align-items:center;gap:18px;min-height:180px}
.bms-account-profile>div{min-width:0}.bms-account-profile h2{font-size:23px;margin-bottom:4px}
.bms-account-avatar{display:grid;place-items:center;width:60px;height:60px;flex:0 0 60px;border:1px solid var(--bms-panel-border);border-radius:50%;font-size:22px;font-weight:700;color:var(--bms-theme-ink)}
.bms-account-role{display:inline-block;margin-top:6px;font-size:12px;color:var(--bms-theme-muted)}
.bms-account-mail{min-height:180px}.bms-account-page .check{align-items:flex-start;gap:10px;font-size:14px}.bms-account-page .check input{margin-top:3px}
.bms-account-page>.bms-account-danger{grid-column:1/-1;order:2;border-color:rgb(241 116 116 / 40%)!important}
.bms-account-danger>h2{color:#ffb2b2}.bms-account-danger>p{max-width:760px}
.bms-account-page .bms-account-deletion-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:760px;margin-top:22px}
.bms-account-page form label{display:grid;gap:8px;margin:0;font-size:13px;color:var(--bms-theme-ink)}
.bms-account-page form input{box-sizing:border-box;width:100%;min-height:44px;border-radius:10px;padding:10px 12px}
.bms-account-page button{background:transparent!important;background-image:none!important;border:1px solid var(--bms-action-edge)!important;border-radius:10px;min-height:40px;padding:9px 15px;box-shadow:var(--bms-action-shadow)!important}
.bms-account-page .bms-account-deletion-form button{grid-column:1/-1;justify-self:start;color:#ff9b9b!important;border-color:#f17b7b99!important;margin:0}
.bms-account-page .bms-account-deletion-form [role=status]{grid-column:1/-1;margin:0}.bms-account-page [role=status]:empty{display:none}
html[data-theme=light] .bms-account-danger>h2,html[data-theme=light] .bms-account-page .bms-account-deletion-form button{color:#b4232e!important}
@media(max-width:760px){.bms-account-page{grid-template-columns:1fr;gap:14px}.bms-account-page>.bms-settings-panel{padding:20px!important}.bms-account-profile,.bms-account-mail{min-height:0}.bms-account-page .bms-account-deletion-form{grid-template-columns:1fr}.bms-account-page button{min-height:44px}}
.bms-account-page{width:calc(100% - 44px);margin-inline:auto;align-items:stretch}
.main:has(>.bms-account-page)>.pagehead{box-sizing:border-box;width:calc(100% - 44px);max-width:1120px;margin-inline:auto}
@media(max-width:760px){.bms-account-page,.main:has(>.bms-account-page)>.pagehead{width:calc(100% - 24px)}}

/* Plant picker cards inherit the lower nameplate surface. */
html[data-theme] .bms-nameplate .bms-plant-options>button{background:var(--bms-selector-solid,#17466f)!important;color:var(--bms-theme-ink)!important;border:1px solid color-mix(in srgb,var(--bms-theme-ink) 24%,transparent)!important;box-shadow:var(--bms-action-shadow)!important;border-radius:18px}
html[data-theme] .bms-nameplate .bms-plant-options>button[aria-current=true]{border-color:color-mix(in srgb,var(--bms-theme-ink) 75%,transparent)!important;background:linear-gradient(#ffffff08,#ffffff00),var(--bms-selector-solid,#17466f)!important}


/* Login submit keeps the approved background blue above shared button surfaces. */
.bms-auth-card :is(#login,#account-form) button.primary{background:#123c63!important;background-image:none!important;color:#fff!important;border-color:#7eb9f060!important;box-shadow:0 3px 12px #001d3a40!important}
.bms-auth-card :is(#login,#account-form) button.primary:hover:not(:disabled){background:#174b79!important}

/* Thermostat command progress stays inside the affected card. */
.bms-native-thermostat{position:relative;isolation:isolate}
.bms-native-thermostat[aria-busy=true]>:not(.bms-thermostat-loading){filter:blur(4px);pointer-events:none}
.bms-native-thermostat>.bms-thermostat-loading{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:rgb(8 35 59 / 28%);border-radius:inherit;cursor:wait}
.bms-thermostat-loading img{width:28px;height:28px;min-width:28px;max-width:28px;min-height:28px;max-height:28px;object-fit:contain;transform-origin:center;animation:bms-thermostat-loading-rock 2.6s cubic-bezier(.2,.7,.3,1) infinite;filter:drop-shadow(0 2px 12px rgb(0 0 0 / 30%))}
@keyframes bms-thermostat-loading-rock{0%,25%{transform:rotate(0deg)}40%{transform:rotate(200deg)}50%,75%{transform:rotate(180deg)}90%{transform:rotate(380deg)}100%{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.bms-thermostat-loading img{animation:none}}

/* Mobile login refinement: keep the original equipment background and brand separator. */
html[data-theme=blue] .bms-auth-screen:has(#login) .bms-auth-card{
 --auth-card:rgb(246 251 255 / 95%);--auth-input:rgb(255 255 255 / 88%);
 --auth-edge:#a9c7df;--auth-ink:#192d43;--auth-muted:#536b82;
 box-shadow:0 16px 44px rgb(0 24 46 / 20%),inset 0 1px rgb(255 255 255 / 75%)!important;
}
.bms-auth-screen:has(#login) .bms-auth-card{border-radius:22px}
.bms-auth-screen:has(#login) #login input{box-sizing:border-box;width:100%;min-width:0;height:48px;border-radius:10px;box-shadow:none!important;padding:12px 14px}
.bms-auth-screen:has(#login) #login button.primary{height:48px;border-radius:10px;font-weight:700}
html[data-theme] .bms-auth-screen:has(#login) .bms-auth-links button{
 background:transparent!important;background-image:none!important;box-shadow:none!important;
 border:1px solid var(--auth-edge)!important;border-radius:10px;min-height:44px;
}
@media(max-width:700px){
 .bms-auth-screen:has(#login){padding:24px 16px 36px}
 .bms-auth-screen:has(#login) .bms-auth-layout{gap:24px;top:0}
 .bms-auth-screen:has(#login) .bms-auth-identity>img{width:264px;max-width:85%;margin-inline:auto}
 .bms-auth-screen:has(#login) .bms-auth-identity>.bms-auth-tagline{margin-top:16px;padding-top:14px;font-size:13px}
 .bms-auth-screen:has(#login) .bms-auth-card{padding:24px 20px}
 .bms-auth-screen:has(#login) .bms-auth-card h2{font-size:24px;line-height:1.3;letter-spacing:-.3px}
 .bms-auth-screen:has(#login) .bms-auth-card header p{font-size:13px;line-height:1.5;margin:10px 0 0}
 .bms-auth-screen:has(#login) #login{margin-top:24px;gap:18px}
 .bms-auth-screen:has(#login) #login label{font-size:12px;line-height:1.5;gap:7px}
 .bms-auth-screen:has(#login) .bms-auth-card footer{margin-top:20px;line-height:1.6}
 .bms-auth-screen:has(#login) .bms-auth-links{gap:10px}
 .bms-auth-screen:has(#login) .bms-auth-links button{padding:10px 8px;font-size:13px}
 .bms-auth-screen:has(#login) .bms-auth-version{margin-top:20px;letter-spacing:.5px}
}

/* Approved sparse office line art; scoped away from the updating screen. */
html[data-theme] .bms-auth-screen.bms-login-screen:not(.bms-update-screen){background:radial-gradient(ellipse at 12% 40%,#1c71945c,transparent 55%),radial-gradient(ellipse at 85% 75%,#30628e48,transparent 55%),#103453}
html[data-theme] .bms-auth-screen.bms-login-screen:not(.bms-update-screen) .bms-auth-glow{inset:0;animation:none;transform:none;pointer-events:none;background:url('/login-office-network.svg') center / max(1280px,100%) auto no-repeat;opacity:.8;mask-image:linear-gradient(90deg,#000,transparent 44%,transparent 56%,#000)}
.bms-auth-screen.bms-login-screen::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(#9dcbe91a 1px,transparent 1px);background-size:28px 28px;mask-image:radial-gradient(ellipse at center,transparent 18%,#000 100%)}
@media(max-width:700px){html[data-theme] .bms-auth-screen.bms-login-screen:not(.bms-update-screen) .bms-auth-glow{background-position:18% 60%;opacity:.38;mask-image:linear-gradient(90deg,#000,transparent 78%)}}

/* App-only contrast: keep the approved login and updating backgrounds separate. */
:is(html[data-theme=blue],:host([data-theme=blue])) :is(#app-shell,.editor-workspace,.bms-editor-body,.bms-viewer,[data-bms-page]){--bms-canvas-bg:#0e304e;--bms-workspace-background:#0e304e;--bms-theme-muted:#d0e1ee;--bms-stat-chart:#0c2942}

/* Unfinished Custom Devices live on their own conditional workspace tab. */
:is(html[data-theme],:host([data-theme])) .bms-custom-space .bms-custom-tabs button.bms-drafts-tab,.bms-custom-space .bms-custom-tabs button.bms-drafts-tab{background:#f4d566!important;background-image:none!important;color:#493b11!important;border-color:#cfb85f!important}

/* Custom Device category filters share the primary tab row, aligned right. */
.bms-custom-navigation{display:flex;align-items:flex-start;gap:16px;min-width:0}
.bms-custom-navigation>.bms-custom-tabs{flex-shrink:0}
.bms-custom-navigation>.bms-custom-group-filters{margin-left:auto;flex:0 1 auto;min-width:0;justify-content:flex-end;flex-wrap:nowrap;overflow-x:auto}
.bms-custom-group-filters>button{flex-shrink:0;white-space:nowrap}
@media(max-width:700px){.bms-custom-navigation{flex-wrap:wrap}.bms-custom-navigation>.bms-custom-group-filters{max-width:100%;justify-content:flex-start}}

.bms-category-empty{display:flex;min-height:clamp(220px,38vh,420px);flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:32px 20px;color:var(--bms-theme-ink,#edf7ff)}
.bms-category-empty-icon{display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--bms-action-edge,#ffffff40);border-radius:50%;background:linear-gradient(145deg,#9acfff20,#9acfff04);box-shadow:inset 0 1px #ffffff20}
.bms-category-empty h2{font-size:20px;font-weight:600;margin:4px 0 0}
.bms-category-empty p{font-size:14px;opacity:.7;margin:0}

.bms-custom-navigation>.bms-custom-group-filters{border-left:1px solid var(--bms-action-edge,#ffffff40);padding-left:16px}
@media(max-width:700px){.bms-custom-navigation>.bms-custom-group-filters{border-left:0;padding-left:0}}

.bms-category-label{display:inline-block;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.bms-custom-group-filters .bms-category-label{transition:none}}

.bms-category-menu{margin-left:auto;display:flex;align-items:flex-start;gap:10px;min-width:0;border-left:1px solid var(--bms-action-edge,#ffffff40);padding-left:16px}
.bms-category-menu>.bms-custom-tabs{margin-bottom:0}
.bms-category-menu>.bms-custom-group-filters{display:none;min-width:0;flex-wrap:nowrap;overflow-x:auto}
.bms-category-menu:hover>.bms-custom-group-filters,.bms-category-menu:focus-within>.bms-custom-group-filters,.bms-category-menu[data-open=true]>.bms-custom-group-filters{display:flex}
.bms-category-menu .bms-category-label{max-width:none;opacity:1}

/* Category choices open below the trigger; click pins the menu open. */
.bms-category-menu{position:relative;flex-direction:column;align-items:flex-end;border:0;padding-left:0;gap:0}
.bms-category-menu>.bms-custom-group-filters{position:absolute;top:100%;right:0;z-index:30;box-sizing:border-box;width:min(720px,calc(100vw - 100px));max-height:50vh;padding:14px;margin:0;gap:10px;flex-wrap:wrap;justify-content:flex-end;overflow:auto;border:1px solid var(--bms-action-edge,#ffffff40);border-radius:20px;background:var(--bms-content-control,#123c63);box-shadow:0 12px 28px #00142655;backdrop-filter:blur(16px)}
.bms-category-menu[data-open=true]>.bms-custom-group-filters{position:absolute;top:calc(100% + 8px);right:0;margin-top:0}

.bms-bulk-power{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;margin:0 0 16px}.bms-bulk-power>.bms-custom-tabs{margin-bottom:0}.bms-bulk-power>span{font-size:13px}

.bms-category-menu>.bms-custom-group-filters{width:100%;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap}.bms-category-menu>.bms-custom-group-filters>button{width:100%;min-width:0;padding:10px 8px;justify-content:flex-start;white-space:normal;overflow-wrap:anywhere}.bms-category-menu>.bms-custom-group-filters{padding:6px;gap:6px}.bms-category-menu .bms-category-label{min-width:0;text-align:left}.bms-category-menu>.bms-custom-group-filters>button>svg{flex-shrink:0}

/* The trigger and its pinned category list share enough room for full names. */
.bms-category-menu{width:min(340px,100%);flex-shrink:0}.bms-category-menu>.bms-custom-tabs{width:100%}.bms-category-menu>.bms-custom-tabs:not(.bms-custom-group-filters)>button{width:100%;justify-content:space-between}.bms-category-menu .bms-category-label{white-space:normal;overflow-wrap:anywhere}

/* Category choices use the same unfilled outline treatment as their trigger. */
.bms-category-menu>.bms-custom-group-filters{padding:0;gap:8px;border:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;overflow-x:hidden}.bms-category-menu>.bms-custom-group-filters>button{padding:10px 14px}

/* Floating category menu obscures the controls underneath while open. */
.bms-category-menu>.bms-custom-group-filters,.bms-category-menu[data-open=true]>.bms-custom-group-filters{position:absolute;top:calc(100% + 8px);right:0;margin-top:0;max-height:70vh;overflow:auto;background:var(--bms-selector-solid,#17466f);backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate;border-radius:20px;padding:6px;box-shadow:0 12px 28px #00142633}.bms-custom-navigation{margin-bottom:16px}

/* Expanded navigation collapse highlights its icon, never the full text row. */
@media(hover:hover) and (pointer:fine){
 .bms-sidebar-collapse:not(.bms-circle):hover>.bms-circle{outline:2px solid currentColor!important;outline-offset:-2px!important}
}
.bms-sidebar-collapse:not(.bms-circle):focus-visible{outline:none!important}
.bms-sidebar-collapse:not(.bms-circle):focus-visible>.bms-circle{outline:2px solid currentColor!important;outline-offset:2px!important}

/* The plant selector already has its rounded connection-state frame. */
.bms-nameplate .bms-plant-switcher>button:is(:hover,:focus,:focus-visible){outline:none!important;box-shadow:none!important;border:0!important}
.bms-nameplate:has(.bms-plant-switcher>button:focus-visible){outline:2px solid currentColor;outline-offset:3px}

/* Valid password fields: compact check inside the input, no visible status prose. */
.bms-auth-card .bms-password-field{display:block;position:relative;width:100%}
.bms-auth-card .bms-password-field input{box-sizing:border-box;width:100%;padding-right:44px}
.bms-auth-card .bms-password-field input[data-valid=false]{border:2px solid #cf4955!important;outline-color:#cf4955!important}
.bms-auth-card .bms-password-field input[data-valid=true]{border:2px solid #23965c!important;outline-color:#23965c!important}
.bms-auth-card .bms-password-valid{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#168348;pointer-events:none;line-height:0}
.bms-auth-card .bms-password-valid svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.bms-auth-card .bms-password-valid[hidden]{display:none}
.bms-auth-card .bms-password-field input::-webkit-credentials-auto-fill-button{margin-right:26px}
html:not([data-theme=light]) .bms-auth-card .bms-password-valid{color:#62d899}

/* One contrast pass for the full page, the update screen included (user request 2026-10-17:
   the contrast chosen inside applies on every surface, the reload screen too). */
html{filter:contrast(var(--bms-contrast,1))}

/* Audited light-theme contrast: scoped away from the approved update screen. */
:is(html[data-theme=light],:host([data-theme=light])){--bms-chart-isotherm:#b43b45}
.marketplace-release small{color:var(--ui-muted,#b9cfe5)}

.canvas-card{position:relative}
.bms-frame-loading{position:absolute;inset:56px 0 0;display:flex;align-items:center;justify-content:center;gap:16px;color:var(--bms-theme-ink,#fff);pointer-events:none}
.bms-frame-loading img{width:42px;height:42px;flex:none;animation:bms-frame-logo-turn 2.6s cubic-bezier(.2,.7,.3,1) infinite}
html[data-theme=light] .bms-frame-loading img{filter:brightness(0);opacity:.8}
@keyframes bms-frame-logo-turn{0%,25%{transform:rotate(0deg)}40%{transform:rotate(200deg)}50%,75%{transform:rotate(180deg)}90%{transform:rotate(380deg)}100%{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.bms-frame-loading img{animation:none}}

/* Connect HU/EN geometry; the selector lives exclusively inside the login card. */
.bms-login-screen .bms-auth-card{position:relative;padding-top:74px}
.bms-language-switcher{position:absolute;right:20px;top:16px;transform:scale(.8);transform-origin:top right;isolation:isolate;display:inline-flex;flex-shrink:0;height:44px;color:var(--bms-theme-ink,#fff);border-radius:999px;background:rgb(220 242 255 / 8%);box-shadow:inset 0 0 0 1px rgb(220 242 255 / 38%),inset 0 1px 0 rgb(255 255 255 / 10%)}
.bms-language-switcher::after{content:"";position:absolute;pointer-events:none;box-sizing:border-box;left:0;top:0;width:44px;height:44px;border:2px solid currentColor;border-radius:50%;transform:translateX(0);transition:transform 550ms cubic-bezier(.22,.7,.2,1)}
.bms-language-switcher[data-locale="en"]::after{transform:translateX(100%)}
.bms-language-switcher button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:12px;font-weight:700;cursor:pointer;box-shadow:none}
.bms-language-switcher button[aria-checked="false"]{opacity:.65}.bms-language-switcher button:hover{opacity:1}.bms-language-switcher button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.bms-language-switcher::after{transition:none}}
/* Authentication cards have their own ink and stronger shared button rules. */
.bms-auth-screen.bms-login-screen:has(#login):not(.bms-update-screen):not(.bms-connection-screen) .bms-auth-card{padding-top:76px}
.bms-auth-card .bms-language-switcher{color:var(--auth-ink,#123454);background:color-mix(in srgb,var(--auth-ink,#123454) 7%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--auth-ink,#123454) 35%,transparent)}
.bms-auth-card .bms-language-switcher button[role=radio]{border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:12px;font-weight:700;line-height:1;border-radius:50%}
.bms-auth-card .bms-contact-link{font:inherit;color:var(--auth-ink);padding:4px 0;min-height:44px;background:none!important;border:0!important;box-shadow:none!important;text-decoration:underline;text-underline-offset:3px;white-space:normal;line-height:1.5}
.bms-contact-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;box-sizing:border-box;overflow:auto}
.bms-contact-dialog::backdrop{background:#00152899;backdrop-filter:blur(4px)}
.bms-contact-dialog form{display:grid;gap:16px}.bms-contact-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.bms-contact-dialog h2{font-size:22px;margin:0}.bms-contact-dialog p{margin:0;line-height:1.5}.bms-contact-dialog label{display:grid;gap:6px}.bms-contact-dialog label[hidden]{display:none}.bms-contact-dialog textarea{resize:vertical;min-height:120px}.bms-contact-dialog input,.bms-contact-dialog textarea{width:100%;box-sizing:border-box;font-size:16px}.bms-contact-dialog [data-close]{width:40px;height:40px;padding:0;flex-shrink:0;border-radius:50%;font-size:22px}.bms-contact-dialog footer{display:flex;justify-content:flex-end}.bms-contact-dialog footer button{padding:10px 18px}.bms-contact-status:empty{display:none}
/* Office street framing: clear central space for the sign-in card. */
html[data-theme] .bms-auth-screen.bms-login-screen:not(.bms-update-screen) .bms-auth-glow{background-size:max(1280px,100%) auto;background-position:center 58%;opacity:.7;mask-image:linear-gradient(90deg,#000 20%,#0009 30%,transparent 43%,transparent 57%,#0009 70%,#000 80%)}
@media(max-width:700px){html[data-theme] .bms-auth-screen.bms-login-screen:not(.bms-update-screen) .bms-auth-glow{background-size:1100px auto;background-position:center 55%;opacity:.36;mask-image:linear-gradient(90deg,#000,transparent 25%,transparent 75%,#000)}}
/* Requested solid update card; background dots remain outside its rounded frame. */
html[data-theme] .bms-update-screen .bms-auth-card.bms-update-card{position:relative;z-index:1;isolation:isolate;background:#294f72!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.bms-contact-dialog [hidden]{display:none!important}
/* The approved update screen remains blue in every application theme. */
html[data-theme] .bms-auth-screen.bms-update-screen{background:#123c63!important}
/* Login street scene: show the full street, keep the card area calm. */
html[data-theme] .bms-auth-screen.bms-login-screen:not(.bms-update-screen) .bms-auth-glow{background-size:cover;background-position:center 70%;opacity:.95;mask-image:radial-gradient(ellipse 26% 40% at 50% 52%,transparent 55%,#000 100%);-webkit-mask-image:radial-gradient(ellipse 26% 40% at 50% 52%,transparent 55%,#000 100%)}

/* Projekt törlése a gépházválasztóban (csak adminisztrátornak jelenik meg). */
/* Grafikon jelmagyarázata: keret és árnyék nélkül (célzott szabály, az általános gombszabály specifikusságát nem emeli). */
.bms-editor-body .bms-trend-legend button:not(#bms-none){background:none!important;border:0!important;box-shadow:none!important}
/* Világos téma: a belépő oldal alcíme olvasható kontraszttal a világoskék háttéren (2026-10-17). */
html[data-theme=light] .bms-auth-screen:not(.bms-update-screen) .bms-auth-tagline{color:#1d3a57!important}
/* Belépő oldal első betöltése (2026-10-17): amíg a mezők a Safari jelszókezelője miatt még nincsenek a lapon
   (aria-busy), a kártya előre lefoglalja a helyüket, így nem ugrik a mérete; a mezők finoman jelennek meg. */
.bms-auth-card #login[aria-busy=true]{min-height:232px}
.bms-auth-card #login:not([aria-busy])>*{animation:bms-login-fields-in .22s ease-out both}
@keyframes bms-login-fields-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.bms-auth-card #login:not([aria-busy])>*{animation:none}}

/* ── Belépőoldal: Connect-élmény BMS-színekkel (2026-10-25, felhasználói kérés) ──
 * Csak kék témában, csak a belépő/regisztráció/jelszó képernyő (a jóváhagyott frissítőképernyő .bms-update-screen kimarad).
 * Sötét üvegkártya a BMS-kékkel, fehér szöveg, nagybetűs mezőcímkék, 44 px-es mezők, telített kék fő gomb;
 * a hálózatos háttér megmarad, de halványabb, hogy a kártya legyen a fókusz. */
/* Meghívó / jelszó-visszaállítás (2026-10-27): a kék téma fehér betűs kártyája a #login-on kívül az
 * #account-form és a kész-üzenet (.bms-auth-links) nézetére is vonatkozik — különben a világos kártyához
 * való sötét betűk maradtak a kék kártyán (a :has() a legspecifikusabb argumentum, az #id szerint számít). */
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen):has(#login,#account-form,.bms-auth-links) .bms-auth-card{--auth-card:linear-gradient(180deg,rgb(255 255 255 / 9%),transparent 110px),linear-gradient(180deg,#205c8dee,#16446ff2);--auth-input:rgb(5 24 44 / 45%);--auth-ink:#fff;--auth-muted:#d5e4f1;--auth-placeholder:#9fbfdc;--auth-edge:rgb(255 255 255 / 17%);--auth-focus:#6cc2ff}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen){--auth-card:linear-gradient(180deg,rgb(255 255 255 / 9%),transparent 110px),linear-gradient(180deg,#205c8dee,#16446ff2);--auth-input:rgb(5 24 44 / 45%);--auth-ink:#fff;--auth-muted:#d5e4f1;--auth-placeholder:#9fbfdc;--auth-edge:rgb(255 255 255 / 17%);--auth-focus:#6cc2ff;background:radial-gradient(ellipse at 50% 38%,#1f5d8f66,transparent 60%),linear-gradient(180deg,#0f3557,#0a2640)}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-glow{opacity:.42;filter:saturate(.8)}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-tagline{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#d5e4f1}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card{color:#fff;border:1px solid rgb(255 255 255 / 14%);border-radius:18px;background:linear-gradient(180deg,rgb(255 255 255 / 9%),transparent 110px),linear-gradient(180deg,#205c8dee,#16446ff2);box-shadow:0 28px 60px -22px rgb(0 8 20 / 85%),inset 0 1px rgb(255 255 255 / 12%);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card :is(h2,header h2){font-size:24px;font-weight:700;color:#fff}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card header p{font-size:13px;color:#d5e4f1}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#d5e4f1}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card input{height:44px;border:1px solid rgb(255 255 255 / 17%);border-radius:10px;background:rgb(5 24 44 / 45%);color:#fff;font-size:15px;text-transform:none;letter-spacing:0;box-shadow:none}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card input::placeholder{color:#9fbfdc}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card input:focus-visible{outline:0;border-color:#6cc2ff;box-shadow:0 0 0 3px rgb(108 194 255 / 30%)}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card .primary{height:44px;border:0;border-radius:10px;background:#1d8fe1;color:#fff;font-size:14px;font-weight:600;box-shadow:0 8px 20px -10px #1d8fe1}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card .primary:hover{background:#2b9cf0}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card :is(footer,.bms-contact-link,.bms-auth-version){color:#c6d9ea}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card hr,html[data-theme=blue] .bms-login-screen:not(.bms-update-screen) .bms-auth-card .bms-auth-links{border-color:rgb(255 255 255 / 12%)}

/* Osztott belépő (2026-10-25): bal oldalt márka és 3 előny, jobb oldalt a kártya; 1024 px alatt egy oszlop.
 * A .bms-login-split osztályt a login-enhance.js teszi fel. Színek az --auth-* tokenekből (minden téma). */
@media(min-width:1024px){
 .bms-login-split .bms-auth-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(380px,440px)!important;align-items:center;gap:clamp(48px,7vw,120px)!important;width:min(1180px,calc(100% - 64px))!important;max-width:none!important;margin-inline:auto}
 .bms-login-split .bms-auth-brand{display:grid!important;justify-items:start;text-align:left;gap:0;margin:0}
 .bms-login-split .bms-auth-identity{display:grid;justify-items:start;gap:14px}
 .bms-login-split .bms-auth-identity img{height:46px;width:auto}
 .bms-login-split .bms-auth-emblem{display:none!important}
 .bms-login-split .bms-auth-message{display:block!important;margin-top:36px;text-align:left}
 .bms-login-split .bms-auth-message h1{display:block!important;margin:0;font-size:clamp(34px,3.4vw,46px);line-height:1.1;font-weight:800;letter-spacing:-.02em;color:var(--auth-ink,#fff)}
 .bms-login-split .bms-auth-promise{display:block!important;margin:12px 0 0;font-size:17px;color:var(--auth-muted,#d5e4f1)}
 .bms-login-split .bms-auth-benefits{display:grid}
}
.bms-auth-benefits{display:none;gap:14px;margin:36px 0 0;padding:0;list-style:none}
.bms-auth-benefits li{display:flex;align-items:center;gap:14px}
.bms-auth-benefit-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;color:#fff;box-shadow:inset 0 0 0 1px rgb(255 255 255 / 24%);background:rgb(255 255 255 / 5%)}
.bms-auth-benefits b{display:block;font-size:15px;font-weight:700;color:var(--auth-ink,#fff)}
.bms-auth-benefits small{display:block;margin-top:2px;font-size:13px;color:var(--auth-muted,#d5e4f1)}
html[data-theme=light] .bms-auth-benefit-icon{color:var(--auth-ink);box-shadow:inset 0 0 0 1px var(--auth-edge)}

/* Jelszó megjelenítése, Caps Lock, „Maradjak bejelentkezve”, rázás hibánál. */
.bms-password-field{position:relative;display:block}
.bms-password-field input{width:100%;padding-right:46px!important;box-sizing:border-box}
.bms-password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:38px;height:38px;min-height:0!important;padding:0!important;border:0!important;border-radius:8px;background:transparent!important;color:var(--auth-muted,#d5e4f1);cursor:pointer;box-shadow:none!important}
.bms-password-toggle:hover{color:var(--auth-ink,#fff);background:rgb(255 255 255 / 8%)!important}
.bms-password-toggle:focus-visible{outline:2px solid var(--auth-focus,#6cc2ff);outline-offset:0}
.bms-caps-hint{display:flex;align-items:center;gap:6px;margin:-12px 0 0;font-size:12px;font-weight:600;color:#ffc25c}
.bms-caps-hint[hidden]{display:none}
html[data-theme=light] .bms-caps-hint{color:#866009}
.bms-remember{display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important;font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:var(--auth-ink,#fff)!important;cursor:pointer;user-select:none}
.bms-remember input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.bms-remember-switch{position:relative;flex:none;width:36px;height:20px;border-radius:999px;background:rgb(255 255 255 / 18%);box-shadow:inset 0 0 0 1px var(--auth-edge,rgb(255 255 255 / 17%));transition:background-color .15s}
.bms-remember-switch::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s}
.bms-remember input:checked+.bms-remember-switch{background:#1d8fe1}
.bms-remember input:checked+.bms-remember-switch::after{transform:translateX(16px)}
.bms-remember input:focus-visible+.bms-remember-switch{outline:2px solid var(--auth-focus,#6cc2ff);outline-offset:2px}
.bms-auth-card .error:not(:empty){display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;background:rgb(255 125 138 / 14%);box-shadow:inset 0 0 0 1px rgb(255 125 138 / 45%);color:#ffd5da;font-weight:600}
html[data-theme=light] .bms-auth-card .error:not(:empty){color:#8a1f30;background:#ad344914}
@keyframes bms-auth-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(2px)}}
.bms-auth-card.bms-auth-shake{animation:bms-auth-shake .38s ease-in-out}
@media(prefers-reduced-motion:reduce){.bms-auth-card.bms-auth-shake{animation:none}}

/* Karbantartási sáv a Connect kidolgozásával: a sárga marad, halványabb alsó vonal, óra ikon, félkövér, kerek bezáró. */
.bms-maintenance-notice-surface{gap:8px;border-bottom:1px solid #f0cc5a;font-weight:600;color:#0f172a}
.bms-maintenance-notice-surface::before{content:"";flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat}
.bms-maintenance-notice .bms-maintenance-notice-surface>button{width:28px;height:28px;border-radius:50%;color:#0f172acc;transition:background-color .15s}
.bms-maintenance-notice .bms-maintenance-notice-surface>button:hover{background:rgb(0 0 0 / 10%);color:#0f172a}
/* Osztott nézetben a háttér a Connect belépőjéhez hasonlóan elmosott és sötétített: hangulat, nem tartalom. */
@media(min-width:1024px){
 .bms-login-split .bms-auth-glow{opacity:.55!important;filter:blur(3px) brightness(.75)!important}
 .bms-login-split .bms-auth-equipment{opacity:.4}
 .bms-login-split .bms-auth-identity{width:auto}
 .bms-login-split .bms-auth-identity>img{margin:0;width:230px}
 .bms-login-split .bms-auth-identity>.bms-auth-tagline{margin:0}
}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen):has(#login,#account-form,.bms-auth-links) .bms-auth-card .primary{border:0!important;background:#1d8fe1!important;color:#fff!important;box-shadow:0 10px 22px -12px #1d8fe1!important}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen):has(#login,#account-form,.bms-auth-links) .bms-auth-card .primary:hover{background:#2b9cf0!important}
/* Nyelv- és színválasztó a belépőkártya jobb felső sarkában, a Connect fejléc-vezérlőjének receptjével:
 * üveg pirula halvány belső vonallal, kerek opciók, a kijelölést csúszó gyűrű jelzi. */
.bms-auth-prefs{position:absolute;top:16px;right:16px;z-index:2;display:flex;align-items:center;gap:8px;--pref-size:34px}
.bms-auth-prefs .bms-language-switcher,.bms-theme-switcher{position:relative!important;inset:auto!important;transform:none!important;isolation:isolate;display:inline-flex;flex-shrink:0;height:var(--pref-size)!important;padding:0!important;border:0!important;border-radius:999px;color:var(--auth-ink,#fff);background:color-mix(in srgb,var(--auth-ink,#fff) 7%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--auth-ink,#fff) 32%,transparent),inset 0 1px 0 rgb(255 255 255 / 10%)}
.bms-auth-prefs .bms-language-switcher::after,.bms-theme-switcher::after{content:"";position:absolute;pointer-events:none;box-sizing:border-box;left:0;top:0;width:var(--pref-size);height:var(--pref-size);border:2px solid currentColor;border-radius:50%;transition:transform 550ms cubic-bezier(.22,.7,.2,1)}
.bms-auth-prefs .bms-language-switcher[data-locale="en"]::after{transform:translateX(100%)}
.bms-theme-switcher[data-current="black"]::after{transform:translateX(100%)}
.bms-theme-switcher[data-current="light"]::after{transform:translateX(200%)}
#app .bms-auth-prefs :is(.bms-language-switcher,.bms-theme-switcher) button{display:flex!important;align-items:center;justify-content:center;width:var(--pref-size)!important;min-width:var(--pref-size)!important;height:var(--pref-size)!important;min-height:var(--pref-size)!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font-size:11px!important;font-weight:700!important;letter-spacing:.02em;cursor:pointer;outline:0}
#app .bms-auth-prefs :is(.bms-language-switcher,.bms-theme-switcher) button[aria-checked="false"]{opacity:.65}
#app .bms-auth-prefs :is(.bms-language-switcher,.bms-theme-switcher) button:hover{opacity:1}
#app .bms-auth-prefs :is(.bms-language-switcher,.bms-theme-switcher) button:focus-visible{outline:2px solid var(--auth-focus,#6cc2ff);outline-offset:2px}
.bms-theme-switcher i{display:block;width:14px;height:14px;border-radius:50%;box-shadow:inset 0 0 0 1px rgb(255 255 255 / 45%)}
.bms-theme-switcher [data-theme-option=blue] i{background:linear-gradient(135deg,#2f86d0,#123c63)}
.bms-theme-switcher [data-theme-option=black] i{background:linear-gradient(135deg,#3a4350,#0b0f14)}
.bms-theme-switcher [data-theme-option=light] i{background:linear-gradient(135deg,#ffffff,#cfe0ee);box-shadow:inset 0 0 0 1px #45678666}
@media(prefers-reduced-motion:reduce){.bms-auth-prefs :is(.bms-language-switcher,.bms-theme-switcher)::after{transition:none}}
/* A teljes témaváltás körkörösen terül szét (login-enhance.js); a régi kép nem halványul. */
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
/* Szem gomb: keret és háttér nélkül, csak az ikon. */
#app .bms-auth-card .bms-password-field .bms-password-toggle{border:0!important;background:transparent!important;box-shadow:none!important;outline:0}
#app .bms-auth-card .bms-password-field .bms-password-toggle:hover{background:transparent!important;color:var(--auth-ink,#fff)}
#app .bms-auth-card .bms-password-field .bms-password-toggle:focus-visible{outline:2px solid var(--auth-focus,#6cc2ff);outline-offset:-4px}
/* Hibaüzenet olvasható színnel minden témában. */
.bms-login-screen .bms-auth-card .error:not(:empty){color:#ffe1e5!important}
html[data-theme=light] .bms-login-screen .bms-auth-card .error:not(:empty){color:#8a1f30!important}
/* Formai egység minden témában (a színek témánként külön maradnak). */
#app .bms-login-split .bms-auth-tagline{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
#app .bms-login-split .bms-auth-card label:not(.bms-remember){font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
#app .bms-login-split .bms-auth-card input:not([type=checkbox]){height:44px;border-radius:10px;font-size:15px;text-transform:none;letter-spacing:0}
#app .bms-login-split .bms-auth-card .primary{height:44px;border-radius:10px;font-weight:600}
#app .bms-login-split .bms-auth-card h2{font-size:24px;font-weight:700}
html[data-theme=light] .bms-remember-switch{background:#45678633}
html[data-theme=light] .bms-login-split .bms-auth-glow{opacity:.28!important;filter:blur(3px) saturate(.6)!important}
html[data-theme=light] .bms-login-split .bms-auth-equipment{opacity:.18}
html[data-theme=light] .bms-auth-prefs :is(.bms-language-switcher,.bms-theme-switcher){box-shadow:inset 0 0 0 1px #45678659,inset 0 1px 0 #fff}
/* Színválasztó finomítás: 18 px-es minták átlós osztással (háttér + kártya = mini előnézet), finom fény a kijelöltön. */
#app .bms-theme-switcher i{width:18px;height:18px;transition:transform .25s cubic-bezier(.22,.7,.2,1),box-shadow .25s}
.bms-theme-switcher [data-theme-option=blue] i{background:linear-gradient(135deg,#0f3557 0 50%,#2a7cc0 50% 100%);box-shadow:inset 0 0 0 1px rgb(255 255 255 / 40%)}
.bms-theme-switcher [data-theme-option=black] i{background:linear-gradient(135deg,#080b10 0 50%,#2b333d 50% 100%);box-shadow:inset 0 0 0 1px rgb(255 255 255 / 40%)}
.bms-theme-switcher [data-theme-option=light] i{background:linear-gradient(135deg,#dfeaf4 0 50%,#ffffff 50% 100%);box-shadow:inset 0 0 0 1px #45678680}
#app .bms-theme-switcher button:hover i{transform:scale(1.12)}
#app .bms-theme-switcher button[aria-checked=true] i{transform:scale(1.08)}
.bms-theme-switcher [data-theme-option=blue][aria-checked=true] i{box-shadow:inset 0 0 0 1px rgb(255 255 255 / 55%),0 0 10px #2a7cc0aa}
.bms-theme-switcher [data-theme-option=black][aria-checked=true] i{box-shadow:inset 0 0 0 1px rgb(255 255 255 / 55%),0 0 10px #00000099}
.bms-theme-switcher [data-theme-option=light][aria-checked=true] i{box-shadow:inset 0 0 0 1px #45678699,0 0 10px #ffffffcc}
@media(prefers-reduced-motion:reduce){#app .bms-theme-switcher i{transition:none}}
/* Logó alatti elválasztó csík osztott nézetben: balra zárva, világos témában sötétebb kékkel, hogy látszódjon. */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-tagline{position:relative;padding-top:16px}
 #app .bms-login-split .bms-auth-tagline::before{left:0;transform:none;width:180px}
 #app .bms-login-split .bms-auth-message{background:none}
}
html[data-theme=light] #app .bms-login-split .bms-auth-tagline::before{background:linear-gradient(90deg,#2d5f8a40,#2d5f8acc 50%,#2d5f8a40)}
html[data-theme=light] #app .bms-login-split .bms-auth-tagline{color:#294a68}
/* Színminta felirata rámutatáskor / billentyűs fókusznál, kis kártyacímkeként a minta alatt. */
#app .bms-theme-switcher button{position:relative}
#app .bms-theme-switcher button::after{content:attr(aria-label);position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%,-4px);padding:4px 8px;border-radius:8px;background:#0b2238;color:#fff;font-size:11px;font-weight:600;letter-spacing:0;white-space:nowrap;pointer-events:none;opacity:0;box-shadow:0 8px 18px -8px #000a;transition:opacity .15s,transform .15s}
#app .bms-theme-switcher button:is(:hover,:focus-visible)::after{opacity:1;transform:translate(-50%,0)}
html[data-theme=light] #app .bms-theme-switcher button::after{background:#123454}
#app .bms-auth-prefs :is(.bms-language-switcher,.bms-theme-switcher) button:is(:hover,:active,:focus){outline:0!important}
#app .bms-auth-prefs :is(.bms-language-switcher,.bms-theme-switcher) button:focus-visible{outline:2px solid var(--auth-focus,#6cc2ff)!important;outline-offset:2px}
#app .bms-auth-card .bms-password-field .bms-password-toggle:is(:hover,:active,:focus){outline:0!important}
#app .bms-auth-card .bms-password-field .bms-password-toggle:focus-visible{outline:2px solid var(--auth-focus,#6cc2ff)!important;outline-offset:-4px}
/* Belépő háttér: a betöltőképernyő pontrácsa; a fénysáv csak a felület betöltésekor söpör végig (felhasználói kérés, 2026-10-25).
 * A pontok egy rétegben, a fénysáv egy második, maszkolt rétegben; a kártya és a szöveg fölöttük marad. */
#app .bms-login-split{isolation:isolate}
#app .bms-login-split::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:radial-gradient(circle,#86c4ff 1px,transparent 1px);background-size:20px 20px;opacity:.16;mask-image:none;-webkit-mask-image:none}
#app .bms-login-split::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:radial-gradient(circle,#dbe6f3 1.3px,transparent 1.8px);background-size:20px 20px;mask-image:linear-gradient(105deg,transparent 5%,#000 50%,transparent 95%);-webkit-mask-image:linear-gradient(105deg,transparent 5%,#000 50%,transparent 95%);mask-size:45% 100%;-webkit-mask-size:45% 100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;opacity:0}
/* A fénysáv csak belépéskor fut, amíg a felület betölt (a .bms-login-busy-t a login-enhance.js teszi fel). */
#app .bms-login-split.bms-login-busy::after{animation:bms-boot-dot-sweep 1.5s ease-in-out infinite}
#app .bms-login-split .bms-auth-layout{position:relative;z-index:1}
html[data-theme=light] #app .bms-login-split::before{background-image:radial-gradient(circle,#2d5f8a 1px,transparent 1px);opacity:.14}
html[data-theme=light] #app .bms-login-split::after{background-image:radial-gradient(circle,#2d5f8a 1.3px,transparent 1.8px)}
@media(prefers-reduced-motion:reduce){#app .bms-login-split::after{animation:none;opacity:0}}
/* Osztott belépőn nincs hálózatos épületrajz és mozgó pont (elmosva nem értelmezhető): tiszta színátmenet + álló pontrács. */
#app .bms-login-split :is(.bms-auth-equipment,.bms-auth-center-equipment){display:none!important}
#app .bms-login-split::before{opacity:.22}
html[data-theme=light] #app .bms-login-split::before{opacity:.16}
/* Belépő háttér: sok nagy, üzemeltetett épület városképe; mindegyikből adat fut be a BMS-be (login-dataflow.svg). */
#app .bms-login-split .bms-auth-glow{display:block!important;position:absolute;inset:0;z-index:0;opacity:1!important;filter:none!important;animation:none!important;transform:none!important;mask-image:none!important;-webkit-mask-image:none!important;background:url('/login-dataflow.svg') center bottom / cover no-repeat!important}
html[data-theme=light] #app .bms-login-split .bms-auth-glow{filter:invert(1) hue-rotate(180deg) brightness(.85) contrast(.9)!important;opacity:.55!important}
html[data-theme=black] #app .bms-login-split .bms-auth-glow{filter:saturate(.35)!important;opacity:.8!important}
/* Adatfolyam-réteg (login-enhance.js): csak transform/opacity animáció, a kártya nem mos el (nincs újrarajzolás). */
.bms-login-flow{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;contain:strict}
.bms-flow-dot{position:absolute;left:0;top:0;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#e3f3ff;box-shadow:0 0 8px #9fd6ff;opacity:0;will-change:transform,opacity}
.bms-flow-chip{position:absolute;left:0;top:0;translate:-50% -50%;display:flex;align-items:center;gap:7px;padding:6px 12px 6px 10px;border-radius:999px;background:#0d2f4fd9;box-shadow:inset 0 0 0 1px #9fcdf073;color:#e6f3ff;font:600 12.5px/1 Nunito,Arial,sans-serif;white-space:nowrap;opacity:0;will-change:transform,opacity}
.bms-flow-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:#6cc2ff}
html[data-theme=light] .bms-flow-dot{background:#2d5f8a;box-shadow:0 0 6px #2d5f8a66}
html[data-theme=light] .bms-flow-chip{background:#ffffffe6;color:#123454;box-shadow:inset 0 0 0 1px #45678659,0 6px 14px -8px #23415e66}
html[data-theme=light] .bms-flow-chip::before{background:#1d8fe1}
#app .bms-login-split .bms-auth-card{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Bal oldali márkablokk tudatos rendje: logó → (térköz) → kék csíkos szlogensor → nagy cím → alcím → előnyök panelben. */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-brand{display:flex!important;flex-direction:column;align-items:flex-start;max-width:520px}
 #app .bms-login-split :is(.bms-auth-identity,.bms-auth-message){display:contents!important}
 #app .bms-login-split .bms-auth-identity>img{order:1;width:220px;margin:0 0 56px}
 #app .bms-login-split .bms-auth-tagline{order:2;display:flex;align-items:center;gap:12px;padding:0;margin:0 0 14px;color:#8fd0ff}
 #app .bms-login-split .bms-auth-tagline::before{position:static;display:block;flex:none;width:28px;height:2px;transform:none;border-radius:2px;background:currentColor}
 #app .bms-login-split .bms-auth-message h1{order:3;margin:0}
 #app .bms-login-split .bms-auth-promise{order:4;margin:14px 0 0;font-size:18px;font-weight:600}
 #app .bms-login-split .bms-auth-benefits{order:5;align-self:stretch;gap:0;margin:40px 0 0;padding:6px 18px;border-radius:16px;background:rgb(255 255 255 / 4%);box-shadow:inset 0 0 0 1px rgb(255 255 255 / 9%)}
 #app .bms-login-split .bms-auth-benefits li{padding:14px 0}
 #app .bms-login-split .bms-auth-benefits li+li{border-top:1px solid rgb(255 255 255 / 9%)}
}
html[data-theme=light] #app .bms-login-split .bms-auth-tagline{color:#1d6fb8}
html[data-theme=light] #app .bms-login-split .bms-auth-benefits{background:#ffffff8c;box-shadow:inset 0 0 0 1px #4567862e}
html[data-theme=light] #app .bms-login-split .bms-auth-benefits li+li{border-top-color:#4567862e}
@media(min-width:1024px){#app .bms-login-split .bms-auth-brand{max-width:620px}#app .bms-login-split .bms-auth-message h1{font-size:clamp(32px,3.1vw,44px);white-space:nowrap}}
@media(min-width:1024px) and (max-width:1200px){#app .bms-login-split .bms-auth-message h1{white-space:normal}}
@media(min-width:1024px){#app .bms-login-split .bms-auth-identity>img{width:300px!important;height:auto!important;max-width:100%}}
/* Logó alatti rész a korábbi formában: hosszú, halványuló csík, alatta a nagybetűs felirat; utána térköz a címig. */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-identity>img{margin:0 0 18px!important}
 #app .bms-login-split .bms-auth-tagline{display:block;position:relative;padding-top:16px;margin:0 0 52px;color:#d5e4f1}
 #app .bms-login-split .bms-auth-tagline::before{position:absolute;left:0;top:0;width:220px;height:2px;border-radius:2px;background:linear-gradient(90deg,#a6d2f5cc,#a6d2f540 70%,transparent)}
}
html[data-theme=light] #app .bms-login-split .bms-auth-tagline{color:#294a68}
html[data-theme=light] #app .bms-login-split .bms-auth-tagline::before{background:linear-gradient(90deg,#2d5f8acc,#2d5f8a40 70%,transparent)}
/* Logó nagyban a bal felső sarokban (oldalfejléc), alatta a csík és a felirat; a bal oszlop bal széléhez igazítva. */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-identity{display:block!important;position:fixed;z-index:2;top:72px;left:calc((100vw - min(1180px,100vw - 64px))/2);width:auto;padding:0;background:none}
 #app .bms-login-split .bms-auth-identity>img{display:block;width:340px!important;margin:0 0 20px!important}
 #app .bms-login-split .bms-auth-tagline{margin:0!important;font-size:13px}
 #app .bms-login-split .bms-auth-tagline::before{width:260px}
 #app .bms-login-split .bms-auth-layout{padding-top:150px}
}
@media(min-width:1024px) and (max-height:760px){
 #app .bms-login-split .bms-auth-identity{top:56px}
 #app .bms-login-split .bms-auth-identity>img{width:260px!important}
 #app .bms-login-split .bms-auth-layout{padding-top:120px}
}
/* A tartalom a képernyő felső részén, hogy az előnypanel ne lógjon a városkép-animációba; a logó rögzítése miatt
 * a rács nem kap transform-animációt (a beúszás a kártyán marad). */
@media(min-width:1024px){
 #app .bms-login-split{align-items:flex-start!important}
 #app .bms-login-split .bms-auth-layout{animation:none!important;transform:none!important;align-items:start!important;padding-top:0!important;margin-top:clamp(190px,24vh,230px)!important}
 #app .bms-login-split .bms-auth-card{animation:bms-login-enter .7s ease-out both}
 #app .bms-login-split .bms-auth-benefits{margin-top:32px}
 #app .bms-login-split .bms-auth-benefits li{padding:11px 0}
}
/* Előnypanel: az eredeti halvány üveges tónus, de átlátszatlan (a háttér vonalai nem látszanak át rajta). */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-benefits{background:linear-gradient(rgb(255 255 255 / 5%),rgb(255 255 255 / 5%)),#0f3354f5;box-shadow:inset 0 0 0 1px rgb(255 255 255 / 10%)}
}
html[data-theme=black] #app .bms-login-split .bms-auth-benefits{background:linear-gradient(#ffffff0d,#ffffff0d),#0b0f14f5}
html[data-theme=light] #app .bms-login-split .bms-auth-benefits{background:#f4f8fcf5;box-shadow:inset 0 0 0 1px #4567862e}
/* Bal és jobb oldal összhangban: közös függőleges középvonal, a panel a kártya kidolgozását kapja. */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-layout{align-items:center!important}
 #app .bms-login-split .bms-auth-brand{align-self:center}
 #app .bms-login-split .bms-auth-benefits{border-radius:18px;padding:10px 22px;background:linear-gradient(180deg,rgb(255 255 255 / 9%),transparent 110px),linear-gradient(rgb(255 255 255 / 5%),rgb(255 255 255 / 5%)),#0f3354f5;box-shadow:inset 0 0 0 1px rgb(255 255 255 / 14%),inset 0 1px rgb(255 255 255 / 12%),0 28px 60px -22px rgb(0 8 20 / 85%)}
 #app .bms-login-split .bms-auth-benefits li{padding:16px 0}
}
html[data-theme=black] #app .bms-login-split .bms-auth-benefits{background:linear-gradient(180deg,#ffffff0f,transparent 110px),#0b0f14f5}
html[data-theme=light] #app .bms-login-split .bms-auth-benefits{background:linear-gradient(180deg,#fff,transparent 110px),#f4f8fcf5;box-shadow:inset 0 0 0 1px #4567862e,0 22px 44px -22px #23415e55}
/* A városkép a szélességhez méreteződik és alulra igazodik, így az épületek az alsó sávban maradnak. */
#app .bms-login-split .bms-auth-glow{background-size:100% auto!important;background-position:center bottom!important}
/* Háttér: tisztán kék (a korábbi teal folt nélkül, felhasználói kérés). */
html[data-theme=blue] #app .bms-login-screen.bms-login-split{background:radial-gradient(ellipse at 55% 30%,#1b5285 0,transparent 60%),linear-gradient(180deg,#0f3459,#0a2542)!important}
html[data-theme=black] #app .bms-login-screen.bms-login-split{background:radial-gradient(ellipse at 55% 30%,#1a222c 0,transparent 60%),linear-gradient(180deg,#0d1218,#080b10)!important}
/* Szimmetria: a bal oszlop a kártya teljes magasságát kapja; cím a kártya tetejével, az előnypanel alja a kártya aljával egy vonalban. */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-layout{align-items:stretch!important}
 #app .bms-login-split .bms-auth-brand{align-self:stretch!important;justify-content:flex-start}
 #app .bms-login-split .bms-auth-message h1{margin-top:28px!important}
 #app .bms-login-split .bms-auth-benefits{margin-top:auto!important}
 #app .bms-login-split .bms-auth-card{align-self:stretch}
}
/* Tükrös elrendezés: a bal oldal is panel, a kártyával azonos magassággal és kidolgozással; tartalma középre rendezve. */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-brand{justify-content:center!important;padding:44px 44px;border-radius:18px;background:linear-gradient(180deg,rgb(255 255 255 / 9%),transparent 110px),linear-gradient(rgb(255 255 255 / 5%),rgb(255 255 255 / 5%)),#0f3354f5;box-shadow:inset 0 0 0 1px rgb(255 255 255 / 14%),inset 0 1px rgb(255 255 255 / 12%),0 28px 60px -22px rgb(0 8 20 / 85%);max-width:none!important}
 #app .bms-login-split .bms-auth-message h1{margin-top:0!important}
 #app .bms-login-split .bms-auth-benefits{margin-top:32px!important;padding:8px 0 0!important;border-radius:0;background:none!important;box-shadow:none!important;border-top:1px solid rgb(255 255 255 / 12%)}
 #app .bms-login-split .bms-auth-benefits li{padding:14px 0}
}
html[data-theme=black] #app .bms-login-split .bms-auth-brand{background:linear-gradient(180deg,#ffffff0f,transparent 110px),#0b0f14f5}
html[data-theme=light] #app .bms-login-split .bms-auth-brand{background:linear-gradient(180deg,#fff,transparent 110px),#f4f8fcf5;box-shadow:inset 0 0 0 1px #4567862e,0 22px 44px -22px #23415e55}
html[data-theme=light] #app .bms-login-split .bms-auth-benefits{border-top-color:#4567862e}
/* Tömörebb kártya és feljebb álló tartalom, hogy az alsó harmadban látszódjon a városkép és az adatfolyam. */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-card{padding:62px 28px 22px!important}
 #app .bms-login-split .bms-auth-card form{margin-top:20px!important;gap:14px!important}
 #app .bms-login-split .bms-auth-card>footer{margin-top:14px!important}
 #app .bms-login-split .bms-auth-card>.bms-auth-links{margin-top:12px!important}
 #app .bms-login-split .bms-auth-card>.bms-auth-version{margin-top:14px!important}
 #app .bms-login-split .bms-caps-hint{margin-top:-6px}
 #app .bms-login-split .bms-auth-layout{margin-top:200px!important}
 #app .bms-login-split .bms-auth-brand{padding:36px 40px}
}
/* Az adatvonalakat a login-enhance.js rajzolja a kártya aljáig (a kártya tényleges helyéhez igazítva). */
.bms-login-flow svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.bms-login-flow svg path{fill:none;stroke:#8cc8f5;stroke-width:1.1;opacity:.18}
html[data-theme=light] .bms-login-flow svg path{stroke:#2d5f8a;opacity:.2}
/* Két egyforma panel: 440 px széles, azonos magas, középre igazítva; a logó a bal panel szélével egy vonalban. */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-layout{grid-template-columns:440px 440px!important;justify-content:center;gap:48px!important;width:auto!important}
 #app .bms-login-split .bms-auth-brand{padding:36px 36px!important}
 #app .bms-login-split .bms-auth-message h1{white-space:normal!important;font-size:36px!important;line-height:1.15}
 #app .bms-login-split .bms-auth-promise{font-size:16px}
 #app .bms-login-split .bms-auth-identity{left:calc(50vw - 464px)!important}
}
@media(min-width:1024px){#app .bms-login-split .bms-auth-layout{margin-top:240px!important}}
@media(min-width:1024px) and (max-height:760px){#app .bms-login-split .bms-auth-layout{margin-top:200px!important}}
/* Bal oldal panel nélkül: csak szöveg és ikonok (felhasználói kérés); a kártyával közös középvonalon. */
@media(min-width:1024px){
 html #app .bms-login-split .bms-auth-brand{padding:0!important;background:none!important;box-shadow:none!important;border-radius:0;justify-content:center!important}
 html #app .bms-login-split .bms-auth-benefits{border-top:0!important;margin-top:36px!important;padding:0!important;gap:20px!important}
 html #app .bms-login-split .bms-auth-benefits li{padding:0!important;border:0!important}
 #app .bms-login-split .bms-auth-message h1{font-size:40px!important}
}
/* Bal oldal igényes tipográfiája: kiegyensúlyozott cím, nyugodt alcím, egyenletes ritmusú előnylista. */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-message h1{font-size:46px!important;line-height:1.08!important;font-weight:800;letter-spacing:-.025em;text-wrap:balance}
 #app .bms-login-split .bms-auth-promise{margin-top:16px!important;font-size:17px!important;font-weight:500!important;line-height:1.5;color:#c9dcec!important}
 html #app .bms-login-split .bms-auth-benefits{margin-top:44px!important;gap:24px!important}
 #app .bms-login-split .bms-auth-benefits li{gap:16px;align-items:center}
 #app .bms-login-split .bms-auth-benefit-icon{width:46px;height:46px;background:rgb(255 255 255 / 6%);box-shadow:inset 0 0 0 1px rgb(255 255 255 / 18%)}
 #app .bms-login-split .bms-auth-benefit-icon svg{width:20px;height:20px}
 #app .bms-login-split .bms-auth-benefits b{font-size:16px;font-weight:700;letter-spacing:-.005em}
 #app .bms-login-split .bms-auth-benefits small{margin-top:3px;font-size:14px;line-height:1.45;color:#b9cfe2}
}
html[data-theme=light] #app .bms-login-split .bms-auth-promise{color:#3b5b78!important}
html[data-theme=light] #app .bms-login-split .bms-auth-benefits small{color:#4a6782}
html[data-theme=light] #app .bms-login-split .bms-auth-benefit-icon{background:#ffffffb3;box-shadow:inset 0 0 0 1px #45678640}
/* Szellősebb: nagyobb rés a két oszlop között, a belépőkártya jobbra; a logó a bal oszlop szélével egy vonalban. */
@media(min-width:1024px){
 #app .bms-login-split{--split-gap:clamp(96px,11vw,200px);--split-left:480px;--split-card:440px}
 #app .bms-login-split .bms-auth-layout{grid-template-columns:var(--split-left) var(--split-card)!important;gap:var(--split-gap)!important}
 #app .bms-login-split .bms-auth-identity{left:calc(50vw - (var(--split-left) + var(--split-gap) + var(--split-card)) / 2)!important}
}
@media(min-width:1024px) and (max-width:1180px){#app .bms-login-split{--split-left:400px;--split-gap:64px}}
/* Egyenletes térelosztás: bal szél – szöveg – kártya – jobb szél között azonos távolság (space-evenly). */
@media(min-width:1024px){
 #app .bms-login-split .bms-auth-layout{width:100%!important;max-width:none!important;gap:0!important;justify-content:space-evenly!important;margin-inline:0!important}
 #app .bms-login-split .bms-auth-identity{left:calc((100vw - var(--split-left) - var(--split-card)) / 3)!important}
}
@media(min-width:1024px){#app .bms-login-split{padding-left:0!important;padding-right:0!important}}
/* ── Letisztított belépő (2026-10-25): kevesebb elem, több levegő ── */
#app .bms-login-split > .bms-auth-prefs{position:fixed;top:60px;right:32px;z-index:3}
#app .bms-login-split .bms-auth-card{padding:40px 36px 32px!important}
#app .bms-login-split .bms-auth-card form{gap:18px!important;margin-top:28px!important}
#app .bms-login-split .bms-auth-links{display:none!important}
#app .bms-login-split .bms-auth-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
#app .bms-login-split .bms-auth-card :is(.bms-auth-row [data-recover],.bms-auth-signup [data-register]){display:inline!important;min-height:0!important;height:auto!important;width:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#8fd0ff!important;font-size:13px!important;font-weight:600!important;text-decoration:none;cursor:pointer;outline:0}
#app .bms-login-split .bms-auth-card :is(.bms-auth-row [data-recover],.bms-auth-signup [data-register]):hover{text-decoration:underline;text-underline-offset:3px}
#app .bms-login-split .bms-auth-card :is(.bms-auth-row [data-recover],.bms-auth-signup [data-register]):focus-visible{outline:2px solid var(--auth-focus,#6cc2ff)!important;outline-offset:3px;border-radius:4px!important}
#app .bms-login-split .bms-auth-signup{margin:2px 0 0;text-align:center;font-size:13px;color:var(--auth-muted,#d5e4f1)}
#app .bms-login-split > .bms-auth-footnote{position:absolute;left:0;right:0;bottom:18px;z-index:2;display:flex;justify-content:center;align-items:center;gap:14px;font-size:12px;color:#9fbcd6}
#app .bms-login-split > .bms-auth-footnote footer{margin:0!important}
#app .bms-login-split > .bms-auth-footnote .bms-contact-link{min-height:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:inherit!important;font-size:12px!important;text-decoration:underline;text-underline-offset:3px}
#app .bms-login-split > .bms-auth-footnote .bms-auth-version{margin:0!important;color:inherit!important;font-size:12px}
#app .bms-login-split > .bms-auth-footnote footer::after{content:"·";margin-left:14px}
html #app .bms-login-split .bms-auth-benefits{gap:16px!important;margin-top:40px!important}
#app .bms-login-split .bms-auth-benefit-icon{width:40px!important;height:40px!important}
#app .bms-login-split .bms-auth-benefit-icon svg{width:18px;height:18px}
#app .bms-login-split::before{opacity:0!important}
html[data-theme=light] #app .bms-login-split .bms-auth-card :is(.bms-auth-row [data-recover],.bms-auth-signup [data-register]){color:#1d6fb8!important}
html[data-theme=light] #app .bms-login-split > .bms-auth-footnote{color:#4a6782}
#app .bms-login-split > .bms-auth-footnote{display:flex!important;flex-direction:row!important}#app .bms-login-split > .bms-auth-footnote footer{display:inline-flex!important;align-items:center}
/* Előnyök részletező sorral (felhasználói kérés): ikon + cím + egy sor leírás, nyugodt térközzel. */
html #app .bms-login-split .bms-auth-benefits{gap:20px!important}
#app .bms-login-split .bms-auth-benefits small{display:block!important;margin-top:3px;font-size:13.5px;line-height:1.45;color:#b9cfe2}
/* Kontraszt: a belépő fő gombja is a ≥ 4,5:1-es kékkel. */
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen):has(#login,#account-form,.bms-auth-links) .bms-auth-card .primary{background:#1878c4!important;box-shadow:0 10px 22px -12px #1878c4!important}
html[data-theme=blue] .bms-login-screen:not(.bms-update-screen):has(#login,#account-form,.bms-auth-links) .bms-auth-card .primary:hover{background:#1a80cf!important}
/* Lábléc: a verzió a sorban marad (egy régebbi szabály abszolút pozíciót adott neki). */
#app .bms-login-split > .bms-auth-footnote .bms-auth-version{position:static!important;inset:auto!important;transform:none!important}

/* Belépőkártya díszítése: ikonos mezők, finom fénykeret, nyíl a gomb végén. */
#app .bms-login-split .bms-auth-card{position:relative;border-radius:20px!important}
#app .bms-login-split .bms-auth-card::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;background:linear-gradient(180deg,rgb(255 255 255 / 38%),rgb(255 255 255 / 8%) 40%,rgb(108 194 255 / 18%));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
#app .bms-login-split .bms-auth-card>header{display:flex;flex-direction:column;align-items:center}
.bms-input-field{position:relative;display:block}
:is(.bms-input-field,.bms-password-field) .bms-input-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:grid;color:var(--auth-muted,#d5e4f1);opacity:.75;pointer-events:none}
#app .bms-login-split .bms-auth-card :is(.bms-input-field,.bms-password-field) input{padding-left:44px!important;width:100%;box-sizing:border-box}
#app .bms-login-split .bms-auth-card :is(.bms-input-field,.bms-password-field):focus-within .bms-input-icon{color:#8fd0ff;opacity:1}
#app .bms-login-split .bms-auth-card .primary{flex-direction:row-reverse;gap:10px}
#app .bms-login-split .bms-auth-card .primary svg{transition:transform .2s}
#app .bms-login-split .bms-auth-card .primary:hover svg{transform:translateX(3px)}
/* Belépőkártya színe (felhasználói kérés): gazdagabb átlós kék mélységgel és halvány kék derengéssel, hogy kiváljon a háttérből. */
html[data-theme=blue] #app .bms-login-split .bms-auth-card{--auth-card:linear-gradient(150deg,#2b72ad 0%,#1c5487 42%,#123a62 100%);background:linear-gradient(180deg,rgb(255 255 255 / 10%),transparent 120px),linear-gradient(150deg,#2b72ad 0%,#1c5487 42%,#123a62 100%)!important;box-shadow:0 30px 70px -26px rgb(0 8 22 / 90%),0 0 90px -30px rgb(60 160 240 / 45%),inset 0 1px rgb(255 255 255 / 16%)!important}
html[data-theme=blue] #app .bms-login-split .bms-auth-card input{background:rgb(4 22 42 / 55%)!important}
/* Fekete téma: a belépő fő gombja is élénk kék (a sötétkék helyett). */
html[data-theme=black] #app .bms-login-split .bms-auth-card .primary{background:#1878c4!important;color:#fff!important;border:0!important}
html[data-theme=black] #app .bms-login-split .bms-auth-card .primary:hover{background:#1a80cf!important}
/* Keskeny képernyő (telefon, tablet): választók a kártya sarkában, lábléc a kártya alatt, nincs úszó adatcímke. */
@media(max-width:1023px){
 #app .bms-login-split .bms-auth-card>.bms-auth-prefs{position:absolute;top:14px;right:14px;--pref-size:32px}
 #app .bms-login-split .bms-auth-card{padding-top:64px!important}
 #app .bms-login-split .bms-auth-row{flex-wrap:wrap;row-gap:10px}
 #app .bms-login-split .bms-auth-row .bms-remember{white-space:nowrap}
 #app .bms-login-split .bms-auth-row [data-recover]{margin-left:auto}
 #app .bms-login-split > .bms-auth-footnote{position:static!important;flex-wrap:wrap;gap:6px 14px;margin:20px 16px 24px;text-align:center}
 .bms-flow-chip{display:none!important}
}
/* Világos téma: az értesítési témák magyarázó sora a téma halvány színét kapja (a --muted csak sötét háttérre való). */
html[data-theme=light] .bms-notice-topic small{color:var(--bms-theme-muted)!important}
