/* Minimal. Boring. Clear. */

:root {
  --bg: #0b0c0f;
  --card: #131521;
  --text: #e7eaf2;
  --muted: #a9b0c3;
  --border: #262a3a;
  --accent: #9ad0ff;
  --warn: #ffd39a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px;
}

h1 {
  margin: 0 0 6px 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

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

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

.col label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="text"]{
  width: 100%;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f1120;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

input[type="range"]{
  width: 100%;
}

.hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

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

.btnblock { display: flex; flex-direction: column; gap: 6px; }

button {
  appearance: none;
  border: 1px solid var(--border);
  background: #0f1120;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

button:hover { border-color: #3a3f57; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

button.primary {
  border-color: #2d5c86;
  background: #0f1a2b;
}

.help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.help.rec {
  color: var(--warn);
  border-left: 3px solid var(--warn);
  padding-left: 10px;
  margin-top: 4px;
}

.statusline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  font-size: 12px;
}

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

.k {
  color: var(--muted);
  margin-right: 6px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.panel h2 {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.panelbody {
  height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #0b0c0f;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.foot { padding-top: 0; }
.muted { color: var(--muted); font-size: 12px; }
