@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --bg: #14181D;
  --panel-2: #20262E;
  --paper: #FAF7F1;
  --ink: #20262E;
  --muted: #8A93A0;
  --accent: #E8871E;
  --accent-ink: #1B1200;
  --ok: #3C8A63;
  --warn: #D6A02A;
  --danger: #C0432B;
  --line: #E7E1D4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
input, select, button, textarea { font-family: inherit; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; color: var(--ink); text-decoration: none;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .field select { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hint { font-size: 11.5px; color: var(--muted); }

.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.badge.ok { background: #E4F2EA; color: var(--ok); }
.badge.danger { background: #FBE7E1; color: var(--danger); }
.badge.neutral { background: #EEE9DA; color: var(--ink); }

.progress { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width .2s; }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--bg); color: #fff; padding: 10px 18px; border-radius: 30px;
  font-size: 13px; z-index: 80; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.toast.error { background: var(--danger); }

.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #0002; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
