:root {
  --bg: #09111a;
  --bg-soft: #0d1621;
  --panel: rgba(17, 25, 37, 0.92);
  --panel-strong: #111b29;
  --line: rgba(130, 148, 172, 0.18);
  --line-strong: rgba(130, 148, 172, 0.28);
  --text: #f3f7fb;
  --muted: #93a2b7;
  --accent: #47c7a4;
  --accent-soft: rgba(71, 199, 164, 0.14);
  --accent-strong: #5bd7b5;
  --gold: #e7b264;
  --gold-soft: rgba(231, 178, 100, 0.14);
  --danger: #ff7b7b;
  --danger-soft: rgba(255, 123, 123, 0.12);
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.5 "Avenir Next", "IBM Plex Sans", "Segoe UI Variable", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(71, 199, 164, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(231, 178, 100, 0.12), transparent 18%),
    linear-gradient(180deg, #071019 0%, var(--bg) 52%, #060d15 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

main {
  display: block;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.hero,
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 30, 45, 0.96), rgba(13, 21, 33, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  border-radius: 28px;
  padding: 22px;
}

.card {
  border-radius: 24px;
  padding: 18px;
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3,
.stat-value,
.metric-value {
  font-family: "Avenir Next Condensed", "Avenir Next", "Segoe UI Variable", sans-serif;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

h3 {
  margin: 0;
  font-size: 18px;
}

.hero-subtitle,
.muted,
.meta,
.label,
.helper {
  color: var(--muted);
}

.hero-subtitle {
  margin: 12px 0 0;
  max-width: 680px;
}

.chips,
.inline-stats,
.actions,
.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips {
  margin-top: 14px;
}

.chip {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
}

.chip.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.chip.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--muted);
}

.actions {
  margin-top: 18px;
}

.button,
button,
.switcher-button,
.list-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: 160ms ease;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  min-height: 44px;
}

.button:hover,
button:hover,
.switcher-button:hover,
.list-button:hover {
  border-color: rgba(91, 215, 181, 0.46);
  background: rgba(255, 255, 255, 0.045);
}

.button.primary,
button.primary {
  background: linear-gradient(180deg, #45c8a3, #2ea985);
  border-color: transparent;
  color: #071119;
  font-weight: 700;
}

.button.secondary,
button.secondary {
  background: transparent;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

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

.grid.admin {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.info-list,
.stack,
.list {
  display: grid;
  gap: 12px;
}

.info-item,
.metric,
.list-button {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.info-item,
.metric {
  padding: 14px;
}

.label {
  margin-bottom: 6px;
  font-size: 13px;
}

.value,
.metric-value {
  font-weight: 700;
}

.value a {
  color: var(--accent-strong);
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 18px;
}

.metric-value {
  font-size: 26px;
}

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

.switcher {
  margin-top: 12px;
}

.switcher-button,
.list-button {
  width: 100%;
  padding: 12px 14px;
  text-align: left;
}

.switcher-button.active,
.list-button.active {
  background: var(--accent-soft);
  border-color: rgba(91, 215, 181, 0.42);
  color: var(--accent-strong);
}

textarea {
  width: 100%;
  min-height: 260px;
  padding: 15px 16px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 10, 18, 0.74);
  color: var(--text);
  resize: vertical;
  font: 15px/1.55 "SFMono-Regular", "JetBrains Mono", "Menlo", monospace;
}

textarea::placeholder {
  color: #6f8197;
}

.status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 14px;
}

.status.ok {
  color: var(--accent-strong);
}

.status.error {
  color: var(--danger);
}

.note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.compact-list {
  display: grid;
  gap: 10px;
}

@media (max-width: 860px) {
  .grid.two-up,
  .grid.admin {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 29px;
  }

  .hero,
  .card {
    border-radius: 22px;
  }
}
