/* =====================================================
   BKon OS: portal. Marca oficial BKon v2.0
   Cobalto #3C53DD (marca) + cobalto claro #7C93FF (só em fundo escuro)
   Ink #0B1120 · Panel #F7F8FB · Linha #E4E7F0 · Muted #626B82
   Sem gradiente, sem ciano, sem roxo. Estados nunca usam a cor da marca.
   Fontes: Bricolage Grotesque (títulos) · Geist (interface) · Geist Mono (números/código)
   ===================================================== */

/* ─── Tokens: Dark Mode (base, ink #0B1120) ────────── */
:root {
  color-scheme: dark;
  --bg-primary:     #0B1120;   /* ink */
  --bg-card:        #131A2C;   /* camada 1 */
  --bg-card-hover:  #182036;
  --bg-subtle:      #0E1526;
  --bg-raised:      #172036;   /* input, card interno */

  --border:         rgba(255,255,255,0.08);
  --border-strong:  rgba(255,255,255,0.14);
  --border-focus:   rgba(124,147,255,0.70);
  --input-border:   #5B6585;   /* 3:1 sobre o card, limite do campo */

  --text-primary:   #F7F8FB;
  --text-secondary: #B4BBCC;
  --text-muted:     #9AA2B4;
  --text-disabled:  #4A5370;
  --text-placeholder: #7F889F;

  /* Marca: botão é cobalto cheio com texto branco; texto/links no escuro usam o cobalto claro */
  --accent:         #3C53DD;
  --accent-2:       #7C93FF;   /* sólido, igual ao texto de destaque (antes ciano) */
  --accent-hover:   #2F44C4;
  --accent-active:  #283AA6;
  --accent-soft:    rgba(124,147,255,0.12);
  --accent-border:  rgba(124,147,255,0.30);
  --accent-text-on: #FFFFFF;
  --accent-text:    #7C93FF;   /* 6,17:1 sobre card */
  --focus-ring:     #7C93FF;

  /* Sem gradiente: nomes mantidos para quem já usa, valores sólidos */
  --gradient-sinal: #3C53DD;
  --btn-primary-bg: #3C53DD;
  --btn-primary-color: #FFFFFF;

  /* Estados oficiais (preenchimentos, pontos, barras) */
  --state-running:  #0E9E9E;
  --state-waiting:  #E0952A;
  --state-done:     #1FA971;
  --state-idle:     #9AA2B4;

  /* Semânticas (uso como texto): no escuro o hex oficial já passa AA */
  --success:        #1FA971;
  --success-soft:   rgba(31,169,113,0.14);
  --warning:        #E0952A;
  --warning-soft:   rgba(224,149,42,0.14);
  --danger:         #F47067;
  --danger-soft:    rgba(244,112,103,0.14);
  --info:           #14B0B0;   /* texto info no escuro: teal um pouco mais claro que o oficial (4,3:1 sobre a base do badge) */
  --info-soft:      rgba(14,158,158,0.16);

  --shadow-card:    0 1px 2px rgba(0,0,0,0.30), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-card-hover: 0 6px 20px rgba(0,0,0,0.40), 0 0 0 1px rgba(255,255,255,0.07);
  --shadow-glow:    0 4px 14px rgba(0,0,0,0.35);

  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  20px;
  --radius-full: 999px;

  --duration-fast:   120ms;
  --duration-normal: 200ms;
  --duration-slow:   320ms;
  --easing:          cubic-bezier(0.4, 0, 0.2, 1);
  --easing-out:      cubic-bezier(0, 0, 0.2, 1);

  --font-display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --font-ui:      'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --sidebar-width: 220px;
  --topbar-height: 52px;
}

/* ─── Tokens: Light Mode (panel #F7F8FB, cards brancos) */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary:     #F7F8FB;   /* panel */
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #F2F4FA;
  --bg-subtle:      #EEF0F6;
  --bg-raised:      #F7F8FB;

  --border:         #E4E7F0;   /* linha oficial */
  --border-strong:  #CBD0DE;
  --border-focus:   rgba(60,83,221,0.65);
  --input-border:   #7C849A;   /* 3,7:1 sobre branco */

  --text-primary:   #0B1120;
  --text-secondary: #3E465C;
  --text-muted:     #626B82;
  --text-disabled:  #A5ADBF;
  --text-placeholder: #667088;

  --accent:         #3C53DD;
  --accent-2:       #3C53DD;
  --accent-hover:   #3347C2;
  --accent-active:  #283AA6;
  --accent-soft:    rgba(60,83,221,0.08);
  --accent-border:  rgba(60,83,221,0.26);
  --accent-text-on: #FFFFFF;
  --accent-text:    #3C53DD;
  --focus-ring:     #3C53DD;

  --gradient-sinal: #3C53DD;
  --btn-primary-bg: #3C53DD;
  --btn-primary-color: #FFFFFF;

  --state-running:  #0E9E9E;
  --state-waiting:  #E0952A;
  --state-done:     #1FA971;
  --state-idle:     #9AA2B4;

  /* No claro os hex oficiais não passam AA como texto: versões escurecidas da mesma família */
  --success:        #0F7652;
  --success-soft:   rgba(31,169,113,0.12);
  --warning:        #8F5400;
  --warning-soft:   rgba(224,149,42,0.16);
  --danger:         #B42318;
  --danger-soft:    rgba(180,35,24,0.09);
  --info:           #0A7070;
  --info-soft:      rgba(14,158,158,0.12);

  --shadow-card:    0 1px 2px rgba(11,17,32,0.05), 0 0 0 1px #E4E7F0;
  --shadow-card-hover: 0 6px 20px rgba(11,17,32,0.09), 0 0 0 1px #CBD0DE;
  --shadow-glow:    0 4px 14px rgba(11,17,32,0.14);
}

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--duration-slow) var(--easing),
              color var(--duration-slow) var(--easing);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
code, kbd, samp, pre { font-family: var(--font-mono); }
.num, .tabular { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
textarea { font-family: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Marca BKon v2: wordmark vem do arquivo SVG oficial (brand/), nunca digitado ───
   Duas versões, trocadas por tema como no site institucional.
   O SVG já traz respiro embutido (30 unidades de cada lado). Visível mínimo 90px:
   altura 52px => largura visível ~95px. Abaixo disso, só a versão duas-cores (já é a usada). */
.brand-wordmark { display: block; height: 52px; width: auto; flex-shrink: 0; }
.brand-wordmark--dark  { display: block; }
.brand-wordmark--light { display: none; }
[data-theme="light"] .brand-wordmark--dark  { display: none; }
[data-theme="light"] .brand-wordmark--light { display: block; }

/* Rótulo "OS": discreto, separado do wordmark por filete, nunca dentro do wordmark */
.brand-os {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--border-strong);
}

.login-logo .brand-wordmark { height: 96px; }

/* ─── Badges ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Dot antes de badge de status */
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge--accent  { background: var(--accent-soft);  color: var(--accent-text);   border: 1px solid var(--accent-border); }
.badge--accent::before { background: var(--accent-text); }
.badge--success { background: var(--success-soft); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 28%, transparent); }
.badge--success::before { background: var(--state-done); }
.badge--warning { background: var(--warning-soft); color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); }
.badge--warning::before { background: var(--state-waiting); }
.badge--danger  { background: var(--danger-soft);  color: var(--danger);  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.badge--danger::before { background: var(--danger); }
.badge--info    { background: var(--info-soft);    color: var(--info);    border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); }
.badge--info::before { background: var(--state-running); }
.badge--muted   { background: var(--bg-raised);    color: var(--text-muted); border: 1px solid var(--border-strong); }
.badge--muted::before { background: var(--state-idle); }

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: transform var(--duration-fast) var(--easing),
              box-shadow var(--duration-fast) var(--easing),
              background-color var(--duration-fast) var(--easing),
              opacity var(--duration-fast) var(--easing);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.btn:disabled, .btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Primário: cobalto chapado, texto branco (6,05:1 no escuro, 6,05:1 no claro) */
.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
}
.btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn--primary:active:not(:disabled) { background: var(--accent-active); transform: scale(0.98); box-shadow: none; }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--bg-raised);
  border-color: var(--text-muted);
  color: var(--text-primary);
}
.btn--ghost:active:not(:disabled) { background: var(--bg-subtle); }

.btn--sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.w-full { width: 100%; }

/* ─── Form inputs ───────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 13px;
  font-family: var(--font-ui);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--easing),
              box-shadow var(--duration-fast) var(--easing);
  outline: none;
}
.form-input::placeholder { color: var(--text-placeholder); }
.form-input:hover:not(:focus):not(:disabled) { border-color: var(--text-muted); }
.form-input:focus {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--focus-ring);
}
.form-input:disabled { opacity: 0.55; cursor: not-allowed; background: var(--bg-subtle); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23626B82' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

[data-theme="dark"] .form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239AA2B4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }

/* ─── Theme Toggle ──────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing),
              color var(--duration-fast) var(--easing),
              border-color var(--duration-fast) var(--easing);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text-primary); background: var(--bg-raised); border-color: var(--border-strong); }
.theme-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.theme-toggle .theme-label { display: none; }

.icon-moon, .icon-sun { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }

/* ─── Google badge ──────────────────────────────────── */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.google-badge svg { flex-shrink: 0; }
.google-badge--lg { padding: 5px 12px; font-size: 11px; }

/* ─── Reveal animation ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp var(--duration-slow) var(--easing-out) both; }
.reveal-d1 { animation-delay: 60ms; }
.reveal-d2 { animation-delay: 120ms; }
.reveal-d3 { animation-delay: 180ms; }
.reveal-d4 { animation-delay: 240ms; }

/* ════════════════════════════════════════════════════
   TELA DE LOGIN: segue o tema (escuro ink / claro panel)
════════════════════════════════════════════════════ */
.screen--login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Farol aposentado com a marca v2: formas decorativas do fundo não são mais exibidas */
.login-bg { display: none; }

.login-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  padding: 24px;
}

.login-logo {
  display: flex;
  align-items: center;
  position: relative;
  animation: fadeUp var(--duration-slow) var(--easing-out) both;
}
/* "OS" fica ao lado sem deslocar o wordmark do centro */
.login-logo .brand-os { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); white-space: nowrap; }

.login-card {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
  animation: fadeUp var(--duration-slow) var(--easing-out) 60ms both;
}

.login-card__header { margin-bottom: 24px; }
.login-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.login-card__sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.login-form { display: flex; flex-direction: column; gap: 14px; }

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-forgot {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  transition: color var(--duration-fast) var(--easing);
}
.form-forgot:hover { text-decoration: underline; text-underline-offset: 3px; }

.password-wrap { position: relative; }
.password-wrap .form-input { padding-right: 40px; }

.password-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--easing);
}
.password-eye:hover { color: var(--text-primary); }
.password-eye svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.login-btn { margin-top: 4px; }

.login-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin-top: 20px;
}
.login-note a { color: var(--accent-text); font-weight: 600; }
.login-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Toggle de tema no login: canto superior direito */
.login-theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 36px; height: 36px;
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text-secondary);
}
.login-theme-toggle:hover { color: var(--text-primary); background: var(--bg-raised); }

/* ════════════════════════════════════════════════════
   APP SHELL
════════════════════════════════════════════════════ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: 1fr;
  min-height: 100vh;
}

/* ─── SIDEBAR — Linear-style ────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform var(--duration-slow) var(--easing);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar__top {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -8px 0 4px;
  text-decoration: none;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Card de cliente — mais compacto, menos "fofo" */
.sidebar__client {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.client-avatar {
  width: 30px; height: 30px;
  border-radius: var(--radius-full);
  background: var(--gradient-sinal);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: 0.02em;
}
.client-avatar--sm { width: 28px; height: 28px; font-size: 11px; }

.client-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.client-name {
  font-size: 12px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.client-user {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Nav — Linear-style: item ativo tem barra esquerda sutil */
.sidebar__nav {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: background var(--duration-fast) var(--easing),
              color var(--duration-fast) var(--easing);
  letter-spacing: -0.01em;
}
.sidebar__link svg {
  width: 15px; height: 15px;
  stroke: currentColor; stroke-width: 1.5; fill: none; flex-shrink: 0;
}
.sidebar__link:hover { background: var(--bg-raised); color: var(--text-secondary); }
.sidebar__link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.sidebar__link--active {
  background: var(--accent-soft);
  color: var(--text-primary);
  font-weight: 600;
}
.sidebar__link--active svg { color: var(--accent-text); }
/* Indicador barra lateral — assinatura Linear */
.sidebar__link--active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: var(--accent-text);
  border-radius: 1px;
}
.sidebar__link--active:hover { background: var(--accent-soft); color: var(--text-primary); }
.sidebar__link--logout { color: var(--text-muted); margin-top: 4px; }
.sidebar__link--logout:hover { background: var(--danger-soft); color: var(--danger); }

.nav-badge {
  margin-left: auto;
  background: var(--state-waiting);
  color: #0B1120;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  border-radius: var(--radius-full);
  padding: 1px 5px; line-height: 1.6;
}

.sidebar__bottom {
  padding: 8px;
  border-top: 1px solid var(--border);
}
.sidebar__bottom .theme-toggle {
  width: 100%;
  justify-content: flex-start;
  gap: 9px; padding: 7px 10px;
  border-radius: var(--radius-md);
  border: none; background: transparent;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted); height: auto;
}
.sidebar__bottom .theme-toggle .theme-label { display: block; font-size: 13px; }
.sidebar__bottom .theme-toggle:hover { background: var(--bg-raised); color: var(--text-secondary); }

/* ─── TOPBAR (mobile) ───────────────────────────────── */
.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 40;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
}
.topbar__menu {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--easing);
}
.topbar__menu:hover { background: var(--bg-raised); }
.topbar__menu svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.topbar .sidebar__logo { margin-bottom: 0; }
.topbar__sidebar-logo { margin: 0; gap: 4px; }
.topbar__sidebar-logo .brand-wordmark { height: 52px; }
.topbar__right { display: flex; align-items: center; gap: 8px; }

/* ─── SIDEBAR OVERLAY (mobile) ──────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 49;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ─── MAIN CONTENT ──────────────────────────────────── */
.main-content {
  grid-column: 2;
  min-height: 100vh;
  background: var(--bg-primary);
  padding: 28px 32px;
  overflow-y: auto;
}

/* ─── PAGE / SCREEN ─────────────────────────────────── */
.screen { display: none; }
.screen--active { display: flex; }
.page { display: none; }
.page--active { display: block; }
#screen-chat.page--active { display: flex; flex-direction: column; }

/* ─── PAGE HEADER ───────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 3px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em; line-height: 1.1;
}
.page-header__actions { display: flex; align-items: center; gap: 8px; }

/* ─── SECTION LABEL ─────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 10px;
}

/* ════════════════════════════════════════════════════
   TELA 2: DASHBOARD
════════════════════════════════════════════════════ */

/* Reuniões card — lista limpa sem card "fofo" */
.meetings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 14px;
}
.meetings-card__header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.meetings-card__title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.meetings-card__icon {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-text); flex-shrink: 0;
}
.meetings-card__icon svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.meetings-card__title { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; letter-spacing: -0.01em; }

.meetings-list { padding: 2px 0; }
.meeting-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
}
.meeting-item:hover { background: var(--bg-raised); }
.meeting-item:not(:last-child) { border-bottom: 1px solid var(--border); }

.meeting-item__dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.meeting-item__dot--upcoming { background: var(--accent); }
.meeting-item__dot--far      { background: var(--accent-2); }

.meeting-item__info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.meeting-item__name { font-size: 13px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.01em; }
.meeting-item__meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.meeting-item__link svg { width: 12px; height: 12px; }

/* Alerta pendente — mais sutil, só borda lateral */
.alert-pending {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 28px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing),
              transform var(--duration-normal) var(--easing);
}
.alert-pending:hover { background: var(--bg-raised); transform: translateY(-1px); }

.alert-pending__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--warning);
}
.alert-pending__icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.75; fill: none; }

.alert-pending__content { flex: 1; min-width: 0; }
.alert-pending__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--warning);
  text-transform: uppercase; letter-spacing: 0.10em; margin-bottom: 2px;
}
.alert-pending__text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.alert-pending__arrow { color: var(--text-muted); flex-shrink: 0; }
.alert-pending__arrow svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Project grid — cards como linhas de lista (Linear-style) */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.project-card {
  padding: 16px 20px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 2px solid transparent;
}
.project-card:not(:last-child) { border-bottom: 1px solid var(--border); }
.project-card:hover {
  background: var(--bg-raised);
}
/* Primeiro card (principal) tem destaque de borda */
.project-card:first-child {
  border-left-color: var(--accent);
}

.project-card__header { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.project-card__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  flex-shrink: 0;
}
.project-card__icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.project-card__icon--success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }

.project-card__body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.project-card__texts { flex: 1; min-width: 0; }
.project-card__name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  line-height: 1.3; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.project-card__desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Progress inline */
.project-card__progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 80px;
  flex-shrink: 0;
}
.project-card__progress-val {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.project-card__progress-bar {
  width: 80px; height: 3px;
  background: var(--bg-raised);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.project-card__progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--easing-out);
}
.project-card__progress-fill--warning { background: var(--state-waiting); }
.project-card__progress-fill--success { background: var(--success); }
.project-card__progress-fill--info    { background: var(--state-running); }

.project-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  min-width: 90px;
}
.project-card__updated {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-disabled); letter-spacing: 0.02em;
}
.project-card__arrow {
  color: var(--text-disabled);
  transition: color var(--duration-fast) var(--easing), transform var(--duration-fast) var(--easing);
}
.project-card:hover .project-card__arrow { color: var(--text-muted); transform: translateX(2px); }
.project-card__arrow svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Removendo antigos - mantido para compat com JS que não re-renderiza este */
.project-progress { margin-top: 4px; }
.project-progress__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.project-progress__label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.project-progress__value { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--text-primary); }
.project-progress__bar { height: 3px; background: var(--bg-raised); border-radius: var(--radius-full); overflow: hidden; }
.project-progress__fill { height: 100%; border-radius: var(--radius-full); transition: width var(--duration-slow) var(--easing-out); }
.project-progress__fill--warning { background: var(--state-waiting); }
.project-progress__fill--success { background: var(--success); }
.project-progress__fill--info    { background: var(--state-running); }

/* Project card footer (compat) */
.project-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--border); margin-top: 4px; }

/* Dashboard summary — números grandes e respiro */
.dashboard-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
/* Farol sutil no fundo do summary */
.dashboard-summary::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 160px; height: 160px;
  background: none;
  pointer-events: none;
}
.summary-stat { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 90px; }
.summary-stat__value {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em; line-height: 1;
}
/* Primeiro stat em ciano — único accent desta linha */
.summary-stat:first-child .summary-stat__value { color: var(--accent-text); }
.summary-stat__label {
  font-size: 11px; color: var(--text-muted); line-height: 1.4;
  letter-spacing: -0.01em;
}
.summary-sep { width: 1px; height: 36px; background: var(--border-strong); flex-shrink: 0; }

/* ════════════════════════════════════════════════════
   TELA 3: PROJETO DETALHE
════════════════════════════════════════════════════ */
.proj-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: color var(--duration-fast) var(--easing);
}
.proj-back:hover { color: var(--text-secondary); }
.proj-back svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }

.proj-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.proj-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent-border);
  opacity: 0.6;
}
.proj-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.proj-hero__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.proj-hero__percent {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 700;
  color: var(--accent-text);
  letter-spacing: -0.04em; line-height: 1; text-align: right;
}
.proj-hero__percent span {
  font-size: 20px; font-weight: 500;
  background: none;
  -webkit-text-fill-color: var(--text-muted);
}

/* Tabs — mais compacto e limpo */
.proj-tabs {
  display: flex; gap: 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 0; margin-bottom: 20px;
  overflow-x: auto; scrollbar-width: none; /* Firefox */
}
.proj-tabs::-webkit-scrollbar { display: none; }
.proj-tabs::-webkit-scrollbar { display: none; }

.proj-tab {
  padding: 9px 16px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; white-space: nowrap;
  transition: color var(--duration-fast) var(--easing);
  border: none; background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  letter-spacing: -0.01em;
}
.proj-tab.active { color: var(--text-primary); border-bottom-color: var(--accent); }
.proj-tab:hover:not(.active) { color: var(--text-secondary); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.overview-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .overview-grid { grid-template-columns: 1fr 1fr; } }

.overview-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px;
}
.overview-card__label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.10em; margin-bottom: 10px;
}
.overview-card__text { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

.milestones {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px;
}
.milestone { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.milestone:last-child { padding-bottom: 0; }
.milestone:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px; top: 28px; bottom: 0;
  width: 1px; background: var(--border);
}

.milestone__dot {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--bg-primary); z-index: 1;
}
.milestone__dot svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }
.milestone--done .milestone__dot { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: var(--success); }
.milestone--active .milestone__dot { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); }
.milestone--pending .milestone__dot { color: var(--text-disabled); }

.milestone__content { flex: 1; padding-top: 4px; }
.milestone__name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 1px; letter-spacing: -0.01em; }
.milestone--pending .milestone__name { color: var(--text-muted); }
.milestone__date {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════════
   TELA 4: CHAT / CONVERSAS
════════════════════════════════════════════════════ */
.chat-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: calc(100vh - 56px - 28px);
  min-height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex: 1;
}

.chat-shell.files-open {
  grid-template-columns: 240px 1fr 240px;
}

/* Chat Rail */
.chat-rail {
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-rail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-rail__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.chat-group { border-bottom: 1px solid var(--border); }

.chat-group__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
}
.chat-group__toggle:hover { background: var(--bg-raised); color: var(--text-secondary); }
.chat-group__toggle span:first-of-type { flex: 1; }

.chat-group__chevron {
  width: 12px; height: 12px;
  stroke: currentColor; stroke-width: 2; fill: none;
  transition: transform var(--duration-normal) var(--easing);
}
.chat-group.collapsed .chat-group__chevron { transform: rotate(-90deg); }
.chat-group.collapsed .chat-group__list { display: none; }

.chat-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
  border-left: 2px solid transparent;
}
.chat-thread:hover { background: var(--bg-raised); }
.chat-thread--active {
  background: var(--bg-raised);
  border-left-color: var(--accent);
}

.chat-thread__icon {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
}
.chat-thread__icon svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.chat-thread--pending .chat-thread__icon { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 20%, transparent); color: var(--warning); }

.chat-thread__info { flex: 1; min-width: 0; }
.chat-thread__name {
  display: block; font-size: 12px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em;
}
.chat-thread__preview {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
}

.chat-thread__badge {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--warning);
  flex-shrink: 0;
}
.chat-thread:not(.chat-thread--pending) .chat-thread__badge { display: none; }

/* Chat Main */
.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

.chat-main__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-back-btn {
  width: 28px; height: 28px;
  display: none;
  align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--easing);
  flex-shrink: 0;
}
.chat-back-btn:hover { background: var(--bg-raised); color: var(--text-primary); }
.chat-back-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

.chat-main__title-wrap { flex: 1; min-width: 0; }
.chat-main__title { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.chat-main__project {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em;
}

.chat-main__actions { flex-shrink: 0; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

/* Mensagens — Linear-style: sem "balão" pesado, quase flat */
.chat-msg { display: flex; gap: 10px; max-width: 78%; }
.chat-msg--bkon { align-self: flex-start; }
.chat-msg--marina { align-self: flex-end; flex-direction: row-reverse; }

.chat-msg__avatar {
  width: 26px; height: 26px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  letter-spacing: 0.02em;
}
.chat-msg--bkon .chat-msg__avatar {
  background: var(--gradient-sinal);
  color: #FFFFFF;
}
.chat-msg--marina .chat-msg__avatar {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
}

.chat-msg__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chat-msg--marina .chat-msg__body { align-items: flex-end; }

.chat-msg__sender {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.chat-msg--bkon .chat-msg__sender { color: var(--accent-2); }

/* Bubble — fine borders, não filled */
.chat-msg__bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
  word-break: break-word;
}
.chat-msg--bkon .chat-msg__bubble { border-bottom-left-radius: var(--radius-sm); }
.chat-msg--marina .chat-msg__bubble {
  border-bottom-right-radius: var(--radius-sm);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.chat-msg--pending .chat-msg__bubble {
  border-color: color-mix(in srgb, var(--warning) 25%, transparent);
  background: var(--warning-soft);
}

.chat-pending-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--warning);
  display: flex; align-items: center; gap: 4px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.chat-pending-label svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2; fill: none; }

.chat-msg__time {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-disabled); margin-top: 1px;
  letter-spacing: 0.02em;
}

.chat-attachment {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  margin-top: 6px;
  max-width: 220px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
}
.chat-attachment:hover { background: var(--bg-raised); }
.chat-attachment__icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-attachment__icon svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.chat-attachment__icon--pdf { background: var(--danger-soft); color: var(--danger); }
.chat-attachment__icon--img { background: var(--info-soft); color: var(--info); }

.chat-attachment__info { flex: 1; min-width: 0; }
.chat-attachment__name { font-size: 11px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-attachment__size { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.chat-date-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.chat-date-divider::before, .chat-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 40px;
}

/* Chat input — sofisticado */
.chat-input-area {
  padding: 12px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 7px 7px 7px 10px;
  transition: border-color var(--duration-fast) var(--easing),
              box-shadow var(--duration-fast) var(--easing);
}
.chat-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.chat-attach-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: color var(--duration-fast) var(--easing);
}
.chat-attach-btn:hover { color: var(--text-primary); }
.chat-attach-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  padding: 3px 0;
}
.chat-input::placeholder { color: var(--text-disabled); }

.chat-send-btn {
  width: 32px; height: 32px;
  padding: 0;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.chat-send-btn svg { width: 13px; height: 13px; }

.chat-input-hint {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted); margin-top: 7px;
  letter-spacing: 0.02em;
}

/* Chat files panel */
.chat-files-panel {
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.chat-files-panel.open { display: flex; }

.chat-files-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  background: var(--bg-card);
}

.chat-files-panel__list { padding: 6px; display: flex; flex-direction: column; gap: 3px; }

.chat-file-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
}
.chat-file-item:hover { background: var(--bg-raised); }
.chat-file-item .file-item__icon { width: 26px; height: 26px; border-radius: var(--radius-sm); }
.chat-file-item .file-item__icon svg { width: 12px; height: 12px; }
.chat-file-item .file-item__name { font-size: 11px; }
.chat-file-item .file-item__meta { font-size: 11px; }

/* ════════════════════════════════════════════════════
   TELA 5: ARQUIVOS
════════════════════════════════════════════════════ */
.files-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 12px;
}
.files-section__header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.files-section__icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
}
.files-section__icon svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.files-section__icon--brand { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); }
.files-section__icon--success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.files-section__title { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; letter-spacing: -0.01em; }
.files-section__count {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.04em;
}

.files-list { padding: 4px 0; }
.file-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  transition: background var(--duration-fast) var(--easing);
}
.file-item:hover { background: var(--bg-raised); }
.file-item:not(:last-child) { border-bottom: 1px solid var(--border); }

.file-item__icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.file-item__icon svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.file-item__icon--pdf    { background: var(--danger-soft);  color: var(--danger); }
.file-item__icon--img    { background: var(--info-soft);    color: var(--info); }
.file-item__icon--link   { background: var(--accent-soft);  color: var(--accent-text); }
.file-item__icon--doc    { background: var(--info-soft);    color: var(--info); }
.file-item__icon--sheet  { background: var(--success-soft); color: var(--success); }

.file-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.file-item__name { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.file-item__meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.file-item__action { flex-shrink: 0; white-space: nowrap; }
.file-item__action svg { width: 12px; height: 12px; }

/* ════════════════════════════════════════════════════
   TELA 6: RELATÓRIOS
════════════════════════════════════════════════════ */
.reports-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.report-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
  border-left: 2px solid transparent;
}
.report-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.report-item:hover { background: var(--bg-raised); }
.report-item--active { border-left-color: var(--accent); background: var(--accent-soft); }
.report-item__icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm); background: var(--bg-raised); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0;
}
.report-item--active .report-item__icon {
  background: var(--gradient-sinal);
  border: none;
  color: #FFFFFF;
}
.report-item__icon svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.report-item__info { flex: 1; min-width: 0; }
.report-item__name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 1px; letter-spacing: -0.01em; }
.report-item__meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em;
}

.report-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; margin-top: 12px; }
.report-detail__header { margin-bottom: 20px; }
.report-detail__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.report-detail__period {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em;
}

/* Métricas — números grandes, sem fundo pesado */
.report-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; margin-bottom: 24px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.report-metric {
  background: var(--bg-raised);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.report-metric__value {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.03em; line-height: 1;
}
.report-metric:first-child .report-metric__value { color: var(--accent-text); }
.report-metric__label { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.report-metric__trend { display: flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--success); margin-top: 3px; letter-spacing: 0.02em; }
.report-metric__trend svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2; fill: none; }

.report-chart-wrap { margin-bottom: 20px; }
.report-chart__title {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.10em;
}
.report-chart { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; overflow: hidden; }
.bar-chart { width: 100%; height: 140px; display: block; }
.bar-chart__labels { display: flex; justify-content: space-around; padding: 0 8px; margin-top: 6px; }
.bar-chart__labels span {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted); font-weight: 500;
  letter-spacing: 0.04em;
}

.report-notes { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.report-notes__title {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.10em; margin-bottom: 7px;
}
.report-notes__text { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* ════════════════════════════════════════════════════
   TELA 7: AGENDAR REUNIÃO
════════════════════════════════════════════════════ */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .booking-grid { grid-template-columns: 1fr 300px; align-items: start; }
}

.booking-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.booking-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px;
}

/* Segmented control — mais limpo */
.segmented-control {
  display: flex;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}
.seg-option {
  flex: 1;
  border-radius: var(--radius-sm);
  padding: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--easing);
  background: none; border: none;
  text-align: center;
  letter-spacing: -0.01em;
}
.seg-option--active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

/* Mini calendário */
.mini-calendar {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mini-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.mini-cal-month {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em;
}
.mini-cal-nav {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--easing);
}
.mini-cal-nav:hover { background: var(--bg-raised); color: var(--text-primary); }
.mini-cal-nav svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }

.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  padding: 10px;
}
.cal-dow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: center;
  padding: 3px 0;
}
.cal-day {
  font-size: 12px; font-weight: 500;
  text-align: center;
  padding: 6px 3px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--duration-fast) var(--easing), color var(--duration-fast) var(--easing);
}
.cal-day:hover:not(.cal-day--past):not(.cal-day--busy):not(.cal-day--empty) {
  background: var(--bg-card);
  color: var(--text-primary);
}
.cal-day--empty { cursor: default; }
.cal-day--past { color: var(--text-disabled); cursor: default; }
.cal-day--today { color: var(--text-primary); font-weight: 700; }
.cal-day--busy { color: var(--text-disabled); cursor: default; text-decoration: line-through; }
.cal-day--selected {
  background: var(--gradient-sinal);
  color: #FFFFFF; font-weight: 700;
  box-shadow: var(--shadow-card);
}

.cal-legend {
  display: flex; gap: 12px;
  padding: 7px 14px 10px;
  border-top: 1px solid var(--border);
}
.cal-legend__item {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.cal-legend__dot { width: 6px; height: 6px; border-radius: var(--radius-full); flex-shrink: 0; }
.cal-legend__dot--busy { background: var(--text-disabled); }
.cal-legend__dot--free { background: var(--success); }

/* Time slots — grid de pills */
.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.time-slot {
  padding: 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all var(--duration-fast) var(--easing);
  text-align: center;
  letter-spacing: 0.02em;
}
.time-slot:hover:not(.time-slot--busy) { border-color: var(--accent-border); color: var(--text-primary); background: var(--accent-soft); }
.time-slot--busy { color: var(--text-disabled); cursor: default; text-decoration: line-through; }
.time-slot--selected {
  background: var(--gradient-sinal);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: var(--shadow-card);
}

/* Card de confirmação */
.booking-confirm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--success);
  border-radius: var(--radius-2xl);
  padding: 28px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.booking-confirm__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--success-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--success);
}
.booking-confirm__icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.booking-confirm__title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em;
}
.booking-confirm__desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

.booking-confirm__details {
  width: 100%;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
}
.booking-confirm__row {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--text-secondary);
}
.booking-confirm__row svg { width: 13px; height: 13px; stroke: var(--text-muted); stroke-width: 1.5; fill: none; flex-shrink: 0; }

.booking-confirm__actions { width: 100%; display: flex; flex-direction: column; gap: 6px; }

/* Reuniões agendadas */
.booking-upcoming {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 24px;
}

.booking-meetings-list { display: flex; flex-direction: column; gap: 8px; }

.booking-meeting-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast) var(--easing);
}
.booking-meeting-item:hover { border-color: var(--border-strong); }

.booking-meeting__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 38px; padding: 6px;
  background: var(--gradient-sinal);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  flex-shrink: 0;
}
.booking-meeting__day {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; line-height: 1;
}
.booking-meeting__month {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1; margin-top: 2px;
}

.booking-meeting__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.booking-meeting__title { font-size: 12px; font-weight: 600; color: var(--text-primary); line-height: 1.3; letter-spacing: -0.01em; }
.booking-meeting__meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em;
}
.booking-meeting__meet {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; color: var(--accent-text);
  margin-top: 3px; letter-spacing: 0.02em;
}
.booking-meeting__meet svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.booking-meeting__meet:hover { text-decoration: underline; }

/* ─── Toast ─────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex; align-items: flex-start; gap: 10px;
  z-index: 300;
  max-width: 320px;
  transform: translateY(120%); opacity: 0;
  transition: transform var(--duration-slow) var(--easing), opacity var(--duration-slow) var(--easing);
  pointer-events: none;
  box-shadow: var(--shadow-card-hover);
}
.toast.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast__icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--success-soft); color: var(--success);
}
.toast__icon svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.toast__title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 1px; letter-spacing: -0.01em; }
.toast__desc {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted); line-height: 1.5; letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════════
   Q&A (mantido)
════════════════════════════════════════════════════ */
.qa-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 12px; }
.qa-card--pending { border-color: color-mix(in srgb, var(--warning) 25%, transparent); border-left: 2px solid var(--warning); }
.qa-card__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.qa-card__meta { display: flex; align-items: center; gap: 7px; }
.qa-card__from { font-size: 13px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.qa-card__date { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em; }
.qa-card__question { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.qa-card__question svg { width: 16px; height: 16px; stroke: var(--text-muted); stroke-width: 1.5; fill: none; flex-shrink: 0; margin-top: 1px; }
.qa-card__question p { font-size: 13px; color: var(--text-primary); line-height: 1.6; }
.qa-reply-area { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.qa-reply-hint { font-size: 12px; color: var(--text-muted); }
.qa-textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.qa-reply-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qa-reply-or { font-size: 12px; color: var(--text-muted); }
.qa-channel-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.qa-channel-link:hover { opacity: 0.75; }
.qa-channel-link svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.qa-card__answer { padding: 12px 18px; background: var(--success-soft); border-top: 1px solid var(--border); }
.qa-answer__label { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--success); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 7px; }
.qa-answer__label svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }
.qa-card__answer p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ════════════════════════════════════════════════════
   RESPONSIVO — MOBILE
════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .topbar { display: flex; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 48px rgba(0,0,0,0.5); }
  .sidebar-overlay.open { display: block; }

  .main-content {
    grid-column: 1;
    padding: 14px;
    padding-top: calc(var(--topbar-height) + 14px);
  }

  .page-title { font-size: 22px; }
  .dashboard-summary { padding: 14px 18px; gap: 14px; }
  .summary-sep { display: none; }
  .login-card { padding: 24px 20px; }
  .proj-hero { padding: 18px; }
  .proj-hero__percent { font-size: 36px; }
  .report-detail { padding: 18px; }
  .file-item { padding: 10px 14px; }
  .file-item__action { display: none; }
  .qa-card__header { padding: 11px 14px; }
  .qa-card__question { padding: 13px 14px; }
  .qa-reply-area { padding: 13px 14px; }
  .files-section__header { padding: 12px 14px; }
  .toast { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
  .booking-form-card { padding: 18px; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }

  /* Chat mobile: rail vira drawer */
  .chat-shell {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--topbar-height) - 28px);
    position: relative;
  }

  .chat-rail {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--easing);
    box-shadow: 0 0 32px rgba(0,0,0,0.40);
  }
  .chat-rail.open { transform: translateX(0); }

  .chat-main { flex: 1; }
  .chat-back-btn { display: flex; }

  .chat-files-panel { display: none !important; }
  .chat-shell.files-open { grid-template-columns: 1fr; }

  .meetings-card { margin-bottom: 10px; }
  .login-logo .brand-wordmark { height: 80px; }

  /* Project grid: mobile volta a cards verticais menores */
  .project-card { flex-wrap: wrap; }
  .project-card__body { flex-wrap: wrap; }
  .project-card__progress-wrap { min-width: 60px; }
  .project-card__meta { min-width: auto; }
}

/* ════════════════════════════════════════════════════
   LOGIN: BOTÃO GOOGLE + DIVISOR
════════════════════════════════════════════════════ */
.btn--google {
  background: #FFFFFF;
  color: #3C4043;
  border: 1px solid #DADCE0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--easing),
              box-shadow var(--duration-fast) var(--easing);
}
.btn--google:hover {
  background: #F8F9FA;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn--google:active { transform: scale(0.99); }
.btn--google:disabled { opacity: 0.6; cursor: default; }

.google-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: none !important;
  fill: inherit;
}
.btn--google .google-btn__icon path { stroke: none; }

.google-btn__text { flex: 1; text-align: center; }

/* Botão Google: segue as diretrizes do Google (claro #FFF, escuro #131314) */
[data-theme=dark] .btn--google {
  background: #131314;
  color: #E3E3E3;
  border-color: #8E918F;
}
[data-theme=dark] .btn--google:hover {
  background: #1E1F20;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.btn--google:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.login-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.login-divider__text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   CHAT: LISTA DE PROJETOS
════════════════════════════════════════════════════ */
.chat-projects-list {
  display: flex;
  flex-direction: column;
}

.chat-project-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing),
              border-color var(--duration-fast) var(--easing);
}
.chat-project-item:hover { background: var(--bg-raised); }
.chat-project-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.chat-project-item--active {
  background: var(--bg-raised);
  border-left-color: var(--accent);
}
.chat-project-item--pending { }
.chat-project-item--pending.chat-project-item--active {
  border-left-color: var(--warning);
}

.chat-project-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-project-item__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.chat-project-item__preview {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-project-item--pending .chat-project-item__preview { color: var(--warning); }

.chat-project-item__badge {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--warning);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   UTILITÁRIOS — form-group spacing (booking)
════════════════════════════════════════════════════ */
.fg-mb-sm  { margin-bottom: 14px; }
.fg-mb-md  { margin-bottom: 18px; }
.fg-mb-lg  { margin-bottom: 22px; }

/* Confirm-card meet link */
.confirm-meet-link {
  color: var(--accent-text);
  font-weight: 600;
  font-size: 12px;
}

/* Report download button top margin */
.report-dl-btn { margin-top: 14px; }

/* inline-style overrides migrados */

/* ════════════════════════════════════════════════════
   POLIMENTOS — animações (countUp + scaleX)
   Adicionado em 2026-07-28
════════════════════════════════════════════════════ */

/*
 * Barras de progresso animadas via transform:scaleX (GPU-friendly).
 * Os elementos com [data-pct] partem de scaleX(0) e animam até o valor.
 * A transição é aplicada via JS (animateProgressBars) para garantir
 * que o browser registre o estado inicial antes de animar.
 * Não usamos transition: width — apenas transform/opacity são permitidos.
 */
.project-card__progress-fill[data-pct],
.project-progress__fill[data-pct] {
  transform-origin: left center;
  /* transition é injetada pelo JS — não definir aqui para evitar conflito */
}

/* Remove a transition: width das barras que usam scaleX */
.project-card__progress-fill[data-pct] {
  width: 100% !important; /* ocupa o trilho inteiro — scaleX faz o clipping */
}

.project-progress__fill[data-pct] {
  width: 100% !important;
}

/* No modo reduced-motion, o JS seta scaleX final direto (sem transição).
   A regra global de prefers-reduced-motion já zera transition-duration,
   o que serve como fallback adicional. */
.text-accent  { color: var(--accent-text); }
.text-muted-c { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   Andamento vindo da Bancada
   Um cartao dentro da visao geral do projeto. Vocabulario de cliente:
   "entregue", "em andamento", "parado". Nada de nome de agente, nome de
   responsavel ou motivo interno de bloqueio.
══════════════════════════════════════════════════════ */
.bancada-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px;
}
.bancada-card__topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bancada-card__rotulo {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.bancada-card__conta { font-size: 14px; color: var(--text-primary); }
.bancada-card__pct {
  font-size: 28px; font-weight: 700; line-height: 1; color: var(--accent-text); white-space: nowrap;
}
.bancada-card__pct span { font-size: 15px; margin-left: 2px; }

.bancada-barra {
  height: 8px; border-radius: 999px; background: var(--accent-soft);
  overflow: hidden; margin: 14px 0 16px;
}
.bancada-barra > span {
  display: block; height: 100%; border-radius: 999px;
  background: var(--accent-text); transition: width 520ms cubic-bezier(.4,0,.2,1);
}

.bancada-lista { display: flex; flex-direction: column; }
.bancada-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px;
}
.bancada-item:first-child { border-top: none; }
.bancada-item__fase {
  flex: none; min-width: 104px; font-size: 11px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em;
}
.bancada-item__titulo {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-primary);
}
.bancada-item__aviso {
  flex: none; font-size: 11px; font-weight: 600; color: var(--warning);
}
.bancada-vazio { color: var(--text-muted); font-size: 13px; padding: 8px 0 0; }

@media (max-width: 640px) {
  .bancada-item { flex-wrap: wrap; gap: 4px 10px; }
  .bancada-item__fase { min-width: 0; }
  .bancada-item__titulo { flex-basis: 100%; white-space: normal; }
}
