/* DOM CONTROL – osobne karty sterowników pod istniejącym widokiem CO */
.dc-heat-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:14px;margin-top:16px;margin-bottom:20px}
.dc-heat-box{background:linear-gradient(145deg,#10243b,#0a182b);color:#eaf3ff;border:1px solid #29405e;border-left:4px solid #ff853b;border-radius:12px;padding:18px;min-width:0}
.dc-heat-heading,.dc-heat-zone-title,.dc-heat-bottom,.dc-heat-setpoint{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dc-heat-heading h2{font-size:15px;letter-spacing:.45px;margin:6px 0 0;color:#f1f6ff}
.dc-heat-kicker{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#84a5c8}
.dc-heat-status{font-size:10px;letter-spacing:.4px;border:1px solid #42526a;border-radius:6px;padding:5px 8px;color:#aabbd1;font-weight:700}
.dc-heat-status.is-online{color:#2af1aa;border-color:#197354}.dc-heat-status.is-offline{color:#ff6980;border-color:#8f3755}
.dc-heat-zone{margin-top:18px}.dc-heat-zone-title strong{font-size:16px}.dc-heat-zone-title span{font-size:11px;color:#92accb}
.dc-heat-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.dc-heat-metrics>div{background:#0d1c30;border:1px solid #203b58;padding:16px;border-radius:9px;min-width:0}
.dc-heat-metrics small{display:block;color:#94aec9;letter-spacing:.5px;font-size:10px;margin-bottom:9px}
.dc-heat-metrics strong{display:block;font-size:29px;font-weight:800;color:#fff}
.dc-heat-bottom{margin-top:16px;padding:12px 0;border-top:1px solid #233c57;border-bottom:1px solid #233c57;font-size:12px;color:#9db6d1}
.dc-heat-bottom b{color:#f1f6ff}.dc-heat-setpoint{margin-top:14px;color:#afc5db;font-size:12px}
.dc-heat-setpoint>div{display:flex;align-items:center;gap:12px}.dc-heat-setpoint button{width:34px;height:34px;border-radius:7px;border:1px solid #31506b;background:#172d44;color:#8ba0b6;cursor:not-allowed}
.dc-heat-setpoint>div span{color:#fff;font-weight:700;min-width:52px;text-align:center}
.dc-heat-help{color:#7f9bb9;font-size:11px;line-height:1.55;margin:14px 0 0}
@media(max-width:600px){.dc-heat-box{padding:13px}.dc-heat-metrics strong{font-size:24px}}

/* FLOOR CONTROL v0.2.0 - only active setpoint controls */
.dc-heat-setpoint button:not(:disabled) {
  cursor:pointer;
  color:#fff;
  background:#214461;
  border-color:#4980a4;
  transition:background .15s ease, border-color .15s ease;
}
.dc-heat-setpoint button:not(:disabled):hover {background:#295b7f;border-color:#71aed2;}
.dc-heat-setpoint button:not(:disabled):focus-visible {outline:2px solid #ff9f51;outline-offset:2px;}
.dc-heat-setpoint button:disabled {opacity:.45;}
/* DOM FLOOR STATS v0.3.0 – readonly history and consistent TPI-demand statuses */
.dc-floor-state.heating{color:#ff7c76!important}
.dc-floor-state.standby{color:#36e9a8!important}
.dc-floor-state.fault{color:#ffd26d!important}
.dc-floor-history{background:linear-gradient(145deg,#10243b,#0a182b);color:#eaf3ff;border:1px solid #29405e;border-radius:12px;padding:20px;margin:16px 0 24px;min-width:0}
.dc-floor-history-header,.dc-floor-plot-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.dc-floor-history-header h2{font-size:17px;letter-spacing:.55px;margin:6px 0 0;color:#f1f6ff}
.dc-floor-periods{display:inline-flex;gap:4px;background:#0b1b2e;padding:4px;border:1px solid #314a67;border-radius:9px}
.dc-floor-periods button{border:0;background:transparent;color:#94b1ce;padding:8px 14px;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer}
.dc-floor-periods button.active{background:#315777;color:#fff}
.dc-floor-periods button:focus-visible{outline:2px solid #ff9f51;outline-offset:1px}
.dc-floor-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:20px 0}
.dc-floor-stat-grid>div{background:#0b1b2e;border:1px solid #203b58;border-radius:8px;padding:14px;min-width:0}
.dc-floor-stat-grid small{display:block;font-size:10px;color:#8faecb;letter-spacing:.45px;margin-bottom:9px}
.dc-floor-stat-grid strong{font-size:18px;color:#f5f9ff;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dc-floor-plot-group{margin-top:15px;background:#0b1b2e;border:1px solid #203b58;border-radius:9px;padding:14px 13px 4px}
.dc-floor-plot-heading h3{font-size:13px;color:#dceaff;margin:0}
.dc-floor-plot-heading span{display:flex;align-items:center;gap:7px;font-size:10px;color:#9eb6ce}
.dc-floor-plot-heading i{display:inline-block;width:15px;height:3px;border-radius:2px;margin-left:5px;background:#54dcf7}
.dc-floor-plot-heading i.dc-floor-legend-target{background:#ffae6a}
.dc-floor-plot-heading i.dc-floor-legend-duty{background:#a599ff}
.dc-floor-chart{width:100%;height:auto;max-height:280px;display:block;margin-top:8px;overflow:visible}
.dc-floor-gridline{stroke:#28405a;stroke-width:1;stroke-dasharray:4 5}
.dc-floor-axis{fill:#8ea6bd;font-size:12px;font-family:system-ui,Arial,sans-serif}
.dc-floor-line-temp,.dc-floor-line-target,.dc-floor-line-duty{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.dc-floor-line-temp{stroke:#54dcf7}.dc-floor-line-target{stroke:#ffae6a;stroke-dasharray:6 4}.dc-floor-line-duty{stroke:#a599ff}
.dc-floor-chart-empty,.dc-floor-history-note,.dc-floor-loading{color:#9eb6ce;font-size:12px;padding:22px 0}
.dc-floor-history-foot{font-size:11px;line-height:1.65;color:#91aeca;margin:14px 0 0}
@media(max-width:720px){.dc-floor-history{padding:13px}.dc-floor-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dc-floor-stat-grid strong{font-size:15px}.dc-floor-periods button{padding:8px 10px}}
@media(max-width:380px){.dc-floor-stat-grid{grid-template-columns:1fr}}

/* DOM CONTROL / OGRZEWANIE v0.3.1: 3 stable tiles + one details area. */
.dc-heating-dashboard{min-width:0}
.dc-heating-dashboard .dc-heat-three-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 17px}
.dc-heating-dashboard .dc-heat-tile{min-width:0;display:flex;flex-direction:column;cursor:pointer;transition:border-color .16s ease,background .16s ease}
.dc-heating-dashboard .dc-heat-tile:hover{border-color:#609ab6}
.dc-heating-dashboard .dc-heat-tile:focus-visible{outline:2px solid #ff9f51;outline-offset:2px}
.dc-heating-dashboard .dc-heat-tile.is-selected{border-color:#ff9f51;box-shadow:inset 0 0 0 1px #ff9f5180}
.dc-heating-dashboard .dc-heat-tile .dc-heat-metrics{gap:8px}
.dc-heating-dashboard .dc-heat-tile .dc-heat-metrics>div{padding:12px 10px}
.dc-heating-dashboard .dc-heat-tile .dc-heat-metrics strong{font-size:clamp(18px,2vw,25px)}
.dc-heating-dashboard .dc-heat-tile .dc-heat-bottom{align-items:flex-start}
.dc-heating-dashboard .dc-heat-tile .dc-heat-bottom span{white-space:nowrap}
.dc-heating-dashboard .dc-heat-tile [data-floor-step]{cursor:pointer;color:#eaf3ff}
.dc-heating-dashboard .dc-heat-tile [data-floor-step]:disabled{cursor:not-allowed;color:#76849b}
.dc-heating-dashboard .dc-heat-tile .dc-heat-zone{margin-top:8px}
.dc-heating-dashboard .dc-heat-tile .dc-heat-setpoint{margin-top:10px}
.dc-heating-dashboard .dc-heat-tile .dc-heat-help{margin-top:7px}
.dc-heating-dashboard .dc-heat-open{margin-top:auto;padding-top:14px;color:#a4d9ff;font-size:12px;font-weight:700;display:flex;justify-content:space-between;gap:10px}
.dc-heating-dashboard .dc-heat-detail{min-width:0;margin-bottom:22px}
.dc-heating-dashboard .dc-heat-detail[hidden],.dc-heating-dashboard [hidden]{display:none!important}
.dc-heating-dashboard .dc-floor-history{margin-top:0}
.dc-heating-dashboard .dc-floor-history-note{margin-bottom:0}
.dc-heating-dashboard .dc-floor-chart-slot{min-height:200px}
.dc-heating-dashboard .dc-heat-status{white-space:nowrap}
@media(max-width:1100px){.dc-heating-dashboard .dc-heat-three-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.dc-heating-dashboard .dc-heat-three-tiles{grid-template-columns:minmax(0,1fr)}.dc-heating-dashboard .dc-heat-tile .dc-heat-metrics strong{font-size:24px}}
