#hse-v3{font-family:'sans-serif-condensed',Arial,sans-serif;color:#f6fbff;background:#000d17;border:1px solid #a6ddf3;border-radius:17px;overflow:hidden;display:grid;grid-template-columns:188px minmax(0,1fr);font-size:16px}#hse-v3 *{box-sizing:border-box}#hse-v3 header{grid-column:1/-1;display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:15px 18px 14px;border-bottom:1px solid #246c8b;background:linear-gradient(110deg,#031421,#000911);padding-right:92px}#hse-v3 .brand{display:flex;align-items:center;gap:7px;width:160px}#hse-v3 .brand svg{width:37px;height:48px;color:#21bfff;filter:drop-shadow(2px 0 #e5f6ff)}#hse-v3 .brand strong{font-size:29px;line-height:1}#hse-v3 .brand small{font-size:15px;display:block;margin-top:3px}#hse-v3 .title{border-left:1px solid #70b5d5;padding-left:19px;font-size:25px;font-weight:700}#hse-v3 .title small{display:block;font-size:12px;font-weight:400;margin-top:4px}#hse-v3 .connections{display:flex;gap:8px;margin-left:auto}#hse-v3 .connection{display:flex;align-items:center;gap:8px;border:1px solid #20b6ee;border-radius:9px;padding:8px 10px;font-size:13px;line-height:1.25;box-shadow:inset 0 -3px 0 #082a3c}#hse-v3 .connection small{display:block;color:#a8bbc9;font-size:12px}#hse-v3 svg{width:23px;height:23px;flex-shrink:0}#hse-v3 nav{padding:14px 7px;background:linear-gradient(90deg,#000b12,#03121d);border-right:1px solid #206484;display:flex;flex-direction:column;gap:3px}#hse-v3 button{font:inherit;color:inherit;display:flex;align-items:center;gap:12px;border:1px solid transparent;border-radius:8px;min-height:45px;padding:10px 12px;background:transparent;text-align:left}#hse-v3 button:hover{border-color:#2ab5ec}#hse-v3 button[aria-pressed=true],#hse-v3 .export{background:linear-gradient(#068dff,#0067d6 55%,#0052b0);border:1px solid #25b8fa;box-shadow:inset 0 1px 1px #8edbff55;font-weight:600}#hse-v3 main{min-width:0;padding:12px;background:radial-gradient(ellipse at 70% 30%,#051c2b,#000d16 80%)}#hse-v3 .frame{border:1px solid #14b6f1;border-radius:13px;padding:12px;min-height:548px;background:linear-gradient(120deg,#021523,#000b14);display:flex;flex-direction:column;gap:12px}#hse-v3 h2{display:flex;align-items:center;gap:9px;font-size:22px;margin:0;padding:1px 0 10px;border-bottom:1px solid #23637f;line-height:1.2}#hse-v3 h2 svg{color:#28c4ff}#hse-v3 .demo{font-size:12px;color:#a1c3d5;letter-spacing:.3px}#hse-v3 .grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}#hse-v3 .tile{border:1px solid #20bcff;border-radius:10px;background:linear-gradient(115deg,#031b2a,#000b13);padding:20px 15px;display:flex;gap:20px;align-items:center;min-height:117px}#hse-v3 .tile svg{width:40px;height:40px;color:#24bfff}#hse-v3 .tile .reading{flex:1;text-align:center}#hse-v3 .tile strong{display:block;font-size:34px;line-height:1.2;margin-top:6px;font-weight:600}#hse-v3 .box{border:1px solid #24bbef;border-radius:11px;overflow:hidden;background:#000c15}#hse-v3 h3{font-size:19px;margin:0;padding:8px 12px;background:linear-gradient(90deg,#073654,#031521);border-bottom:1px solid #329cc4;display:flex;gap:9px;align-items:center}#hse-v3 table{width:100%;border-collapse:collapse;font-size:16px}#hse-v3 td,#hse-v3 th{padding:8px 12px;border-bottom:1px solid #164c65;text-align:left;overflow-wrap:anywhere}#hse-v3 th{background:linear-gradient(#064167,#052b44);font-weight:600}#hse-v3 td+td,#hse-v3 th+th{border-left:1px solid #1b5770}#hse-v3 td:last-child{text-align:right;font-variant-numeric:tabular-nums}#hse-v3 tr:last-child td{border-bottom:0}#hse-v3 .run{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:16px;padding:14px}#hse-v3 .run strong{color:#49f21a;display:flex;align-items:center;gap:10px;font-size:25px}#hse-v3 .run strong svg{width:32px;height:32px}#hse-v3 .run dl{margin:0;display:grid;grid-template-columns:1fr auto;gap:7px;font-size:15px}#hse-v3 .run dd{margin:0;color:#59f427}#hse-v3 .muted{color:#aac3d1}#hse-v3 .export{width:100%;justify-content:center;min-height:52px;margin-top:auto;font-size:20px;border-color:#b2dfff}#hse-v3 footer{grid-column:1/-1;border-top:1px solid #3d9bc3;padding:9px 13px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px}#hse-v3 footer .dot{width:11px;height:11px;border-radius:50%;background:#9aabb7}#hse-v3 footer .end{margin-left:auto}#hse-v3 input,#hse-v3 select{font:inherit;width:100%;background:#031421;color:white;border:1px solid #7cd3f2;border-radius:8px;padding:10px 13px;min-height:44px}#hse-v3 label{display:block;margin-bottom:7px}#hse-v3 .stack{display:grid;gap:12px}#hse-v3 .note{font-size:14px;padding:11px;border:1px solid #2d7e9e;border-radius:8px;color:#bbd5e2}#hse-v3 .export-options{padding:16px;display:grid;gap:12px}#hse-v3 .export-options label{display:flex;align-items:center;gap:10px;margin:0;min-height:30px}#hse-v3 input[type=checkbox]{width:18px;min-height:18px;height:18px;accent-color:#008cff}#hse-v3 .empty{padding:28px 15px;color:#b2c9d6;text-align:center}#hse-v3 .export:disabled{opacity:.55}#hse-v3 .empty svg{display:block;margin:0 auto 10px;width:35px;height:35px}
@media(max-width:800px){#hse-v3{grid-template-columns:168px minmax(0,1fr)}#hse-v3 header{gap:12px}#hse-v3 .connections{margin-left:0}#hse-v3 nav button{font-size:14px;gap:8px;padding:10px 8px}#hse-v3 .tile{gap:8px;padding:17px 10px}#hse-v3 .tile svg{width:27px}#hse-v3 .tile strong{font-size:28px}#hse-v3 .run{grid-template-columns:1fr}#hse-v3 td,#hse-v3 th{padding:8px;font-size:14px}}@media(max-width:530px){#hse-v3{grid-template-columns:1fr}#hse-v3 header{padding:15px}#hse-v3 .title{font-size:22px;padding-left:0;border:0}#hse-v3 nav{flex-direction:row;flex-wrap:wrap;border-bottom:1px solid #206484;border-right:0}#hse-v3 nav button{flex:1 1 135px}#hse-v3 .frame{min-height:0}#hse-v3 .tile{display:block;text-align:center}#hse-v3 .tile svg{margin-bottom:5px}#hse-v3 .tile strong{font-size:26px}#hse-v3 h2{font-size:20px}}
#hse-v3 details{border:1px solid #247d9f;border-radius:8px;background:#031624}#hse-v3 summary{padding:13px;min-height:46px;color:#daf3ff}#hse-v3 pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 monospace;padding:0 14px 14px;margin:0;color:#c7dfeb}#hse-v3 .run dd{color:#a9d8ef}
#hse-v3{color-scheme:dark}#hse-v3 h2,#hse-v3 h3,#hse-v3 strong,#hse-v3 th,#hse-v3 td,#hse-v3 label,#hse-v3 summary,#hse-v3 .reading,#hse-v3 dt{color:#f1f7fc}#hse-v3 .tile strong{color:#fff}#hse-v3 button,#hse-v3 input,#hse-v3 select,#hse-v3 option{color:#f5faff}#hse-v3 option{background:#041927}#hse-v3 .edit-actions{display:flex;flex-wrap:wrap;gap:10px}#hse-v3 .edit-actions .export{width:auto;flex:1;font-size:17px;margin:0}#hse-v3 td button{padding:8px;min-height:44px;border-color:#246d90}#hse-v3 #edit-error{color:#ffc2ba}#hse-v3 .brand small,#hse-v3 .title small{color:#e9f5fc}

#hse-v3 .hse-company{display:block;width:205px;flex-shrink:0}#hse-v3 .hse-company strong{display:block;font-family:Arial,sans-serif;font-style:italic;font-weight:800;font-size:32px;letter-spacing:-1px;color:#19d6ed;line-height:1.1}#hse-v3 .hse-company small{display:block;color:#edf4f8;font-family:Arial,sans-serif;font-size:13px;font-weight:600;letter-spacing:0;margin-top:5px}#hse-v3 .title{font-size:25px}#hse-v3 .tile strong{font-size:36px}#hse-v3 .tile{background:linear-gradient(110deg,#041b29,#000b12);border-color:#19cced}#hse-v3 .box{border-color:#19c4ed}#hse-v3 .sensor-status{color:#f4c97b}#hse-v3 header{padding-right:90px}#hse-v3 .title small{font-size:15px;margin-top:6px}@media(max-width:530px){#hse-v3 header{padding-right:18px}#hse-v3 .tile strong{font-size:27px}}
#hse-v3 .local-mark{display:block;color:#6edaff;font-size:12px;margin-top:4px}#hse-v3 #service-edit-table table{table-layout:fixed}#hse-v3 #service-edit-table th:first-child{width:12%}#hse-v3 #service-edit-table th:last-child{width:22%}#hse-v3 #service-edit-table td:last-child{text-align:left}#hse-v3 #service-edit-table button{flex-wrap:wrap;gap:4px;font-size:14px}#hse-v3 #service-edit-table small{overflow-wrap:anywhere}
body{margin:0;background:#000d17;color:#fff}#hse-v3{border-radius:0;min-height:100vh}#hse-v3 .tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}#hse-v3 .tools button{border:1px solid #36a4d3}#hse-v3 .notice{background:#133447;padding:12px;border-radius:8px;color:#f4faff}#hse-v3 .age{font-size:13px;color:#b7e1ef}#hse-v3 .error{color:#ffbaaa}#hse-v3 textarea{background:#00121e;color:#fff;border:1px solid #3497bd;border-radius:8px;width:100%;padding:12px;font:inherit}#hse-v3 .hse-company strong{color:#1bd8ed}#hse-v3 .scrollbox{overflow-x:auto}#hse-v3 td{word-break:normal}#hse-v3 button:focus-visible{outline:2px solid #fff}#hse-v3 nav{gap:0}#hse-v3 .pending{color:#ffd189}#hse-v3 .no-data{color:#a4bbc9}#hse-v3 pre{white-space:pre-wrap;overflow-wrap:anywhere}#hse-v3 input,#hse-v3 select{font-size:16px}#hse-v3 details{margin-top:10px}#hse-v3 .brand{width:auto}#hse-v3 header{padding-right:16px}#hse-v3 .connection{min-width:100px}#hse-v3 #banner{margin-bottom:12px}
/* Tablet layout: fixed app shell, independently scrolling content. */
html,body{height:100%;overflow:hidden}
#hse-v3{height:100vh;height:100dvh;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;border:0;border-radius:0}
#hse-v3 header{padding:10px 14px;gap:12px}
#hse-v3 nav{min-height:0;overflow-y:auto}
#hse-v3 main{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#hse-v3 .frame{min-height:100%}
#hse-v3 .mobile-nav{display:none}
#hse-v3 .connection{flex-wrap:wrap}
#hse-v3 footer{font-size:11px;padding:7px 12px}
@media(max-width:650px){
 #hse-v3{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto}
 #hse-v3 nav{display:block;padding:8px 12px;border-right:0;border-bottom:1px solid #206484;overflow:visible}
 #hse-v3 nav button{display:none}
 #hse-v3 .mobile-nav{display:block}
 #hse-v3 .mobile-nav select{min-height:44px;background:#005cba;font-weight:600}
 #hse-v3 header{padding:8px 12px;gap:8px}
 #hse-v3 .hse-company strong{font-size:25px}
 #hse-v3 .hse-company small{font-size:10px}
 #hse-v3 .title{font-size:16px;padding-left:10px;border-left:1px solid #70b5d5}
 #hse-v3 .title small{font-size:11px}
 #hse-v3 .connections{width:100%;margin:0}
 #hse-v3 .connection{padding:5px 8px;font-size:12px;flex:1}
 #hse-v3 main{padding:8px}
 #hse-v3 .frame{padding:10px;gap:10px}
 #hse-v3 .grid{gap:8px}
 #hse-v3 .tile{padding:12px 6px;min-height:100px}
 #hse-v3 .tile strong{font-size:26px}
 #hse-v3 td,#hse-v3 th{font-size:14px;padding:8px}
}
/* 0.4.0: HSE reference layout, touch controls, honest source/status labels. */
#hse-v3{font-family:'Arial Narrow','Roboto Condensed',Arial,sans-serif;grid-template-columns:190px minmax(0,1fr);background:#000b13}
#hse-v3 header{background:linear-gradient(110deg,#031725,#00080e);padding:12px 16px;gap:18px}
#hse-v3 .hse-company{display:flex;align-items:center;gap:9px;width:172px}
#hse-v3 .hse-company .brand-flame{width:34px;height:46px;filter:none}
#hse-v3 .hse-company strong{font-size:28px;color:#fff;font-style:normal;letter-spacing:-1px}
#hse-v3 .hse-company small{font-size:13px;margin:0;color:#fff}
#hse-v3 .title{font-size:22px;border:0;padding:0}
#hse-v3 .title small{font-size:12px;color:#c7deed;margin-top:4px}
#hse-v3 .connections{margin-left:auto;gap:6px}
#hse-v3 .connection{display:block;border-radius:8px;font-size:12px;padding:7px 10px;min-width:105px}
#hse-v3 .connection small{font-size:11px}
#hse-v3 nav{padding:9px 7px;gap:3px;background:linear-gradient(90deg,#000810,#011521)}
#hse-v3 nav button{font-size:15px;min-height:44px;padding:9px 10px;gap:10px;flex-shrink:0}
#hse-v3 nav button svg{width:21px;height:21px}
#hse-v3 nav button[aria-pressed=true]{background:linear-gradient(#078aff,#0066d3);border-color:#1abaff;box-shadow:inset 0 1px 0 #a0e4ff55}
#hse-v3 main{padding:10px}
#hse-v3 .frame{border-radius:12px;background:linear-gradient(135deg,#031928,#000a12 65%);gap:10px;padding:12px}
#hse-v3 h2{font-size:20px;padding-bottom:10px}
#hse-v3 .grid{gap:12px}
#hse-v3 .tile{min-height:112px;padding:18px;border-radius:10px;border-color:#1ab9f0}
#hse-v3 .tile strong{font-size:32px;margin-top:8px}
#hse-v3 .tile svg{width:42px;height:42px;color:#1bbcff}
#hse-v3 h3{font-size:17px;background:linear-gradient(90deg,#06314b,#00101c);padding:9px 12px}
#hse-v3 td,#hse-v3 th{padding:9px 12px;font-size:15px}
#hse-v3 th{background:#032238;color:#d9f0ff}
#hse-v3 td+td,#hse-v3 th+th{border-left:0}
#hse-v3 tbody tr:nth-child(even){background:#021521}
#hse-v3 tbody tr:hover{background:#06263a}
#hse-v3 .notice{font-size:13px;background:#062235;color:#c9e2ef;padding:10px;border:1px solid #16435b;border-radius:7px;line-height:1.45}
#hse-v3 #banner{margin:0}
#hse-v3 .demo{font-size:11px;color:#7fc7e8}
#hse-v3 .age{font-size:12px}
#hse-v3 footer{color:#c8deed;background:#000a12;border-top:1px solid #288bb4;padding:8px 14px}
#hse-v3 .regulator-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
#hse-v3 .regulator-grid td{font-size:13px;padding:8px}
#hse-v3 .regulator-grid td:last-child{font-size:11px;color:#90b4c8;text-align:left}
#hse-v3 .regulator-grid td:nth-child(2){font-weight:600}
#hse-v3 .circuit-tabs button{flex:1;justify-content:center}
#hse-v3 .large-text table,#hse-v3.large-text td,#hse-v3.large-text th{font-size:18px}
#hse-v3.large-text .tile strong{font-size:38px}
#hse-v3 button:disabled{opacity:.45;cursor:not-allowed}
@media(min-width:1400px){#hse-v3 .regulator-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){#hse-v3 .regulator-grid{grid-template-columns:1fr}#hse-v3 .title{font-size:18px}#hse-v3 header{gap:10px}#hse-v3 .hse-company{width:154px}}
@media(max-width:650px){#hse-v3{grid-template-columns:minmax(0,1fr)}#hse-v3 .connections{margin:0}#hse-v3 .hse-company{width:auto}#hse-v3 .hse-company strong{font-size:25px}#hse-v3 .hse-company small{font-size:11px}#hse-v3 .title{font-size:16px}#hse-v3 .title small{font-size:10px}#hse-v3 header{padding:8px 10px}#hse-v3 .tile{padding:10px;min-height:110px}#hse-v3 .tile strong{font-size:25px}#hse-v3 .tile svg{width:28px;height:28px}#hse-v3 .reading{font-size:13px}#hse-v3 .circuit-tabs button{padding:8px;font-size:13px}#hse-v3 .regulator-grid td{font-size:12px}}

#hse-v3 [hidden]{display:none!important}
#hse-v3 #view-content{min-width:0}

/* Red themes; measurements are independent of the saved appearance preference. */
#hse-v3{--bg:#160d10;--surface:#211519;--raised:#302025;--stripe:#291b20;--hover:#41272e;--text:#fff4f5;--muted:#d8bfc5;--line:#75414d;--accent:#ff677d;--active:#b51e3c;--active-end:#8e152e;color:var(--text);background:var(--bg);color-scheme:dark}
#hse-v3[data-theme=light]{--bg:#f7f2f3;--surface:#ffffff;--raised:#fae9ed;--stripe:#fcf5f7;--hover:#f5dfe5;--text:#30191f;--muted:#72505b;--line:#d5a4b0;--accent:#af1737;--active:#b51e3c;--active-end:#8e152e;color-scheme:light}
#hse-v3 header,#hse-v3 nav,#hse-v3 main,#hse-v3 footer{background:var(--bg);color:var(--text);border-color:var(--line)}
#hse-v3 .frame,#hse-v3 .tile,#hse-v3 .box,#hse-v3 details{background:var(--surface);border-color:var(--line)}
#hse-v3 h3,#hse-v3 th,#hse-v3 .notice{background:var(--raised);border-color:var(--line);color:var(--text)}
#hse-v3 tbody tr:nth-child(even){background:var(--stripe)}
#hse-v3 tbody tr:hover{background:var(--hover)}
#hse-v3 h2,#hse-v3 td,#hse-v3 th,#hse-v3 .title,#hse-v3 footer{border-color:var(--line)}
#hse-v3 h2,#hse-v3 h3,#hse-v3 strong,#hse-v3 th,#hse-v3 td,#hse-v3 label,#hse-v3 summary,#hse-v3 .reading,#hse-v3 dt,#hse-v3 .tile strong,#hse-v3 button,#hse-v3 .hse-company strong,#hse-v3 .hse-company small{color:var(--text)}
#hse-v3 .age,#hse-v3 .demo,#hse-v3 .muted,#hse-v3 pre,#hse-v3 .note,#hse-v3 .empty,#hse-v3 .no-data,#hse-v3 .connection small,#hse-v3 .title small,#hse-v3 .brand small{color:var(--muted)}
#hse-v3 .connection{border-color:var(--line);box-shadow:none}
#hse-v3 h2 svg,#hse-v3 .tile svg,#hse-v3 .brand svg,#hse-v3 .local-mark{color:var(--accent)}
#hse-v3 .brand-flame path:first-child{fill:var(--accent);stroke:var(--text)}
#hse-v3 .brand-flame path:last-child{fill:var(--surface)}
#hse-v3 button[aria-pressed=true],#hse-v3 nav button[aria-pressed=true],#hse-v3 .export{background:linear-gradient(var(--active),var(--active-end));border-color:var(--accent);color:#fff;box-shadow:none}
#hse-v3 input,#hse-v3 textarea,#hse-v3 select,#hse-v3 option,#hse-v3 .mobile-nav select{background:var(--surface);color:var(--text);border-color:var(--line)}
#hse-v3 input::placeholder,#hse-v3 textarea::placeholder{color:var(--muted);opacity:1}
#hse-v3 .tools button,#hse-v3 td button{border-color:var(--line)}
#hse-v3 button:hover{border-color:var(--accent)}
#hse-v3 button:focus-visible,#hse-v3 input:focus-visible,#hse-v3 select:focus-visible,#hse-v3 textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#hse-v3 input[type=checkbox]{accent-color:var(--active)}
#hse-v3 .pending,#hse-v3 .error,#hse-v3 #write-error,#hse-v3 #edit-error{color:var(--accent)}

/* Connection status and live burner indicator. */
#hse-v3 .connections{flex-wrap:wrap;align-items:stretch}
#hse-v3 .connection.is-connected{background:#14532d;border-color:#4ade80;color:#fff}
#hse-v3 .connection.is-connected small{color:#e0ffe9}
#hse-v3[data-theme=light] .connection.is-connected{background:#dcfce7;border-color:#15803d;color:#14532d}
#hse-v3[data-theme=light] .connection.is-connected small{color:#14532d}
#hse-v3 #header-usb{border:1px solid var(--accent);background:var(--raised);justify-content:center;font-size:13px;min-height:44px}
#hse-v3 .burner-indicator{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
#hse-v3 .burner-indicator svg{height:42px;width:36px;fill:#92959b;flex-shrink:0}
#hse-v3 .burner-indicator.is-running svg{fill:#ef3340}
#hse-v3[data-theme=light] .burner-indicator.is-running svg{fill:#c91f32}

.device-picture{display:flex;align-items:center;gap:20px;margin:0;padding:16px;border:1px solid var(--line,#777);border-radius:12px;flex-wrap:wrap}.device-picture img{width:180px;height:180px;object-fit:contain;background:white;border-radius:8px}.device-picture figcaption{flex:1;min-width:180px}

#hse-v3 .burner-indicator.is-fault{border-color:#ef3340;color:#ef3340}
#hse-v3 .burner-indicator.is-fault svg{fill:#ef3340}
#hse-v3 .burner-indicator.is-fault svg path{stroke:#ef3340;stroke-width:1}
#hse-v3 .burner-indicator.is-fault svg{position:relative}

/* Binäre Betriebszustände – in dunklem und hellem Design gut lesbar. */
#hse-v3 .binary-state{display:inline-block;border-radius:6px;font-weight:800;padding:1px 7px;white-space:nowrap}
#hse-v3 .binary-state.is-on{background:#dcfce7;border:1px solid #16a34a;color:#166534}
#hse-v3 .binary-state.is-off{background:#fee2e2;border:1px solid #dc2626;color:#991b1b}
