/* WheelHouse ELD — shared tokens. Values mirror packages/tokens (TMS palette). */
:root {
  --bg: #0b0d16;
  --bg-2: #0f1220;
  --surface: #151929;
  --surface-2: #1b2036;
  --surface-3: #232945;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #eef2fb;
  --text: #d4daea;
  --text-2: #9aa4b8;
  --text-3: #6f7a92;
  --primary: #7c75ff;
  --primary-strong: #635bff;
  --primary-soft: rgba(124, 117, 255, 0.14);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.14);
  --cyan: #2aa9e0;
  --cyan-soft: rgba(42, 169, 224, 0.15);
  --purple: #a78bfa;
  /* duty status (same mapping as dutyColors() in packages/tokens) */
  --duty-off: #8590a8;
  --duty-sb: var(--cyan);
  --duty-d: var(--green);
  --duty-on: var(--primary);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 16px 40px rgba(4, 6, 14, 0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--primary-strong); color: #fff; }
.btn-primary:hover { background: #7a73ff; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.04); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.input, select.input, textarea.input {
  height: 40px; padding: 0 12px; border-radius: 10px; background: var(--bg-2);
  border: 1px solid var(--line-2); color: var(--ink); outline: none; width: 100%;
}
textarea.input { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); cursor: pointer; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.logo b { color: var(--primary); font-weight: 700; }

.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.error-text { color: var(--red); font-size: 13px; min-height: 18px; }
.hidden { display: none !important; }
