:root {
  --bg: #090b0e;
  --panel: #121720;
  --panel-2: #181f2b;
  --text: #f4f7fb;
  --muted: #9ba8b7;
  --line: #2a3445;
  --accent: #29d6b2;
  --accent-2: #ffcf5a;
  --bad: #ff6d6d;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, #172536 0, #090b0e 44%),
    var(--bg);
  color: var(--text);
}

main {
  width: min(1080px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.hero {
  min-height: 38vh;
  display: grid;
  align-content: end;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 9vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

p,
li {
  color: var(--muted);
  line-height: 1.58;
}

a {
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

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

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel), #0f131b);
  padding: 18px;
}

.card {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.full {
  grid-column: 1 / -1;
}

.button,
button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #04100e;
  font-weight: 750;
  font-size: 15px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
.button.secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}

button.warn,
.button.warn {
  background: var(--accent-2);
  color: #1c1400;
}

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

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

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0d1118;
  color: var(--text);
  font: inherit;
  padding: 0 12px;
}

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

.metric:last-child {
  border-bottom: 0;
}

.metric strong {
  color: var(--accent-2);
}

.status {
  min-height: 46px;
  color: var(--muted);
  font-size: 0.95rem;
}

.error {
  color: var(--bad);
}

.hidden {
  display: none !important;
}

code {
  color: var(--accent-2);
  word-break: break-all;
}

.notice {
  border-left: 4px solid var(--accent-2);
  padding: 12px 14px;
  background: #111720;
  margin-top: 16px;
  color: var(--muted);
}

.surface {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.surface:last-child {
  border-bottom: 0;
}

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

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.list-item:last-child {
  border-bottom: 0;
}

.list-item span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

  .hero {
    min-height: 30vh;
  }
}
