@charset "UTF-8";
:root{--ink:#17363d;--muted:#748080;--teal:#177967;--teal-light:#e5f2ec;--cream:#f7f8f3;--line:#e2e8e1;--red:#b44940;--amber:#986314;--surface:#fff;--shadow:0 6px 28px #18382d05;font-family:Tahoma,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.8}button,select,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button,a,select,summary,[tabindex]{outline-offset:5px}a{color:inherit;text-decoration:none}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #c59a47}button:disabled{cursor:wait}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.skip-link{position:absolute;top:-100px;right:20px;padding:10px 20px;background:var(--ink);color:white;z-index:20}.skip-link:focus{top:10px}.topbar{height:100px;border-bottom:1px solid var(--line);padding:0 max(4.8vw,24px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#ffffff90}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:46px;height:52px;background:var(--ink);border-radius:14px;display:grid;place-items:center}.brand-mark svg{width:25px;height:34px;fill:#a9ddc5}.brand-mark .wave{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round}.brand strong{font-size:22px;display:block;line-height:1.5;font-weight:700;letter-spacing:-.7px}.brand small{font:8px/1.8 "Segoe UI",sans-serif;letter-spacing:1.5px;color:var(--muted);display:block}.topbar-meta{display:flex;align-items:center;gap:25px;color:var(--muted);font-size:11px}.local-tag{padding:5px 11px;border:1px solid var(--line);border-radius:6px;color:#456460;background:#fbfcf9}.local-tag span{color:var(--teal);margin-left:5px}#clock{font-family:"Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums;font-size:13px}main{max-width:1570px;margin:auto;padding:46px max(4.8vw,24px) 0}.hero{display:flex;align-items:center;justify-content:space-between;gap:35px;margin-bottom:31px}.eyebrow{font-size:10px;letter-spacing:.4px;color:var(--teal);margin:0 0 7px;font-weight:700}h1{font-size:46px;font-weight:700;letter-spacing:-2px;line-height:1.6;margin:0 0 9px}.heading-dot{color:#60ad8c}.subtitle{color:var(--muted);font-size:12px;margin:0;line-height:2.1}.connection-card{width:294px;flex-shrink:0;border:1px solid var(--line);border-radius:13px;background:#fff;padding:17px 19px;box-shadow:var(--shadow)}.connection-heading{display:flex;align-items:center;gap:9px;font-size:12px}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#91a19b;box-shadow:0 0 0 4px #91a19b15;flex-shrink:0}.status-dot.live{background:#32a877;box-shadow:0 0 0 4px #32a87716}.status-dot.stale,.status-dot.waiting{background:#c79638;box-shadow:0 0 0 4px #c7963816}.status-dot.offline{background:#c4665d;box-shadow:0 0 0 4px #c4665d16}.connection-card p{color:var(--muted);font-size:10px;margin:6px 16px 12px 0}.last-received{padding-top:10px;border-top:1px solid #edf0ea;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:var(--muted)}.last-received time{font-size:11px;color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums}.banner{border:1px solid;display:flex;align-items:center;gap:14px;border-radius:10px;padding:14px 18px;margin:0 0 22px}.banner strong{font-size:13px}.banner p{font-size:11px;margin:2px 0 0}.banner-icon{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border:1px solid currentColor;border-radius:9px;font-size:20px}.demo-banner{color:#825513;background:#fff3d9;border-color:#e9d7b0}.error-banner{color:#994a41;background:#fff2ee;border-color:#edd4ce}.plain-button{border:1px solid currentColor;color:inherit;background:transparent;border-radius:6px;padding:5px 11px;white-space:nowrap;font-size:11px;margin-right:auto}.overview-strip{display:grid;grid-template-columns:repeat(4,1fr);background:#eef1e9;border:1px solid #e2e7dd;border-radius:10px;margin-bottom:36px;padding:13px 0}.overview-strip>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 22px;border-left:1px solid #dbe2d7}.overview-strip>div:last-child{border-left:0}.overview-strip span{font-size:9px;color:#778272}.overview-strip strong{font-size:12px;font-weight:600;white-space:nowrap}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}h2{font-size:23px;line-height:1.6;letter-spacing:-.7px;margin:0;font-weight:700}.section-hint{font-size:10px;color:var(--muted);margin:0 0 3px}.tiny-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#99aaa0;vertical-align:middle;margin-left:6px}.sensor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.sensor-card{position:relative;display:block;text-align:right;color:var(--ink);padding:18px 19px 13px;background:var(--surface);border:1px solid var(--line);border-radius:13px;min-width:0;overflow:hidden;transition:border-color .2s,box-shadow .2s,transform .2s;box-shadow:var(--shadow)}.sensor-card:hover{transform:translateY(-2px);border-color:#a6c7b7}.sensor-card.selected{border:1.5px solid var(--teal);padding:17.5px 18.5px 12.5px;box-shadow:0 0 0 3px #17796709}.sensor-card.selected:before{content:"";position:absolute;width:36px;height:3px;background:var(--teal);top:-1px;right:20px;border-radius:0 0 4px 4px}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:6px}.sensor-name{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}.sensor-symbol{width:30px;height:30px;display:grid;place-items:center;background:var(--teal-light);border-radius:8px;color:var(--teal);font:600 10px/1 "Segoe UI",Arial,sans-serif;flex-shrink:0}.sensor-card[data-family="temperature"] .sensor-symbol{background:#f5eee2;color:#96723d}.sensor-card[data-family="chlorine"] .sensor-symbol{background:#e8edf5;color:#607799}.sensor-card[data-family="oxygen"] .sensor-symbol{background:#e6f0f2;color:#447b89}.channel-status{font-size:8px;border-radius:4px;padding:1px 5px;background:#f1f3ed;color:#899486;white-space:nowrap}.channel-status.ok{background:#e7f3ed;color:#34835e}.channel-status.problem{background:#f9eee3;color:#956636}.card-subtitle{font-size:9px;color:var(--muted);margin:8px 0 7px;line-height:1.5}.value-row{direction:ltr;display:flex;justify-content:flex-end;align-items:baseline;gap:9px;line-height:1.3;min-height:51px}.channel-value{font:500 35px/1.35 "Segoe UI",Arial,sans-serif;letter-spacing:-1.4px;font-variant-numeric:tabular-nums;min-width:25px}.channel-unit{font:10px/1 "Segoe UI",Arial,sans-serif;color:var(--muted)}.sensor-card.unavailable .channel-value{color:#9ba49b}.sensor-card.old .channel-value{color:#a08044}.mini-chart{height:47px;width:100%;display:block;margin:8px 0 9px;overflow:visible}.card-bottom{display:flex;justify-content:space-between;gap:8px;font-size:8px;color:#8a948a;border-top:1px solid #f0f2ed;padding-top:8px;min-height:24px}.card-bottom span:last-child{text-align:left}.quality-note{font-size:9px;line-height:2.1;color:var(--muted);margin:12px 3px 27px}.trend-panel{border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow);padding:26px 28px 0;overflow:hidden;margin-bottom:25px}.trend-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.range-controls{display:flex;align-items:center;gap:10px}select{border:1px solid #dce2d8;border-radius:7px;background:#fff;padding:9px 11px;color:#55695f;font-size:11px;min-width:143px}.export-button{display:flex;align-items:center;gap:9px;padding:9px 16px;border-radius:7px;background:var(--ink);color:#fff;font-size:11px;border:1px solid var(--ink);transition:background .2s}.export-button:hover{background:var(--teal)}.export-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.chart-meta{display:flex;gap:22px;font-size:9px;color:var(--muted);margin-top:26px;min-height:23px}.chart-meta span:last-child{margin-right:auto;font-family:"Segoe UI",Arial,sans-serif}.main-chart-wrap{position:relative;direction:ltr;min-height:245px;margin:5px -8px 0;touch-action:pan-y}.main-chart{display:block;width:100%;height:290px;overflow:visible}.main-chart .grid-line{stroke:#e9ede7;stroke-width:1;stroke-dasharray:3 5}.main-chart .axis-label{fill:#8a968b;font-size:11px;font-family:"Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums}.main-chart .crosshair{stroke:#5c8273;stroke-dasharray:4 4;stroke-width:1}.chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;pointer-events:none;background:linear-gradient(0deg,#fff9,#fffb);color:#8b998d}.chart-empty>span{font:50px/1 "Segoe UI",Arial,sans-serif;color:#b4cbbd;margin-bottom:12px}.chart-empty strong{font-size:13px;font-weight:500}.chart-empty p{font-size:10px;max-width:90%;margin:7px 0}.chart-tooltip{position:absolute;z-index:3;top:24px;pointer-events:none;direction:rtl;border:1px solid #dbe6dc;border-radius:8px;padding:11px 13px;background:#fcfefa;box-shadow:0 5px 24px #17363d15;min-width:155px;max-width:240px;font-size:10px;color:var(--muted)}.chart-tooltip>span:first-child{display:block;color:var(--teal);font-size:9px}.chart-tooltip strong{display:block;font:600 23px/1.5 "Segoe UI",Arial,sans-serif;color:var(--ink);text-align:right}.chart-tooltip time{display:block;text-align:right;font:10px/1.8 "Segoe UI",Arial,sans-serif}.chart-tooltip>span:last-child{font-size:9px}.chart-bottom{border-top:1px solid #edf0e9;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0 16px}.chart-legend{display:flex;align-items:center;gap:7px;font-size:9px;color:#6c8174;white-space:nowrap}.legend-line{height:2px;width:15px;background:var(--teal);display:inline-block}.legend-gap{height:1px;width:13px;display:inline-block;border-top:1px dashed #93a498;margin-right:10px}.chart-bottom p{margin:0;color:#939b8f;font-size:8px;text-align:left}.statistics{display:grid;grid-template-columns:repeat(4,1fr);background:#f8faf5;border-top:1px solid var(--line);margin:0 -28px;padding:16px 0}.statistics>div{padding:0 27px;display:flex;justify-content:space-between;gap:8px;border-left:1px solid #e7ece2;align-items:center}.statistics>div:last-child{border-left:0}.statistics span{font-size:9px;color:#84907d}.statistics strong{font:600 15px/1.8 "Segoe UI",Arial,sans-serif;color:#446452;font-variant-numeric:tabular-nums}.diagnostics{border:1px solid var(--line);border-radius:10px;background:#fff9}.diagnostics summary{padding:17px 20px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;list-style:none}.diagnostics summary::-webkit-details-marker{display:none}.diagnostics summary>span:first-child{display:flex;align-items:center;gap:10px}.diagnostic-icon{font:21px/1 "Segoe UI",Arial,sans-serif;color:#94a795}.diagnostics strong{font-size:11px}.diagnostics small{font-size:9px;color:var(--muted);margin-right:6px}.chevron{font-size:16px;color:#8ca18c}.diagnostics[open] .chevron{transform:rotate(180deg)}.diagnostics-body{padding:0 22px 22px;border-top:1px solid var(--line)}.diagnostics-intro{font-size:11px;color:var(--muted);margin:17px 0}.diagnostic-meta{display:flex;flex-wrap:wrap;gap:10px 25px;font-size:10px;color:#849081;margin:15px 0}.diagnostic-meta b{font-family:"Segoe UI",Arial,sans-serif;color:#647763;font-weight:500;display:inline-block}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:10px;min-width:570px}caption{text-align:right;font-size:11px;font-weight:600;padding:7px 0}th,td{padding:9px 11px;text-align:right;border-bottom:1px solid #e9eee4}th{font-weight:500;background:#f4f7ef;color:#7c8a72}td{color:#667b60}td:last-child{max-width:440px;overflow-wrap:anywhere}.raw-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.raw-layout h3{font-size:11px;font-weight:500;margin:20px 0 7px}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font:11px/1.8 Consolas,"Courier New",monospace;color:#6f8974;background:#f4f7ef;padding:15px;border:1px solid #e6ecdf;border-radius:7px;margin:0}footer{display:flex;justify-content:space-between;gap:15px;color:#95a18e;font-size:9px;padding:28px 0 30px}footer strong{color:#799073;font-weight:500}.footer-version{font:9px/1.8 "Segoe UI",Arial,sans-serif;letter-spacing:1.3px}
@media(min-width:1500px){main{padding-right:65px;padding-left:65px}.topbar{padding:0 calc((100vw - 1440px)/2)}.sensor-card{padding:21px 22px 14px}.sensor-card.selected{padding:20.5px 21.5px 13.5px}.channel-value{font-size:41px}.mini-chart{height:53px}.overview-strip span{font-size:10px}}
@media(max-width:1100px){.topbar{padding:0 28px}main{padding:32px 28px 0}.overview-strip>div{padding:0 12px;flex-direction:column;gap:2px;align-items:start}.overview-strip strong{font-size:12px}.sensor-grid{gap:12px}.sensor-card{padding:15px 13px 11px}.sensor-card.selected{padding:14.5px 12.5px 10.5px}.sensor-name{font-size:10px;gap:6px}.channel-status{font-size:7px;padding:1px 4px}.sensor-symbol{width:25px;height:25px;font-size:9px}.card-bottom{font-size:7px}.channel-value{font-size:31px}.statistics>div{padding:0 15px;flex-direction:column;align-items:start;gap:3px}.chart-bottom p{max-width:50%}}
@media(max-width:780px){.topbar{height:84px;padding:0 20px}.brand strong{font-size:20px}.brand small{font-size:7px;letter-spacing:1px}.brand-mark{width:40px;height:46px}.topbar-meta{flex-direction:column;gap:3px;font-size:9px}.local-tag{padding:2px 7px}#clock{font-size:10px}main{padding:27px 20px 0}.hero{align-items:start;gap:18px}.hero-copy{flex:1}h1{font-size:32px;letter-spacing:-1.2px;margin-bottom:6px}.subtitle{font-size:10px}.hero .eyebrow{font-size:9px}.connection-card{width:224px;padding:13px}.connection-heading{font-size:10px;gap:7px}.connection-card p{font-size:8px;margin-bottom:9px}.last-received{font-size:8px;flex-direction:column;align-items:start;gap:1px}.last-received time{font-size:10px}.overview-strip{margin-bottom:27px}.overview-strip>div{padding:0 10px}.overview-strip span{font-size:8px}.sensor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.sensor-card{padding:17px 18px 12px}.sensor-card.selected{padding:16.5px 17.5px 11.5px}.sensor-name{font-size:12px}.sensor-symbol{width:29px;height:29px;font-size:10px}.channel-status{font-size:8px}.card-subtitle{font-size:9px}.channel-value{font-size:36px}.card-bottom{font-size:8px}.section-heading{gap:12px}.section-hint{font-size:8px;max-width:165px}h2{font-size:20px}.trend-panel{padding:21px 19px 0}.trend-header{align-items:start}.range-controls{gap:7px}.export-button{padding:8px 10px;font-size:10px;gap:7px}select{font-size:10px;min-width:110px;padding:8px}.chart-meta{gap:12px}.statistics{margin:0 -19px}.main-chart{height:265px}.main-chart-wrap{min-height:240px}.diagnostics small{font-size:8px}.raw-layout{grid-template-columns:1fr;gap:0}footer{flex-wrap:wrap;row-gap:8px;font-size:8px}.footer-version{margin-right:auto;font-size:8px}.chart-meta #chart-range{display:none}}
@media(max-width:480px){.topbar{height:76px;padding:0 15px}.brand{gap:9px}.brand strong{font-size:18px}.brand small{font-size:6px;letter-spacing:.8px}.brand-mark{width:34px;height:41px;border-radius:11px}.brand-mark svg{width:21px;height:29px}.local-tag{font-size:8px}.topbar-meta{gap:5px}main{padding:25px 15px 0}.hero{flex-direction:column;margin-bottom:20px;gap:18px}.hero-copy{width:100%}h1{font-size:35px}.subtitle{font-size:10px;max-width:320px}.connection-card{width:100%;display:grid;grid-template-columns:1fr auto;padding:12px 15px;column-gap:10px}.connection-heading{font-size:11px}.connection-card p{grid-column:1;grid-row:2;margin:3px 15px 0 0}.last-received{grid-column:2;grid-row:1 / 3;border-top:0;padding:0;justify-content:center}.overview-strip{grid-template-columns:1fr 1fr;padding:2px 0;margin-bottom:26px}.overview-strip>div{padding:10px 14px;gap:3px}.overview-strip>div:nth-child(2){border-left:0}.overview-strip>div:nth-child(-n+2){border-bottom:1px solid #dbe2d7}.overview-strip span{font-size:8px}.overview-strip strong{font-size:11px}.section-heading{align-items:center;margin-bottom:14px}.section-hint{max-width:120px;font-size:7px}.eyebrow{font-size:8px;margin-bottom:4px}h2{font-size:19px}.sensor-grid{gap:10px}.sensor-card{padding:13px 11px 10px;border-radius:11px}.sensor-card.selected{padding:12.5px 10.5px 9.5px}.sensor-name{font-size:10px;gap:5px}.sensor-symbol{width:24px;height:24px;font-size:8px;border-radius:6px}.channel-status{font-size:6px;padding:1px 3px}.card-subtitle{font-size:8px;margin:8px 0}.channel-value{font-size:31px}.channel-unit{font-size:9px}.value-row{gap:5px;min-height:43px}.mini-chart{height:36px;margin:6px 0 9px}.card-bottom{font-size:6px;gap:4px}.quality-note{font-size:8px;margin:11px 0 22px}.trend-panel{padding:19px 14px 0}.trend-header{flex-direction:column;gap:15px}.range-controls{width:100%;justify-content:space-between}.range-controls select{flex:1}.export-button{flex:1;justify-content:center}.chart-meta{margin-top:19px;font-size:8px;gap:12px}.main-chart{height:245px}.chart-bottom{flex-direction:column;align-items:start;gap:8px;padding:10px 0}.chart-bottom p{max-width:100%;text-align:right;font-size:7px}.chart-legend{font-size:8px}.statistics{margin:0 -14px;padding:13px 0}.statistics>div{padding:0 9px;gap:4px}.statistics span{font-size:7px}.statistics strong{font-size:12px}.diagnostics summary{padding:14px 13px}.diagnostics summary>span:first-child{flex-wrap:wrap;gap:6px}.diagnostics small{width:100%;margin-right:24px;font-size:7px}.diagnostics strong{font-size:10px}.diagnostics-body{padding:0 12px 14px}.diagnostics-intro{font-size:9px}.diagnostic-meta{font-size:8px}.banner{padding:12px;gap:10px}.banner strong{font-size:11px}.banner p{font-size:9px}.banner-icon{width:24px;height:24px;font-size:16px}.plain-button{font-size:9px;padding:4px 6px}.error-banner{flex-wrap:wrap}.error-banner>div{flex:1;min-width:200px}footer{font-size:7px;padding:23px 0}#footer-mode{order:3;width:100%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.logout-form{margin:0}.logout-button{border:1px solid #d7e1d9;background:#fff;color:#60756a;border-radius:6px;padding:5px 10px;font-size:10px}.logout-button:hover{border-color:#a9c5b6;color:#17383d}


/* ===== Logo size & placement fix ===== */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-mark{
  width:36px !important;
  height:36px !important;
  min-width:36px;
  background:transparent !important;
  border-radius:9px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex-shrink:0;
}

.brand-mark img{
  display:block;
  width:32px;
  height:32px;
  object-fit:contain;
  object-position:center;
  border-radius:8px;
}

@media(max-width:780px){
  .brand-mark{
    width:34px !important;
    height:34px !important;
    min-width:34px;
  }
  .brand-mark img{
    width:30px;
    height:30px;
  }
}

@media(max-width:480px){
  .brand-mark{
    width:32px !important;
    height:32px !important;
    min-width:32px;
  }
  .brand-mark img{
    width:28px;
    height:28px;
  }
}
