:root {
  --bg: #0b0e12;
  --panel: #141a21;
  --panel-2: #1b232c;
  --line: #2a3440;
  --text: #e8edf2;
  --muted: #95a3b3;
  --accent: #ffc400;      /* safety-tape yellow */
  --accent-ink: #1a1400;
  --blue: #1d4ed8;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); cursor: pointer; text-decoration: none; color: var(--text);
  font-weight: 600; min-height: 44px; -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: #3b4756; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: #fca5a5; border-color: #5b2323; }
.btn.small { padding: 7px 12px; min-height: 34px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); min-width: 0; width: 100%;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px; background: var(--accent);
  display: grid; place-items: center; color: var(--accent-ink); font-size: 15px; font-weight: 900;
}
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #0f141a; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; z-index: 100;
  max-width: calc(100vw - 32px); font-size: 14px; box-shadow: 0 10px 30px #0008;
}
[hidden] { display: none !important; }
