/* r81 binding mockup hierarchy; system typography and PoolRoi accents. */
:root{color-scheme:light;--r-canvas:#f2f4f6;--r-surface:#fff;--r-fg:#0f1d24;--r-muted:#4e606a;--r-sep:#e3e8eb;--r-teal:#09646e;--r-amber:#996019;--r-ok:#1c743c}
body{background:var(--r-canvas);color:var(--r-fg);font-family:-apple-system,BlinkMacSystemFont,'Inter',system-ui,sans-serif}
.r-card,.activity-card{background:var(--r-surface);border:1px solid var(--r-sep);border-radius:20px;padding:22px;min-width:0;margin:0 0 18px}
.r-card h2{font-size:19px;font-weight:650;margin:0 0 16px}.r-card p,.r-muted{color:var(--r-muted);font-size:13px;line-height:1.5}.r-home{max-width:1160px;margin:auto}.r-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 24px}.r-header h1{font-size:34px;font-weight:700;letter-spacing:-1px;margin:14px 0 4px}.r-header p{font-size:14px;color:var(--r-muted)}.r-wordmark{width:116px;height:auto}.r-reversed{display:none}.r-icons{display:flex;gap:10px}.r-icon{border-radius:50%;background:var(--r-surface);border:1px solid var(--r-sep);width:44px;height:44px;display:grid;place-items:center;color:var(--r-teal);cursor:pointer}.r-icon svg{width:21px;height:21px}.r-home-columns{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr);gap:22px;align-items:start}.r-home-columns>*{min-width:0}.r-now{position:relative;overflow:hidden;padding:28px;background:var(--r-surface)}.r-now.heating{background:linear-gradient(120deg,#fff9ee,#ffedcc);border-color:#ecd4a8}.r-now.heating:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 20%,#ffffff70 45%,transparent 70%);animation:r-shimmer 9s infinite;transform:translateX(-100%)}@keyframes r-shimmer{to{transform:translateX(100%)}}.r-now.ready{background:#e8f6f4;border-color:#a7d9cf}.r-now.offline{background:#e7ebed;color:var(--r-muted)}.r-now h2{font-size:15px;color:var(--r-muted)}.r-temperatures{display:flex;gap:24px;align-items:center;margin:10px 0 22px}.r-temperature{font-size:76px;line-height:1;letter-spacing:-4px;font-weight:600}.heating .r-temperature{color:var(--r-amber)}.r-temp-side{font-size:13px;display:grid;gap:8px;color:var(--r-muted)}.r-temp-side b{color:var(--r-fg);font-size:18px;font-weight:500;margin-left:10px}.r-status{font-size:17px;font-weight:600;position:relative}.r-check{color:var(--r-ok);margin-right:6px}.r-now p{margin-top:7px;position:relative}.r-seg{display:flex;background:var(--r-sep);padding:3px;border-radius:10px;gap:2px;min-width:0}.r-seg button{flex:1;background:none;border:0;border-radius:8px;padding:8px 10px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}.r-seg button[aria-pressed=true],.r-seg button[aria-selected=true]{background:var(--r-surface);box-shadow:0 1px 3px #0002}.r-equipment{display:grid;grid-template-columns:1fr 1fr;gap:16px}.r-equipment button{text-align:left;width:100%;cursor:pointer}.r-equipment strong{display:block;font-size:20px;margin:12px 0 6px}.r-equipment .active{background:#fff4df;border-color:#edcf9b}.r-equipment .pump.active{background:#e7f4f3;border-color:#a9d5cf}.r-equipment small{font-size:12px;color:var(--r-muted)}.r-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:18px}.r-week-strip button{border-radius:11px;text-align:center;padding:9px 1px;min-width:0;font-size:12px;display:grid;justify-items:center;gap:8px;cursor:pointer}.r-week-strip button[aria-current=date]{background:#e2f2f3;color:var(--r-teal)}.r-week-strip svg{width:20px;height:20px}.r-swim-bar{height:4px;width:70%;border-radius:4px;background:transparent}.r-swim-bar.swim{background:var(--r-teal)}.r-list-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 0;border-bottom:1px solid var(--r-sep);font-size:14px}.r-list-row:last-child{border-bottom:0}.r-list-row button,.r-link{color:var(--r-teal);font-weight:600;cursor:pointer}.r-list-row span:last-child{color:var(--r-muted);text-align:right}.r-title-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.r-sheet{width:min(640px,calc(100% - 24px));max-width:640px;max-height:90dvh;border:1px solid var(--r-sep);border-radius:20px;background:var(--r-canvas);color:var(--r-fg);padding:22px;overflow:auto}.r-sheet::backdrop{background:#112a3970;backdrop-filter:blur(3px)}.r-sheet h2{font-size:23px;font-weight:700}.r-sheet .r-title-row{margin-bottom:18px}.r-sheet svg{max-width:100%}.r-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.r-summary>div{border-radius:16px;background:var(--r-surface);padding:18px;border:1px solid var(--r-sep);font-size:13px}.r-summary b{display:block;font-size:28px;font-weight:600;margin:8px 0}.r-summary small{color:var(--r-muted)}
/* Nine complete days in readable rows, with midnight-to-midnight tracks. */
.activity-grid{display:block}.activity-day{display:grid;grid-template-columns:80px minmax(0,1fr) 66px;gap:8px 16px;align-items:center;border-bottom:1px solid var(--r-sep);padding:16px 0;text-align:left}.activity-day>strong{grid-row:span 3;margin:0;font-size:13px}.activity-track{margin:0;height:10px}.activity-axis-label{display:none}.activity-day small{margin:0;font-size:12px;text-align:right}.activity-day svg{grid-column:2;max-height:40px;min-height:30px}.activity-day .activity-range{grid-column:3;font-size:10px}.activity-period.pump{background:var(--r-teal)}.energy-bars,.energy-bars.monthly{display:flex;align-items:flex-end;gap:4px;height:190px;padding-top:10px}.energy-row{display:flex;flex:1;min-width:0;height:100%;flex-direction:column;justify-content:flex-end;gap:8px;font-size:9px}.energy-row>span{order:2;writing-mode:vertical-rl;height:45px;font-size:9px}.energy-row strong{display:none}.energy-track{height:130px;width:100%;display:flex;flex-direction:column;justify-content:flex-end;background:transparent;border-radius:3px}.energy-track i{height:var(--height);width:100%;flex:none;background:var(--r-teal)}.energy-track i[data-circuit=heater]{background:var(--r-amber)}.r-energy-totals{display:flex;gap:24px;flex-wrap:wrap;margin-top:18px;font-size:13px}.settings-wrap{max-width:1100px!important}.settings-wrap.r-split{display:grid;grid-template-columns:320px minmax(0,1fr);gap:26px;align-items:start}.r-split [data-settings-page=list]{grid-column:1;grid-row:1}.r-split [data-settings-page]:not([data-settings-page=list]){grid-column:2;grid-row:1}.r-split .settings-card{max-width:100%;min-width:0}.settings-row{min-width:0}.settings-row .settings-value{max-width:45%;font-size:11px}.settings-row .settings-title{font-size:14px}.settings-label{margin-top:24px}
/* Dealer inset lists match the mockup's fixed trailing capsule column. */
#view-fleet> .section-head h2{font-size:34px;letter-spacing:-.8px}#fleetCount{display:block;font-size:14px;font-weight:400;letter-spacing:0;margin-top:6px}#view-fleet>.notice{display:none}#view-fleet>.section-head p{display:none}#view-fleet .table-card{background:none;border:0;box-shadow:none;overflow:visible}.r-fleet-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.r-fleet-tools input{width:300px;max-width:100%;background:var(--r-sep);border:0;border-radius:10px;padding:10px}.r-group-title{text-transform:uppercase;letter-spacing:.06em;font-size:12px;color:var(--r-muted);padding:18px 16px 8px}.r-fleet-list{background:var(--r-surface);border-radius:14px;overflow:hidden}.r-fleet-row{display:grid;width:100%;grid-template-columns:12px minmax(100px,1.5fr) 78px 85px 85px 100px 90px 12px;gap:14px;align-items:center;padding:15px 16px;text-align:left;border:0;border-bottom:1px solid var(--r-sep);color:var(--r-fg);background:none;cursor:pointer}.r-fleet-row:hover{background:#0e7c8609}.r-fleet-row>span{min-width:0}.r-fleet-name strong{display:block;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r-fleet-name small{display:block;font-size:12px;color:var(--r-muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r-fleet-temp{font-size:21px;font-weight:600}.r-fleet-temp small,.r-fleet-swim small{display:block;font-size:11px;color:var(--r-muted);font-weight:400}.r-fleet-eq{font-size:13px;color:var(--r-muted)}.r-fleet-eq.active{color:var(--r-amber)}.r-fleet-eq.pump.active{color:var(--r-teal)}.r-fleet-swim{font-size:12px}.r-status-dot{height:10px;width:10px;border-radius:50%;background:var(--r-ok)}.r-status-dot.off{background:none;border:2px solid #a0abb1}.r-alert-column{display:flex;justify-content:flex-end;width:90px}.r-alert-capsule{white-space:nowrap;color:#8c5119;background:#fdf0e1;border-radius:99px;font-size:12px;font-weight:600;padding:4px 8px}.r-alert-capsule.offline{color:var(--r-danger);background:#fbe7e7}.r-offline{color:var(--r-danger)!important}.r-pool-tabs{margin-bottom:20px}#fleetDetailDialog{width:min(660px,calc(100% - 24px));border-radius:20px;max-height:90dvh;background:var(--r-canvas);padding:22px}#fleetDetailDialog .activity-card{padding:16px}#fleetDetailDialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#fleetDetailDialog .form-card{padding:14px}.r-fleet-overview dt{color:var(--r-muted);font-size:12px}.r-fleet-overview dd{margin:5px 0 18px;overflow-wrap:anywhere}
@media(max-width:1100px){.r-fleet-row{grid-template-columns:12px minmax(0,1fr) 72px 90px 12px}.r-fleet-eq,.r-fleet-swim{display:none}}
@media(max-width:700px){.r-header h1{font-size:28px}.r-temperatures{gap:18px}.r-temperature{font-size:64px}.r-card{padding:18px}.settings-wrap.r-split{display:block}.r-split [data-settings-page=list][hidden]{display:none!important}.r-summary{gap:7px}.r-summary>div{padding:12px 8px;font-size:11px}.r-summary b{font-size:23px}.activity-day{grid-template-columns:60px minmax(0,1fr) 58px;gap:7px 10px}.r-seg button{font-size:12px;padding:8px 7px}.r-fleet-row{padding:14px 10px;gap:8px;grid-template-columns:10px minmax(0,1fr) 60px 76px 10px}.r-alert-column{width:76px}.r-alert-capsule{font-size:11px;padding:4px 6px}.r-fleet-temp{font-size:18px}.r-fleet-tools input{width:100%}.r-fleet-tools{align-items:stretch}.r-week-strip button{font-size:11px}.r-temp-side b{font-size:16px}.r-equipment{gap:10px}}
@media(prefers-reduced-motion:reduce){.r-now.heating:before{animation:none;display:none}}

@media(orientation:portrait),(max-width:800px){.r-home-columns{grid-template-columns:1fr}.r-home{max-width:760px}}

.r-fleet-colhead{display:grid;grid-template-columns:12px minmax(100px,1.5fr) 78px 85px 85px 100px 90px 12px;gap:14px;padding:0 16px 8px;color:var(--r-muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}@media(max-width:1100px){.r-fleet-colhead{grid-template-columns:12px minmax(0,1fr) 72px 90px 12px}}@media(max-width:700px){.r-fleet-colhead{grid-template-columns:10px minmax(0,1fr) 60px 76px 10px;gap:8px;padding-inline:10px}}

.settings-row[aria-current=page]{background:var(--r-teal);color:white}.settings-row[aria-current=page] .settings-value{color:white}.activity-axis-label{display:block;top:-2px;left:-45px;font-size:10px;color:var(--r-muted)}.activity-track{margin-left:45px}
/* r83: readable values in every Settings state; explicit ink overrides legacy status capsules. */
.settings-row{background:#fff;color:#0f1d24}
.settings-row .settings-value{color:#48606a;background:transparent!important}
.settings-row:hover,.settings-row:focus-visible,.settings-row[aria-current=page]{background:var(--r-teal)!important;color:#fff!important}
.settings-row:hover>span,.settings-row:focus-visible>span,.settings-row[aria-current=page]>span{color:#fff!important;background:transparent!important}
.r-equipment svg,.r-fleet-eq svg{display:inline-block;width:18px;height:18px;vertical-align:-3px;flex:none}
.r-equipment small{display:block;white-space:normal;line-height:1.4;min-height:2.8em}
.r-temp-side{min-width:0}.r-temp-side b{display:inline-block}
.activity-day{grid-template-columns:68px minmax(0,1fr) 52px 86px;grid-template-rows:16px 16px;gap:6px 12px;padding:12px 0;min-height:64px}
.activity-day>strong{grid-column:1;grid-row:1 / 3}.activity-day>.activity-track{grid-column:2;margin-left:43px}
.activity-day>small:not(.activity-range){grid-column:3;font-size:12px}.activity-day>.activity-range{grid-column:4;grid-row:1 / 3;font-size:13px;line-height:1.4}
.activity-range>span{font-size:11px;color:var(--r-muted)}.activity-axis-label{font-size:11px}
.r-summary b .r-kwh-unit{font-size:.65em;font-weight:500}
#fleetCount{font-family:inherit!important;background:none!important;border:0!important;border-radius:0!important;padding:0!important;color:var(--r-muted)}
.r-warning{color:#9a5a10}
@media(max-width:700px){.activity-day{grid-template-columns:46px minmax(0,1fr) 44px 64px;gap:6px 5px}.activity-day>.activity-range{font-size:11px}.activity-day>.activity-track{margin-left:37px}.activity-axis-label{left:-37px}.settings-row .settings-title{min-width:100px}.r-temperatures{flex-wrap:wrap}}

.r-status{line-height:1.35;min-height:2.7em}.r-now>p{min-height:4.5em}

/* r90: the page and History share one theme, including legacy Tailwind pages. */
body.bg-mist{background:var(--r-canvas);color:var(--r-fg)}
.r-summary>div,.activity-card{background:var(--r-surface);color:var(--r-fg);border-color:var(--r-sep)}
.activity-card p,.activity-day small,.activity-axis-label,.r-summary small{color:var(--r-muted)}
.activity-day>strong,.r-summary b{color:var(--r-fg)}
.activity-track{background:var(--r-sep)}
.activity-cells{display:grid;grid-template-columns:repeat(96,minmax(0,1fr));gap:0;position:absolute;inset:0;border-radius:inherit;overflow:hidden}
.activity-cell{display:block;min-width:0;height:100%;background:#d6a642}
.activity-cell.pump{background:var(--r-teal)}
.activity-switch button{background:var(--r-canvas);color:var(--r-fg);border-color:var(--r-sep)}
.activity-switch button[aria-pressed=true]{background:#0b3954;color:#fff}

/* r94: booth light appearance and shared legacy text/accent palette.
   Keep decorative fills/strokes intact; these aliases govern text and buttons. */
:root{--muted:var(--r-muted);--aqua-dark:var(--r-teal);--r-danger:#a32b23}
.text-slate-300,.text-slate-400,.text-slate-500,.muted,.sku,.sg-grid .sgh,.sg-grid .sgl,
.settings-label,.settings-switcher,#addModal .hint{color:var(--r-muted)!important}
.text-aquadark,.settings-back,.activity-legend{color:var(--r-teal)!important}
.bg-aqua,#addModal .apx.p{background:var(--r-teal)!important}
.settings-delete{color:var(--r-danger)}
/* Captured chart labels have inline fills, separate from decorative strokes. */
svg text{fill:var(--r-muted)!important}
/* The captured commissioning success badge uses the same success ink. */
[style*="color:#1d8a4e"]{color:var(--r-ok)!important}

.status.declined,.status.no_response,.status.lost,.status.none,.status.expired{color:var(--r-muted)}

/* r96: shared error ink and paid status need margin above 4.5:1. */
.text-red-500{color:var(--r-danger)!important}
.status.paid,.status.delivered{color:var(--r-ok)}
