body {
    --muted: #555;
    --warning: #854500;
    --error: #9e1c1c;
    --status-bg: #f0f2f4;
    --relay-on: #9b4a00;
}
.dashboard-panel {
    --muted: #bdbdbd;
    --warning: #ffd28a;
    --error: #ffb6b6;
    --status-bg: #242424;
    --relay-on: #ffc074;
}
.connection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--status-bg);
    color: inherit;
    padding: .65rem 1rem;
    line-height: 1.5;
}
.connection-error { color: var(--error); border-left: .3rem solid currentColor; }
.connection[hidden] { display: none; }
.connection button {
    flex-shrink: 0;
    font: inherit;
    padding: .5rem .75rem;
    min-height: 44px;
    cursor: pointer;
}
.connection button:disabled { cursor: wait; }
.connection button:focus-visible { outline: 3px solid #3986d5; outline-offset: 3px; }
.freshness-note { margin: .5rem 1rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.is-stale [data-reading="number"], .is-unverified [data-reading="number"], .is-unknown [data-reading="number"] { color: var(--muted); }
[data-reading="relay"] { color: var(--muted); font-weight: 600; }
.relay-on { color: var(--relay-on); }
.relay-off { color: var(--muted); }


.trend-up { color: orange; }
.trend-down { color: #999; }
.reading-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    margin-left: 5px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    color: #e22;
    font: bold 11px/1 system-ui, sans-serif;
    vertical-align: middle;
}
.reading-warning[hidden] { display: none; }
