:root {
  color-scheme: dark;
  --bg: #080d12;
  --panel: rgba(18, 28, 36, 0.58);
  --panel-strong: rgba(20, 34, 44, 0.78);
  --line: rgba(207, 232, 255, 0.18);
  --line-strong: rgba(213, 241, 255, 0.32);
  --text: #eef8ff;
  --muted: #9fb3c3;
  --soft: #6f8495;
  --cyan: #49d6ff;
  --emerald: #58e6a1;
  --amber: #ffd166;
  --red: #ff6b7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(73, 214, 255, 0.2), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(88, 230, 161, 0.13), transparent 24%),
    linear-gradient(135deg, #081018 0%, #10131b 48%, #071116 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.05), transparent 44%),
    radial-gradient(circle at 50% 50%, transparent 0, rgba(0, 0, 0, 0.42) 78%);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.glass-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)) var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(26px) saturate(145%);
}

.auth-body {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(340px, 470px) minmax(300px, 420px);
  gap: 20px;
  width: min(960px, 100%);
}

.auth-shell.compact {
  grid-template-columns: minmax(320px, 470px);
  justify-content: center;
}

.auth-panel,
.auth-side {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 34px;
}

.auth-panel::before,
.topbar::before,
.sidebar::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.22), transparent 34%);
  opacity: 0.5;
}

.auth-brand,
.side-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #061014;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(73, 214, 255, 0.28);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.auth-brand h1,
.auth-copy h2,
.section-heading h2 {
  margin-bottom: 0;
}

.auth-copy {
  margin: 42px 0 26px;
}

.auth-copy h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.auth-copy p,
.auth-checks,
.demo-note,
.topbar span,
.metric small,
.info-list,
.timeline span,
.session-list span {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label,
.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form input,
.search-box input,
select {
  width: 100%;
  min-height: 48px;
  color: var(--text);
  background: rgba(2, 10, 15, 0.45);
  border: 1px solid rgba(217, 241, 255, 0.14);
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
}

.auth-form input:focus,
.search-box input:focus,
select:focus {
  border-color: rgba(73, 214, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(73, 214, 255, 0.12);
}

.code-input {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-align: center;
}

.primary-button,
.logout-button,
.quick-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: #061014;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  border: 0;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(73, 214, 255, 0.23);
}

.ghost-link {
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}

.form-alert {
  padding: 12px 14px;
  color: #ffe8ec;
  background: rgba(255, 107, 122, 0.13);
  border: 1px solid rgba(255, 107, 122, 0.28);
  border-radius: 14px;
}

.demo-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.auth-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.radar-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.radar-card > span {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(73, 214, 255, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 214, 255, 0.68) 0 4px, transparent 5px), radial-gradient(circle, rgba(73, 214, 255, 0.12), transparent 62%);
}

.radar-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.auth-checks {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.auth-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-checks span {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(88, 230, 161, 0.85);
}

.dashboard-body {
  padding: 18px;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 36px);
}

.sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  overflow: hidden;
  border-radius: 24px;
  padding: 20px;
}

.side-brand strong,
.operator-card strong {
  display: block;
}

.side-brand small,
.operator-card small {
  color: var(--muted);
}

.operator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.avatar,
.profile-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #061014;
  font-weight: 900;
  background: linear-gradient(135deg, #d9f7ff, var(--cyan));
  border-radius: 50%;
}

.avatar {
  width: 42px;
  height: 42px;
}

.operator-card i {
  width: 9px;
  height: 9px;
  margin-left: auto;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(88, 230, 161, 0.88);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 10px;
}

.nav-item span,
.icon-button {
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.nav-item span {
  width: 30px;
  height: 30px;
  color: var(--cyan);
  background: rgba(73, 214, 255, 0.1);
  border-radius: 10px;
}

.nav-item.active,
.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.side-status {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.side-status div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.side-status strong {
  display: block;
  font-size: 24px;
}

.side-status span {
  color: var(--muted);
  font-size: 12px;
}

.control-center {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 24px;
  padding: 20px;
}

.topbar h1 {
  margin-bottom: 5px;
  font-size: 28px;
}

.top-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.search-box {
  width: min(320px, 34vw);
}

.icon-button {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.logout-button {
  padding: 0 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  border-radius: 20px;
  padding: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 32px;
}

.metric.warning strong {
  color: var(--amber);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(540px, 1.45fr);
  gap: 14px;
}

.profile-panel,
.hosts-panel,
.quick-panel,
.audit-panel,
.sessions-panel {
  min-width: 0;
  border-radius: 22px;
  padding: 20px;
}

.hosts-panel {
  grid-row: span 2;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 18px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.status-chip.success {
  color: var(--emerald);
  border-color: rgba(88, 230, 161, 0.25);
}

.status-chip.danger {
  color: var(--red);
  border-color: rgba(255, 107, 122, 0.3);
}

.status-chip.muted {
  color: var(--amber);
  border-color: rgba(255, 209, 102, 0.3);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.profile-main h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.profile-main p {
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(207, 232, 255, 0.1);
}

.info-list dt {
  color: var(--soft);
}

.info-list dd {
  margin: 0;
  color: var(--text);
  text-align: right;
}

.security-toggles {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
}

.toggle-row i {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.toggle-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  content: "";
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.toggle-row.active {
  color: var(--text);
}

.toggle-row.active i {
  background: rgba(88, 230, 161, 0.42);
}

.toggle-row.active i::after {
  transform: translateX(18px);
  background: var(--emerald);
}

select {
  width: 128px;
  min-height: 38px;
  color: var(--text);
}

.host-table {
  overflow-x: auto;
}

.host-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(92px, 0.9fr) minmax(110px, 1fr) repeat(3, minmax(72px, 0.75fr)) minmax(70px, 0.65fr);
  gap: 12px;
  align-items: center;
  min-width: 740px;
  min-height: 54px;
  color: var(--muted);
  border-bottom: 1px solid rgba(207, 232, 255, 0.1);
}

.host-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-row:not(.table-head) span:first-child {
  color: var(--text);
  font-weight: 800;
}

.table-head {
  min-height: 36px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.host-row b {
  display: block;
  width: min(72px, 100%);
  height: 5px;
  margin-bottom: 5px;
  background: linear-gradient(90deg, var(--cyan) var(--value), rgba(255, 255, 255, 0.13) 0);
  border-radius: 999px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-actions button {
  min-height: 48px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.quick-actions button:hover {
  border-color: var(--line-strong);
  background: rgba(73, 214, 255, 0.15);
}

.timeline {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
}

.timeline time {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.session-list {
  display: grid;
  gap: 0;
}

.session-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(207, 232, 255, 0.1);
}

.session-list strong,
.session-list span {
  min-width: 0;
}

.session-list span {
  text-align: right;
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 52px));
  padding: 14px 16px;
  color: var(--text);
  pointer-events: none;
  background: rgba(9, 18, 25, 0.86);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(18px);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
  }

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

  .side-status {
    position: static;
    margin-top: 16px;
  }

  .dashboard-grid,
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hosts-panel {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .auth-body,
  .dashboard-body {
    padding: 12px;
  }

  .auth-shell,
  .auth-shell.compact {
    grid-template-columns: 1fr;
  }

  .auth-side {
    display: none;
  }

  .auth-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .app-shell {
    min-height: calc(100vh - 24px);
  }

  .topbar,
  .section-heading,
  .info-list div,
  .session-list div {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    position: relative;
    top: 0;
  }

  .top-actions,
  .quick-actions,
  .kpi-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .search-box {
    width: 100%;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

  .nav-item {
    min-height: 42px;
  }

  .profile-panel,
  .hosts-panel,
  .quick-panel,
  .audit-panel,
  .sessions-panel,
  .topbar,
  .sidebar {
    border-radius: 18px;
    padding: 16px;
  }

  .info-list dd,
  .session-list span {
    text-align: left;
  }
}

.alerts-panel,
.tasks-panel {
  min-width: 0;
  border-radius: 22px;
  padding: 20px;
}

.alerts-panel {
  grid-column: 1 / -1;
}

.alert-list,
.task-list {
  display: grid;
  gap: 0;
}

.alert-row,
.task-row {
  display: grid;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(207, 232, 255, 0.1);
}

.alert-row {
  grid-template-columns: 44px minmax(0, 1fr) 72px;
}

.task-row {
  grid-template-columns: minmax(0, 1fr) 138px;
}

.alert-row:last-child,
.task-row:last-child {
  border-bottom: 0;
}

.alert-row strong,
.alert-row small,
.task-row strong,
.task-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-row small,
.task-row span,
.task-progress small {
  color: var(--muted);
}

.alert-row button {
  min-height: 34px;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.alert-row button:hover {
  border-color: var(--line-strong);
  background: rgba(73, 214, 255, 0.14);
}

.level-badge {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  border-radius: 12px;
}

.level-high {
  color: #ffe8ec;
  background: rgba(255, 107, 122, 0.18);
  border: 1px solid rgba(255, 107, 122, 0.32);
}

.level-mid {
  color: #fff4c7;
  background: rgba(255, 209, 102, 0.16);
  border: 1px solid rgba(255, 209, 102, 0.28);
}

.level-low {
  color: #d8fff0;
  background: rgba(88, 230, 161, 0.14);
  border: 1px solid rgba(88, 230, 161, 0.25);
}

.task-progress {
  display: grid;
  gap: 7px;
}

.task-progress b {
  display: block;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--emerald) var(--value), rgba(255, 255, 255, 0.13) 0);
  border-radius: 999px;
}

@media (max-width: 760px) {
  .alert-row,
  .task-row {
    grid-template-columns: 1fr;
  }

  .level-badge {
    width: 40px;
  }
}

.app-view[hidden] {
  display: none !important;
}

.app-view.active {
  display: grid;
  gap: 16px;
}

.cluster-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cluster-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.cluster-table-panel,
.host-detail-panel {
  min-width: 0;
  border-radius: 22px;
  padding: 20px;
}

.cluster-heading {
  margin-bottom: 12px;
}

.cluster-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cluster-toolbar span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.cluster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.cluster-actions button {
  min-height: 38px;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
}

.cluster-actions button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(73, 214, 255, 0.14);
}

.cluster-actions button:disabled,
.quick-actions button:disabled,
.alert-row button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.cluster-table {
  overflow-x: auto;
}

.cluster-row {
  display: grid;
  grid-template-columns: 48px minmax(130px, 1.1fr) minmax(92px, 0.85fr) minmax(106px, 0.9fr) minmax(82px, 0.75fr) repeat(3, minmax(64px, 0.6fr)) minmax(70px, 0.65fr) minmax(82px, 0.7fr);
  gap: 10px;
  align-items: center;
  min-width: 980px;
  min-height: 54px;
  color: var(--muted);
  border-bottom: 1px solid rgba(207, 232, 255, 0.1);
}

.cluster-row:not(.table-head) {
  cursor: pointer;
}

.cluster-row:not(.table-head):hover,
.cluster-row.selected-detail {
  background: rgba(255, 255, 255, 0.055);
}

.cluster-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-row:not(.table-head) span:nth-child(2) {
  color: var(--text);
  font-weight: 800;
}

.cluster-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.cluster-row b,
.resource-bars b {
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--cyan) var(--value), rgba(255, 255, 255, 0.13) 0);
  border-radius: 999px;
}

.cluster-row b {
  width: min(66px, 100%);
  margin-bottom: 5px;
}

.status-chip.offline {
  color: #8fa0ad;
  border-color: rgba(159, 179, 195, 0.22);
}

.host-detail-panel {
  position: sticky;
  top: 110px;
}

.host-detail[hidden] {
  display: none;
}

.detail-info {
  margin-bottom: 18px;
}

.resource-bars {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.resource-bars label {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.resource-bars em {
  color: var(--text);
  font-style: normal;
  text-align: right;
}

.service-list {
  display: grid;
  gap: 0;
  margin-bottom: 16px;
}

.service-list h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.service-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(207, 232, 255, 0.1);
}

.service-list span {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 7px 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  background: rgba(73, 214, 255, 0.09);
  border: 1px solid rgba(73, 214, 255, 0.18);
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .cluster-layout {
    grid-template-columns: 1fr;
  }

  .host-detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .cluster-stats {
    grid-template-columns: 1fr 1fr;
  }

  .cluster-toolbar,
  .cluster-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cluster-toolbar select,
  .cluster-actions button {
    width: 100%;
  }
}

.command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 14px;
  align-items: start;
}

.command-panel,
.command-side {
  min-width: 0;
  border-radius: 22px;
  padding: 20px;
}

.command-form,
.command-form label,
.command-editor,
.command-grid {
  display: grid;
  gap: 12px;
}

.command-grid {
  grid-template-columns: 1fr 1fr;
}

.command-form label span,
.confirm-row span {
  color: var(--muted);
  font-size: 13px;
}

.command-form select,
.command-form textarea {
  width: 100%;
  color: var(--text);
  background: rgba(2, 10, 15, 0.45);
  border: 1px solid rgba(217, 241, 255, 0.14);
  border-radius: 14px;
  outline: none;
}

.command-form select {
  min-height: 46px;
  padding: 0 12px;
}

.command-form textarea {
  min-height: 190px;
  resize: vertical;
  padding: 14px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  line-height: 1.6;
}

.command-form select:focus,
.command-form textarea:focus {
  border-color: rgba(73, 214, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(73, 214, 255, 0.12);
}

.command-warning {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: #fff4c7;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 16px;
}

.command-warning span {
  color: var(--muted);
  line-height: 1.6;
}

.confirm-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.confirm-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.command-actions button,
.template-list button {
  min-height: 40px;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
}

.command-actions button:hover:not(:disabled),
.template-list button:hover {
  border-color: var(--line-strong);
  background: rgba(73, 214, 255, 0.14);
}

.command-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

#command-run:not(:disabled) {
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
}

.template-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.template-list button {
  justify-content: flex-start;
  text-align: left;
}

.command-policy {
  display: grid;
  gap: 0;
}

.command-policy h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.command-policy div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(207, 232, 255, 0.1);
}

.command-policy span {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 980px) {
  .command-layout,
  .command-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .command-panel,
  .command-side {
    border-radius: 18px;
    padding: 16px;
  }

  .command-actions {
    display: grid;
  }

  .command-actions button {
    width: 100%;
  }
}

.distribution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 14px;
  align-items: start;
}

.distribution-panel,
.distribution-side {
  min-width: 0;
  border-radius: 22px;
  padding: 20px;
}

.distribution-form,
.distribution-form label,
.distribution-grid {
  display: grid;
  gap: 12px;
}

.distribution-grid {
  grid-template-columns: 1fr 1fr;
}

.distribution-form label span {
  color: var(--muted);
  font-size: 13px;
}

.distribution-form input,
.distribution-form select {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  background: rgba(2, 10, 15, 0.45);
  border: 1px solid rgba(217, 241, 255, 0.14);
  border-radius: 14px;
  outline: none;
  padding: 0 12px;
}

.distribution-form input:focus,
.distribution-form select:focus {
  border-color: rgba(73, 214, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(73, 214, 255, 0.12);
}

.distribution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.distribution-actions button,
.plan-list button {
  min-height: 40px;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
}

.distribution-actions button:hover:not(:disabled),
.plan-list button:hover {
  border-color: var(--line-strong);
  background: rgba(73, 214, 255, 0.14);
}

.distribution-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

#distribution-run:not(:disabled) {
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
}

.plan-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.plan-list button {
  justify-content: flex-start;
  text-align: left;
}

.transfer-policy {
  display: grid;
  gap: 0;
}

.transfer-policy h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.transfer-policy div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(207, 232, 255, 0.1);
}

.transfer-policy span {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 980px) {
  .distribution-layout,
  .distribution-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .distribution-panel,
  .distribution-side {
    border-radius: 18px;
    padding: 16px;
  }

  .distribution-actions {
    display: grid;
  }

  .distribution-actions button {
    width: 100%;
  }
}

.orchestration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 14px;
  align-items: start;
}

.orchestration-panel,
.orchestration-side {
  min-width: 0;
  border-radius: 22px;
  padding: 20px;
}

.orchestration-form,
.orchestration-form label,
.orchestration-grid {
  display: grid;
  gap: 12px;
}

.orchestration-grid {
  grid-template-columns: 1fr 1fr;
}

.orchestration-form label span {
  color: var(--muted);
  font-size: 13px;
}

.orchestration-form select {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  background: rgba(2, 10, 15, 0.45);
  border: 1px solid rgba(217, 241, 255, 0.14);
  border-radius: 14px;
  outline: none;
  padding: 0 12px;
}

.orchestration-form select:focus {
  border-color: rgba(73, 214, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(73, 214, 255, 0.12);
}

.playbook-preview {
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.playbook-preview strong {
  display: block;
  margin-bottom: 10px;
}

.playbook-preview ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.orchestration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.orchestration-actions button,
.runbook-list button {
  min-height: 40px;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
}

.orchestration-actions button:hover:not(:disabled),
.runbook-list button:hover {
  border-color: var(--line-strong);
  background: rgba(73, 214, 255, 0.14);
}

.orchestration-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

#orchestration-run:not(:disabled) {
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
}

.runbook-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.runbook-list button {
  justify-content: flex-start;
  text-align: left;
}

.approval-chain {
  display: grid;
  gap: 0;
}

.approval-chain h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.approval-chain div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(207, 232, 255, 0.1);
}

.approval-chain span {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 980px) {
  .orchestration-layout,
  .orchestration-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .orchestration-panel,
  .orchestration-side {
    border-radius: 18px;
    padding: 16px;
  }

  .orchestration-actions {
    display: grid;
  }

  .orchestration-actions button {
    width: 100%;
  }
}
