/* Existing Battuta typography and light/dark tokens; no remote assets or motion. */
.hardware-alarms{margin-block:20px;padding:20px;border:1px solid var(--m-line-2);border-radius:16px;background:var(--m-surface);color:var(--m-ink);font-size:16px;line-height:1.7;min-width:0}
.hardware-alarms h2{font-size:20px;line-height:1.6;margin:0;font-weight:700}
.hardware-alarms p{margin:0}.ha-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ha-heading p,.ha-muted,.ha-footnote{color:var(--m-text2);font-size:13px}.ha-heading>div{min-width:0}
.hardware-alarms .ha-button{min-height:44px;min-width:44px;padding:8px 14px;flex-shrink:0;border:1px solid var(--m-line-2);border-radius:12px;background:var(--m-surface-2);color:var(--m-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.hardware-alarms .ha-button[aria-pressed=true]{background:var(--m-teal-soft);border-color:var(--m-teal-line);color:var(--m-teal-ink)}
.hardware-alarms .ha-button[aria-disabled=true]{opacity:.65;cursor:default}.hardware-alarms :is(button,summary):focus-visible{outline:3px solid var(--m-teal);outline-offset:3px}
.ha-ranges{display:flex;gap:8px;margin-block:14px}.ha-status{font-size:13px;color:var(--m-text2);min-height:24px}.ha-status span{display:block}.ha-error,.ha-clock-note{color:var(--m-amber-ink)}
.ha-sources{margin-block:14px;border-block:1px solid var(--m-line);padding-block:2px}.ha-sources summary{min-height:44px;padding-block:8px;cursor:pointer;font-weight:600;font-size:13px}.ha-sources ul{list-style:none;padding:0;margin:0}.ha-sources li{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:10px 0;border-top:1px solid var(--m-line)}.ha-sources strong{font-size:13px}.ha-sources small,.ha-sources p{font-size:13px;color:var(--m-text2)}.ha-health{font-size:13px;color:var(--m-text2)}.ha-fresh{color:var(--m-teal-ink)}.ha-stale,.ha-never,.ha-unknown,.ha-unavailable,.ha-catchingup,.ha-catching-up{color:var(--m-amber-ink)}
.ha-events{list-style:none;padding:0;margin:14px 0;display:grid;gap:12px}.ha-event{min-width:0;padding:14px;border:1px solid var(--m-line);border-radius:12px;background:var(--m-surface-2)}.ha-event header{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;justify-content:space-between}.ha-event strong{font-size:16px;overflow-wrap:anywhere}.ha-source-tag{font-size:13px;color:var(--m-text2)}.ha-label{font-size:16px;font-weight:600;margin-block:8px!important}.ha-clock-note{font-size:13px;margin-block:6px!important}
.ha-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 0}.ha-times div{min-width:0}.ha-times dt{font-size:13px;color:var(--m-text2)}.ha-times dd{font-size:13px;margin:0;overflow-wrap:anywhere}.ha-times time{unicode-bidi:isolate}.ha-more{width:100%}.ha-footnote{margin-block-start:14px!important}
@media(max-width:768px){#m-alerts .hardware-alarms{margin:12px 16px 20px;padding:16px;border-radius:16px}.ha-heading{gap:8px}.ha-heading h2{font-size:20px}.ha-refresh{padding-inline:10px!important}.ha-times{grid-template-columns:minmax(0,1fr)}.ha-times>div{display:grid;grid-template-columns:minmax(100px,.85fr) minmax(0,1.15fr);gap:8px}.ha-event{padding:12px}}

.ha-receiver{font-size:13px;color:var(--m-text2)}.ha-receiver.ha-error{color:var(--m-amber-ink)}
