@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/brand/plus-jakarta-sans-latin-wght-normal.woff2")
    format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --canvas: #f1f5f9;
  --surface: #fff;
  --ink: #020618;
  --body: #45556c;
  --line: #e2e8f0;
  --boundary: #cbd5e1;
  --accent: #2563eb;
  --attention: #b45309;
  --danger: #b91c1c;
  font:
    400 14px/1.5 "Plus Jakarta Sans",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p {
  margin: 0;
}
header,
.top,
nav,
.toolbar,
.actions,
#operator {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
header {
  min-height: 64px;
  padding: 12px clamp(16px, 4vw, 64px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand img {
  height: 22px;
  display: block;
}
.product {
  padding-left: 16px;
  border-left: 1px solid var(--boundary);
}
#environment {
  color: var(--body);
}
#environment[data-prod="true"] {
  color: var(--attention);
}
#operator {
  margin-left: auto;
  overflow-wrap: anywhere;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: clamp(20px, 4vw, 54px) clamp(14px, 4vw, 54px);
}
.top {
  justify-content: space-between;
  margin: 16px 0 24px;
}
.toolbar,
nav {
  margin: 12px 0;
}
nav {
  border-bottom: 1px solid var(--boundary);
  gap: 4px;
}
nav a {
  padding: 9px 12px;
  text-decoration: none;
  color: var(--body);
}
nav a[aria-current] {
  color: var(--ink);
  box-shadow: inset 0 -2px var(--accent);
  font-weight: 600;
}
h1 {
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 30px;
}
h2 {
  font-size: 16px;
  line-height: 24px;
}
h3 {
  font-size: 14px;
  margin: 24px 0 8px;
}
h1,
h2,
strong {
  overflow-wrap: anywhere;
}
small,
.summary,
.empty {
  color: var(--body);
}
small {
  display: block;
}
a,
.link {
  color: var(--accent);
}
button,
input,
select {
  font: inherit;
}
button,
.action,
input,
select {
  border: 1px solid var(--boundary);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  max-width: 100%;
}
button,
.action {
  cursor: pointer;
  font-weight: 600;
}
button:hover,
.action:hover {
  background: var(--canvas);
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button.danger,
.error {
  color: var(--danger);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
label {
  display: grid;
  gap: 4px;
  margin: 8px 0;
}
label span,
th {
  font-weight: 600;
}
fieldset {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
fieldset label {
  display: flex;
  align-items: center;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--body);
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
.empty {
  padding: 16px 0;
}
.link {
  border: 0;
  background: transparent;
  padding: 4px 0;
  text-align: left;
  text-decoration: underline;
}
dialog {
  width: min(800px, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(16px, 4vw, 32px);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(2, 6, 24, 0.28);
}
dialog .top {
  margin: 0 0 12px;
}
form .actions,
.message,
.summary {
  margin: 12px 0;
}
.message {
  padding: 12px 16px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}
@media (max-width: 620px) {
  header {
    gap: 8px;
  }
  #operator {
    width: 100%;
    justify-content: space-between;
  }
  .product {
    padding-left: 8px;
  }
  nav a {
    padding: 6px 8px;
  }
  table,
  tbody,
  tr {
    display: block;
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  tr {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }
  tr:last-child {
    border-bottom: 0;
  }
  td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 8px;
    padding: 4px 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  td::before {
    content: attr(data-label);
    color: var(--body);
    font-size: 12px;
  }
}
.daily-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 10px;
}
.daily-chart {
  margin: 0;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.daily-chart:first-child { grid-column: 1 / -1; }
.daily-chart figcaption, .chart-dates {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.chart-dates, .chart-key, .daily-chart figcaption span {
  color: var(--body);
  font-size: 12px;
}
.chart-key { margin: 4px 0 12px; }
.daily-chart svg { width: 100%; height: 58px; }
.daily-chart rect { fill: var(--accent); }
.daily-chart .partial { fill: #7a9bd8; }
.chart-gap { stroke: var(--body); vector-effect: non-scaling-stroke; }
.daily-values { margin: 12px 0 20px; }
.daily-values summary { cursor: pointer; }
