:root {
  --bg: #fff;
  --fg: #000;
  --muted: #777;
  --panel: #f5f5f5;
  font-family: Inter, sans-serif;
}

body {
  margin: 0;
  padding: 28px;
  background: #fff;
  color: var(--fg);
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 1100px;
  background: #000;
  color: #fff;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 22px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lead {
  color: #bbb;
  font-size: 13px;
}

.controls select {
  background: transparent;
  color: white;
  border: 1px solid #444;
  padding: 8px 10px;
  border-radius: 8px;
}

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  background: #111;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #222;
}

textarea {
  width: 100%;
  padding: 12px;
  background: #0c0c0c;
  border: 1px solid #333;
  color: white;
  border-radius: 8px;
  font-size: 14px;
}

.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #333;
  font-size: 13px;
  cursor: pointer;
}
.chip.active {
  border-color: #fff;
  font-weight: 600;
}

.range-box {
  margin-top: 12px;
}

.footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  padding: 10px 14px;
  border: 1px solid #444;
  background: transparent;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

.btn.primary {
  background: white;
  color: black;
  font-weight: 700;
  border: none;
}

.output {
  background: #000;
  border: 1px dashed #333;
  padding: 12px;
  height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  border-radius: 8px;
}

.meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #ccc;
}

/* Responsive */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
}
/* Buttons hover */
.btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transition: 0.25s ease;
}

.btn.primary:hover {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
}

/* Chip hover */
.chip:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transition: 0.25s ease;
}

/* Active chip hover (invert) */
.chip.active:hover {
  background: #000;
  color: #fff;
  border-color: #fff;
}

/* Select hover */
.controls select:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transition: 0.25s ease;
}
