:root {
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    -apple-system,
    sans-serif;
  color: #26302f;
  background: #f5f6f7;
  font-size: 14px;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  --ink: #293c39;
  --muted: #7c8588;
  --line: #e6e9eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 1px solid #dce1e3;
  background: white;
  color: #485254;
  border-radius: 7px;
  padding: 10px 16px;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s;
  white-space: nowrap;
}
button:hover {
  background: #f0f3f3;
  border-color: #aebdb8;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  font-weight: 600;
}
button.primary:hover {
  background: #405851;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #9aada7;
  outline-offset: 3px;
}
input,
select,
textarea {
  background: #fff;
  color: #273333;
  border: 1px solid #dce1e3;
  border-radius: 6px;
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--ink);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #4a5559;
  margin-bottom: 20px;
}
label input,
label select,
label textarea {
  margin-top: 9px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
}
h2 {
  font-size: 19px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 16px;
}
p {
  line-height: 1.8;
  color: #788287;
}
small {
  color: #8c9699;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  color: #879194;
  margin-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 20px;
  font-family: serif;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 6px;
}
.workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.sidebar > .brand {
  margin: 0 12px 48px;
}
.nav-caption {
  font-size: 11px;
  color: #a0a7aa;
  padding: 0 14px;
  margin-bottom: 16px;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  text-align: left;
  padding: 13px 15px;
  background: transparent;
  color: #7b8588;
  font-size: 13px;
}
nav button.active {
  color: #29453b;
  background: #edf3f0;
  font-weight: 600;
}
nav button.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4e7b68;
  margin-left: auto;
}
.nav-icon {
  width: 17px;
  height: 17px;
  opacity: 0.8;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 10px 0;
  font-size: 11px;
  color: #8a9598;
}
.sidebar-bottom button {
  border: 0;
  padding: 16px 0 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
.sidebar-bottom button span {
  float: right;
}
.connection-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a4aaa9;
  margin-right: 7px;
}
.main-area {
  min-width: 0;
}
.topbar {
  height: 74px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  font-size: 12px;
  color: #8d969a;
}
.topbar strong {
  font-weight: 500;
  color: #515b5e;
}
.breadcrumb {
  margin: 0 15px;
  color: #c6cdcf;
}
#top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar button {
  padding: 7px 12px;
  font-size: 12px;
}
.content {
  max-width: 1480px;
  margin: auto;
  padding: 34px 42px 20px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-title p:last-child {
  font-size: 12px;
  margin-top: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px 0;
  margin-bottom: 28px;
}
.stat {
  padding: 0 27px;
  border-right: 1px solid var(--line);
  color: #899397;
  font-size: 12px;
}
.stat:last-child {
  border: 0;
}
.stat strong {
  display: block;
  color: #344147;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.7px;
  line-height: 1.4;
  margin-top: 10px;
}
.stat .stat-note {
  display: block;
  font-size: 10px;
  color: #a0a9ad;
  margin-top: 7px;
}
.stat.is-open strong {
  color: #4d7762;
}
#panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 25px 27px;
  min-height: 320px;
  outline: none;
}
#panel > p {
  font-size: 12px;
  margin-bottom: 20px;
  max-width: 85ch;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.panel-heading span {
  font-size: 11px;
  color: #939da1;
}
.table-wrap {
  overflow: auto;
  margin: 10px -27px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  background: #f8f9fa;
  font-weight: 500;
  color: #8b969b;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  padding: 13px 20px;
  border-block: 1px solid #edf0f1;
}
td {
  padding: 20px;
  border-bottom: 1px solid #edf0f1;
  vertical-align: middle;
  color: #526066;
  white-space: pre-line;
  line-height: 1.7;
}
th:first-child,
td:first-child {
  padding-left: 27px;
}
th:last-child,
td:last-child {
  padding-right: 27px;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #fbfcfc;
}
td:first-child {
  color: #303e42;
  font-weight: 500;
}
td .sub {
  font-weight: 400;
  font-size: 10px;
  color: #9aa4aa;
  display: block;
  margin-top: 4px;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
td button {
  border: 0;
  background: transparent;
  padding: 6px 0;
  color: #507968;
  font-size: 12px;
}
td button:hover {
  background: transparent;
  color: #223f34;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  background: #f1f3f4;
  color: #8a969a;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.good {
  background: #edf5ef;
  color: #588269;
}
.badge.warn {
  background: #f7f2e9;
  color: #a08957;
}
.badge.bad {
  background: #f9eeee;
  color: #ad7272;
}
.bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}
.bar input {
  max-width: 320px;
  font-size: 12px;
}
.bar select {
  max-width: 150px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: #9aa5aa;
  line-height: 2.2;
}
.empty:before {
  content: "";
  display: block;
  width: 32px;
  height: 35px;
  border: 1.5px solid #cbd5d8;
  border-radius: 4px;
  margin: 0 auto 18px;
  background: repeating-linear-gradient(
    transparent 0 7px,
    #e8edef 7px 8px,
    transparent 8px 11px
  );
  background-size: 18px 25px;
  background-repeat: no-repeat;
  background-position: center;
}
.notice {
  background: #f5f7f6;
  border-left: 2px solid #9eafa7;
  padding: 13px 16px;
  color: #819087;
  font-size: 12px;
  border-radius: 0 5px 5px 0;
  line-height: 1.9;
}
.form-details {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 18px 0 24px;
  background: #fbfcfc;
}
.form-details summary {
  padding: 16px 20px;
  cursor: pointer;
  color: #566a63;
  font-size: 13px;
}
.form-details form {
  padding: 22px 20px 4px;
  border-top: 1px solid var(--line);
}
form .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
form button {
  margin-bottom: 18px;
}
.slot-entry {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 130px 50px;
  gap: 14px;
  align-items: end;
}
.slot-entry label {
  min-width: 0;
}
.slot-entry button {
  padding: 10px 0;
}
.slot-entry + .slot-entry {
  border-top: 1px dashed var(--line);
  padding-top: 15px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
footer {
  color: #a0a9ad;
  font-size: 10px;
  text-align: center;
  padding: 28px 0 10px;
}
#message {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  max-width: 80vw;
  white-space: pre-wrap;
}
#message:not(:empty) {
  padding: 12px 22px;
  border: 1px solid #d7e4dd;
  background: #f2f8f4;
  color: #436451;
  border-radius: 8px;
  box-shadow: 0 5px 20px #263d3520;
}
#message.error {
  background: #fff4f2;
  border-color: #ead3cd;
  color: #995d51;
}
.skip {
  position: fixed;
  top: -50px;
  left: 15px;
  background: white;
  padding: 10px;
  z-index: 6;
}
.skip:focus {
  top: 10px;
}
.login-shell {
  display: grid;
  grid-template-columns: 1fr 440px;
  max-width: 1040px;
  margin: 10vh auto;
  background: white;
  border: 1px solid #e1e7e7;
  border-radius: 16px;
  overflow: hidden;
  min-height: 620px;
}
.login-intro {
  background: linear-gradient(135deg, #e7edeb, #f0f3f4);
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-intro h1 {
  font-size: 38px;
  line-height: 1.7;
  letter-spacing: -1.5px;
  margin: 12px 0 18px;
}
.login-intro p {
  font-size: 12px;
}
.login-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  color: #879b93;
  font-size: 11px;
}
.login-line i {
  height: 1px;
  background: #c5d2cb;
  width: 45px;
}
.login-form {
  padding: 110px 50px 50px;
}
.login-form h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.login-form > p {
  font-size: 12px;
}
.login-form form {
  margin-top: 32px;
}
.login-form form button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.login-note {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  color: #a0a9ac !important;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 48px;
  }
  .page-title {
    margin-bottom: 36px;
  }
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 10px;
  }
  .sidebar > .brand {
    margin-inline: 7px;
    font-size: 14px;
  }
  .content {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stat {
    padding: 0 17px;
  }
  form .grid {
    grid-template-columns: 1fr 1fr;
  }
  .login-shell {
    margin: 5vh 25px;
    grid-template-columns: 1fr 390px;
  }
  .login-intro {
    padding: 35px;
  }
  .login-intro h1 {
    font-size: 30px;
  }
  .login-form {
    padding: 85px 38px;
  }
}
@media (max-width: 700px) {
  .workspace {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .brand {
    margin: 0 0 18px;
  }
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  nav button {
    padding: 10px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .nav-icon {
    display: none;
  }
  nav button.active:after {
    display: none;
  }
  .topbar {
    height: 55px;
    padding: 0 18px;
  }
  .content {
    padding: 23px 16px;
  }
  .page-title {
    align-items: flex-start;
  }
  h1 {
    font-size: 26px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
    padding: 20px 0;
  }
  .stat:nth-child(2) {
    border: 0;
  }
  .stat strong {
    font-size: 23px;
  }
  #panel {
    padding: 20px 18px;
  }
  .table-wrap {
    margin-inline: -18px;
  }
  form .grid {
    grid-template-columns: 1fr;
  }
  .slot-entry {
    grid-template-columns: minmax(0, 1fr) 80px 40px;
  }
  .page-title p:last-child {
    max-width: 29ch;
  }
  .login-shell {
    display: block;
    margin: 20px;
    min-height: 0;
  }
  .login-intro {
    padding: 25px;
  }
  .login-intro > div:nth-child(2),
  .login-intro > small {
    display: none;
  }
  .login-form {
    padding: 35px 25px;
  }
  .bar {
    flex-wrap: wrap;
  }
  .bar select {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
