:root {
  --bg: #0b0e13;
  --bg-panel: #12161d;
  --bg-head: #1a2027;
  --bg-sub: #151a21;
  --border: #232a33;
  --text: #d7dde4;
  --text-dim: #7d8998;
  --text-faint: #4c5764;
  --green: #16c784;
  --green-dim: #12a76d;
  --red: #ea3943;
  --red-dim: #c4303a;
  --accent: #16c784;
  --yellow: #f0b90b;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: auto;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  overflow: auto;
}

button, input, select {
  font-family: var(--mono);
  color: var(--text);
  background: var(--bg-sub);
  border: 1px solid var(--border);
  outline: none;
}

button { cursor: pointer; }
button:hover { border-color: var(--text-faint); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }

.toast {
  position: fixed;
  right: 16px;
  bottom: 44px;
  background: var(--bg-head);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 100;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.warn { border-left-color: var(--yellow); }
.toast.err { border-left-color: var(--red); }
