/* Recupera — interface do sistema (painel, admin e páginas de conta) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e3e8ee;
  --border-soft: #eef1f4;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --primary: #0b6e4f;
  --primary-600: #095c42;
  --primary-700: #074a35;
  --primary-900: #05291e;
  --primary-50: #e9f6f0;
  --primary-100: #cdebdd;
  --accent: #f08c00;
  --accent-600: #d97b00;
  --accent-50: #fff5e6;
  --accent-ink: #934c00;
  --ok: #067647;
  --ok-50: #ecfdf3;
  --red: #d92d20;
  --red-50: #fef3f2;
  --red-ink: #b42318;
  --blue: #175cd3;
  --blue-50: #eff4ff;
  --violet: #5925dc;
  --violet-50: #f4f3ff;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 8px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin: 0; color: var(--text); }
h1 { font-size: 24px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 12px; }
small, .muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--primary); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg .tip { stroke: #ffb44d; }
.brand i { display: none; }

/* ---------- Estrutura ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px 14px; overflow-y: auto; }
.side > .brand { padding: 2px 8px 0; }
.side-org { margin: 16px 0 14px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r); display: flex; gap: 10px; align-items: center; }
.side-org .org-badge { width: 32px; height: 32px; border-radius: 6px; background: var(--primary-50); color: var(--primary-700); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.side-org strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.side-org span { font-size: 12px; color: var(--muted); }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; font-size: 14px; }
.side nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side nav a .ico { color: var(--muted); }
.side nav a.is-active { background: var(--primary-50); color: var(--primary-700); }
.side nav a.is-active .ico { color: var(--primary); }
.side nav a .count { margin-left: auto; font-size: 11.5px; font-weight: 600; background: var(--accent-50); color: var(--accent-ink); border: 1px solid #ffdca8; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.side-sep { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 18px 10px 6px; }
.side-foot { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e7ecf2; color: var(--text-2); font-weight: 600; font-size: 12px; display: grid; place-items: center; flex: none; }
.side-foot .who { color: var(--text); font-weight: 600; display: block; line-height: 1.2; }
.side-foot .role { color: var(--muted); font-size: 12px; }
.side-foot form { margin: 0 0 0 auto; }
.side-foot button { background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 6px; cursor: pointer; display: grid; }
.side-foot button:hover { background: var(--surface-2); color: var(--text); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.page { padding: 28px 32px 56px; max-width: 1320px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 680px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 13px; margin-bottom: 6px; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; }
.crumb::before { content: '‹'; font-size: 16px; line-height: 1; }
.crumb:hover { color: var(--text); text-decoration: none; }

/* Faixas de aviso */
.band { padding: 10px 32px; font-size: 13.5px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid; }
.band a, .band button { font-weight: 600; }
.band-trial { background: var(--blue-50); color: #1849a9; border-color: #d1e0ff; }
.band-trial a { color: #1849a9; }
.band-warn { background: var(--accent-50); color: var(--accent-ink); border-color: #ffdca8; }
.band-warn a { color: var(--accent-ink); }
.band-danger { background: var(--red-50); color: var(--red-ink); border-color: #fecdca; }
.band-danger a { color: var(--red-ink); }
.band-support { background: #101828; color: #fff; border-color: #101828; }
.band-support button { background: #fff; color: #101828; border: 0; padding: 5px 12px; border-radius: var(--r-sm); cursor: pointer; font: inherit; font-weight: 600; }

/* Mensagens */
.flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { padding: 10px 14px; border-radius: var(--r); border: 1px solid; font-size: 13.5px; font-weight: 500; }
.flash-success { background: var(--ok-50); border-color: #abefc6; color: #085d3a; }
.flash-error { background: var(--red-50); border-color: #fecdca; color: var(--red-ink); }
.flash-info { background: var(--blue-50); border-color: #d1e0ff; color: #1849a9; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--primary); font: 600 14px/1.25 var(--font); cursor: pointer; white-space: nowrap; background: var(--primary); color: #fff; box-shadow: var(--shadow); text-decoration: none; }
.btn:hover { background: var(--primary-600); border-color: var(--primary-600); color: #fff; text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text-2); border-color: #d0d5dd; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: #d0d5dd; }
.btn-send { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-send:hover { background: var(--accent-600); border-color: var(--accent-600); }
.btn-danger { background: var(--surface); color: var(--red-ink); border-color: #fda29b; }
.btn-danger:hover { background: var(--red-50); color: var(--red-ink); border-color: #fda29b; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font: 500 inherit/inherit var(--font); font-size: inherit; }
.btn-link:hover { text-decoration: underline; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.inline { display: inline; margin: 0; }

/* Formulários */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--red); }
.input, .select, .textarea { width: 100%; padding: 8px 11px; border: 1px solid #d0d5dd; border-radius: var(--r-sm); background: #fff; font: 14px/1.45 var(--font); color: var(--text); box-shadow: var(--shadow); }
.input::placeholder, .textarea::placeholder { color: #98a2b3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: #6fbf9f; box-shadow: 0 0 0 4px rgba(11, 110, 79, .12); }
.textarea { min-height: 110px; resize: vertical; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: #fda29b; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; color: var(--text-2); }
.check input { margin-top: 2px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 10px; }
legend { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 12px; padding: 0; }

/* Cartões */
.section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.section.flush { padding: 0; overflow: hidden; }
.section.flush .section-head { padding: 16px 20px; margin: 0; border-bottom: 1px solid var(--border); }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cols-even { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.stack > * + * { margin-top: 20px; }
.stack > .section { margin-bottom: 0; }

/* Indicadores */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.figure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.figure a { color: inherit; display: block; }
.figure a:hover { text-decoration: none; }
.figure span { font-size: 13px; color: var(--muted); font-weight: 500; display: block; }
.figure b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.2; order: 2; }
.figure { display: flex; flex-direction: column-reverse; gap: 6px; }
.figure a { display: flex; flex-direction: column-reverse; gap: 6px; }
.figure.is-amber { border-top: 3px solid var(--accent); }
.figure.is-amber b { color: var(--accent-ink); }

/* Funil de recuperação */
.journey { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.journey-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.journey-head span { color: var(--muted); font-size: 13px; }
.journey-steps { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.journey-step { padding: 14px 16px 16px; position: relative; background: var(--surface); }
.journey-step + .journey-step { border-left: 1px solid var(--border); }
.journey-step span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; order: -1; }
.journey-step b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.journey-step { display: flex; flex-direction: column; }
.journey-step .bar { order: 3; height: 6px; border-radius: 99px; background: var(--border-soft); overflow: hidden; }
.journey-step .bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; min-width: 3px; }
.journey-step:last-child .bar i { background: var(--accent); }
.journey-step small { order: 4; display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.journey-foot { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-end; margin-top: 16px; font-size: 13px; color: var(--muted); }
.journey-foot strong { color: var(--text); font-size: 18px; font-weight: 600; display: inline-block; margin-top: 2px; }
.journey-foot > span:last-child { margin-left: auto; }
.journey-foot a { font-weight: 600; }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfc; }
.table .primary { font-weight: 600; color: var(--text); }
.table .primary:hover { color: var(--primary); }
.table .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.section .table th:first-child, .section .table td:first-child { padding-left: 20px; }
.section .table th:last-child, .section .table td:last-child { padding-right: 20px; }

/* Selos */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap; background: #f2f4f7; color: #344054; border: 1px solid #e4e7ec; line-height: 18px; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.tag-ok { background: var(--ok-50); color: var(--ok); border-color: #abefc6; }
.tag-amber { background: var(--accent-50); color: var(--accent-ink); border-color: #ffdca8; }
.tag-red { background: var(--red-50); color: var(--red-ink); border-color: #fecdca; }
.tag-blue { background: var(--blue-50); color: var(--blue); border-color: #d1e0ff; }
.tag-forest { background: var(--primary); color: #fff; border-color: var(--primary); }
.stage-prepared { background: #f2f4f7; color: #475467; border-color: #e4e7ec; }
.stage-contacted { background: var(--blue-50); color: var(--blue); border-color: #d1e0ff; }
.stage-replied { background: var(--violet-50); color: var(--violet); border-color: #d9d6fe; }
.stage-scheduled { background: var(--accent-50); color: var(--accent-ink); border-color: #ffdca8; }
.stage-completed { background: var(--ok-50); color: var(--ok); border-color: #abefc6; }
.stage-lost { background: #f9fafb; color: #667085; border-color: #eaecf0; }
.stage-opted_out { background: var(--red-50); color: var(--red-ink); border-color: #fecdca; }
.consent-dots { display: inline-flex; gap: 4px; }
.consent-dots span { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #f2f4f7; color: #98a2b3; }
.consent-dots span.on { background: var(--ok-50); color: var(--ok); }

/* Filtros */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin: 0; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 0; margin-bottom: 16px; border: 1px solid #d0d5dd; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); align-items: stretch; }
.chip { padding: 7px 13px; color: var(--text-2); font-size: 13px; font-weight: 500; border-right: 1px solid #d0d5dd; display: inline-flex; align-items: center; gap: 6px; }
.chip:last-child { border-right: 0; }
.chip b { font-weight: 500; color: var(--muted); background: #f2f4f7; border-radius: 99px; padding: 0 7px; font-size: 12px; }
.chip:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.chip.is-active { background: var(--primary-50); color: var(--primary-700); }
.chip.is-active b { background: var(--primary-100); color: var(--primary-700); }
.chips form { padding: 4px 8px; display: flex; gap: 6px; align-items: center; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 4px; margin-right: 16px; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.is-active { color: var(--primary-700); border-bottom-color: var(--primary); }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 8px; align-items: center; }

.empty { padding: 32px 20px; color: var(--muted); text-align: center; }
.empty h3 { margin-bottom: 6px; color: var(--text); font-size: 15px; }
.empty p { max-width: 520px; margin-left: auto; margin-right: auto; }

/* Listas */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--text-2); }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.list li:first-child { padding-top: 0; }
.list .meta { font-size: 12.5px; color: var(--muted); }
.timeline li { display: block; }
.timeline .when { font-size: 12px; color: var(--muted); }

.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--text); }

/* Quadro de oportunidades */
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: #eef1f4; border-radius: var(--r); padding: 10px; min-height: 160px; }
.lane-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 10px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.lane-head span { font-size: 12px; color: var(--muted); font-weight: 500; background: #fff; border-radius: 99px; padding: 0 8px; border: 1px solid var(--border); }
.opp { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 12px; margin-bottom: 8px; font-size: 13.5px; box-shadow: var(--shadow); }
.opp a.name { font-weight: 600; color: var(--text); }
.opp .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.opp details { margin-top: 10px; border-top: 1px solid var(--border-soft); padding-top: 8px; }
.opp summary { cursor: pointer; font-size: 13px; color: var(--primary); font-weight: 600; list-style: none; }
.opp summary::-webkit-details-marker { display: none; }
.opp .quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Envio assistido */
.sendlist { list-style: none; margin: 0; padding: 0; }
.send-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.send-item:last-child { border-bottom: 0; }
.send-item.is-done { background: var(--surface-2); }
.send-item .who strong { font-size: 14px; }
.send-item .who strong a { color: var(--text); }
.send-item .who .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.send-item .msg { grid-column: 1 / -1; white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; color: var(--text-2); }
.send-item.is-done .msg { color: var(--muted); }
.send-item .act { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }

/* Mensagem / prévia */
.bubble { background: #e7f8ef; border: 1px solid #c6ecd7; border-radius: 10px 10px 10px 2px; padding: 10px 12px; font-size: 13.5px; white-space: pre-wrap; max-width: 540px; color: #0f2a1e; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.vars button { font: 500 12px/1 ui-monospace, Menlo, Consolas, monospace; padding: 5px 8px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 5px; cursor: pointer; color: var(--text-2); }
.vars button:hover { border-color: #b7c0cc; background: #fff; }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--border); border-radius: var(--r); padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 110, 79, .12); }
.plan input { accent-color: var(--primary); }
.plan .price { font-size: 24px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; margin-top: 4px; }
.plan .price small { font-size: 13px; font-weight: 400; }

.meter { height: 6px; background: var(--border-soft); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--primary); }
.meter.is-high i { background: var(--accent); }

.callout { border: 1px solid #ffdca8; background: var(--accent-50); padding: 11px 14px; border-radius: var(--r); font-size: 13.5px; color: var(--accent-ink); margin-bottom: 16px; }
.callout.is-neutral { border-color: #d1e0ff; background: var(--blue-50); color: #1849a9; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; background: #fff; border: 1px dashed #d0d5dd; padding: 2px 8px; border-radius: 4px; color: var(--text); }

.danger-zone { border-color: #fecdca; }
.danger-zone h2 { color: var(--red-ink); }

/* ---------- Páginas de conta (entrar, cadastro, instalador) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); background: var(--surface); }
.auth-main { order: 1; padding: 40px 64px; display: flex; flex-direction: column; justify-content: center; max-width: 560px; width: 100%; }
.auth-main > .brand { margin-bottom: 40px; }
.auth-main h1 { font-size: 26px; margin-bottom: 6px; }
.auth-main .lead { color: var(--muted); margin-bottom: 24px; font-size: 14.5px; }
.auth-main .alt { margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-aside { order: 2; background: var(--primary-900); color: #cfe3da; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 28px; position: relative; overflow: hidden; }
.auth-aside .brand { display: none; }
.auth-aside blockquote { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: #fff; max-width: 520px; }
.auth-aside ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 460px; }
.auth-aside ol li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14.5px; color: #cfe3da; align-items: start; }
.auth-aside ol li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378d6ac' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.auth-aside .shot { border-radius: 10px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 48px -12px rgba(0,0,0,.45); max-width: 640px; width: 100%; display: block; }
.auth-aside footer { font-size: 12.5px; color: #7fa99a; }
.plain { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.plain-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.plain h1 { margin-bottom: 16px; }
.plain h2 { margin: 26px 0 8px; font-size: 16px; }
.plain p, .plain li { color: var(--text-2); }

/* ---------- Admin ---------- */
.admin .side { background: #101828; border-right-color: #101828; }
.admin .side .brand { color: #fff; }
.admin .side-org { border-color: #283244; }
.admin .side-org strong { color: #fff; }
.admin .side-org .org-badge { background: #283244; color: #fff; }
.admin .side nav a { color: #cbd2dc; }
.admin .side nav a .ico { color: #8a94a6; }
.admin .side nav a:hover { background: #1d2939; color: #fff; }
.admin .side nav a.is-active { background: #1d2939; color: #fff; }
.admin .side nav a.is-active .ico { color: #6ce9a6; }
.admin .side-foot { border-top-color: #283244; }
.admin .side-foot .who { color: #fff; }
.admin .avatar { background: #283244; color: #fff; }
.admin .side-foot button:hover { background: #1d2939; color: #fff; }

@media (max-width: 1100px) {
  .cols, .cols-even { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(4, 260px); }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { margin: 0 auto; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; }
  .side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(16, 24, 40, .45); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
  .topbar button { background: var(--surface); border: 1px solid #d0d5dd; color: var(--text-2); border-radius: var(--r-sm); padding: 6px 8px; display: grid; }
  .page { padding: 20px 16px 48px; }
  .band { padding: 10px 16px; }
  h1 { font-size: 21px; }
  .journey-steps { grid-template-columns: 1fr 1fr; }
  .journey-step + .journey-step { border-left: 0; }
  .journey-step { border-bottom: 1px solid var(--border); }
  .journey-step:nth-child(even) { border-left: 1px solid var(--border); }
  .figures { grid-template-columns: 1fr 1fr; gap: 10px; }
  .figure b { font-size: 22px; }
  .send-item { grid-template-columns: 1fr; }
  .send-item .act { justify-content: flex-start; }
  .auth-main { padding: 28px 20px 44px; }
  .auth-main > .brand { margin-bottom: 28px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .hide-sm { display: none; }
  .chips { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .chip { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Agenda */
.week { display: grid; grid-template-columns: repeat(7, minmax(128px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); min-height: 340px; padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.day header { display: flex; align-items: baseline; gap: 6px; padding: 2px 4px 6px; border-bottom: 1px solid var(--border-soft); }
.day header span { font-size: 12px; color: var(--muted); font-weight: 500; }
.day header b { font-size: 18px; font-weight: 600; }
.day.is-today { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.day.is-today header b { color: var(--primary); }
.day-empty { font-size: 12.5px; color: #98a2b3; margin: 4px; }
.slot { display: grid; gap: 2px; padding: 8px 10px; border-radius: 6px; background: var(--blue-50); border-left: 3px solid var(--blue); color: var(--text); font-size: 13px; }
.slot:hover { text-decoration: none; filter: brightness(.98); color: var(--text); }
.slot-confirmed { background: var(--ok-50); border-left-color: var(--ok); }
.slot-completed { background: #f2f4f7; border-left-color: #98a2b3; }
.slot-no_show { background: var(--red-50); border-left-color: var(--red); }
.slot-time { font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.slot strong { font-weight: 600; font-size: 13px; line-height: 1.3; }
.slot-meta { font-size: 12px; color: var(--muted); }
.slot-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.slot-foot .tag { font-size: 11px; padding: 0 6px; }
.slot-g .ico { width: 14px; height: 14px; color: var(--muted); }

/* Integrações */
.integration { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.integration-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); }
.integration-ico .ico { width: 22px; height: 22px; }
.integration-ico.is-google { color: #1a73e8; }
.integration-ico.is-wa { color: #128c4b; }
.copy-row { display: flex; gap: 6px; }
.copy-row .input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--surface-2); }

/* Conversa WhatsApp */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding: 4px 2px; }
.chat-msg { max-width: 82%; padding: 8px 11px; border-radius: 10px; font-size: 13.5px; white-space: pre-wrap; }
.chat-msg small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.chat-in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 2px; }
.chat-out { align-self: flex-end; background: #e7f8ef; border: 1px solid #c6ecd7; border-bottom-right-radius: 2px; }
.chat-out.is-failed { background: var(--red-50); border-color: #fecdca; }
@media (max-width: 860px) { .week { grid-template-columns: repeat(7, 170px); } }
