:root { --bg:#07131e; --surface:#102331; --line:#1c3b4d; --text:#eff9ff; --muted:#8ea9ba; --cyan:#45d5ed; --green:#31ca81; font-family:Arial,sans-serif; color:var(--text); background:var(--bg); }
* { box-sizing:border-box; } body { margin:0; min-height:100vh; background:radial-gradient(circle at 85% 0,#13364a,transparent 42%),var(--bg); }
.container { max-width:740px; margin:auto; padding:24px 18px 40px; } header { display:flex; justify-content:space-between; gap:12px; align-items:start; }
.eyebrow { color:var(--cyan); font-size:11px; font-weight:bold; letter-spacing:1.5px; margin:0 0 6px; } h1,h2,h3,p { margin:0; } h1 { font-size:28px; } h2 { font-size:18px; }
.connection { border-radius:99px; padding:7px 10px; font-size:12px; background:#183342; color:#add3e4; } .connection.online { background:#133b2b; color:#73e7ae; } .connection.offline { background:#3c2629; color:#f1a1a7; }
.temperature-card { display:grid; grid-template-columns:auto 1fr; gap:14px; align-items:center; margin:28px 0; padding:22px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(135deg,#143447,#102331); }
.icon,.relay-icon { font-size:30px; } .temperature-card p,.relay-card p { color:var(--muted); font-size:13px; margin-bottom:4px; } output { color:var(--cyan); font-size:38px; font-weight:bold; } .status { grid-column:2; font-size:12px; color:var(--muted); }
.section-heading { display:flex; justify-content:space-between; align-items:center; margin:20px 2px 12px; } small { color:var(--muted); }.relay-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.relay-card { min-height:128px; display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:start; padding:17px; border-radius:16px; border:1px solid var(--line); background:var(--surface); }.relay-card h3 { font-size:16px; margin:2px 0 5px; }.switch,.action-button { align-self:end; justify-self:end; border:0; cursor:pointer; }.switch { grid-column:2; width:48px; height:27px; padding:3px; border-radius:40px; background:#426070; }.switch i { display:block; width:21px; height:21px; border-radius:50%; background:#fff; transition:transform .2s; }.switch.on { background:var(--green); }.switch.on i { transform:translateX(21px); }.action-button { grid-column:2; color:#062113; font-weight:bold; border-radius:9px; padding:9px 12px; background:#7be7ad; }.action-button:disabled,.switch:disabled { opacity:.5; cursor:wait; }.message { min-height:20px; margin:20px 2px 0; font-size:13px; color:#ffb0b4; }
.chart-card { margin-top:24px; padding:17px; border-radius:16px; border:1px solid var(--line); background:var(--surface); }.chart-card .section-heading { margin:0 0 14px; }.text-button { padding:6px 8px; color:var(--cyan); background:transparent; border:0; cursor:pointer; }.chart-card canvas { display:block; width:100%; height:220px; }.legend { color:var(--muted); font-size:12px; display:flex; justify-content:flex-end; gap:7px; align-items:center; }.min-dot,.max-dot { width:8px; height:8px; border-radius:50%; margin-left:8px; }.min-dot { background:#62a9ff; }.max-dot { background:#ff9f68; }
.chart-detail { min-height:20px; margin:12px 0 0; color:#d8edf8; font-size:13px; text-align:center; }
.settings-card { display:grid; gap:14px; margin-top:24px; padding:17px; border-radius:16px; border:1px solid var(--line); background:var(--surface); }.settings-card h2 { font-size:18px; margin-bottom:5px; }.settings-card p,label { color:var(--muted); font-size:13px; }.settings-card form { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }.settings-card label { display:grid; gap:5px; }.settings-card input { width:88px; border:1px solid #315267; border-radius:8px; padding:8px; color:var(--text); background:#0a1924; }.settings-card .action-button { align-self:end; }
.settings-card input[type="range"] { width:150px; padding:0; accent-color:var(--cyan); }
.color-picker-wrap { display:grid; gap:7px; justify-items:center; color:var(--muted); font-size:13px; }
.field-label { justify-self:start; }.color-picker-wrap output { color:#d8edf8; font-size:13px; font-family:monospace; font-weight:bold; }
.IroWheel { box-shadow:0 0 0 10px #0a1924, 0 0 0 11px #315267; border-radius:50%; }
@media (max-width:420px) { .relay-grid { grid-template-columns:1fr; } .container { padding-top:18px; } }
