:root {
    --ink: #142322;
    --muted: #66736f;
    --paper: #f4f1e9;
    --card: #fffdf7;
    --deep: #16302f;
    --deep-2: #21403d;
    --mint: #93c9b8;
    --mint-light: #dcece5;
    --orange: #f27b4b;
    --orange-light: #f9d8c8;
    --line: rgba(20, 35, 34, 0.12);
    --shadow: 0 24px 70px rgba(20, 35, 34, 0.09);
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.boot-screen {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 18px;
    color: var(--muted);
}

.boot-mark, .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: white;
    font: 800 20px/1 Georgia, serif;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }

/* Login */
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 46%) 1fr;
    background: var(--deep);
}

.login-card {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: clamp(28px, 6vw, 84px);
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-radius: 0 42px 42px 0;
}

.login-brand, .brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.login-brand h1 { margin: 0; font: 700 24px/1.05 Georgia, serif; }
.login-brand .eyebrow { margin-bottom: 3px; }

.login-copy { margin: auto 0 48px; max-width: 560px; }
.login-copy h2 {
    margin-bottom: 22px;
    font: 500 clamp(47px, 6vw, 82px)/.98 Georgia, serif;
}
.login-copy > p:last-child {
    max-width: 450px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.login-form { max-width: 560px; }
.login-form label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.password-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.password-row input, .signal-search input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--card);
    color: var(--ink);
    outline: none;
}
.password-row input { min-height: 55px; padding: 0 17px; font-size: 18px; }
.password-row input:focus, .signal-search:focus-within { border-color: var(--deep-2); box-shadow: 0 0 0 3px rgba(33,64,61,.11); }
.primary-button {
    min-height: 55px;
    padding: 0 22px;
    border: 0;
    border-radius: 15px;
    background: var(--deep);
    color: white;
    font-weight: 800;
    cursor: pointer;
}
.primary-button:hover { background: var(--deep-2); }
.primary-button span { margin-left: 12px; }
.primary-button:disabled { opacity: .55; cursor: wait; }

.login-atmosphere { position: relative; overflow: hidden; min-height: 100vh; }
.login-atmosphere::before {
    content: "";
    position: absolute;
    width: min(56vw, 730px);
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 34%, #b8ddce 0 7%, #70af9c 28%, #2f625a 58%, #173230 72%);
    box-shadow: 0 0 120px rgba(136,205,184,.16);
}
.orbit { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; }
.orbit-one { width: min(65vw, 850px); aspect-ratio: 1; }
.orbit-two { width: min(77vw, 1040px); aspect-ratio: 1; }
.atmosphere-reading { position: absolute; left: 50%; top: 48%; translate: -50% -50%; color: white; font: 400 clamp(60px, 9vw, 132px)/1 Georgia, serif; letter-spacing: -.07em; }
.atmosphere-label { position: absolute; left: 50%; top: calc(48% + 92px); translate: -50% 0; color: rgba(255,255,255,.63); font-size: 11px; font-weight: 800; letter-spacing: .19em; }

/* Application frame */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 30px 23px 24px;
    display: flex;
    flex-direction: column;
    background: var(--deep);
    color: white;
}
.brand { padding: 0 7px; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font: 700 21px/1.15 Georgia, serif; }
.brand-copy span { color: rgba(255,255,255,.52); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.main-nav { display: grid; gap: 5px; margin-top: 62px; }
.nav-button {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: rgba(255,255,255,.6);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.nav-button:hover { color: white; background: rgba(255,255,255,.06); }
.nav-button.is-active { color: white; background: rgba(255,255,255,.12); }
.nav-icon { width: 28px; font: 600 21px/1 Georgia, serif; text-align: center; }
.sidebar-foot { display: grid; gap: 9px; margin-top: auto; }
.history-link, .quiet-button {
    min-height: 45px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
}
.history-link { background: var(--mint); color: var(--deep); font-weight: 800; }
.history-link:hover { background: #a9dacb; }
.quiet-button { justify-content: flex-start; background: transparent; color: rgba(255,255,255,.48); }
.quiet-button:hover { color: white; }

.main-content { min-width: 0; padding: 35px clamp(25px, 5vw, 72px) 72px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 39px; }
.topbar h1 { margin: 0; font: 500 clamp(32px, 4vw, 53px)/1.05 Georgia, serif; }
.connection-cluster { display: flex; align-items: center; gap: 8px; }
.refresh-button {
    width: 43px;
    height: 43px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}
.refresh-button:hover { background: var(--card); }
.connection-pill { min-width: 156px; height: 43px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.42); }
.connection-pill > span:last-child { display: flex; flex-direction: column; }
.connection-pill strong { font-size: 12px; }
.connection-pill small { color: var(--muted); font-size: 9px; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #c89535; box-shadow: 0 0 0 4px rgba(200,149,53,.13); }
.connection-live .connection-dot { background: #42a57e; box-shadow: 0 0 0 4px rgba(66,165,126,.13); }
.connection-offline .connection-dot { background: #d95f50; box-shadow: 0 0 0 4px rgba(217,95,80,.13); }

/* Overview */
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.hero-card { position: relative; min-height: 320px; padding: 33px; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow); }
.climate-hero { background: var(--orange-light); }
.climate-hero > p:not(.eyebrow) { color: #875542; }
.hero-reading { display: flex; align-items: flex-start; margin: 22px 0 2px; }
.hero-reading strong { font: 500 clamp(72px, 9vw, 118px)/.9 Georgia, serif; letter-spacing: -.075em; }
.hero-reading span { margin: 4px 0 0 8px; font: 500 27px/1 Georgia, serif; }
.hero-rings { position: absolute; width: 280px; height: 280px; right: -70px; bottom: -92px; }
.hero-rings i { position: absolute; inset: 0; border: 1px solid rgba(132,66,39,.14); border-radius: 50%; }
.hero-rings i:nth-child(2) { inset: 32px; }
.hero-rings i:nth-child(3) { inset: 64px; background: rgba(255,255,255,.15); }

.heatpump-hero { display: flex; flex-direction: column; background: var(--deep); color: white; }
.heatpump-hero .eyebrow { color: rgba(255,255,255,.52); }
.heatpump-hero h2 { margin: 0; font: 500 38px/1 Georgia, serif; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.state-lamp { width: 15px; height: 15px; border-radius: 50%; background: #677b77; box-shadow: 0 0 0 7px rgba(255,255,255,.05); }
.heatpump-hero.is-on .state-lamp { background: #8bd6b6; box-shadow: 0 0 22px rgba(139,214,182,.7), 0 0 0 7px rgba(139,214,182,.1); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: auto 0 32px; }
.hero-stats span { display: flex; flex-direction: column; gap: 5px; }
.hero-stats small { color: rgba(255,255,255,.45); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.hero-stats strong { font: 500 25px/1 Georgia, serif; }
.capitalize { text-transform: capitalize; }
.text-button { padding: 0; border: 0; background: transparent; color: inherit; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.text-button span { margin-left: 8px; }
.heatpump-hero .text-button { align-self: flex-start; color: var(--mint); }

.section-block { margin-top: 44px; }
.section-title { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-title h2 { margin: 0; font: 500 27px/1.1 Georgia, serif; }
.section-count { padding: 7px 11px; border-radius: 99px; background: var(--mint-light); color: #35675b; font-size: 11px; font-weight: 800; }
.sensor-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; padding: 2px 2px 15px; scrollbar-width: thin; }
.sensor-mini { min-height: 170px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.45); }
.sensor-id { display: inline-flex; min-width: 33px; height: 25px; padding: 0 8px; align-items: center; justify-content: center; border-radius: 8px; background: var(--mint-light); color: #34685c; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.sensor-mini h3 { min-height: 34px; margin: 18px 0 15px; font-size: 14px; }
.sensor-mini strong { display: block; font: 500 32px/1 Georgia, serif; }
.sensor-mini small { color: var(--muted); font-size: 10px; }
.stat-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { padding: 20px; display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.stat-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--orange-light); color: #aa4b28; font: 600 20px/1 Georgia, serif; }
.stat-card div { display: flex; flex-direction: column; }
.stat-card small { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.stat-card strong { margin-top: 3px; font-size: 18px; }

/* Climate */
.climate-section { margin-top: 0; }
.sensor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.sensor-card { min-height: 235px; padding: 22px; border: 1px solid var(--line); border-radius: 21px; background: var(--card); box-shadow: 0 12px 40px rgba(20,35,34,.035); }
.sensor-card-head { display: flex; justify-content: space-between; }
.tiny-status { width: 7px; height: 7px; border-radius: 50%; background: #52af89; box-shadow: 0 0 0 4px rgba(82,175,137,.1); }
.sensor-card h3 { margin: 20px 0 19px; font-size: 16px; }
.temperature-reading { display: flex; align-items: flex-start; }
.temperature-reading strong { font: 500 52px/.9 Georgia, serif; letter-spacing: -.06em; }
.temperature-reading span { margin: 2px 0 0 4px; font: 500 17px/1 Georgia, serif; }
.humidity-line { margin-top: 21px; color: var(--muted); font-size: 11px; }
.humidity-drop { margin-right: 6px; color: #58a2a9; font-size: 9px; }
.sensor-card.is-unavailable { opacity: .43; box-shadow: none; }
.sensor-card.is-unavailable .tiny-status { background: #999; box-shadow: none; }

/* Heat pump */
.heatpump-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .7fr); gap: 16px; }
.control-card, .photo-card { border: 1px solid var(--line); border-radius: 23px; background: var(--card); box-shadow: 0 15px 45px rgba(20,35,34,.045); }
.control-card { padding: 27px; }
.thermostat-card { grid-row: span 2; }
.control-card h2 { margin: 0; font: 500 29px/1.1 Georgia, serif; }
.power-button { width: 52px; height: 52px; border: 0; border-radius: 16px; background: #e9e8e2; color: #989b95; cursor: pointer; }
.power-button.is-on { background: var(--orange); color: white; box-shadow: 0 10px 27px rgba(242,123,75,.3); }
.target-control { margin: 36px 0; display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; text-align: center; }
.target-control > button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 27px; cursor: pointer; }
.target-control > button:hover { background: var(--paper); }
.target-control > div { display: flex; flex-direction: column; }
.target-control > div > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.target-control strong { font: 500 70px/.95 Georgia, serif; letter-spacing: -.07em; }
.target-control strong small { margin-left: 5px; font-size: 22px; letter-spacing: 0; }
.control-group + .control-group { margin-top: 23px; }
.control-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.segmented-control { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 5px; border-radius: 15px; background: #eeece5; }
.segmented-control.compact { grid-template-columns: repeat(4, 1fr); }
.segmented-control button { min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.segmented-control button.is-active { background: var(--card); color: var(--ink); box-shadow: 0 3px 12px rgba(20,35,34,.08); }
.heatpump-side { display: grid; gap: 16px; }
.readings-card .eyebrow { margin-bottom: 14px; }
.reading-list { display: grid; gap: 12px; }
.reading-list div { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.reading-list div:last-child { border: 0; padding-bottom: 0; }
.reading-list span { color: var(--muted); font-size: 12px; }
.reading-list strong { font: 500 21px/1 Georgia, serif; }
.photo-card { position: relative; min-height: 170px; overflow: hidden; cursor: pointer; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; filter: saturate(.8) contrast(.95); }
.photo-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(11,24,23,.8)); }
.photo-card > span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 17px; display: flex; justify-content: space-between; color: white; font-size: 12px; font-weight: 800; }
.automation-card, .danger-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.automation-card p:last-child, .danger-card p:last-child { max-width: 440px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.toggle { min-width: 91px; padding: 7px 11px 7px 7px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 99px; background: #e8e7e1; color: var(--muted); cursor: pointer; }
.toggle span { width: 29px; height: 29px; border-radius: 50%; background: white; box-shadow: 0 2px 7px rgba(20,35,34,.13); }
.toggle b { font-size: 11px; }
.toggle.is-on { background: var(--mint); color: var(--deep); }
.toggle.danger.is-on { background: var(--orange); color: white; }
.photo-dialog { position: fixed; z-index: 30; inset: 0; padding: 30px; display: none; place-items: center; background: rgba(9,20,19,.88); }
.photo-dialog.is-open { display: grid; }
.photo-dialog img { max-width: 95vw; max-height: 90vh; object-fit: contain; border-radius: 15px; }
.photo-dialog button { position: absolute; top: 20px; right: 25px; border: 0; background: transparent; color: white; font-size: 42px; cursor: pointer; }

/* Systems */
.switch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; }
.switch-card { min-height: 230px; padding: 23px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 21px; background: var(--card); }
.switch-icon { width: 39px; height: 39px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 12px; background: #e9e8e2; color: #868c87; }
.switch-card.is-on .switch-icon { background: var(--mint-light); color: #34705f; }
.switch-card h3 { margin-bottom: 6px; font-size: 19px; }
.switch-card p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.switch-card > button { min-height: 42px; border: 0; border-radius: 12px; background: var(--deep); color: white; font-size: 12px; font-weight: 800; cursor: pointer; }
.switch-card > button:hover { background: var(--deep-2); }
.switch-card > button:disabled { opacity: .45; cursor: wait; }
.power-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 22px; background: var(--card); overflow: hidden; }
.power-grid > div { min-height: 130px; padding: 25px 20px; display: flex; align-items: baseline; flex-wrap: wrap; align-content: center; border-right: 1px solid var(--line); }
.power-grid > div:last-child { border: 0; }
.power-grid small { flex-basis: 100%; margin-bottom: 11px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.power-grid strong { font: 500 29px/1 Georgia, serif; }
.power-grid span { margin-left: 5px; color: var(--muted); font-size: 11px; }
.signal-search { height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.signal-search span { color: var(--muted); font-size: 20px; }
.signal-search input { width: 100%; border: 0; background: transparent; }
.signal-search input:focus { box-shadow: none; }
.signal-table { margin-top: 11px; max-height: 510px; overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.signal-row { min-height: 43px; padding: 8px 14px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(100px, .45fr); align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.signal-row:last-child { border: 0; }
.signal-row code { overflow-wrap: anywhere; color: #375b57; font-size: 11px; }
.signal-row span { overflow: hidden; color: var(--muted); font-size: 11px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.mobile-nav { display: none; }
.notifications { position: fixed; z-index: 50; top: 18px; right: 18px; display: grid; gap: 8px; pointer-events: none; }
.notification { min-width: 210px; max-width: 360px; padding: 13px 16px; transform: translateY(-10px); opacity: 0; border-radius: 12px; background: var(--deep); color: white; box-shadow: 0 10px 35px rgba(0,0,0,.2); transition: .22s ease; }
.notification-error { background: #a74439; }
.notification.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1000px) {
    .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
    .sidebar { padding-inline: 16px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { min-height: 285px; }
    .heatpump-layout { grid-template-columns: 1fr; }
    .thermostat-card { grid-row: auto; }
    .heatpump-side { grid-template-columns: 1fr 1fr; }
    .power-grid { grid-template-columns: repeat(3, 1fr); }
    .power-grid > div:nth-child(3) { border-right: 0; }
    .power-grid > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
    body { padding-bottom: 72px; }
    .login-shell { display: block; background: var(--paper); }
    .login-card { min-height: 100vh; padding: 27px 22px 35px; border-radius: 0; }
    .login-copy { margin-top: auto; }
    .login-copy h2 { font-size: 50px; }
    .login-atmosphere { display: none; }
    .password-row { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .app-shell { display: block; }
    .main-content { padding: 25px 16px 40px; }
    .topbar { align-items: flex-start; margin-bottom: 28px; }
    .topbar h1 { font-size: 36px; }
    .connection-pill { min-width: 0; width: 43px; justify-content: center; padding: 0; }
    .connection-pill > span:last-child { display: none; }
    .hero-card { min-height: 275px; padding: 25px; border-radius: 22px; }
    .hero-reading strong { font-size: 82px; }
    .sensor-strip { grid-auto-columns: 160px; }
    .stat-grid { grid-template-columns: 1fr; }
    .sensor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .sensor-card { min-height: 207px; padding: 17px; }
    .sensor-card h3 { min-height: 36px; margin-block: 15px; }
    .temperature-reading strong { font-size: 43px; }
    .heatpump-side { grid-template-columns: 1fr; }
    .control-card { padding: 21px; }
    .target-control { grid-template-columns: 46px 1fr 46px; }
    .target-control > button { width: 42px; height: 42px; }
    .target-control strong { font-size: 60px; }
    .segmented-control { overflow-x: auto; grid-template-columns: repeat(5, minmax(62px, 1fr)); }
    .automation-card, .danger-card { align-items: flex-start; }
    .power-grid { grid-template-columns: repeat(2, 1fr); }
    .power-grid > div { min-height: 110px; border-bottom: 1px solid var(--line); }
    .power-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
    .power-grid > div:nth-child(even) { border-right: 0; }
    .power-grid > div:last-child { border-bottom: 0; }
    .signal-row { grid-template-columns: 1fr; gap: 3px; }
    .signal-row span { text-align: left; }
    .mobile-nav { position: fixed; z-index: 15; left: 10px; right: 10px; bottom: 9px; height: 62px; padding: 5px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.08); border-radius: 19px; background: rgba(22,48,47,.96); box-shadow: 0 15px 40px rgba(0,0,0,.25); backdrop-filter: blur(15px); }
    .mobile-nav button { border: 0; border-radius: 14px; display: grid; place-content: center; gap: 2px; background: transparent; color: rgba(255,255,255,.48); cursor: pointer; }
    .mobile-nav button.is-active { background: rgba(255,255,255,.12); color: white; }
    .mobile-nav button span { font: 600 19px/1 Georgia, serif; }
    .mobile-nav button small { font-size: 8px; font-weight: 800; }
}

@media (max-width: 420px) {
    .sensor-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 6px; }
    .hero-stats strong { font-size: 20px; }
    .automation-card, .danger-card { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
