@font-face { font-family: Inter; src: url('/assets/fonts/Inter-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('/assets/fonts/Inter-SemiBold.ttf'); font-weight: 600 900; font-display: swap; }
:root { --ink: #202d43; --muted: #586b84; --border: #e1e7ef; --green: #237652; --amber: #a15c16; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 1rem/1.5 Inter, system-ui, sans-serif; background: #f5f7fb; color: var(--ink); }
.header-inner, main { max-width: 1180px; margin: auto; padding: 20px 28px; }
.site-header { background: white; border-bottom: 1px solid var(--border); }
.header-inner, .brand, .card header, .reading, figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-size: 1.4rem; font-weight: 600; }
.brand-detail, .last, small, figcaption { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
#connection { font-size: .85rem; color: var(--muted); }
#connection.online { color: var(--green); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.15rem; margin-bottom: 12px; }
h3 { font-size: 1rem; }
p { color: var(--muted); font-size: .9rem; }
section { margin: 28px 0; }
.notice { padding: 10px 16px; margin: 12px 0; color: var(--amber); background: #fff4e8; border-radius: 8px; }
.summary-grid, .card-grid, .stats { display: grid; gap: 16px; }
.summary-grid, .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-grid { margin-top: 22px; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .summary-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; }
.summary-card, dt, .range { font-size: .85rem; color: var(--muted); }
.summary-card strong { display: block; font-size: 1.55rem; color: var(--ink); }
.card { --team-color: #4f78e8; border-top: 3px solid var(--team-color); }
.card[data-team="red"] { --team-color: #d78079; }
.card[data-team="green"] { --team-color: #62a98b; }
.card[data-team="white"] { --team-color: #a096ba; }
.status { padding: 3px 9px; border-radius: 5px; background: #eef1f6; font-size: .8rem; }
.status.online { color: var(--green); background: #edf7f1; }
.status.offline, .warning { color: var(--amber); }
.status.offline { background: #fff4e8; }
.reading { margin: 18px 0 4px; }
.temperature { font-size: 2.6rem; font-weight: 600; letter-spacing: -.05em; }
.last { text-align: right; }
time { display: block; font-weight: 600; }
.extras { margin-top: 5px; }
.stats { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); gap: 8px; }
.stats div + div { padding-left: 10px; border-left: 1px solid var(--border); }
dd { font-weight: 600; margin-top: 4px; }
#charts { margin-top: 12px; }
figure, .empty { margin-top: 12px; }
figure svg { display: block; width: 100%; }
figure text { fill: var(--muted); font-size: 10px; }
.grid { stroke: var(--border); }
.line { fill: none; stroke: var(--team-color); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
figcaption { display: flex; padding-left: 10%; }
@media (max-width: 700px) {
  .header-inner, main { padding: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .summary-grid { gap: 8px; }
  .summary-card { padding: 10px; font-size: .8rem; }
}
