:root {
  color-scheme: light;
  font-family: system-ui, "Malgun Gothic", sans-serif;
  color: #172b3a;
  background: #f1f5f8;
  --muted: #4d6170;
  --border: #d8e2e9;
  --accent: #08766e;
}
* { box-sizing: border-box; }
body { margin: 0; }
.container { width: min(100% - 2rem, 78rem); margin-inline: auto; }
.topbar { background: #112838; color: #fff; }
.topbar-inner { min-height: 4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { color: inherit; text-decoration: none; font-weight: 750; }
.brand span { margin-left: .5rem; color: #b4e3dc; font-weight: 500; }
.main { padding-block: 2rem 3rem; }
.heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.heading p { color: var(--muted); margin: 0; }
h1, h2 { margin: 0; }
h1 { font-size: clamp(1.65rem, 4vw, 2.25rem); }
h2 { font-size: 1.125rem; }
h2 span { margin-left: .45rem; font-size: .875rem; color: var(--muted); font-weight: 500; }
a { color: #06655e; text-underline-offset: .2em; }
.back { display: inline-block; margin-bottom: 1rem; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: .8rem; overflow: hidden; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.summary { padding: 1.125rem; border-top: 3px solid var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0; }
.metrics dt { color: var(--muted); font-size: .875rem; }
.metrics dd { margin: .25rem 0 0; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.section { margin-top: 1rem; }
.section h2 { padding: 1rem 1.125rem; }
.scroll { overflow: auto; }
.daily { max-height: 28rem; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .875rem; white-space: nowrap; }
th, td { text-align: left; padding: .65rem 1rem; border-top: 1px solid var(--border); }
thead th { background: #eaf1f5; color: #314b5d; position: sticky; top: 0; }
tbody tr:nth-child(even) { background: #f8fafc; }
tfoot { background: #eaf1f5; font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.negative { color: #aa2633; }
.message { white-space: normal; overflow-wrap: anywhere; min-width: 14rem; }
.empty { text-align: center; color: var(--muted); }
.badge { display: inline-block; border-radius: 999px; padding: .2rem .55rem; font-weight: 650; background: #edf2f5; }
.badge.muted { color: #4b5563; background: #e5e7eb; }
.success { color: #07594d; background: #d9f2ea; }
.warning { color: #764905; background: #fff1cb; }
.danger, .alert { color: #8b1e2b; background: #fce5e8; }
.alert { padding: .8rem 1rem; border-radius: .5rem; margin: 0 auto 1rem; max-width: 32rem; }
.login { max-width: 26rem; margin: 2rem auto; padding: 1.5rem; display: grid; gap: 1rem; }
.login label { font-weight: 650; }
input, button { font: inherit; border-radius: .45rem; padding: .65rem .85rem; }
input { min-width: 0; border: 1px solid #8498a6; }
button { cursor: pointer; border: 1px solid transparent; background: #086760; color: white; font-weight: 650; }
.secondary { background: transparent; border-color: #8199a8; padding: .4rem .7rem; font-size: .875rem; }
:focus-visible { outline: 3px solid #158981; outline-offset: 2px; }
.scroll:focus-visible { outline-offset: -3px; }
@media (max-width: 48rem) {
  .summary-grid { grid-template-columns: 1fr; }
  .main { padding-top: 1.25rem; }
}
@media (max-width: 28rem) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
