:root {
  color-scheme: dark;
  --background: #0c101a;
  --panel: #161c28;
  --line: #343c4b;
  --text: #f5f6fa;
  --muted: #b9bfcd;
  --accent: #44efa3;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--background); }
.frame { width: min(1320px, calc(100% - 104px)); margin-inline: auto; }
header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); display: inline-flex; align-items: center; gap: 14px; font-size: 34px; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.pulse { width: 49px; height: 32px; background: var(--accent); clip-path: polygon(0 53%,20% 53%,34% 0,40% 0,57% 83%,71% 26%,76% 26%,84% 53%,100% 53%,100% 62%,80% 62%,73% 42%,59% 100%,53% 100%,37% 18%,25% 62%,0 62%); }
.domain { color: var(--muted); font-size: 17px; }
main { padding-top: clamp(36px, 5vw, 74px); }
h1 { font-size: clamp(39px, 5vw, 68px); line-height: 1.04; letter-spacing: -.055em; margin: 0; }
.intro { color: var(--muted); font-size: clamp(17px, 2.1vw, 26px); line-height: 1.5; margin: 18px 0 45px; }
.panel { display: grid; grid-template-columns: .93fr 1.07fr; padding: 44px 48px; border: 1px solid #303746; border-radius: 19px; background: var(--panel); }
.instrument { min-width: 0; display: flex; flex-direction: column; align-items: center; padding-right: 38px; border-right: 1px solid var(--line); }
h2 { width: 100%; margin: 0 0 24px; font-size: clamp(21px, 2.4vw, 33px); line-height: 1.2; letter-spacing: -.035em; }
.gauge { width: min(100%, 407px); aspect-ratio: 2 / 1.08; border: clamp(14px, 1.8vw, 24px) solid var(--accent); border-bottom: 0; border-radius: 55% 55% 0 0 / 100% 100% 0 0; display: grid; place-items: end center; }
.reading { display: grid; justify-items: center; gap: 2px; padding-bottom: 5px; line-height: 1; }
.reading strong { font-size: clamp(44px, 6vw, 76px); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.reading span { font-size: 22px; color: var(--muted); }
button { min-height: 58px; width: min(100%, 326px); margin-top: 42px; border: 0; border-radius: 12px; background: var(--accent); color: #082018; font: inherit; font-size: 22px; font-weight: 750; cursor: pointer; }
button:hover { background: #73f6b8; }
button:disabled { cursor: wait; color: #0e3828; background: #80c5a4; }
button:focus-visible, a:focus-visible { outline: 2px solid #e5fff2; outline-offset: 5px; }
.metrics { margin: 0; padding-left: 38px; display: grid; grid-template-rows: repeat(3, 1fr); }
.metric { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 4px 17px 13px; }
.metric + .metric { border-top: 1px solid var(--line); }
dt { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 36px); font-size: clamp(17px, 2.25vw, 30px); font-weight: 650; letter-spacing: -.03em; }
dd { margin: 0; white-space: nowrap; font-size: clamp(15px, 1.95vw, 26px); font-variant-numeric: tabular-nums; }
dd span { color: var(--muted); }
.icon { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; position: relative; }
.clock { border: 2px solid currentColor; border-radius: 50%; }
.clock::after { content: ""; width: 8px; height: 10px; position: absolute; top: 6px; left: 14px; border-left: 2px solid; border-bottom: 2px solid; transform-origin: bottom left; transform: rotate(30deg); }
.transfer { font-size: 33px; line-height: .85; padding-bottom: 6px; }
.transfer::after { content: ""; width: 27px; height: 7px; position: absolute; bottom: 0; border: 2px solid; border-top: 0; border-radius: 0 0 5px 5px; }
.status { color: var(--muted); font-size: clamp(15px, 1.75vw, 22px); min-height: 1.5em; margin: 32px 0; line-height: 1.5; }
.status.error { color: #ffb5ae; }
footer { border-top: 1px solid var(--line); padding-block: 24px 40px; text-align: right; }
@media (max-width: 820px) {
  .frame { width: calc(100% - 40px); }
  header { min-height: 70px; }
  .brand { font-size: 26px; gap: 10px; }
  .pulse { width: 35px; height: 24px; }
  .domain { font-size: 14px; }
  .panel { grid-template-columns: 1fr; padding: 25px 23px; }
  .intro { margin-bottom: 26px; }
  .instrument { padding: 0 0 27px; border: 0; }
  h2 { text-align: center; }
  .gauge { width: min(290px, 100%); }
  button { margin-top: 27px; font-size: 18px; min-height: 52px; }
  .metrics { padding-left: 0; border-top: 1px solid var(--line); }
  .metric { padding: 15px 0; }
  .icon { scale: .75; }
  .status { margin: 24px 0; }
}
