@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;
  --border: #2b2b2b;
  --border-strong: #404040;
  --text: #f5f5f5;
  --text-muted: #b8b8b8;
  --text-faint: #8a8a8a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, #161616 0%, var(--bg) 42%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.5;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.26) transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.34);
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--text-faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 em {
  font-style: normal;
  font-weight: 300;
  color: #d8d8d8;
}

.lede {
  margin-top: 14px;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: 16px;
}

.meta-label {
  margin-bottom: 10px;
  color: var(--text-faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.command {
  background: #000000;
  color: #fafafa;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 104px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.command,
.field select[multiple] {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.command.ok {
  border-color: #f5f5f5;
}

.command.warn {
  border-color: #666666;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

button {
  border: 1px solid #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  background: #ffffff;
  color: #000000;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

button:hover {
  background: #000000;
  color: #ffffff;
}

.status {
  color: var(--text-faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.card h2 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.87rem;
  margin-bottom: 14px;
}

.card h2 + p {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field[hidden] {
  display: none;
}

.field-title {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}

.field input[type="text"],
.field input[type="number"],
.field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.12s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 6L9 1' stroke='%23b8b8b8' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.field select[multiple] {
  min-height: 120px;
  background-image: none;
  padding-right: 10px;
}

.field input[type="text"]:focus,
.field input[type="number"]:focus,
.field select:focus {
  border-color: #f5f5f5;
}

.field-help {
  color: var(--text-faint);
  font-size: 0.76rem;
  line-height: 1.4;
}

.boolean-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
}

.boolean-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #ffffff;
}

.boolean-row .field-title {
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.boolean-row .field-help {
  grid-column: 1 / -1;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: static;
  }

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