:root {
  color-scheme: light;
  --paper: #f7f7f6;
  --ink: #221e20;
  --muted: #655f62;
  --rule: #e2dedf;
  --red: #bf1b30;
  --soft: #fae9eb;
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  font:
    15px/1.5 Inter,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select,
a {
  touch-action: manipulation;
}
button,
select,
input {
  border: 1px solid #cfc9cb;
  border-radius: 7px;
  background: white;
  padding: 8px 13px;
}
button,
select {
  cursor: pointer;
}
button:hover,
select:hover {
  border-color: #b56c75;
}
button:active {
  transform: scale(0.98);
}
button[aria-pressed="true"],
button.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid #b62037;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.16;
}
h1 {
  font-size: clamp(30px, 3.1vw, 46px);
  letter-spacing: -0.045em;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 18px;
}
p {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 20;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--rule);
  z-index: 5;
  padding: 24px 14px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--rule);
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  border-radius: 7px;
  width: 38px;
  height: 38px;
  font: bold italic 31px/1 Arial;
}
.brand strong {
  display: block;
  color: #a81829;
  font:
    900 22px/1.15 Arial,
    sans-serif;
  letter-spacing: -1px;
}
.brand small,
.side-foot {
  font-size: 12px;
  color: var(--muted);
}
nav h2 {
  font: 600 12px/1.4 inherit;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  margin: 22px 10px 6px;
  letter-spacing: 0;
}
nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
}
nav a:hover,
nav a[aria-current] {
  text-decoration: none;
  background: var(--soft);
  color: #a11125;
}
nav a[aria-current] {
  font-weight: 650;
}
nav .icon {
  font:
    18px/1 "Segoe UI Symbol",
    sans-serif;
  width: 20px;
  text-align: center;
  color: inherit;
}
.side-foot {
  margin: auto 8px 0;
  padding-top: 18px;
}
.side-foot b {
  font-size: 13px;
  color: var(--ink);
}
main {
  margin-left: 238px;
  min-height: 100vh;
  padding: 0 clamp(18px, 3vw, 50px) 44px;
}
main > section {
  max-width: 1460px;
  margin: auto;
}
.top {
  height: 61px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}
.top i {
  font-style: normal;
  margin: 0 8px;
  color: #a1999c;
}
.top strong {
  color: var(--ink);
}
.top #refresh {
  margin-left: auto;
}
.top button {
  padding: 5px 12px;
}
.title,
.heading,
.actions,
.chips,
form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.title,
.heading {
  justify-content: space-between;
}
.title {
  margin-top: 28px;
}
.kicker {
  display: block;
  color: var(--red);
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 6px;
}
.intro {
  margin: 8px 0 22px;
  max-width: 76ch;
}
.tag {
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: white;
  padding: 5px 12px;
  color: #554f52;
  font-size: 12px;
}
.tag.fresh {
  background: #f1f6ef;
  border-color: #d4dfcf;
  color: #324b2d;
}
.metrics,
.grid,
.overview-grid {
  display: grid;
  gap: 14px;
}
.grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
}
.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
}
.overview-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(220px, 1fr);
}
article,
.plan,
.data-box {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}
article p,
.plan p {
  margin: 7px 0;
}
.metrics article {
  padding: 16px 18px;
}
.metrics small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.metric-num,
.big {
  font-size: clamp(24px, 2.7vw, 40px);
  font-weight: 600;
  letter-spacing: -0.055em;
  color: var(--ink);
}
.metric-num em,
.big small {
  font: 500 14px/1 inherit;
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}
.metrics .minor {
  font-size: 12px;
  color: var(--muted);
}
.heading {
  margin: 0 0 14px;
}
.heading span,
.heading a,
.muted {
  font-size: 13px;
  color: var(--muted);
}
.heading a {
  color: var(--red);
}
section > h2,
section > .heading {
  margin: 24px 0 12px;
}
.rack-row {
  display: grid;
  gap: 5px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}
.rack-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.rack-line small {
  color: var(--muted);
}
meter {
  width: 100%;
  height: 11px;
  accent-color: var(--red);
  display: block;
}
meter::-webkit-meter-bar {
  border: 0;
  background: #ebe7e8;
}
meter::-webkit-meter-optimum-value {
  background: var(--red);
}
.rack-row p {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.thermal {
  text-align: center;
}
.thermal .heading {
  text-align: left;
}
.thermal canvas {
  width: min(100%, 245px);
  height: auto;
  display: block;
  margin: 0 auto;
}
.thermal strong {
  font-size: 30px;
  letter-spacing: -0.04em;
}
.thermal p {
  margin: 0;
  font-size: 13px;
}
.history {
  margin: 16px 0;
}
.history canvas {
  display: block;
  width: 100%;
  height: 150px;
}
.history label {
  font-size: 12px;
}
.history select {
  font-size: 13px;
  margin-left: 5px;
}
.history p {
  font-size: 13px;
}
.chips {
  gap: 6px;
}
.chips span {
  cursor: grab;
  background: white;
  border: 1px dashed #bda9ad;
  padding: 6px 10px;
  border-radius: 7px;
}
.chips button,
.chips span {
  font-size: 13px;
}
.plan {
  margin-top: 22px;
  border-top: 3px solid var(--red);
}
.warn {
  color: #874411;
}
.plan ul {
  padding-left: 22px;
}
form label,
article label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
article label {
  margin: 12px 0 0;
}
select,
input {
  max-width: 100%;
}
form {
  align-items: end;
  margin-top: 14px;
}
dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mono {
  font-family: Consolas, monospace;
}
.tablewrap {
  overflow: auto;
}
.rows {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.rows td,
.rows th {
  padding: 11px 9px;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.rows th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.rows tbody tr:last-child td {
  border-bottom: 0;
}
.tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 15px;
}
.tools input,
.tools select {
  min-height: 38px;
}
.tools input {
  min-width: 180px;
}
.empty {
  padding: 20px 0;
}
.data-box + .data-box {
  margin-top: 14px;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
dialog {
  border: 1px solid var(--rule);
  border-radius: 14px;
  max-width: min(450px, 92vw);
  padding: 24px;
}
dialog form {
  display: block;
  margin: 0;
}
dialog p {
  margin: 14px 0;
}
dialog::backdrop {
  background: #20191b66;
}
.actions {
  justify-content: end;
}
.notice-active {
  position: fixed;
  z-index: 9;
  right: 16px;
  bottom: 16px;
  background: #33272a;
  color: white;
  border-radius: 8px;
  padding: 12px 16px;
  max-width: min(90vw, 520px);
}
#menu-toggle {
  display: none;
}
.options label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.options select {
  margin-left: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.still) :is(button, a, input, select, .chips span) {
    transition:
      background-color 0.15s var(--ease),
      border-color 0.15s var(--ease),
      color 0.15s var(--ease),
      transform 0.15s var(--ease);
  }
  html:not(.still) main > section:not([hidden]) {
    animation: page-in 0.26s ease-out both;
  }
  html:not(.still) .metrics article {
    animation: page-in 0.38s ease-out both;
  }
  html:not(.still) .metrics article:nth-child(2) {
    animation-delay: 40ms;
  }
  html:not(.still) .metrics article:nth-child(3) {
    animation-delay: 80ms;
  }
  html:not(.still) .metrics article:nth-child(4) {
    animation-delay: 120ms;
  }
  html:not(.still) dialog[open] {
    animation: page-in 0.16s ease-out;
  }
  @keyframes page-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}
@media (max-width: 1050px) {
  aside {
    width: 205px;
  }
  main {
    margin-left: 205px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(190px, 1fr);
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: 100%;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .brand {
    padding: 0;
    border: 0;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 24px;
  }
  .brand strong {
    font-size: 18px;
  }
  nav,
  .side-foot {
    display: none;
  }
  body.menu-open nav {
    display: block;
    padding-bottom: 12px;
  }
  main {
    margin: 0;
    padding: 0 16px 28px;
  }
  .top {
    height: 48px;
  }
  #menu-toggle {
    display: inline-block;
  }
  .title {
    margin-top: 20px;
  }
  .overview-grid,
  .two,
  .grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 8px;
  }
  .metrics article,
  article,
  .plan,
  .data-box {
    padding: 14px;
  }
  .thermal canvas {
    width: 160px;
  }
  .rows {
    font-size: 13px;
  }
  .rows td,
  .rows th {
    padding: 8px 5px;
  }
  .rack-line {
    flex-wrap: wrap;
  }
  .top span {
    font-size: 12px;
  }
  .history .heading {
    align-items: start;
  }
  .heading label {
    margin: 0;
  }
  .title .tag {
    font-size: 11px;
  }
  .tag {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.still) nav a {
    transition-duration: 33ms;
  }
}
.check-plan {
  margin-top: 20px;
}
.check-plan form {
  margin-bottom: 12px;
}
.data-box .tablewrap + h2 {
  margin-top: 24px;
}
.data-box h2 {
  margin-block: 10px;
}
.top button,
.chips button {
  min-height: 34px;
}
