:root {
  --bg: #080a0e;
  --bg-soft: #0c1015;
  --panel: #11161d;
  --panel-2: #151b24;
  --line: #222a36;
  --line-soft: #1a212b;
  --text: #e9eef6;
  --text-2: #b9c2cf;
  --muted: #7f8b9b;
  --gold: #e6bd80;
  --gold-2: #c99a55;
  --green: #47c59b;
  --red: #e06c75;
  --amber: #e0ae5a;
  --blue: #6fa8ff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 12% -10%, rgba(230, 189, 128, 0.08), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(111, 168, 255, 0.06), transparent 55%);
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ---------------- 启动 / 登录 ---------------- */
.boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: var(--bg);
  z-index: 50;
}

.boot__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(230, 189, 128, 0.4);
  border-radius: 14px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 26px;
  box-shadow: 0 0 40px rgba(230, 189, 128, 0.15);
  animation: pulse 1.8s ease-in-out infinite;
}

.boot__text {
  color: var(--muted);
  letter-spacing: 2px;
  font-size: 12px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.login__left {
  position: relative;
  padding: clamp(32px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line-soft);
  overflow: hidden;
}

.login__left::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 189, 128, 0.14), transparent 65%);
}

.brandline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brandmark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(230, 189, 128, 0.45);
  border-radius: 12px;
  display: grid;
  place-content: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 21px;
  background: rgba(230, 189, 128, 0.05);
}

.brandname {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 3px;
}

.brandsub {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.login__headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.35;
  font-weight: 500;
  margin: 40px 0 18px;
  letter-spacing: 2px;
}

.login__headline em {
  color: var(--gold);
  font-style: normal;
}

.login__desc {
  color: var(--text-2);
  max-width: 460px;
  font-size: 15px;
  line-height: 1.9;
}

.login__quote {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.login__right {
  display: grid;
  place-content: center;
  padding: 32px;
}

.login__card {
  width: min(400px, 100%);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--bg-soft));
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.login__title {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: 1px;
}

.login__hint {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 26px;
}

/* ---------------- 布局 ---------------- */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line-soft);
  background: rgba(9, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 10;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 10px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.sidebar__brand .brandmark {
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-radius: 10px;
}

.sidebar__name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 2px;
}

.sidebar__tag {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.4px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.nav__label {
  color: #5d6878;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 14px 12px 6px;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-2);
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  text-align: left;
  width: 100%;
  transition: 0.16s ease;
}

.nav__item svg {
  width: 17px;
  height: 17px;
  opacity: 0.75;
}

.nav__item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav__item.active {
  background: linear-gradient(90deg, rgba(230, 189, 128, 0.12), rgba(230, 189, 128, 0.02));
  border-color: rgba(230, 189, 128, 0.22);
  color: var(--gold);
}

.nav__item.active svg {
  opacity: 1;
}

.nav__badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: rgba(224, 108, 117, 0.16);
  color: #ff9aa2;
  font-size: 11px;
  display: grid;
  place-content: center;
  padding: 0 6px;
}

.sidebar__foot {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding: 14px 10px 0;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(71, 197, 155, 0.7);
  margin-right: 7px;
}

.status-dot.off {
  background: var(--muted);
  box-shadow: none;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(18px, 3vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(14px);
}

.topbar__title {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 1.5px;
}

.topbar__date {
  color: var(--muted);
  font-size: 12px;
}

.topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text-2);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.chip.gold {
  border-color: rgba(230, 189, 128, 0.3);
  color: var(--gold);
  background: rgba(230, 189, 128, 0.06);
}

.view {
  padding: clamp(18px, 3vw, 38px);
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  animation: fade 0.32s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-title {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.page-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.page-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------- 通用组件 ---------------- */
.card {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(21, 27, 36, 0.9), rgba(14, 18, 24, 0.94));
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.card__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.card__hint {
  color: var(--muted);
  font-size: 11px;
  margin-left: auto;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  white-space: nowrap;
}

.btn:hover {
  border-color: #354051;
  background: rgba(255, 255, 255, 0.06);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn.primary {
  background: linear-gradient(135deg, #ecd09c, #c99a55);
  color: #241a0c;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(201, 154, 85, 0.22);
}

.btn.primary:hover {
  filter: brightness(1.06);
}

.btn.ghost {
  border-color: rgba(230, 189, 128, 0.25);
  color: var(--gold);
  background: rgba(230, 189, 128, 0.05);
}

.btn.danger {
  border-color: rgba(224, 108, 117, 0.34);
  color: #ff9aa2;
  background: rgba(224, 108, 117, 0.06);
}

.btn.sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
  color: var(--text-2);
}

.icon-btn:hover {
  color: var(--gold);
  border-color: rgba(230, 189, 128, 0.3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field .tip {
  color: #66717f;
  font-size: 11px;
  line-height: 1.6;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: #0b0f14;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  outline: none;
  transition: 0.16s ease;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(230, 189, 128, 0.5);
  box-shadow: 0 0 0 3px rgba(230, 189, 128, 0.08);
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.8;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.kpi {
  position: relative;
  overflow: hidden;
}

.kpi::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 189, 128, 0.09), transparent 70%);
}

.kpi__label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.kpi__value {
  font-size: 30px;
  font-weight: 600;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.kpi__value small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.kpi__foot {
  color: #6e7a89;
  font-size: 11px;
}

.kpi__value.gold {
  color: var(--gold);
}

.kpi__value.green {
  color: var(--green);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  border: 1px solid var(--line);
  color: var(--text-2);
  white-space: nowrap;
}

.badge.green {
  color: #7fe0bd;
  border-color: rgba(71, 197, 155, 0.3);
  background: rgba(71, 197, 155, 0.08);
}

.badge.gold {
  color: var(--gold);
  border-color: rgba(230, 189, 128, 0.3);
  background: rgba(230, 189, 128, 0.07);
}

.badge.red {
  color: #ff9aa2;
  border-color: rgba(224, 108, 117, 0.3);
  background: rgba(224, 108, 117, 0.08);
}

.badge.blue {
  color: #9dc2ff;
  border-color: rgba(111, 168, 255, 0.3);
  background: rgba(111, 168, 255, 0.08);
}

.badge.muted {
  color: var(--muted);
}

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
}

.alert.action {
  border-color: rgba(230, 189, 128, 0.28);
  background: rgba(230, 189, 128, 0.05);
}

.alert.warn {
  border-color: rgba(224, 108, 117, 0.26);
  background: rgba(224, 108, 117, 0.05);
}

.alert .alert__go {
  margin-left: auto;
  color: var(--gold);
  cursor: pointer;
  font-size: 12px;
  background: none;
  border: none;
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.015);
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: 13px;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:last-child td {
  border-bottom: none;
}

.table-title {
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}

.table-sub {
  color: var(--muted);
  font-size: 11px;
}

.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
}

.empty__title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.empty__hint {
  font-size: 12px;
  line-height: 1.9;
}

.empty .btn {
  margin-top: 16px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.nowrap {
  white-space: nowrap;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(6px);
  animation: fade 0.2s ease;
}

.modal__box {
  width: min(760px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #131921, #0c1015);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal__box.wide {
  width: min(980px, 100%);
}

.modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.modal__title {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 1px;
}

.modal__close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
}

.modal__body {
  padding: 22px;
  overflow-y: auto;
}

.modal__foot {
  padding: 16px 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.15);
}

/* ---------------- 提示 ---------------- */
.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: #11161d;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: slide 0.24s ease;
}

.toast.error {
  border-left-color: var(--red);
}

.toast.success {
  border-left-color: var(--green);
}

@keyframes slide {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- 业务块 ---------------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pipeline__step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.015);
  position: relative;
}

.pipeline__step + .pipeline__step::before {
  content: "→";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: #3b4553;
  font-size: 12px;
}

.pipeline__num {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pipeline__name {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.logline {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12px;
  color: var(--text-2);
}

.logline:last-child {
  border-bottom: none;
}

.logline time {
  color: #5d6878;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.logline .lv {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--muted);
  flex: none;
}

.logline .lv.success {
  background: var(--green);
}

.logline .lv.warn {
  background: var(--amber);
}

.logline .lv.error {
  background: var(--red);
}

.stream {
  background: #070a0e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  height: 260px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.9;
  color: #9aa8b8;
}

.stream .t {
  color: #4f5b6a;
  margin-right: 8px;
}

.stream .s {
  color: var(--green);
}

.stream .w {
  color: var(--amber);
}

.stream .e {
  color: var(--red);
}

.check-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12px;
}

.check-item:last-child {
  border-bottom: none;
}

.check-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 6px;
  flex: none;
  background: var(--green);
}

.check-item .dot.bad {
  background: var(--red);
}

.check-item .dot.warn {
  background: var(--amber);
}

.answer-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.012);
}

.answer-block__q {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.7;
}

.answer-block__q span {
  color: var(--gold);
  margin-right: 6px;
  font-family: var(--serif);
}

.answer-block__meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
}

.agent-card__name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 1px;
}

.agent-card__duty {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.8;
  flex: 1;
}

.agent-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-card__foot .btn {
  margin-left: auto;
}

.bar {
  height: 5px;
  border-radius: 4px;
  background: #1b222c;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c99a55, #ecd09c);
  border-radius: 4px;
}

.chart {
  width: 100%;
  height: 190px;
  display: block;
  overflow: visible;
}

.chart text {
  fill: #6b7787;
  font-size: 9px;
  font-family: var(--font);
}

.chart .grid-line {
  stroke: #1b222c;
  stroke-width: 1;
}

.legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}

.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
}

.preview {
  background: #fff;
  color: #222;
  border-radius: 10px;
  padding: 26px;
  max-height: 460px;
  overflow-y: auto;
  line-height: 1.9;
  font-size: 15px;
}

.preview h1,
.preview h2,
.preview h3 {
  color: #1a1a1a;
}

.preview p {
  margin: 0 0 18px;
}

.preview img {
  max-width: 100%;
}

pre.code {
  background: #0a0e13;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.8;
  color: #b6c2d1;
  max-height: 320px;
  overflow: auto;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
}

.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 14px;
  font-size: 12px;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  color: var(--text-2);
  word-break: break-all;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  margin: 24px 0 10px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.switch:last-child {
  border-bottom: none;
}

.switch__text {
  flex: 1;
}

.switch__text b {
  display: block;
  font-weight: 500;
  font-size: 13px;
}

.switch__text span {
  color: var(--muted);
  font-size: 11px;
}

.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #232b36;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  flex: none;
}

.toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #93a0ae;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}

.toggle.on {
  background: rgba(230, 189, 128, 0.85);
}

.toggle.on::after {
  left: 21px;
  background: #201708;
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 1100px) {
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pipeline__step + .pipeline__step::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login__left {
    display: none;
  }
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: row;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-right: none;
    border-top: 1px solid var(--line);
    background: rgba(9, 12, 16, 0.96);
    overflow-x: auto;
    gap: 6px;
    z-index: 30;
  }
  .sidebar__brand,
  .sidebar__foot,
  .nav__label {
    display: none;
  }
  .nav {
    flex-direction: row;
    gap: 4px;
    width: 100%;
    overflow: visible;
  }
  .nav__item {
    flex-direction: column;
    gap: 4px;
    padding: 7px 10px;
    font-size: 10px;
    min-width: 62px;
    justify-content: center;
  }
  .nav__item svg {
    width: 18px;
    height: 18px;
  }
  .nav__badge {
    position: absolute;
    top: 2px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .nav__item {
    position: relative;
  }
  .main {
    padding-bottom: 76px;
  }
  .split,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    padding: 12px 16px;
  }
  .topbar__date {
    display: none;
  }
  .view {
    padding: 16px;
  }
  .kpi__value {
    font-size: 26px;
  }
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal__box {
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }
  .toasts {
    left: 16px;
    right: 16px;
    bottom: 84px;
    max-width: none;
  }
  table.responsive thead {
    display: none;
  }
  table.responsive tbody tr {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    gap: 5px;
  }
  table.responsive tbody td {
    padding: 0;
    border: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  table.responsive tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
  }
}
