html, body {
    margin: 0;
    background: #fff;
}

@font-face {
    font-family: "Anton";
    src: url("/arial/fonts/anton.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DSEG7 Classic";
    src: url("/arial/fonts/dseg7-classic-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DSEG14 Classic";
    src: url("/arial/fonts/dseg14-classic-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.logo {
    display: none;
}

:root {
    --arial-col: min(92vw, 416px);
}
@media (min-width: 700px) {
    :root { --arial-col: min(92vw, 480px); }
}

.pad-wrap {
    position: sticky;
    top: 0;
    z-index: 20; /* full-width white bar; cards scroll under and cannot show through */
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2px 0 8px;
    box-sizing: border-box;
    background: #fff;
}

.pad-clip {
    position: relative;
    width: var(--arial-col);
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
}

.pad {
    position: relative;
    width: 100%;
    aspect-ratio: 368 / 427;
    clip-path: url(#deviceClip);
}

.pad-wrap.compact .pad-clip {
    position: relative;
    overflow: hidden;
    aspect-ratio: 368 / 199;
}

.pad-wrap.compact .hot-more,
.pad-wrap.compact .shell-cover,
.pad-wrap.compact #led-ac,
.pad-wrap.compact .led.ac {
    display: none !important;
}

.pad-wrap.compact .pad {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    pointer-events: none;
}

.pad-wrap.compact .hot {
    pointer-events: auto;
}

.shell-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
}

.brand-slot {
    position: absolute;
    left: -2.8%;
    top: -0.9%;
    width: 105.6%;
    height: 13.1%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    isolation: isolate;
    background: transparent;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    transform: scale(0.77);
}

.lcd {
    position: absolute;
    left: 12.6%;
    top: 12.10%;
    width: 74.8%;
    height: 17.47%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #1820b8 0%, #2810c8 100%);
    color: #00bfff;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.15;
    text-shadow: 0 0 3px rgba(0, 191, 255, 0.45);
    padding: 6px 7px 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    z-index: 2;
    border-radius: 8px;
    border: 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lcd.armed {
    background: #ff1a1a;
    color: #fff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.45);
}

.lcd.arming {
    background: #ff9900;
    color: #fff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.45);
}

.lcd.disarmed {
    background: #12b028;
    color: #fff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.35);
}

.lcd.armed #lcd-2,
.lcd.arming #lcd-2,
.lcd.disarmed #lcd-2 {
    font-family: Anton, Impact, "Arial Black", sans-serif;
    font-weight: 400;
    font-size: 32px;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.lcd.armed #lcd-2 {
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
    animation: lcdTextFlashSlow 6s ease-in-out infinite;
}

.lcd.arming #lcd-2 {
    animation: lcdTextFlash 1.2s step-end infinite;
}

.lcd.arming-fast #lcd-2 {
    animation: lcdTextFlash 0.22s step-end infinite;
}

.lcd.disarmed.zone-open #lcd-2 {
    animation: none;
}

.lcd.disarmed:not(.zone-open) #lcd-2,
.lcd.disarmed:not(.zone-open) #lcd-status-main,
.lcd.disarmed:not(.zone-open) #lcd-status-issue {
    animation: none;
}

.lcd.disarmed.zone-open #lcd-status-issue,
.lcd.has-trouble #lcd-status-issue {
    color: #ffe14d;
    animation: lcdTextFlash 1.15s step-end infinite;
}

.lcd.hold-disarmed #lcd-2,
.lcd.hold-disarmed #lcd-status-main {
    animation: lcdTextFlash 1.15s step-end infinite !important;
}

.lcd.hold-disarmed #lcd-status-issue {
    animation: none !important;
}

.lcd.login-error {
    background: #ff1a1a;
    color: #fff;
}

.lcd.login-error #lcd-2,
.lcd.login-error #lcd-status-main {
    animation: lcdTextFlashSlow 6s ease-in-out infinite;
}

.lcd.login-error #lcd-status-issue {
    animation: lcdTextFlash 0.22s step-end infinite;
}

.lcd.login-error #lcd-status-issue::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 13px solid #ffe14d;
    margin-right: 7px;
    vertical-align: 2px;
    position: relative;
}

.lcd.login-error #lcd-status-issue::after {
    content: "!";
    display: inline-block;
    width: 13px;
    margin-left: -20px;
    margin-right: 10px;
    color: #111;
    font-size: 11px;
    font-weight: 900;
    line-height: 13px;
    vertical-align: 3px;
    position: relative;
}

@keyframes lcdTextFlash {
    50% { opacity: 0; }
}

@keyframes lcdTextFlashSlow {
    0%, 74% { opacity: 1; }
    88% { opacity: 0; }
    92% { opacity: 0; }
    100% { opacity: 1; }
}

#lcd-top {
    position: relative;
    z-index: 1;
    white-space: nowrap;
    font-weight: 900;
}

.lcd-toprow {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    z-index: 2;
}

#lcd-2 {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: auto;
    height: auto;
    min-height: 28px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-align: center;
    font-family: Anton, Impact, "Arial Black", sans-serif;
    font-weight: 400;
    font-size: 32px;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: visible;
    padding: 6px 0 2px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

#lcd-status-main,
#lcd-status-issue {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    padding-top: 0.12em;
}

#lcd-status-issue {
    font-size: 15px;
    letter-spacing: 0.08em;
    line-height: 1;
}

#lcd-status-issue[hidden] {
    display: none;
}

.lcd-head {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    flex: 0 0 42%;
    max-width: 48%;
    align-self: stretch;
    min-height: 0;
    text-align: right;
    gap: 0;
    z-index: 1;
}

#lcd-site,
#lcd-date,
#lcd-time {
    display: block;
    width: auto;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
}

#lcd-site {
    font-size: 13.75px;
    font-weight: 900;
}

.lcd-mid {
    position: absolute;
    left: 7px;
    bottom: 3px;
    right: 52%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    min-height: 0;
    flex: none;
    z-index: 1;
    padding: 0;
}

#lcd-user-logo {
    display: none;
    position: absolute;
    right: 6px;
    top: 52%;
    bottom: auto;
    height: 44%;
    width: auto;
    max-width: 40%;
    margin: 0;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #fff);
    z-index: 6;
}

.lcd.logged-in #lcd-user-logo {
    display: block;
}

/* Users without a company logo show their name in the logo slot. */
#lcd-user-name {
    position: absolute;
    right: 6px;
    top: 52%;
    height: 44%;
    max-width: 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    z-index: 6;
}

#lcd-user-name[hidden] {
    display: none;
}

.lcd.credits-playing #lcd-user-name {
    opacity: 0;
}

.lcd.logged-in.logo-in #lcd-user-name {
    animation: logoRollIn 1.5s ease-out forwards;
}

.lcd.credits-playing #lcd-user-logo {
    opacity: 0;
}

.lcd.hero-credits #lcd-2 {
    opacity: 0;
    visibility: hidden;
}

.lcd.logged-in.logo-in #lcd-user-logo {
    animation: logoRollIn 1.5s ease-out forwards;
}

@keyframes logoRollIn {
    0% { opacity: 0; clip-path: inset(0 0 0 100%); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

#lcd-welcome {
    flex: 1;
    min-width: 0;
    align-self: flex-end;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1;
    display: block;
}

.lcd.login-error #lcd-welcome {
    visibility: hidden;
}

#lcd-welcome.credits {
    position: absolute;
    left: 2px;
    right: auto;
    top: auto;
    bottom: 0;
    z-index: 3;
    flex: none;
    max-width: none;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    overflow: visible;
    clip-path: inset(0 100% 0 0);
}

#lcd-welcome.credits.credit-across {
    animation: welcomeAcross 1.8s ease-out forwards;
}

#lcd-welcome.credits.credit-out {
    animation: welcomeBackLeft 1.5s ease-in forwards;
}

@keyframes welcomeAcross {
    0% {
        transform: translateX(0);
        clip-path: inset(0 100% 0 0);
        opacity: 1;
    }
    100% {
        transform: translateX(var(--welcome-x, 0px));
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes welcomeBackLeft {
    0% {
        transform: translateX(var(--welcome-x, 0px));
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
}

#lcd-when {
    display: none;
}

.led {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    width: 5.0%;
    height: 2.6%;
    left: 8.4%;
    border-radius: 50%;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--led-fill, #c8ccd0);
    border: 1px solid var(--led-edge, #6f7578);
    opacity: 1;
    box-shadow: none;
    filter: none;
}

.led.ac {
    top: 45.2%;
    --led-fill: #1565c0;
    --led-edge: #0d47a1;
}

.led.link {
    top: 49.0%;
    --led-fill: #c8ccd0;
    --led-edge: #6f7578;
}

.led.link.on {
    /* Olarm unit online with the cloud: WiFi normally, SIM fallback */
    --led-fill: #1e88e5;
    --led-edge: #0d47a1;
    box-shadow: 0 0 4px rgba(30, 136, 229, 0.8);
}

.led.link.flash {
    --led-fill: #e20b0b;
    --led-edge: #9a0000;
    animation: ledflash 1.15s step-end infinite;
}

.led-link-label {
    position: absolute;
    z-index: 4;
    left: 8.4%;
    top: 51.7%;
    width: 5.0%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 5px;
    line-height: 1;
    text-align: center;
    color: #2b2f31;
    pointer-events: none;
}

.led.ac.on {
    --led-fill: #12c01a;
    --led-edge: #0b7a12;
    animation: none;
}

.led.ac.flash {
    --led-fill: #e20b0b;
    --led-edge: #9a0000;
    animation: ledflash 1.15s step-end infinite;
}

.led.status {
    top: 38.9%;
}

.led-status-label {
    position: absolute;
    z-index: 4;
    left: 8.4%;
    top: 41.6%;
    width: 5.0%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0;
    color: #333;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    pointer-events: none;
}

.lcd.armed ~ .led.status,
.led.status.armed {
    --led-fill: #e20b0b;
    --led-edge: #9a0000;
    animation: none;
}

.lcd.alarm ~ .led.status,
.led.status.alarm {
    --led-fill: #e20b0b;
    --led-edge: #9a0000;
    animation: ledAlarmSwap 0.5s step-end infinite;
}

.lcd.arming ~ .led.status,
.led.status.arming {
    --led-fill: #ff8a00;
    --led-edge: #b35f00;
    animation: ledflash 1.2s step-end infinite;
}

.lcd.arming-fast ~ .led.status,
.led.status.arming.flash-fast,
.lcd.arming-fast ~ .led.status.arming {
    animation: ledflash 0.22s step-end infinite;
}

.lcd.disarmed ~ .led.status,
.led.status.disarmed {
    --led-fill: #12c01a;
    --led-edge: #0a8a10;
    animation: none;
}

.lcd.disarmed.zone-open ~ .led.status,
.led.status.disarmed.flash {
    --led-fill: #12c01a;
    --led-edge: #0a8a10;
    animation: ledflash 0.7s step-end infinite;
}

.led.ac.flash {
    animation: ledflash 0.7s step-end infinite;
}

@keyframes ledAlarmSwap {
    0%, 49% {
        background: #e20b0b;
        border-color: #9a0000;
    }
    50%, 100% {
        background: #12c01a;
        border-color: #0a8a10;
    }
}

@keyframes ledflash {
    50% { opacity: 0; }
}

.hot {
    position: absolute;
    z-index: 3;
    border: 1.2px solid #5e6b70;
    padding: 0;
    margin: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    color: #153e7a;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow:
        0 2px 3px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hot:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.16);
    filter: brightness(0.94);
}

.key-fn {
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbfc 0%, #dfe6e9 52%, #c7d0d4 100%);
    font-size: 10px;
}

.key-fn::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 3px;
    height: 38%;
    border-radius: 8px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
}

.hot[data-key="STAY"] .key-label.two-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    line-height: 1.05;
    text-align: center;
}

.hot[data-key="STAY"] .key-label.two-line .kl-1 { font-size: 8px; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.hot[data-key="STAY"] .key-label.two-line .kl-2 { font-size: 7.5px; font-weight: 800; text-transform: uppercase; }

.hot[data-key="STAY"].light-on {
    background: linear-gradient(180deg, #fff2c2 0%, #ffcc33 52%, #f2a600 100%);
    box-shadow: 0 0 8px rgba(255, 204, 51, 0.8), 0 2px 3px rgba(0, 0, 0, 0.24);
}

.hot[data-key="STAY"].light-off {
    filter: saturate(0.55) brightness(0.92);
}

.hot[data-key="STAY"].light-pending {
    opacity: 0.7;
}

.hot[data-key="STAY"] {
    background: linear-gradient(180deg, #ffd9a8 0%, #f5a33a 52%, #d98200 100%);
    border-color: #a86200;
    color: #111111;
}

/* Partition keys (Home): red when that area is armed, green when disarmed. */
.hot.key-fn.area-armed {
    background: linear-gradient(180deg, #fff1f1 0%, #f09a9a 52%, #d94c4c 100%);
    border-color: #a33030;
    color: #ffffff;
}

.hot.key-fn.area-arming {
    background: linear-gradient(180deg, #dbeafe 0%, #60a5fa 52%, #1d4ed8 100%);
    border-color: #1e3a8a;
    color: #ffffff;
    animation: areaArming 1s ease-in-out infinite;
}

@keyframes areaArming {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(0.72); }
}

.hot.key-fn.area-disarmed,
.hot.key-fn.area-notready {
    background: linear-gradient(180deg, #eef8f0 0%, #8ed897 52%, #4caf5c 100%);
    border-color: #2e8a3c;
    color: #ffffff;
}

/* Partitioned panel (Home): the lock key is inert; HOUSE / GARAGE arm their own area. */
.pad-wrap.multi-area #arm-toggle,
.pad-wrap.multi-area #arm-toggle.to-arm,
.pad-wrap.multi-area #arm-toggle.to-disarm,
.pad-wrap.multi-area #arm-toggle.mode-arm,
.pad-wrap.multi-area #arm-toggle.mode-disarm {
    background: linear-gradient(180deg, #f3f4f6 0%, #d5d9dd 52%, #bfc5ca 100%);
    border-color: #8a9399;
    color: #6b7280;
    opacity: 0.75;
}

#arm-toggle.to-arm,
#arm-toggle.mode-arm {
    background: linear-gradient(180deg, #fff1f1 0%, #f09a9a 52%, #d94c4c 100%);
    border-color: #a33030;
    color: #fff;
}

#arm-toggle.to-disarm,
#arm-toggle.mode-disarm {
    background: linear-gradient(180deg, #eef8f0 0%, #8ed897 52%, #4caf5c 100%);
    border-color: #2e8a3c;
    color: #fff;
}

#arm-toggle .key-icon-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78%;
    height: 86%;
    pointer-events: none;
}

#arm-toggle.to-arm .key-icon,
#arm-toggle.mode-arm .key-icon {
    filter: drop-shadow(0 0 5px #ff1a1a) drop-shadow(0 0 8px rgba(255, 26, 26, 0.85));
}

#arm-toggle.to-disarm .key-icon,
#arm-toggle.mode-disarm .key-icon {
    filter: drop-shadow(0 0 4px #14d718);
}

#arm-toggle.to-arm .icon-unlock,
#arm-toggle.mode-arm .icon-unlock,
#arm-toggle.to-disarm .icon-lock,
#arm-toggle.mode-disarm .icon-lock,
#arm-toggle[data-armed="0"] .icon-unlock,
#arm-toggle[data-armed="1"] .icon-lock {
    display: none;
}

.key-icon {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.hot[data-key="UP"] .icon-logout {
    position: relative;
    z-index: 1;
    width: 58%;
    height: 62%;
    color: #fff;
}

.key-num {
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbfc 0%, #e1e8eb 52%, #c9d2d6 100%);
    font-size: 17px;
}

.key-num::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    top: 3px;
    height: 32%;
    border-radius: 999px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.55);
}

.key-arrow {
    border-radius: 999px;
    background: linear-gradient(180deg, #f4f8fa 0%, #e1e8eb 52%, #cbd4d8 100%);
}

.key-label {
    position: relative;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

.key-arrow-icon {
    position: relative;
    z-index: 1;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 9px solid #153e7a;
    pointer-events: none;
}

.key-arrow-icon.down {
    border-bottom: 0;
    border-top: 9px solid #153e7a;
}

.hot[data-key="STAY"] { left: 19.9%; top: 38.2%; width: 13.1%; height: 7.1%; }
.hot[data-key="FORCE"] { left: 34.8%; top: 38.2%; width: 13.1%; height: 7.1%; }
.hot[data-key="ARM"] { left: 49.7%; top: 38.2%; width: 13.1%; height: 7.1%; }
.hot[data-key="TOGGLE"] { left: 64.6%; top: 38.2%; width: 13.1%; height: 7.1%; }
.hot[data-key="BYP"] { left: 19.9%; top: 46.1%; width: 13.1%; height: 7.1%; }
.hot[data-key="MEM"] { left: 34.8%; top: 46.1%; width: 13.1%; height: 7.1%; }
.hot[data-key="TBL"] { left: 49.7%; top: 46.1%; width: 13.1%; height: 7.1%; }
.hot[data-key="ACC"] { left: 64.6%; top: 46.1%; width: 13.1%; height: 7.1%; }
.pad-wrap.compact .hot[data-key="UP"] {
    display: flex;
}

.hot[data-key="UP"] {
    display: none;
    left: 84.2%;
    top: 38.2%;
    width: 9.4%;
    height: 7.1%;
    background: linear-gradient(180deg, #c4b5fd 0%, #7c3aed 52%, #5b21b6 100%);
    border-color: #4c1d95;
    color: #fff;
}
.hot[data-key="DOWN"] { left: 84.2%; top: 46.1%; width: 9.4%; height: 7.1%; }
.hot[data-key="1"] { left: 19.9%; top: 54.0%; width: 17.8%; height: 7.1%; }
.hot[data-key="2"] { left: 39.9%; top: 54.0%; width: 17.8%; height: 7.1%; }
.hot[data-key="3"] { left: 59.9%; top: 54.0%; width: 17.8%; height: 7.1%; }
.hot[data-key="4"] { left: 19.9%; top: 61.9%; width: 17.8%; height: 7.1%; }
.hot[data-key="5"] { left: 39.9%; top: 61.9%; width: 17.8%; height: 7.1%; }
.hot[data-key="6"] { left: 59.9%; top: 61.9%; width: 17.8%; height: 7.1%; }
.hot[data-key="7"] { left: 19.9%; top: 69.8%; width: 17.8%; height: 7.1%; }
.hot[data-key="8"] { left: 39.9%; top: 69.8%; width: 17.8%; height: 7.1%; }
.hot[data-key="9"] { left: 59.9%; top: 69.8%; width: 17.8%; height: 7.1%; }
.hot[data-key="CLEAR"] { left: 19.9%; top: 77.7%; width: 17.8%; height: 7.1%; font-size: 9px; }
.hot[data-key="0"] { left: 39.9%; top: 77.7%; width: 17.8%; height: 7.1%; }
.hot[data-key="ENTER"] { left: 59.9%; top: 77.7%; width: 17.8%; height: 7.1%; font-size: 9px; }

.arial-below {
    position: relative;
    z-index: 1; /* cards scroll underneath the sticky keypad */
    box-sizing: border-box;
    display: none;
    width: var(--arial-col);
    max-width: 480px;
    margin: 6px auto 20px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
}

.arial-below:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.arial-below .card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1.5px solid #041630;
    border-radius: 13px;
    box-shadow: none;
    padding: 0.25rem 0.4rem 0.15rem;
    margin: 0;
}

#arial-activity,
#arial-breaker {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.activity-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 0.25rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #001f3f;
    min-width: 0;
}

.arial-below .section-title {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #001f3f;
}

.activity-power {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.activity-power.fault {
    color: #DC143C;
}

.arial-below .tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    margin: 0 0 4px;
}

.arial-below .tabs button {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 22px;
    min-width: 0;
    padding: 0 3px;
    background: #ffffff;
    color: #001f3f;
    border: 1px solid #001f3f;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
}

.arial-below .tabs button.on {
    background: #001f3f;
    color: #ffffff;
}

.activity-tab-mark {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 7px;
    background: #94a3b8;
}

.arial-below .tabs button[data-tab="all"] .activity-tab-mark { background: #64748b; }
.arial-below .tabs button[data-tab="zones"] .activity-tab-mark { background: #e6b800; }
.arial-below .tabs button[data-tab="areas"] .activity-tab-mark { background: #1565c0; }
.arial-below .tabs button[data-tab="whatsapp"] { color: #128c7e; }
.arial-below .tabs button[data-tab="whatsapp"].on { color: #fff; background: #25d366; border-color: #25d366; }
.arial-below .tabs button[data-tab="whatsapp"] .activity-tab-wa { flex: 0 0 13px; }
.activity-row.day-break { border-top: 1px solid #94a3b8; margin-top: 3px; padding-top: 3px; }
.activity-row.wa-in .activity-mark { background: #1565c0; }
.activity-row.wa-out .activity-mark { background: #25d366; }
.activity-row.wa-fail .activity-mark { background: #dc2626; }
.activity-row .wa-acks { margin-left: auto; flex: 0 0 auto; font-size: 11px; color: #128c7e; }
.activity-row .wa-acks.read { color: #1565c0; }
@media (max-width: 480px) { .arial-below .tabs button[data-tab="whatsapp"] .activity-tab-label { display: none; } }
.arial-below .tabs button.on .activity-tab-mark { box-shadow: 0 0 0 1px #fff; }

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-row,
.activity-empty {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 16px;
    max-height: 16px;
    margin: 0;
    padding: 0 1px;
    font-size: 0.58rem;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    border-bottom: 1px solid #eef2f6;
}

.activity-row:last-child,
.activity-empty:last-child {
    border-bottom: 0;
}

.activity-mark {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 6px;
    background: #94a3b8;
}

.activity-mark.zone { background: #e6b800; }
.activity-mark.zone-ok { background: #12b028; }
.activity-mark.alarm { background: #DC143C; }
.activity-mark.arm { background: #DC143C; }
.activity-mark.disarm { background: #12b028; }
.activity-mark.area { background: #1565c0; }
.activity-mark.power { background: #e67e00; }
.activity-mark.power-ok { background: #1565c0; }

.activity-time {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    font-weight: 600;
}

.activity-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #001f3f;
    font-weight: 600;
}

.activity-empty {
    color: #64748b;
    font-weight: 600;
}

.activity-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 22px;
    margin-top: 2px;
    background: transparent;
    border: none;
    color: #001f3f;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.activity-more-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #001f3f;
}

.activity-more[aria-expanded="true"] .activity-more-arrow {
    border-top: 0;
    border-bottom: 6px solid #001f3f;
}

.arial-below .card + .card {
    margin-top: 10px;
}

.breaker-on {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
    white-space: nowrap;
    flex-shrink: 0;
}

.breaker-link-ago,
.breaker-last-link {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
    color: #92400e;
}

.breaker-link-ago {
    min-width: 4.2em;
}

.breaker-on-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 6px;
    background: #94a3b8;
}

.breaker-on.is-on .breaker-on-dot {
    background: #12c01a;
}

.breaker-on.warn {
    color: #b45309;
}

.breaker-on.warn .breaker-on-dot {
    background: #ff8a00;
}

.breaker-meter {
    margin-left: 6px;
    padding-left: 6px;
    border-left: 1px solid #cbd5e1;
    color: #334155;
    font-variant-numeric: tabular-nums;
    text-transform: none;
    letter-spacing: 0;
}

.breaker-meter i {
    font-style: normal;
    font-weight: 500;
    color: #64748b;
}

#arial-breaker .activity-head {
    flex-wrap: wrap;
    overflow: visible;
    align-items: center;
    justify-content: space-between;
}

#arial-breaker .breaker-on {
    flex: 0 1 auto;
    justify-content: flex-start;
    max-width: none;
    overflow: visible;
}

#arial-breaker .breaker-meters {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #334155;
}

#arial-breaker .breaker-meters .breaker-meter:first-child {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

.breaker-on.is-off,
.breaker-on.fault {
    color: #DC143C;
}

.breaker-on.is-off .breaker-on-dot,
.breaker-on.fault .breaker-on-dot {
    background: #DC143C;
}

.breaker-dials {
    display: grid;
    grid-template-columns: 0.92fr 0.92fr 1.22fr;
    grid-template-areas:
        "v a w"
        "info info w";
    gap: 0 4px;
    margin: 2px 0 2px;
    width: 100%;
    min-width: 0;
}

.breaker-dial[data-kind="v"] { grid-area: v; }
.breaker-dial[data-kind="a"] { grid-area: a; }
.breaker-dial[data-kind="w"] { grid-area: w; }

.breaker-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1px;
    min-width: 0;
    padding: 2px 0 0 2px;
}

.breaker-today {
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #001f3f;
    white-space: nowrap;
}

.breaker-since {
    font-size: 0.58rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breaker-dial {
    min-width: 0;
    text-align: center;
}

.breaker-echart {
    display: block;
    width: 100%;
    aspect-ratio: 100 / 80;
    min-width: 0;
}

.breaker-echart svg {
    display: block;
}

.breaker-dial.has-chart .breaker-dial-unit,
.breaker-dial.has-chart .breaker-dial-max,
.breaker-dial.has-chart .breaker-dial-val {
    /* value is rendered inside the gauge by ECharts (rolling number) */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    margin: 0;
}

.breaker-dial {
    position: relative;
}

.breaker-gauge {
    display: block;
    width: 100%;
    height: auto;
}

.breaker-gauge .track {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 6;
    stroke-linecap: butt;
}

.breaker-gauge .zone {
    fill: none;
    stroke-width: 6;
    stroke-linecap: butt;
    opacity: 0.32;
}

.breaker-gauge .zone-ok { stroke: #12b028; }
.breaker-gauge .zone-warn { stroke: #e67e00; }
.breaker-gauge .zone-crit { stroke: #DC143C; }

.breaker-gauge .arc {
    fill: none;
    stroke: #12b028;
    stroke-width: 6;
    stroke-linecap: butt;
}

.breaker-dial[data-state="warn"] .arc { stroke: #e67e00; }
.breaker-dial[data-state="crit"] .arc { stroke: #DC143C; }

.breaker-gauge .tick {
    stroke: #001f3f;
    stroke-width: 1.1;
    stroke-linecap: round;
}

.breaker-gauge .limit {
    stroke: #DC143C;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.breaker-dial-max {
    display: block;
    margin-top: 1px;
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #DC143C;
    white-space: nowrap;
}

.breaker-gauge .needle {
    stroke: #001f3f;
    stroke-width: 2.6;
    stroke-linecap: round;
}

.breaker-gauge .hub {
    fill: #001f3f;
}

.breaker-dial-val {
    display: block;
    margin-top: 1px;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #001f3f;
    white-space: nowrap;
}

/* Same slow flash as weather outdoor-unit low battery (.obatt / slowblink).
   One parent class so the No-link line and the ECharts V/A/W numbers stay in sync.
   HTML .breaker-dial-val is clipped once charts are up; the visible numbers are SVG text. */
@keyframes slowblink {
    50% { opacity: 0.25; }
}

#arial-breaker.link-lost #breaker-state .breaker-link-ago,
#arial-breaker.link-lost #breaker-state .breaker-last-link,
#arial-breaker.link-lost #breaker-state #breaker-on-label,
#arial-breaker.link-lost #breaker-state .breaker-on-dot,
#arial-breaker.link-lost .breaker-echart text {
    animation: slowblink 1.2s steps(2, end) infinite;
}

.breaker-dial-unit {
    display: block;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
}

.breaker-dial-power .breaker-dial-val {
    font-size: 1.15rem;
    font-weight: 800;
}

.breaker-dial[data-state="warn"] .needle { stroke: #e67e00; }
.breaker-dial[data-state="warn"] .hub { fill: #e67e00; }

.breaker-dial[data-state="warn"] .breaker-dial-val {
    color: #e67e00;
}

.breaker-dial[data-state="low"] .breaker-dial-val { color: #1565c0; }

.breaker-dial[data-state="crit"] .needle { stroke: #DC143C; }
.breaker-dial[data-state="crit"] .hub { fill: #DC143C; }

.breaker-dial[data-state="crit"] .breaker-dial-val {
    color: #DC143C;
}

.breaker-flag {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin: 0;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
}

.breaker-flag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 7px;
    background: #94a3b8;
}

.breaker-flag-avg {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breaker-flag[data-flag="normal"] { color: #001f3f; }
.breaker-flag[data-flag="normal"] .breaker-flag-dot { background: #12b028; }
.breaker-flag[data-flag="recovery"] { color: #1565c0; }
.breaker-flag[data-flag="recovery"] .breaker-flag-dot { background: #1565c0; }
.breaker-flag[data-flag="above"] { color: #e67e00; }
.breaker-flag[data-flag="above"] .breaker-flag-dot { background: #e67e00; }
.breaker-flag[data-flag="check"] { color: #DC143C; }
.breaker-flag[data-flag="check"] .breaker-flag-dot { background: #DC143C; }

.lights-pop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 31, 63, 0.45);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.lights-pop[hidden] {
    display: none;
}

.lights-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 236px;
    background: #ffffff;
    border: 1.5px solid #041630;
    border-radius: 13px;
    padding: 0.25rem 0.4rem 0.3rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.lights-head {
    align-items: center;
}

.lights-panel .section-title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #001f3f;
}

.lights-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lights-all-btn {
    min-height: 24px;
    padding: 0 7px;
    background: #ffffff;
    color: #001f3f;
    border: 1px solid #001f3f;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.lights-all-btn:active {
    background: #001f3f;
    color: #ffffff;
}

.lights-close {
    width: 28px;
    height: 24px;
    background: transparent;
    border: 0;
    color: #001f3f;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.lights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 4px;
}

.light-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 64px;
    padding: 4px 2px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.light-btn:active {
    transform: translateY(1px);
}

.light-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #cbd5e1;
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.light-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 3px;
    height: 10px;
    margin-left: -1.5px;
    background: #ffffff;
    box-shadow: 0 0 0 2px #ffffff;
}

.light-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 1px;
    width: 3px;
    height: 9px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: #cbd5e1;
    transition: background 0.15s;
}

.light-btn.on {
    background: #ffffff;
    border-color: #12b028;
}

.light-btn.on .light-icon {
    border-color: #12b028;
    box-shadow: 0 0 10px rgba(18, 176, 40, 0.45);
}

.light-btn.on .light-icon::after {
    background: #12b028;
}

.light-btn.pending .light-icon {
    border-color: #e67e00;
}

.light-btn.pending .light-icon::after {
    background: #e67e00;
}

.light-btn.unknown {
    opacity: 0.55;
}

.light-name {
    margin-top: 2px;
    font-size: 0.56rem;
    font-weight: 700;
    color: #001f3f;
    letter-spacing: 0.02em;
}

.light-state {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.light-btn.on .light-state {
    color: #12b028;
}

.lights-note {
    margin: 3px 0 0;
    min-height: 0;
    font-size: 0.55rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.lights-note.fault {
    color: #DC143C;
}

.breaker-day {
    --day-colour: #001f3f;
    min-width: 0;
    margin: 0 0 0.1rem;
    padding-top: 0;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.breaker-day[data-day="1"] { --day-colour: #1565c0; }
.breaker-day[data-day="2"] { --day-colour: #64748b; }

.breaker-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-width: 0;
    margin-bottom: 2px;
}

.breaker-day-nav {
    flex: 0 0 auto;
    min-width: 28px;
    min-height: 22px;
    padding: 0 4px;
    background: #ffffff;
    color: #001f3f;
    border: 1px solid #001f3f;
    border-radius: 4px;
    font-size: 0.55rem;
    line-height: 1;
    cursor: pointer;
}

.breaker-day-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.breaker-day-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #001f3f;
    white-space: nowrap;
    overflow: hidden;
}

.breaker-day-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 7px;
    background: var(--day-colour);
}

.breaker-day-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 2px;
}

.breaker-day-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.breaker-day[data-day="0"] .breaker-day-dots i:nth-child(1),
.breaker-day[data-day="1"] .breaker-day-dots i:nth-child(2),
.breaker-day[data-day="2"] .breaker-day-dots i:nth-child(3) {
    background: var(--day-colour);
}

.breaker-day-total {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--day-colour);
    white-space: nowrap;
}

.breaker-day-chart {
    position: relative;
    min-width: 0;
}

.breaker-bars {
    display: block;
    width: 100%;
    height: 60px;
}

.breaker-bars .bar {
    fill: var(--day-colour);
    opacity: 0.9;
}

.breaker-bars .bar.band-cold2 { fill: #1565c0; }
.breaker-bars .bar.band-cold { fill: #64a9e8; }
.breaker-bars .bar.band-avg { fill: #12b028; }
.breaker-bars .bar.band-warm { fill: #f08080; }
.breaker-bars .bar.band-hot { fill: #DC143C; }
.breaker-bars .bar.band-danger { fill: #8b0000; }

.breaker-bars .bar.now {
    fill: var(--day-colour);
    opacity: 0.55;
}

.breaker-legend {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 1px;
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
}

.breaker-legend i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    margin-right: 2px;
    vertical-align: -1px;
}

.breaker-legend .band-cold2 { background: #1565c0; }
.breaker-legend .band-avg { background: #12b028; }
.breaker-legend .band-hot { background: #DC143C; }
.breaker-legend .band-danger { background: #8b0000; }
.breaker-legend .band-est { background: #cbd5e1; border: 1px dashed #64748b; box-sizing: border-box; }

.breaker-bars .bar.est {
    fill: #cbd5e1;
    stroke: #64748b;
    stroke-width: 0.6;
    stroke-dasharray: 1.5 1;
}

.breaker-bars .bar.hot {
    opacity: 1;
    stroke: #001f3f;
    stroke-width: 1;
}

.breaker-bars .slot {
    fill: transparent;
}

.breaker-bars .base {
    stroke: #cbd5e1;
    stroke-width: 1;
}

.breaker-day-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    color: #64748b;
    pointer-events: none;
}

.breaker-day-empty[hidden] {
    display: none;
}

.breaker-tip {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -100%);
    padding: 2px 6px;
    background: #001f3f;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

.breaker-tip[hidden] {
    display: none;
}

.breaker-day-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 1px;
    font-size: 0.5rem;
    font-weight: 600;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}



/* Mains failure line on the LCD (above the system status) */
#lcd-acfail {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0 0 4px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #c81e1e;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-shadow: none;
    animation: none;
    white-space: nowrap;
}
#lcd-acfail[hidden] { display: none; }
@media (max-width: 480px) {
    #lcd-acfail { font-size: 11px; padding: 1px 6px; letter-spacing: 0.04em; }
}


/* Activity header power indicators: green mains/battery ok, orange on battery, red failure/low */
.activity-power .pw-dot { font-size: 1.15em; line-height: 1; vertical-align: -1px; }
.activity-power .pw-dot.ok { color: #12c01a; }
.activity-power .pw-dot.onbatt { color: #ff8a00; }
.activity-power .pw-dot.fail,
.activity-power .pw-dot.low { color: #e20b0b; }


/* Tuya Panel Kit control glyphs (MIT, /assets/tuya/controls/) replacing our generic drawn icons in the lights popup */
.light-icon { border: 0 !important; box-shadow: none !important; background: #cbd5e1; -webkit-mask: url(/assets/tuya/controls/power.svg) center/contain no-repeat; mask: url(/assets/tuya/controls/power.svg) center/contain no-repeat; }
.light-icon::before, .light-icon::after { display: none !important; }
.light-btn.on .light-icon { background: #12b028; }
.light-btn.pending .light-icon { background: #e67e00; }
.light-btn.unknown .light-icon { background: #cbd5e1; }
.lights-close { color: transparent !important; position: relative; }
.lights-close::before { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); background: #001f3f; -webkit-mask: url(/assets/tuya/controls/close.svg) center/contain no-repeat; mask: url(/assets/tuya/controls/close.svg) center/contain no-repeat; }

.pw-dot.ok { color: #15803d; }
.pw-dot.fail,
.pw-dot.low { color: #DC143C; }
.pw-dot.onbatt { color: #d97706; }
.pw-dot.unknown { color: #94a3b8; }
