:root {
  color-scheme: light;
  --ink: #172333;
  --soft: #526375;
  --blue: #1469c3;
  --green: #106858;
  --line: #dfe6ed;
  --bg: #f4f6fa;
  color: var(--ink);
  background: var(--bg);
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.06em;
  line-height: 1.24;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 16px;
}
button,
select,
input {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
  border: 0;
  background: transparent;
  min-height: 44px;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #5498ef;
  outline-offset: 2px;
}
header {
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
}
.bar,
main,
nav {
  max-width: 1136px;
  margin: auto;
}
.bar {
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand,
.tools,
.row,
.head,
.key,
.navitem {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand {
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brandmark {
  background: #196b69;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font: 700 32px/1 Georgia;
}
.tools select,
.info {
  background: transparent;
  border: 0;
  color: var(--soft);
  font-size: 14px;
  min-height: 44px;
}
.info {
  font-size: 21px;
  width: 38px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(100%);
  overflow: hidden;
}
.muted,
small,
.subline {
  color: var(--soft);
}
small {
  font-size: 13px;
}
.subline {
  font-size: 14px;
  margin-top: 5px;
}
.head {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pagehead {
  margin: 8px 0 21px;
}
.pagehead p {
  color: var(--soft);
  margin-top: 6px;
}
.caption {
  font-size: 13px;
  color: var(--soft);
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 23px;
  min-width: 0;
}
.stack {
  display: grid;
  gap: 16px;
}
.hero {
  background: linear-gradient(135deg, #e3f3ee, #f4faf9 70%);
  border-color: #c8e2dc;
}
.big {
  font-size: clamp(40px, 7vw, 62px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.big small {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}
.grade {
  border-radius: 8px;
  background: white;
  color: #2c484f;
  font-size: 14px;
  padding: 4px 8px;
  font-weight: 600;
}
.grade.good {
  color: #075e4b;
  background: #dbf3e8;
}
.hero .row {
  align-items: baseline;
  flex-wrap: wrap;
}
.chart {
  width: 100%;
  height: 282px;
}
.trend {
  height: 265px;
}
.list {
  display: grid;
}
.listbtn {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  text-align: left;
  gap: 10px;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.listbtn:last-child {
  border: 0;
}
.listbtn b {
  display: block;
  font-size: 15px;
}
.listbtn span {
  min-width: 0;
}
.listbtn small {
  display: block;
}
.num {
  white-space: nowrap;
  text-align: right;
  color: var(--blue);
  font-size: 14px;
}
.num:after {
  content: " ›";
  color: #748092;
}
.key {
  font-size: 13px;
  flex-wrap: wrap;
  color: var(--soft);
  gap: 12px;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 100%;
  margin-right: 5px;
}
.dot.teal {
  background: #137e78;
}
.dot.blue {
  background: #3573c9;
}
.dot.amber {
  background: #a6661b;
}
.pillbar,
.seg {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 5px;
  scrollbar-width: thin;
}
.pillbar {
  margin-bottom: 15px;
}
.pillbar button,
.seg button {
  white-space: nowrap;
  border-radius: 12px;
  font-size: 14px;
  padding: 6px 13px;
  flex-shrink: 0;
}
.pillbar button {
  border: 1px solid var(--line);
  background: white;
}
.pillbar .on {
  color: white;
  background: #166c66;
  border-color: #166c66;
}
.seg {
  background: #eef2f5;
  border-radius: 13px;
  gap: 0;
  max-width: 100%;
  padding: 2px;
}
.seg button {
  min-height: 40px;
  padding: 4px 11px;
  color: var(--soft);
}
.seg .on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px #11223315;
}
.tabsrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.filter {
  min-height: 44px;
  border: 0;
  background: white;
  color: var(--soft);
  max-width: 100%;
}
.callout {
  padding: 15px;
  border-radius: 15px;
  background: #f0f7f4;
  margin: 12px 0;
}
.callout p {
  margin: 5px 0;
  font-size: 15px;
}
.link {
  color: var(--blue);
  padding: 4px 0;
  text-align: left;
}
.empty {
  padding: 22px 0;
  color: var(--soft);
}
nav {
  padding: 14px 28px 0;
  display: flex;
  gap: 8px;
}
nav button {
  border-radius: 12px;
  padding: 4px 15px;
  font-size: 15px;
  color: var(--soft);
}
.navitem.on {
  color: var(--green);
  background: #e1efeb;
  font-weight: 650;
}
.navitem svg {
  width: 18px;
  height: 18px;
}
main {
  padding: 18px 28px 70px;
}
.spaced {
  margin-top: 16px;
}
#overlay {
  position: fixed;
  inset: 0;
  background: #1b2a3457;
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 15px;
}
#overlay[hidden],
[hidden] {
  display: none !important;
}
.sheet {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 26px;
  width: min(600px, 100%);
  max-height: 85vh;
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet h2 {
  padding-right: 40px;
  margin-bottom: 10px;
}
.sheet h3 {
  margin-top: 17px;
}
.sheet p,
.sheet li {
  margin: 7px 0;
}
.sheet article {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sheet article p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sheet a {
  color: var(--blue);
}
#close {
  position: sticky;
  float: right;
  top: 0;
  background: #eef1f4;
  border-radius: 50%;
  width: 44px;
  font-size: 24px;
  z-index: 1;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  max-width: 410px;
  width: 100%;
}
.login-card h1 {
  margin: 17px 0 8px;
}
.login-card p {
  color: var(--soft);
}
.login-card label {
  display: block;
  margin: 25px 0 6px;
}
.login-card input {
  border: 1px solid #aebfc7;
  border-radius: 11px;
  width: 100%;
  padding: 11px;
}
.primary {
  background: var(--green);
  color: white;
  border-radius: 12px;
  padding: 10px 18px;
  margin-top: 15px;
  width: 100%;
}
#error {
  color: #943c30;
}
.practice {
  color: var(--green);
  font-weight: 550;
}
.emptychart {
  height: 180px;
  display: grid;
  place-items: center;
  color: var(--soft);
  text-align: center;
}
.note {
  font-size: 13px;
  color: var(--soft);
  margin: 8px 0;
}
@media (max-width: 700px) {
  .bar {
    padding: 5px 16px;
  }
  nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: #fafbfdfa;
    border-top: 1px solid var(--line);
    padding: 4px 10px max(4px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  nav button {
    flex: 1;
  }
  .navitem {
    flex-direction: column;
    gap: 1px;
    font-size: 12px;
    padding: 5px;
  }
  .navitem.on {
    background: transparent;
  }
  .navitem.on svg {
    stroke-width: 2.5;
  }
  main {
    padding: 18px 12px calc(84px + env(safe-area-inset-bottom));
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stack {
    gap: 12px;
  }
  .card {
    padding: 16px;
    border-radius: 19px;
  }
  .pagehead {
    margin: 2px 3px 16px;
  }
  .head {
    margin-bottom: 10px;
  }
  .chart {
    height: 252px;
  }
  .trend {
    height: 250px;
  }
  .sheet {
    border-radius: 22px 22px 0 0;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
    max-height: 88vh;
  }
  #overlay {
    align-items: end;
    padding: 0;
  }
  .hero .chart {
    height: 238px;
  }
  .navitem svg {
    width: 19px;
    height: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
