/* LF APP · Fundamentos visuais. Ausência de data-tema acompanha o sistema. */
:root {
  color-scheme: dark;
  --bg: #151819;
  --sidebar-width: 254px;
  --sidebar-bg: #131b17;
  --surface-inset: #131b17;
  --hero-bg: #202524;
  --hero-line: #37413d;
  --hero-art: #93d827;
  --surface: #202524;
  --surface-raised: #26312b;
  --surface-soft: #151e19;
  --text: #e9e9e1;
  --muted: #a7b1a7;
  --accent: #93d827;
  --accent-ink: #a5e449;
  --on-accent: #15181a;
  --accent-soft: #28361c;
  --line: #303c34;
  --control-line: #78867e;
  --warning: #f0be66;
  --warning-bg: #342b1c;
  --danger: #ffaaa4;
  --danger-bg: #382426;
  --success: #a5e449;
  --success-bg: #26331f;
  --macro-p: #8ec5ff;
  --macro-p-bg: #1c2b3c;
  --macro-c: #ffb17a;
  --macro-c-bg: #3a2618;
  --macro-g: #f3a3d6;
  --macro-g-bg: #3a2133;
  --overlay: #080c10c9;
  --video-bg: #101514;
  --video-text: #e9e9e1;
  --shadow-control: 0 1px 2px #00000012;
  --swatch-line: #69716b55;
  --swatch-dark-bg: #15181a;
  --swatch-dark-text: #e9e9e1;
  --swatch-light-bg: #f4f5ef;
  --swatch-light-text: #19211b;
  --shadow: 0 16px 48px #00000026;
  --shadow-dialog: 0 24px 80px #00000052;
  --font-body: 'Instrument Sans', Arial, sans-serif;
  --font-number: 'Instrument Sans', Arial, sans-serif;
  --font-display: 'Instrument Sans', Arial, sans-serif;
  --text-xs: .75rem;
  --text-sm: .8125rem;
  --text-base: .875rem;
  --text-lg: 1rem;
  --text-xl: 1.25rem;
  --text-display: clamp(1.5rem, 2.5vw, 2rem);
  --field-height: 38px;
  --panel-padding: 16px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 3rem;
  --radius-sm: .65rem;
  --radius: .8rem;
  --radius-lg: 1.1rem;
  --radius-pill: 999px;
  --duration-fast: 120ms;
  --duration: 180ms;
  --ease: cubic-bezier(.2,.7,.3,1);
  --content-width: 900px;
  --admin-width: 1120px;
  --nav-height: 76px;
}
/* Tema claro: papel quente, cartões brancos, verde profundo para texto. */
:root[data-tema="claro"] {
  color-scheme: light;
  --bg: #f5f4ef;
    --sidebar-bg: #f0f0e9;
    --surface-inset: #f3f2ec;
    --hero-bg: #efeee7;
    --hero-line: #d6d8cc;
    --hero-art: #456d0d;
  --surface: #fffefa;
  --surface-raised: #eceee5;
  --surface-soft: #f2f1eb;
  --text: #1b211c;
  --muted: #52614f;
  --accent-ink: #456d0d;
  --accent-soft: #eaf3da;
  --line: #d5ddd0;
  --control-line: #74806f;
  --warning: #805009;
  --warning-bg: #fff2d8;
  --danger: #a72931;
  --danger-bg: #ffebe8;
  --success: #3c650d;
  --success-bg: #edf5e0;
  --macro-p: #1f5f9e;
  --macro-p-bg: #e3effc;
  --macro-c: #8f3f0a;
  --macro-c-bg: #ffeadb;
  --macro-g: #9b2f73;
  --macro-g-bg: #fbe6f2;
  --shadow: 0 16px 48px #3445220c;
  --shadow-dialog: 0 24px 80px #25332426;
}
/* Preferência automática; data-tema explícito sempre prevalece. */
@media (prefers-color-scheme: light) {
  :root:not([data-tema]) {
    color-scheme: light;
    --bg: #f5f4ef;
    --sidebar-bg: #f0f0e9;
    --surface-inset: #f3f2ec;
    --hero-bg: #efeee7;
    --hero-line: #d6d8cc;
    --hero-art: #456d0d;
    --surface: #fffefa;
    --surface-raised: #eceee5;
    --surface-soft: #f2f1eb;
    --text: #1b211c;
    --muted: #52614f;
    --accent-ink: #456d0d;
    --accent-soft: #eaf3da;
    --line: #d5ddd0;
    --control-line: #74806f;
    --warning: #805009;
    --warning-bg: #fff2d8;
    --danger: #a72931;
    --danger-bg: #ffebe8;
    --success: #3c650d;
    --success-bg: #edf5e0;
    --macro-p: #1f5f9e;
    --macro-p-bg: #e3effc;
    --macro-c: #8f3f0a;
    --macro-c-bg: #ffeadb;
    --macro-g: #9b2f73;
    --macro-g-bg: #fbe6f2;
    --shadow: 0 16px 48px #3445220c;
    --shadow-dialog: 0 24px 80px #25332426;
  }
}
/* Tema escuro explícito usa os fundamentos de :root. */
:root[data-tema="escuro"] { color-scheme: dark; }
