.page-banner {
  margin-bottom: 4px;
}

.page-banner h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #e8eaf6;
}

.page-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: #6b7289;
}

/* 管理页：与控制台一致的深色表格风格 */
.mgmt-main {
  flex: 1;
  padding: 24px 28px;
  overflow-x: auto;
}

.mgmt-page-title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #e8eaf6;
}

.mgmt-table-wrap {
  border: 1px solid #1e2230;
  border-radius: 12px;
  background: #131722;
  overflow-x: auto;
}

.mgmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.mgmt-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: #6b7289;
  background: #0d0f14;
  border-bottom: 1px solid #1e2230;
  white-space: nowrap;
}

.mgmt-table td {
  padding: 11px 14px;
  color: #c5cad9;
  border-bottom: 1px solid #1a1e2a;
  vertical-align: middle;
}

.mgmt-table tbody tr:hover td {
  background: rgba(91, 106, 240, 0.06);
}

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

.mgmt-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.mgmt-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mgmt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-right: 6px;
}

.mgmt-btn--primary {
  background: linear-gradient(135deg, #5b6af0, #9b59f5);
  color: #fff;
}

.mgmt-btn--ghost {
  background: transparent;
  border: 1px solid #2e3450;
  color: #9ba3c7;
}

.mgmt-btn--danger {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #f87171;
}

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

.mgmt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.mgmt-modal-overlay.is-open {
  display: flex;
}

.mgmt-modal {
  width: 100%;
  max-width: 400px;
  background: #131722;
  border: 1px solid #1e2230;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 0 1px rgba(91, 106, 240, 0.25), 0 24px 48px rgba(0, 0, 0, 0.5);
}

.mgmt-modal h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: #e8eaf6;
}

.mgmt-modal-field {
  margin-bottom: 14px;
}

.mgmt-modal-field label {
  display: block;
  font-size: 0.78rem;
  color: #6b7289;
  margin-bottom: 6px;
}

.mgmt-modal-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2e3450;
  background: #0d0f14;
  color: #e8eaf6;
  font-size: 0.9rem;
}

.mgmt-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.mgmt-empty {
  text-align: center;
  padding: 32px;
  color: #4a4f6a;
  font-size: 0.88rem;
}

.mgmt-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.mgmt-link-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mgmt-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mgmt-page-head-text h1,
.mgmt-page-head-text h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8eaf6;
}

.mgmt-page-head-text p {
  margin: 0;
  font-size: 0.88rem;
  color: #6b7289;
}

.mgmt-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #2e3450;
  background: #1a1f2e;
  color: #9ba3c7;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.mgmt-refresh-btn:hover {
  border-color: #5b6af0;
  color: #c4c9e2;
}

.mgmt-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mgmt-stat-card {
  background: #1a1f2e;
  border: 1px solid #252d45;
  border-radius: 10px;
  padding: 14px 16px;
}

.mgmt-stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mgmt-stat-label {
  font-size: 11px;
  color: #9ba3c7;
}

.mgmt-stat-icon {
  font-size: 1.1rem;
  color: #6b7289;
}

.mgmt-stat-icon--ok {
  color: #3dd68c;
}

.mgmt-stat-icon--run {
  color: #7c8ff5;
}

.mgmt-stat-card--pulse .mgmt-stat-icon--run {
  animation: mgmt-pulse-blue 1.8s ease-in-out infinite;
}

@keyframes mgmt-pulse-blue {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.08);
  }
}

.mgmt-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: #e8eaf6;
  line-height: 1.1;
}

.mgmt-stat-value--ok {
  color: #3dd68c;
}

.mgmt-stat-value--run {
  color: #7c8ff5;
}

.mgmt-stat-value--warn {
  color: #f0a04f;
}

.mgmt-sort-icon {
  font-size: 0.7rem;
  opacity: 0.45;
  vertical-align: middle;
  margin-left: 2px;
}

.mgmt-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #1e2230;
  background: #0d0f14;
  font-size: 0.78rem;
  color: #6b7289;
}

.mgmt-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mgmt-page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #2e3450;
  background: #131722;
  color: #9ba3c7;
  font-size: 0.75rem;
  cursor: pointer;
}

.mgmt-page-btn:hover:not(:disabled) {
  border-color: #5b6af0;
  color: #e8eaf6;
}

.mgmt-page-btn.is-active {
  background: #5b6af0;
  border-color: #5b6af0;
  color: #fff;
}

.mgmt-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mgmt-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #4a4f6a;
}

.mgmt-empty-state .mgmt-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.7;
}

.mgmt-empty-state .mgmt-empty-title {
  font-size: 0.95rem;
  color: #9ba3c7;
  margin-bottom: 6px;
}

.mgmt-empty-state .mgmt-empty-desc {
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.mgmt-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mgmt-progress-bar {
  background: #1e2230;
  border-radius: 4px;
  height: 6px;
  width: 80px;
  overflow: hidden;
}

.mgmt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5b6af0, #3dd68c);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.mgmt-progress-text {
  font-size: 0.72rem;
  color: #6b7289;
}

.mgmt-progress-text--ok {
  color: #3dd68c;
}

.mgmt-progress-text--fail {
  color: #e05252;
}

.mgmt-dropdown {
  position: relative;
  display: inline-block;
}

.mgmt-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 130px;
  z-index: 50;
  background: #1a1f2e;
  border: 1px solid #2e3450;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.mgmt-dropdown.is-open .mgmt-dropdown-menu {
  display: block;
}

.mgmt-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #c5cad9;
  font-size: 0.78rem;
  cursor: pointer;
}

.mgmt-dropdown-item:hover {
  background: rgba(91, 106, 240, 0.12);
  color: #e8eaf6;
}

.mgmt-dropdown-item--danger {
  color: #f87171;
}

.mgmt-modal-field textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2e3450;
  background: #0d0f14;
  color: #e8eaf6;
  font-size: 0.88rem;
  resize: vertical;
}

.mgmt-confirm-info {
  font-size: 0.82rem;
  color: #9ba3c7;
  line-height: 1.6;
  margin-bottom: 14px;
  padding: 12px;
  background: #0d0f14;
  border-radius: 8px;
  border: 1px solid #1e2230;
}

/* ========== 概览页（控制台） ========== */
#dash-pane-overview .overview-page {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#dash-pane-overview .overview-kpi-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px;
  width: 100%;
}

#dash-pane-overview .overview-kpi-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #161b28 0%, #12161f 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px 20px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

#dash-pane-overview .overview-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 106, 240, 0.25);
}

#dash-pane-overview .overview-kpi-card__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}

#dash-pane-overview .overview-kpi-card--blue .overview-kpi-card__glow {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

#dash-pane-overview .overview-kpi-card--purple .overview-kpi-card__glow {
  background: linear-gradient(90deg, #5b6af0, #a78bfa);
}

#dash-pane-overview .overview-kpi-card--green .overview-kpi-card__glow {
  background: linear-gradient(90deg, #10b981, #3dd68c);
}

#dash-pane-overview .overview-kpi-card--orange .overview-kpi-card__glow {
  background: linear-gradient(90deg, #f59e0b, #f0a04f);
}

#dash-pane-overview .overview-kpi-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

#dash-pane-overview .overview-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

#dash-pane-overview .overview-icon--blue {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

#dash-pane-overview .overview-icon--purple {
  background: rgba(91, 106, 240, 0.14);
  color: #9b8afb;
  box-shadow: inset 0 0 0 1px rgba(124, 106, 240, 0.22);
}

#dash-pane-overview .overview-icon--green {
  background: rgba(61, 214, 140, 0.12);
  color: #3dd68c;
  box-shadow: inset 0 0 0 1px rgba(61, 214, 140, 0.22);
}

#dash-pane-overview .overview-icon--orange {
  background: rgba(240, 160, 79, 0.12);
  color: #f0a04f;
  box-shadow: inset 0 0 0 1px rgba(240, 160, 79, 0.22);
}

#dash-pane-overview .overview-kpi-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

#dash-pane-overview .overview-kpi-chip--purple {
  background: rgba(124, 106, 240, 0.12);
  color: #c4b5fd;
  border-color: rgba(124, 106, 240, 0.22);
}

#dash-pane-overview .overview-kpi-chip--green {
  background: rgba(61, 214, 140, 0.1);
  color: #6ee7b7;
  border-color: rgba(61, 214, 140, 0.22);
}

#dash-pane-overview .overview-kpi-chip--orange {
  background: rgba(240, 160, 79, 0.1);
  color: #fcd34d;
  border-color: rgba(240, 160, 79, 0.22);
}

#dash-pane-overview .overview-kpi-value {
  font-size: 2.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #f4f5fb;
  margin-bottom: 6px;
}

#dash-pane-overview .overview-kpi-value--purple {
  color: #b4a6fc;
}

#dash-pane-overview .overview-kpi-value--green {
  color: #4ade80;
}

#dash-pane-overview .overview-kpi-value--orange {
  color: #fbbf24;
}

#dash-pane-overview .overview-kpi-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e8eaf6;
  margin-bottom: 2px;
}

#dash-pane-overview .overview-kpi-sub {
  font-size: 0.75rem;
  color: #6b7289;
}

#dash-pane-overview .overview-split-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) !important;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

#dash-pane-overview .overview-panel {
  background: linear-gradient(160deg, #141824 0%, #10141c 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  min-width: 0;
  width: 100%;
}

#dash-pane-overview .overview-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#dash-pane-overview .overview-panel-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8eaf6;
}

#dash-pane-overview .overview-panel-head .overview-panel-title {
  margin-bottom: 0;
}

#dash-pane-overview .overview-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(124, 106, 240, 0.35);
  background: rgba(91, 106, 240, 0.1);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

#dash-pane-overview .overview-link-btn:hover {
  background: rgba(91, 106, 240, 0.22);
  color: #e0e7ff;
}

#dash-pane-overview .overview-table-shell {
  border: 1px solid #1e2230;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0f14;
}

#dash-pane-overview .overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

#dash-pane-overview .overview-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  color: #6b7289;
  background: #12151d;
  border-bottom: 1px solid #1e2230;
  white-space: nowrap;
}

#dash-pane-overview .overview-table td {
  padding: 11px 12px;
  color: #c5cad9;
  border-bottom: 1px solid #181c26;
  vertical-align: middle;
}

#dash-pane-overview .overview-table tbody tr:last-child td {
  border-bottom: none;
}

#dash-pane-overview .overview-table tbody tr:hover td {
  background: rgba(91, 106, 240, 0.06);
}

#dash-pane-overview .overview-table-empty {
  text-align: center;
  padding: 28px 12px !important;
  color: #6b7289;
}

#dash-pane-overview .overview-panel--status .overview-panel-title {
  margin-bottom: 16px;
}

#dash-pane-overview .overview-status-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#dash-pane-overview .overview-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.5;
}

#dash-pane-overview .overview-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

#dash-pane-overview .overview-status-item--ok .overview-status-dot {
  background: #3dd68c;
  color: #3dd68c;
}

#dash-pane-overview .overview-status-item--warn .overview-status-dot {
  background: #f0a04f;
  color: #f0a04f;
}

#dash-pane-overview .overview-status-item--danger .overview-status-dot {
  background: #f87171;
  color: #f87171;
}

#dash-pane-overview .overview-status-item--ok .overview-status-val {
  color: #3dd68c;
}

#dash-pane-overview .overview-status-item--warn .overview-status-val {
  color: #f0a04f;
}

#dash-pane-overview .overview-status-item--danger .overview-status-val {
  color: #f87171;
}

#dash-pane-overview .overview-status-name {
  flex: 1;
  font-size: 0.84rem;
  color: #d1d5e4;
}

#dash-pane-overview .overview-status-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ba3c7;
}

#dash-pane-overview .overview-status-item.is-paused {
  border-color: rgba(240, 160, 79, 0.25);
}

#dash-pane-overview .overview-status-item.is-paused .overview-status-dot {
  background: #f0a04f;
  color: #f0a04f;
}

#dash-pane-overview .overview-status-item.is-paused .overview-status-val {
  color: #f0a04f;
}

#dash-pane-overview .overview-usage-block {
  padding-top: 4px;
}

#dash-pane-overview .overview-usage-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7289;
  margin-bottom: 8px;
}

#dash-pane-overview .overview-usage-bar {
  background: #1a1f2e;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  border: 1px solid #252d45;
}

#dash-pane-overview .overview-usage-fill {
  height: 100%;
  background: linear-gradient(90deg, #5b6af0 0%, #9b59f5 50%, #c084fc 100%);
  border-radius: 999px;
  transition: width 0.45s ease;
  box-shadow: 0 0 12px rgba(91, 106, 240, 0.45);
}

#dash-pane-overview .overview-join-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px;
  width: 100%;
}

#dash-pane-overview .overview-join-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

#dash-pane-overview .overview-join-card--success {
  background: linear-gradient(135deg, rgba(16, 48, 32, 0.9) 0%, rgba(12, 22, 18, 0.95) 100%);
  border-color: rgba(61, 214, 140, 0.2);
}

#dash-pane-overview .overview-join-card--fail {
  background: linear-gradient(135deg, rgba(48, 16, 20, 0.85) 0%, rgba(22, 12, 14, 0.95) 100%);
  border-color: rgba(248, 113, 113, 0.18);
}

#dash-pane-overview .overview-join-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

#dash-pane-overview .overview-join-card--success .overview-join-card__icon {
  background: rgba(61, 214, 140, 0.12);
  color: #3dd68c;
}

#dash-pane-overview .overview-join-card--fail .overview-join-card__icon {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

#dash-pane-overview .overview-join-label {
  font-size: 0.82rem;
  color: #9ba3c7;
  margin-bottom: 4px;
}

#dash-pane-overview .overview-join-value {
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}

#dash-pane-overview .overview-join-card--success .overview-join-value {
  color: #3dd68c;
}

#dash-pane-overview .overview-join-card--fail .overview-join-value {
  color: #f87171;
}

#dash-pane-overview .overview-join-hint {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #6b7289;
}

#dash-pane-overview .overview-td-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  color: #c4c9e2;
}

#dash-pane-overview .overview-td-time {
  color: #6b7289;
  font-size: 0.76rem;
  white-space: nowrap;
}

#dash-pane-overview .overview-st {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

#dash-pane-overview .overview-st--ok {
  background: rgba(61, 214, 140, 0.12);
  color: #3dd68c;
}

#dash-pane-overview .overview-st--run {
  background: rgba(124, 106, 240, 0.14);
  color: #a5b4fc;
}

#dash-pane-overview .overview-st--warn {
  background: rgba(240, 160, 79, 0.12);
  color: #f0a04f;
}

#dash-pane-overview .overview-st--fail {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

#dash-pane-overview .overview-st--muted {
  background: rgba(107, 114, 137, 0.12);
  color: #9ba3c7;
}

@media (max-width: 1280px) {
  #dash-pane-overview .overview-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 960px) {
  #dash-pane-overview .overview-split-row {
    grid-template-columns: 1fr !important;
  }
  #dash-pane-overview .overview-join-row {
    grid-template-columns: 1fr !important;
  }
}

.mgmt-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
