:root {
  color-scheme: dark;
  --bg: #101216;
  --side: #111317;
  --card: #191c21;
  --line: #30343c;
  --orange: #ff922e;
  --blue: #699cf2;
  --muted: #a4a7ae;
  --green: #4cc987;
  --red: #ef6565;
  font:
    15px/1.45 "Inter",
    "Segoe UI",
    Arial,
    sans-serif;
  color: #f5f5f5;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #22252b;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 560;
}
button:hover,
a:hover {
  filter: brightness(1.2);
}
button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: var(--orange);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -1.5px;
  font-weight: 660;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.55px;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.num,
td,
.badge,
.big,
.mono {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.primary {
  background: var(--orange);
  color: #211407;
  border-color: transparent;
}
.plain {
  background: transparent;
}
.badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #3b2a1c;
  color: #ffab5c;
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.ok {
  color: var(--green);
}
.bad {
  color: var(--red);
}
.blue {
  color: var(--blue);
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}
aside {
  background: var(--side);
  border-right: 1px solid #272a30;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  position: sticky;
  top: 0;
  overflow: auto;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 19px 21px;
  color: white;
}
.brand img {
  width: 45px;
  height: 45px;
  border: 1px solid #423326;
  border-radius: 12px;
}
.brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: 1px;
  line-height: 1.1;
}
.brand small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #bebfc2;
}
.navgroup {
  font-size: 10px;
  letter-spacing: 1.65px;
  text-transform: uppercase;
  color: #92969e;
  padding: 16px 23px 6px;
  font-weight: 650;
}
.nav {
  display: flex;
  gap: 11px;
  align-items: center;
  width: calc(100% - 24px);
  margin: 2px 12px;
  padding: 9px 12px;
  text-align: left;
  font-size: 14px;
  background: none;
  border: 1px solid transparent;
  color: #b5b9c1;
  font-weight: 480;
}
.nav.active {
  color: #ffab60;
  background: #30241c;
  border-color: #563721;
}
.identity {
  margin-top: auto;
  padding: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #282b31;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #33291f;
  color: #ffae65;
  display: grid;
  place-items: center;
  font-weight: bold;
}
.identity small {
  display: block;
}
.identity button {
  margin-left: auto;
  padding: 7px;
}
.area {
  min-width: 0;
}
.topbar {
  height: 63px;
  border-bottom: 1px solid #292c32;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 42px);
  color: #b7bac0;
  font-size: 13px;
  gap: 10px;
}
.barleft,
.row,
.actions,
.legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.barleft span + span {
  color: #727680;
}
.burger {
  display: none;
}
.content {
  max-width: 1660px;
  margin: auto;
  padding: 28px clamp(16px, 3vw, 42px) 50px;
}
.titlebar,
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.titlebar {
  margin-bottom: 23px;
}
.titlebar p {
  margin-top: 4px;
  color: var(--muted);
}
.panelhead {
  margin-bottom: 16px;
}
.card,
.panel {
  background: var(--card);
  border: 1px solid #30343a;
  border-radius: 13px;
}
.panel {
  padding: 20px;
  min-width: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.card {
  padding: 16px;
  overflow: hidden;
  min-width: 0;
}
.metriclabel {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c9cbd0;
  font-size: 13px;
  min-height: 32px;
}
.iconbox {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #39291d;
  border-radius: 8px;
  color: #ff9c48;
}
.iconbox.b {
  background: #222e42;
  color: #7aaafa;
}
.iconbox.g {
  background: #22352d;
  color: #6ad19b;
}
.iconbox.p {
  background: #312a3e;
  color: #bea0e9;
}
.big {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 650;
  letter-spacing: -1.6px;
  line-height: 1.3;
  margin: 13px 0 4px;
}
.metricline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4px;
}
.metricline svg {
  width: 65px;
  height: 27px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.grid.equal {
  grid-template-columns: 1fr 1fr;
}
.legend {
  color: var(--muted);
  font-size: 12px;
  gap: 16px;
}
.legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.chart {
  width: 100%;
  height: 205px;
  display: block;
  margin-top: 12px;
}
.service,
.entry {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.service .iconbox {
  background: #22282a;
  color: #abaeb4;
}
.service strong,
.entry strong {
  display: block;
  font-size: 14px;
}
.service small,
.entry small {
  font-size: 12px;
}
.push {
  margin-left: auto;
}
.state {
  background: #1e342a;
  color: #72d69d;
  border-radius: 16px;
  padding: 4px 8px;
  font-size: 11px;
}
.period,
input,
select,
textarea {
  border: 1px solid #393e46;
  background: #23262c;
  border-radius: 8px;
  padding: 9px 12px;
  max-width: 100%;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0 18px;
}
.filters input {
  min-width: 150px;
  flex: 1;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  color: #9ea3ac;
  font-size: 12px;
  font-weight: 550;
  background: #202328;
}
td,
th {
  padding: 12px 10px;
  border-bottom: 1px solid #2d3036;
  white-space: nowrap;
}
td button {
  padding: 5px 9px;
}
.pill {
  display: inline-block;
  color: #eceef1;
  border-radius: 5px;
  padding: 3px 7px;
  background: #2b3037;
  font-size: 12px;
}
.meter {
  height: 6px;
  background: #292e35;
  border-radius: 9px;
  overflow: hidden;
  margin: 8px 0 14px;
}
.meter b {
  height: 100%;
  display: block;
  background: var(--orange);
}
dialog {
  color: #f5f5f5;
  background: #191c21;
  border: 1px solid #3b4049;
  border-radius: 16px;
  width: min(580px, 95vw);
  max-height: 88dvh;
  padding: 23px;
  box-shadow: 0 30px 90px #0008;
}
dialog::backdrop {
  background: #080a0dcc;
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
dialog header button {
  padding: 4px 10px;
}
.form {
  display: grid;
  gap: 13px;
}
.form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #c9cdd5;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font-size: 15px;
  color: #fff;
}
.form textarea {
  min-height: 68px;
}
.form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
}
.form .actions {
  margin-top: 8px;
}
.error {
  color: var(--red);
  white-space: pre-wrap;
}
.info,
.empty {
  padding: 17px;
  border: 1px dashed #414650;
  color: var(--muted);
  border-radius: 9px;
}
.login,
.splash {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}
.login .panel {
  width: min(420px, 100%);
  padding: 28px;
}
.login .brand {
  padding: 0 0 26px;
}
.login h1 {
  font-size: 27px;
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  border-radius: 9px;
  background: #31353d;
  color: white;
  z-index: 15;
  padding: 0;
}
#toast:not(:empty) {
  padding: 12px 19px;
}
.shade {
  display: none;
}
pre {
  font:
    12px/1.5 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0 15px;
}
.details > * {
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  overflow-wrap: anywhere;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
}
.scroll {
  max-height: 450px;
  overflow: auto;
}
.spaced {
  margin-top: 16px;
}
.chartnote {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.create {
  background: #23262b;
}
.mobileclose {
  display: none;
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 211px minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .metricline svg {
    width: 90px;
  }
  .grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(228px, 1fr);
  }
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  aside {
    position: fixed;
    left: 0;
    top: 0;
    width: 247px;
    transform: translateX(-102%);
    transition: transform 0.17s;
  }
  .menu aside {
    transform: none;
  }
  .menu .shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 4;
  }
  .burger {
    display: grid;
    padding: 6px;
  }
  .grid,
  .grid.equal {
    grid-template-columns: 1fr;
  }
  .mobileclose {
    display: block;
  }
  .topbar {
    height: 54px;
  }
  .content {
    padding-top: 18px;
  }
}
@media (max-width: 480px) {
  .stats {
    gap: 8px;
  }
  .card {
    padding: 12px;
  }
  .metricline svg {
    width: 42px;
  }
  .metriclabel {
    font-size: 12px;
    gap: 6px;
  }
  .panel {
    padding: 15px;
  }
  .content {
    padding-inline: 12px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .topbar .mono {
    display: none;
  }
  .tablewrap {
    max-width: calc(100vw - 58px);
  }
  .titlebar {
    gap: 9px;
  }
  .big {
    margin: 7px 0;
  }
  .barleft {
    gap: 6px;
  }
  .chart {
    height: 170px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
