:root {
  --bg: #111418;
  --bg-elevated: #181c21;
  --bg-output: #0c0e11;
  --border: #2c333c;
  --text: #dce1e8;
  --text-muted: #7a8491;
  --accent: #3dba8a;
  --accent-hover: #4fd19c;
  --radius: 0;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text);
  background: var(--bg);
}

.page {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.tagline {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.groups {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.group-title {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.group-body {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.generator {
  padding: 0.65rem 0.75rem;
}

.generator + .generator {
  border-top: 1px solid var(--border);
}

.generator-head {
  margin-bottom: 0.4rem;
}

.generator-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.generator-desc {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.output-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  background: var(--bg-output);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.25rem 0.25rem 0.55rem;
}

.output {
  flex: 1;
  min-width: 0;
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  word-break: break-all;
  line-height: 1.45;
  padding: 0.3rem 0;
  color: var(--accent);
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.1s ease,
    color 0.1s ease,
    border-color 0.1s ease;
}

.btn:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

.btn-primary {
  background: var(--accent);
  color: #0a1210;
  flex-shrink: 0;
  align-self: center;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  flex-shrink: 0;
  align-self: center;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-ghost.is-copied {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.empty {
  margin: 0;
  color: var(--text-muted);
}

.footer {
  margin-top: 1.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .output-wrap {
    flex-wrap: wrap;
    padding: 0.4rem;
  }

  .output {
    flex: 1 1 100%;
  }

  .btn-ghost,
  .btn-primary {
    flex: 1;
  }
}
