/* Design tokens — Notion-ish neutrals, Airtable-ish categorical color.
   Categorical palette validated for CVD separation (dataviz six checks):
   green, blue, orange, cyan, pink, purple — fixed assignment order. */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-warm: #faf9f7;
  --bg-hover: #f4f3f1;
  --bg-active: #eceae8;
  --text: #37352f;
  --text-2: #787671;
  --text-3: #a8a6a2;
  --border: #e8e7e4;
  --border-2: #d9d7d3;
  --accent: #2383e2;
  --accent-bg: #e8f2fc;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --ok: #15803d;
  --cat-green: #15803d;
  --cat-blue: #1d4ed8;
  --cat-orange: #c2410c;
  --cat-cyan: #0891b2;
  --cat-pink: #be185d;
  --cat-purple: #7c3aed;
  --radius: 6px;
  --radius-lg: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --shadow-peek: -4px 0 24px rgba(15, 15, 15, 0.1), 0 0 0 1px rgba(15, 15, 15, 0.04);
}

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
select {
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 4px 8px;
}
select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
