/* =========================================================
   Atração de Talentos — Design system
   Identidade: Escritório do Empreendedor — preto + roxo, acento laranja da seta da logo.
   Visual escuro por padrão (pedido do cliente: "roxo e preto");
   o tema claro existe só como escolha explícita (data-theme="light").
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Superfícies (pretos com viés roxo) */
  --bg: #07050c;
  --bg-grad: radial-gradient(1100px 620px at 100% -12%, rgba(124,58,237,.24), transparent 62%),
             radial-gradient(900px 520px at -10% 112%, rgba(178,31,209,.14), transparent 60%);
  --surface: #0f0a1a;
  --surface-2: #140e22;
  --surface-3: #1c1530;
  --border: #261d3d;
  --border-strong: #3a2c5c;

  /* Texto */
  --text: #f3eeff;
  --text-2: #c3b6e3;
  --muted: #8e82b3;

  /* Marca */
  --primary: #a675ff;          /* texto/links/ativos sobre fundo escuro */
  --primary-600: #b88fff;
  --primary-700: #dcc8ff;      /* texto sobre --primary-50 */
  --primary-50: rgba(166,117,255,.12);
  --primary-100: rgba(166,117,255,.22);
  --primary-ring: rgba(166,117,255,.40);
  --primary-solid: #7c3aed;    /* fundo de botões (texto branco) */
  --primary-solid-2: #b21fd1;  /* fim do degradê dos botões */
  --on-primary: #ffffff;
  --accent: #ff9a1f;           /* laranja da seta */
  --accent-50: rgba(255,154,31,.14);
  --grad-brand: linear-gradient(135deg, #2a0a62 0%, #6d28d9 46%, #b21fd1 100%);
  --grad-accent: linear-gradient(135deg, #ff3d1f 0%, #ff8a00 55%, #ffc21a 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.20), rgba(178,31,209,.10));
  --glow: 0 0 0 1px rgba(166,117,255,.20), 0 12px 32px rgba(124,58,237,.28);

  /* Sidebar (sempre preta) */
  --side-bg: #040308;
  --side-bg-2: #0e0819;
  --side-text: #b3a7d6;
  --side-text-strong: #ffffff;
  --side-active: rgba(166,117,255,.16);
  --side-accent: #b98cff;

  /* Estados */
  --success: #34c46a; --success-50: rgba(52,196,106,.13);
  --warning: #f0a53a; --warning-50: rgba(240,165,58,.13);
  --danger: #f06a62;  --danger-50: rgba(240,106,98,.13);
  --info: #7aa7ff;    --info-50: rgba(122,167,255,.13);
  --star: #ffb020;

  /* Superfícies flutuantes (toast/tooltip) */
  --float-bg: #1d1433;
  --float-fg: #f3eeff;
  --float-bd: rgba(166,117,255,.28);

  /* Perfis comportamentais */
  --p-E: #e34948; --p-C: #eda100; --p-P: #1baf7a; --p-A: #2a78d6;

  /* Gráficos (paleta validada — passos do modo escuro) */
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --series-5: #d55181; --series-6: #0ca30c; --series-7: #9085e9; --series-8: #e66767;
  --grid: #30264a; --axis: #463866;

  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.45);
  --shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 0 1px rgba(166,117,255,.06);
  --shadow-lg: 0 22px 60px rgba(0,0,0,.65), 0 0 0 1px rgba(166,117,255,.10);
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --sidebar-w: 264px;
}

/* Tema claro — só por escolha explícita (botão de tema ou preferência do visualizador) */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4fb;
  --bg-grad: radial-gradient(1100px 620px at 100% -12%, rgba(124,58,237,.12), transparent 62%),
             radial-gradient(900px 520px at -10% 112%, rgba(178,31,209,.07), transparent 60%);
  --surface: #ffffff; --surface-2: #f8f6fd; --surface-3: #efeaf9;
  --border: #e5dff3; --border-strong: #d2c8ea;
  --text: #170b30; --text-2: #4d4366; --muted: #6e6489;
  --primary: #6d28d9; --primary-600: #5b21b6; --primary-700: #4c1d95;
  --primary-50: #f2ebff; --primary-100: #e4d6fe; --primary-ring: rgba(109,40,217,.25);
  --primary-solid: #6d28d9; --primary-solid-2: #a21caf; --on-primary: #ffffff;
  --accent: #c2410c; --accent-50: #fff1e6;
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.10), rgba(178,31,209,.06));
  --glow: 0 0 0 1px rgba(109,40,217,.12), 0 10px 26px rgba(109,40,217,.16);
  --success: #15803d; --success-50: #e9f7ee;
  --warning: #b45309; --warning-50: #fff5e6;
  --danger: #c2362f;  --danger-50: #fdeceb;
  --info: #2563eb;    --info-50: #ebf2ff;
  --star: #f5a623;
  --float-bg: #1a1030; --float-fg: #ffffff; --float-bd: transparent;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-8: #e34948;
  --grid: #e1e0d9; --axis: #c3c2b7;
  --shadow-sm: 0 1px 2px rgba(23,11,48,.06), 0 1px 1px rgba(23,11,48,.04);
  --shadow: 0 4px 14px rgba(23,11,48,.08), 0 1px 3px rgba(23,11,48,.05);
  --shadow-lg: 0 18px 50px rgba(23,11,48,.18), 0 4px 12px rgba(23,11,48,.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  color: var(--text); background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
h4 { font-size: 13px; font-weight: 700; }
p { margin: 0 0 8px; }
img { max-width: 100%; }
:where(svg.ic) { width: 18px; height: 18px; flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
::selection { background: var(--primary-100); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabnum { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%);
  color: var(--side-text); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
  transition: transform .35s var(--ease);
}
.sidebar::before { /* brilho decorativo */
  content: ""; position: absolute; width: 260px; height: 260px; top: -120px; right: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,61,255,.34), transparent 70%); pointer-events: none;
}
.sidebar::after { /* reflexo laranja da seta, discreto */
  content: ""; position: absolute; width: 200px; height: 200px; bottom: 60px; left: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,0,.10), transparent 70%); pointer-events: none;
}
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.view { padding: 28px 32px 60px; max-width: 1440px; width: 100%; margin: 0 auto; outline: none; }
.sidebar-backdrop { display: none; }

.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; position: relative; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 18px rgba(124,58,237,.45);
  overflow: hidden;
}
.brand-logo.has-img { width: 46px; height: 46px; border-radius: 50%; background: transparent; box-shadow: 0 0 24px rgba(139,61,255,.45); overflow: visible; }
.brand-logo.has-img img { background: transparent; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); transition: transform .5s var(--ease-spring); }
.brand:hover .brand-logo.has-img img { transform: rotate(-8deg) scale(1.06); }
.brand-word { line-height: 1.05; }
.brand-word .bw-top { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: #c9b3ff; text-transform: uppercase; }
.brand-word .bw-main { display: block; font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; background: linear-gradient(90deg, #ffffff, #d8c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word .bw-app { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--side-text); }
.brand-word .bw-app i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-accent); box-shadow: 0 0 8px rgba(255,138,0,.7); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-title { color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 11.5px; color: var(--side-text); }

.nav { padding: 6px 12px 16px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #7a6aa6; padding: 14px 12px 6px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--side-text); font-weight: 600; font-size: 13.5px; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; transition: transform .25s var(--ease-spring); }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a:hover svg { transform: scale(1.12); }
.nav a.active { background: var(--side-active); color: #fff; }
.nav a.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--side-accent); box-shadow: 0 0 14px var(--side-accent); animation: grow-y .35s var(--ease);
}
.nav a.active svg { color: var(--side-accent); opacity: 1; }
.nav .nav-ext { margin-left: auto; width: 14px !important; height: 14px !important; opacity: .5; }
.nav .nav-badge { margin-left: auto; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: rgba(166,117,255,.20); color: var(--side-accent); font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: 11.5px; }
.sidebar-foot .card-mini { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 12px; color: var(--side-text); }
.sidebar-foot .card-mini b { color: #fff; }

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.topbar .search-global { flex: 1; max-width: 460px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.user-chip:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.user-chip .u-name { font-weight: 700; font-size: 13px; line-height: 1.1; }
.user-chip .u-role { font-size: 11px; color: var(--muted); }
.menu-toggle { display: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.page-head .crumbs a { color: var(--muted); }
.page-head .crumbs a:hover { color: var(--primary); }
.page-head .crumbs .sep { opacity: .5; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-sub { color: var(--text-2); margin-top: 4px; max-width: 720px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.card.pad { padding: 20px 22px; }
.card.hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-body { padding: 16px 22px 20px; }
.card + .card { margin-top: 16px; }
.section-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.section-desc { color: var(--text-2); font-size: 13px; margin-bottom: 14px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.nowrap { flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--border); margin: 16px 0; border: 0; }
.mt-0{margin-top:0}.mt-1{margin-top:6px}.mt-2{margin-top:12px}.mt-3{margin-top:18px}.mt-4{margin-top:26px}
.mb-1{margin-bottom:6px}.mb-2{margin-bottom:12px}.mb-3{margin-bottom:18px}.mb-4{margin-bottom:26px}

/* ---------- Stat tiles ---------- */
.stat {
  position: relative; overflow: hidden; padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--grad-soft); }
.stat .stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); margin-bottom: 12px; position: relative; z-index: 1; }
.stat .stat-icon svg { width: 20px; height: 20px; }
.stat .stat-label { color: var(--text-2); font-size: 12.5px; font-weight: 600; position: relative; z-index: 1; }
.stat .stat-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; position: relative; z-index: 1; }
.stat .stat-foot { font-size: 12px; color: var(--muted); margin-top: 4px; position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 28px 30px; color: #fff;
  background: var(--grad-brand); background-size: 200% 200%; animation: gradient-pan 14s ease infinite;
  box-shadow: 0 16px 44px rgba(124,58,237,.35);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero::before { width: 320px; height: 320px; right: -80px; top: -140px; background: rgba(255,255,255,.12); animation: float 9s ease-in-out infinite; }
.hero::after { width: 200px; height: 200px; right: 180px; bottom: -120px; background: rgba(255,255,255,.08); animation: float 11s ease-in-out infinite reverse; }
.hero h1, .hero h2 { color: #fff; }
.hero p { color: rgba(255,255,255,.86); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-strong);
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
  user-select: none;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--primary); color: var(--primary); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { --b-bg: var(--primary-solid); --b-fg: var(--on-primary); --b-bd: transparent; background-image: linear-gradient(135deg, var(--primary-solid), var(--primary-solid-2)); background-size: 160% 100%; background-position: 0% 0; box-shadow: 0 6px 18px var(--primary-ring); transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-position .4s var(--ease), filter .2s; }
.btn-primary:hover { color: var(--on-primary); border-color: transparent; box-shadow: 0 10px 28px var(--primary-ring); background-position: 100% 0; filter: brightness(1.08); }
.btn-soft { --b-bg: var(--primary-50); --b-fg: var(--primary); --b-bd: transparent; }
.btn-soft:hover { border-color: transparent; background: var(--primary-100); }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; --b-fg: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); box-shadow: none; border-color: transparent; color: var(--text); }
.btn-danger { --b-bg: #c2362f; --b-fg: #fff; --b-bd: transparent; }
.btn-danger:hover { color: #fff; border-color: transparent; filter: brightness(1.06); }
.btn-danger-soft { --b-bg: var(--danger-50); --b-fg: var(--danger); --b-bd: transparent; }
.btn-danger-soft:hover { color: var(--danger); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .25; animation: ripple .6s var(--ease); pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.field .req { color: var(--danger); }
.help { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d8c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.input[readonly], .input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--muted); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-50); animation: shake .35s; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 38px; }
.input-group { display: flex; }
.input-group > .input, .input-group > .select { border-radius: 0; }
.input-group > :first-child { border-radius: 10px 0 0 10px; }
.input-group > :last-child { border-radius: 0 10px 10px 0; }
.input-group > * + * { margin-left: -1px; }
.input-addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted); font-size: 13px; white-space: nowrap; }
.counter { font-size: 11.5px; color: var(--muted); text-align: right; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 14px 16px; }
.form-grid .c-12 { grid-column: span 12; } .form-grid .c-9 { grid-column: span 9; } .form-grid .c-8 { grid-column: span 8; }
.form-grid .c-6 { grid-column: span 6; } .form-grid .c-4 { grid-column: span 4; } .form-grid .c-3 { grid-column: span 3; } .form-grid .c-2 { grid-column: span 2; }

.check, .radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; user-select: none; }
.check input, .radio input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; margin: 0; }

/* Toggle */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 23px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background .25s var(--ease); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease-spring); }
.switch input:checked + .track { background: linear-gradient(135deg, var(--primary-solid), var(--primary-solid-2)); box-shadow: 0 0 12px var(--primary-ring); }
.switch input:checked + .track::after { transform: translateX(17px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--primary-ring); }

/* Segmented / pills choice */
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-3); border-radius: 12px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 9px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.segmented button:hover { color: var(--text); }
.segmented button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* Choice cards (radio-card) */
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choice { position: relative; display: flex; gap: 12px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.choice:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.choice input { position: absolute; opacity: 0; }
.choice .ch-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex: none; }
.choice .ch-title { font-weight: 800; }
.choice .ch-desc { color: var(--text-2); font-size: 12.5px; }
.choice.selected, .choice:has(input:checked) { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 4px var(--primary-ring); }
.choice .ch-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; transition: all .2s; }
.choice.selected .ch-check, .choice:has(input:checked) .ch-check { background: var(--primary-solid); border-color: var(--primary-solid); color: var(--on-primary); }
.choice .ch-check svg { width: 12px; height: 12px; opacity: 0; }
.choice.selected .ch-check svg, .choice:has(input:checked) .ch-check svg { opacity: 1; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .18s var(--ease); user-select: none; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: linear-gradient(135deg, var(--primary-solid), var(--primary-solid-2)); border-color: transparent; color: var(--on-primary); box-shadow: 0 4px 14px var(--primary-ring); animation: pop .25s var(--ease-spring); }
.chip .x { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,.12); cursor: pointer; }
.chip .x svg { width: 11px; height: 11px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--primary-50); color: var(--primary-700); font-size: 12px; font-weight: 700; animation: pop .25s var(--ease-spring); }
.tag button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; display: grid; place-items: center; }
.tag button svg { width: 13px; height: 13px; }

/* Chips input (multi-select com busca) */
.ms { position: relative; }
.ms-box { min-height: 40px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 5px 34px 5px 8px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); cursor: text; transition: border-color .2s, box-shadow .2s; }
.ms.open .ms-box, .ms-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.ms-box input { flex: 1; min-width: 120px; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); height: 28px; }
.ms-caret { position: absolute; right: 10px; top: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; transition: transform .2s; }
.ms.open .ms-caret { transform: rotate(180deg); }
.ms-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; max-height: 260px; overflow: auto; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: drop .18s var(--ease); }
.ms-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.ms-opt:hover, .ms-opt.hl { background: var(--surface-3); }
.ms-opt .box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.ms-opt.sel .box { background: var(--primary-solid); border-color: var(--primary-solid); color: var(--on-primary); }
.ms-opt .box svg { width: 11px; height: 11px; opacity: 0; }
.ms-opt.sel .box svg { opacity: 1; }
.ms-empty { padding: 10px; color: var(--muted); font-size: 12.5px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; position: relative; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: color .2s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); animation: grow-x .3s var(--ease); }
.tab .count { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); }
.tab.active .count { background: var(--primary-50); color: var(--primary); }
.tab .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); font-size: 11.5px; color: var(--text-2); }
.tab.active .num { background: linear-gradient(135deg, var(--primary-solid), var(--primary-solid-2)); color: var(--on-primary); }

/* ---------- Stepper ---------- */
.stepper { display: flex; align-items: flex-start; padding: 18px 12px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; cursor: pointer; background: none; border: 0; font: inherit; color: var(--text-2); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: var(--border); }
.step.done:not(:last-child)::after { background: linear-gradient(90deg, var(--primary), var(--primary)); }
.step .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-weight: 800; font-size: 13px; transition: all .3s var(--ease-spring); z-index: 1; }
.step .dot svg { width: 16px; height: 16px; }
.step.done .dot { background: var(--primary-solid); color: var(--on-primary); }
.step.active .dot { background: linear-gradient(135deg, var(--primary-solid), var(--primary-solid-2)); color: var(--on-primary); box-shadow: 0 0 0 6px var(--primary-ring), 0 0 18px var(--primary-ring); transform: scale(1.08); }
.step .st-label { font-size: 12.5px; font-weight: 700; text-align: center; }
.step.active .st-label { color: var(--text); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 1; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table th .sort-ind { display: inline-block; margin-left: 4px; opacity: .5; }
.table th.sorted .sort-ind { opacity: 1; color: var(--primary); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .15s; animation: fade-up .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.selected { background: var(--primary-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .col-check { width: 44px; }
.table .col-actions { width: 56px; text-align: right; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; flex-wrap: wrap; }
.bulkbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin: 0 16px 12px; border-radius: 12px; background: var(--primary-50); color: var(--primary-700); font-weight: 700; font-size: 13px; animation: drop .25s var(--ease); flex-wrap: wrap; }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge svg { width: 13px; height: 13px; }
.badge .bdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success { background: var(--success-50); color: var(--success); }
.badge.warning { background: var(--warning-50); color: var(--warning); }
.badge.danger { background: var(--danger-50); color: var(--danger); }
.badge.info { background: var(--info-50); color: var(--info); }
.badge.primary { background: var(--primary-50); color: var(--primary); }
.badge.accent { background: var(--accent-50); color: var(--accent); }
.badge.outline { background: transparent; border: 1px solid var(--border-strong); }
.badge.pulse .bdot { animation: pulse-dot 1.6s infinite; }

.pct { display: inline-grid; place-items: center; min-width: 48px; height: 24px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 800; color: #fff; }
.pct.hi { background: #15803d; } .pct.md { background: #b45309; } .pct.lo { background: #c2362f; } .pct.na { background: var(--surface-3); color: var(--muted); }

.prof { display: inline-flex; gap: 4px; }
.prof span { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px var(--surface); }
.prof span.E { background: var(--p-E); } .prof span.C { background: var(--p-C); color: #0b0b0b; } .prof span.P { background: var(--p-P); color: #0b0b0b; } .prof span.A { background: var(--p-A); }
.prof.lg span { width: 34px; height: 34px; font-size: 14px; }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; color: #fff; overflow: hidden; background: var(--grad-brand); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -8px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .p-name { font-weight: 700; color: var(--text); }
.person .p-sub { font-size: 12px; color: var(--muted); }

.star-btn { border: 0; background: transparent; cursor: pointer; color: var(--border-strong); padding: 4px; display: inline-grid; place-items: center; border-radius: 8px; transition: transform .2s var(--ease-spring), color .2s; }
.star-btn:hover { color: var(--star); transform: scale(1.15); }
.star-btn.on { color: var(--star); }
.star-btn.on svg { fill: currentColor; animation: pop .35s var(--ease-spring); }
.star-btn svg { width: 18px; height: 18px; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }
.stars .off { color: var(--border-strong); }

.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); transform-origin: left; animation: grow-x .9s var(--ease) both; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 13px; border: 1px solid transparent; animation: fade-up .35s var(--ease); }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert.info { background: var(--info-50); color: var(--info); border-color: color-mix(in srgb, var(--info) 18%, transparent); }
.alert.warning { background: var(--warning-50); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 20%, transparent); }
.alert.success { background: var(--success-50); color: var(--success); border-color: color-mix(in srgb, var(--success) 20%, transparent); }
.alert.danger { background: var(--danger-50); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
.alert .alert-body { flex: 1; color: var(--text); }
.alert .alert-close { margin-left: auto; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .empty-art { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--grad-soft); color: var(--primary); margin-bottom: 8px; animation: float 5s ease-in-out infinite; }
.empty .empty-art svg { width: 44px; height: 44px; }
.empty h3 { font-size: 16px; }
.empty p { color: var(--text-2); max-width: 420px; }

/* ---------- Menu popover ---------- */
.menu { position: fixed; z-index: 90; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: drop .16s var(--ease); max-height: 70vh; overflow: auto; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: transparent; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; transition: background .12s, padding-left .15s; }
.menu button:hover { background: var(--surface-3); padding-left: 15px; }
.menu button svg { width: 17px; height: 17px; color: var(--text-2); flex: none; }
.menu button.danger, .menu button.danger svg { color: var(--danger); }
.menu button:disabled { opacity: .45; pointer-events: none; }
.menu .menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu .menu-title { padding: 8px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Modal & Drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(8,18,24,.48); backdrop-filter: blur(3px); animation: fade .2s var(--ease); display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay.closing { animation: fade .18s var(--ease) reverse forwards; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); animation: modal-in .32s var(--ease-spring); overflow: hidden; }
.overlay.closing .modal { animation: modal-out .18s var(--ease) forwards; }
.modal.sm { max-width: 420px; } .modal.lg { max-width: 820px; } .modal.xl { max-width: 1080px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 6px; }
.modal-head h2 { flex: 1; }
.modal-sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.modal-body { padding: 14px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.modal-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px; }
.modal-icon.danger { background: var(--danger-50); color: var(--danger); }
.modal-icon.success { background: var(--success-50); color: var(--success); }
.modal-icon.primary { background: var(--primary-50); color: var(--primary); }
.modal-icon svg { width: 24px; height: 24px; }

.overlay.drawer-ov { justify-content: flex-end; padding: 0; }
.drawer { height: 100%; width: min(860px, 100vw); background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: drawer-in .38s var(--ease); }
.drawer.md { width: min(620px, 100vw); } .drawer.sm { width: min(460px, 100vw); }
.overlay.closing .drawer { animation: drawer-out .22s var(--ease) forwards; }
.drawer-head { padding: 18px 22px 0; border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-foot { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 12px 16px; border-radius: 14px; background: var(--float-bg); color: var(--float-fg); border: 1px solid var(--float-bd); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 13px; animation: toast-in .4s var(--ease-spring); }
.toast.out { animation: toast-out .3s var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast.success svg { color: #4ade80; } .toast.danger svg { color: #f87171; } .toast.warning svg { color: #fbbf24; } .toast.info svg { color: #60a5fa; }

/* ---------- Tooltip (gráficos e dicas) ---------- */
.tip { position: fixed; z-index: 120; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: var(--float-bg); color: var(--float-fg); border: 1px solid var(--float-bd); font-size: 12px; box-shadow: var(--shadow-lg); max-width: 260px; animation: fade .12s; }
.tip b { font-weight: 800; }
[data-tip] { position: relative; }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .val { fill: var(--text-2); font-weight: 700; }
.chart .bar { transition: opacity .2s; cursor: pointer; }
.chart .bar:hover { opacity: .82; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--text-2); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar-list { display: flex; flex-direction: column; gap: 12px; }
.hbar-row .hb-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; color: var(--text-2); }
.hbar-row .hb-top b { color: var(--text); }
.hbar-track { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hbar-track > span { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: grow-x 1s var(--ease) both; }

/* ---------- Kanban / pipeline columns ---------- */
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; padding: 16px; flex-wrap: wrap; }
.toolbar .input-icon { flex: 1; min-width: 220px; }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--primary-solid); color: var(--on-primary); font-size: 11px; }

/* ---------- Página pública (carreiras) ---------- */
body.is-public .sidebar, body.is-public .topbar, body.is-public .sidebar-backdrop { display: none; }
body.is-public .main { margin-left: 0; }
body.is-public .view { padding: 0; max-width: none; }

/* ---------- Dentro do Claude (iframe) ---------- */
.frame-back { position: fixed; z-index: 70; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-lg); }
body.in-frame [data-act="print"], body.in-frame #pv-print, body.in-frame #pd-print { display: none !important; }

/* ---------- Animações ---------- */
.view > * { animation: fade-up .45s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: .05s; }
.view > *:nth-child(3) { animation-delay: .1s; }
.view > *:nth-child(4) { animation-delay: .15s; }
.view > *:nth-child(n+5) { animation-delay: .2s; }
.stagger > * { animation: fade-up .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes grow-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gradient-pan { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%); background-size: 800px 100%; animation: shimmer 1.2s infinite linear; border-radius: 8px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(8,18,24,.45); animation: fade .2s; }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .view { padding: 20px 16px 48px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0,1fr); }
  .form-grid .c-9, .form-grid .c-8, .form-grid .c-6, .form-grid .c-4, .form-grid .c-3, .form-grid .c-2 { grid-column: span 12; }
  .stepper .st-label { display: none; }
  h1 { font-size: 22px; }
  .user-chip .u-text { display: none; }
  .topbar .search-global { display: none; }
}
