/* rc15: shared brand and measurement assets; presentation only. */
.rc15-brand-row,.rc15-bottom-nav{display:none}
body #main .gas-overview .gas-card .gas-illustration{width:var(--bottle-width);aspect-ratio:411/852;background:url('rc15-bottle.png') center/100% 100% no-repeat;overflow:hidden;grid-row:1/span 5;isolation:isolate}
body #main .gas-overview .gas-illustration::before,body #main .gas-overview .gas-illustration::after{content:none}
.rc15-bottle-fill{position:absolute;inset:0;background:url('rc15-bottle-green.png') center/100% 100% no-repeat;clip-path:inset(var(--gas-clip,87%) 0 13% 0)}
[data-gas-level=low] .rc15-bottle-fill{background-image:url('rc15-bottle-orange.png')}
[data-gas-level=critical] .rc15-bottle-fill{background-image:url('rc15-bottle-red.png')}
[data-gas-level=unknown] .rc15-bottle-fill,[data-reading-age=stale] .rc15-bottle-fill,[data-reading-age=expired] .rc15-bottle-fill,[data-reading-age=unknown] .rc15-bottle-fill,[data-reading-age=loading] .rc15-bottle-fill{visibility:hidden}
body #main .gas-overview .gas-card:is([data-reading-age=stale],[data-reading-age=expired],[data-reading-age=unknown],[data-reading-age=loading]) .gas-percent{color:#697789!important}
body #main .gas-overview .gas-card[data-reading-age=fresh][data-profile-warning=false] .gas-status{display:none}
body #main .rc15-voltage.voltage-battery{display:flex;position:relative;flex-direction:column;align-items:stretch;justify-content:center;gap:3px;width:100%;max-width:160px;height:auto;min-height:0;aspect-ratio:auto;flex:0 0 auto;margin:0 auto;box-shadow:none;border:0;background:none;padding:0}
.rc15-voltage::before,.rc15-voltage::after{content:none!important}
.rc15-voltage-track{height:8px;border-radius:8px;background:linear-gradient(90deg,#c83c38 0%,#e98428 30%,#e4c24a 48%,#64aa69 65%,#27864d 100%);position:relative;display:block}
.rc15-voltage-track i{position:absolute;left:var(--voltage-level,0%);top:-3px;bottom:-3px;border-left:2px solid #17365b;transform:translateX(-50%)}
.rc15-voltage[data-current=false] .rc15-voltage-track{background:#cad5df}.rc15-voltage:not([data-current=true]) i{display:none}
.rc15-voltage-labels{display:flex;justify-content:space-between;font-size:10px;color:#52677e;line-height:1.2;white-space:nowrap}
body #main #overview-page .metric-reading-voltage{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px}
.rc15-alarm-summary,.rc15-menu-list{background:white;border:1px solid #dbe7f1;border-radius:14px;box-shadow:0 2px 7px #17365b0a;overflow:hidden;margin:0 0 12px;color:#17365b}
.rc15-alarm-head{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:6px;padding:10px 12px;text-decoration:none;text-align:center;color:#17365b;min-height:44px;font-weight:700}
.rc15-alarm-head .portal-icon{width:26px;height:26px}.rc15-shield{display:grid;place-items:center;color:#287c46}
.rc15-channels{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e0e8ef}
.rc15-channels a{display:flex;gap:7px;align-items:center;justify-content:center;padding:8px 4px;color:#17365b;text-decoration:none;font-size:13px;min-height:44px;line-height:1.25}
.rc15-channels a+a{border-left:1px solid #e0e8ef}.rc15-channels strong{display:block;font-size:12px;font-weight:600;margin-top:2px}.rc15-channels .portal-icon{width:21px;height:21px;flex:none;color:#24578a}
.rc15-alarm-summary [data-tone=active]{color:#287c46}.rc15-alarm-summary [data-tone=error]{color:#b52b37}.rc15-alarm-summary [data-tone=neutral]{color:#52677e}
.rc15-menu-list>a,.rc15-menu-list button{display:flex!important;align-items:center;text-align:left;gap:10px;min-height:48px;padding:12px 14px!important;width:100%;background:white!important;color:#17365b!important;border:0!important;border-radius:0!important;box-shadow:none!important;font:inherit;text-decoration:none!important;line-height:1.3;box-sizing:border-box}
.rc15-menu-list>a+a,.rc15-menu-list>div+div,.rc15-menu-list button+button{border-top:1px solid #e1e9f1!important}.rc15-menu-list .portal-icon{width:23px;height:23px;flex:none;color:#24578a}.rc15-menu-list a span:last-child,.rc15-menu-list button span:last-child{margin-left:auto;font-size:23px;color:#526f8c}.rc15-menu-list button:focus-visible,.rc15-menu-list a:focus-visible{outline:2px solid #075ba8;outline-offset:-3px}.rc15-logout{max-width:none!important}
#devices-page .live-devices-heading{display:none}.rc15-menu-list form{margin:0}
@media(max-width:900px){
 body.rc15-mobile-shell{--portal-header-height:calc(112px + max(8px,env(safe-area-inset-top,0px)));--rc15-bottom-height:calc(64px + env(safe-area-inset-bottom,0px));background:#e7f0f9}
 body.rc15-mobile-shell .portal-header{background:#e7f0f9!important;overflow:visible!important}
 body.rc15-mobile-shell .portal-header>.status-bar-surface{background:#e7f0f9!important}
 body.rc15-mobile-shell .portal-header>.nav-row{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:48px 54px;gap:4px;padding:2px 12px 4px!important;background:#17365b!important;align-content:start;overflow:visible}
 body.rc15-mobile-shell .portal-header>.nav-row>.mobile-brand,body.rc15-mobile-shell .portal-header>.nav-row>#mobile-menu{display:none!important}
 body.rc15-mobile-shell .portal-header .rc15-brand-row{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;justify-items:center;width:100%;gap:3px;color:white}
 .rc15-brand-row>span{font-weight:750;font-style:italic;font-size:clamp(19px,5.4vw,26px);white-space:nowrap;color:white;text-align:center}
 .rc15-brand-row>a,.rc15-brand-row>button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0!important;background:none!important;border:0!important;border-radius:0!important;display:grid;place-items:center;color:white!important;box-shadow:none!important}
 .rc15-brand-row img{width:43px;height:auto;max-height:40px;object-fit:contain}.rc15-brand-row .portal-icon{width:24px;height:24px;color:white}
 body.rc15-mobile-shell .portal-header>.nav-row>#vehicle-menu{width:100%;max-width:none;min-width:0;align-self:start}
 body.rc15-mobile-shell .portal-header #vehicle-menu summary{height:52px!important;display:grid!important;grid-template-columns:40px minmax(0,1fr) 40px!important;gap:4px;align-items:center;text-align:center;padding:5px 8px!important;background:#fff;border:0;border-radius:12px}
 body.rc15-mobile-shell .vehicle-header-label{justify-items:center;min-width:0;text-align:center}.vehicle-header-name{max-width:100%}.vehicle-header-mode{display:block;font-weight:500}
 body.rc15-mobile-shell #main{top:var(--portal-header-height);bottom:var(--rc15-bottom-height)!important;padding:12px 12px 18px!important;background:#e7f0f9;scroll-padding-bottom:12px}
 body.rc15-mobile-shell .rc15-bottom-nav{position:fixed;inset:auto 0 0;z-index:41;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;background:#17365b;border-radius:16px 16px 0 0;padding:6px 5px calc(5px + env(safe-area-inset-bottom,0px));height:var(--rc15-bottom-height);box-sizing:border-box;align-items:stretch}
 .rc15-bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;text-decoration:none;color:white;font-size:clamp(9px,2.55vw,12px);white-space:nowrap;font-weight:500;line-height:1.1;min-width:0;min-height:44px;border-radius:10px;padding:4px 0}
 .rc15-bottom-nav a[aria-current=page]{background:#d6eafa;color:#17365b;font-weight:700}.rc15-bottom-nav .portal-icon{width:23px;height:23px;flex:none}.rc15-bottom-nav a:focus-visible{outline:2px solid white;outline-offset:-2px}
 body.rc15-mobile-shell #main .live-intro{display:block!important;min-height:0!important;height:auto!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 10px!important;overflow:visible!important}
 body.rc15-mobile-shell #main .live-intro .live-intro-copy{padding:0!important;display:block!important;width:auto!important;background:none!important}
 body.rc15-mobile-shell #main .live-intro :is(.live-vehicle-photo,.live-intro-actions,.eyebrow,#page-description,.live-intro-title-suffix){display:none!important}
 body.rc15-mobile-shell #main .live-intro h1{font-size:22px!important;line-height:1.25;margin:0!important;color:#17365b}
 body.rc15-mobile-shell #main .live-intro[data-view=overview] h1{font-size:0!important}body.rc15-mobile-shell #main .live-intro[data-view=overview] h1::after{content:'Live-Übersicht';font-size:22px}
 body.rc15-mobile-shell #main #connection.live-connection{background:#fff!important;padding:4px!important;gap:0;margin:0 0 10px!important;border:1px solid #dbe7f1;border-radius:12px}
 body.rc15-mobile-shell #main #connection.live-connection .connection-stage{box-shadow:none!important;border-radius:0;background:transparent;padding:6px 2px!important;min-width:0}
 body.rc15-mobile-shell #main #connection.live-connection .connection-stage+.connection-stage{border-left:1px solid #dbe7f1}
 body.rc15-mobile-shell #main #connection.live-connection .connection-label{font-size:11px;line-height:1.15}
 body.rc15-mobile-shell #main #overview-page .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
 body.rc15-mobile-shell #main #overview-page .metrics .metric{padding:10px!important;min-height:96px;box-shadow:0 2px 7px #17365b0a;border:1px solid #dbe7f1;border-radius:13px;background:white;min-width:0}
 body.rc15-mobile-shell #main #overview-page .metrics .metric-label{font-size:clamp(11px,3.2vw,14px)!important;line-height:1.2;padding-right:16px;min-height:23px;gap:4px}
 body.rc15-mobile-shell #main #overview-page .metrics .metric-reading{justify-content:center;align-items:center;margin:5px 0 0;min-height:36px;flex:1}
 body.rc15-mobile-shell #main #overview-page .metrics .metric-value:not(.gas-percent){margin:0!important;text-align:center;font-size:clamp(19px,5.4vw,26px)!important}
 body.rc15-mobile-shell #main #overview-page .metrics .metric-reading-voltage{gap:5px}
 body.rc15-mobile-shell #main #overview-page .automation-overview-grid{grid-template-columns:1fr;gap:0;background:white;border:1px solid #dbe7f1;border-radius:13px;overflow:hidden}
 body.rc15-mobile-shell #main #overview-page .automation-overview-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;align-items:center;min-height:0;padding:9px 11px!important;border:0;border-radius:0;box-shadow:none;background:white;text-align:left}
 body.rc15-mobile-shell #main #overview-page .automation-overview-item+.automation-overview-item{border-top:1px solid #dbe7f1}
 body.rc15-mobile-shell #main #overview-page .automation-overview-item h3{grid-column:1;font-size:14px;margin:0;justify-content:flex-start}
 body.rc15-mobile-shell #main #overview-page .automation-overview-item h3 .portal-icon{width:21px;height:21px;padding:0;background:none;flex:none}
 body.rc15-mobile-shell #main #overview-page .automation-overview-item [role=status]{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;margin-left:26px;min-width:0}
 body.rc15-mobile-shell #main #overview-page .automation-overview-item .automation-overview-state{font-size:11px;line-height:1.3;padding:2px 4px!important}
 body.rc15-mobile-shell #main #overview-page .automation-overview-item .automation-overview-detail{font-size:11px;line-height:1.3;margin:0;text-align:left}
 body.rc15-mobile-shell #main #overview-page .automation-overview-item>a{grid-column:2;grid-row:1/span 2;font-size:0;min-width:44px;min-height:44px;display:grid;place-items:center;margin:0;text-decoration:none}
 body.rc15-mobile-shell #main #overview-page .automation-overview-item>a::after{content:'›';font-size:24px;color:#24578a}
 body.rc15-mobile-shell #main #gas-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.rc15-mobile-shell #main #gas-overview .gas-card{--bottle-width:clamp(38px,11vw,60px);padding:10px 8px!important;column-gap:6px;min-height:0;min-width:0;border:1px solid #dbe7f1;border-radius:13px;box-shadow:0 2px 7px #17365b0a;align-content:start}
 body.rc15-mobile-shell #main #gas-overview .gas-card .gas-illustration{grid-row:1/span 3;align-self:center}
 body.rc15-mobile-shell #main #gas-overview .gas-card h3.metric-label{font-size:13px!important;line-height:1.2;min-height:20px;padding-right:14px;overflow-wrap:anywhere}
 body.rc15-mobile-shell #main #gas-overview .gas-card .gas-percent{font-size:clamp(23px,6vw,32px)!important;margin:5px 0;line-height:1.1}
 body.rc15-mobile-shell #main #gas-overview .gas-card .gas-track{display:none}
 body.rc15-mobile-shell #main #gas-overview .gas-card .gas-detail{font-size:11px;line-height:1.35;grid-column:1/-1;margin:5px 0 0;border-top:1px solid #e1e9f1;padding-top:5px;text-align:center}
 body.rc15-mobile-shell #main #gas-overview .gas-card :is(.gas-status,.gas-actions,.metric-alarm){grid-column:1/-1;min-width:0}
 body.rc15-mobile-shell #main #gas-overview .gas-card .gas-actions button{white-space:normal;min-height:44px}
 #devices-page .device-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #devices-page .device-status-grid .control-card{background:white;border:1px solid #dbe7f1;border-radius:13px;padding:12px 10px;box-shadow:0 2px 7px #17365b0a;min-width:0;display:flex;flex-direction:column;gap:6px;text-align:left;position:relative}
 #devices-page .device-status-grid .control-card[hidden]{display:none!important}#devices-page .device-status-grid h3{font-size:15px;display:flex;align-items:center;gap:6px;margin:0;color:#17365b;overflow-wrap:anywhere}
 #devices-page .device-status-grid h3 .portal-icon{width:24px;height:24px;flex:none;color:#24578a}#devices-page .device-setting,#devices-page #live-energy-value{font-size:19px;color:#17365b;overflow-wrap:anywhere;border-top:1px solid #e1e9f1;padding-top:8px;margin-top:4px}
 #devices-page .device-status-grid [data-reading-age=fresh] :is(.device-freshness,#live-energy-note){display:none}
 #devices-page .device-status-grid :is(.device-freshness,#live-energy-note,.device-power-note,.device-planning){font-size:12px;line-height:1.4}
 #devices-page .device-status-grid a[data-device-control],#devices-page .device-status-grid a[data-energy-control],#devices-page .device-status-grid a[data-extension-control]{font-size:13px!important;min-height:44px;padding:6px!important;white-space:normal;display:flex;align-items:center;justify-content:center;background:#e7f0f9;color:#17365b;text-decoration:none;border-radius:8px;margin-top:auto}
 #devices-page .device-status-grid .history-trigger{display:none}
 body.rc15-mobile-shell #main .alarm-page>h1{font-size:22px}
 body.rc15-mobile-shell #main .alarm-page .no-open-alarms{text-align:center;background:#fff;border-radius:12px;color:#287c46}
 body.rc15-mobile-shell #main .alarm-page :is(.alarm-top-card,.alarm-section,.card){background:#fff;border-radius:13px;box-shadow:0 2px 7px #17365b0a}
 body.rc15-mobile-shell #main footer{font-size:11px;margin-top:18px}
}
@media(max-width:350px){body.rc15-mobile-shell #main #gas-overview{grid-template-columns:1fr}#devices-page .device-status-grid{grid-template-columns:1fr}.rc15-bottom-nav a{font-size:9px}}
@media(min-width:901px){#devices-page .device-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#devices-page .control-card[hidden]{display:none!important}}
/* Resolve earlier high-specificity theme declarations. */
body #main #overview-page .metrics .rc15-voltage.voltage-battery{flex:0 0 auto;height:auto;min-height:0;width:100%;max-width:160px}
body #main #overview-page .metrics .metric-reading-voltage{align-items:center;flex-wrap:nowrap;gap:5px}
body #main .gas-overview .gas-card .gas-illustration{height:auto;min-height:0;max-height:none}
@media(max-width:900px){
 body.rc15-mobile-shell #main .live-intro[data-view=overview] h1{font-size:22px!important}
 body.rc15-mobile-shell #main .live-intro[data-view=overview] h1::after{content:none}
 body.rc15-mobile-shell #main #gas-overview .gas-card .gas-detail{display:grid;grid-template-columns:1fr;gap:3px;border:0;padding:0}
 body.rc15-mobile-shell #main #gas-overview .gas-card .rc15-gas-kg{padding-left:calc(var(--bottle-width) + 6px);font-size:13px}
 body.rc15-mobile-shell #main #gas-overview .gas-card .gas-detail-separator{display:none}
 body.rc15-mobile-shell #main #gas-overview .gas-card .rc15-gas-sensor{border-top:1px solid #e1e9f1;padding-top:5px;font-size:11px}
 body.rc15-mobile-shell #main #devices-page .device-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.rc15-mobile-shell #main #devices-page .device-status-grid>.control-card{background:white;border:1px solid #dbe7f1;border-radius:13px;box-shadow:0 2px 7px #17365b0a;padding:11px 10px;min-height:120px;cursor:pointer}
 body.rc15-mobile-shell #main #devices-page .device-status-grid h3::before{content:none}
 body.rc15-mobile-shell #main #devices-page .device-status-grid h3{font-size:14px!important}
 body.rc15-mobile-shell #main #devices-page .device-setting,body.rc15-mobile-shell #main #devices-page #live-energy-value{font-size:19px;margin:3px 0 0;color:#17365b}
 body.rc15-mobile-shell #main #devices-page .device-status-grid a:is([data-device-control],[data-energy-control],[data-extension-control]){background:none;border:0;border-radius:0;min-height:44px;text-align:left;justify-content:space-between;padding:4px 0!important}
 body.rc15-mobile-shell #main #devices-page .device-status-grid a:is([data-device-control],[data-energy-control],[data-extension-control])::after{content:'›';font-size:22px}
 body.rc15-mobile-shell #main #devices-page>h2{margin:14px 0 9px;color:#17365b}
}
@media(max-width:350px){body.rc15-mobile-shell #main #devices-page .device-status-grid{grid-template-columns:1fr}}

/* rc16: same brand asset on desktop and mobile, no layout redesign. */
body #portal-sidebar .sidebar-head .brand .cr16-brand-mark{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;display:grid;place-items:center;flex:0 0 48px;width:48px;height:42px;min-width:0;padding:0}
.cr16-brand-mark img,.mobile-brand img{display:block;width:100%;height:100%;object-fit:contain}
body #portal-sidebar .sidebar-head .brand .cr16-wordmark{font-size:clamp(14px,1.2vw,19px);font-style:italic;font-weight:750;white-space:nowrap;letter-spacing:-.025em}
body #portal-sidebar .sidebar-head .brand{gap:8px}
body .portal-header .mobile-brand:has(img){border:0!important;background:transparent!important;padding:3px!important}
.rc15-brand-row img{max-height:40px;width:43px;object-fit:contain}

/* RC32: severity is independent of acknowledgement. */
.rc15-alarm-summary [data-tone=warning]{color:#996000}.rc15-alarm-summary [data-tone=info]{color:#185e9e}
.rc15-alarm-head #rc15-alarm-state{overflow-wrap:anywhere;line-height:1.35}
.metric[data-alarm=true][data-severity=warnung],#gas-overview [data-alarm=true][data-severity=warnung]{background:#fff8e9;border-color:#d99a37}

.metric[data-alarm=true][data-severity=warnung] .metric-value:not(.gas-percent),[data-severity=warnung] .metric-alarm{color:#996000!important}
[data-severity=warnung][data-unconfirmed=true]{animation-name:rc32-warning-pulse}
@keyframes rc32-warning-pulse{0%,100%{box-shadow:0 0 0 0 rgba(217,154,55,.12)}50%{box-shadow:0 0 0 4px rgba(217,154,55,.50)}}
@media(prefers-reduced-motion:reduce){[data-severity=warnung][data-unconfirmed=true]{animation:none;box-shadow:0 0 0 3px rgba(217,154,55,.35)}}

.metric[data-alarm=true][data-severity=hinweis],#gas-overview [data-alarm=true][data-severity=hinweis]{background:#eef6ff;border-color:#7aaedd;animation:none}
[data-severity=hinweis] .metric-alarm{color:#1967ad!important}
