:root {
  --bg: #0b0c0f;
  --card: #12141a;
  --muted: #8b92a6;
  --text: #e7ecf5;
  --accent: #4f8cff;
  --accent-2: #2ee59d;
  --border: #1f2230;
  --danger: #ef476f;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 80% -10%, #1a2236 0%, rgba(0,0,0,0) 60%),
    radial-gradient(900px 500px at -10% 110%, #112033 0%, rgba(0,0,0,0) 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  display: grid;
  place-items: center;
  padding: 32px;
}
.wrap { width: min(980px, 100%); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}
h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: 0.2px; }
p.sub { margin: 0 0 18px; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .row.two { grid-template-columns: 1.5fr 1fr; } }

label { font-weight: 600; display: block; margin-bottom: 8px; }
textarea, input[type="text"], input[type="number"] {
  width: 100%; background: #0e1016; color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; outline: none;
}
textarea { min-height: 70px; resize: vertical; }
.out { min-height: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #0e1016; border: 1px solid var(--border); padding: 8px 10px; border-radius: 999px; }
.chip strong { letter-spacing: .3px; }
.chip input { width: 60px; background: transparent; border: none; color: var(--text); padding: 0 6px; outline: none; text-align: center; }
.chip button { border: none; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { border: 1px solid var(--border); background: #10131a; color: var(--text); padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 700; }
.btn.primary { background: linear-gradient(180deg, #3d6cf9, #2b55f6); border-color: #2b55f6; }
.btn.ghost { background: transparent; }
.btn:active { transform: translateY(1px); }

.switch { display:inline-flex; gap:10px; align-items:center; user-select:none; }
.switch input { appearance:none; width:40px; height:24px; background:#0e1016; border:1px solid var(--border); border-radius:999px; position:relative; outline:none; cursor:pointer; }
.switch input:checked { background: #1b2a54; border-color:#1b2a54; }
.switch input::after { content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition: transform .18s ease; }
.switch input:checked::after { transform: translateX(16px); }

.status { margin-top: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.status.good { color: var(--accent-2); }
.status.bad { color: var(--danger); }

.small { color: var(--muted); font-size: 12px; }
.grid { display: grid; gap: 14px; }

.footer { margin-top: 12px; color: var(--muted); font-size: 12px; display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; }
code.kbd { background:#0e1016; border:1px solid var(--border); padding:2px 6px; border-radius:6px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.pill { border: 1px dashed var(--border); padding: 10px; border-radius: 10px; }
