/* ==========================================================================
   Euttopia CRM — Sistema de Design v1.0
   Carvão + Laranja Euttopia (#FF4500). Escuro como padrão, claro opcional.
   Camadas: 1) primitivos  2) semânticos (temas)  3) componentes.
   Sem fontes externas: Montserrat variável servida localmente.
   ========================================================================== */
@font-face { font-family: "Montserrat"; src: url("/brand/Montserrat-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

/* ---------------------------------------------------------------- 1. primitivos */
:root {
  --orange-500: #ff4500;   /* Laranja Euttopia: marcas, bordas, ícones, logo */
  --orange-600: #d63a00;   /* preenchimento com texto branco (contraste 4,7:1) */
  --orange-700: #b83200;
  --orange-300: #ff6a33;   /* texto laranja sobre fundo escuro (6,3:1) */
  --orange-800: #c23400;   /* texto laranja sobre fundo claro */
  --carbon-950: #0e0e10; --carbon-900: #121214; --carbon-850: #151518; --carbon-800: #1c1c20;
  --carbon-750: #222227; --carbon-700: #2a2a31; --carbon-650: #34343c; --carbon-500: #5b5b66;
  --gray-400: #9a9aa3; --gray-300: #b9b9c1; --offwhite: #f5f4f1; --white: #ffffff;
  --green-500: #22c55e; --amber-500: #f59e0b; --red-500: #ef4444; --sky-400: #38bdf8;

  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r-xs: 7px; --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;
}

/* ---------------------------------------------------------------- 2. semânticos: escuro (padrão) */
:root, html[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--carbon-950);
  --surface-1: var(--carbon-850);      /* painéis, colunas, cards de seção */
  --surface-2: var(--carbon-800);      /* cartões, linhas elevadas */
  --surface-3: var(--carbon-750);      /* hover, chips neutros */
  --surface-input: #101013;
  --line: #24242a; --line-2: var(--carbon-700); --line-3: var(--carbon-650);
  --ink: var(--offwhite); --ink-strong: var(--white); --ink-2: var(--gray-300); --muted: var(--gray-400);
  --accent: var(--orange-500); --accent-fill: var(--orange-600); --accent-fill-hover: var(--orange-700); --accent-on: var(--white);
  --accent-text: var(--orange-300);
  --accent-soft: color-mix(in srgb, var(--orange-500) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--orange-500) 45%, transparent);
  --ok: #4ade80; --ok-soft: #22c55e1f; --warn: #fbbf24; --warn-soft: #f59e0b1f; --err: #f87171; --err-soft: #ef444424; --info: #7cb4ff; --info-soft: #4c8dff22;
  --shadow-pop: 0 18px 48px #00000080, 0 2px 8px #00000059;
  --shadow-lift: 0 8px 20px #00000059;
  /* chips de origem e temperatura */
  --ig-bg: #e1306c26; --ig-fg: #f58db4; --fb-bg: #1877f22e; --fb-fg: #8ab8ff; --ad-bg: #14b8a626; --ad-fg: #5eead4; --org-bg: #22c55e1f; --org-fg: #86efac;
  --hot-bg: #ef444429; --hot-fg: #fca5a5; --warm-bg: #f59e0b24; --warm-fg: #fcd34d; --cold-bg: #38bdf824; --cold-fg: #93d8fb;
  --t-quente: var(--red-500); --t-morno: var(--amber-500); --t-frio: var(--sky-400); --t-none: var(--carbon-500);
}

/* ---------------------------------------------------------------- 2. semânticos: claro */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3f0;
  --surface-1: #ffffff; --surface-2: #fbfaf8; --surface-3: #f1efeb; --surface-input: #ffffff;
  --line: #e7e5e0; --line-2: #dcd9d2; --line-3: #c9c5bd;
  --ink: #18181b; --ink-strong: #0e0e10; --ink-2: #3d3d44; --muted: #5f5f69;
  --accent-text: var(--orange-800);
  --accent-soft: color-mix(in srgb, var(--orange-500) 10%, transparent);
  --accent-line: color-mix(in srgb, var(--orange-500) 40%, transparent);
  --ok: #157a3c; --ok-soft: #e4f5ea; --warn: #8a5300; --warn-soft: #fff1d6; --err: #b42332; --err-soft: #fde8e8; --info: #1d5fb8; --info-soft: #e6effd;
  --shadow-pop: 0 18px 48px #1a120a26, 0 2px 8px #1a120a14;
  --shadow-lift: 0 8px 20px #1a120a17;
  --ig-bg: #fbe7f0; --ig-fg: #a3215c; --fb-bg: #e6effd; --fb-fg: #1d5fb8; --ad-bg: #e1f5f1; --ad-fg: #0f6b5f; --org-bg: #e4f5ea; --org-fg: #157a3c;
  --hot-bg: #fde8e8; --hot-fg: #a8222f; --warm-bg: #fff1d6; --warm-fg: #8a5300; --cold-bg: #e2f3fc; --cold-fg: #0b5f86;
  --t-none: #a3a3ad;
}

/* ---------------------------------------------------------------- 3. base e superfícies do navegador */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; height: 100dvh; overflow: hidden; background: var(--bg); color: var(--ink);
  font: 500 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.public { height: auto; min-height: 100dvh; overflow: auto; }
h1, h2, h3, h4 { color: var(--ink-strong); text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); text-underline-offset: 3px; }
::selection { background: var(--orange-500); color: #fff; }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.count, .card-value, .kpi strong, .tm strong, .fs-item strong, .dl-value, .dl-grid dd, .fn-count, .fn-value, .sl-count, table { font-variant-numeric: tabular-nums; }

/* utilitários */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 13.5px; } .center { text-align: center; }
.error { color: var(--err); margin: 6px 0; } .error:empty { display: none; }
.warn { color: var(--warn); }
.row { display: flex; gap: 8px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.spacer { flex: 1; }
.hint { white-space: nowrap; }

/* ---------------------------------------------------------------- 3. primitivos de interface */
input, select, textarea {
  background: var(--surface-input); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 12px; min-height: 40px; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9aa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
input[type=checkbox], input[type=radio] { min-height: 0; accent-color: var(--accent); width: 16px; height: 16px; }
input[type=file] { padding: 7px; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.75); cursor: pointer; }
html[data-theme="light"] input::-webkit-calendar-picker-indicator { filter: none; }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
label.check, label.inline { flex-direction: row; align-items: center; gap: 8px; }
fieldset { border: 1px solid var(--line-2); border-radius: var(--r-md); }

button.primary, button.ghost, .chat-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--r-sm);
  font-weight: 650; font-size: 15px; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease-out);
}
button.primary, button.primary.gradient, .chat-btn { background: var(--accent-fill); color: var(--accent-on); border: 1px solid transparent; }
button.primary:hover:not(:disabled), .chat-btn:hover { background: var(--accent-fill-hover); }
button.primary:active:not(:disabled), button.ghost:active:not(:disabled) { transform: translateY(1px); }
button.ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); }
button.ghost:hover:not(:disabled) { border-color: var(--accent-line); background: var(--surface-3); }
button.ghost.danger, .icon-btn.danger { color: var(--err); }
button.danger { background: #8f1d1d; color: #fff; border: 1px solid var(--red-500); font-weight: 650; border-radius: var(--r-sm); padding: 8px 14px; }
button.danger:hover { background: #a32020; }
button.ghost.danger { background: var(--surface-2); color: var(--err); border: 1px solid var(--line-2); font-weight: 650; }
button.ghost.danger:hover:not(:disabled) { background: var(--err-soft); border-color: color-mix(in srgb, var(--red-500) 45%, transparent); }
.dash-card > button, .dash-card > form > footer, .settings-card > footer { align-self: flex-start; }
.settings-card > footer { align-self: stretch; }
button:disabled { opacity: .5; cursor: not-allowed; }
.with-ic .ic { width: 18px; height: 18px; }
.icon-btn {
  display: inline-grid; place-items: center; padding: 0; line-height: 1; flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font-size: 16px; transition: background-color .15s, border-color .15s, color .15s;
}
.icon-btn:hover { color: var(--ink-strong); border-color: var(--line-3); background: var(--surface-3); }
.icon-btn .ic { width: 19px; height: 19px; }
.icon-btn.bare { width: 30px; height: 30px; border-color: transparent; background: none; color: var(--muted); }
.icon-btn.bare:hover { color: var(--ink-strong); background: var(--surface-3); }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-xs); background: var(--surface-3);
  border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.chip.closed { background: var(--surface-3); color: var(--muted); }
.chip.temp-quente { background: var(--hot-bg); color: var(--hot-fg); border-color: transparent; }
.chip.temp-morno { background: var(--warm-bg); color: var(--warm-fg); border-color: transparent; }
.chip.temp-frio { background: var(--cold-bg); color: var(--cold-fg); border-color: transparent; }

.switch-row { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.switch { width: 42px; height: 24px; border-radius: 24px; border: 0; background: var(--line-3); padding: 2px; position: relative; flex-shrink: 0; transition: background-color .2s; }
.switch .knob { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0005; transition: transform .2s var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent-fill); } .switch[aria-checked="true"] .knob { transform: translateX(18px); }

.glass, .glass-soft { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2);
  font-size: 13px; font-weight: 700; flex-shrink: 0; letter-spacing: .02em; border: 1px solid var(--line-2);
}
footer { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* abas compartilhadas */
.chat-tabs, .subtabs, .mcp-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chat-tabs button, .subtabs button, .mcp-tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 0 10px; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; margin-bottom: -1px;
}
.chat-tabs button:hover, .subtabs button:hover, .mcp-tabs button:hover { color: var(--ink); }
.chat-tabs button[aria-selected="true"], .subtabs button[aria-selected="true"], .mcp-tabs button[aria-selected="true"] { color: var(--ink-strong); border-color: var(--accent); }
.subtabs { margin-bottom: 18px; }

/* ---------------------------------------------------------------- login */
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.login-card {
  width: min(400px, 100%); border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
}
.login-card h1 { font-size: 24px; margin: 6px 0 0; letter-spacing: -.02em; }
.login-card .brand { justify-content: center; background: none; height: auto; padding: 0 0 6px; }
.login-card .brand-logo { height: 52px; width: auto; }
.login-card button.primary { margin-top: 6px; min-height: 46px; }

/* ---------------------------------------------------------------- estrutura */
.workspace { display: flex; height: 100dvh; background: var(--bg); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 22px 28px 0; overflow: hidden; }

/* menu lateral: sempre escuro, também no modo claro */
.sidebar {
  --surface-1: #111113; --surface-2: #19191c; --surface-3: #232327; --line: #222226; --line-2: #2c2c32; --line-3: #3a3a42;
  --ink: #f5f4f1; --ink-strong: #fff; --ink-2: #c4c4cb; --muted: #8f8f99; --accent-text: var(--orange-300);
  color-scheme: dark; width: 268px; min-width: 268px; display: flex; flex-direction: column; border-right: 1px solid var(--line);
  /* Degradê do menu: brilho laranja discreto no topo que se dissolve no carvão. */
  background:
    radial-gradient(120% 38% at 0% 0%, color-mix(in srgb, var(--orange-500) 22%, transparent), transparent 70%),
    linear-gradient(180deg, #1d1411 0%, #141215 34%, #0f0f12 72%, #0b0b0d 100%);
  color: var(--ink); transition: width .25s var(--ease-out), min-width .25s var(--ease-out);
}
body.menu-collapsed .sidebar { width: 0; min-width: 0; border-width: 0; overflow: hidden; }
.side-top { display: flex; align-items: center; height: 84px; flex-shrink: 0; border-bottom: 1px solid color-mix(in srgb, var(--orange-500) 18%, var(--line)); }
.brand { display: flex; align-items: center; }
.side-top .brand, .mcp-side .brand { flex: 1; padding: 0 22px; min-width: 0; }
.brand-logo { height: 40px; width: auto; display: block; max-width: 100%; }
.brand-icon { display: none; width: 36px; height: 36px; border-radius: 50%; }
.collapse-btn { align-self: center; margin: 0 12px; width: 36px; height: 36px; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 8px 14px 12px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-account { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.nav-group { padding: 20px 12px 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.nav button, .nav a {
  width: 100%; display: flex; gap: 12px; align-items: center; min-height: 42px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: none; text-align: left; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550;
  transition: background-color .15s, color .15s;
}
.nav button:hover, .nav a:hover { background: var(--surface-3); color: var(--ink-strong); }
.nav button.active, .nav a.active { background: var(--accent-fill); color: #fff; font-weight: 650; }
.nav button.active .ni, .nav a.active .ni { color: #fff; }
.ni { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); display: inline-grid; place-items: center; text-align: center; font-size: 15px; transition: color .15s; }
.nav button:hover .ni, .nav a:hover .ni { color: var(--ink-strong); }
.nl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); flex-shrink: 0; }
.side-user .avatar { width: 40px; height: 40px; background: var(--orange-600); color: #fff; border: 0; font-size: 14px; }
.side-user-info { min-width: 0; }
.side-user-info strong, .side-user-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-info strong { font-size: 14.5px; color: var(--ink-strong); }
.side-user-info small { font-size: 12.5px; color: var(--muted); }
.ws-card { display: none; }

/* faixas de aviso */
.master-banner, .preview-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 14px; margin-bottom: 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
.master-banner { background: var(--orange-600); color: #fff; }
.master-banner a { color: #fff; font-weight: 700; }
.preview-banner { background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }

/* cabeçalho da seção */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; margin-bottom: 18px; flex-wrap: wrap; }
.title-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.title-text { min-width: 0; }
.page-head h1 { font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.025em; font-weight: 750; }
.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.page-sub:empty { display: none; }
.crumb { display: none; }
.hamburger .ic { width: 20px; height: 20px; }
.head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.head-tools select { min-height: 42px; min-width: 150px; }
.head-tools .icon-btn { width: 42px; height: 42px; }
.head-tools button.primary, .head-tools button.ghost { min-height: 42px; }
.search-field { position: relative; display: block; color: var(--muted); }
.search-field .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; }
.search-field input { width: 100%; padding-left: 40px; }
#board-search-wrap { width: 280px; }
#board-search { min-height: 42px; }

.view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; padding-bottom: 24px; }
.view > * { flex-shrink: 0; } /* conteúdo longo rola; nada é espremido (abas e filtros nunca somem) */
#view-pipeline { overflow: hidden; padding-bottom: 18px; }

/* ---------------------------------------------------------------- pipeline: barra de etapas */
/* Duas áreas que nunca se sobrepõem: atalhos das etapas (rolam) | contagem e legenda (fixas). */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 14px; min-width: 0; }
.toolbar-meta { display: flex; align-items: center; gap: 12px; padding-left: 14px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.stage-nav { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 28px 2px 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.stage-nav::-webkit-scrollbar { display: none; }
.stage-link {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-1);
  color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: color .15s, border-color .15s, background-color .15s;
}
.stage-link:hover { color: var(--ink-strong); border-color: var(--line-3); }
.stage-link.in-view { color: var(--ink); border-color: color-mix(in srgb, var(--stage) 55%, var(--line-2)); background: color-mix(in srgb, var(--stage) 10%, var(--surface-1)); }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--stage); flex-shrink: 0; }
.sl-count { color: var(--ink-2); font-weight: 700; }
#filtered-count { white-space: nowrap; }
.state-line { color: var(--warn); font-size: 14px; margin-bottom: 8px; } .state-line:empty { display: none; }

/* legenda */
.legend { position: relative; font-size: 13.5px; flex-shrink: 0; }
.legend summary { cursor: pointer; list-style: none; height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-1); color: var(--ink-2); font-weight: 600; }
.legend summary:hover { color: var(--ink-strong); border-color: var(--line-3); }
.legend summary::-webkit-details-marker { display: none; }
.legend-grid {
  position: absolute; right: 0; top: 42px; z-index: 40; width: min(540px, 90vw); display: flex; flex-wrap: wrap; gap: 8px; padding: 14px;
  background: var(--surface-1); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-pop);
}
.legend-grid > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.lg.t-quente { background: var(--t-quente); } .lg.t-morno { background: var(--t-morno); } .lg.t-frio { background: var(--t-frio); } .lg.t-none { background: var(--t-none); }

/* ---------------------------------------------------------------- pipeline: colunas conectadas */
.kanban { flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 304px; gap: 16px; overflow-x: auto; overflow-y: hidden; padding: 0 2px 10px; scroll-snap-type: x proximity; }
.column { display: flex; flex-direction: column; min-height: 0; scroll-snap-align: start; position: relative; }
.col-flow { position: relative; height: 22px; margin-bottom: 10px; flex-shrink: 0; }
.cf-line { position: absolute; left: 6px; right: -16px; top: 50%; height: 2px; transform: translateY(-50%); border-radius: 2px;
  background: linear-gradient(90deg, var(--stage), var(--next, var(--stage))); opacity: .7; }
.column:last-child .cf-line { right: 26px; }
.column:not(:first-child) .cf-line { left: 0; }
.column:first-child .col-flow::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); background: var(--stage); box-shadow: 0 0 0 3px var(--bg); }
.cf-node { position: absolute; right: -19px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent); z-index: 1; }
.cf-node .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.cf-node.end { right: 0; border-color: var(--stage); color: var(--stage); }
.col-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; flex-shrink: 0;
  background: color-mix(in srgb, var(--stage) 13%, var(--surface-1)); border: 1px solid color-mix(in srgb, var(--stage) 28%, var(--line)); border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.col-head:focus-visible { outline-offset: -2px; }
.col-icon { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: color-mix(in srgb, var(--stage) 24%, transparent); color: color-mix(in srgb, var(--stage) 70%, var(--ink-strong)); }
.col-icon .ic { width: 21px; height: 21px; }
.col-titles { min-width: 0; }
.col-head h3 { font-size: 16px; margin: 0; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.col-sub { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-head .count { font-size: 22px; font-weight: 750; color: var(--ink-strong); letter-spacing: -.02em; }
.col-body {
  flex: 1; min-height: 160px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-1); border: 1px solid var(--line); border-top: 1px solid color-mix(in srgb, var(--stage) 28%, var(--line)); border-radius: 0 0 var(--r-lg) var(--r-lg);
  transition: background-color .2s, box-shadow .2s;
}
.col-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13.5px; color: var(--muted); padding: 28px 12px;
  border: 1.5px dashed var(--line-3); border-radius: var(--r-md);
}
.col-empty .ic { width: 22px; height: 22px; color: var(--line-3); }
.col-more { margin-top: 8px; width: 100%; font-size: 14px; }
.column.drop-target .col-body { background: color-mix(in srgb, var(--accent) 7%, var(--surface-1)); box-shadow: inset 0 0 0 2px var(--accent-line); }
.column.is-focus .col-body, .column.is-focus .col-head { animation: col-focus 1.2s var(--ease-out); }
@keyframes col-focus { 0% { box-shadow: inset 0 0 0 2px var(--accent); } 100% { box-shadow: inset 0 0 0 2px transparent; } }

/* ---------------------------------------------------------------- pipeline: cartões */
.card {
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 13px 14px 12px; flex-shrink: 0;
  cursor: grab; user-select: none; touch-action: none; position: relative;
  transition: border-color .15s, transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.card:hover { border-color: var(--accent-line); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.card:focus-visible { outline-offset: 1px; }
.card.is-unread { border-color: color-mix(in srgb, var(--accent) 60%, var(--line-2)); }
.card.is-late { border-color: color-mix(in srgb, var(--red-500) 50%, var(--line-2)); }
.card-top { display: none; }
.card-who { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.card-who:has(.unread-dot):not(:has(.card-value)) { grid-template-columns: auto minmax(0, 1fr) auto; }
.card-who:has(.card-value):has(.unread-dot) { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.who-text { min-width: 0; }
.card-who strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 15px; font-weight: 650; color: var(--ink-strong); line-height: 1.3; }
.card-who small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-value { font-size: 14.5px; font-weight: 750; color: var(--ink-strong); white-space: nowrap; align-self: start; padding-top: 1px; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); align-self: start; margin-top: 6px; }
.card-title { font-size: 13.5px; color: var(--ink-2); margin: 9px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.src, .tchip, .kchip, .schip, .vchip, .newmsg, .age {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-xs); font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.src .ic, .tchip .ic, .kchip .ic, .age .ic { width: 13px; height: 13px; stroke-width: 2; }
.src-ig { background: var(--ig-bg); color: var(--ig-fg); } .src-fb { background: var(--fb-bg); color: var(--fb-fg); }
.src-ad { background: var(--ad-bg); color: var(--ad-fg); } .src-org { background: var(--org-bg); color: var(--org-fg); }
.tchip.t-quente, .t-quente.tchip { background: var(--hot-bg); color: var(--hot-fg); }
.tchip.t-morno { background: var(--warm-bg); color: var(--warm-fg); }
.tchip.t-frio { background: var(--cold-bg); color: var(--cold-fg); }
.kchip.k-late { background: var(--err-soft); color: var(--err); } .kchip.k-open { background: var(--info-soft); color: var(--info); }
.schip { background: var(--surface-3); color: var(--ink-2); }
.schip.st-human { background: var(--ok-soft); color: var(--ok); } .schip.st-wait { background: var(--warn-soft); color: var(--warn); }
.vchip { background: var(--ok-soft); color: var(--ok); }
.newmsg { background: var(--accent-soft); color: var(--accent-text); }
.card-src { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp { color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.card-foot .resp { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-weight: 600; }
.card-foot .resp .ic { width: 15px; height: 15px; color: var(--muted); }
.card-foot .resp.none { color: var(--warn); } .card-foot .resp.none .ic { color: var(--warn); }
.foot-meta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.msgs { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; } .msgs .ic { width: 15px; height: 15px; }
.age { height: 22px; padding: 0 7px; font-size: 12px; }
.age-new { background: var(--ok-soft); color: var(--ok); } .age-mid { background: var(--warn-soft); color: var(--warn); } .age-old { background: var(--err-soft); color: var(--err); }

/* arraste */
.card.drag-src { display: none; }
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .97; box-shadow: var(--shadow-pop); transform: rotate(1.5deg); margin: 0; cursor: grabbing; border-color: var(--accent); }
.drop-placeholder { border: 2px dashed var(--accent); border-radius: var(--r-md); background: var(--accent-soft); flex-shrink: 0; }
body.is-dragging { cursor: grabbing; }
.board-more { text-align: center; padding: 4px 0 8px; } .board-more:has(button[hidden]) { display: none; }

/* ---------------------------------------------------------------- pipeline: resumo do funil */
.funnel-strip {
  display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); align-items: center; gap: 8px 20px; margin-top: 6px; padding: 12px 20px; flex-shrink: 0;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.funnel-title { font-size: 15px; margin: 0; padding-right: 8px; white-space: nowrap; }
.fs-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fs-item > .ic { width: 38px; height: 38px; padding: 9px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); }
.fs-item div { min-width: 0; }
.fs-item strong { display: block; font-size: 20px; font-weight: 750; color: var(--ink-strong); letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.fs-item span { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- painel do lead */
.chat-panel {
  width: 480px; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface-1); border-left: 1px solid var(--line);
  animation: panel-in .35s var(--ease-out);
}
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; flex-wrap: wrap; }
.chat-head .avatar { width: 46px; height: 46px; font-size: 15px; background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.chat-who { flex: 1; min-width: 0; }
.chat-who strong { display: block; font-size: 18px; overflow-wrap: anywhere; color: var(--ink-strong); }
.chat-who small { color: var(--muted); font-size: 13.5px; }
.lead-name { display: flex; gap: 4px; align-items: center; }
.lead-name .icon-btn .ic { width: 16px; height: 16px; }
.stage-pick { margin-top: 8px; height: 34px; min-height: 34px; padding: 4px 32px 4px 10px; font-size: 14px; border-radius: 8px; max-width: 240px; background-position: right 8px center; }
.chat-btn { min-height: 38px; padding: 6px 14px; font-size: 14.5px; }
.chat-btn .ic { width: 17px; height: 17px; }
.close-chat { width: 38px; height: 38px; }
.chat-tabs { padding: 0 20px; gap: 20px; }

/* trilha de etapas do lead */
.stage-track-wrap { padding: 0 20px 14px; }
.stage-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.st-seg { flex: 1; min-width: 0; }
.st-seg button { display: block; width: 100%; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.st-seg button::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 8px; border-radius: 4px; background: var(--line-2); transition: background-color .2s, transform .2s var(--ease-out); }
.st-seg.done button::before { background: color-mix(in srgb, var(--stage) 60%, var(--surface-1)); }
.st-seg.current button::before { background: var(--stage); top: 5px; height: 12px; border-radius: 6px; box-shadow: 0 0 0 2px var(--surface-1), 0 0 0 4px color-mix(in srgb, var(--stage) 50%, transparent); }
.st-seg.todo button:hover::before, .st-seg.done button:hover::before { background: color-mix(in srgb, var(--stage) 80%, var(--surface-1)); transform: scaleY(1.25); }
.st-seg button:disabled { opacity: 1; cursor: default; }
.st-caption { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.st-caption strong { color: var(--ink-strong); }

.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.thread { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.load-older { align-self: center; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.msg.in { align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: color-mix(in srgb, var(--accent) 16%, var(--surface-1)); border-color: color-mix(in srgb, var(--accent) 32%, transparent); border-bottom-right-radius: 5px; }
.msg.internal { align-self: center; background: var(--warn-soft); border-color: color-mix(in srgb, var(--amber-500) 35%, transparent); }
.msg small, .msg-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.int-label { color: var(--warn) !important; font-weight: 650; margin: 0 0 4px !important; font-size: 12.5px; }
.msg-err { color: var(--err) !important; } .ref { color: var(--accent-text) !important; }
.hist-item { padding: 10px 13px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.hist-item.note { background: var(--warn-soft); }
.hist-item p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; } .hist-item small { font-size: 12.5px; color: var(--muted); }
.composer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.composer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.composer textarea { min-height: 54px; max-height: 150px; height: 54px; font-size: 15px; }
.composer .send { min-width: 44px; min-height: 44px; }
.composer-note { margin: 0; font-size: 13px; color: var(--muted); } .composer-note.privacy { color: var(--warn); }
.composer-tools { gap: 8px; }
.modes { display: flex; gap: 6px; }
.modes button { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.modes button.on { background: var(--accent-fill); border-color: transparent; color: #fff; }
.fu-banner { padding: 9px 20px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 600; }
.data-tab { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.data-tab h3, .block h3 { font-size: 16px; margin: 0; }
.block { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lead-block .tchip { cursor: pointer; height: 32px; padding: 0 12px; border: 1px solid transparent; }
.lead-block .tchip[aria-pressed="true"] { border-color: currentColor; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { font-size: 13.5px; min-height: 34px; padding: 5px 11px; }
.fields-form { display: flex; flex-direction: column; gap: 10px; }
.field.archived input, .field.archived select, .field.archived textarea { opacity: .7; }
.opp-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.opp-item { padding: 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.commercial { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px; margin: 0; } .commercial legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.mini-events { margin: 6px 0 0; padding-left: 16px; font-size: 13px; }
.new-opp input { flex: 1; min-width: 140px; }
.task-form { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 8px; }
.task-form textarea, .task-form .row { grid-column: 1 / -1; }
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.task-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-1); border: 1px solid var(--line); }
.task-item input[type=checkbox] { margin-top: 3px; }
.task-item.done { opacity: .55; } .task-item.done strong { text-decoration: line-through; }
.task-item .tinfo { flex: 1; min-width: 0; } .task-item strong { font-size: 15px; } .task-item small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.task-item.overdue small.due { color: var(--err); }
.task-item .icon-btn { width: 30px; height: 30px; font-size: 13px; }
.attach-list a { color: var(--accent-text); }

/* ---------------------------------------------------------------- conversas e contatos */
.inbox-view { overflow: hidden; }
.inbox { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); overflow: hidden; }
.inbox-list { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-right: 1px solid var(--line); min-height: 0; }
.inbox-h { font-size: 18px; margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.inbox-h small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13px; }
.people { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.person { width: 100%; display: flex; gap: 11px; align-items: center; padding: 9px 10px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; text-align: left; transition: background-color .15s; }
.person:hover { background: var(--surface-2); }
.person.selected { background: var(--accent-soft); border-color: var(--accent-line); }
.pinfo { flex: 1; min-width: 0; } .pinfo strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); } .pinfo small { color: var(--muted); font-size: 13px; }
.person .chip { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.inbox-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.inbox-chat .chat-head { border-bottom: 0; }
.empty-chat { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-chat .ic { width: 40px; height: 40px; color: var(--accent); stroke-width: 1.4; }
.empty-chat p { font-size: 16px; margin: 0; }

/* ---------------------------------------------------------------- dashboard de vendas */
.dash-view { gap: 16px; }
.dash-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dash-bar label.inline { font-size: 14px; }
.dash-bar select { min-width: 200px; }
.dash-bar .icon-btn { margin-left: auto; }
.dash-lead {
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: 0; flex-shrink: 0;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
}
.dl-main { padding: 26px 28px; background: color-mix(in srgb, var(--accent) 9%, var(--surface-1)); border-right: 1px solid var(--accent-line); }
.dl-main h2 { margin: 0; font-size: 16px; font-weight: 650; color: var(--ink-2); }
.dl-value { margin: 10px 0 6px; font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--ink-strong); }
.dl-note { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.dl-grid > div { padding: 26px 24px; border-left: 1px solid var(--line); min-width: 0; }
.dl-grid > div:first-child { border-left: 0; }
.dl-grid dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.dl-grid dd { margin: 8px 0 4px; font-size: 26px; font-weight: 750; color: var(--ink-strong); letter-spacing: -.02em; white-space: nowrap; }
.dl-grid small { font-size: 13px; color: var(--muted); }
.dl-grid small.is-late { color: var(--err); font-weight: 600; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.dash-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dc-head h2 { margin: 0; font-size: 17px; }
.fn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.fn-row { display: grid; grid-template-columns: minmax(120px, 230px) minmax(0, 1fr) 52px 96px; align-items: center; gap: 14px; padding: 8px 10px; border-radius: var(--r-sm); outline-offset: -2px; }
.fn-row:hover, .fn-row:focus-visible { background: var(--surface-2); }
.fn-name { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; min-width: 0; }
.fn-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-track { height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.fn-fill { display: block; height: 100%; border-radius: 6px; background: var(--stage); transition: width .6s var(--ease-out); }
.fn-count { text-align: right; font-weight: 750; font-size: 15px; color: var(--ink-strong); }
.fn-value { text-align: right; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.dash-table summary { cursor: pointer; font-size: 13.5px; color: var(--accent-text); font-weight: 600; width: max-content; }
.dash-table table { margin-top: 10px; }
.col-chart { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; height: 220px; }
.cc-grid { display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; color: var(--muted); text-align: right; padding-bottom: 22px; line-height: 1; }
.cc-bars {
  display: flex; align-items: stretch; gap: 3px; padding-bottom: 0; position: relative;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% calc((100% - 22px) / 2) no-repeat,
    linear-gradient(var(--line) 1px, transparent 1px) 0 calc((100% - 22px) / 2) / 100% 1px no-repeat;
}
.cc-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; position: relative; outline-offset: 2px; border-radius: 4px; }
.cc-col::before { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: var(--line-3); }
.cc-bar { display: block; width: 100%; max-width: 16px; border-radius: 4px 4px 0 0; background: var(--accent); position: relative; z-index: 1; transition: height .6s var(--ease-out), filter .15s; }
.cc-col small { font-size: 11px; color: var(--muted); height: 16px; white-space: nowrap; }
.cc-col small.cc-hide { visibility: hidden; }
.cc-col:hover .cc-bar, .cc-col:focus-visible .cc-bar { filter: brightness(1.2); }
.cc-col[data-tip]:hover::after, .cc-col[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% - 8px); left: 50%; transform: translateX(-50%); z-index: 5; white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-3); color: var(--ink-strong); font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-lift); pointer-events: none;
}
.cc-col:first-child[data-tip]:hover::after, .cc-col:first-child[data-tip]:focus-visible::after { left: 0; transform: none; }
.cc-col:last-child[data-tip]:hover::after, .cc-col:last-child[data-tip]:focus-visible::after { left: auto; right: 0; transform: none; }
.share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.share-list li { display: grid; grid-template-columns: minmax(90px, 120px) minmax(0, 1fr) 54px 40px; align-items: center; gap: 12px; }
.sh-label { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-track { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.sh-fill { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.share-list strong { text-align: right; font-size: 14.5px; color: var(--ink-strong); }
.share-list small { text-align: right; color: var(--muted); font-size: 13px; }
.seg-bar { display: flex; gap: 2px; height: 16px; border-radius: 8px; overflow: hidden; }
.seg { display: block; min-width: 4px; }
.seg.t-quente { background: var(--t-quente); } .seg.t-morno { background: var(--t-morno); } .seg.t-frio { background: var(--t-frio); } .seg.t-sem { background: var(--t-none); }
.seg-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.seg-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 50px; align-items: center; gap: 10px; font-size: 14.5px; }
.seg-legend strong { color: var(--ink-strong); } .seg-legend small { color: var(--muted); text-align: right; font-size: 13px; }
.dash-foot { margin: 0; }

/* filtros e extras do dashboard */
.dash-bar select { min-width: 0; }
.seg-pick { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--surface-1); border: 1px solid var(--line-2); flex-wrap: wrap; }
.seg-pick label { position: relative; flex-direction: row; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg-pick span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 7px; cursor: pointer; transition: background-color .15s, color .15s; white-space: nowrap; }
.seg-pick label:hover span { color: var(--ink-strong); }
.seg-pick input:checked + span { background: var(--accent-fill); color: #fff; }
.seg-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.elena-filter { font-size: 14px; font-weight: 600; color: var(--ink-2); height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-1); cursor: pointer; }
.elena-filter:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.elena-filter .ic { width: 16px; height: 16px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); font-weight: 650; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--surface-3); }
.dl-delta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; margin-top: 6px; }
.dl-delta .ic { width: 15px; height: 15px; }
.dl-delta.up { color: var(--ok); } .dl-delta.down { color: var(--err); } .dl-delta.down .ic { transform: scaleY(-1); } .dl-delta.flat { color: var(--muted); font-weight: 500; }
.dash-grid .span-2 { grid-column: 1 / -1; }
.col-chart.money { grid-template-columns: 76px minmax(0, 1fr); }
.cc-bar { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.col-chart.leads .cc-bar { background: color-mix(in srgb, var(--info) 55%, var(--surface-3)); }
.cc-inner { display: block; width: 100%; background: var(--accent); }
.mini-legend { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.mini-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg-new { background: color-mix(in srgb, var(--info) 55%, var(--surface-3)); } .lg-elena { background: var(--accent); }
.rank li { grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) auto 32px; }
.two-lists { display: grid; grid-template-columns: 1fr; gap: 18px; }
.two-lists h3 { font-size: 14px; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.recent-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); border: 0; background: none; text-align: left; color: var(--ink); }
.recent-row:hover { background: var(--surface-2); }
.rr-text { flex: 1; min-width: 0; } .rr-text strong, .rr-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-text small { color: var(--muted); font-size: 13px; }
.rr-value { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-strong); }

/* registro de venda */
.sale-form .sale-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
.sale-pay { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sale-pay legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.sale-form label small { font-weight: 500; }
.sale-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md);
  background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--green-500) 35%, transparent); }
.sale-summary > .ic { width: 22px; height: 22px; color: var(--ok); }
.sale-summary strong { display: block; color: var(--ink-strong); } .sale-summary small { color: var(--ink-2); font-size: 13px; }
.sale-summary.missing { background: var(--warn-soft); border-color: color-mix(in srgb, var(--amber-500) 40%, transparent); }
.sale-summary.missing > .ic { color: var(--warn); }

/* ---------------------------------------------------------------- tabelas, resumos e estados vazios (compartilhados) */
.table-wrap { overflow-x: auto; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-1); position: sticky; top: 0; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tr.click { cursor: pointer; } .data-table tr.click:hover td, .data-table tr.click:focus-visible td { background: var(--surface-2); }
.data-table tr.click:focus-visible { outline: none; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table td.warn, .late { color: var(--warn); } .data-table td.good, .good { color: var(--ok); font-weight: 650; }
.data-table tr.inactive td { opacity: .55; }
.data-table input, .data-table select { min-height: 36px; padding: 6px 10px; }
.goals-table td { min-width: 150px; } .goals-table td small { display: block; margin-top: 4px; font-size: 12.5px; }
.sub-line { display: block; font-size: 12.5px; margin-top: 2px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who strong { display: block; color: var(--ink-strong); white-space: nowrap; } .who small { color: var(--muted); font-size: 12.5px; } .who small.on { color: var(--ok); }
.team-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.ts-item { display: flex; flex-direction: column; padding: 12px 18px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); min-width: 140px; }
.ts-item strong { font-size: 24px; font-weight: 750; color: var(--ink-strong); font-variant-numeric: tabular-nums; line-height: 1.15; }
.ts-item span { font-size: 13px; color: var(--muted); }
.ts-item.warn { border-color: color-mix(in srgb, var(--amber-500) 45%, transparent); } .ts-item.warn strong { color: var(--warn); }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 20px; color: var(--ink-2);
  background: var(--surface-1); border: 1.5px dashed var(--line-3); border-radius: var(--r-lg); }
.empty-state > .ic { width: 36px; height: 36px; color: var(--accent); stroke-width: 1.5; }
.empty-state p { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink-strong); }
.empty-state button { margin-top: 8px; }
fieldset.plain { border: 0; padding: 0; margin: 0; } fieldset.plain legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-pick label { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); font-weight: 600; cursor: pointer; }
.chips-pick label:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.queue-form h3 { font-size: 17px; }
.owner-pick span { height: 28px; padding: 0 10px; font-size: 13px; }

/* metas */
.goal-card { margin-bottom: 0; }
.gp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gp-row { display: flex; flex-direction: column; gap: 8px; }
.gp-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); }
.gp-head strong { color: var(--ink-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-track { display: block; height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.gp-track.small { display: inline-block; width: 80px; height: 8px; vertical-align: middle; }
.gp-fill { display: block; height: 100%; border-radius: 5px; background: var(--accent); transition: width .6s var(--ease-out); }
.gp-fill.hit { background: var(--green-500); }
.gp-row small { color: var(--muted); font-size: 12.5px; }

/* painel do lead: abordagens, propostas e visitas */
.act-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act-form input:not([type=checkbox]) { grid-column: 1 / -1; }
.act-form button { grid-column: 1 / -1; justify-self: start; }
.act-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.act-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-1); border: 1px solid var(--line); font-size: 14px; }
.act-list li small { flex-basis: 100%; }
.act-list li select { margin-left: auto; min-height: 32px; padding: 4px 30px 4px 10px; font-size: 13px; }
.act-ch, .vst { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-xs); font-size: 12px; font-weight: 650; background: var(--surface-3); color: var(--ink-2); }
.ch-ligacao { background: var(--info-soft); color: var(--info); } .ch-whatsapp { background: var(--ok-soft); color: var(--ok); } .ch-visita { background: var(--accent-soft); color: var(--accent-text); }
.vs-realizada.vst { background: var(--ok-soft); color: var(--ok); } .vs-faltou.vst { background: var(--err-soft); color: var(--err); } .vs-agendada.vst { background: var(--info-soft); color: var(--info); }
.block .row.between .ghost { min-height: 34px; padding: 5px 11px; font-size: 13.5px; }

/* agenda de visitas */
.visit-days { display: flex; flex-direction: column; gap: 18px; }
.visit-day h2 { font-size: 15px; font-weight: 650; color: var(--ink-2); margin: 0 0 8px; text-transform: capitalize; }
.visit-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.visit { display: grid; grid-template-columns: 70px minmax(0, 1fr) 190px; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); }
.visit.vs-realizada { border-color: color-mix(in srgb, var(--green-500) 35%, var(--line)); } .visit.vs-faltou, .visit.vs-cancelada { opacity: .7; }
.v-time { font-size: 18px; font-weight: 750; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.v-who { border: 0; background: none; text-align: left; padding: 0; color: var(--ink); min-width: 0; }
.v-who strong { display: block; color: var(--ink-strong); } .v-who small { color: var(--muted); font-size: 13px; }
.v-who:hover strong { color: var(--accent-text); }

/* base de leads */
.leads-filters input[type=search] { min-width: 220px; }
.leads-filters select { max-width: 230px; }

/* playbook */
.pb-group { margin-top: 22px; }
.pb-group > h2 { font-size: 17px; margin: 0 0 10px; }
.pb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; counter-reset: pb; }
.pb-etapa { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pb-item { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.pb-etapa .pb-item { counter-increment: pb; position: relative; padding-top: 40px; }
.pb-etapa .pb-item::before { content: counter(pb); position: absolute; top: 12px; left: 16px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-fill); color: #fff; font-size: 12px; font-weight: 750; }
.pb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pb-head h3 { font-size: 15.5px; margin: 0; }
.pb-body { margin: 8px 0 0; white-space: pre-wrap; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* estoque */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.stock-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.stock-card img, .stock-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--line-3); }
.stock-ph { aspect-ratio: 16 / 6; }
.stock-ph .ic { width: 34px; height: 34px; stroke-width: 1.3; }
.sc-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sc-body h3 { margin: 0; font-size: 16px; }
.sc-price { font-size: 17px; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.site-cfg input { flex: 1; min-width: 260px; }
.site-frame { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 520px; margin-top: 12px; }
.site-frame iframe { flex: 1; width: 100%; min-height: 560px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }

/* agentes */
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 14px 0 16px; }
.ag-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ag-card.planned { border-style: dashed; }
.ag-card { position: relative; }
.ag-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.ag-head > .chip { position: absolute; top: 18px; right: 18px; }
.ag-head h3 { padding-right: 88px; }
.dash-card form.row input { flex: 1; min-width: 220px; }
.ag-head h3 { margin: 0; font-size: 16.5px; } .ag-head p { margin: 4px 0 0; }
.ag-icon { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.ag-stats { margin: 0; }
.ag-config summary { cursor: pointer; font-weight: 600; color: var(--accent-text); font-size: 14px; }
.ag-config form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ag-actions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ag-actions li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.aa-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aa-main strong { color: var(--ink-strong); }
.aa-msg { flex-basis: 100%; margin: 4px 0 0; color: var(--ink-2); font-size: 14px; white-space: pre-wrap; }
.aa-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.aa-btns button { min-height: 36px; font-size: 14px; }
.sat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.sat-grid dt { font-size: 13px; color: var(--muted); } .sat-grid dd { margin: 4px 0 0; font-size: 24px; font-weight: 750; color: var(--ink-strong); }
.nps-pick { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.nps-pick label { position: relative; }
.nps-pick input { position: absolute; opacity: 0; }
.nps-pick span { display: grid; place-items: center; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-1); font-weight: 650; font-size: 14px; cursor: pointer; }
.nps-pick input:checked + span { background: var(--accent-fill); border-color: transparent; color: #fff; }
.nps-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.sat-form { display: flex; flex-direction: column; gap: 8px; }
.sat-form > button { align-self: flex-start; }
.review-ask { margin-top: 8px; padding: 12px; border-radius: var(--r-md); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--green-500) 35%, transparent); }
.review-ask p { margin: 0 0 10px; white-space: pre-wrap; }

/* assistente */
.assistant-view { overflow: hidden; }
.as-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; max-width: 920px; width: 100%; margin: 0 auto; }
.as-thread { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 8px; }
.as-msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; background: var(--surface-1); border: 1px solid var(--line); }
.as-msg p { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.as-msg.user { align-self: flex-end; background: color-mix(in srgb, var(--accent) 14%, var(--surface-1)); border-color: var(--accent-line); border-bottom-right-radius: 5px; }
.as-msg.assistant { align-self: flex-start; border-bottom-left-radius: 5px; }
.as-msg.err { border-color: color-mix(in srgb, var(--amber-500) 45%, transparent); background: var(--warn-soft); }
.as-empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 560px; }
.as-empty > .ic { width: 44px; height: 44px; color: var(--accent); stroke-width: 1.4; }
.as-empty h2 { margin: 6px 0 0; font-size: 22px; }
.as-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.as-suggest button { font-weight: 550; font-size: 14px; white-space: normal; text-align: left; }
.as-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: end; }
.as-composer textarea { min-height: 52px; max-height: 160px; }

/* campanhas */
.camp-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.cs-item { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 13.5px; color: var(--ink-2); }
.cs-item strong { color: var(--ink-strong); font-size: 15px; }
.connect-form { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }

/* ---------------------------------------------------------------- estatísticas, módulos, histórico */
.stats-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; padding-bottom: 20px; }
.stats-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.stats-card h2 { font-size: 17px; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stats-card h2 select { font-size: 14px; min-height: 36px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin: 7px 0; }
.bar { height: 34px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 14px; min-width: 44px; text-shadow: 0 1px 2px #0006; }
.bar-row span { font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-total { height: 34px; border-radius: 6px; background: var(--accent-fill); color: #fff; display: grid; place-items: center; font-weight: 750; margin-top: 12px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.kpi strong { display: block; font-size: 26px; font-weight: 750; color: var(--ink-strong); letter-spacing: -.02em; } .kpi span { font-size: 13.5px; color: var(--muted); }
.performance-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini-bars p { display: flex; justify-content: space-between; margin: 8px 0; font-size: 15px; }
.mini-bars { list-style: none; padding: 0; margin: 0; } .mini-bars li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.stats-card.mini-bars { padding: 18px 20px; margin-bottom: 14px; }
.daily-chart { margin-bottom: 16px; }
.daily-bars { display: flex; align-items: flex-end; gap: 14px; overflow-x: auto; padding-top: 12px; }
.daily-item { min-width: 42px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; }
.daily-bar { background: var(--accent); border-radius: 4px 4px 0 0; width: 22px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; padding-bottom: 24px; }
.module-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
.module-card h2 { margin: 10px 0 0; }
.module-card p { margin: 0; }
.module-card .ghost { margin-top: auto; }
.module-card .chip { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.lead-timeline { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.timeline-event { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; position: relative; padding-left: 44px; }
.timeline-event::before { content: ""; position: absolute; left: 20px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-event strong { color: var(--ink-strong); }
.timeline-event small { display: block; margin-top: 4px; }
.timeline-event p { margin: 6px 0 0; overflow-wrap: anywhere; }
.timeline-event button { flex-shrink: 0; }
.card-task-col { margin-top: 18px; max-width: 1300px; }
.card-task-col header { display: flex; justify-content: space-between; margin-bottom: 10px; }

/* ---------------------------------------------------------------- integrações, rastreamento, configurações */
.settings-card, .tcard, .tform { padding: 18px 20px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); }
.tcard h3, .tform h3, .settings-card h3 { font-size: 16.5px; margin: 0; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-items: end; }
.grid-form > .error, .grid-form > button.primary, .grid-form > .row { grid-column: 1 / -1; justify-self: start; }
.saved { color: var(--ok); font-size: 13px; font-weight: 600; }
.tmetrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tm { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.tm strong { display: block; font-size: 25px; font-weight: 750; color: var(--ink-strong); } .tm span { font-size: 13px; color: var(--muted); }
.preview-line { font-size: 13.5px; color: var(--accent-text); margin: 0; }
.secret-box, .endpoint, .token-box { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; background: var(--surface-input); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; }

/* ---------------------------------------------------------------- agenda / follow-up */
.fu-view { padding: 4px 4px 28px 0; }
.fu-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.fu-tabs button { padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.fu-tabs button:hover { color: var(--ink); background: var(--surface-2); }
.fu-tabs button[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink-strong); }
.fu-daybar { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; }
.fu-daybar h2 { font-size: 23px; font-weight: 700; margin: 0 0 5px; }
.fu-daypick { display: flex; gap: 12px; align-items: flex-end; }
.fu-daypick label { font-size: 13px; gap: 4px; }
.fu-daypick input, .fu-daypick button { height: 40px; min-height: 40px; }
.fu-daypick input { width: 150px; padding-top: 0; padding-bottom: 0; }
.fu-board { display: grid; grid-template-columns: minmax(270px, 1fr) minmax(180px, .7fr) minmax(270px, 1fr); gap: 18px; max-width: 1300px; }
.fu-col, .fu-done { padding: 16px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); min-width: 0; }
.fu-col header { display: flex; justify-content: space-between; margin-bottom: 12px; } .fu-col h3, .fu-done h3 { margin: 0; font-size: 16px; }
.fu-done { min-height: 240px; border: 1.5px dashed var(--accent-line); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.fu-done.drop-ready { background: var(--accent-soft); border-color: var(--accent); }
.done-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.fu-card { padding: 14px; border-radius: var(--r-md); margin-bottom: 10px; background: var(--surface-2); border: 1px solid var(--line-2); touch-action: none; overflow-wrap: anywhere; transition: border-color .15s; }
.fu-card:hover { border-color: var(--accent-line); }
.fu-card strong { font-size: 15.5px; color: var(--ink-strong); } .fu-label { font-size: 14.5px; font-weight: 600; margin: 7px 0; } .fu-product { font-size: 13.5px; color: var(--muted); margin: 0; }
.fu-time { font-size: 13.5px; margin: 12px 0; }
.fu-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fu-actions button { font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink); }
.fu-actions button:hover { border-color: var(--accent-line); }
.fu-card details { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 9px; } .fu-card summary { font-size: 13px; cursor: pointer; color: var(--ink-2); }
.grip { color: var(--muted); font-size: 18px; line-height: .5; }
.cal-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.cal-bar h2 { font-size: 21px; white-space: nowrap; margin: 0; text-transform: none; }
.cal-arrow { width: 40px; height: 40px; font-size: 22px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; max-width: 1100px; margin: 0 auto; }
.cal-w { text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.cal-day { min-height: 108px; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-1); text-align: left; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; color: var(--ink); transition: border-color .15s; }
.cal-day:hover { border-color: var(--line-3); }
.cal-day.today { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface-1)); }
.cal-blank { background: transparent; border-color: transparent; }
.cal-n, .cal-num { font-size: 16px; font-weight: 700; }
.cal-badge { font-size: 12.5px; padding: 2px 8px; border-radius: var(--r-xs); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.fu-cad { display: flex; flex-direction: column; gap: 12px; max-width: 950px; }
.cad-card, .cad-editor { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); }
.cad-editor { display: flex; flex-direction: column; gap: 10px; } .cad-editor label { max-width: 600px; }
.cad-editor input, .cad-editor select { height: 40px; }
.steps { border: 0; padding: 0; } .step { border-radius: var(--r-md); margin: 16px 0; padding: 14px; border: 1px solid var(--line-2); background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.cad-actions { justify-content: flex-start; gap: 8px; } .cad-actions button { min-height: 40px; }
.fu-list, .fu-panel { display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------------- Elena IA */
.elena .el-tabs { flex-wrap: wrap; row-gap: 6px; }
.el-grid { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; max-width: 1100px; }
.el-card, .el-panel { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.el-card h3 { font-size: 16px; margin: 0; }
.el-card textarea { width: 100%; }
.el-card .el-wide { grid-column: 1 / -1; }
.el-card p, .el-card small { overflow-wrap: anywhere; }
.el-card select, .el-card input:not([type=time]):not([type=number]):not([type=checkbox]):not([type=radio]) { max-width: 100%; }
.el-card .tmetrics, .el-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.el-kpis { display: grid; gap: 10px; }
.el-modes { flex-wrap: wrap; } .el-modes button { padding: 7px 16px; font-size: 14px; } .el-modes button:disabled { opacity: .45; cursor: not-allowed; }
.el-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.el-checks li { display: flex; gap: 10px; align-items: center; }
.el-checks li.ok span:first-child { color: var(--ok); } .el-checks li.pending span:first-child { color: var(--warn); }
.el-hours { display: grid; gap: 6px; }
.el-hour { gap: 10px; } .el-hour .switch-row { min-width: 130px; } .el-hour input { width: 120px; }
.el-team { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.task-item.el-off { opacity: .6; }
.el-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.el-step pre { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; background: var(--surface-input); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.el-step.error pre { border-color: color-mix(in srgb, var(--red-500) 45%, transparent); } .el-step.decision pre { border-color: var(--accent-line); }
.el-lab-thread { max-height: 52vh; min-height: 200px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-input); }
.el-lab-info details { margin-top: 6px; }
.el-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.el-table th, .el-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.el-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
tr.el-fail td { background: var(--err-soft); }
.el-media { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; } .el-media h3 { font-size: 14px; margin: 0; }
.ghost-link { color: var(--accent-text); font-size: 13.5px; align-self: center; }
.elena-bar { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 5%, var(--surface-1)); max-height: 42vh; overflow-y: auto; }
.elena-bar .ghost { padding: 4px 10px; font-size: 13.5px; min-height: 32px; }
.el-state { font-weight: 650; }
.el-state.ai { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.el-state.human { background: var(--ok-soft); color: var(--ok); } .el-state.paused, .el-state.closed { background: var(--surface-3); color: var(--muted); }
.elena-suggestion { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed var(--accent-line); border-radius: var(--r-sm); background: var(--accent-soft); }
.elena-suggestion textarea { min-height: 70px; }
.elena-summary summary { cursor: pointer; font-size: 13px; color: var(--muted); } .elena-summary p { margin: 4px 0 0; white-space: pre-wrap; }
.elena-handoff { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid color-mix(in srgb, var(--green-500) 40%, transparent); border-radius: var(--r-sm); background: var(--ok-soft); }
.elena-handoff pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; color: var(--ink); max-height: 220px; overflow: auto; }
.el-reqs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.el-reqs li { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.el-reqs li.pendente_humano, .el-reqs li.pendente_consulta, .el-reqs li.falha_envio { border-color: color-mix(in srgb, var(--amber-500) 45%, transparent); }
.el-reqs li.respondida, .el-reqs li.midia_enviada { border-color: color-mix(in srgb, var(--green-500) 45%, transparent); }
.el-lab-grid { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 14px; align-items: start; }
.el-lab-grid .grid-form { grid-template-columns: minmax(0, 1fr); }
.el-lab-main, .el-lab-left, .el-lab-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.el-lab-left .task-item.sel { border-color: var(--accent); }
.el-fb-btn { font-size: 12px; padding: 2px 8px; margin-top: 4px; }
.el-scen { list-style: none; padding: 0; margin: 6px 0 0; columns: 2 320px; font-size: 14px; }
.el-scen li { break-inside: avoid; padding: 2px 0; }
.el-scen label { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.el-scen label small { margin-left: auto; }
.el-crit { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---------------------------------------------------------------- diálogos e avisos */
dialog.dlg {
  width: min(540px, calc(100vw - 30px)); max-height: 90dvh; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface-1); color: var(--ink);
  box-shadow: var(--shadow-pop); padding: 24px; overflow: auto;
}
dialog.dlg[open] { animation: dlg-in .3s var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
dialog.dlg.wide { width: min(740px, calc(100vw - 30px)); }
dialog::backdrop { background: #000000a6; }
dialog form, .dlg-body { display: flex; flex-direction: column; gap: 12px; }
dialog h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
dialog footer { margin-top: 6px; }
.stage-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.stage-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 34px 34px 34px; gap: 6px; align-items: center; }
.stage-row .icon-btn { width: 34px; height: 34px; }
.transfers, .transfer { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--warn-soft); }
.field-defs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.field-def { padding: 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; } .field-def.archived { opacity: .75; }
.new-field { display: flex; flex-direction: column; gap: 8px; }
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 2000; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; border-radius: var(--r-md);
  background: var(--surface-3); color: var(--ink-strong); border: 1px solid var(--line-3); box-shadow: var(--shadow-pop); font-size: 15px; font-weight: 600;
  animation: toast-in .35s var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast.error { background: color-mix(in srgb, var(--red-500) 22%, var(--surface-1)); border-color: color-mix(in srgb, var(--red-500) 50%, transparent); }
.toast.warn { background: color-mix(in srgb, var(--amber-500) 20%, var(--surface-1)); border-color: color-mix(in srgb, var(--amber-500) 50%, transparent); }

/* modelos de mensagem (spintax) */
.tpl-btn { justify-self: start; font-size: 13.5px; padding: 6px 12px; }
.tpl-preview { white-space: pre-wrap; background: color-mix(in srgb, var(--accent) 10%, var(--surface-1)); border: 1px solid var(--accent-line); border-radius: var(--r-md); padding: 10px 12px; margin: 0; }
.tpl-preview ul { margin: 4px 0 0; padding-left: 18px; }
.tpl-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.tpl-item { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.tpl-item input { flex: 1 1 200px; min-width: 0; }
.spin-menu { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.spin-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; color: var(--ink); }
.spin-menu button:hover { border-color: var(--line-2); background: var(--surface-1); }
.spin-menu small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* administração e Central MCP (cartões compartilhados) */
.arow, .sec-card, .scard, .conn-card, .tool-card { background: var(--surface-1); border-color: var(--line); }
.aactions button, .aactions a, .conn-actions button { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.audit-table th, .audit-table td, .act-table th, .act-table td { border-bottom-color: var(--line); }
.pill { background: var(--accent-soft); color: var(--accent-text); }
.st-active { background: var(--ok-soft); color: var(--ok); } .st-paused { background: var(--warn-soft); color: var(--warn); }

/* páginas públicas */
.public-main { padding: 32px 24px; max-width: 820px; margin: auto; line-height: 1.65; }
.public-main h1 { font-size: 30px; letter-spacing: -.02em; }
.public-main a { color: var(--accent-text); }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1440px) {
  .funnel-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .funnel-title { display: none; }
}
@media (max-width: 1280px) {
  .chat-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 50; box-shadow: var(--shadow-pop); }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid > div:nth-child(3) { border-left: 0; }
  .dl-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats-wrap { grid-template-columns: 1fr; }
  .hint { display: none; }
}
@media (max-width: 1100px) {
  .sidebar { width: 232px; min-width: 232px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-lead { grid-template-columns: minmax(0, 1fr); }
  .dl-main { border-right: 0; border-bottom: 1px solid var(--accent-line); }
  .fu-board { grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); gap: 10px; }
  .cal-day { min-height: 90px; padding: 10px; }
  .el-lab-grid { grid-template-columns: minmax(0, 1fr); }
  .funnel-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #board-search-wrap { width: 220px; }
}
@media (max-width: 750px) {
  body { font-size: 15px; }
  .sidebar { width: 72px; min-width: 72px; }
  .side-top { flex-direction: column; height: auto; }
  .side-top .brand { padding: 14px 0; justify-content: center; }
  .sidebar .brand-logo, .mcp-side .brand-logo { display: none; }
  .sidebar .brand-icon, .mcp-side .brand-icon { display: block; }
  .collapse-btn { margin: 8px auto; }
  .side-scroll { padding: 8px 10px; }
  .sidebar .nl, .nav-group, .side-user-info { display: none; }
  .nav-group { display: block; height: 1px; padding: 0; margin: 10px 8px; background: var(--line); font-size: 0; }
  .nav button, .nav a { justify-content: center; padding: 10px 0; }
  .side-user { justify-content: center; padding: 12px 0; }
  .main { padding: 14px 12px 0; }
  .page-head h1 { font-size: 24px; }
  .page-sub { font-size: 14px; }
  .head-tools { width: 100%; justify-content: flex-start; }
  #board-search-wrap { width: 100%; }
  .sidebar { width: 64px; min-width: 64px; }
  .side-scroll { padding: 8px 6px; }
  .page-head { margin-bottom: 12px; gap: 10px; }
  .head-tools { gap: 8px; }
  .head-tools select { flex: 1; min-width: 0; }
  #pipeline-default, .toolbar-meta { display: none !important; }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .head-tools #new-column { font-size: 0; gap: 0; width: 42px; padding: 0; }
  .head-tools #new-contact { flex: 1; }
  .kanban { grid-auto-columns: minmax(260px, 86%); gap: 12px; }
  .toolbar { margin-bottom: 10px; }
  .funnel-strip { display: none; }
  .chat-panel { width: 100vw; }
  .inbox { grid-template-columns: 1fr; }
  body.inbox-chat-open .inbox-list { display: none; }
  body:not(.inbox-chat-open) .inbox-chat { display: none; }
  .chat-head { padding: 14px; }
  .chat-tabs { padding: 0 14px; } .stage-track-wrap { padding: 0 14px 12px; }
  .composer { padding: 10px; gap: 7px; } .composer-row { gap: 7px; }
  .tmetrics { gap: 6px; } .tm { padding: 10px 8px; } .tm strong { font-size: 20px; }
  .fu-board { display: flex; overflow-x: auto; } .fu-col { min-width: 260px; } .fu-done { min-width: 180px; }
  .fu-actions button { min-height: 40px; font-size: 13px; }
  .cal-grid { gap: 4px; } .cal-day { min-height: 75px; padding: 7px; } .cal-bar h2 { font-size: 17px; } .cal-word { display: none; }
  .cad-actions button { min-height: 44px; }
  .stage-row { grid-template-columns: minmax(0, 1fr) 110px 34px 34px 34px; }
  .task-form { grid-template-columns: 1fr; }
  .legend { margin-left: 0; } .legend-grid { left: 0; right: auto; }
  .dl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dl-grid > div { padding: 18px 16px; }
  .dl-main { padding: 22px 20px; }
  .fn-row { grid-template-columns: minmax(0, 1fr) 44px 84px; }
  .fn-track { grid-column: 1 / -1; grid-row: 2; }
  .share-list li { grid-template-columns: minmax(0, 1fr) 54px 36px; }
  .sh-track { grid-column: 1 / -1; grid-row: 2; }
  .seg-legend { grid-template-columns: 1fr; }
  .gp-grid, .sat-grid { grid-template-columns: 1fr 1fr; }
  .visit { grid-template-columns: 56px minmax(0, 1fr); } .visit select { grid-column: 1 / -1; }
  .as-composer { grid-template-columns: 1fr; }
  .act-form { grid-template-columns: 1fr; }
  .timeline-event { align-items: flex-start; flex-direction: column; }
  .el-hour { flex-wrap: wrap; } .el-hour input { width: 100px; }
  .elena .el-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .elena .el-tabs button { white-space: nowrap; flex-shrink: 0; }
  .login-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .fn-fill, .sh-fill, .cc-bar, .seg, .st-seg button::before { forced-color-adjust: none; }
}
