/* VERTEX HUNTER — interface. Todas as cores/fontes vêm de variáveis definidas pelo tema (editável no Master). */
:root {
  --bg: #060607; --surface: #0e0e11; --surface2: #15151a; --border: #25252c; --text: #f2f2f5; --muted: #9a9aa6;
  --accent: #d9dae0; --accentText: #0a0a0c; --success: #5fd39a; --warning: #e8c26a; --danger: #ef7a7a; --info: #8fb6ff;
  --chart1: #3987e5; --chart2: #d95926;
  --font-display: 'Archivo', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif;
  --base: 15px; --radius: 14px; --gap: 18px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -18px rgba(0,0,0,.8);
  --metal: linear-gradient(135deg, #f4f4f7 0%, #b9bbc4 38%, #eceef2 62%, #9ea1ab 100%);
  --ease: cubic-bezier(.2,.7,.2,1); --anim: 1;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--base)/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.01em; margin: 0; line-height: 1.15; }
::selection { background: var(--accent); color: var(--accentText); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: .85em; } .xs { font-size: .76em; } .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .86em; }
.hide { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.metal-text { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); padding: 18px 14px; overflow-y: auto; z-index: 30; }
.brand { display: flex; gap: 12px; align-items: center; padding: 6px 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 800 14px var(--font-display); color: var(--accentText); background: var(--metal); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 6px 18px -6px rgba(200,200,215,.35); flex: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font: 800 15px var(--font-display); letter-spacing: .08em; }
.brand-tag { font-size: 11px; color: var(--muted); line-height: 1.3; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; gap: 11px; align-items: center; padding: 9px 11px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .93em; transition: background .2s, color .2s; position: relative; }
.nav a:hover { background: var(--surface2); color: var(--text); }
.nav a.on { background: var(--surface2); color: var(--text); box-shadow: 0 0 0 1px var(--border) inset; }
.nav a.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--metal); }
.nav svg { width: 17px; height: 17px; flex: none; opacity: .9; }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; gap: 10px; align-items: center; font-size: .86em; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; font-weight: 700; font-size: 12px; border: 1px solid var(--border); flex: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; gap: 12px; align-items: center; padding: 12px 28px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); }
.topbar .title { font: 700 1.02em var(--font-display); }
.btn.menu-btn { display: none; }
.content { padding: 26px 28px 80px; max-width: 1480px; width: 100%; margin: 0 auto; }
.pause-banner { margin: 0 28px; margin-top: 14px; padding: 11px 16px; border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent); background: color-mix(in srgb, var(--warning) 10%, transparent); color: var(--warning); border-radius: 12px; display: flex; gap: 10px; align-items: center; font-size: .92em; }

/* ---------- Blocos ---------- */
.blk { position: relative; margin-bottom: var(--gap); }
.blk.w-narrow { max-width: 760px; } .blk.w-wide { max-width: 1180px; }
.blk.al-center { text-align: center; } .blk.al-right { text-align: right; }
.blk-inner { position: relative; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h3 { font-size: 1.02em; font-weight: 700; }
.sec-title { font: 700 .78em var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.hd .eyebrow { font: 600 .72em var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: inline-flex; gap: 8px; align-items: center; }
.hd .eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--metal); }
.hd h1 { font-size: clamp(1.6em, 2.6vw, 2.25em); font-weight: 800; }
.hd p { color: var(--muted); margin: 8px 0 0; max-width: 760px; }
.txt { white-space: pre-wrap; color: var(--text); }
.media img, .media video { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.media figcaption { color: var(--muted); font-size: .85em; margin-top: 6px; }
.media .empty-media { height: 160px; border: 1px dashed var(--border); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.callout.info { border-color: color-mix(in srgb, var(--info) 40%, var(--border)); } .callout.warning { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); } .callout.success { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); } .callout.danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.callout b { display: block; margin-bottom: 2px; }
.cards-grid { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.info-card { padding: 18px; }
.info-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--border); margin-bottom: 12px; }
.info-card h4 { font-size: 1em; margin-bottom: 6px; }
.info-card p { margin: 0; color: var(--muted); font-size: .92em; }

/* ---------- Botões e formulários ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-weight: 600; font-size: .88em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s; }
.btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--metal); color: var(--accentText); border-color: transparent; box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 8px 20px -10px rgba(210,210,225,.5); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); background: transparent; }
.btn.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, var(--border)); background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: .8em; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: .76em; border-radius: 7px; }
.btn.icon { width: 36px; padding: 0; } .btn.sm.icon { width: 30px; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn.busy { pointer-events: none; opacity: .7; }
.btn.busy::after { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.input, select.input, textarea.input { width: 100%; min-height: 38px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); outline: none; transition: border-color .2s; }
.input:focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span, .lbl { font-size: .78em; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.span2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: .9em; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 36px; height: 20px; border-radius: 20px; background: var(--surface2); border: 1px solid var(--border); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + i { background: color-mix(in srgb, var(--success) 25%, var(--surface2)); border-color: color-mix(in srgb, var(--success) 50%, var(--border)); }
.switch input:checked + i::after { transform: translateX(16px); background: var(--success); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface2); font-size: .78em; color: var(--text); }
.chip button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; line-height: 1; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: .72em; font-weight: 700; letter-spacing: .02em; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.badge.good { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.badge.warn { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); }
.badge.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.badge.info { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, var(--border)); }
.badge.metal { background: var(--metal); color: var(--accentText); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.dot.good { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent); } .dot.warn { background: var(--warning); } .dot.bad { background: var(--danger); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 12px; color: var(--muted); font-weight: 600; font-size: .88em; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 7px; color: var(--muted); font-size: .8em; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--surface2); color: var(--text); box-shadow: 0 0 0 1px var(--border) inset; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88em; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8em; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); vertical-align: top; }
.tbl tr:hover td { background: color-mix(in srgb, var(--surface2) 50%, transparent); }
.tbl-wrap { overflow-x: auto; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty b { color: var(--text); display: block; margin-bottom: 4px; font-family: var(--font-display); }
.skeleton { height: 90px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Indicadores e gráficos ---------- */
.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.kpi { padding: 15px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; min-height: 96px; }
.kpi::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); }
.kpi .k-label { font-size: .78em; color: var(--muted); font-weight: 500; line-height: 1.3; }
.kpi .k-value { font: 800 1.75em var(--font-display); margin-top: 8px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: .74em; color: var(--muted); margin-top: 2px; }
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8em; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.tip { position: absolute; pointer-events: none; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: .78em; box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); white-space: nowrap; z-index: 5; transform: translate(-50%, calc(-100% - 10px)); }
.tip b { display: block; margin-bottom: 3px; }
.tip .t-row { display: flex; gap: 8px; align-items: center; } .tip .t-row i { width: 10px; height: 3px; border-radius: 2px; }
.funnel { display: flex; flex-direction: column; gap: 6px; }
.f-row { display: grid; grid-template-columns: 190px 1fr 56px; gap: 12px; align-items: center; font-size: .86em; }
.f-bar { height: 22px; border-radius: 4px; background: var(--surface2); position: relative; overflow: hidden; }
.f-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--chart1); transition: width .8s var(--ease); }
.f-row .f-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.status-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); font-size: .86em; }
.st b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: .95em; }

/* ---------- Oportunidades ---------- */
.filters { display: grid; grid-template-columns: 2fr repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.opp-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.opp { display: flex; flex-direction: column; padding: 16px; gap: 12px; transition: border-color .2s, transform .25s var(--ease); }
.opp:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.opp-top { display: flex; gap: 12px; align-items: flex-start; }
.logo { width: 46px; height: 46px; border-radius: 12px; flex: none; background: var(--surface2); border: 1px solid var(--border); display: grid; place-items: center; font: 800 15px var(--font-display); color: var(--muted); overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.opp h3 { font-size: 1.04em; cursor: pointer; }
.opp h3:hover { text-decoration: underline; text-underline-offset: 3px; }
.opp .meta { font-size: .8em; color: var(--muted); margin-top: 3px; }
.score { margin-left: auto; text-align: center; flex: none; }
.score b { display: block; font: 800 1.45em var(--font-display); line-height: 1; font-variant-numeric: tabular-nums; }
.score span { font-size: .66em; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.score.p-extrema b { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.opp .diag { font-size: .85em; color: var(--muted); border-left: 2px solid var(--border); padding-left: 10px; }
.opp .diag b { color: var(--text); font-weight: 600; }
.opp .kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: .82em; }
.opp .kv span:nth-child(odd) { color: var(--muted); }
.opp .kv a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-box { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: .84em; white-space: pre-wrap; max-height: 150px; overflow: auto; }
.opp .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: .88em; }

/* ---------- Pipeline ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 70vh; }
.col-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .84em; padding: 2px 4px 6px; }
.col-b { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.k-card { padding: 10px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); font-size: .84em; cursor: pointer; }
.k-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.k-card b { display: block; margin-bottom: 2px; }

/* ---------- Painel lateral / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); z-index: 80; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(920px, 100vw); background: var(--surface); border-left: 1px solid var(--border); z-index: 81; display: flex; flex-direction: column; animation: slideIn .28s var(--ease); }
.drawer-h { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: center; }
.drawer-b { padding: 18px 22px 40px; overflow-y: auto; flex: 1; }
.modal { position: fixed; z-index: 90; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: pop .22s var(--ease); }
.modal.wide { width: min(1000px, calc(100vw - 32px)); }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-b { padding: 18px 20px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } } @keyframes slideIn { from { transform: translateX(40px); opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { padding: 11px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--border); box-shadow: 0 14px 30px -12px rgba(0,0,0,.8); font-size: .88em; animation: pop2 .25s var(--ease); display: flex; gap: 10px; align-items: flex-start; }
.toast.err { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); } .toast.ok { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
@keyframes pop2 { from { opacity: 0; transform: translateY(8px); } }
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.sc { padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.sc .lbl { display: block; }
.sc b { font: 800 1.3em var(--font-display); font-variant-numeric: tabular-nums; }
.meter { height: 4px; border-radius: 4px; background: var(--surface2); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.list-issues { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list-issues li { padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); font-size: .88em; }
.list-issues li b { display: block; margin-bottom: 2px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare > div { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.compare ul { margin: 6px 0 0; padding-left: 18px; font-size: .88em; }
.shot { max-width: 260px; border-radius: 12px; border: 1px solid var(--border); }
.concept { --c: #c9ccd4; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #fbfbfc; color: #16161a; font-family: var(--font-body); }
.concept .cbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #eee; font-weight: 700; font-size: 13px; }
.concept .cbar i { width: 22px; height: 4px; border-radius: 3px; background: #ddd; } .concept .cbar span { margin-right: auto; }
.concept .chero { padding: 26px 18px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); color: #fff; }
.concept .chero h3 { font-size: 20px; margin-bottom: 6px; } .concept .chero p { margin: 0 0 12px; opacity: .9; font-size: 13px; }
.concept .cbtn, .concept .cwa { display: inline-block; padding: 7px 12px; border-radius: 8px; background: #fff; color: #111; font-size: 12px; font-weight: 700; margin-right: 6px; }
.concept .cwa { background: #25d366; color: #fff; }
.concept .cgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 14px; } .concept .cs { padding: 12px; border-radius: 8px; background: #fff; border: 1px solid #eee; font-size: 12px; font-weight: 600; }
.concept .cnote { padding: 8px 14px; font-size: 11px; color: #666; background: #f1f1f3; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 1px solid var(--border); position: relative; font-size: .86em; }
.timeline li::before { content: ''; position: absolute; left: -4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.qa { display: grid; gap: 10px; } .qa div { padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); font-size: .88em; } .qa b { display: block; font-size: .8em; color: var(--muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 70% -10%, rgba(200,200,220,.10), transparent 60%), var(--bg); }
.auth-card { width: min(420px, 100%); padding: 32px 28px; }
.auth-card .brand { border: 0; padding: 0 0 22px; }
.auth h1 { font-size: 1.6em; margin-bottom: 6px; }

/* ---------- Animações dos blocos ---------- */
.anim-fade { animation: fade calc(.6s * var(--anim)) var(--ease) both; }
.anim-rise { animation: rise calc(.6s * var(--anim)) var(--ease) both; }
.anim-scale { animation: scaleIn calc(.5s * var(--anim)) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Editor visual ---------- */
.edit-fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--metal); color: var(--accentText); font: 800 .82em var(--font-display); letter-spacing: .12em; cursor: pointer; box-shadow: 0 14px 34px -10px rgba(210,210,225,.55), 0 0 0 1px rgba(255,255,255,.3) inset; display: inline-flex; align-items: center; gap: 8px; }
.edit-fab svg { width: 16px; height: 16px; }
body.editing .edit-fab { display: none; }
.ed-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 75; display: flex; gap: 6px; align-items: center; padding: 8px 14px; height: 54px; background: #0b0b0d; border-bottom: 1px solid var(--border); flex-wrap: nowrap; overflow-x: auto; box-shadow: 0 10px 30px -14px #000; scrollbar-width: thin; }
.ed-bar > * { flex: none; }
.ed-bar .grow { flex: 1 1 0; min-width: 8px; }
@media (max-width: 1280px) { #ed-status { display: none; } .ed-bar .btn.sm { padding: 0 8px; } }
.ed-bar .ed-title { font: 800 .78em var(--font-display); letter-spacing: .16em; margin-right: 6px; }
.ed-bar .sep { width: 1px; height: 24px; background: var(--border); }
body.editing { padding-top: 54px; }
body.editing .topbar { top: 54px; } body.editing .side { top: 54px; height: calc(100vh - 54px); }
body.editing [data-ed], body.editing .blk { cursor: pointer; }
body.editing .blk { outline: 1px dashed color-mix(in srgb, var(--accent) 22%, transparent); outline-offset: 6px; border-radius: 4px; }
body.editing .blk:hover { outline: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent); }
body.editing .blk.sel { outline: 2px solid var(--accent); }
body.editing [data-ed]:hover { box-shadow: 0 0 0 1px var(--info); border-radius: 4px; }
body.editing .blk.is-hidden { opacity: .35; }
.blk-tools { position: absolute; top: -18px; right: 0; display: none; gap: 3px; z-index: 6; background: #0b0b0d; border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
body.editing .blk:hover > .blk-tools, body.editing .blk.sel > .blk-tools { display: flex; }
.blk-tools button { width: 26px; height: 24px; border: 0; background: none; color: var(--text); border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.blk-tools button:hover { background: var(--surface2); }
.blk-tools svg { width: 14px; height: 14px; }
.blk-tools .tag { font-size: 10px; color: var(--muted); padding: 0 6px; align-self: center; white-space: nowrap; }
.ed-panel { position: fixed; z-index: 76; width: 360px; max-height: calc(100vh - 80px); top: 66px; right: 14px; display: flex; flex-direction: column; background: #0d0d10; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 60px -20px #000; animation: pop2 .2s var(--ease); }
.ed-panel-h { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; cursor: move; }
.ed-panel-h b { font-size: .9em; }
.ed-panel-b { padding: 12px 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ed-panel .field > span { font-size: .74em; }
.ed-panel .input { min-height: 34px; padding: 6px 9px; font-size: .88em; }
.ed-list-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.ed-list-item .row.between b { font-size: .8em; color: var(--muted); }
.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type=color] { width: 38px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; flex: none; }
.lib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lib button { text-align: left; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: .82em; }
.lib button:hover { border-color: var(--accent); }
.lib button small { display: block; color: var(--muted); font-size: .85em; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.media-grid .mi { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); cursor: pointer; position: relative; aspect-ratio: 1; display: grid; place-items: center; font-size: .72em; color: var(--muted); }
.media-grid .mi img { width: 100%; height: 100%; object-fit: cover; }
.media-grid .mi:hover { border-color: var(--accent); }
.page-row { display: flex; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.page-row[draggable=true] { cursor: grab; }
.page-row.drag-over, .blk.drag-over { box-shadow: 0 -3px 0 var(--info); }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } .filters .f-q { grid-column: span 4; } .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-grid { grid-template-columns: repeat(min(var(--cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-102%); transition: transform .3s var(--ease); }
  body.nav-open .side { transform: none; box-shadow: 30px 0 60px #000; }
  .btn.menu-btn { display: inline-flex; }
  .content { padding: 18px 16px 90px; } .topbar { padding: 10px 16px; } .pause-banner { margin: 12px 16px 0; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards-grid { grid-template-columns: 1fr; }
  .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters .f-q { grid-column: span 2; }
  .f-row { grid-template-columns: 120px 1fr 44px; }
  .ed-panel { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 60vh; }
  .opp-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .blk.hide-mobile { display: none; }
}
@media (min-width: 901px) { .blk.hide-desktop { display: none; } }
@media (max-width: 560px) { #worker-pill { display: none; } .topbar .title { font-size: .95em; } .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .status-grid { grid-template-columns: 1fr; } .kpi .k-value { font-size: 1.45em; } }
body.editing .blk.hide-mobile, body.editing .blk.hide-desktop { display: block; opacity: .5; }
