:root {
  color-scheme: dark;
  --bg: #121212;
  --panel: #1b1d22;
  --text: #f4f4f5;
  --muted: #a7abb7;
  --line: #31343c;
  --accent: #00c7a9;
  --accent-strong: #7c5cff;
  --danger: #ff7575;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 199, 169, 0.18), transparent 32rem),
    linear-gradient(135deg, #121212 0%, #202126 48%, #17181c 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 560px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 29, 34, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1;
}

.lede {
  max-width: 34rem;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent-strong);
  color: white;
  cursor: pointer;
  font-weight: 750;
}

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

.status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
}

.status[data-error="true"] {
  color: var(--danger);
}

.result {
  margin-top: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #101115;
  color: var(--text);
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 520px) {
  .panel {
    padding: 24px;
  }

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