/* GERADO por app/facila/design/gerar.ts a partir de tokens.json. Não edite à mão: mude o JSON e rode `bun gerar.ts`. */

/* Facila 0.1.0. Tema: data-theme="light|dark" (sem atributo segue o sistema).
   Contraste: data-contrast="high|normal" (sem atributo segue prefers-contrast).
   Tamanho do texto: data-text-size="padrao|grande|muito-grande|maximo". */

:root {
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --text-scale: 1;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-gutter: 20px;
  --space-gutter-compact: 16px;
  --space-row-y: 10px;
  --space-sheet-x: 20px;
  --space-sheet-top: 18px;
  --space-sheet-bottom: 22px;
  --radius-none: 0px;
  --radius-xs: 4px;
  --radius-s: 8px;
  --radius-m: 10px;
  --radius-l: 12px;
  --radius-xl: 14px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --border-hairline: 1px;
  --border-control: 1.5px;
  --border-strong: 2px;
  --border-accent: 3px;
  --border-warn: 4px;
  --border-focus: 2px;
  --border-focus-hc: 3px;
  --size-touch-min: 44px;
  --size-avatar: 44px;
  --size-avatar-head: 38px;
  --size-avatar-feed: 34px;
  --size-avatar-row: 26px;
  --size-avatar-s: 22px;
  --size-avatar-xs: 18px;
  --size-dot: 13px;
  --size-badge: 20px;
  --size-icon-button: 34px;
  --size-orb: 38px;
  --size-orb-composer: 34px;
  --size-orb-voice: 84px;
  --size-marker: 11px;
  --size-wallet-card: 208px;
  --size-wallet-head: 60px;
  --size-wallet-peek: 60px;
  --size-sheet-desk: 520px;
  --size-palette: 580px;
  --size-col-list: 300px;
  --size-col-details: 330px;
  --size-desk-breakpoint: 900px;
  --dur-fast: 150ms;
  --dur-switch: 180ms;
  --dur-toast: 220ms;
  --dur-fade: 250ms;
  --dur-sheet: 300ms;
  --dur-wallet: 400ms;
  --dur-slide: 450ms;
  --dur-rise: 500ms;
  --breathe-dot: 1600ms;
  --breathe-orb: 3200ms;
  --breathe-sun: 6000ms;
  --ease-calm: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-rise: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-wallet: 0px -10px 22px -16px color-mix(in srgb, var(--shadow) 55%, transparent);
  --shadow-overlay: 0px 30px 70px -25px color-mix(in srgb, var(--shadow) 70%, transparent);
  --shadow-phone: 0px 40px 80px -40px color-mix(in srgb, var(--shadow) 60%, transparent);
  --t-night-size: calc(50px * var(--text-scale));
  --t-night-line: 0.92;
  --t-night-weight: 900;
  --t-night-tracking: -0.06em;
  --t-display-size: calc(38px * var(--text-scale));
  --t-display-line: 1;
  --t-display-weight: 900;
  --t-display-tracking: -0.05em;
  --t-hello-size: calc(36px * var(--text-scale));
  --t-hello-line: 1;
  --t-hello-weight: 900;
  --t-hello-tracking: -0.05em;
  --t-title-l-size: calc(30px * var(--text-scale));
  --t-title-l-line: 1.05;
  --t-title-l-weight: 900;
  --t-title-l-tracking: -0.045em;
  --t-title-m-size: calc(23px * var(--text-scale));
  --t-title-m-line: 1.12;
  --t-title-m-weight: 800;
  --t-title-m-tracking: -0.035em;
  --t-moment-size: calc(22px * var(--text-scale));
  --t-moment-line: 1.12;
  --t-moment-weight: 800;
  --t-moment-tracking: -0.035em;
  --t-card-title-size: calc(17px * var(--text-scale));
  --t-card-title-line: 1.2;
  --t-card-title-weight: 800;
  --t-card-title-tracking: -0.025em;
  --t-body-size: calc(16px * var(--text-scale));
  --t-body-line: 1.6;
  --t-body-weight: 400;
  --t-body-tracking: 0em;
  --t-name-size: calc(15px * var(--text-scale));
  --t-name-line: 1.3;
  --t-name-weight: 800;
  --t-name-tracking: -0.02em;
  --t-message-size: calc(14.5px * var(--text-scale));
  --t-message-line: 1.5;
  --t-message-weight: 400;
  --t-message-tracking: 0em;
  --t-row-title-size: calc(14.5px * var(--text-scale));
  --t-row-title-line: 1.3;
  --t-row-title-weight: 700;
  --t-row-title-tracking: -0.015em;
  --t-button-size: calc(14px * var(--text-scale));
  --t-button-line: 1.3;
  --t-button-weight: 700;
  --t-button-tracking: -0.01em;
  --t-body-s-size: calc(13.5px * var(--text-scale));
  --t-body-s-line: 1.45;
  --t-body-s-weight: 400;
  --t-body-s-tracking: 0em;
  --t-meta-size: calc(12.5px * var(--text-scale));
  --t-meta-line: 1.4;
  --t-meta-weight: 400;
  --t-meta-tracking: 0em;
  --t-caption-size: calc(12px * var(--text-scale));
  --t-caption-line: 1.35;
  --t-caption-weight: 400;
  --t-caption-tracking: 0em;
  --t-badge-size: calc(11px * var(--text-scale));
  --t-badge-line: 1;
  --t-badge-weight: 800;
  --t-badge-tracking: 0em;
  --t-number-xl-size: calc(42px * var(--text-scale));
  --t-number-xl-line: 1;
  --t-number-xl-weight: 900;
  --t-number-xl-tracking: -0.05em;
  --t-number-l-size: calc(26px * var(--text-scale));
  --t-number-l-line: 1;
  --t-number-l-weight: 900;
  --t-number-l-tracking: -0.04em;
  --t-label-size: calc(11px * var(--text-scale));
  --t-label-line: 1.3;
  --t-label-weight: 700;
  --t-label-tracking: 0.08em;
  --t-label-s-size: calc(10.5px * var(--text-scale));
  --t-label-s-line: 1.3;
  --t-label-s-weight: 700;
  --t-label-s-tracking: 0.06em;
  --t-label-xs-size: calc(10px * var(--text-scale));
  --t-label-xs-line: 1.3;
  --t-label-xs-weight: 700;
  --t-label-xs-tracking: 0.08em;
  --t-time-size: calc(12.5px * var(--text-scale));
  --t-time-line: 1.3;
  --t-time-weight: 700;
  --t-time-tracking: 0em;
  --t-time-s-size: calc(11px * var(--text-scale));
  --t-time-s-line: 1.3;
  --t-time-s-weight: 500;
  --t-time-s-tracking: 0em;
  --t-code-size: calc(11.5px * var(--text-scale));
  --t-code-line: 1.55;
  --t-code-weight: 500;
  --t-code-tracking: 0em;
  --t-code-input-size: calc(30px * var(--text-scale));
  --t-code-input-line: 1.2;
  --t-code-input-weight: 700;
  --t-code-input-tracking: 0.2em;
  --part-c0-bg: #3F6FD0;
  --part-c0-ink: #FFFFFF;
  --part-c0-chip: rgba(255,255,255,.18);
  --part-c1-bg: #18203A;
  --part-c1-ink: #EEF2F9;
  --part-c1-chip: rgba(255,255,255,.14);
  --part-c2-bg: #F6C667;
  --part-c2-ink: #3D2A06;
  --part-c2-chip: rgba(61,42,6,.12);
  --part-c3-bg: #5B8DEF;
  --part-c3-ink: #18203A;
  --part-c3-chip: rgba(255,255,255,.2);
  --part-c4-bg: #5FA98C;
  --part-c4-ink: #18203A;
  --part-c4-chip: rgba(255,255,255,.2);
  --part-c5-bg: #E3EBFB;
  --part-c5-ink: #18203A;
  --part-c5-chip: rgba(24,32,58,.08);
  --part-c6-bg: #2B3D60;
  --part-c6-ink: #EEF2F9;
  --part-c6-chip: rgba(255,255,255,.14);
  color-scheme: light;
  --paper: #F4F7FC;
  --paper-2: #FFFFFF;
  --paper-3: #EAF0F8;
  --ink: #18203A;
  --ink-2: #56627E;
  --ink-3: #8A95AD;
  --line: #D5DEEB;
  --line-2: #B9C6DA;
  --blue: #3F6FD0;
  --blue-2: #5B8DEF;
  --blue-ink: #3461C4;
  --blue-soft: #E3EBFB;
  --on-blue: #FFFFFF;
  --yellow: #F6C667;
  --yellow-ink: #7A5514;
  --yellow-soft: #FBEFD3;
  --on-yellow: #3D2A06;
  --green: #5FA98C;
  --green-ink: #2F7358;
  --red: #B4452E;
  --night: #0E1626;
  --night-2: #16213A;
  --chalk: #EEF2F9;
  --scrim: rgba(14,22,38,.42);
  --sky-1: #3F6FD0;
  --sky-2: #9DBDF5;
  --sky-ink: #FFFFFF;
  --inverse-accent: #F6C667;
  --shadow: #0E1626;
}
:root[data-text-size="grande"] { --text-scale: 1.12; }
:root[data-text-size="muito-grande"] { --text-scale: 1.25; }
:root[data-text-size="maximo"] { --text-scale: 1.4; }

/* escuro: pelo sistema, ou forçado */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --paper: #0E1626;
  --paper-2: #131D31;
  --paper-3: #1A2640;
  --ink: #ECF0F7;
  --ink-2: #A3AEC4;
  --ink-3: #6E7A93;
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.2);
  --blue: #3F6FD0;
  --blue-2: #6E9BF0;
  --blue-ink: #A6C2F8;
  --blue-soft: rgba(110,155,240,.14);
  --on-blue: #FFFFFF;
  --yellow: #EEC479;
  --yellow-ink: #EEC479;
  --yellow-soft: rgba(238,196,121,.14);
  --on-yellow: #3D2A06;
  --green: #6FBFA0;
  --green-ink: #8FD3B6;
  --red: #F0A894;
  --night: #070C16;
  --night-2: #0E1626;
  --chalk: #EEF2F9;
  --scrim: rgba(0,0,0,.6);
  --sky-1: #0B1220;
  --sky-2: #1B3A63;
  --sky-ink: #EEF2F9;
  --inverse-accent: #7A5514;
  --shadow: #0E1626;
}}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0E1626;
  --paper-2: #131D31;
  --paper-3: #1A2640;
  --ink: #ECF0F7;
  --ink-2: #A3AEC4;
  --ink-3: #6E7A93;
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.2);
  --blue: #3F6FD0;
  --blue-2: #6E9BF0;
  --blue-ink: #A6C2F8;
  --blue-soft: rgba(110,155,240,.14);
  --on-blue: #FFFFFF;
  --yellow: #EEC479;
  --yellow-ink: #EEC479;
  --yellow-soft: rgba(238,196,121,.14);
  --on-yellow: #3D2A06;
  --green: #6FBFA0;
  --green-ink: #8FD3B6;
  --red: #F0A894;
  --night: #070C16;
  --night-2: #0E1626;
  --chalk: #EEF2F9;
  --scrim: rgba(0,0,0,.6);
  --sky-1: #0B1220;
  --sky-2: #1B3A63;
  --sky-ink: #EEF2F9;
  --inverse-accent: #7A5514;
  --shadow: #0E1626;
}

/* alto contraste claro */
:root[data-contrast="high"] {
  --ink-2: #18203A;
  --ink-3: #18203A;
  --line: #18203A;
  --line-2: #18203A;
  --blue: #2A54AA;
  --blue-ink: #274994;
  --yellow-ink: #694911;
  --green-ink: #245843;
  --red: #893423;
  --sky-1: #2A54AA;
}
@media (prefers-contrast: more) {
  :root:not([data-contrast="normal"]) {
    --ink-2: #18203A;
    --ink-3: #18203A;
    --line: #18203A;
    --line-2: #18203A;
    --blue: #2A54AA;
    --blue-ink: #274994;
    --yellow-ink: #694911;
    --green-ink: #245843;
    --red: #893423;
    --sky-1: #2A54AA;
  }
}
/* alto contraste escuro */
@media (prefers-color-scheme: dark) {
  :root[data-contrast="high"]:not([data-theme="light"]) {
    --paper: #0E1626;
    --paper-2: #131D31;
    --paper-3: #1A2640;
    --ink: #ECF0F7;
    --ink-2: #ECF0F7;
    --ink-3: #ECF0F7;
    --line: #ECF0F7;
    --line-2: #ECF0F7;
    --blue: #A6C2F8;
    --blue-2: #6E9BF0;
    --blue-ink: #B0C9F9;
    --blue-soft: rgba(110,155,240,.14);
    --on-blue: #0E1626;
    --yellow: #EEC479;
    --yellow-ink: #EEC479;
    --yellow-soft: rgba(238,196,121,.14);
    --on-yellow: #3D2A06;
    --green: #6FBFA0;
    --green-ink: #8FD3B6;
    --red: #F0A894;
    --night: #070C16;
    --night-2: #0E1626;
    --chalk: #EEF2F9;
    --scrim: rgba(0,0,0,.6);
    --sky-1: #0B1220;
    --sky-2: #1B3A63;
    --sky-ink: #EEF2F9;
    --inverse-accent: #694911;
    --shadow: #0E1626;
  }
}
@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root:not([data-contrast="normal"]):not([data-theme="light"]) {
    --paper: #0E1626;
    --paper-2: #131D31;
    --paper-3: #1A2640;
    --ink: #ECF0F7;
    --ink-2: #ECF0F7;
    --ink-3: #ECF0F7;
    --line: #ECF0F7;
    --line-2: #ECF0F7;
    --blue: #A6C2F8;
    --blue-2: #6E9BF0;
    --blue-ink: #B0C9F9;
    --blue-soft: rgba(110,155,240,.14);
    --on-blue: #0E1626;
    --yellow: #EEC479;
    --yellow-ink: #EEC479;
    --yellow-soft: rgba(238,196,121,.14);
    --on-yellow: #3D2A06;
    --green: #6FBFA0;
    --green-ink: #8FD3B6;
    --red: #F0A894;
    --night: #070C16;
    --night-2: #0E1626;
    --chalk: #EEF2F9;
    --scrim: rgba(0,0,0,.6);
    --sky-1: #0B1220;
    --sky-2: #1B3A63;
    --sky-ink: #EEF2F9;
    --inverse-accent: #694911;
    --shadow: #0E1626;
  }
}
:root[data-theme="dark"][data-contrast="high"] {
  --paper: #0E1626;
  --paper-2: #131D31;
  --paper-3: #1A2640;
  --ink: #ECF0F7;
  --ink-2: #ECF0F7;
  --ink-3: #ECF0F7;
  --line: #ECF0F7;
  --line-2: #ECF0F7;
  --blue: #A6C2F8;
  --blue-2: #6E9BF0;
  --blue-ink: #B0C9F9;
  --blue-soft: rgba(110,155,240,.14);
  --on-blue: #0E1626;
  --yellow: #EEC479;
  --yellow-ink: #EEC479;
  --yellow-soft: rgba(238,196,121,.14);
  --on-yellow: #3D2A06;
  --green: #6FBFA0;
  --green-ink: #8FD3B6;
  --red: #F0A894;
  --night: #070C16;
  --night-2: #0E1626;
  --chalk: #EEF2F9;
  --scrim: rgba(0,0,0,.6);
  --sky-1: #0B1220;
  --sky-2: #1B3A63;
  --sky-ink: #EEF2F9;
  --inverse-accent: #694911;
  --shadow: #0E1626;
}
@media (prefers-contrast: more) {
  :root[data-theme="dark"]:not([data-contrast="normal"]) {
    --paper: #0E1626;
    --paper-2: #131D31;
    --paper-3: #1A2640;
    --ink: #ECF0F7;
    --ink-2: #ECF0F7;
    --ink-3: #ECF0F7;
    --line: #ECF0F7;
    --line-2: #ECF0F7;
    --blue: #A6C2F8;
    --blue-2: #6E9BF0;
    --blue-ink: #B0C9F9;
    --blue-soft: rgba(110,155,240,.14);
    --on-blue: #0E1626;
    --yellow: #EEC479;
    --yellow-ink: #EEC479;
    --yellow-soft: rgba(238,196,121,.14);
    --on-yellow: #3D2A06;
    --green: #6FBFA0;
    --green-ink: #8FD3B6;
    --red: #F0A894;
    --night: #070C16;
    --night-2: #0E1626;
    --chalk: #EEF2F9;
    --scrim: rgba(0,0,0,.6);
    --sky-1: #0B1220;
    --sky-2: #1B3A63;
    --sky-ink: #EEF2F9;
    --inverse-accent: #694911;
    --shadow: #0E1626;
  }
}
/* partes da vida no alto contraste */
:root[data-contrast="high"] { --part-c0-bg: #2A54AA; --part-c3-bg: #89ADF3; --part-c4-bg: #7CB9A1; }
@media (prefers-contrast: more) { :root:not([data-contrast="normal"]) { --part-c0-bg: #2A54AA; --part-c3-bg: #89ADF3; --part-c4-bg: #7CB9A1; } }

/* estilos de texto prontos */
.t-night { font-family: var(--f-sans); font-size: var(--t-night-size); line-height: var(--t-night-line); font-weight: var(--t-night-weight); letter-spacing: var(--t-night-tracking); }
.t-display { font-family: var(--f-sans); font-size: var(--t-display-size); line-height: var(--t-display-line); font-weight: var(--t-display-weight); letter-spacing: var(--t-display-tracking); }
.t-hello { font-family: var(--f-sans); font-size: var(--t-hello-size); line-height: var(--t-hello-line); font-weight: var(--t-hello-weight); letter-spacing: var(--t-hello-tracking); }
.t-title-l { font-family: var(--f-sans); font-size: var(--t-title-l-size); line-height: var(--t-title-l-line); font-weight: var(--t-title-l-weight); letter-spacing: var(--t-title-l-tracking); }
.t-title-m { font-family: var(--f-sans); font-size: var(--t-title-m-size); line-height: var(--t-title-m-line); font-weight: var(--t-title-m-weight); letter-spacing: var(--t-title-m-tracking); }
.t-moment { font-family: var(--f-sans); font-size: var(--t-moment-size); line-height: var(--t-moment-line); font-weight: var(--t-moment-weight); letter-spacing: var(--t-moment-tracking); }
.t-card-title { font-family: var(--f-sans); font-size: var(--t-card-title-size); line-height: var(--t-card-title-line); font-weight: var(--t-card-title-weight); letter-spacing: var(--t-card-title-tracking); }
.t-body { font-family: var(--f-sans); font-size: var(--t-body-size); line-height: var(--t-body-line); font-weight: var(--t-body-weight); letter-spacing: var(--t-body-tracking); }
.t-name { font-family: var(--f-sans); font-size: var(--t-name-size); line-height: var(--t-name-line); font-weight: var(--t-name-weight); letter-spacing: var(--t-name-tracking); }
.t-message { font-family: var(--f-sans); font-size: var(--t-message-size); line-height: var(--t-message-line); font-weight: var(--t-message-weight); letter-spacing: var(--t-message-tracking); }
.t-row-title { font-family: var(--f-sans); font-size: var(--t-row-title-size); line-height: var(--t-row-title-line); font-weight: var(--t-row-title-weight); letter-spacing: var(--t-row-title-tracking); }
.t-button { font-family: var(--f-sans); font-size: var(--t-button-size); line-height: var(--t-button-line); font-weight: var(--t-button-weight); letter-spacing: var(--t-button-tracking); }
.t-body-s { font-family: var(--f-sans); font-size: var(--t-body-s-size); line-height: var(--t-body-s-line); font-weight: var(--t-body-s-weight); letter-spacing: var(--t-body-s-tracking); }
.t-meta { font-family: var(--f-sans); font-size: var(--t-meta-size); line-height: var(--t-meta-line); font-weight: var(--t-meta-weight); letter-spacing: var(--t-meta-tracking); }
.t-caption { font-family: var(--f-sans); font-size: var(--t-caption-size); line-height: var(--t-caption-line); font-weight: var(--t-caption-weight); letter-spacing: var(--t-caption-tracking); }
.t-badge { font-family: var(--f-sans); font-size: var(--t-badge-size); line-height: var(--t-badge-line); font-weight: var(--t-badge-weight); letter-spacing: var(--t-badge-tracking); }
.t-number-xl { font-family: var(--f-sans); font-size: var(--t-number-xl-size); line-height: var(--t-number-xl-line); font-weight: var(--t-number-xl-weight); letter-spacing: var(--t-number-xl-tracking); font-variant-numeric: tabular-nums; }
.t-number-l { font-family: var(--f-sans); font-size: var(--t-number-l-size); line-height: var(--t-number-l-line); font-weight: var(--t-number-l-weight); letter-spacing: var(--t-number-l-tracking); font-variant-numeric: tabular-nums; }
.t-label { font-family: var(--f-mono); font-size: var(--t-label-size); line-height: var(--t-label-line); font-weight: var(--t-label-weight); letter-spacing: var(--t-label-tracking); text-transform: uppercase; }
.t-label-s { font-family: var(--f-mono); font-size: var(--t-label-s-size); line-height: var(--t-label-s-line); font-weight: var(--t-label-s-weight); letter-spacing: var(--t-label-s-tracking); text-transform: uppercase; }
.t-label-xs { font-family: var(--f-mono); font-size: var(--t-label-xs-size); line-height: var(--t-label-xs-line); font-weight: var(--t-label-xs-weight); letter-spacing: var(--t-label-xs-tracking); text-transform: uppercase; }
.t-time { font-family: var(--f-mono); font-size: var(--t-time-size); line-height: var(--t-time-line); font-weight: var(--t-time-weight); letter-spacing: var(--t-time-tracking); font-variant-numeric: tabular-nums; }
.t-time-s { font-family: var(--f-mono); font-size: var(--t-time-s-size); line-height: var(--t-time-s-line); font-weight: var(--t-time-s-weight); letter-spacing: var(--t-time-s-tracking); font-variant-numeric: tabular-nums; }
.t-code { font-family: var(--f-mono); font-size: var(--t-code-size); line-height: var(--t-code-line); font-weight: var(--t-code-weight); letter-spacing: var(--t-code-tracking); }
.t-code-input { font-family: var(--f-mono); font-size: var(--t-code-input-size); line-height: var(--t-code-input-line); font-weight: var(--t-code-input-weight); letter-spacing: var(--t-code-input-tracking); font-variant-numeric: tabular-nums; }

/* foco e movimento */
:focus-visible { outline: var(--border-focus) solid var(--blue-2); outline-offset: 2px; }
:root[data-contrast="high"] :focus-visible { outline: var(--border-focus-hc) solid var(--blue); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
