/* Enable Homes: the Enable blue, white cards on a grey ground, a header and a four-tab bar. */
:root { --blue: #1571b9; --ink: #222; --muted: #6c757d; --line: #eef0f2; --bg: #e9ecef; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--blue); }
.text-muted { color: var(--muted); }

.homes-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--blue); font-weight: 700; font-size: 20px; }
.homes-disc { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: block; }
.homes-loading .homes-disc { width: 64px; height: 64px; }

.homes-top { position: sticky; top: 0; z-index: 10; background: var(--blue); color: #fff; height: calc(72px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.homes-menu { color: #fff; font-size: 26px; justify-self: start; }
.homes-brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -.5px; }
.homes-brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0; margin-top: -4px; opacity: .9; }
.homes-who { font-size: 30px; justify-self: end; }
.homes-signin { justify-self: end; color: #fff; font-weight: 600; text-decoration: none; border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; padding: 6px 14px; }

.homes-main { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
.homes-card { background: #fff; border-radius: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 22px; margin-bottom: 16px; }
.homes-card h2, .homes-card h3 { margin: 0 0 6px; font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.homes-card h2 i { color: var(--blue); font-size: 20px; }
.homes-card p { margin: 0 0 14px; line-height: 1.5; }
.homes-grow { flex: 1 1 auto; min-width: 0; }
.homes-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; border-radius: 12px; padding: 12px 18px; }
.homes-link { display: inline-block; margin-left: 14px; font-weight: 600; }

.homes-hero { background: #fff; border-radius: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 36px 24px; text-align: center; }
.homes-hero-mark { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; background: #e8f1fa; color: var(--blue); display: grid; place-items: center; font-size: 38px; }
.homes-hero h1 { font-size: 30px; margin: 0 0 10px; }
.homes-hero p { color: var(--muted); line-height: 1.55; margin: 0 auto 22px; max-width: 46ch; }
.homes-hero .homes-link { display: block; margin: 16px 0 0; }

.homes-hub, .homes-device { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.homes-hub:last-child, .homes-device:last-child { border-bottom: 0; }
.homes-hub h6, .homes-device h6 { margin: 0; font-size: 17px; font-weight: 700; }
.homes-hub small, .homes-device small { font-size: 13px; }
.homes-hub-logo { width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff; font-size: 22px; }
.homes-device-ico { width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e8f1fa; color: var(--blue); font-size: 20px; }
.homes-reading { font-size: 20px; font-weight: 800; text-align: right; white-space: nowrap; }
.homes-reading small { display: block; font-size: 12px; font-weight: 600; color: var(--blue); }
.homes-pill { border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.homes-pill.on { background: #e3f1ea; color: #1b7f4a; }
.homes-pill.soon { background: #eef2f6; color: #5c6b7a; }

.homes-nav { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #e3e6ea; display: flex; justify-content: space-around; padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); }
.homes-nav a { color: #8a94a0; text-decoration: none; text-align: center; font-size: 12px; font-weight: 600; display: grid; gap: 4px; justify-items: center; }
.homes-nav a i { font-size: 22px; }
.homes-nav a.active { color: var(--blue); }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: .6rem 1.25rem .7rem; background: #fff3cd; color: #664d03; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.homes-btn { border: 0; font-size: 16px; cursor: pointer; justify-content: center; }
.homes-btn:disabled { opacity: .6; }
.homes-wide { width: 100%; margin-top: 18px; }
.homes-quiet { background: #e8f1fa; color: var(--blue); }
.homes-row { display: flex; gap: 10px; flex-wrap: wrap; }
.homes-label { display: block; font-weight: 600; margin: 16px 0 8px; }
.homes-input { width: 100%; box-sizing: border-box; border: 1px solid #dee2e6; border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; }
.homes-photo { position: relative; display: grid; place-items: center; gap: 8px; min-height: 140px; border: 2px dashed #dee2e6; border-radius: 14px; background: #f8f9fa; color: var(--muted); cursor: pointer; overflow: hidden; }
.homes-photo i { font-size: 32px; }
.homes-photo img, .homes-place-photo { width: 100%; max-height: 220px; object-fit: cover; }
.homes-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.homes-place-photo { border-radius: 14px; margin-bottom: 14px; display: block; }
.homes-error { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #b02a37; }
/* The thermostat dial (#5000), as Enable App draws it, in Enable Homes' blue. */
.thermostat { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.thermostat-row { display: flex; align-items: center; gap: 12px; }
.thermostat-dial { position: relative; width: min(260px, 60vw); aspect-ratio: 1; }
.thermostat-dial svg { width: 100%; height: 100%; display: block; }
.thermostat-dial .track { fill: none; stroke: #dee2e6; stroke-width: 10; stroke-linecap: round; }
.thermostat-dial .fill { fill: none; stroke: var(--blue); stroke-width: 10; stroke-linecap: round; }
.thermostat-dial .knob { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.thermostat-dial .tick { fill: var(--muted); }
.running .thermostat-dial .fill { filter: drop-shadow(0 0 5px var(--blue)); }
.thermostat-read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.thermostat-setpoint { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.thermostat-setpoint small { font-size: 24px; vertical-align: top; font-weight: 500; }
.thermostat-sub { color: var(--muted); margin-top: 6px; }
.thermostat-state { color: var(--blue); font-size: 14px; margin-top: 10px; min-height: 20px; display: flex; gap: 6px; align-items: center; }
.off .thermostat-setpoint, .off .thermostat-state { color: var(--muted); }
.thermostat-up, .thermostat-down { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: 1px solid #dee2e6; background: #fff; color: var(--blue); font-size: 18px; cursor: pointer; }
.thermostat-up:disabled, .thermostat-down:disabled { opacity: .4; }
.thermostat-modes { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #dee2e6; border-radius: 999px; }
.thermostat-modes button { border: none; border-radius: 999px; padding: 7px 14px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.thermostat-modes button.active { background: var(--blue); color: #fff; }
.homes-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; margin: 0 0 12px 4px; font-size: 18px; }
.homes-room { margin: 18px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.homes-facts { margin: 0; }
.homes-facts dt { font-weight: 700; margin-top: 12px; }
.homes-facts dd { margin: 2px 0 0; color: var(--muted); }
.homes-hub .homes-btn { white-space: nowrap; flex: none; }
.homes-who-photo, .homes-who-initials { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; object-fit: cover; border: 2px solid #fff; vertical-align: middle; }
.homes-who-initials { font-size: 16px; font-weight: 700; background: rgba(255,255,255,.2); }
