:root {
  --bg: #0b111c;
  --panel: #111a29;
  --line: #253043;
  --text: #e5eaf4;
  --muted: #8593aa;
  --green: #79d9b6;
  --blue: #8bb8fa;
  --red: #f38c90;
  --amber: #e5bd79;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
  color: var(--text);
  background: #172235;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  cursor: pointer;
}
button:hover,
select:hover {
  border-color: #56708d;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 206px;
  padding: 30px 18px;
  background: #0d1522;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 42px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.brand svg {
  width: 32px;
  height: 32px;
  fill: var(--green);
}
.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 5px;
}
.rail nav {
  display: grid;
  gap: 8px;
}
.rail nav a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 9px;
  color: var(--muted);
}
.rail nav a span {
  width: 18px;
  font-size: 14px;
  color: #b2c2d8;
}
.rail nav a.active {
  background: #1a2b3b;
  color: var(--green);
}
.rail nav a:hover {
  background: #162132;
}
.rail-bottom {
  margin-top: auto;
  padding: 16px 10px;
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #b7c4d8;
}
.rail-bottom small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 7px;
}
main {
  margin-left: 206px;
  padding: 36px clamp(22px, 3.4vw, 60px);
  max-width: 1810px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2.1px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 10px 0 0;
  font-weight: 600;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.header-actions > span {
  color: var(--muted);
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 32px;
  overflow: hidden;
}
.metrics article {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.metrics article:last-child {
  border: 0;
}
.metrics article > span {
  color: var(--muted);
  font-size: 12px;
}
.metrics strong {
  display: block;
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.8px;
  margin: 13px 0 10px;
  white-space: nowrap;
}
.metrics .mono {
  font-size: 23px;
}
.metrics small {
  font-size: 11px;
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.section-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.slot {
  background: linear-gradient(135deg, #142434, #111a29 65%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  min-width: 0;
}
.slot.live {
  border-color: #3a685e;
}
.slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 8px;
}
.slot-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.slot-letter {
  display: grid;
  place-items: center;
  border: 1px solid #3b5169;
  border-radius: 9px;
  width: 38px;
  height: 38px;
  color: var(--blue);
  font-size: 19px;
}
.slot.live .slot-letter {
  color: var(--green);
  border-color: #376c5b;
  background: #182e2a;
}
.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #26354b;
  color: #b0c3dd;
  display: inline-flex;
  white-space: nowrap;
}
.badge.good {
  color: var(--green);
  background: #18352e;
}
.badge.bad {
  color: var(--red);
  background: #362127;
}
.badge.warn {
  color: var(--amber);
  background: #342e24;
}
.slot-sha {
  font-size: 23px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.slot-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.service-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.service-strip span {
  font-size: 10px;
  color: var(--muted);
}
.service-strip i {
  display: inline-block;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  background: var(--green);
  margin-right: 5px;
}
.service-strip i.off {
  background: var(--amber);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.subtle {
  color: var(--muted);
  font-size: 11px;
}
.gates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 10px;
  padding: 6px 22px 22px;
}
.gate {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.check {
  color: var(--green);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #18352e;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.check.unknown {
  color: var(--amber);
  background: #342e24;
}
.panel-foot {
  color: var(--muted);
  font-size: 11px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.workers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 6px 22px 22px;
}
.worker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.worker span:first-child {
  color: #b3bfd2;
}
.history,
.acceptance {
  margin-bottom: 22px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  padding: 10px 22px;
  background: #0e1826;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
td {
  padding: 12px 22px;
  border-top: 1px solid #1e2a3c;
  font-size: 12px;
}
tbody tr:hover {
  background: #162235;
}
.table-wrap .empty {
  padding: 25px;
  color: var(--muted);
  text-align: center;
}
.acceptance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 22px 24px;
}
.acceptance-item {
  border-left: 2px solid #3d645e;
  padding-left: 15px;
}
.acceptance-item > strong {
  font-size: 13px;
  font-weight: 500;
}
.acceptance-values {
  display: flex;
  gap: 25px;
  margin-top: 14px;
}
.acceptance-values strong {
  font-size: 24px;
  font-weight: 500;
  display: block;
}
.acceptance-values small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}
.retirement {
  padding: 18px 22px;
}
.retirement summary {
  cursor: pointer;
  font-size: 13px;
}
.retirement summary span {
  float: right;
  color: var(--muted);
  font-size: 11px;
}
.retirement ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  list-style: none;
  padding: 0;
}
.retirement li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding-right: 25px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #69798f;
  margin: 25px 0 0;
  line-height: 1.5;
}
.notice {
  border: 1px solid #785d32;
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--amber);
  background: #28231b;
  margin: 18px 0;
}
.login-card {
  max-width: 460px;
  margin: 100px auto;
  text-align: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.login-mark {
  font-size: 30px;
  color: var(--green);
  margin-bottom: 22px;
}
.login-card h2 {
  font-size: 20px;
}
.login-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0 25px;
}
.login-card button,
.primary {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border-radius: 8px;
}
.primary {
  background: var(--green);
  color: #0d2820;
  font-weight: 600;
}
.single .slots {
  grid-template-columns: 1fr;
}
.single .slot {
  padding: 28px;
}
.single .slot-sha {
  font-size: 28px;
}
.single .slot-meta {
  justify-content: flex-start;
  gap: 25px;
}
@media (max-width: 1100px) {
  .rail {
    width: 172px;
    padding-inline: 12px;
  }
  main {
    margin-left: 172px;
    padding: 28px 22px;
  }
  .metrics article {
    padding: 18px 15px;
  }
  .metrics strong {
    font-size: 24px;
  }
  .metrics .mono {
    font-size: 18px;
  }
  .section-heading > span {
    max-width: 50%;
    text-align: right;
    line-height: 1.7;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .gates {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .rail {
    position: static;
    width: auto;
    padding: 14px 18px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .brand {
    padding: 0;
    font-size: 19px;
  }
  .brand small,
  .rail-bottom {
    display: none;
  }
  .brand svg {
    width: 25px;
  }
  .rail nav {
    display: flex;
    gap: 3px;
  }
  .rail nav a {
    font-size: 11px;
    padding: 8px;
    gap: 5px;
  }
  .rail nav a span {
    width: auto;
  }
  .rail nav a:last-child {
    display: none;
  }
  main {
    margin-left: 0;
    padding: 23px 16px;
  }
  h1 {
    font-size: 24px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .header-actions {
    gap: 9px;
  }
  .header-actions > span {
    font-size: 10px;
  }
  .header-actions button span {
    display: none;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 25px;
  }
  .metrics article {
    border-bottom: 1px solid var(--line);
  }
  .metrics article:nth-child(2) {
    border-right: 0;
  }
  .metrics article:nth-child(3),
  .metrics article:nth-child(4) {
    border-bottom: 0;
  }
  .metrics .mono {
    font-size: 21px;
  }
  .slots {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section-heading > span {
    display: none;
  }
  .slot {
    padding: 18px;
  }
  .gates {
    gap: 14px 8px;
    padding-inline: 18px;
  }
  .gate {
    font-size: 11px;
  }
  .workers {
    padding-inline: 18px;
  }
  .panel-head {
    padding: 17px 18px;
  }
  th,
  td {
    padding: 11px 16px;
  }
  .acceptance-grid {
    grid-template-columns: 1fr;
  }
  .retirement ul {
    grid-template-columns: 1fr;
  }
  .retirement li {
    padding-right: 0;
  }
  footer {
    font-size: 9px;
    flex-direction: column;
  }
  .login-card {
    margin-top: 45px;
    padding: 28px;
  }
}
