@font-face {
  font-family: Inter;
  src: url('/inter-cyr.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  src: url('/inter-lat.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199;
}
:root {
  color-scheme: dark;
  --bg: #0c0f13;
  --side: #101318;
  --panel: #14181e;
  --border: #272c33;
  --text: #f1f3f6;
  --muted: #9299a5;
  --mint: #4be1b8;
  --purple: #ac94f7;
  --orange: #efa76a;
  font:
    14px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:focus-visible,
input:focus-visible,
summary:focus-visible,
.drop:focus-within {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
button {
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
b,
strong {
  font-weight: 600;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 630;
  letter-spacing: -0.058em;
  line-height: 1.12;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.035em;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.025em;
}
small,
.eyebrow {
  letter-spacing: 0.13em;
  font-size: 9px;
  font-weight: 650;
}
.shell {
  display: flex;
  min-height: 100dvh;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0
    env(safe-area-inset-left, 0px);
}
#side {
  position: sticky;
  top: 0;
  width: 212px;
  flex: 0 0 212px;
  height: 100dvh;
  background: var(--side);
  border-right: 1px solid var(--border);
  padding: 34px 15px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -1.65px;
  margin: 0 11px 52px;
  line-height: 1;
}
.brandlight {
  font-weight: 460;
}
.brandmark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mint);
  color: #09261f;
  display: grid;
  place-items: center;
  margin-right: 10px;
}
.navgroup {
  margin-bottom: 27px;
}
.navgroup > small,
.sidefoot > small {
  font-size: 9px;
  color: #797f8c;
  letter-spacing: 0.16em;
  display: block;
  margin: 0 12px 11px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 13px;
  color: #a4aab4;
  font-size: 13px;
  font-weight: 480;
  border: 1px solid transparent;
  border-radius: 7px;
  margin: 3px 0;
}
.nav:hover {
  background: #1b2026;
  color: #e0e3e8;
}
.nav.active {
  background: #173029;
  color: #70e9c4;
  border-color: #23463d;
}
.sidefoot {
  margin-top: auto;
}
.device {
  background: #181d23;
  border: 1px solid var(--border);
  padding: 12px 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  text-align: left;
}
.device > svg {
  margin-left: auto;
  color: #9299a5;
}
.device strong {
  display: block;
  font-size: 12px;
}
.device em {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
}
.watch {
  background: #242b32;
  border-radius: 8px;
  padding: 7px 5px;
  color: #ced5db;
}
.localstatus {
  color: #89939b;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  margin: 17px 6px 0;
}
.dot,
.mode i,
.condition i,
.average i,
.chartfoot i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.dot {
  color: var(--mint);
}
.workspace {
  min-width: 0;
  flex: 1;
}
#top {
  height: 66px;
  border-bottom: 1px solid #22272d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 3.25vw, 58px);
}
.crumb,
.desk,
.headright,
.importBtn,
.mode,
.mobilebrand {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 14px;
  font-size: 12px;
}
.desk:first-child {
  color: #9198a3;
  gap: 9px;
}
.crumb b {
  color: #48505a;
  font-weight: 400;
}
.headright {
  gap: 21px;
}
.mode {
  font-size: 11px;
  color: #a1a7b0;
  gap: 7px;
}
.mode i {
  background: #8d9aab;
  width: 5px;
  height: 5px;
}
.importBtn,
.primary {
  background: #6ce5be;
  color: #102a22;
  padding: 9px 14px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 620;
  font-size: 12px;
}
.importBtn:hover,
.primary:hover {
  background: #92f0d0;
}
.mob {
  display: none;
}
main {
  max-width: 1570px;
  margin: 0 auto;
  padding: 32px clamp(22px, 3.25vw, 58px) 45px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 25px;
}
.intro p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
}
.dateline,
.datebox,
.arrows {
  display: flex;
  align-items: center;
}
.dateline {
  gap: 7px;
}
.datebox,
.arrows,
.secondary {
  background: #15191e;
  border: 1px solid #2d3239;
  border-radius: 7px;
  color: #d6dbe1;
  height: 34px;
}
.datebox {
  position: relative;
  padding: 0 10px;
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
}
.datebox svg {
  color: #9aa3ae;
}
.datebox input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color-scheme: dark;
}
.datebox input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.arrows {
  padding: 0 2px;
}
.arrows button {
  height: 29px;
  width: 24px;
  display: grid;
  place-items: center;
  color: #aeb5be;
}
.arrows button:hover:not(:disabled) {
  color: white;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.mint {
  --c: var(--mint);
}
.purple {
  --c: var(--purple);
}
.orange {
  --c: var(--orange);
}
.metric {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--c) 6%, transparent), transparent 74%),
    var(--panel);
  padding: 18px 20px 12px;
  min-height: 162px;
}
.metric:hover {
  border-color: color-mix(in srgb, var(--c) 45%, var(--border));
}
.metric-top,
.metric-icon,
.mini,
.aihead,
.panelhead h2,
.reading > h2,
.training h2,
.metric-body,
.condition,
.chartfoot > span,
.average,
.textbtn,
.aidetail {
  display: flex;
  align-items: center;
}
.metric-top {
  font-size: 13px;
  font-weight: 550;
  color: #e3e6e9;
  gap: 8px;
}
.metric-icon,
.mini {
  color: var(--c);
  justify-content: center;
}
.metric-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
}
.metric-body {
  justify-content: space-between;
  gap: 3px;
  margin-top: 4px;
}
.metric-val {
  white-space: nowrap;
  font-size: clamp(33px, 3.2vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.075em;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.metric-val small {
  font-size: 0.4em;
  margin-left: 4px;
  font-weight: 460;
  letter-spacing: -0.05em;
  color: #9399a3;
}
.condition {
  margin-top: 9px;
  color: var(--c);
  gap: 6px;
  font-size: 11px;
}
.condition i {
  width: 5px;
  height: 5px;
}
.gauge {
  width: clamp(75px, 7.8vw, 128px);
  position: relative;
  flex-shrink: 0;
  color: var(--c);
}
.gauge > svg {
  width: 100%;
  display: block;
}
.gauge span {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
}
.middle {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(246px, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.panel,
.aicard {
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
}
.heartpanel,
.aicard {
  min-height: 303px;
}
.heartpanel {
  display: flex;
  flex-direction: column;
  padding: 19px 21px 0;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panelhead h2,
.reading > h2 {
  gap: 9px;
}
.mini {
  width: 30px;
  height: 30px;
  border: 1px solid #2b3936;
  border-radius: 9px;
  background: #1b2c27;
}
.switch {
  padding: 3px;
  background: #0d1014;
  border: 1px solid #272d35;
  border-radius: 7px;
  display: flex;
}
.switch button {
  padding: 4px 10px;
  line-height: 1.3;
  color: #9199a3;
  font-size: 10px;
  border-radius: 4px;
}
.switch .sel {
  background: #2b3139;
  color: #e7ebef;
  box-shadow: 0 1px 3px #0004;
}
.chartstat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 13px 0 7px;
}
.chartstat strong {
  font-size: 37px;
  letter-spacing: -2px;
  line-height: 1.15;
  font-weight: 570;
}
.chartstat > span {
  font-size: 11px;
  color: var(--muted);
}
.chartstat .average {
  gap: 6px;
  margin-left: 9px;
  font-size: 10px;
  color: #a1aaa9;
}
.average i,
.chartfoot i {
  color: var(--mint);
  width: 5px;
  height: 5px;
}
.plot {
  display: flex;
  flex: 1;
  align-items: stretch;
  min-height: 120px;
  padding-top: 5px;
}
.ylabels,
.xlabels {
  font-size: 9px;
  color: #9199a5;
  font-variant-numeric: tabular-nums;
}
.ylabels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  padding: 1px 0 21px;
}
.graphright {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.graph {
  min-height: 105px;
  flex: 1;
  position: relative;
}
.graph > svg {
  position: absolute;
  width: 100%;
  height: 100%;
}
.xlabels {
  display: flex;
  justify-content: space-between;
  margin-top: 1px;
}
.chartfoot {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: #929aa5;
  font-size: 10px;
  padding: 12px 0;
  margin-top: 12px;
}
.chartfoot > span {
  gap: 6px;
}
.chartfoot em {
  font-style: normal;
  color: #656c76;
}
.chartfoot b {
  color: #ced3d9;
  font-weight: 500;
}
.aicard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: linear-gradient(120deg, #1c1b29, #181923 82%);
  border-color: #373343;
  padding: 18px 20px 14px;
}
.aihead {
  gap: 9px;
  position: relative;
  z-index: 1;
}
.aiicon {
  display: grid;
  place-items: center;
  background: #3a304a;
  color: #c4a5ff;
  width: 30px;
  height: 30px;
  border: 1px solid #554167;
  border-radius: 9px;
}
.aihead small {
  font-size: 8px;
  border: 1px solid #4c445f;
  color: #bbaccc;
  border-radius: 4px;
  padding: 2px 5px;
  letter-spacing: 0.12em;
  margin-left: auto;
}
.waveart,
.widewave {
  background-image: url('/signal.webp');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.waveart {
  height: 81px;
  margin: 0 -20px -1px;
  flex: 1;
  min-height: 62px;
  max-height: 115px;
}
.aicopy {
  margin-top: auto;
}
.aicopy h3 {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}
.aicopy p {
  font-size: 12px;
  line-height: 1.63;
  color: #b3b1c1;
  margin: 6px 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aidetail {
  color: #c0a5fc;
  font-size: 11px;
  font-weight: 550;
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid #383343;
  padding: 10px 0 0;
}
.aidetail:hover,
.textbtn:hover {
  color: white;
}
.training {
  padding: 0 20px;
}
.training .panelhead {
  padding: 17px 0 14px;
}
.training h2 > svg {
  color: #98a2ad;
}
.textbtn {
  gap: 6px;
  font-size: 11px;
  color: #a5adb6;
}
.wrow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  text-align: left;
  border-top: 1px solid #272c32;
}
.wrow:hover {
  background: #ffffff04;
}
.wicon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.wname {
  flex: 1;
  min-width: 0;
}
.wname b {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.wname small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0;
  margin-top: 2px;
}
.wname i {
  font-style: normal;
}
.wstat {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: #bcc3cb;
  min-width: 77px;
}
.wstat svg,
.wrow > svg {
  color: #858e99;
}
.reading {
  max-width: 850px;
  padding: 24px;
  margin-bottom: 16px;
}
.reading > h2 {
  font-size: 21px;
}
.reading p,
dialog p,
.reading li,
details li {
  color: #b0b6bf;
  font-size: 14px;
  line-height: 1.7;
}
.reading p,
dialog p,
.reading h3 {
  margin: 13px 0;
}
.reading li,
details li {
  margin: 7px 0;
}
.reading ol,
dialog ol {
  padding-left: 20px;
}
.reading hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
.reading pre {
  white-space: pre-wrap;
  background: #0d1217;
  color: #9cddc8;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 14px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.facts > div,
.factline {
  background: #191e25;
  border: 1px solid var(--border);
  padding: 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.facts b {
  color: var(--text);
  display: block;
  font-size: 16px;
  margin-top: 5px;
}
.factline {
  display: flex;
  justify-content: space-between;
}
.factline b {
  color: white;
}
.widewave {
  height: 95px;
  max-width: 450px;
  margin: 10px 0;
}
.eyebrow {
  color: var(--purple);
}
.prose {
  white-space: pre-wrap;
}
.reading .prose {
  margin-bottom: 16px;
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pills button,
.secondary {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
  background: #1a1e24;
  border: 1px solid #2e343c;
  color: #b8bec6;
}
.pills .sel {
  background: #17332b;
  color: var(--mint);
  border-color: #285346;
}
.muted,
.empty {
  color: var(--muted);
}
.empty {
  padding: 22px 0;
}
.emptyplot {
  position: absolute;
  top: 35%;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
#tip {
  display: none;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #26392f;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  color: #e2fff0;
  pointer-events: none;
}
.graph:hover #tip:not(:empty) {
  display: block;
}
dialog {
  color: var(--text);
  background: #171c22;
  border: 1px solid #38414b;
  border-radius: 16px;
  padding: 23px;
  width: min(440px, 92vw);
  max-height: 85dvh;
  box-shadow: 0 24px 100px #0009;
}
dialog::backdrop {
  background: #05080bbb;
  backdrop-filter: blur(4px);
}
.modalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modalhead h2 {
  font-size: 22px;
}
.icon-btn {
  border-radius: 7px;
  padding: 4px;
  color: #b4bbc4;
}
.icon-btn:hover {
  background: #30353c;
}
.drop {
  border: 1px dashed #447566;
  border-radius: 10px;
  padding: 26px 8px;
  cursor: pointer;
  background: #172b25;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-direction: column;
  position: relative;
  color: #79eaca;
  text-align: center;
}
.drop input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.drop span {
  font-size: 12px;
  color: #a2b7ae;
}
.drop svg {
  margin-bottom: 4px;
}
details {
  margin-top: 17px;
}
details summary {
  cursor: pointer;
  color: #bac4d0;
  font-size: 13px;
}
details h3 {
  margin-top: 16px;
}
.bigvalue {
  font-size: 38px;
  letter-spacing: -2px;
  margin: 18px 0;
}
.notice {
  padding: 12px 16px;
  background: #392d21;
  border-radius: 7px;
  margin-bottom: 20px;
  color: #f5c79c;
}
.notice button {
  color: white;
  text-decoration: underline;
}
.primary {
  margin: 6px 0;
}
.modalhead + form label,
form label {
  display: block;
  margin: 15px 0;
}
form input {
  display: block;
  width: 100%;
  border: 1px solid #46515d;
  background: #11161a;
  border-radius: 6px;
  padding: 8px 12px;
  color: white;
  margin: 6px 0;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 22px;
  z-index: 10;
  background: #273832;
  border: 1px solid #426252;
  padding: 10px 15px;
  color: #e2fff0;
  border-radius: 9px;
  pointer-events: none;
  opacity: 0;
  font-size: 13px;
  transition: opacity 0.18s;
  max-width: 85vw;
}
#toast.show {
  opacity: 1;
}
#importstatus:not(:empty) {
  margin: 12px 0;
  color: #d4c3a6;
}
@media (min-width: 1500px) {
  #side {
    width: 238px;
    flex-basis: 238px;
  }
  .metric {
    min-height: 184px;
    padding: 20px 24px;
  }
  .heartpanel,
  .aicard {
    min-height: 344px;
  }
  .plot {
    padding-top: 12px;
  }
  .waveart {
    max-height: 124px;
  }
}
@media (max-width: 1170px) {
  #side {
    width: 184px;
    flex-basis: 184px;
    padding-inline: 10px;
  }
  .gauge {
    width: 78px;
  }
  .metric {
    padding: 16px 14px 10px;
    min-height: 147px;
  }
  .metrics {
    gap: 10px;
  }
  .middle {
    gap: 12px;
    grid-template-columns: minmax(0, 1.6fr) minmax(232px, 1fr);
  }
  .wrow {
    gap: 10px;
  }
  .wstat {
    min-width: 65px;
  }
  .metric-val {
    font-size: 35px;
  }
  .brand {
    margin-left: 8px;
  }
  .heartpanel {
    padding: 16px 15px 0;
  }
  .aicard {
    padding: 16px 15px 13px;
  }
  .waveart {
    margin-inline: -15px;
  }
}
@media (max-width: 950px) and (min-width: 761px) {
  #side {
    width: 66px;
    flex-basis: 66px;
    padding: 24px 8px;
  }
  .brand {
    font-size: 0;
    margin: 0 auto 45px;
  }
  .brandmark {
    margin: 0;
  }
  .navgroup > small,
  .nav span,
  .sidefoot > small,
  .device > span:not(.watch),
  .device > svg,
  .localstatus {
    display: none;
  }
  .nav {
    justify-content: center;
  }
  .device {
    padding: 4px;
    justify-content: center;
  }
  .navgroup {
    margin-bottom: 15px;
  }
}
@media (max-width: 760px) {
  #side {
    position: fixed;
    top: auto;
    bottom: 0;
    left: env(safe-area-inset-left, 0px);
    right: env(safe-area-inset-right, 0px);
    z-index: 5;
    height: auto;
    width: auto;
    padding: 5px 4px max(5px, env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--border);
    flex-direction: row;
    justify-content: space-around;
    background: #11161bf8;
  }
  .brand,
  .sidefoot,
  .navgroup > small {
    display: none;
  }
  .navgroup {
    display: contents;
  }
  .nav {
    margin: 0;
    width: 19%;
    padding: 7px 0;
    gap: 4px;
    font-size: 9px;
    line-height: 1.2;
    flex-direction: column;
    border: 0;
    border-radius: 7px;
  }
  .nav.active {
    background: transparent;
    color: #72e9c7;
  }
  .nav span {
    white-space: nowrap;
  }
  .nav[data-page='data'] span {
    font-size: 0;
  }
  .nav[data-page='data'] span:after {
    content: 'Данные';
    font-size: 9px;
  }
  .desk {
    display: none;
  }
  .mob {
    display: flex;
  }
  .mobilebrand {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -1.3px;
    gap: 7px;
  }
  .mobilebrand svg {
    background: var(--mint);
    border-radius: 6px;
    padding: 3px;
    color: #173a2d;
    width: 27px;
    height: 27px;
  }
  #top {
    height: 57px;
    padding: 0 16px;
  }
  .headright {
    gap: 11px;
  }
  .importBtn {
    min-height: 44px;
    min-width: 44px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .mode {
    font-size: 10px;
  }
  .intro {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 16px;
  }
  .intro p {
    font-size: 12px;
    margin-top: 6px;
  }
  main {
    padding: 23px 15px 90px;
  }
  .middle {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.8fr);
  }
  .metrics {
    gap: 8px;
    margin-bottom: 13px;
  }
  .metric {
    padding: 11px 10px;
    min-height: 130px;
  }
  .metric-top {
    font-size: 11px;
    gap: 5px;
  }
  .metric-icon {
    width: 20px;
    height: 20px;
  }
  .metric-body {
    margin-top: 8px;
  }
  .metric-val {
    font-size: 29px;
  }
  .gauge {
    width: 64px;
  }
  .condition {
    font-size: 10px;
  }
  .wstat.dist {
    display: none;
  }
  #toast {
    bottom: 80px;
  }
  .aicopy h3 {
    font-size: 16px;
  }
}
@media (max-width: 580px) {
  .intro {
    display: block;
  }
  .dateline {
    margin-top: 13px;
  }
  .middle {
    display: flex;
    flex-direction: column;
    gap: 13px;
  }
  .metric {
    padding: 11px 7px 12px;
    text-align: center;
  }
  .metric-top {
    justify-content: center;
    font-size: 10px;
    font-weight: 550;
    gap: 3px;
  }
  .metric-icon {
    width: 15px;
    height: 15px;
    background: transparent;
  }
  .metric-icon svg {
    width: 12px;
  }
  .metric-body {
    margin: 0;
    flex-direction: column-reverse;
  }
  .gauge {
    width: 70px;
    height: 60px;
    margin: 5px 0 0;
  }
  .gauge span svg {
    width: 18px;
  }
  .metric-val {
    font-size: 27px;
  }
  .condition {
    margin-top: 2px;
    justify-content: center;
    font-size: 9px;
  }
  .metric-val small {
    margin-left: 2px;
  }
  .metric-body > div:first-child {
    width: 100%;
  }
  .metrics {
    gap: 6px;
  }
  .heartpanel,
  .aicard {
    min-height: auto;
  }
  .heartpanel {
    height: 272px;
  }
  .plot {
    min-height: 100px;
  }
  .aicard {
    padding: 16px;
    min-height: 180px;
  }
  .waveart {
    position: absolute;
    right: 0;
    top: 13px;
    width: 50%;
    height: 64px;
    max-height: none;
    min-height: 0;
    opacity: 0.8;
    z-index: -1;
  }
  .aihead small {
    margin-left: 0;
  }
  .aicopy {
    margin-top: 14px;
  }
  .aicopy p {
    margin-bottom: 10px;
  }
  .panelhead h2 {
    font-size: 16px;
  }
  .training {
    padding: 0 13px;
  }
  .training .panelhead {
    padding: 14px 0;
  }
  .training .textbtn {
    font-size: 10px;
  }
  .wrow {
    gap: 8px;
  }
  .wicon {
    width: 33px;
    height: 33px;
  }
  .wname b {
    font-size: 12px;
  }
  .wstat {
    font-size: 10px;
    min-width: auto;
    gap: 4px;
  }
  .kcal {
    display: none;
  }
  .reading {
    padding: 18px;
  }
  .headright {
    gap: 8px;
  }
  .datebox,
  .arrows {
    height: 31px;
  }
  .mode {
    font-size: 9px;
  }
  .reading pre {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.pair-steps li { margin: 16px 0; }
.pair-steps p { margin: 6px 0; }
.pair-steps a { color: var(--mint); }
.hook-url { white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; color: var(--mint); }
