:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  --ink: #142c35;
  --muted: #52646c;
  --line: #d6e0df;
  color: var(--ink);
  background: #f6f8f6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
.wrap { width: min(1100px, calc(100% - 3rem)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; min-height: 4.3rem; font-size: 1.02rem; font-weight: 680; letter-spacing: -.025em; }
.brandmark { display: flex; align-items: center; justify-content: center; gap: 3px; width: 32px; height: 32px; flex: none; background: #153d3d; border-radius: 8px; }
.brandmark i { background: #b5e5d7; width: 3px; height: 9px; border-radius: 2px; }
.brandmark i:nth-child(2) { height: 18px; }
.brandmark i:last-child { height: 13px; }
main { padding-bottom: 2.5rem; }
.introduction { padding: clamp(2rem, 6vw, 4rem) 0 1.8rem; border-bottom: 1px solid var(--line); }
.category { color: #226658; font-weight: 680; font-size: .91rem; margin: 0 0 .5rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4.15rem); line-height: 1.07; letter-spacing: -.06em; font-weight: 695; }
.lead { margin: .9rem 0; max-width: 64ch; font-size: clamp(1.02rem, 2vw, 1.16rem); color: #334c53; }
.source, .sensor { color: var(--muted); font-size: .875rem; }
.source strong { color: #315951; }
.record-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.4rem 0 1rem; }
h2 { font-size: 1.42rem; letter-spacing: -.04em; }
fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
legend { font-size: .825rem; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.times { display: flex; gap: .22rem; flex-wrap: wrap; }
.times label { position: relative; cursor: pointer; }
.times input, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.times span { display: block; min-width: 3.15rem; text-align: center; padding: .35rem .55rem; border: 1px solid #b8c9c7; font-size: .89rem; border-radius: 5px; color: #334e50; background: #fff; }
.times label:hover span { border-color: #397065; }
.times input:checked + span { color: #fff; background: #174c42; border-color: #174c42; }
:focus-visible, .times input:focus-visible + span { outline: 3px solid #1177ad; outline-offset: 3px; }
.readings { display: grid; gap: .9rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 1.05rem 1.12rem .72rem; min-width: 0; }
h3 { font-size: 1.025rem; line-height: 1.4; letter-spacing: -.02em; }
.sensor { margin-top: .1rem; }
.reading { margin: .7rem 0 .35rem; white-space: nowrap; }
.reading strong { font-size: clamp(2.2rem, 3.8vw, 3rem); line-height: 1.14; font-weight: 650; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.reading span { color: var(--muted); font-size: .94rem; font-weight: 540; }
canvas { display: block; width: 100%; height: 114px; }
.temperature { --plot: #aa5133; }
.humidity { --plot: #23736a; }
.vibration { --plot: #535c9e; }
.observation { display: flex; align-items: start; gap: 1.1rem; margin-top: .95rem; padding: 1.1rem 1.2rem; background: #e8f1ed; border: 1px solid #cbded4; border-radius: 9px; }
.observation-time { border-right: 1px solid #b9d1c6; min-width: 5rem; padding-right: 1rem; display: grid; }
.observation-time span { font-size: .8rem; color: #47665c; }
.observation-time strong { font-size: 1.22rem; white-space: nowrap; letter-spacing: -.03em; }
.observation p { color: #35564e; margin-top: .2rem; }
.dataset { margin-top: 1.1rem; }
summary { width: fit-content; cursor: pointer; color: #255f53; font-weight: 620; padding: .3rem 0; }
.table-scroll { overflow-x: auto; margin: .65rem 0 0; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .875rem; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .55rem .7rem; }
th { font-weight: 620; }
thead { background: #e9efec; }
caption { color: var(--muted); text-align: left; padding: .25rem 0 .5rem; }
@media(max-width: 760px) {
  .record-header { flex-direction: column; align-items: start; }
  .readings { gap: .5rem; }
  .card { padding: .8rem .65rem .55rem; }
}
@media(max-width: 620px) {
  .wrap { width: calc(100% - 2rem); }
  .readings { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,45%); grid-template-rows: auto auto 1fr; padding: .85rem; }
  .card h3, .card .sensor, .card .reading { grid-column: 1; }
  .card canvas { grid-column: 2; grid-row: 1 / 4; align-self: center; height: 94px; }
  .reading { margin: .45rem 0 0; }
  .observation { gap: .75rem; padding: .85rem; }
  .observation-time { min-width: 4.1rem; padding-right: .65rem; }
}
@media(forced-colors: active) {
  .times input:checked + span { border: 3px double Highlight; }
}
