/*
 * All.Q Hub · Global CSS
 * Sistema de design canônico All.Q Agência
 * Versão 1.0 · 20 de maio de 2026
 *
 * Importar em todas as páginas:
 *   <link rel="stylesheet" href="/assets/css/allq-global.css">
 *
 * Cada página adiciona apenas o CSS específico da sua tela.
 */

/* ========================================
   1. Tokens (variáveis CSS)
   ======================================== */

:root {
  /* Paleta canônica All.Q */
  --allq-jet: #2F2F2F;
  --allq-blue-saint: #052E7D;
  --allq-blue-crayola: #0070FE;
  --allq-blue-crayola-dark: #0050C7;
  --allq-yellow-honey: #F0AD0C;
  --allq-orange-carrot: #EE8C0D;

  /* Neutros funcionais */
  --allq-bg: #F6F7FA;
  --allq-surface: #FFFFFF;
  --allq-surface-2: #FAFBFC;
  --allq-border: #EEF0F4;
  --allq-border-input: #D7DCE5;
  --allq-divider: #F1F3F7;
  --allq-text: #0F172A;
  --allq-text-mute: #4B5563;
  --allq-text-soft: #6B7280;
  --allq-text-faint: #9CA3AF;

  /* Tints */
  --allq-blue-tint: #EEF3FF;
  --allq-blue-tint-2: #E8F2FF;
  --allq-yellow-tint: #FFF4E0;
  --allq-green-tint: #EAF5EC;

  /* Tipografia */
  --allq-font-head: 'DM Sans', system-ui, sans-serif;
  --allq-font-body: 'Albert Sans', system-ui, sans-serif;

  /* Espaçamento e radius */
  --allq-radius: 12px;
  --allq-radius-sm: 8px;
  --allq-radius-xs: 6px;
  --allq-radius-pill: 20px;

  /* Sombras */
  --allq-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --allq-shadow-hover: 0 8px 24px rgba(5, 46, 125, 0.08);

  /* Transições */
  --allq-transition: 0.15s ease;
  --allq-transition-card: 0.18s ease;
}

/* ========================================
   2. Reset
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* ========================================
   3. Body + grid de fundo canônico
   ======================================== */

body {
  font-family: var(--allq-font-body);
  color: var(--allq-jet);
  background-color: var(--allq-bg);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 112, 254, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 112, 254, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Variantes do grid para containers */
.gbg-d {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}
.gbg-l {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5, 46, 125, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 46, 125, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   4. Layout principal
   ======================================== */

.app {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.main {
  flex: 1;
  padding: 40px 48px 60px;
  max-width: 1400px;
}

/* ========================================
   5. Sidebar
   ======================================== */

.sidebar {
  width: 240px;
  background: var(--allq-blue-saint);
  color: #FFFFFF;
  padding: 32px 20px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  font-family: var(--allq-font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.brand-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.nav-section { margin-bottom: 28px; }
.nav-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding: 0 8px;
}
.nav a {
  display: block;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-radius: var(--allq-radius-xs);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--allq-transition);
}
.nav a:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.nav a.active { background: var(--allq-blue-crayola); color: #FFFFFF; font-weight: 600; }

/* ========================================
   6. Header (breadcrumb + h1)
   ======================================== */

.breadcrumb {
  font-size: 12px;
  color: var(--allq-text-soft);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a {
  color: var(--allq-text-soft);
  text-decoration: none;
  font-weight: 400;
}
.breadcrumb a:hover { color: var(--allq-blue-crayola); }
.breadcrumb .bc-sep { color: var(--allq-text-mute, #9CA3AF); }
.breadcrumb .bc-cur { color: var(--allq-text, #111827); font-weight: 500; }

.h1 {
  font-family: var(--allq-font-head);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--allq-blue-saint);
  margin-bottom: 6px;
}
.h1 em { font-style: normal; color: var(--allq-blue-crayola); }
.h1-sub {
  font-size: 15px;
  color: var(--allq-text-mute);
  max-width: 680px;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--allq-font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--allq-text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* ========================================
   7. Cards
   ======================================== */

.card {
  background: var(--allq-surface);
  border: 1px solid var(--allq-border);
  border-radius: var(--allq-radius);
  padding: 28px;
  margin-bottom: 20px;
}
.card-title {
  font-family: var(--allq-font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--allq-text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.card-sub {
  font-size: 13px;
  color: var(--allq-text-soft);
  margin-bottom: 18px;
}

/* Hub-card: card com link inteiro clicável e hover */
.hub-card {
  background: var(--allq-surface);
  border: 1px solid var(--allq-border);
  border-radius: var(--allq-radius);
  padding: 28px 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--allq-transition-card), box-shadow var(--allq-transition-card);
  box-shadow: var(--allq-shadow);
  min-height: 200px;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--allq-shadow-hover); }
.hub-card-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--allq-blue-saint);
  background: var(--allq-blue-tint);
  padding: 4px 10px;
  border-radius: var(--allq-radius-pill);
  align-self: flex-start;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hub-card h3 {
  font-family: var(--allq-font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--allq-text);
}
.hub-card p {
  font-size: 14px;
  color: var(--allq-text-mute);
  line-height: 1.55;
  flex: 1;
}
.hub-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--allq-blue-crayola);
}

/* ========================================
   8. Botões
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--allq-radius-sm);
  font-family: var(--allq-font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--allq-transition);
}
.btn-primary { background: var(--allq-blue-crayola); color: #FFFFFF; }
.btn-primary:hover { background: var(--allq-blue-crayola-dark); }
.btn-primary:disabled { background: #C7CFDC; cursor: not-allowed; }
.btn-outline {
  background: var(--allq-surface);
  color: var(--allq-blue-crayola);
  border: 1px solid var(--allq-blue-crayola);
}
.btn-outline:hover { background: var(--allq-blue-tint); color: var(--allq-blue-crayola-dark); }

.btn-sm {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
}
.btn-sm.primary { background: var(--allq-blue-crayola); color: #FFFFFF; }
.btn-sm.primary:hover { background: var(--allq-blue-crayola-dark); }
.btn-sm.ghost {
  color: var(--allq-text-soft);
  border-color: var(--allq-border-input);
  background: var(--allq-surface);
}
.btn-sm.ghost:hover { color: var(--allq-text); border-color: var(--allq-text); }

/* ========================================
   9. Campos de formulário
   ======================================== */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--allq-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.field select,
.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--allq-border-input);
  border-radius: var(--allq-radius-xs);
  font-family: var(--allq-font-body);
  font-size: 14px;
  color: var(--allq-text);
  background: var(--allq-surface);
}
.field select:focus,
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--allq-blue-crayola); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ========================================
   10. Tabelas
   ======================================== */

.table {
  background: var(--allq-surface);
  border: 1px solid var(--allq-border);
  border-radius: var(--allq-radius);
  overflow: hidden;
}
.row {
  display: grid;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--allq-divider);
  font-size: 14px;
}
.row:first-child { border-top: none; }
.row.head {
  background: var(--allq-surface-2);
  font-size: 11px;
  color: var(--allq-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 11px 22px;
}

/* ========================================
   11. Stats
   ======================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat {
  background: var(--allq-surface);
  border: 1px solid var(--allq-border);
  border-radius: 10px;
  padding: 18px 20px;
}
.stat-label {
  font-size: 11px;
  color: var(--allq-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 6px;
}
.stat-value {
  font-family: var(--allq-font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--allq-blue-saint);
  letter-spacing: -0.02em;
}

/* ========================================
   12. Tags
   ======================================== */

.tag {
  display: inline-block;
  background: var(--allq-blue-tint);
  color: var(--allq-blue-crayola-dark);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.type-mensal { background: var(--allq-blue-tint-2); color: var(--allq-blue-crayola-dark); }
.type-trimestral { background: var(--allq-yellow-tint); color: #A56A00; }
.type-planejamento { background: var(--allq-green-tint); color: #1F7A3A; }

/* ========================================
   13. Estados (info / empty)
   ======================================== */

.info-box {
  background: var(--allq-blue-tint);
  border-left: 3px solid var(--allq-blue-crayola);
  padding: 14px 18px;
  border-radius: var(--allq-radius-xs);
  font-size: 13px;
  color: var(--allq-blue-crayola-dark);
}
.info-box strong {
  display: block;
  color: var(--allq-blue-saint);
  margin-bottom: 4px;
  font-weight: 700;
}

.empty {
  padding: 60px 22px;
  text-align: center;
  color: var(--allq-text-soft);
  font-size: 14px;
}
.empty strong {
  display: block;
  color: var(--allq-text);
  font-size: 16px;
  margin-bottom: 6px;
  font-family: var(--allq-font-head);
}

/* ========================================
   14. Responsivo
   ======================================== */

@media (max-width: 760px) {
  .sidebar { position: relative; width: 100%; height: auto; }
  .app { flex-direction: column; }
  .main { padding: 24px 18px; }
  .field-grid, .field-grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   15. Variáveis de gradiente e módulo
   (copiadas do Hub piloto — index.html)
   ======================================== */

:root {
  --allq-ease: cubic-bezier(0.4, 0.0, 0.2, 1);
  --allq-ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);

  --mod-hub:      #0070FE;
  --mod-bi:       #4F46E5;
  --mod-planner:  #D97706;
  --mod-traffic:  #059669;
  --mod-brief:    #0284C7;
  --mod-ai:       #7C3AED;
  --mod-equipe:   #DB2777;
  --mod-admin:    #475569;

  --grad-hub:     linear-gradient(135deg, #0070FE 0%, #052E7D 100%);
  --grad-bi:      linear-gradient(135deg, #818CF8 0%, #3730A3 100%);
  --grad-planner: linear-gradient(135deg, #FBBF24 0%, #92400E 100%);
  --grad-traffic: linear-gradient(135deg, #34D399 0%, #065F46 100%);
  --grad-brief:   linear-gradient(135deg, #38BDF8 0%, #0369A1 100%);
  --grad-ai:      linear-gradient(135deg, #A78BFA 0%, #5B21B6 100%);
  --grad-equipe:  linear-gradient(135deg, #F472B6 0%, #BE185D 100%);
  --grad-admin:   linear-gradient(135deg, #94A3B8 0%, #334155 100%);
  --grad-check:   linear-gradient(135deg, #052E7D 0%, #0070FE 100%);
}

/* ========================================
   16. Aliases de compatibilidade (allq.css)
   Permite trocar allq.css por allq-global.css
   sem quebrar var(--t1), var(--blue), etc.
   ======================================== */

:root {
  --spb:      var(--allq-blue-saint);
  --blue:     var(--allq-blue-crayola);
  --yellow:   var(--allq-yellow-honey);
  --orange:   var(--allq-orange-carrot);
  --green:    #27AE60;
  --red:      #E74C3C;

  --bg:       var(--allq-bg);
  --surface:  var(--allq-surface);
  --surface2: var(--allq-surface-2);
  --border:   var(--allq-border);
  --border-h: var(--allq-border-input);

  --t1: var(--allq-text);
  --t2: var(--allq-text-mute);
  --t3: var(--allq-text-faint);

  --r:    var(--allq-radius);
  --r-sm: var(--allq-radius-xs);
}

/* ========================================
   17. Sidebar — brand-logo + grad-bar + icons + subnav
   ======================================== */

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  text-decoration: none;
}
.brand-logo img { height: 28px; width: auto; }

.sidebar-grad-bar {
  height: 2px;
  /* background set inline by sidebar.js per active module */
  opacity: 0.6;
  border-radius: 1px;
  margin-bottom: 28px;
  margin-top: -28px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav a i,
.nav a svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 200ms var(--allq-ease, 0.15s ease);
}
.nav a:hover i, .nav a:hover svg,
.nav a.active i, .nav a.active svg { opacity: 1; }

.sidebar-subnav {
  margin-top: 4px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}
.sidebar-subnav-link {
  display: block;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  transition: background var(--allq-transition, 0.15s ease), color var(--allq-transition, 0.15s ease);
}
.sidebar-subnav-link:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.sidebar-subnav-link.active { color: #FFFFFF; font-weight: 600; }

/* ========================================
   18. Componentes BI (topbar, pg-hdr, tabela, forms…)
   Preservados para compatibilidade com páginas legadas
   ======================================== */

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,112,254,.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,112,254,.35); }

/* Topbar */
.topbar {
  height: 56px;
  border-bottom: 1px solid var(--allq-border);
  display: flex; align-items: center;
  padding: 0 28px; gap: 12px;
  background: var(--allq-surface);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.bc-sep { color: var(--allq-text-soft); opacity: .5; }
.bc-cur { color: var(--allq-text); font-weight: 600; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Content wrapper */
.content { flex: 1; padding: 28px 32px; }

/* Page header */
.pg-hdr { margin-bottom: 24px; }
.pg-title {
  font-family: var(--allq-font-head);
  font-size: 24px; font-weight: 800;
  color: var(--allq-text); letter-spacing: -0.5px;
  line-height: 1.2; margin-bottom: 6px;
}
.pg-title em {
  font-style: normal;
  color: var(--allq-blue-crayola);
}
.pg-desc { font-size: 12.5px; color: var(--allq-text-mute); line-height: 1.65; }

/* KPI */
.kpi-val { font-family: var(--allq-font-head); font-size: 30px; font-weight: 800; color: var(--allq-text); letter-spacing: -1px; line-height: 1; }
.kpi-label { font-size: 11px; color: var(--allq-text-mute); margin-top: 4px; font-weight: 500; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 0.3px; }
.badge-green  { background: rgba(39,174,96,0.1);  color: #1a7a47; }
.badge-red    { background: rgba(231,76,60,0.1);   color: #c0392b; }
.badge-yellow { background: rgba(240,173,12,0.1);  color: #92650a; }
.badge-blue   { background: rgba(0,112,254,0.09);  color: var(--allq-blue-crayola); }
.badge-admin  { background: rgba(240,173,12,0.1); color: #92650a; border: 1px solid rgba(240,173,12,0.25); font-size: 11px; padding: 4px 12px; }

/* Buttons BI (sobrescreve .btn-primary do global para o look BI) */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--allq-blue-crayola);
  border: none; border-radius: var(--allq-radius-xs);
  color: #fff; font-family: var(--allq-font-head);
  font-size: 13px; font-weight: 700; padding: 9px 18px;
  cursor: pointer; transition: background 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(0,112,254,0.22); text-decoration: none;
}
.btn-primary:hover { background: #005FDB; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--allq-surface); border: 1px solid var(--allq-border);
  border-radius: var(--allq-radius-xs); color: var(--allq-text-mute);
  font-family: var(--allq-font-head); font-size: 13px; font-weight: 600;
  padding: 9px 16px; cursor: pointer; transition: all 0.16s; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--allq-border-input); color: var(--allq-blue-crayola); }
.btn-sm { padding: 5px 11px !important; font-size: 11px !important; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* Tabela */
.tbl-wrap { background: var(--allq-surface); border: 1px solid var(--allq-border); border-radius: var(--allq-radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--allq-surface-2); }
th { padding: 11px 15px; font-family: var(--allq-font-head); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--allq-text-soft); text-align: left; border-bottom: 1px solid var(--allq-border); }
td { padding: 12px 15px; font-size: 12.5px; color: var(--allq-text); border-bottom: 1px solid var(--allq-border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--allq-surface-2); }

/* Forms BI */
.fsel, .finp { width: 100%; background: var(--allq-surface); border: 1px solid var(--allq-border-input); border-radius: var(--allq-radius-xs); color: var(--allq-text); font-family: var(--allq-font-body); font-size: 13px; padding: 9px 13px; outline: none; appearance: none; transition: border-color 0.2s; }
.fsel:focus, .finp:focus { border-color: var(--allq-blue-crayola); box-shadow: 0 0 0 3px rgba(0,112,254,0.1); }
.sw { position: relative; }
.sw-arr { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--allq-text-soft); font-size: 10px; }
.fl { display: block; font-size: 10px; font-weight: 700; color: var(--allq-text-mute); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }

/* Status */
.api-badge { display: flex; align-items: center; gap: 6px; background: rgba(39,174,96,0.08); border: 1px solid rgba(39,174,96,0.2); padding: 4px 11px; border-radius: 20px; font-size: 11px; font-weight: 600; color: #1a7a47; }
.api-dot { width: 6px; height: 6px; background: #27AE60; border-radius: 50%; animation: blink 2.2s infinite; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-green { background: #27AE60; }
.status-yellow { background: #F0AD0C; }
.status-red { background: #E74C3C; }

/* Progress */
.progress-wrap { background: var(--allq-surface-2); border-radius: 20px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--allq-blue-crayola), var(--allq-blue-saint)); transition: width 0.8s ease; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.35); backdrop-filter: blur(3px); align-items: center; justify-content: center; }
.modal-overlay.vis { display: flex; animation: fadeIn .2s ease; }
.modal { background: var(--allq-surface); border: 1px solid var(--allq-border); border-radius: var(--allq-radius); padding: 26px; width: 90%; max-width: 520px; max-height: 90vh; overflow-y: auto; animation: fadeUp .22s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.modal-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-family: var(--allq-font-head); font-size: 16px; font-weight: 800; color: var(--allq-text); }
.modal-close { background: none; border: none; cursor: pointer; color: var(--allq-text-soft); font-size: 16px; padding: 0; transition: color .15s; }
.modal-close:hover { color: #E74C3C; }

/* Animações */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.fade-up { animation: fadeUp .35s ease both; }

/* Avatar */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--allq-blue-saint), var(--allq-blue-crayola)); display: flex; align-items: center; justify-content: center; font-family: var(--allq-font-head); font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0; }
.avatar-lg { width: 54px; height: 54px; font-size: 19px; }

/* Misc */
.divider { border: none; border-top: 1px solid var(--allq-border); margin: 20px 0; }
.section-label { font-family: var(--allq-font-head); font-size: 11px; font-weight: 700; color: var(--allq-blue-crayola); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--allq-border); }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 48px 24px; gap: 10px; color: var(--allq-text-soft); text-align: center; }
.empty-ico { font-size: 32px; opacity: .5; }
.empty-txt { font-size: 13px; }
.toggle-sw { position: relative; width: 38px; height: 21px; flex-shrink: 0; }
.toggle-sw input { opacity: 0; width: 0; height: 0; }
.toggle-knob { position: absolute; cursor: pointer; inset: 0; background: #D1D5DB; border-radius: 21px; transition: .3s; }
.toggle-knob::before { content: ''; position: absolute; height: 15px; width: 15px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .3s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle-sw input:checked + .toggle-knob { background: var(--allq-blue-crayola); }
.toggle-sw input:checked + .toggle-knob::before { transform: translateX(17px); }
