/* Quarteiro Log — Design tokens (dark-first, brasa) */
:root {
  --brand: #FF6B2C;
  --brand-2: #E5481B;
  --brand-soft: color-mix(in srgb, var(--brand) 14%, transparent);
  --brand-line: color-mix(in srgb, var(--brand) 40%, transparent);

  --ok: #22C55E; --ok-soft: rgba(34, 197, 94, .14);
  --warn: #F59E0B; --warn-soft: rgba(245, 158, 11, .14);
  --danger: #EF4444; --danger-soft: rgba(239, 68, 68, .14);
  --info: #3B82F6; --info-soft: rgba(59, 130, 246, .14);
  --cold: #38BDF8; --cold-soft: rgba(56, 189, 248, .14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-base: .9375rem; --fs-md: 1.0625rem;
  --fs-lg: clamp(1.15rem, 1rem + .6vw, 1.35rem);
  --fs-xl: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --r-full: 999px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 120ms; --t: 220ms; --t-slow: 420ms;

  --z-map: 1; --z-sheet: 500; --z-nav: 800; --z-modal: 1000; --z-toast: 1100;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0B0F;
  --bg-2: #101016;
  --surface: #15151B;
  --surface-2: #1C1C24;
  --surface-3: #24242E;
  --glass: rgba(21, 21, 27, .72);
  --line: #26262F;
  --line-2: #33333E;
  --text: #F4F1EC;
  --text-2: #B9B5BF;
  --text-3: #7F7B87;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  --map-filter: none;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F4F1;
  --bg-2: #EFECE7;
  --surface: #FFFFFF;
  --surface-2: #F7F5F2;
  --surface-3: #EEEAE4;
  --glass: rgba(255, 255, 255, .8);
  --line: #E6E1DA;
  --line-2: #D6D0C7;
  --text: #17151A;
  --text-2: #57525C;
  --text-3: #8C8792;
  --shadow: 0 1px 2px rgba(23,21,26,.05), 0 8px 24px rgba(23,21,26,.06);
  --shadow-lg: 0 24px 60px rgba(23,21,26,.16);
}
