/* ============================================================
   Altzum Design System — tokens + componentes (gerado por app/scripts/build-ds.php)
   Fonte: domains/altzum.com.br/design-system. Não edite à mão; rode o script.
   ============================================================ */

/* ---- tokens/fonts.css ---- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,700;1,800&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap");

/* Altzum ships no proprietary webfonts. Poppins stands in for the geometric
   construction of the "altzum" wordmark; Manrope carries all UI + body copy.
   See readme.md -> VISUAL FOUNDATIONS -> Typography for the substitution note. */
:root {
  --font-display: "Poppins", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}


/* ---- tokens/colors.css ---- */
:root {
  /* ---- Roxo Altzum — primary brand ramp ---- */
  --roxo-50: #f5edfd;
  --roxo-100: #e7d6fa;
  --roxo-200: #d0adf5;
  --roxo-300: #b178ed;
  --roxo-400: #9147e1;
  --roxo-500: #6d1dc3;
  --roxo-600: #4E148C;
  --roxo-700: #3e0e71;
  --roxo-800: #320a5c;
  --roxo-900: #270949;
  --roxo-950: #1c0836;

  /* ---- Verde Altzum — the "it works / you're saving" green ---- */
  --verde-50: #e6f9f3;
  --verde-100: #c4f1e4;
  --verde-200: #8fe3cb;
  --verde-300: #55d0ae;
  --verde-400: #21be94;
  --verde-500: #00b489;
  --verde-600: #009672;
  --verde-700: #007558;
  --verde-800: #005741;
  --verde-900: #003a2c;

  /* ---- Âmbar Altzum — attention, highlights, hosts ---- */
  --ambar-50: #fff7e5;
  --ambar-100: #ffecc2;
  --ambar-200: #ffd980;
  --ambar-300: #ffc64d;
  --ambar-400: #ffb020;
  --ambar-500: #f59e00;
  --ambar-600: #cc8100;
  --ambar-700: #a36600;
  --ambar-800: #7a4c00;
  --ambar-900: #523300;

  /* ---- Neutros — warm-violet tinted ink, never pure grey ---- */
  --n-0: #ffffff;
  --n-25: #fbfafd;
  --n-50: #f6f4fa;
  --n-100: #eeebf4;
  --n-200: #dfdae9;
  --n-300: #c5bdd4;
  --n-400: #9c93ae;
  --n-500: #756c87;
  --n-600: #584f69;
  --n-700: #40384f;
  --n-800: #2a2338;
  --n-900: #1a1426;
  --n-950: #120c1c;

  /* ---- Feedback ---- */
  --vermelho-50: #fdecec;
  --vermelho-500: #e03e44;
  --vermelho-600: #c42a30;
  --vermelho-700: #9c1f24;

  /* ---- Semantic aliases: use THESE in components ---- */
  --brand: var(--roxo-600);
  --brand-hover: var(--roxo-700);
  --brand-press: var(--roxo-800);
  --brand-soft: var(--roxo-50);
  --brand-soft-hover: var(--roxo-100);
  --brand-border: var(--roxo-200);
  --brand-ink: var(--roxo-800);
  --on-brand: #ffffff;

  --text-strong: var(--n-950);
  --text-body: var(--n-800);
  --text-muted: var(--n-500);
  --text-faint: var(--n-400);
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.66);
  --text-link: var(--roxo-700);
  --text-link-hover: var(--roxo-900);

  --surface-page: var(--n-25);
  --surface-card: #ffffff;
  --surface-sunken: var(--n-50);
  --surface-raised: #ffffff;
  --surface-inverse: var(--roxo-950);
  --surface-brand: var(--roxo-600);
  --surface-brand-deep: var(--roxo-900);

  --border-subtle: var(--n-100);
  --border-default: var(--n-200);
  --border-strong: var(--n-300);
  --border-inverse: rgba(255, 255, 255, 0.16);

  --success: var(--verde-600);
  --success-soft: var(--verde-50);
  --success-ink: var(--verde-800);
  --warning: var(--ambar-500);
  --warning-soft: var(--ambar-50);
  --warning-ink: var(--ambar-800);
  --danger: var(--vermelho-600);
  --danger-soft: var(--vermelho-50);
  --danger-ink: var(--vermelho-700);

  --focus-ring: var(--roxo-400);
  --overlay-scrim: rgba(18, 12, 28, 0.55);
}


/* ---- tokens/typography.css ---- */
:root {
  /* Scale — 1.22 minor-third-ish, tuned so 16px body sits in the middle */
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 21px;
  --fs-2xl: 26px;
  --fs-3xl: 32px;
  --fs-4xl: 40px;
  --fs-5xl: 52px;
  --fs-6xl: 64px;
  --fs-7xl: 80px;

  --lh-tight: 1.06; /* @kind font */
  --lh-snug: 1.18; /* @kind font */
  --lh-normal: 1.45; /* @kind font */
  --lh-relaxed: 1.65; /* @kind font */

  --fw-regular: 400; /* @kind font */
  --fw-medium: 500; /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold: 700; /* @kind font */
  --fw-black: 800; /* @kind font */

  --ls-tightest: -0.035em; /* @kind font */
  --ls-tighter: -0.022em; /* @kind font */
  --ls-tight: -0.012em; /* @kind font */
  --ls-normal: 0em; /* @kind font */
  --ls-wide: 0.04em; /* @kind font */
  --ls-widest: 0.1em; /* @kind font */

  /* Composite roles */
  --type-display: var(--fw-bold) var(--fs-6xl) / var(--lh-tight) var(--font-display); /* @kind font */
  --type-h1: var(--fw-bold) var(--fs-4xl) / var(--lh-snug) var(--font-display); /* @kind font */
  --type-h2: var(--fw-bold) var(--fs-3xl) / var(--lh-snug) var(--font-display); /* @kind font */
  --type-h3: var(--fw-semibold) var(--fs-xl) / var(--lh-snug) var(--font-display); /* @kind font */
  --type-body: var(--fw-regular) var(--fs-md) / var(--lh-relaxed) var(--font-body); /* @kind font */
  --type-body-sm: var(--fw-regular) var(--fs-sm) / var(--lh-normal) var(--font-body); /* @kind font */
  --type-label: var(--fw-semibold) var(--fs-sm) / var(--lh-normal) var(--font-body); /* @kind font */
  --type-overline: var(--fw-bold) var(--fs-xs) / var(--lh-normal) var(--font-body); /* @kind font */
  --type-mono: var(--fw-medium) var(--fs-sm) / var(--lh-normal) var(--font-mono); /* @kind font */
}


/* ---- tokens/spacing.css ---- */
:root {
  --sp-0: 0px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* Layout */
  --page-max: 1180px;
  --page-narrow: 720px;
  --gutter: var(--sp-6);
  --section-y: var(--sp-24);
  --section-y-tight: var(--sp-16);
  --stack-gap: var(--sp-4);
  --header-h: 72px;
}


/* ---- tokens/radii.css ---- */
:root {
  /* The mark is a rounded keycap — radii are generous and never sharp. */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;
  --r-keycap: 14px 14px 10px 10px; /* @kind radius */
}


/* ---- tokens/elevation.css ---- */
:root {
  /* Shadows are violet-tinted, never neutral black. Two layers: contact + spread. */
  --shadow-xs: 0 1px 2px rgba(27, 10, 59, 0.06);
  --shadow-sm: 0 1px 2px rgba(27, 10, 59, 0.05), 0 2px 6px rgba(27, 10, 59, 0.05);
  --shadow-md: 0 2px 4px rgba(27, 10, 59, 0.05), 0 8px 20px rgba(27, 10, 59, 0.07);
  --shadow-lg: 0 4px 8px rgba(27, 10, 59, 0.05), 0 18px 40px rgba(27, 10, 59, 0.1);
  --shadow-xl: 0 8px 16px rgba(27, 10, 59, 0.06), 0 32px 64px rgba(27, 10, 59, 0.14);
  --shadow-brand: 0 6px 18px rgba(78, 20, 140, 0.28);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --ring-focus: 0 0 0 3px rgba(145, 71, 225, 0.38);
  --ring-danger: 0 0 0 3px rgba(224, 62, 68, 0.3);
}


/* ---- tokens/motion.css ---- */
:root {
  --dur-instant: 90ms; /* @kind other */
  --dur-fast: 150ms; /* @kind other */
  --dur-base: 220ms; /* @kind other */
  --dur-slow: 360ms; /* @kind other */
  --dur-page: 520ms; /* @kind other */

  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-in: cubic-bezier(0.4, 0, 1, 1); /* @kind other */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */

  --t-color: color var(--dur-fast) var(--ease-soft), background-color var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft); /* @kind other */
  --t-transform: transform var(--dur-base) var(--ease-standard); /* @kind other */
  --t-all: all var(--dur-base) var(--ease-standard); /* @kind other */
}


/* ---- tokens/base.css ---- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font: var(--type-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: var(--ls-tighter);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: var(--t-color);
}
a:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--roxo-200); color: var(--roxo-950); }


/* ---- components/components.css ---- */
/* Altzum component styles — classes consumed by the React primitives.
   Everything here reads from tokens; no hard-coded colour values. */

/* ---------- Button ---------- */
.alt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight);
  border: 1px solid transparent; border-radius: var(--r-pill); cursor: pointer;
  text-decoration: none; white-space: nowrap; user-select: none;
  transition: var(--t-color), transform var(--dur-instant) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-soft);
}
.alt-btn:hover { text-decoration: none; }
.alt-btn:active { transform: translateY(1px); }
.alt-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.alt-btn[disabled], .alt-btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.45; transform: none; box-shadow: none; }

.alt-btn--sm { height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.alt-btn--md { height: 44px; padding: 0 var(--sp-5); font-size: var(--fs-sm); }
.alt-btn--lg { height: 54px; padding: 0 var(--sp-8); font-size: var(--fs-md); }
.alt-btn--full { width: 100%; }

.alt-btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.alt-btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.alt-btn--primary:active { background: var(--brand-press); }

.alt-btn--secondary { background: var(--surface-card); color: var(--brand-ink); border-color: var(--border-default); box-shadow: var(--shadow-xs); }
.alt-btn--secondary:hover { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-border); }

.alt-btn--ghost { background: transparent; color: var(--text-body); }
.alt-btn--ghost:hover { background: var(--n-100); color: var(--text-strong); }

.alt-btn--soft { background: var(--brand-soft); color: var(--brand-ink); }
.alt-btn--soft:hover { background: var(--brand-soft-hover); color: var(--brand-ink); }

.alt-btn--danger { background: var(--danger); color: #fff; }
.alt-btn--danger:hover { background: var(--vermelho-700); color: #fff; }

.alt-btn--inverse { background: #fff; color: var(--roxo-800); }
.alt-btn--inverse:hover { background: var(--roxo-50); color: var(--roxo-900); }

.alt-btn--onDark { background: transparent; color: #fff; border-color: var(--border-inverse); }
.alt-btn--onDark:hover { background: rgba(255,255,255,0.1); color: #fff; }

.alt-spin { width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: alt-spin 700ms linear infinite; }
@keyframes alt-spin { to { transform: rotate(360deg); } }

/* ---------- IconButton ---------- */
.alt-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--r-pill); cursor: pointer; padding: 0;
  transition: var(--t-color), transform var(--dur-instant) var(--ease-standard);
}
.alt-iconbtn:active { transform: scale(0.94); }
.alt-iconbtn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.alt-iconbtn[disabled] { opacity: 0.45; cursor: not-allowed; }
.alt-iconbtn--sm { width: 36px; height: 36px; }
.alt-iconbtn--md { width: 44px; height: 44px; }
.alt-iconbtn--lg { width: 54px; height: 54px; }
.alt-iconbtn--primary { background: var(--brand); color: var(--on-brand); }
.alt-iconbtn--primary:hover { background: var(--brand-hover); }
.alt-iconbtn--secondary { background: var(--surface-card); color: var(--text-body); border-color: var(--border-default); }
.alt-iconbtn--secondary:hover { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-border); }
.alt-iconbtn--ghost { background: transparent; color: var(--text-muted); }
.alt-iconbtn--ghost:hover { background: var(--n-100); color: var(--text-strong); }
.alt-iconbtn--onDark { background: rgba(255,255,255,0.08); color: #fff; }
.alt-iconbtn--onDark:hover { background: rgba(255,255,255,0.18); }

/* ---------- Field / Input / Select ---------- */
.alt-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.alt-field__label { font: var(--type-label); color: var(--text-strong); }
.alt-field__hint { font-size: var(--fs-xs); color: var(--text-muted); }
.alt-field__error { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--danger); }

.alt-input-wrap { position: relative; display: flex; align-items: center; }
.alt-input {
  width: 100%; height: 48px; padding: 0 var(--sp-4);
  font: var(--type-body-sm); color: var(--text-strong);
  background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--r-sm);
  transition: var(--t-color), box-shadow var(--dur-fast) var(--ease-soft);
}
.alt-input::placeholder { color: var(--text-faint); }
.alt-input:hover { border-color: var(--border-strong); }
.alt-input:focus { outline: none; border-color: var(--roxo-400); box-shadow: var(--ring-focus); }
.alt-input[disabled] { background: var(--surface-sunken); color: var(--text-faint); cursor: not-allowed; }
.alt-input--invalid { border-color: var(--danger); }
.alt-input--invalid:focus { border-color: var(--danger); box-shadow: var(--ring-danger); }
.alt-input--hasIcon { padding-left: 44px; }
.alt-input__icon { position: absolute; left: var(--sp-4); color: var(--text-faint); pointer-events: none; display: flex; }
.alt-input--area { height: auto; min-height: 120px; padding: var(--sp-3) var(--sp-4); line-height: var(--lh-normal); resize: vertical; font-family: var(--font-body); }

.alt-select { appearance: none; cursor: pointer; padding-right: 44px; background-image: none; }
.alt-select-wrap { position: relative; display: flex; align-items: center; }
.alt-select-wrap__chev { position: absolute; right: var(--sp-4); pointer-events: none; color: var(--text-muted); display: flex; }

/* ---------- Checkbox / Radio / Switch ---------- */
.alt-choice { display: inline-flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer; font: var(--type-body-sm); color: var(--text-body); }
.alt-choice--disabled { opacity: 0.5; cursor: not-allowed; }
.alt-choice__box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); background: var(--surface-card);
  transition: var(--t-color), box-shadow var(--dur-fast) var(--ease-soft);
}
.alt-choice__box--check { border-radius: var(--r-xs); }
.alt-choice__box--radio { border-radius: var(--r-pill); }
.alt-choice:hover .alt-choice__box { border-color: var(--roxo-400); }
.alt-choice__box--on { background: var(--brand); border-color: var(--brand); color: #fff; }
.alt-choice input:focus-visible + .alt-choice__box { box-shadow: var(--ring-focus); }
.alt-choice__dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: #fff; }
.alt-choice__label { line-height: 1.5; }
.alt-choice__desc { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }

.alt-switch { position: relative; flex: none; width: 46px; height: 26px; border-radius: var(--r-pill); background: var(--n-300); transition: var(--t-color), box-shadow var(--dur-fast) var(--ease-soft); }
.alt-switch--on { background: var(--brand); }
.alt-switch__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease-standard); }
.alt-switch--on .alt-switch__knob { transform: translateX(20px); }
.alt-choice input:focus-visible + .alt-switch { box-shadow: var(--ring-focus); }

/* ---------- Card ---------- */
.alt-card {
  background: var(--surface-card); color: var(--text-body); border: 1px solid var(--border-subtle); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), border-color var(--dur-fast) var(--ease-soft);
  overflow: hidden;
}
.alt-card--flat { box-shadow: none; }
.alt-card--raised { box-shadow: var(--shadow-md); }
.alt-card--inverse { background: var(--surface-inverse); border-color: var(--border-inverse); color: var(--text-on-dark); }
.alt-card--soft { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-border); box-shadow: none; }
.alt-card--interactive { cursor: pointer; }
.alt-card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-border); }
.alt-card--interactive:active { transform: translateY(-1px); }
.alt-card__body { padding: var(--sp-6); }

/* ---------- Badge / Tag ---------- */
.alt-badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide); text-transform: uppercase; padding: 4px 10px; white-space: nowrap;
}
.alt-badge--brand { background: var(--brand-soft); color: var(--brand-ink); }
.alt-badge--success { background: var(--success-soft); color: var(--success-ink); }
.alt-badge--warning { background: var(--warning-soft); color: var(--warning-ink); }
.alt-badge--danger { background: var(--danger-soft); color: var(--danger-ink); }
.alt-badge--neutral { background: var(--n-100); color: var(--n-700); }
.alt-badge--solid { background: var(--brand); color: var(--on-brand); }
.alt-badge__dot { width: 6px; height: 6px; border-radius: var(--r-pill); background: currentColor; }

.alt-tag {
  display: inline-flex; align-items: center; gap: var(--sp-2); border-radius: var(--r-pill);
  font: var(--type-body-sm); font-weight: var(--fw-semibold); padding: 6px 14px;
  background: var(--surface-card); color: var(--text-body); border: 1px solid var(--border-default);
  cursor: default; transition: var(--t-color);
}
.alt-tag--selectable { cursor: pointer; }
.alt-tag--selectable:hover { border-color: var(--brand-border); background: var(--brand-soft); color: var(--brand-ink); }
.alt-tag--selected { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.alt-tag--selected:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.alt-tag__x { display: inline-flex; opacity: 0.6; cursor: pointer; }
.alt-tag__x:hover { opacity: 1; }

/* ---------- Avatar ---------- */
.alt-avatar { display: inline-grid; place-items: center; flex: none; border-radius: var(--r-pill); background: var(--roxo-100); color: var(--roxo-800); font-family: var(--font-display); font-weight: var(--fw-bold); overflow: hidden; border: 2px solid var(--surface-card); }
.alt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.alt-avatar--xs { width: 24px; height: 24px; font-size: 10px; }
.alt-avatar--sm { width: 32px; height: 32px; font-size: var(--fs-xs); }
.alt-avatar--md { width: 40px; height: 40px; font-size: var(--fs-sm); }
.alt-avatar--lg { width: 56px; height: 56px; font-size: var(--fs-lg); }
.alt-avatar-stack { display: flex; }
.alt-avatar-stack > * + * { margin-left: -10px; }

/* ---------- Tabs ---------- */
.alt-tabs { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--border-default); }
.alt-tab {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: var(--sp-3) var(--sp-4); margin-bottom: -1px;
  font: var(--type-label); color: var(--text-muted);
  border-bottom: 2px solid transparent; transition: var(--t-color);
}
.alt-tab:hover { color: var(--text-strong); }
.alt-tab--active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.alt-tab:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--r-xs); }
.alt-tabs--pill { border-bottom: none; background: var(--surface-sunken); padding: 4px; border-radius: var(--r-pill); gap: 2px; display: inline-flex; }
.alt-tabs--pill .alt-tab { border-bottom: none; margin-bottom: 0; border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-5); }
.alt-tabs--pill .alt-tab--active { background: var(--surface-card); color: var(--brand-ink); box-shadow: var(--shadow-xs); }

/* ---------- Dialog ---------- */
.alt-scrim { position: fixed; inset: 0; background: var(--overlay-scrim); backdrop-filter: blur(6px); display: grid; place-items: center; padding: var(--sp-6); z-index: 60; animation: alt-fade var(--dur-base) var(--ease-standard); }
.alt-dialog { width: 100%; max-width: 460px; background: var(--surface-card); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); padding: var(--sp-8); animation: alt-pop var(--dur-slow) var(--ease-out); }
.alt-dialog__title { font: var(--type-h3); margin-bottom: var(--sp-2); }
.alt-dialog__desc { font: var(--type-body-sm); color: var(--text-muted); }
.alt-dialog__actions { display: flex; gap: var(--sp-3); justify-content: flex-end; margin-top: var(--sp-8); }
@keyframes alt-fade { from { opacity: 0; } }
@keyframes alt-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* ---------- Toast ---------- */
.alt-toast { display: flex; align-items: flex-start; gap: var(--sp-3); background: var(--surface-inverse); color: var(--text-on-dark); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-lg); min-width: 300px; max-width: 420px; animation: alt-slide var(--dur-slow) var(--ease-out); }
.alt-toast__icon { flex: none; display: flex; margin-top: 1px; }
.alt-toast__title { font: var(--type-label); color: #fff; }
.alt-toast__desc { font-size: var(--fs-xs); color: var(--text-on-dark-muted); margin-top: 2px; }
.alt-toast--success .alt-toast__icon { color: var(--verde-300); }
.alt-toast--danger .alt-toast__icon { color: #ff9a9d; }
.alt-toast--brand .alt-toast__icon { color: var(--roxo-300); }
@keyframes alt-slide { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Tooltip ---------- */
.alt-tt { position: relative; display: inline-flex; }
.alt-tt__bubble {
  position: absolute; z-index: 40; pointer-events: none; white-space: nowrap;
  background: var(--n-950); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  padding: 6px 10px; border-radius: var(--r-xs); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(4px); transition: opacity var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
.alt-tt:hover .alt-tt__bubble, .alt-tt:focus-within .alt-tt__bubble { opacity: 1; transform: translateY(0); }
.alt-tt__bubble--top { bottom: calc(100% + 8px); left: 50%; margin-left: -0px; translate: -50% 0; }
.alt-tt__bubble--bottom { top: calc(100% + 8px); left: 50%; translate: -50% 0; }
.alt-tt__bubble--right { left: calc(100% + 8px); top: 50%; translate: 0 -50%; }
.alt-tt__bubble--left { right: calc(100% + 8px); top: 50%; translate: 0 -50%; }

/* ---------- Icon ---------- */
.alt-icon { display: inline-block; flex: none; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }

