:root {
  color-scheme: dark;
  --bg: #060911;
  --panel: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .12);
  --text: #f8fbff;
  --muted: #9fb0c4;
  --blue: #1c7dff;
  --green: #16c790;
  --orange: #f5a623;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(28, 125, 255, .26), transparent 34%), radial-gradient(circle at 90% 10%, rgba(22, 199, 144, .16), transparent 28%), var(--bg);
  color: var(--text);
}

button, input, textarea {
  font: inherit;
}

button {
  border: 1px solid rgba(126, 189, 255, .36);
  background: linear-gradient(135deg, #1c7dff, #1063e6);
  color: white;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  filter: brightness(1.1);
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.35);
}

button.danger {
  border-color: rgba(239, 77, 94, .36);
  background: linear-gradient(135deg, #ef4d5e, #bc2f42);
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

label {
  display: block;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

pre {
  min-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
  color: #cfe4ff;
}

.service-log {
  min-height: 150px;
  margin-top: 16px;
}

.shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -2px;
}

.hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  color: #7ebdff !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 13px !important;
  font-weight: 800;
}

.status-pill {
  min-width: 136px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(245, 166, 35, .42);
  background: rgba(245, 166, 35, .12);
  color: var(--orange);
  padding: 12px 18px;
  font-weight: 800;
}

.status-pill.online {
  border-color: rgba(22, 199, 144, .42);
  background: rgba(22, 199, 144, .12);
  color: var(--green);
}

.status-pill.small {
  min-width: auto;
  padding: 8px 12px;
  font-size: 13px;
}

.notice {
  display: none;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
}

.notice.show {
  display: block;
}

.notice.success {
  border-color: rgba(22, 199, 144, .42);
  background: rgba(22, 199, 144, .12);
}

.notice.error {
  border-color: rgba(239, 77, 94, .42);
  background: rgba(239, 77, 94, .12);
}

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

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

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

.panel, .metric {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.panel {
  margin-top: 18px;
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.panel h2 {
  margin: 0;
  font-size: 22px;
}

.metric {
  padding: 20px;
}

.metric span, .metric em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.metric strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 24px;
  word-break: break-word;
}

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

.inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.dept-list {
  display: grid;
  gap: 16px;
}

.dept-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, .16);
}

.dept-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.dept-card textarea {
  margin-bottom: 12px;
}

.map-list {
  display: grid;
  gap: 12px;
}

.map-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

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

.service-actions {
  grid-template-columns: minmax(120px, 1fr) auto auto;
}

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

  .hero, .panel-head, .inline {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .actions, .dept-row {
    grid-template-columns: 1fr;
  }
}
