:root {
    color-scheme: light;
    font: 16px/1.55 "Instrument Sans", "Segoe UI", system-ui, sans-serif;
    color: #15241f;
    background: #f4f6f1;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 1120px); margin: 2rem auto 3rem; }
h1, h2 { line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.7rem, 3.8vw, 2.65rem); letter-spacing: -.045em; }
h2 { font-size: 1.25rem; letter-spacing: -.025em; }
.page-header, .card-title, nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; }
.page-header { margin-bottom: 1.5rem; border-bottom: 1px solid #d5dfd5; padding-bottom: 1.2rem; }
.devices, .history { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.history { margin-top: 1rem; align-items: start; }
.card, .login { background: #fff; border: 1px solid #d8e0d8; border-radius: 1rem; padding: 1.2rem; }
.login { max-width: 410px; margin: 12vh auto 0; padding: 1.6rem; }
.login h1 { font-size: 1.9rem; margin-bottom: 1rem; }
.login form { display: grid; gap: .6rem; }
input, button, .button { font: inherit; border-radius: .5rem; padding: .48rem .8rem; border: 1px solid #829389; }
button { cursor: pointer; background: #184533; color: #fff; border-color: #184533; }
.button { text-decoration: none; color: #184533; background: #fff; }
button:focus-visible, .button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #339468; outline-offset: 3px; }
.pill { display: inline-block; padding: .22rem .58rem; border-radius: 2rem; background: #eef1ed; color: #394943; font-size: .82rem; font-weight: 650; }
.online { background: #d6f0dc; color: #184b2d; }
.offline { background: #ffe1d9; color: #791e18; }
dl { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; row-gap: .35rem; margin: 1rem 0; }
dt { color: #4d6156; }
dd { margin: 0; font-variant-numeric: tabular-nums; }
.probe, details { padding: .7rem 0; border-top: 1px solid #e3e9e2; }
section > details:first-of-type { margin-top: .7rem; }
.probe > * { display: block; }
small, .muted { color: #4d6156; }
summary { cursor: pointer; }
.record { margin: .3rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.error { color: #791e18; margin: 0; }
