:root {
  --bg: #f1efe7;
  --paper: rgba(255, 252, 245, 0.9);
  --panel: #102820;
  --panel-soft: #1e4034;
  --text: #17221d;
  --muted: #5c6c64;
  --line: rgba(23, 34, 29, 0.12);
  --primary: #0a7c52;
  --primary-strong: #085a3c;
  --accent: #d77a32;
  --danger: #b6412f;
  --success: #1d7b57;
  --warn: #cb7f24;
  --shadow: 0 24px 60px rgba(26, 39, 32, 0.14);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 122, 50, 0.24), transparent 28%),
    radial-gradient(circle at bottom right, rgba(10, 124, 82, 0.2), transparent 30%),
    var(--bg);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 380px 1fr;
}

.hero-panel {
  padding: 48px 36px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  color: #f7f4ec;
}

.hero-badge,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #cebda9;
}

.hero-panel h1 {
  margin: 20px 0 16px;
  font-size: 42px;
  line-height: 1.08;
}

.hero-panel p {
  color: rgba(247, 244, 236, 0.82);
  line-height: 1.75;
}

.content-panel {
  padding: 36px;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card {
  max-width: 480px;
  margin: 8vh auto 0;
}

.card-header h2,
.card-header h3 {
  margin: 6px 0 0;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea,
select,
button {
  font: inherit;
}

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

button {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--primary-strong);
}

.ghost-button,
.small-button {
  background: rgba(16, 40, 32, 0.08);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.intro-card {
  margin-bottom: 20px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 18px;
}

.intro-grid strong {
  display: block;
  margin-bottom: 6px;
}

.intro-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.lower-grid {
  margin-top: 20px;
}

.status-block {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.text-ok {
  color: var(--success);
}

.text-warn {
  color: var(--warn);
}

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

.list-item,
.server-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 40, 32, 0.08);
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.list-title {
  font-weight: 700;
}

.list-meta,
.server-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.server-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.code-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #17221d;
  color: #ebf4ee;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}

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

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
  box-shadow: var(--shadow);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

.hidden {
  display: none !important;
}

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

  .hero-panel {
    padding-bottom: 24px;
  }

  .two-up {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .content-panel,
  .hero-panel {
    padding: 22px;
  }

  .hero-panel h1 {
    font-size: 34px;
  }

  .topbar,
  .list-item,
  .server-head {
    display: grid;
  }
}
