@charset "UTF-8";
/* Impulso — interface do painel. Sem dependências externas. */
/* Paleta do mamute.online: azul (#2563eb) como cor principal sobre tons de cinza-azulado (slate).
   Tema claro é o padrão; o escuro redefine as mesmas variáveis em :root[data-theme="dark"] (assets/theme.js). */
:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #edf2f9;
    --raised: #ffffff;
    --input-bg: #f5f7fb;
    --btn-secondary-bg: #ffffff;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #52627a;
    --muted-2: #8594aa;
    --line: #d5deeb;
    --line-strong: #c6d2e2;
    --line-hover: #b3c2d6;
    --hover: #edf2f9;
    --brand: #2563eb;
    --brand-700: #1d4ed8;
    --brand-900: #1e3a8a;
    --brand-50: #dbeafe;
    --brand-ink: #2563eb;
    --brand-line: #bfdbfe;
    --brand-muted: #4b6db3;
    --brand-hover: rgba(37, 99, 235, .12);
    --accent: #60a5fa;
    --accent-soft: #dbeafe;
    --accent-line: #bfdbfe;
    --accent-ink: #1d4ed8;
    --objective-ink: #1e3a8a;
    --fb: #1877f2;
    --fb-700: #0f65d6;
    --ok: #237a42;
    --ok-solid: #237a42;
    --ok-soft: #e7f3eb;
    --ok-line: #c2e2cc;
    --ok-ink: #1a5c32;
    --ok-ring: #d3ecdb;
    --warn: #b45309;
    --warn-dot: #f59e0b;
    --warn-soft: #fef3c7;
    --warn-line: #fcd98b;
    --warn-ink: #92400e;
    --warn-ring: #fde8b0;
    --danger: #bd303a;
    --danger-solid: #bd303a;
    --danger-soft: #fbeaeb;
    --danger-soft-hover: #f7d7da;
    --danger-line: #f1c5c9;
    --danger-ink: #97232c;
    --info: #2563eb;
    --info-soft: #dbeafe;
    --info-line: #bfdbfe;
    --info-ink: #1e40af;
    --blue-soft: #dbeafe;
    --amber: #b45309;
    --amber-soft: #fef3c7;
    --violet: #7c3aed;
    --violet-soft: #ede9fe;
    --violet-ink: #6d28d9;
    --violet-line: #ddd6fe;
    --btn-light-bg: rgba(255, 255, 255, .75);
    --btn-light-line: rgba(37, 99, 235, .25);
    --topbar-bg: rgba(245, 247, 251, .86);
    --tabbar-bg: rgba(255, 255, 255, .94);
    --toast-bg: #0f172a;
    --skeleton-a: #e6ecf5;
    --skeleton-b: #f1f5fa;
    --backdrop: rgba(2, 6, 23, .6);
    --hero: linear-gradient(145deg, #0f172a 0%, #172a4d 55%, #1e3a8a 100%);
    --ad-bg: #ffffff;
    --ad-ink: #050505;
    --ad-muted: #65676b;
    --ad-foot: #f0f2f5;
    --ad-cta: #e4e6eb;
    --ad-line: #e4e6eb;
    --ad-placeholder: #8a8d91;
    --ad-image-a: #eef2f9;
    --ad-image-b: #dce5f3;
    --ad-image-ink: #7b8aa3;
    --focus: #60a5fa;
    --focus-soft: rgba(37, 99, 235, .14);
    /* Gráficos (paleta validada para daltonismo): série principal, segunda série, período anterior, status crítico e grade. */
    --viz-1: #2a78d6;
    --viz-2: #eb6834;
    --viz-prev: #a3b0c2;
    --viz-bad: #d03b3b;
    --viz-grid: #e6ebf2;
    --viz-base: #c6d2e2;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -18px rgba(15, 23, 42, .22);
    --shadow-lg: 0 20px 70px rgba(15, 23, 42, .12);
    --shadow-xl: 0 30px 80px -24px rgba(15, 23, 42, .4);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    color-scheme: light;
}
/* Tema escuro do mamute: fundo #0f172a, painéis #162235, relevo #203149 e azul claro nos destaques. */
:root[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #162235;
    --surface-2: #1b2a40;
    --raised: #203149;
    --input-bg: #0f172a;
    --btn-secondary-bg: #162235;
    --ink: #f8fafc;
    --ink-2: #e2e8f0;
    --muted: #cbd5e1;
    --muted-2: #94a3b8;
    --line: #334155;
    --line-strong: #3b4a61;
    --line-hover: #4a5b75;
    --hover: #203149;
    --brand: #2563eb;
    --brand-700: #1d4ed8;
    --brand-900: #1e3a8a;
    --brand-50: #1e3a5f;
    --brand-ink: #60a5fa;
    --brand-line: #2c4f7c;
    --brand-muted: #93b4e0;
    --brand-hover: rgba(96, 165, 250, .16);
    --accent-soft: #1e3a5f;
    --accent-line: #2c4f7c;
    --accent-ink: #93c5fd;
    --objective-ink: #dbeafe;
    --ok: #86efac;
    --ok-solid: #16a34a;
    --ok-soft: #173a33;
    --ok-line: #25574a;
    --ok-ink: #bbf7d0;
    --ok-ring: #1c4a3c;
    --warn: #fcd34d;
    --warn-soft: #3a3220;
    --warn-line: #5f4d22;
    --warn-ink: #fde68a;
    --warn-ring: #4a3c19;
    --danger: #fca5a5;
    --danger-solid: #dc2626;
    --danger-soft: #3a2131;
    --danger-soft-hover: #4a2838;
    --danger-line: #5c2c3c;
    --danger-ink: #fecaca;
    --info: #60a5fa;
    --info-soft: #1e3a5f;
    --info-line: #2c4f7c;
    --info-ink: #bfdbfe;
    --blue-soft: #1e3a5f;
    --amber: #fcd34d;
    --amber-soft: #3a3220;
    --violet: #c4b5fd;
    --violet-soft: #2c2653;
    --violet-ink: #ddd6fe;
    --violet-line: #463c7d;
    --btn-light-bg: rgba(255, 255, 255, .06);
    --btn-light-line: rgba(96, 165, 250, .35);
    --topbar-bg: rgba(15, 23, 42, .86);
    --tabbar-bg: rgba(22, 34, 53, .94);
    --toast-bg: #203149;
    --skeleton-a: #1b2a40;
    --skeleton-b: #25385a;
    --backdrop: rgba(2, 6, 23, .72);
    --hero: linear-gradient(145deg, #172a4d 0%, #1e3a8a 60%, #2563eb 100%);
    --ad-bg: #242526;
    --ad-ink: #e4e6eb;
    --ad-muted: #b0b3b8;
    --ad-foot: #3a3b3c;
    --ad-cta: #4e4f50;
    --ad-line: #3e4042;
    --ad-placeholder: #8a8d91;
    --ad-image-a: #1b2a41;
    --ad-image-b: #22344f;
    --ad-image-ink: #7d8fae;
    --focus-soft: rgba(96, 165, 250, .2);
    --viz-1: #3987e5;
    --viz-2: #d95926;
    --viz-prev: #5b6b82;
    --viz-grid: #26354b;
    --viz-base: #3b4a61;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -18px rgba(0, 0, 0, .6);
    --shadow-lg: 0 20px 70px rgba(0, 0, 0, .27);
    --shadow-xl: 0 30px 80px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--brand-ink); text-decoration: none; font-weight: 550; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-xs { width: 12px; height: 12px; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.optional { font-style: normal; font-weight: 500; color: var(--muted-2); font-size: 12px; margin-left: 4px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; font-weight: 650; font-size: 14px; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .06s, color .15s; text-decoration: none !important; line-height: 1; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; }
.btn .i { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn-primary:hover:not(:disabled) { background: var(--brand-700); }
.btn-accent { background: var(--accent); color: #0f172a; }
.btn-accent:hover:not(:disabled) { background: #93c5fd; }
.btn-secondary { background: var(--btn-secondary-bg); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line-hover); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--hover); }
.btn-light { background: var(--btn-light-bg); border-color: var(--btn-light-line); color: var(--info); }
.btn-danger { background: var(--danger-solid); color: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--danger-solid); filter: brightness(.9); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-danger-soft:hover:not(:disabled) { background: var(--danger-soft-hover); }
.btn-fb { background: var(--fb); color: #fff; }
.btn-fb:hover:not(:disabled) { background: var(--fb-700); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--muted); transition: background .15s, color .15s; flex: none; }
.icon-btn:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.icon-btn:disabled { opacity: .4; }
.icon-btn.danger:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); }
/* Botão de tema: lua no tema claro (vai para o escuro) e sol no escuro. */
.theme-btn .theme-sun, :root[data-theme="dark"] .theme-btn .theme-moon { display: none; }
:root[data-theme="dark"] .theme-btn .theme-sun { display: block; }
.link-btn { color: var(--brand-ink); font-weight: 650; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { text-decoration: underline; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field > span, .label { font-weight: 650; font-size: 13px; color: var(--ink-2); }
.field small, .hint { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.counter { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger); }
/* Opções de texto e título: cada caixa com o botão de remover ao lado e o contador embaixo. */
.options { display: flex; flex-direction: column; gap: 8px; }
.option-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 4px; align-items: start; }
.option-row > .counter { grid-column: 1; justify-self: end; }
.options + .link-btn { align-self: flex-start; padding: 4px 0; }
.text-options { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.text-options li { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Anúncios do assistente: o aberto num cartão; os outros recolhidos, um por linha, com o que falta em cada um. */
.cr-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cr-card { border: 1.5px solid var(--brand-ink); border-radius: 16px; padding: 16px 16px 0; box-shadow: 0 0 0 3px var(--focus-soft); }
.cr-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cr-card-title { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 750; flex: none; }
.cr-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; transition: border-color .15s, background .15s; }
.cr-item:hover { border-color: var(--line-strong); background: var(--surface-2); }
.cr-item .cr-num { background: var(--surface-2); color: var(--ink-2); }
.cr-item > .i { color: var(--muted-2); flex: none; }
.cr-item-text { flex: 1; min-width: 0; }
.cr-item-text strong, .cr-item-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-item-text strong { font-weight: 650; font-size: 14px; }
.cr-item-text small { color: var(--muted); font-size: 12.5px; }
.cr-item-warn { color: var(--warn); font-weight: 650; }
.cr-item-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cr-list-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cr-list-foot small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.upload-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.upload-status .i { width: 15px; height: 15px; }
.upload-status.err { color: var(--danger); }
.review-crs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.review-crs li { display: flex; gap: 10px; align-items: center; }
.review-crs .thumb { width: 40px; height: 40px; }
.review-crs li > span:last-child { min-width: 0; }
.review-crs b, .review-crs small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-crs small { font-size: 12.5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=datetime-local], input[type=date], input:not([type]), select, textarea {
    width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--input-bg); transition: border-color .15s, box-shadow .15s; min-width: 0;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 92px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 4px var(--focus-soft); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
select { appearance: none; padding-right: 36px; background: var(--input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352627a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
input[type=search]::-webkit-search-cancel-button { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; }
.switch > span strong { display: block; font-weight: 650; }
.switch > span small { color: var(--muted); font-size: 13px; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; flex: none; transition: background .2s; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.affix { position: relative; display: flex; align-items: center; }
.affix b { position: absolute; color: var(--muted); font-weight: 600; pointer-events: none; }
.affix.prefix b { left: 12px; }
.affix.prefix input { padding-left: 44px; }
.affix.suffix b { right: 12px; }
.affix.suffix input { padding-right: 52px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.quick button { height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.quick button:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.quick button.active { background: var(--brand-50); border-color: var(--brand-ink); color: var(--brand-ink); }
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; font-weight: 600; color: var(--muted); font-size: 13px; }
.segmented button:hover { color: var(--ink); }
/* Opção escolhida em azul cheio, como os botões principais: fica claro o que está valendo. */
.segmented button.active { background: var(--brand); color: #ffffff; box-shadow: 0 1px 4px rgba(37, 99, 235, .35); }
.segmented button.active .muted { color: rgba(255, 255, 255, .82); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }

/* Estrutura */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px 14px; z-index: 60; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-decoration: none !important; padding: 4px 8px 22px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.logo .i { width: 20px; height: 20px; stroke-width: 2.6; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 560; text-decoration: none !important; transition: background .12s, color .12s; }
.nav a .i { color: var(--muted); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--brand-50); color: var(--brand-ink); font-weight: 680; }
.nav a.active .i { color: var(--brand-ink); }
.nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); padding: 20px 12px 6px; }
.nav-count { margin-left: auto; font-size: 12px; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; min-width: 26px; text-align: center; color: var(--muted); line-height: 20px; }
.nav a.active .nav-count { background: var(--raised); border-color: var(--brand-line); color: var(--brand-ink); }
.nav-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--warn-dot); box-shadow: 0 0 0 3px var(--warn-ring); }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 2px 0 4px; }
.me-text { flex: 1; min-width: 0; }
.me-text strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 750; flex: none; font-size: 13px; letter-spacing: .02em; }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 32px; background: var(--topbar-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.topbar-spacer { flex: 1; }
.menu-btn, .topbar-brand { display: none; }
.topbar-brand { padding: 0; }
.meta-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none !important; max-width: 280px; box-shadow: var(--shadow-sm); }
.meta-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-pill .i { color: var(--fb); width: 16px; height: 16px; }
.meta-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); flex: none; }
.meta-pill.ok .dot { background: #22c55e; box-shadow: 0 0 0 3px var(--ok-ring); }
.meta-pill.warn .dot { background: var(--warn-dot); box-shadow: 0 0 0 3px var(--warn-ring); }
.meta-pill:hover { border-color: var(--line-strong); }
.context-bar { margin: 0 32px 4px; display: flex; align-items: center; gap: 10px; background: var(--info-soft); color: var(--info-ink); border: 1px solid var(--info-line); padding: 10px 12px 10px 14px; border-radius: 12px; font-size: 13.5px; }
.context-bar > span { flex: 1; }
.content { width: 100%; max-width: 2400px; margin: 0 auto; padding: 20px 32px 40px; outline: none; flex: 1; }
/* Telas de formulário ficam numa largura de leitura; as de dados (listas, relatórios) usam a tela inteira. */
body:is([data-route="new"], [data-route="connection"], [data-route="account"], [data-route="settings"]) .content { max-width: 1240px; }
.app-footer { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; padding: 0 32px 24px; }
.app-footer a { color: var(--muted); font-weight: 500; }
.page-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 80px 0; justify-content: center; }
.scrim { display: none; }
.tabbar { display: none; }
.logout-btn span { display: none; }
/* Menu recolhido (computador): a barra lateral fica só com os ícones; o nome aparece ao passar o mouse. */
@media (min-width: 861px) {
    .menu-btn { display: inline-grid; margin-left: -10px; }
    .shell { transition: grid-template-columns .2s ease; }
    .nav-collapsed .shell { grid-template-columns: 76px minmax(0, 1fr); }
    .nav-collapsed .sidebar { padding: 18px 12px 14px; }
    .nav-collapsed .brand { justify-content: center; padding: 4px 0 22px; }
    .nav-collapsed .brand [data-app-name], .nav-collapsed .nav-text, .nav-collapsed .me-text { display: none; }
    .nav-collapsed .nav a { position: relative; justify-content: center; padding: 0; }
    .nav-collapsed .nav-label { font-size: 0; padding: 0; margin: 10px 8px; border-top: 1px solid var(--line); }
    .nav-collapsed .nav-count { position: absolute; top: 2px; right: 0; min-width: 18px; padding: 0 4px; font-size: 10px; line-height: 16px; }
    .nav-collapsed .nav-dot { position: absolute; top: 9px; right: 12px; margin: 0; }
    .nav-collapsed .me { flex-direction: column; padding: 4px 0 0; }
}

/* Cabeçalhos e cartões */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; letter-spacing: -.025em; font-weight: 780; line-height: 1.2; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 15px; max-width: 640px; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 6px; display: block; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.card-body { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h2 { font-size: 16px; font-weight: 720; display: flex; align-items: center; gap: 8px; }
.card-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
details.card > summary { list-style: none; cursor: pointer; flex-wrap: nowrap; }
details.card > summary > div { flex: 1; min-width: 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary .chev { transition: transform .2s; color: var(--muted); }
details.card[open] > summary .chev { transform: rotate(90deg); }
details.card:not([open]) > summary { border-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.section-title { font-size: 16px; font-weight: 720; margin: 28px 0 12px; }

/* Indicadores */
/* Período do Início (Hoje, Ontem, 7 dias, 30 dias, Tudo) */
.home-period { margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 620; }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-ink); }
.kpi-icon.blue { background: var(--blue-soft); color: var(--fb); }
.kpi-icon.amber { background: var(--amber-soft); color: var(--amber); }
.kpi-icon.violet { background: var(--violet-soft); color: var(--violet); }
.kpi strong { font-size: 28px; font-weight: 780; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 12.5px; }
.kpi.highlight { background: linear-gradient(140deg, #1e3a8a 0%, #1d4ed8 60%, #2563eb 100%); color: #fff; border-color: transparent; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi.highlight::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(147, 197, 253, .35), transparent 70%); }
.kpi.highlight .kpi-top, .kpi.highlight small { color: rgba(255, 255, 255, .72); }
.kpi.highlight .kpi-icon { background: rgba(255, 255, 255, .16); color: #fff; }

/* Selos, avisos e estados vazios */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.badge.err { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.badge.info { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }
.badge.plain::before, .badge.nodot::before { display: none; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; border: 1px solid; }
.alert .i { margin-top: 1px; }
.alert > div, .alert > span { flex: 1; min-width: 0; }
.alert strong { display: block; margin-bottom: 1px; }
.alert a { color: inherit; text-decoration: underline; }
.alert .btn { flex: none; }
.alert-info { background: var(--info-soft); border-color: var(--info-line); color: var(--info-ink); }
.alert-warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-ink); }
.alert-error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-ink); }
.alert-success { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok-ink); }
.stack > .alert, .page-alert { margin-bottom: 0; }
.page-alert { margin-bottom: 18px; }
.empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 8px; flex: none; }
.empty-icon .i { width: 26px; height: 26px; }
.empty strong { font-size: 16px; }
.empty p { color: var(--muted); max-width: 440px; }
.empty .btn { margin-top: 10px; }
.skeleton { background: linear-gradient(90deg, var(--skeleton-a) 25%, var(--skeleton-b) 50%, var(--skeleton-a) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Primeiros passos */
.onboarding { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; margin-bottom: 20px; }
.onboarding-intro { padding: 28px; background: var(--hero); color: #fff; position: relative; overflow: hidden; }
.onboarding-intro::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .32), transparent 70%); }
.onboarding-intro .pill-glass { position: relative; }
.onboarding-intro h2 { font-size: 22px; letter-spacing: -.015em; margin: 14px 0 8px; line-height: 1.25; position: relative; }
.onboarding-intro p { color: rgba(255, 255, 255, .78); position: relative; max-width: 380px; }
.onboarding-steps { padding: 8px 22px; }
.ob-step { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ob-step:last-child { border-bottom: 0; }
.ob-num { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-weight: 750; color: var(--muted); flex: none; font-size: 13px; }
.ob-step.done .ob-num { background: var(--ok-solid); border-color: var(--ok-solid); color: #fff; }
.ob-step.current .ob-num { border-color: var(--brand-ink); color: var(--brand-ink); box-shadow: 0 0 0 4px var(--focus-soft); }
.ob-text { flex: 1; min-width: 0; }
.ob-text strong { display: block; font-weight: 680; }
.ob-step.done .ob-text strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted-2); }
.ob-text small { color: var(--muted); font-size: 13px; }
.pill-glass { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 12.5px; font-weight: 650; color: #fff; }
.pill-glass .i { color: var(--accent); width: 16px; height: 16px; }

/* Listas e tabelas */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none !important; font-weight: inherit; transition: background .12s; cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface-2); }
.list-main { flex: 1; min-width: 0; }
.list-main strong { display: block; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.list-metrics { display: flex; gap: 26px; text-align: right; }
.metric small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.metric b { font-size: 15px; font-variant-numeric: tabular-nums; }
.thumb { width: 44px; height: 44px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); flex: none; display: grid; place-items: center; color: var(--muted-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-box { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search-box .i { position: absolute; left: 12px; top: 12px; color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 38px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 12px; font-weight: 650; color: var(--muted); text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:is([data-open], [data-acct-open]) { cursor: pointer; }
.table tbody tr:is([data-open], [data-acct-open]):hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 500; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.cell-main strong { display: block; font-weight: 680; }
.cell-main small { color: var(--muted); font-size: 12.5px; }
.row-error { color: var(--danger); font-size: 12px; margin-top: 4px; max-width: 420px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
/* Notebooks: colunas mais justas para a linha inteira, com os botões, caber sem rolar para o lado. */
@media (min-width: 861px) and (max-width: 1400px) {
    .table th, .table td { padding-left: 9px; padding-right: 9px; }
    .row-actions { gap: 2px; }
}
.table-foot { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Assistente de campanha */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.stepper { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper button { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 620; font-size: 13px; white-space: nowrap; flex: none; }
.stepper .n { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 750; }
.stepper .n .i { width: 14px; height: 14px; stroke-width: 2.6; }
.stepper button.active { border-color: var(--brand-ink); color: var(--brand-ink); background: var(--brand-50); }
.stepper button.active .n { background: var(--brand); color: #fff; }
.stepper button.done { color: var(--ink-2); }
.stepper button.done .n { background: var(--ok-solid); color: #fff; }
.stepper button:disabled { opacity: .6; cursor: default; }
.wizard-card .card-body { padding: 26px; }
.step-title { font-size: 20px; font-weight: 760; letter-spacing: -.015em; }
.step-sub { color: var(--muted); margin: 4px 0 22px; }
.wizard-nav { display: flex; align-items: center; gap: 12px; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.preview-col { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.preview-label { font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.pager { display: inline-flex; align-items: center; gap: 2px; }
.pager em { font-style: normal; font-size: 12.5px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.objective { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--objective-ink); }
.objective-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.objective strong { display: block; font-weight: 720; }
.objective small { color: var(--accent-ink); font-size: 12.5px; }
.objective .badge { margin-left: auto; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--surface); text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; min-width: 0; }
.pick:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-2); }
.pick.selected { border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--focus-soft); background: var(--brand-50); }
.pick:disabled { opacity: .5; }
.pick-text { min-width: 0; flex: 1; }
.pick strong { display: block; font-size: 14px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick small { color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 0 10px; }
/* Várias páginas: cada cartão tem a marca de escolhida, cheia quando a página entra na criação. */
.pick-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s; }
.pick-check .i { width: 13px; height: 13px; stroke-width: 3; }
.pick.selected .pick-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.pick:disabled .pick-check { visibility: hidden; }
.pick-tag { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.pick-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-50); flex: none; overflow: hidden; display: grid; place-items: center; font-weight: 750; color: var(--brand-ink); font-size: 13px; }
.pick-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 28px; border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; min-height: 180px; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand-ink); background: var(--brand-50); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .empty-icon { margin-bottom: 4px; }
.dropzone strong { font-weight: 680; }
.dropzone small { color: var(--muted); font-size: 12.5px; }
.dropzone.has-image { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 0; padding: 12px; border-style: solid; gap: 14px; }
.dropzone.has-image img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.dropzone.has-image strong, .dropzone.has-image small { display: block; }
.dropzone.has-image strong { overflow-wrap: anywhere; }
.field > .segmented { align-self: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:not(:empty) { margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 5px 0 11px; border-radius: 99px; background: var(--brand-50); color: var(--brand-ink); font-weight: 620; font-size: 13px; border: 1px solid var(--brand-line); max-width: 100%; }
.chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--brand-muted); text-transform: uppercase; letter-spacing: .04em; }
.chip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: inherit; flex: none; }
.chip button:hover { background: var(--brand-hover); }
.chip button .i { width: 13px; height: 13px; stroke-width: 2.4; }
.chip.interest { background: var(--violet-soft); color: var(--violet-ink); border-color: var(--violet-line); }
.combo { position: relative; }
.combo > .i { position: absolute; left: 12px; top: 12px; color: var(--muted); pointer-events: none; }
.combo input { padding-left: 38px; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 300px; overflow: auto; padding: 6px; }
.combo-list button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; text-align: left; }
.combo-list button > .i { color: var(--muted); }
.combo-list button:hover, .combo-list button.active { background: var(--surface-2); }
.combo-list button > span:nth-child(2) { flex: 1; min-width: 0; }
.combo-list strong { display: block; font-weight: 620; }
.combo-list small { color: var(--muted); font-size: 12px; display: block; }
.combo-type { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted-2); letter-spacing: .04em; white-space: nowrap; }
.combo-empty { padding: 12px; color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.estimate { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; }
.estimate .kpi-icon { flex: none; }
.estimate div { flex: 1; }
.estimate strong { display: block; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.estimate small { color: var(--muted); font-size: 12.5px; }
.option-box { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.review { display: grid; gap: 10px; }
.review-item { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; align-items: flex-start; }
.review-item > .kpi-icon { flex: none; }
.review-item > div { flex: 1; min-width: 0; }
.review-item h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.review-item p { color: var(--ink); overflow-wrap: anywhere; }
.review-item p + p { margin-top: 2px; }
.review-item .muted { font-size: 13px; }
.publishing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 16px; }
.publishing .ring { width: 64px; height: 64px; border-radius: 50%; border: 5px solid var(--brand-50); border-top-color: var(--brand-ink); animation: spin 1s linear infinite; }
.publishing h2 { font-size: 20px; letter-spacing: -.01em; }
.publishing p { color: var(--muted); max-width: 440px; }
.publishing .big-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.publishing .big-icon.err { background: var(--danger-soft); color: var(--danger); }
.publishing .big-icon .i { width: 36px; height: 36px; stroke-width: 2.2; }
.publishing .alert { text-align: left; max-width: 520px; }
.progress-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; text-align: left; }
.progress-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.progress-list li .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.progress-list li.done { color: var(--ink-2); }
.progress-list li.done .dot { background: var(--ok-solid); border-color: var(--ok-solid); color: #fff; }
.progress-list li.done .dot .i { width: 12px; height: 12px; stroke-width: 3; }
.progress-list li.now { color: var(--ink); font-weight: 620; }
.progress-list li.now .dot { border-color: var(--brand-ink); border-right-color: transparent; animation: spin .8s linear infinite; }
.publishing .big-icon.warn { background: var(--warn-soft); color: var(--warn); }
.publishing .big-icon.wait { background: var(--info-soft); color: var(--info); }
/* Fila com ritmo: página tirada da fila e o botão de tirar, ao lado de cada uma que espera a vez. */
.batch-item.cancelled { opacity: .75; }
.batch-item.cancelled .dot { background: var(--surface-2); color: var(--muted); }
.batch-item .batch-dequeue { flex: none; align-self: center; font-size: 12.5px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.settings-sub { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.settings-sub + .muted { margin-bottom: 14px; font-size: 13.5px; }
input[type=datetime-local] { min-width: 0; }
/* Criação em massa: uma linha por página, com a situação da campanha dela. */
.batch-meter { width: min(420px, 100%); height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.batch-meter i { display: block; width: 0; height: 100%; background: var(--brand); border-radius: inherit; transition: width .3s; }
.batch-list { position: relative; list-style: none; padding: 0; margin: 4px 0 0; width: 100%; max-width: 560px; display: grid; gap: 6px; text-align: left; max-height: 440px; overflow: auto; }
.batch-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.batch-item .dot { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.batch-item .dot .i { width: 12px; height: 12px; stroke-width: 3; }
.batch-item.creating { border-color: var(--brand-line); background: var(--brand-50); }
.batch-item.creating .dot { border-color: var(--brand-ink); border-right-color: transparent; animation: spin .8s linear infinite; }
.batch-item.done .dot { background: var(--ok-solid); border-color: var(--ok-solid); color: #fff; }
.batch-item.failed { border-color: var(--danger-line); }
.batch-item.failed .dot { background: var(--danger-solid); border-color: var(--danger-solid); color: #fff; }
.batch-text { flex: 1; min-width: 0; }
.batch-text strong { display: block; font-weight: 650; font-size: 13.5px; overflow-wrap: anywhere; }
.batch-text small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.batch-item.failed .batch-text > small:first-of-type { color: var(--danger-ink); }
.batch-text .batch-warn { display: flex; gap: 5px; align-items: flex-start; color: var(--warn-ink); margin-top: 3px; }
.batch-warn .i { width: 14px; height: 14px; flex: none; margin-top: 2px; }
/* Revisão com várias páginas: o nome final de cada campanha e do conjunto. */
.review-pages { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.review-pages li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.review-pages .pick-avatar { width: 32px; height: 32px; font-size: 11px; }
.review-pages li > span:last-child { min-width: 0; }
.review-pages b { display: block; font-weight: 650; overflow-wrap: anywhere; }
.review-pages small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.preview-page { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--muted); }
.preview-page b { color: var(--ink); }

/* Tags de páginas: a cor vem de uma paleta fixa (tag-<cor>), sem estilo inline. */
.tag-blue { --tag: #2563eb; }
.tag-green { --tag: #16a34a; }
.tag-amber { --tag: #d97706; }
.tag-red { --tag: #dc2626; }
.tag-violet { --tag: #7c3aed; }
.tag-pink { --tag: #db2777; }
.tag-cyan { --tag: #0891b2; }
.tag-slate { --tag: #64748b; }
.tag-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tag, var(--muted-2)); flex: none; }
.tag-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tag-toggle { display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: 100%; padding: 0 13px 0 8px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 620; font-size: 13px; transition: border-color .15s, background .15s, color .15s; }
.tag-toggle .tag-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tag-toggle em { font-style: normal; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag-toggle:hover:not(:disabled) { border-color: var(--line-hover); background: var(--surface-2); }
.tag-toggle[aria-pressed="true"] { border-color: var(--brand-ink); background: var(--brand-50); color: var(--brand-ink); }
.tag-toggle[aria-pressed="true"] em { color: var(--brand-muted); }
.tag-toggle:disabled { opacity: .5; cursor: not-allowed; }
/* O disjuntor de cada tag: ligado, todas as páginas da tag entram. */
.mini-switch { position: relative; width: 30px; height: 18px; border-radius: 99px; background: var(--line-strong); flex: none; transition: background .2s; }
.mini-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.tag-toggle[aria-pressed="true"] .mini-switch { background: var(--brand); }
.tag-toggle[aria-pressed="true"] .mini-switch::after { transform: translateX(12px); }
.page-count { display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.page-count .link-btn { font-size: 12.5px; }
.tag-hint { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin: -2px 0 10px; }
.tag-hint .i { width: 15px; height: 15px; flex: none; }
.page-search { max-width: none; margin-bottom: 12px; }
.page-search-empty { margin: 4px 0 0; font-size: 13px; }
.tag-list { display: grid; }
.tag-row { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.tag-row:last-child { border-bottom: 0; }
.tag-swatch { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #ffffff; background: var(--tag); }
.tag-row-main { flex: 1; min-width: 0; }
.tag-row-main strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.tag-row-main small { color: var(--muted); font-size: 12.5px; }
.tag-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-page { display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 220px; padding: 0 10px 0 3px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tag-page > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-page .pick-avatar { width: 22px; height: 22px; font-size: 9px; }
.tag-page.more { padding: 0 10px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--tag); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow .15s; }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.tag-search { max-width: none; }
.tag-page-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.switch-list { display: grid; border: 1px solid var(--line); border-radius: 14px; max-height: min(420px, 48vh); overflow: auto; }
.switch-list .switch-row { justify-content: flex-start; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.switch-list .switch-row:last-child { border-bottom: 0; }
.switch-row > span:nth-child(2) { flex: 1; min-width: 0; }
.switch-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch-row .pick-avatar { width: 36px; height: 36px; }
.toolbar .list-filter { width: auto; min-width: 180px; max-width: 260px; }

/* Prévia do anúncio (estilo feed do Facebook) */
.fbp { background: var(--ad-bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-family: "Segoe UI", Helvetica, Arial, sans-serif; }
.fbp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.fbp-head > div { flex: 1; min-width: 0; }
.fbp-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); overflow: hidden; display: grid; place-items: center; font-weight: 750; color: var(--brand-ink); flex: none; font-size: 13px; }
.fbp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fbp-head strong { display: block; font-size: 14px; color: var(--ad-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbp-head small { color: var(--ad-muted); font-size: 12px; display: flex; align-items: center; gap: 4px; }
/* Nome da página e "· Seguir" em azul, como a Meta mostra os anúncios de curtir página. */
.fbp-head strong.fbp-title { display: flex; gap: 4px; min-width: 0; }
.fbp-title .fbp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fbp-follow { flex: none; color: var(--fb); font-weight: 650; }
.fbp-more { color: var(--ad-muted); }
.fbp-text { padding: 0 14px 12px; font-size: 14px; color: var(--ad-ink); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 126px; overflow: hidden; line-height: 1.35; }
.fbp-text.placeholder { color: var(--ad-placeholder); }
.fbp-image { aspect-ratio: 1 / 1; background: linear-gradient(145deg, var(--ad-image-a), var(--ad-image-b)); display: grid; place-items: center; color: var(--ad-image-ink); overflow: hidden; }
.fbp-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fbp-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.fbp-placeholder .i { width: 36px; height: 36px; stroke-width: 1.4; }
.fbp-foot { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--ad-foot); }
.fbp-foot > div { flex: 1; min-width: 0; }
.fbp-foot small { color: var(--ad-muted); font-size: 11.5px; text-transform: uppercase; display: block; }
.fbp-foot strong { display: block; font-size: 15px; color: var(--ad-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbp-cta { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 7px; background: var(--ad-cta); font-weight: 650; color: var(--ad-ink); font-size: 14px; white-space: nowrap; }
.fbp-cta .i { width: 16px; height: 16px; }
.fbp-actions { display: flex; justify-content: space-around; padding: 4px 8px; border-top: 1px solid var(--ad-line); color: var(--ad-muted); font-size: 13px; font-weight: 600; }
.fbp-actions span { display: flex; align-items: center; gap: 6px; padding: 7px; }
.fbp-actions .i { width: 16px; height: 16px; }
.summary { padding: 16px 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.summary-row span { color: var(--muted); flex: none; }
.summary-row b { text-align: right; font-weight: 620; min-width: 0; overflow-wrap: anywhere; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.summary-total span { color: var(--muted); font-size: 13px; }
.summary-total strong { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.summary small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* Conexão */
.conn { display: flex; gap: 18px; align-items: center; padding: 22px; flex-wrap: wrap; }
.conn-icon { width: 58px; height: 58px; border-radius: 17px; background: var(--fb); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 10px 24px -12px rgba(24, 119, 242, .8); }
.conn-icon .i { width: 32px; height: 32px; }
.conn.off .conn-icon { background: var(--surface-2); color: var(--muted-2); box-shadow: none; border: 1px solid var(--line); }
.conn-text { flex: 1; min-width: 220px; }
.conn-text strong { font-size: 18px; display: block; margin: 6px 0 2px; letter-spacing: -.01em; }
.conn-text small { color: var(--muted); font-size: 13.5px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { padding: 14px 22px; border-right: 1px solid var(--line); min-width: 0; }
.fact:last-child { border-right: 0; }
.fact small { display: block; color: var(--muted); font-size: 12px; }
.fact b { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.conn-alerts { padding: 0 22px 22px; display: grid; gap: 10px; }
.conn-alerts:empty { display: none; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.choice label { position: relative; display: flex; gap: 12px; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.choice label:hover { border-color: var(--line-strong); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--focus-soft); background: var(--brand-50); }
.choice label:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.choice label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; margin-top: 1px; display: grid; place-items: center; background: var(--input-bg); }
.choice label:has(input:checked) .choice-radio { border-color: var(--brand-ink); }
.choice label:has(input:checked) .choice-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.choice strong { display: block; font-weight: 700; margin-bottom: 2px; }
.choice small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.field > .choice { margin-bottom: 0; }
.field-stack { display: flex; flex-direction: column; gap: 6px; }
/* Público e opções de orçamento padrão do espaço: botão para salvar os da etapa, ou o aviso de que já são o padrão. */
.step-default { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed var(--line); }
.step-default small { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 220px; }
.step-default-on { display: inline-flex; align-items: center; gap: 6px; color: var(--ok-ink); font-size: 13px; font-weight: 600; }
.step-default-on .i { width: 16px; height: 16px; }
.check + .step-default { margin-top: 18px; }
.howto { border: 1px solid var(--line); border-radius: 14px; margin: 4px 0 18px; background: var(--surface-2); }
.howto summary { padding: 13px 16px; cursor: pointer; font-weight: 650; display: flex; align-items: center; gap: 8px; list-style: none; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.howto[open] summary .chev { transform: rotate(90deg); }
.howto-body { padding: 0 16px 16px; }
.steps-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.copy-list { display: grid; gap: 12px; }
.copy-item > span { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 5px; }
.copy-item > span em { font-style: normal; font-weight: 500; color: var(--muted); text-align: right; }
.copy { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 3px 3px 3px 12px; min-width: 0; }
.copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.scopes { display: flex; flex-wrap: wrap; gap: 6px; }
.scopes code { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; }

/* Contas de anúncio */
.acct-filters { margin-bottom: 18px; }
.acct-pickers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .8fr); gap: 0 14px; padding: 16px 18px 0; }
.acct-pickers .field { margin-bottom: 16px; }
.refreshing { opacity: .55; transition: opacity .2s; }
.hint-card { margin-top: 18px; }
.hint-card .steps-list { margin-bottom: 14px; }
.scopes small { align-self: center; font-size: 12.5px; }
.account-card { margin-bottom: 20px; }
.account-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; flex-wrap: wrap; }
.account-head .kpi-icon { flex: none; }
.account-text { flex: 1; min-width: 200px; }
.account-text strong { display: block; font-size: 16px; font-weight: 720; overflow-wrap: anywhere; }
.account-text small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.fact .link-btn { margin-top: 6px; font-size: 13px; }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: 7px 0 3px; }
.meter i { display: block; width: 0; height: 100%; background: var(--brand); border-radius: inherit; }
.meter.high i { background: var(--warn-dot); }
#acct-objective { width: auto; min-width: 190px; }
.acct-table th, .acct-table td { padding-left: 12px; padding-right: 12px; }
.acct-table .cell-main { min-width: 220px; }
.acct-table td.num .sub { white-space: normal; }
.row-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.row-tags .badge { height: 20px; padding: 0 8px; font-size: 11px; }
.thumb-likes { background: var(--brand-50); border-color: var(--brand-line); color: var(--brand-ink); }
.detail-period { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.detail-period .i { width: 15px; height: 15px; }
.modal-body .section-title { display: flex; align-items: center; gap: 8px; margin: 24px 0 12px; }
.modal-body .section-title .muted { font-weight: 600; font-size: 13px; }
.set-cards { display: grid; gap: 12px; }
.set-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.set-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 8px; }
.set-main { flex: 1; min-width: 0; }
.set-main strong { display: block; font-weight: 680; overflow-wrap: anywhere; }
.set-main small { display: block; color: var(--muted); font-size: 12.5px; }
.set-main .link-btn { font-size: 12.5px; margin-top: 2px; }
.set-numbers { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 14px 12px; font-size: 12.5px; color: var(--muted); }
.set-numbers span { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.set-numbers b { color: var(--ink); font-variant-numeric: tabular-nums; }
.set-numbers .link-btn { font-size: 12.5px; }
.leaf-rows { border-top: 1px solid var(--line); background: var(--surface-2); }
.leaf-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.leaf-row:last-child { border-bottom: 0; }
.leaf-row .thumb { width: 42px; height: 42px; }
.leaf-row .set-main strong { font-weight: 620; font-size: 13.5px; }
.set-empty { padding: 12px 14px; font-size: 13px; }
.inline-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 14px 12px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn-ink); font-size: 13px; }
.leaf-rows .inline-confirm { margin: 10px 14px; }
.inline-confirm > span { flex: 1; min-width: 180px; }

/* Pagamentos: contador vermelho no menu (e ponto no botão do menu do celular) com as contas de pagamento pendente;
   cartões das contas pendentes com o atalho para a cobrança na Meta. */
.nav a .nav-count.err, .nav a.active .nav-count.err { background: var(--danger-solid); border-color: var(--danger-solid); color: #fff; }
.menu-btn { position: relative; }
.menu-dot { position: absolute; top: 7px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger-solid); box-shadow: 0 0 0 2px var(--surface); }
.kpi-icon.red { background: var(--danger-soft); color: var(--danger); }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; margin-bottom: 20px; }
.pay-card { display: flex; flex-direction: column; border-color: var(--danger-line); }
.pay-card .account-head { padding-bottom: 10px; }
.pay-why { padding: 0 22px 16px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.pay-card .fact small + b + small { margin-top: 4px; }
.fact b.pay-amount { font-size: 20px; font-weight: 780; color: var(--danger); font-variant-numeric: tabular-nums; }
.pay-actions { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px 20px; border-top: 1px solid var(--line); margin-top: auto; }
.pay-actions .btn-lg { width: 100%; }
.pay-note { color: var(--muted); font-size: 12.5px; text-align: center; }
.pay-wait { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.pay-wait > span:not(.spinner) { flex: 1; min-width: 180px; }
.pay-wait .spinner { color: var(--brand); }
.pay-clear { display: flex; align-items: center; gap: 14px; padding: 18px 22px; margin-bottom: 20px; }
.pay-clear-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); flex: none; }
.pay-clear strong { font-size: 15px; }
.pay-clear p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.pay-table .cell-main { min-width: 220px; }
.pay-table .cell-main small { overflow-wrap: anywhere; }
/* Aviso do Início: os botões ficam ao lado do texto (no celular, embaixo, em largura cheia). */
.pay-alert { flex-wrap: wrap; }
.alert > .pay-alert-actions { flex: none; align-self: center; display: flex; gap: 8px; flex-wrap: wrap; }
.pay-alert .btn { text-decoration: none; }
.pay-alert .btn-danger { color: #fff; }
.pay-alert .btn-ghost { color: var(--danger-ink); }

/* Relatórios: filtros, números, alertas e gráficos (SVG do próprio painel, cores --viz-*) */
.rep-filters { margin-bottom: 18px; }
.rep-filter-sum { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; min-width: 0; }
.rep-filter-sum::-webkit-details-marker { display: none; }
.rep-filter-sum > .i:first-child { color: var(--brand-ink); }
.rep-filter-sum b { font-weight: 700; }
.rep-filter-sum em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rep-filter-sum .chev { transition: transform .2s; color: var(--muted); flex: none; }
.rep-filter-box[open] > .rep-filter-sum { border-bottom: 1px solid var(--line); }
.rep-filter-box[open] > .rep-filter-sum .chev { transform: rotate(90deg); }
.rep-filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; padding: 16px 18px 0; }
.rep-filter-grid .field { margin-bottom: 16px; }
.rep-filter-grid .segmented { align-self: flex-start; flex-wrap: nowrap; }
.rep-filter-grid .rep-wide { grid-column: span 2; }
.rep-filter-foot { padding: 0 18px 14px; }
.rep-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rep-dates input { padding: 0 8px; }
.rep-picker { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--input-bg); text-align: left; font-weight: 550; min-width: 0; }
.rep-picker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-picker .i { color: var(--muted); }
.rep-picker:hover:not(:disabled) { border-color: var(--line-hover); }
.rep-sync { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--info-soft); border: 1px solid var(--info-line); color: var(--info-ink); font-size: 13.5px; margin-bottom: 18px; }
.rep-sync.idle { background: var(--surface); border-color: var(--line); color: var(--muted); }
.rep-sync .i { flex: none; }
.rep-delta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.rep-delta .i { width: 15px; height: 15px; }
.rep-delta.good { color: var(--ok); }
.rep-delta.bad { color: var(--danger); }
.kpi.highlight .rep-delta, .kpi.highlight .rep-delta .muted { color: rgba(255, 255, 255, .8); }
.rep-kpi-note { display: flex; align-items: center; gap: 5px; }
.rep-kpi-note.warn { color: var(--warn); }
.rep-wait { color: var(--muted-2); }
.rep-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 20px; }
.rep-fact { padding: 14px 18px; border-right: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rep-fact:last-child { border-right: 0; }
.rep-fact > small { color: var(--muted); font-size: 12px; font-weight: 600; }
.rep-fact b { font-size: 18px; font-weight: 750; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rep-fact .rep-delta { font-size: 12px; font-weight: 500; }
.rep-alerts { margin-bottom: 20px; }
.rep-alert { display: flex; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.rep-alert:last-child { border-bottom: 0; }
.rep-alert-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.rep-alert.critical .rep-alert-icon { background: var(--danger-soft); color: var(--danger); }
.rep-alert.warning .rep-alert-icon { background: var(--warn-soft); color: var(--warn); }
.rep-alert.good .rep-alert-icon { background: var(--ok-soft); color: var(--ok); }
.rep-alert-main { flex: 1; min-width: 0; }
.rep-alert-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rep-alert-top strong { font-weight: 700; }
.rep-alert-tag { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px; border: 1px solid; }
.rep-alert.critical .rep-alert-tag { color: var(--danger-ink); background: var(--danger-soft); border-color: var(--danger-line); }
.rep-alert.warning .rep-alert-tag { color: var(--warn-ink); background: var(--warn-soft); border-color: var(--warn-line); }
.rep-alert.good .rep-alert-tag { color: var(--ok-ink); background: var(--ok-soft); border-color: var(--ok-line); }
.rep-alert-name { display: block; max-width: 100%; margin-top: 3px; text-align: left; font-weight: 650; color: var(--brand-ink); overflow-wrap: anywhere; }
.rep-alert-name:hover { text-decoration: underline; }
.rep-alert-name small { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 6px; }
.rep-alert-main p { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
.rep-alert-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-self: center; }
.rep-calm { display: flex; gap: 12px; align-items: flex-start; padding: 16px 22px; color: var(--ink-2); font-size: 13.5px; }
.rep-calm > .i { color: var(--ok); margin-top: 2px; }
.rep-calm strong { display: block; }
.rep-more { padding: 10px 22px 14px; border-top: 1px solid var(--line); }
.card-body .rep-more { padding: 12px 0 0; border-top: 0; }
.rep-card { margin-bottom: 20px; }
.rep-card .card-head .segmented { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.rep-card .card-head .segmented::-webkit-scrollbar { display: none; }
.rep-card .card-head .segmented button { flex: none; }
.rep-chart-box { padding: 14px 18px 12px; }
.rep-chart { width: 100%; min-height: 60px; }
.rep-svg { display: block; overflow: visible; }
.rep-grid-line { stroke: var(--viz-grid); stroke-width: 1; shape-rendering: crispEdges; }
.rep-grid-line.base { stroke: var(--viz-base); }
.rep-axis { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rep-axis.title { font-weight: 600; }
.rep-axis.ref { fill: var(--ink-2); font-weight: 650; }
.rep-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rep-line.cur { stroke: var(--viz-1); }
.rep-line.prev { stroke: var(--viz-prev); }
.rep-area { fill: var(--viz-1); fill-opacity: .1; }
.rep-dot { fill: var(--viz-1); stroke: var(--surface); stroke-width: 2; }
.rep-cross { stroke: var(--muted-2); stroke-width: 1; }
.rep-hit { fill: transparent; cursor: crosshair; touch-action: pan-y; }
.rep-col { fill: var(--viz-1); }
.rep-ref { stroke: var(--muted-2); stroke-width: 1; }
.rep-ref.target { stroke: var(--viz-bad); stroke-width: 1.5; }
.rep-ref.soft { stroke: var(--viz-base); }
.rep-pt { cursor: pointer; outline: none; }
.rep-pt-hit { fill: transparent; }
.rep-pt-dot { fill: var(--viz-1); stroke: var(--surface); stroke-width: 2; }
.rep-pt.bad .rep-pt-dot { fill: var(--viz-bad); }
.rep-pt:hover .rep-pt-dot, .rep-pt:focus-visible .rep-pt-dot { stroke: var(--ink); }
.rep-pt:focus-visible .rep-pt-hit { stroke: var(--focus); stroke-width: 2; }
.rep-chart-empty { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 4px; font-size: 13.5px; }
.rep-chart-empty .i { color: var(--muted-2); flex: none; }
.rep-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.rep-legend:empty { display: none; }
.rep-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rep-legend .i { color: var(--danger); }
.rep-key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--viz-1); flex: none; }
.rep-key.prev { background: var(--viz-prev); }
.rep-key.mark { width: 2px; height: 12px; background: var(--ink-2); }
.rep-key.mark.target { background: var(--viz-bad); }
.rep-key.dot { width: 10px; height: 10px; border-radius: 50%; }
.rep-key.dot.bad { background: var(--viz-bad); }
.rep-key.g0, .rep-key.g1, .rep-key.g2 { width: 12px; height: 10px; border-radius: 3px; }
.rep-key.g1 { background: var(--viz-2); }
.rep-key.g2 { background: var(--viz-prev); }
.rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.rep-rows { display: grid; gap: 2px; }
.rep-row { display: grid; gap: 5px; width: calc(100% + 20px); margin: 0 -10px; padding: 8px 10px; border-radius: 10px; text-align: left; color: inherit; }
button.rep-row:hover { background: var(--surface-2); }
.rep-row-top { display: flex; flex-direction: column; min-width: 0; }
.rep-row-top b { font-weight: 650; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-row-top small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-row-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.rep-track { position: relative; height: 12px; }
.rep-fill { display: block; width: 0; height: 100%; background: var(--viz-1); border-radius: 0 4px 4px 0; transition: width .3s; }
.rep-fill.bad { background: var(--viz-bad); }
.rep-fill.g1 { background: var(--viz-2); }
.rep-fill.g2 { background: var(--viz-prev); }
.rep-mark { position: absolute; top: -3px; bottom: -3px; left: 0; width: 2px; margin-left: -1px; background: var(--ink-2); border-radius: 1px; }
.rep-mark.target { background: var(--viz-bad); }
.rep-row-bar em { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 76px; font-style: normal; font-weight: 700; font-size: 13px; line-height: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-row-bar em .i { color: var(--danger); }
.rep-row-bar em small { color: var(--muted); font-weight: 500; font-size: 11.5px; margin-left: 4px; }
.rep-aud-start { padding: 18px 22px 22px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; justify-content: space-between; }
.rep-aud-start p { color: var(--muted); max-width: 520px; }
.rep-aud-best { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok-ink); border: 1px solid var(--ok-line); font-size: 13px; margin-bottom: 14px; }
.rep-aud-best .i { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.rep-age { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rep-age:last-child { border-bottom: 0; }
.rep-age-label { font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; }
.rep-age-bars { display: grid; gap: 4px; }
.rep-age .rep-track { height: 9px; }
.rep-sort { display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; font-weight: 650; white-space: nowrap; }
.rep-sort:hover, .rep-sort.on { color: var(--brand-ink); }
.rep-over, .rep-change { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }
.rep-over .i, .rep-change.bad { color: var(--danger); }
.rep-change.good { color: var(--ok); }
/* Tabela de campanhas: situação com a contagem, totais do que está na tabela e as pausadas/encerradas mais apagadas */
.rep-table-head .segmented { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.rep-table-head .segmented::-webkit-scrollbar { display: none; }
.rep-table-head .segmented button { flex: none; }
.rep-sum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rep-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; min-width: 0; border-right: 1px solid var(--line); }
.rep-sum > div:last-child { border-right: 0; }
.rep-sum small { color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-sum b { font-size: 15px; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-table tr.rep-off .cell-main strong, .rep-table tr.rep-off td.num { color: var(--muted); }
.rep-table .sub.rep-warn { color: var(--warn); font-weight: 650; display: inline-flex; align-items: center; gap: 3px; }
.rep-table td[data-label="Ações"] { width: 1%; white-space: nowrap; }
.rep-ads-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.rep-ads-head .detail-section { margin-bottom: 0; }
.rep-ads-head + .detail-crs { margin-top: 10px; }
.rep-table-toggle { margin-top: 8px; }
.rep-table-toggle summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; cursor: pointer; list-style: none; color: var(--brand-ink); font-weight: 650; font-size: 13px; }
.rep-table-toggle summary::-webkit-details-marker { display: none; }
.rep-table-toggle summary .chev { transition: transform .2s; }
.rep-table-toggle[open] summary .chev { transform: rotate(90deg); }
.rep-table-toggle .table-wrap { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; }
.rep-mini-table th, .rep-mini-table td { padding: 8px 12px; font-size: 13px; }
.rep-mini-table th { position: sticky; top: 0; }
.chart-tip { position: fixed; left: 0; top: 0; z-index: 1100; display: grid; gap: 4px; max-width: 280px; padding: 10px 12px; border-radius: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 12.5px; pointer-events: none; }
.tip-title { font-weight: 700; overflow-wrap: anywhere; }
.tip-row { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tip-row b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.tip-sub { color: var(--muted); font-size: 12px; }
.rep-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 4px 0 18px; }
.rep-minis > div { min-width: 0; overflow: hidden; }
.rep-hint { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12.5px; margin: -6px 0 14px; }
.rep-hint .i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.rep-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.rep-note .i { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* Histórico */
.timeline { padding: 4px 22px; }
.tl { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.tl:last-child { border-bottom: 0; }
.tl-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.tl-icon.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.tl-icon.err { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.tl-icon.fb { background: var(--blue-soft); border-color: var(--info-line); color: var(--fb); }
.tl-body { flex: 1; min-width: 0; }
.tl-body strong { display: block; font-weight: 640; }
.tl-body small { color: var(--muted); font-size: 12.5px; }
.tl time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* Detalhes da campanha */
.detail-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.copy-label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin: 18px 0 8px; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.detail-metrics div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.detail-metrics small { display: block; color: var(--muted); font-size: 12px; }
.detail-metrics b { font-size: 18px; font-variant-numeric: tabular-nums; }
.detail-grid { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; font-size: 13.5px; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.detail-grid .chips { margin: 0; }
.detail-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.detail-top .detail-metrics { flex: 1; margin-bottom: 0; min-width: 0; }
.detail-image { width: 196px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); display: block; flex: none; }
/* Anúncios nos detalhes da campanha: um por linha, com os números de cada um depois de publicado. */
.detail-section { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.detail-crs { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; overflow: hidden; }
.detail-cr { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.detail-cr:last-child { border-bottom: 0; }
.detail-cr .thumb { width: 52px; height: 52px; }
.detail-cr-main { flex: 1; min-width: 0; }
.detail-cr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-cr-top strong { font-weight: 680; overflow-wrap: anywhere; }
.detail-cr-text { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.detail-cr-more { margin-top: 4px; font-size: 13px; }
.detail-cr-more summary { cursor: pointer; color: var(--brand-ink); font-weight: 650; }
.detail-cr-more small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.detail-cr-warn { display: flex; gap: 6px; align-items: flex-start; color: var(--warn); font-size: 12.5px; margin-top: 6px; }
.detail-cr-warn .i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.detail-cr-nums { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.detail-cr-nums b { font-size: 18px; font-weight: 760; }
.detail-cr-nums small { color: var(--muted); font-size: 12px; }
.tip { display: flex; gap: 12px; align-items: flex-start; }
.tip strong { display: block; font-weight: 680; margin-bottom: 2px; }
.tip p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.detail-grid .link-btn { margin-top: 6px; }
.link-btn .i { width: 16px; height: 16px; }

/* Alterar orçamento */
.budget-now { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }
.budget-now span { color: var(--muted); }
.budget-editor { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.budget-editor .icon-btn { width: 50px; height: 50px; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--btn-secondary-bg); color: var(--ink); }
.budget-editor .icon-btn .i { width: 20px; height: 20px; stroke-width: 2.2; }
.budget-editor .affix input { height: 50px; padding: 0 44px; text-align: center; font-size: 22px; font-weight: 760; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.budget-quick { margin-bottom: 16px; }
.budget-quick button { flex: 1; min-width: 56px; }
.budget-diff { display: inline-block; font-style: normal; margin-left: 10px; vertical-align: middle; font-size: 13px; font-weight: 650; letter-spacing: 0; color: var(--muted); }
.budget-diff.up { color: var(--ok); }
.budget-diff.down { color: var(--warn); }

/* Diálogos e notificações */
.modal { border: 0; padding: 0; border-radius: 20px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-xl); color: var(--ink); background: var(--surface); overflow: hidden; }
.modal[open] { display: flex; flex-direction: column; animation: modal-in .18s ease-out; }
.modal.wide { width: min(780px, calc(100vw - 32px)); }
.modal::backdrop { background: var(--backdrop); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 6px; }
.modal-head h2 { font-size: 19px; font-weight: 760; letter-spacing: -.01em; }
.modal-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.modal-title-row { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.modal-title-row .link-btn { font-size: 13px; }
.icon-btn-sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn-sm .i { width: 15px; height: 15px; }
.modal-body { padding: 10px 24px 22px; overflow: auto; }
.modal-body > p { color: var(--ink-2); margin-bottom: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; background: var(--surface-2); border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.secret-box { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 13px; background: var(--toast-bg); color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.45; animation: toast-in .22s ease-out; }
.toast .i { color: var(--accent); margin-top: 1px; }
.toast.error { background: #7f1d15; }
.toast.error .i { color: #ffd2cc; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Telas de acesso */
.auth-body { background: var(--surface); }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-aside { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 0% 0%, #1e3a8a 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, #1e3a5f 0%, transparent 60%), linear-gradient(160deg, #0b1224 0%, #0f172a 55%, #111c33 100%); color: #fff; padding: 36px 56px 0; display: flex; flex-direction: column; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.brand-light { color: #fff; position: relative; }
.auth-pitch { margin-top: auto; max-width: 520px; position: relative; padding-top: 40px; }
.auth-pitch h1 { font-size: 42px; line-height: 1.08; letter-spacing: -.035em; margin: 18px 0 14px; font-weight: 820; }
.auth-pitch p { color: rgba(255, 255, 255, .78); font-size: 16.5px; line-height: 1.55; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .92); font-weight: 520; }
.auth-points .i { color: var(--accent); width: 20px; height: 20px; }
.auth-art { position: relative; height: 280px; margin-top: 44px; flex: none; }
.art-card { position: absolute; left: 0; bottom: -30px; width: 250px; background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); overflow: hidden; transform: rotate(-4deg); }
.art-head { display: flex; gap: 10px; align-items: center; padding: 12px; }
.art-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); }
.art-head strong { font-size: 13px; display: block; }
.art-head small { font-size: 11px; color: var(--muted); }
.art-image { height: 130px; background: linear-gradient(135deg, #dbeafe, #93c5fd); display: grid; place-items: center; color: var(--brand); }
.art-image .i { width: 50px; height: 50px; stroke-width: 1.4; }
.art-cta { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #f0f2f5; font-size: 12px; font-weight: 600; }
.art-cta b { display: flex; gap: 4px; align-items: center; background: #e4e6eb; padding: 6px 9px; border-radius: 6px; }
.art-cta .i { width: 14px; height: 14px; }
.art-stat { position: absolute; left: 215px; bottom: 90px; width: 210px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px; padding: 16px 18px; transform: rotate(3deg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.art-stat small { color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 600; }
.art-stat strong { display: block; font-size: 30px; letter-spacing: -.02em; font-weight: 800; }
.art-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 8px; }
.art-bars i { flex: 1; background: var(--accent); border-radius: 4px; }
.art-bars i:nth-child(1) { height: 30%; opacity: .5; }
.art-bars i:nth-child(2) { height: 45%; opacity: .55; }
.art-bars i:nth-child(3) { height: 38%; opacity: .6; }
.art-bars i:nth-child(4) { height: 60%; opacity: .7; }
.art-bars i:nth-child(5) { height: 72%; opacity: .8; }
.art-bars i:nth-child(6) { height: 66%; opacity: .9; }
.art-bars i:nth-child(7) { height: 100%; }
.auth-main { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 24px 32px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h2 { font-size: 30px; letter-spacing: -.03em; font-weight: 820; margin-bottom: 8px; line-height: 1.15; }
.auth-form > .muted { margin-bottom: 26px; font-size: 15px; }
.auth-form .alert { margin-bottom: 18px; }
.auth-form .check { margin-bottom: 20px; }
.auth-form .btn-block { margin-top: 6px; }
.step-tag { display: inline-block; font-size: 12px; font-weight: 750; color: var(--brand-ink); background: var(--brand-50); padding: 5px 11px; border-radius: 99px; margin-bottom: 14px; }
.auth-switch { text-align: center; color: var(--muted); margin-top: 20px; font-size: 13.5px; }
.auth-note { margin-top: 14px; color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.4; }
.auth-note .i { width: 15px; height: 15px; margin: -2px 4px 0 0; color: var(--brand-ink); }
.auth-legal { margin-top: 44px; display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); }
.auth-legal a { color: var(--muted); font-weight: 500; }
.auth-mobile-brand { display: none; }
.auth-theme { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); }

/* Páginas legais e erro */
.legal-body { background: var(--bg); }
.legal { max-width: 760px; margin: 0 auto; padding: 36px 24px 64px; }
.legal .brand { padding-left: 0; }
.legal h1 { font-size: 34px; letter-spacing: -.03em; margin: 18px 0 6px; font-weight: 800; }
.legal h2 { font-size: 17px; margin: 30px 0 8px; font-weight: 720; }
.legal p { color: var(--ink-2); line-height: 1.7; }
.legal .alert { margin-top: 18px; }
.legal-back { margin-top: 36px; }
.error-page { max-width: 520px; margin: 14vh auto; padding: 24px; text-align: center; }
.error-code { display: inline-block; font-weight: 800; color: var(--brand-ink); background: var(--brand-50); padding: 5px 14px; border-radius: 99px; }
.error-page h1 { font-size: 28px; margin: 16px 0 8px; letter-spacing: -.02em; }
.error-page p { color: var(--muted); margin-bottom: 26px; }

/* Responsivo */
@media (max-width: 1180px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wizard { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 1024px) {
    .split, .wizard { grid-template-columns: minmax(0, 1fr); }
    .preview-col { position: static; width: 100%; max-width: 460px; margin: 0 auto; }
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-aside { display: none; }
    .auth-mobile-brand { display: flex; align-self: center; margin-bottom: 28px; padding: 0; }
}
/* Celular e tablet: o menu lateral vira gaveta e as áreas principais ficam na barra inferior. */
@media (max-width: 860px) {
    html { scroll-padding-top: 76px; scroll-padding-bottom: 96px; }
    .shell { grid-template-columns: minmax(0, 1fr); }
    .main { overflow-x: clip; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    body[data-route="new"] .main { padding-bottom: 0; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(300px, 86vw); z-index: 70; transform: translateX(-102%); transition: transform .24s ease; box-shadow: var(--shadow-xl); padding: calc(16px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left)); overscroll-behavior: contain; }
    body.menu-open { overflow: hidden; }
    body.menu-open .sidebar { transform: none; }
    .scrim { display: block; position: fixed; inset: 0; background: var(--backdrop); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .2s; }
    body.menu-open .scrim { opacity: 1; pointer-events: auto; }
    .nav a { height: 46px; }
    .sidebar .logout-btn { display: inline-flex; align-items: center; width: auto; padding: 0 12px; gap: 6px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 650; font-size: 13px; }
    .sidebar .logout-btn span { display: inline; }
    .menu-btn { display: inline-grid; margin-left: -6px; }
    .topbar { height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); gap: 8px; }
    .topbar-brand { display: flex; min-width: 0; font-size: 17px; gap: 9px; }
    .topbar-brand .logo { width: 30px; height: 30px; border-radius: 9px; }
    .topbar-brand .logo .i { width: 17px; height: 17px; }
    .topbar-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-cta { display: none; }
    .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 4px max(6px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); background: var(--tabbar-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
    .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 58px; padding-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .01em; text-decoration: none !important; }
    .tabbar a > .i { width: 22px; height: 22px; }
    .tabbar a:active { opacity: .7; }
    .tabbar a.active { color: var(--brand-ink); }
    .tabbar a.active::before { content: ""; position: absolute; top: 5px; left: 50%; width: 52px; height: 30px; margin-left: -26px; border-radius: 99px; background: var(--brand-50); z-index: -1; }
    .tabbar a.tabbar-new { color: var(--ink-2); }
    .tabbar-plus { width: 46px; height: 30px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .9); }
    .tabbar-plus .i { width: 20px; height: 20px; stroke-width: 2.4; }
    .tabbar .nav-dot { position: absolute; top: 8px; left: calc(50% + 9px); margin: 0; }
    body[data-route="new"] .tabbar { display: none; }
    /* Teclado aberto: a barra inferior sai do caminho. */
    body:has(:is(input:not([type=checkbox], [type=radio], [type=file]), textarea, select):focus) .tabbar { display: none; }
    .context-bar { margin: 0 16px 4px; flex-wrap: wrap; }
    .content { padding: 12px 16px 28px; }
    .app-footer { padding: 0 16px 20px; }
    .onboarding, .choice, .facts { grid-template-columns: minmax(0, 1fr); }
    .fact { border-right: 0; border-bottom: 1px solid var(--line); }
    .fact:last-child { border-bottom: 0; }
    .page-head { margin-bottom: 18px; gap: 14px; }
    .page-head h1 { font-size: 24px; }
    .page-head p { font-size: 14px; }
    .card-body, .wizard-card .card-body { padding: 18px; }
    .card-head, .list-row, .timeline, .conn { padding-left: 18px; padding-right: 18px; }
    .card-head { padding-top: 16px; padding-bottom: 16px; }
    .conn-alerts { padding: 0 18px 18px; }
    .list-row:active { background: var(--surface-2); }
    .list-metrics { gap: 14px; }
    .list-metrics .metric:nth-child(n+2) { display: none; }
    .toolbar { padding: 12px; }
    .search-box { flex-basis: 100%; max-width: none; min-width: 0; }
    .toolbar .segmented { display: flex; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .toolbar .segmented::-webkit-scrollbar { display: none; }
    .toolbar .segmented button { flex: none; }
    /* Tabelas viram cartões: nome no topo, números em duas colunas e ações embaixo. */
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody { display: block; width: 100%; }
    .table-cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
    .table-cards tbody tr:last-child { border-bottom: 0; }
    .table-cards tbody tr:is([data-open], [data-acct-open]):active { background: var(--surface-2); }
    .table-cards td { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 0; border: 0 !important; text-align: left; }
    .table-cards td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
    .table-cards td.num { text-align: left; white-space: normal; }
    .table-cards td .sub { margin-top: 0; }
    .table-cards td.cell-first, .table-cards td[data-label="Status"], .table-cards td[data-label="Ações"] { grid-column: 1 / -1; }
    .table-cards td.cell-first::before, .table-cards td[data-label="Status"]::before, .table-cards td[data-label="Ações"]::before { display: none; }
    .table-cards td[data-label="Status"] { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
    .table-cards .cell-main, .table-cards .cell-main > div { min-width: 0; }
    .table-cards tr:is([data-open], [data-acct-open]) .cell-first { padding-right: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238594aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat right center / 18px; }
    .table-cards .row-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    .table-cards .row-actions .btn { flex: 1; }
    .table-cards :is([data-action="open-campaign"], [data-action="ads-open"]) { display: none; }
    .table-cards td[data-label="Ações"]:not(:has(.btn)) { display: none; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .detail-grid dd { margin-bottom: 10px; }
    .detail-top { flex-direction: column; align-items: stretch; }
    .detail-image { width: 100%; max-width: 260px; }
    /* Assistente: etapas compactas e Voltar/Continuar sempre ao alcance do polegar. */
    .stepper { gap: 4px; margin: 0 -16px 12px; padding: 0 16px 2px; }
    .stepper button:not(.active) { font-size: 0; gap: 0; padding: 0 5px; }
    .step-title { font-size: 18px; }
    .step-sub { margin-bottom: 18px; }
    .wizard-nav { position: sticky; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px -18px rgba(15, 23, 42, .35); }
    .wizard-nav .spacer { display: none; }
    .wizard-nav .btn-primary { flex: 1; }
    .combo-list { max-height: min(300px, 45vh); }
    /* Contas de anúncio: filtros empilhados, busca e objetivo em linha cheia. */
    .acct-pickers { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 0; }
    .acct-pickers .field { margin-bottom: 12px; }
    #acct-objective { flex-basis: 100%; width: 100%; }
    .account-head { padding: 16px 18px; }
    .account-text { min-width: 0; flex-basis: calc(100% - 60px); }
    .set-head { padding: 12px 12px 8px; }
    .set-numbers { padding: 0 12px 12px; gap: 6px 14px; }
    .leaf-row { padding: 10px 12px; }
    /* Tags: filtro em linha cheia e ações da tag embaixo do nome. */
    .toolbar .list-filter { flex-basis: 100%; width: 100%; max-width: none; }
    .tag-row { flex-wrap: wrap; align-items: flex-start; padding: 14px 18px; gap: 12px; }
    .tag-row-main { flex-basis: calc(100% - 54px); }
    .tag-row .row-actions { width: 100%; justify-content: flex-start; gap: 8px; }
    .tag-row .row-actions .btn { flex: 1; }
    .preview-page { max-width: 460px; }
}
@media (max-width: 600px) {
    .home-period .segmented { display: flex; width: 100%; flex-wrap: nowrap; }
    .home-period .segmented button { flex: 1; justify-content: center; padding: 0 6px; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
    .kpi { padding: 14px; gap: 6px; }
    .kpi-top { font-size: 12px; gap: 6px; align-items: flex-start; }
    .kpi strong { font-size: 21px; }
    .kpi small { font-size: 11.5px; }
    .kpi-icon { width: 28px; height: 28px; flex: none; }
    .kpi-icon .i { width: 15px; height: 15px; }
    .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .grid-gap { display: none; }
    .meta-pill span:last-child { display: none; }
    .meta-pill { padding: 0 10px; }
    .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-head .actions, .conn .actions { width: 100%; }
    .page-head .actions .btn, .form-actions .btn, .card-foot .btn, .conn .actions .btn { flex: 1; }
    .card-head > .btn { width: 100%; }
    .onboarding-intro { padding: 20px; }
    .onboarding-intro h2 { font-size: 19px; }
    .onboarding-steps { padding: 4px 16px; }
    .ob-step { flex-wrap: wrap; }
    .ob-step > .btn { width: calc(100% - 46px); margin-left: 46px; }
    .estimate { padding: 14px; gap: 12px; }
    .dropzone { min-height: 150px; padding: 20px; }
    .cr-card { padding: 12px 12px 0; }
    .cr-item { padding: 10px; gap: 10px; }
    .cr-item-meta { display: none; }
    .cr-list-foot .btn { width: 100%; }
    .detail-cr { padding: 12px; gap: 10px; }
    .detail-cr .thumb { width: 44px; height: 44px; }
    /* Diálogos abrem como painel que sobe da parte de baixo da tela. */
    .modal, .modal.wide { width: 100%; max-width: 100%; max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .modal[open] { animation: sheet-in .26s cubic-bezier(.2, .8, .2, 1); }
    .modal-head { padding: 18px 18px 4px; }
    .modal-head h2 { font-size: 18px; }
    .modal-body { padding: 8px 18px 18px; overscroll-behavior: contain; }
    .modal-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
    .modal-foot .btn { flex: 1; }
    .modal-foot .left { width: 100%; margin: 0; }
    .toasts { left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); bottom: auto; max-width: none; }
    .toast { animation-name: toast-drop; }
    .auth-main { justify-content: flex-start; padding: calc(32px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); }
    .auth-form h2 { font-size: 26px; }
    .auth-form > .muted { margin-bottom: 22px; font-size: 14.5px; }
    .auth-legal { margin-top: 32px; }
    .legal { padding: 24px 18px 48px; }
    .legal h1 { font-size: 27px; }
    .error-page h1 { font-size: 24px; }
}
@media (max-width: 380px) {
    .content { padding-left: 12px; padding-right: 12px; }
    .stepper { margin: 0 -12px 12px; padding: 0 12px 2px; }
    .page-head h1 { font-size: 22px; }
    .kpi strong { font-size: 18px; }
    .tabbar a { font-size: 10.5px; }
}
/* Relatórios em telas menores: números em três colunas, depois filtros numa coluna e gráficos em largura cheia. */
@media (max-width: 1180px) {
    .rep-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rep-fact { border-bottom: 1px solid var(--line); }
    .rep-fact:nth-child(3n) { border-right: 0; }
}
@media (max-width: 860px) {
    .rep-grid { grid-template-columns: minmax(0, 1fr); }
    .rep-filter-grid { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 0; }
    .rep-filter-grid .field { margin-bottom: 12px; }
    .rep-filter-grid .rep-wide { grid-column: auto; }
    .rep-filter-grid .segmented { display: flex; width: 100%; }
    .rep-filter-grid .segmented button { flex: 1; justify-content: center; padding: 0 8px; }
    .rep-filter-sum { padding: 14px; }
    .rep-alert { flex-wrap: wrap; padding: 14px 18px; gap: 12px; }
    .rep-alert-main { flex-basis: calc(100% - 48px); }
    .rep-alert-actions { width: 100%; justify-content: flex-start; }
    .rep-alert-actions .btn { flex: 1; }
    .rep-calm, .rep-aud-start, .rep-more { padding-left: 18px; padding-right: 18px; }
    .rep-card .card-head .segmented { width: 100%; }
    .rep-chart-box { padding: 12px 14px 10px; }
    .toolbar #rep-sort { flex: 1; flex-basis: auto; width: auto; }
    .rep-table-head .segmented { display: flex; width: 100%; }
    .rep-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rep-sum > div { padding: 10px 14px; }
    .rep-sum > div:nth-child(3n) { border-right: 0; }
    .rep-sum > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .rep-table td[data-label="Ações"] { width: auto; }
}
@media (max-width: 600px) {
    .rep-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rep-fact { padding: 12px 14px; }
    .rep-fact:nth-child(3n) { border-right: 1px solid var(--line); }
    .rep-fact:nth-child(2n) { border-right: 0; }
    .rep-fact:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
    .rep-fact b { font-size: 16px; }
    .rep-minis { grid-template-columns: minmax(0, 1fr); }
    .rep-row-bar em { min-width: 64px; font-size: 12.5px; }
}

/* Pagamentos em telas menores: o ponto do menu só no celular (no computador o contador fica no menu lateral), números
   do cartão da conta em duas colunas e os botões do aviso do Início em largura cheia. */
@media (min-width: 861px) {
    .menu-dot { display: none; }
}
@media (max-width: 860px) {
    .pay-grid { gap: 12px; margin-bottom: 16px; }
    .pay-card .account-head { padding: 16px 18px 8px; }
    .pay-why { padding: 0 18px 14px; }
    .pay-card .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pay-card .fact { padding: 12px 18px; }
    .pay-card .fact:first-child { border-right: 1px solid var(--line); }
    .pay-card .fact:last-child { grid-column: 1 / -1; }
    .pay-actions { padding: 14px 18px 18px; }
    .pay-clear { padding: 16px 18px; margin-bottom: 16px; }
}
@media (max-width: 600px) {
    .alert > .pay-alert-actions { flex-basis: 100%; }
    .pay-alert-actions .btn { flex: 1; }
}

/* Toque: alvos maiores e campos com 16px (assim o iPhone não dá zoom ao tocar num campo). */
@media (pointer: coarse) {
    .btn { height: 44px; }
    .btn-sm { height: 38px; }
    .btn-lg { height: 50px; }
    .icon-btn { width: 42px; height: 42px; }
    .meta-pill { height: 38px; }
    input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=datetime-local], input[type=date], input:not([type]), select { height: 46px; }
    .rep-picker { height: 46px; }
    input, select, textarea { font-size: 16px; }
    .search-box .i, .combo > .i { top: 14px; }
    .quick button { height: 36px; padding: 0 14px; font-size: 13px; }
    .segmented button { height: 38px; }
    .stepper button { height: 40px; }
    .chip { height: 36px; }
    .chip button { width: 28px; height: 28px; }
    .check input { width: 22px; height: 22px; margin-top: 0; }
    .combo-list button { padding: 12px 10px; }
    .tag-toggle { height: 40px; }
    .swatch span { width: 38px; height: 38px; }
}
@media not all and (hover: none) and (pointer: coarse) { .on-touch { display: none !important; } }
@media (hover: none) and (pointer: coarse) { .on-pointer { display: none !important; } }
@keyframes sheet-in { from { opacity: .4; transform: translateY(48px); } }
@keyframes toast-drop { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
