/* base.css — reset + design tokens */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--primary); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* v2.9.9t: global input rule — EXCLUDE checkbox/radio so they keep their
   native UA box. Without this, the 10px padding + 8px radius were applied
   to checkboxes too, blowing them up to ~28x28 with inconsistent widths
   per browser, which made the product-type dropdown look staggered. */
input:not([type="checkbox"]):not([type="radio"]),
select, textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,122,138,0.15);
}
/* Normalize checkbox sizing so flex rows line up perfectly. */
input[type="checkbox"], input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
  vertical-align: middle;
  cursor: pointer;
}

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-muted: #f0f2f5;
  --ink: #14242b;
  --ink-muted: #5a6b73;
  --line: #d8dee3;
  --line-strong: #b6c0c6;

  --primary: #007a8a;
  --primary-ink: #ffffff;
  --primary-hover: #00606e;
  --primary-soft: #e0f2f4;

  --accent: #f59e0b;
  --accent-soft: #fef3c7;

  --danger: #dc2626;
  --danger-soft: #fee2e2;

  --shadow-sm: 0 1px 2px rgba(15, 35, 45, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 35, 45, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 35, 45, 0.14);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
}
