/* Diolkos · Grupo HOLKĒ — sistema visual
   Base preta e marrom, texto branco, laranja só para ação principal, alerta e o número-chave da tela. */
:root {
  --font-brand: 'Artific', 'Inter Tight', system-ui, sans-serif;
  --bg: #171717; --bg-2: #1c1a19; --s1: #262321; --s2: #303030; --line: #47403d; --line-2: #3a3431;
  --tx: #ffffff; --tx2: #c9c9c9; --tx3: #a3928a; --tx-mute: #9b8a82;
  --acc: #eb580e; --acc-d: #c44a0c; --acc-l: #eb763b;
  --ok: #8fb08a; --ok-bg: rgba(143, 176, 138, .12); --warn: #d1ad62; --warn-bg: rgba(209, 173, 98, .12);
  --bad: #d77a6c; --bad-bg: rgba(215, 122, 108, .13); --info: #a9b4c0; --info-bg: rgba(169, 180, 192, .1);
  --ch: 7px;                       /* chanfro do módulo octogonal */
  --r: 3px;
  --side: 240px;
  --z-fixo: 10; --z-gaveta: 20; --z-modal: 30; --z-toast: 40;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--font-brand); font-weight: 400; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: rgba(235, 88, 14, .18); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--tx); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.num, td.n, .tab { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc-l); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- módulo octogonal ---------- */
.oct { clip-path: polygon(var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch)); }
.oct:focus-visible { clip-path: none; }

/* ---------- carregando inicial ---------- */
.boot { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--tx3); }
.boot-h { width: 36px; height: 36px; background: url(simbolo.svg) center/contain no-repeat; opacity: .9; animation: pulso 1.4s ease-in-out infinite; }
@keyframes pulso { 50% { opacity: .35; } }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px); background: var(--bg); }
.login-arte { position: relative; overflow: hidden; border-right: 1px solid var(--line-2); background: var(--bg); }
.tracao { position: absolute; inset: 0; display: flex; gap: 14px; padding: 0 8%; align-items: stretch; }
.tracao span { flex: 1; background: linear-gradient(180deg, rgba(23, 23, 23, 0) 0%, rgba(68, 34, 18, .55) 46%, var(--acc-d) 82%, var(--acc) 100%); opacity: .85; }
.tracao span:nth-child(2) { margin-top: 18%; opacity: .7; } .tracao span:nth-child(3) { margin-top: 34%; opacity: .55; }
.tracao span:nth-child(4) { margin-top: 8%; opacity: .8; } .tracao span:nth-child(5) { margin-top: 46%; opacity: .45; }
.tracao span:nth-child(6) { margin-top: 26%; opacity: .6; }
.login-arte .assin { position: absolute; left: 8%; top: 48px; display: flex; align-items: center; gap: 14px; }
.login-arte .lema { position: absolute; left: 8%; bottom: 48px; max-width: 30ch; font-size: 15px; color: var(--tx2); font-weight: 300; }
.login-arte .lema strong { display: block; font-weight: 600; color: var(--tx); font-size: 28px; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.15; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 72px); gap: 22px; background: var(--bg-2); }
.login-form h1 { font-size: 26px; letter-spacing: -0.02em; }
.login-form .sub { color: var(--tx3); margin-top: 6px; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca img { width: 34px; height: 34px; display: block; }
.marca b { font-weight: 600; font-size: 17px; letter-spacing: .01em; display: block; line-height: 1.1; }
.marca small { color: var(--tx3); font-size: 12px; display: block; }

/* ---------- casca ---------- */
.casca { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.lateral { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; border-right: 1px solid var(--line-2); background: var(--bg-2); padding: 22px 14px 16px; gap: 22px; z-index: var(--z-fixo); }
.lateral .marca { padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 42px; border-radius: var(--r); color: var(--tx2); text-decoration: none; font-weight: 400; position: relative; touch-action: manipulation; }
.nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; }
.nav a[aria-current="page"] { color: var(--tx); background: var(--s1); }
.nav a[aria-current="page"]::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; background: var(--acc); }
@media (hover: hover) { .nav a:hover { color: var(--tx); background: rgba(255, 255, 255, .035); } }
.nav .badge { margin-left: auto; }
.lateral .eu { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line-2); }
.eu .quem { min-width: 0; flex: 1; }
.eu .quem b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eu .quem small { color: var(--tx3); font-size: 12px; }
.avatar { --ch: 6px; width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--s2); color: var(--tx); font-weight: 600; font-size: 12px; letter-spacing: .02em; }
.principal { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: var(--z-fixo); display: flex; align-items: center; gap: 16px; padding: 18px 32px; background: rgba(23, 23, 23, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2); min-height: 72px; }
.topo h1 { font-size: 21px; letter-spacing: -0.015em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo .crumb { color: var(--tx3); font-size: 12px; display: block; font-weight: 400; margin-bottom: 1px; }
.topo .crumb a { color: var(--tx3); text-decoration: none; } .topo .crumb a:hover { color: var(--tx); }
.topo .acoes { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topo .h-mob { display: none; }
.conteudo { padding: 28px 32px 64px; flex: 1;
  background-image: linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; }
.conteudo > * + * { margin-top: 24px; }
.barra-mob { display: none; }

/* ---------- botões ---------- */
.btn { --ch: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: var(--s1); color: var(--tx); border-radius: var(--r); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; touch-action: manipulation; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; }
@media (hover: hover) { .btn:hover { background: var(--s2); border-color: #5a514d; } }
.btn:active { background: #383330; }
.btn.prim { background: var(--acc); border-color: var(--acc); color: #fff; border-radius: 0; }
.btn.prim { clip-path: polygon(var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch)); }
.btn.prim:focus-visible { clip-path: none; }
@media (hover: hover) { .btn.prim:hover { background: var(--acc-l); border-color: var(--acc-l); } }
.btn.prim:active { background: var(--acc-d); }
.btn.fant { background: transparent; border-color: transparent; color: var(--tx2); font-weight: 400; }
@media (hover: hover) { .btn.fant:hover { background: rgba(255, 255, 255, .05); color: var(--tx); } }
.btn.peq { min-height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn.perigo { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ico { width: 40px; padding: 0; }
.btn.peq.ico { width: 32px; }
.grupo-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); padding: 2px; background: var(--bg-2); gap: 2px; }
.grupo-seg button { border: 0; background: transparent; color: var(--tx2); padding: 0 12px; min-height: 32px; border-radius: 2px; cursor: pointer; font-size: 13px; touch-action: manipulation; }
.grupo-seg button[aria-pressed="true"], .grupo-seg button[aria-selected="true"] { background: var(--s2); color: var(--tx); font-weight: 600; }

/* ---------- etiquetas ---------- */
.tag { --ch: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; min-height: 22px; font-size: 12px; font-weight: 600; background: var(--s2); color: var(--tx2); white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; background: currentColor; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); flex: none; }
.tag.sem::before { display: none; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); } .tag.info { background: var(--info-bg); color: var(--info); }
.tag.acc { background: rgba(235, 88, 14, .14); color: var(--acc-l); }
.tag.demo { background: transparent; border: 1px dashed #6b5f5a; color: var(--tx3); clip-path: none; border-radius: 2px; }
.tag.demo::before { display: none; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ---------- blocos ---------- */
.bloco { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r); }
.bloco > header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); min-height: 56px; flex-wrap: wrap; }
.bloco > header h2 { font-size: 15px; }
.bloco > header .sub { color: var(--tx3); font-size: 12.5px; }
.bloco > header .dir { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bloco .corpo { padding: 18px 20px; }
.bloco .corpo.sem-pad { padding: 0; }
.grade { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* ---------- indicadores ---------- */
.indic { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.indic > div { background: var(--s1); padding: 16px 18px 15px; min-width: 0; }
.indic .rot { color: var(--tx3); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.indic .val { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.indic .val small { font-size: 13px; color: var(--tx3); font-weight: 400; letter-spacing: 0; }
.indic .val.chave { color: var(--acc); }
.indic .det { display: block; color: var(--tx3); font-size: 12px; margin-top: 4px; }

/* ---------- a via (vendido × meta) ---------- */
.via { position: relative; height: 14px; margin: 10px 0 6px; }
.via::before, .via::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.via::before { top: 0; } .via::after { bottom: 0; }
.via .pista { position: absolute; left: 0; right: 0; top: 4px; bottom: 4px; background: var(--bg); }
.via .puxado { position: absolute; left: 0; top: 4px; bottom: 4px; background: linear-gradient(90deg, var(--acc-d), var(--acc)); max-width: 100%; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.via .puxado.ok { background: linear-gradient(90deg, #6f8c6a, var(--ok)); }
.via .alvo { position: absolute; right: 0; top: -3px; bottom: -3px; width: 2px; background: var(--tx2); }
.via-leg { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--tx3); font-variant-numeric: tabular-nums; }
.via-leg b { color: var(--tx); font-weight: 600; }

/* ---------- vagas de Fundador ---------- */
.vagas { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 10px; }
.vagas i { --ch: 4px; width: 21px; height: 21px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vagas i.usada { background: var(--tx); color: var(--bg); }
.vagas i.livre { background: transparent; color: var(--tx-mute); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- tabelas ---------- */
.tabela-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-weight: 400; color: var(--tx3); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--s1); position: sticky; top: 0; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.n, .t th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t td.acoes { text-align: right; white-space: nowrap; }
.t td .fraco, .fraco { color: var(--tx3); }
.t td.nome { max-width: 280px; }
.t td.nome b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t td.nome small { color: var(--tx3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t tbody tr.clic { cursor: pointer; }
@media (hover: hover) { .t tbody tr.clic:hover td { background: rgba(255, 255, 255, .025); } }
.t tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.t td a.lnk, a.lnk { color: var(--tx); text-decoration: none; font-weight: 600; } a.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- vazio, erro, carregando ---------- */
.vazio { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 20px; color: var(--tx3); }
.vazio .marca-vazia { width: 44px; height: 44px; --ch: 12px; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--tx-mute); }
.vazio .marca-vazia svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.vazio b { color: var(--tx); font-weight: 600; font-size: 15px; }
.vazio p { max-width: 44ch; }
.erro-tela { border: 1px solid rgba(215, 122, 108, .4); background: var(--bad-bg); color: var(--tx); padding: 16px 18px; border-radius: var(--r); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.esq { display: grid; gap: 16px; }
.esq i { display: block; height: 84px; border-radius: var(--r); background: linear-gradient(90deg, var(--s1) 0%, #2c2826 50%, var(--s1) 100%); background-size: 200% 100%; animation: brilho 1.3s linear infinite; }
.esq i:nth-child(2) { height: 240px; } .esq i:nth-child(3) { height: 160px; }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- alertas ---------- */
.alertas { display: flex; flex-direction: column; }
.alerta { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--tx); }
.alerta:last-child { border-bottom: 0; }
.alerta::before { content: ''; width: 8px; height: 8px; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: var(--warn); }
.alerta.alto::before { background: var(--acc); }
.alerta small { color: var(--tx3); display: block; font-size: 12px; }
.alerta .ir { color: var(--tx3); font-size: 12.5px; white-space: nowrap; }
@media (hover: hover) { a.alerta:hover { background: rgba(255, 255, 255, .025); } }

/* ---------- pipeline: quadro ---------- */
.quadro { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; scroll-snap-type: x proximity; }
.coluna { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); display: flex; flex-direction: column; min-height: 240px; scroll-snap-align: start; }
.coluna > header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.coluna > header h3 { font-size: 13.5px; }
.coluna > header .cont { margin-left: auto; color: var(--tx3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.coluna .cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.coluna.alvo-drop { border-color: var(--acc); background: rgba(235, 88, 14, .05); }
.card { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; cursor: grab; display: grid; gap: 6px; text-align: left; width: 100%; touch-action: manipulation; }
.card:active { cursor: grabbing; }
.card.arrastando { opacity: .4; }
@media (hover: hover) { .card:hover { border-color: var(--line); } }
.card b { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.card .emp { color: var(--tx3); font-size: 12.5px; overflow-wrap: anywhere; }
.card .linha { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card .passo { font-size: 12.5px; color: var(--tx2); display: flex; gap: 6px; align-items: baseline; }
.card .passo.atras { color: var(--bad); }
.card .passo.hoje { color: var(--warn); }
.taxas { display: flex; gap: 0; overflow-x: auto; }
.taxas > div { flex: 1; min-width: 140px; padding: 12px 14px; border-right: 1px solid var(--line-2); }
.taxas > div:last-child { border-right: 0; }
.taxas .de { color: var(--tx3); font-size: 12px; display: block; line-height: 1.35; min-height: 2.7em; }
.taxas .pc { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.taxas .pc small { color: var(--tx3); font-size: 12px; font-weight: 400; margin-left: 4px; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filtros label { display: grid; gap: 4px; font-size: 12px; color: var(--tx3); }
.filtros select, .filtros input { min-width: 150px; }

/* ---------- formulários ---------- */
.campo { display: grid; gap: 6px; min-width: 0; }
.campo > label, .campo > .rot { font-size: 12.5px; color: var(--tx2); }
.campo .obrig { color: var(--acc-l); margin-left: 2px; }
.campo .dica { font-size: 12px; color: var(--tx3); }
.campo .erro { font-size: 12.5px; color: var(--bad); min-height: 0; }
input.in, select.in, textarea.in { width: 100%; min-height: 42px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; color: var(--tx); font-size: 16px; transition: border-color .15s; }
select.in { background-color: var(--bg); color: var(--tx); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx3) 50%), linear-gradient(135deg, var(--tx3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea.in { min-height: 96px; resize: vertical; line-height: 1.5; }
input.in::placeholder, textarea.in::placeholder { color: #7d706a; }
input.in:focus, select.in:focus, textarea.in:focus { border-color: var(--acc-l); outline: none; box-shadow: 0 0 0 3px rgba(235, 118, 59, .18); }
input.in[aria-invalid="true"] { border-color: var(--bad); }
@media (min-width: 761px) { input.in, select.in, textarea.in { font-size: 14px; } }
.form { display: grid; gap: 16px; }
.form .lin { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form fieldset { border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; }
.form legend { padding: 0 6px; color: var(--tx2); font-size: 12.5px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--acc); }
.senha-box { position: relative; }
.senha-box .btn { position: absolute; right: 4px; top: 4px; min-height: 34px; }
.senha-box input { padding-right: 80px; }
.msg-erro { color: var(--bad); font-size: 13px; min-height: 18px; }

/* ---------- modal ---------- */
.veu { position: fixed; inset: 0; background: rgba(10, 9, 9, .72); z-index: var(--z-modal); display: grid; place-items: center; padding: 20px; overscroll-behavior: contain; animation: surge .16s ease-out; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 64px rgba(0, 0, 0, .55); }
.modal.largo { width: min(860px, 100%); }
.modal > header { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal > header h2 { font-size: 17px; }
.modal > header .sub { color: var(--tx3); font-size: 12.5px; }
.modal > header .btn { margin-left: auto; }
.modal .mcorpo { padding: 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal > footer { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
@keyframes surge { from { opacity: 0; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-toast); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--s2); border: 1px solid var(--line); border-left: 3px solid var(--ok); padding: 12px 16px; border-radius: var(--r); max-width: 380px; box-shadow: 0 12px 32px rgba(0, 0, 0, .4); display: flex; gap: 12px; align-items: start; animation: surge .2s ease-out; }
.toast.erro { border-left-color: var(--bad); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--tx3); cursor: pointer; padding: 0 4px; font-size: 16px; line-height: 1; }

/* ---------- linha do tempo ---------- */
.tempo { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tempo li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; position: relative; }
.tempo li::before { content: ''; width: 8px; height: 8px; margin-top: 6px; background: var(--line); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.tempo li::after { content: ''; position: absolute; left: 3.5px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.tempo li:last-child::after { display: none; }
.tempo .q { color: var(--tx3); font-size: 12px; }

/* ---------- abas ---------- */
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.abas button, .abas a { background: none; border: 0; padding: 12px 14px; color: var(--tx3); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; font-size: 13.5px; touch-action: manipulation; min-height: 44px; }
.abas [aria-selected="true"] { color: var(--tx); border-bottom-color: var(--acc); font-weight: 600; }
@media (hover: hover) { .abas button:hover, .abas a:hover { color: var(--tx); } }

/* ---------- operações (cartões) ---------- */
.ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.op-card { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 18px 16px; text-decoration: none; color: var(--tx); display: grid; gap: 4px; transition: border-color .15s; }
@media (hover: hover) { .op-card:hover { border-color: var(--line); } }
.op-card .topo-card { display: flex; gap: 10px; align-items: start; }
.op-card h3 { font-size: 15px; overflow-wrap: anywhere; }
.op-card .mod { color: var(--tx3); font-size: 12.5px; }
.op-card .rodape { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- gráfico ---------- */
.graf { max-width: 100%; height: auto; display: block; overflow: visible; }
.graf .eixo { stroke: var(--line-2); stroke-width: 1; }
.graf text { fill: var(--tx3); font-size: 11px; font-family: var(--font-brand); font-variant-numeric: tabular-nums; }
.graf .linha-s { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.graf .area { fill: url(#gArea); }
.graf .ponto { fill: var(--bg-2); stroke: var(--acc); stroke-width: 2; }
.graf .mira { stroke: var(--tx3); stroke-dasharray: 2 3; }
.graf-wrap { position: relative; }
.graf-dica { position: absolute; pointer-events: none; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); font-variant-numeric: tabular-nums; }

/* ---------- funil de conversão ---------- */
.funil { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-radius: var(--r); overflow: hidden; }
.funil > div { background: var(--bg-2); padding: 12px 14px; }
.funil .rot { color: var(--tx3); font-size: 12px; display: block; }
.funil .v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; display: block; margin-top: 2px; }
.funil .tx { font-size: 12px; color: var(--tx2); font-variant-numeric: tabular-nums; }

/* ---------- lista de checagem (garantia) ---------- */
.checklist { display: grid; gap: 0; }
.chk { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.chk:last-child { border-bottom: 0; }
.chk .marco { --ch: 6px; width: 26px; height: 26px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); color: transparent; }
.chk.feito .marco { background: var(--ok); color: var(--bg); box-shadow: none; }
.chk .marco svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.chk b { font-weight: 600; display: block; }
.chk small { color: var(--tx3); display: block; overflow-wrap: anywhere; }

/* ---------- vendedor ---------- */
.atalhos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.atalho { min-height: 64px; font-size: 15px; }
.fab { display: none; }

/* ---------- relatório de renovação ---------- */
.rel { max-width: 960px; margin: 0 auto; }
.rel-capa { padding: 40px 0 28px; border-bottom: 1px solid var(--line-2); display: grid; gap: 10px; }
.rel-capa h1 { font-size: 34px; letter-spacing: -0.025em; line-height: 1.1; }
.rel-capa p { color: var(--tx2); }
.comp { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, .8fr); }
.comp > div { padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.comp .h { color: var(--tx3); font-size: 12.5px; }
.comp .agora { font-weight: 600; }
.comp .var-pos { color: var(--ok); } .comp .var-neg { color: var(--bad); }
.plano { white-space: pre-wrap; color: var(--tx2); line-height: 1.6; }

/* ---------- utilidades ---------- */
.linha-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mla { margin-left: auto; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.dir-txt { text-align: right; }
.k { color: var(--acc); }
.lista-simples { display: grid; gap: 0; }
.lista-simples > div { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.lista-simples > div:last-child { border-bottom: 0; }
.lista-simples .v { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.sel-mes { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.sel-mes button { background: none; border: 0; color: var(--tx2); width: 34px; min-height: 36px; cursor: pointer; font-size: 15px; }
.sel-mes span { display: inline-block; min-width: 132px; text-align: center; font-size: 13px; font-weight: 600; }
.sel-mes span::first-letter { text-transform: uppercase; }
.aviso-demo { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border: 1px dashed #6b5f5a; border-radius: var(--r); color: var(--tx2); font-size: 13px; flex-wrap: wrap; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-21, .g-12 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login-arte { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .login-arte .lema { bottom: 22px; } .login-arte .lema strong { font-size: 22px; } .login-arte .assin { top: 22px; }
  .login-form { padding: 28px 20px 40px; }
  .casca { grid-template-columns: 1fr; }
  .lateral { display: none; }
  .topo { padding: 12px 16px; min-height: 60px; gap: 10px; padding-top: max(12px, env(safe-area-inset-top)); }
  .topo h1 { font-size: 18px; }
  .topo .h-mob { display: block; width: 28px; height: 28px; flex: none; }
  .topo .acoes .btn:not(.ico):not(.manter) { display: none; }
  .topo:has(.sel-mes) { flex-wrap: wrap; row-gap: 8px; }
  .topo:has(.sel-mes) h1 { flex: 1 1 calc(100% - 44px); }
  .topo:has(.sel-mes) .acoes { flex: 1 1 100%; margin-left: 0; }
  .topo .sel-mes { width: 100%; justify-content: space-between; }
  .conteudo { padding: 18px 16px calc(150px + env(safe-area-inset-bottom)); }
  .conteudo > * + * { margin-top: 18px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .indic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indic > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .indic .val { font-size: 21px; }
  .bloco > header { padding: 14px 16px; } .bloco .corpo { padding: 16px; }
  .barra-mob { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-fixo); background: rgba(28, 26, 25, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line-2); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .barra-mob a { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; min-height: 52px; color: var(--tx3); text-decoration: none; font-size: 11px; touch-action: manipulation; }
  .barra-mob a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .barra-mob a[aria-current="page"] { color: var(--tx); }
  .barra-mob a[aria-current="page"] svg { stroke: var(--acc); }
  .fab { display: inline-flex; position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: var(--z-fixo); min-height: 52px; padding: 0 20px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
  .veu { padding: 0; place-items: end stretch; }
  .modal, .modal.largo { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 10px 10px 0 0; border-bottom: 0; }
  .modal > footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .modal > footer .btn { flex: 1; }
  .toasts { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .funil { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comp { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); }
  .comp .vr { display: none; }
  .rel-capa h1 { font-size: 26px; }
  table.t.cartoes thead { display: none; }
  table.t.cartoes, table.t.cartoes tbody, table.t.cartoes tr, table.t.cartoes td { display: block; width: 100%; }
  table.t.cartoes tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  table.t.cartoes td { padding: 0; border: 0; }
  table.t.cartoes td.n { text-align: right; }
  table.t.cartoes td.nome { max-width: none; grid-column: 1 / 2; }
  table.t.cartoes td.ocm { display: none; }
  table.t.cartoes td.acoes { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .filtros select, .filtros input { min-width: 0; width: 100%; }
  .filtros label { flex: 1 1 140px; }
  .quadro { grid-auto-columns: 82%; }
  .atalhos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- impressão (relatório com fundo escuro) ---------- */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: var(--bg) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lateral, .topo, .barra-mob, .fab, .toasts, .nao-imprime { display: none !important; }
  .casca { display: block; }
  .conteudo { padding: 14mm 14mm; background-image: none; }
  .bloco { break-inside: avoid; }
}
