/* Preto e branco. Status por forma, nunca por cor: ● bom (cheio) · ◐ atenção (hachurado) · ○ ruim (tracejado). */
:root {
  --ink0: #0a0a0a; --paper0: #ffffff;
  --ink: var(--ink0); --paper: var(--paper0);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) { :root { --ink0: #fafafa; --paper0: #0a0a0a; } }
:root, .inv { --line: color-mix(in srgb, var(--ink) 16%, transparent); --mute: color-mix(in srgb, var(--ink) 58%, var(--paper)); --soft: color-mix(in srgb, var(--ink) 5%, var(--paper)); }
.inv { --ink: var(--paper0); --paper: var(--ink0); background: var(--paper); color: var(--ink); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--display); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; line-height: 1; margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border: 2px solid var(--ink); border-radius: 999px; padding: 11px 22px; cursor: pointer; background: var(--ink); color: var(--paper); text-decoration: none; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.sm { padding: 6px 16px; font-size: 13px; }
.btn.lg { padding: 16px 30px; font-size: 17px; }

/* topo */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .in { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.logo { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.top .sp { flex: 1; }
.top .user { color: var(--mute); font-size: 13px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a.l { font-size: 14px; text-decoration: none; color: var(--mute); }
.top nav a.l:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav a.l { display: none; } }

/* formulários */
label { display: block; font-size: 13px; font-weight: 500; color: var(--mute); margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.inp { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); }
.inp:focus-within { border-color: var(--ink); }
.inp span { padding: 0 12px; color: var(--mute); font-size: 13px; }
.inp input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; padding: 11px 12px; outline: none; font-variant-numeric: tabular-nums; }
.inp span + input { padding-left: 0; }
.hint { font-size: 12px; color: var(--mute); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.opt { font-weight: 400; }

/* acesso */
.auth { max-width: 420px; margin: 7vh auto 0; }
.auth .card { padding: 26px; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1.5px solid var(--line); }
.tabs button { flex: 1; font: inherit; font-weight: 500; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1.5px; padding: 9px; color: var(--mute); cursor: pointer; }
.tabs button.on { color: var(--ink); border-color: var(--ink); font-weight: 700; }
.ou { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12px; margin: 18px 0; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.g { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; font-size: 11px; font-weight: 800; }
.msg { font-size: 13px; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; border: 2px solid var(--ink); }
.msg.bad { border-style: dashed; }
.msg.good { background: var(--ink); color: var(--paper); }

/* painéis */
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 22px; padding: 22px; }
.card h2 { font-size: 13px; font-weight: 600; color: var(--mute); letter-spacing: 0; margin: 0 0 14px; }
.stack > * + * { margin-top: 16px; }
main.page { padding: 36px 24px 80px; max-width: 1160px; margin: 0 auto; }
main.page h1 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 8px; }
.sub { font-family: var(--text); font-size: 18px; color: var(--mute); margin: 0 0 24px; max-width: 60ch; line-height: 1.45; }

/* catálogo: lista indexada, não cards */
.cat { font-size: 14px; font-weight: 700; margin: 36px 0 10px; }
.list { border-top: 2px solid var(--ink); }
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline; padding: 20px 14px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .18s, color .18s, padding .18s; }
.item:hover { background: var(--ink); color: var(--paper); padding-left: 26px; }
.item b { font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -.03em; font-weight: 700; }
.item .d { font-family: var(--text); font-size: 16px; color: var(--mute); }
.item:hover .d { color: var(--paper); opacity: .8; }
.item .tag { font-size: 12px; border: 1.5px solid currentColor; border-radius: 99px; padding: 2px 11px; white-space: nowrap; }
@media (max-width: 720px) { .item { grid-template-columns: 1fr; } .item .tag { justify-self: start; order: -1; } }

/* calculadora */
.back { display: inline-block; margin-bottom: 14px; font-size: 13px; color: var(--mute); text-decoration: none; }
.back:hover { color: var(--ink); }
.head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.head .t { flex: 1; min-width: 260px; }
.grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr; } }

/* diagnóstico: o laudo */
.diag { border-radius: 26px; padding: 28px; border: 2px solid var(--ink); }
.diag h3 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }
.diag h3::before { font-size: .8em; margin-right: 10px; }
.diag p { font-family: var(--text); font-size: 18px; line-height: 1.45; margin: 0 0 12px; max-width: 62ch; }
.diag ul { font-family: var(--text); font-size: 17px; line-height: 1.5; margin: 0; padding-left: 20px; max-width: 66ch; }
.diag li + li { margin-top: 6px; }
.diag.good { background: var(--ink); color: var(--paper); }
.diag.good h3::before { content: "●"; }
.diag.warn { background: repeating-linear-gradient(135deg, transparent 0 9px, var(--line) 9px 10px); }
.diag.warn h3::before { content: "◐"; }
.diag.bad { border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line) 5px 6px); }
.diag.bad h3::before { content: "○"; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; }
.kpi { background: var(--paper); padding: 16px; }
.kpi .name { font-size: 12px; font-weight: 500; color: var(--mute); }
.kpi .val { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.kpi .note { font-size: 12px; color: var(--mute); line-height: 1.4; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 99px; border: 1.5px solid var(--ink); color: var(--ink); vertical-align: 1px; }
.badge.good { background: var(--ink); color: var(--paper); }
.badge.good::before { content: "●"; }
.badge.warn { background: repeating-linear-gradient(135deg, var(--paper) 0 3px, var(--line) 3px 4px); }
.badge.warn::before { content: "◐"; }
.badge.bad { border-style: dashed; }
.badge.bad::before { content: "○"; }
svg { width: 100%; height: auto; display: block; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { color: var(--mute); font-weight: 500; }
td.pos { font-weight: 700; } td.neg { color: var(--mute); }
.scroll { max-height: 300px; overflow: auto; }
.solo-print { display: none; }
.resumo { columns: 2; column-gap: 24px; font-size: 13px; margin: 0; padding: 0; list-style: none; }
.resumo li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 4px 0; break-inside: avoid; }

/* abertura da calculadora: uma revelação só, quando a pessoa abre */
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#diag.reveal .diag { animation: wipe .8s cubic-bezier(.2, .7, .2, 1) both; }
#kpis.reveal .kpi { animation: up .5s both; animation-delay: calc(var(--i) * 45ms + .35s); }

/* carregando */
#boot { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--paper); transition: opacity .45s; }
#boot.out { opacity: 0; pointer-events: none; }
#boot svg { width: 180px; overflow: visible; }
#boot path { stroke: var(--ink); fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.6, 0, .2, 1) infinite; }
#boot line { stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 5; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 70%, 100% { stroke-dashoffset: 0; } }

/* landing */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(44px, 9vw, 120px); line-height: .92; letter-spacing: -.05em; font-weight: 800; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; color: var(--mute); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero .row { display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-top: 36px; }
.hero p.lead { font-family: var(--text); font-size: 22px; line-height: 1.4; max-width: 34ch; margin: 0; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* o instrumento: painel invertido que calcula de verdade */
.instr { margin-top: 44px; border-radius: 32px; padding: clamp(22px, 4vw, 44px); display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 32px 48px; align-items: center; }
@media (max-width: 820px) { .instr { grid-template-columns: 1fr; } }
.instr .lab { font-size: 14px; color: var(--mute); margin-bottom: 4px; }
.instr .big { font-size: clamp(72px, 11vw, 132px); font-weight: 800; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.instr .veredito { margin-top: 18px; font-family: var(--text); font-size: 19px; line-height: 1.4; opacity: 0; transition: opacity .6s 2.6s; }
.instr.go .veredito { opacity: 1; }
.instr .badge { margin-top: 14px; opacity: 0; transition: opacity .5s 2.4s; }
.instr.go .badge { opacity: 1; }
.instr svg { overflow: visible; }
.instr .curva { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.instr.go .curva { animation: draw2 2s .5s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes draw2 { to { stroke-dashoffset: 0; } }
.instr .zero { stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 6; }
.instr .be { transform-box: fill-box; transform-origin: center; transform: scale(0); fill: var(--ink); }
.instr.go .be { animation: pop .5s 1.9s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes pop { to { transform: scale(1); } }
.instr .belab { font: 600 13px var(--display); fill: var(--ink); opacity: 0; transition: opacity .4s 2.3s; }
.instr.go .belab { opacity: 1; }
.instr .ax { font: 500 11px var(--display); fill: var(--mute); }

.selo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; }
.selo::before { content: "●"; font-size: 12px; }
.hero .row { align-items: flex-start; }
.hero .selo { margin-top: 20px; }
.free { padding: 88px 0; border-block: 2px solid var(--ink); }
.free h2 { font-size: clamp(48px, 10.5vw, 150px); line-height: .9; letter-spacing: -.055em; font-weight: 800; margin-bottom: 44px; }
.promessas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-bottom: 40px; }
.promessas p { margin: 0; padding-top: 16px; border-top: 2px solid var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.45; color: var(--mute); max-width: 34ch; }
.promessas b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -.03em; color: var(--ink); margin-bottom: 4px; }
.free-note { margin: 0 0 16px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; font-size: 13px; line-height: 1.4; }
.free-note b { display: block; font-size: 15px; letter-spacing: -.02em; }
.print-head { display: none; }
.sec { padding: 96px 0; }
.sec h2.t { font-size: clamp(34px, 5.6vw, 68px); letter-spacing: -.045em; max-width: 16ch; margin-bottom: 20px; }
.sec p.s { font-family: var(--text); font-size: 21px; color: var(--mute); max-width: 40ch; margin: 0 0 48px; line-height: 1.4; }
.inv.sec p.s { color: var(--mute); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--ink); }
.step { padding: 24px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 720px) { .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }
.step .n { font-size: 64px; font-weight: 800; letter-spacing: -.06em; line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { margin: 0; font-family: var(--text); font-size: 17px; color: var(--mute); line-height: 1.45; }
.inside { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.inside figure { margin: 0; }
.inside figcaption { margin-top: 14px; font-family: var(--text); font-size: 16px; color: var(--mute); line-height: 1.4; }
.inside figcaption b { font-family: var(--display); font-size: 17px; color: var(--ink); display: block; margin-bottom: 2px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.fact { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--line); }
.fact h3 { font-size: 26px; margin-bottom: 8px; letter-spacing: -.03em; }
.fact p { margin: 0; font-family: var(--text); font-size: 17px; color: var(--mute); line-height: 1.45; max-width: 36ch; }
.ctaf { text-align: left; padding: clamp(32px, 6vw, 72px); border-radius: 36px; }
.ctaf h2 { font-size: clamp(38px, 7vw, 88px); letter-spacing: -.05em; line-height: .95; max-width: 14ch; margin-bottom: 28px; }
.ctaf .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
footer.f { padding: 32px 0 48px; color: var(--mute); font-size: 13px; }

/* prints da plataforma (HTML), usados na landing */
.mock { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; text-align: left; }
.mock .bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1.5px solid var(--line); }
.mock .bar i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--mute); }
.mock .bar u { margin-left: 10px; flex: 1; text-decoration: none; font-size: 11px; color: var(--mute); }
.mock .body { padding: 14px; display: grid; gap: 10px; }
.mock .two { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.mock .in-f { display: grid; gap: 8px; align-content: start; }
.mock .in-f div { height: 26px; border-radius: 8px; border: 1.5px solid var(--line); font-size: 10px; color: var(--mute); padding: 5px 7px; overflow: hidden; white-space: nowrap; }
.mock .k3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock .k { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; }
.mock .k small { display: block; font-size: 9px; color: var(--mute); }
.mock .k b { font-size: 16px; letter-spacing: -.03em; }
.mock .dg { border-radius: 12px; padding: 10px 12px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; }
.mock .dg span { display: block; font-family: var(--text); font-weight: 400; margin-top: 3px; font-size: 12px; opacity: .85; }
.mock .dg.w { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); color: var(--ink); border: 2px solid var(--ink); }
.mock .row { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; }
.mock .row small { display: block; color: var(--mute); font-size: 10px; }
.mock .pdf { display: grid; gap: 6px; }
.mock .pdf .ln { height: 7px; border-radius: 4px; background: var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  #boot path { animation: none; stroke-dashoffset: 0; }
}

/* PDF (impressão): sem áreas pretas para economizar tinta */
@media print {
  @page { margin: 14mm; }
  :root { --ink: #000; --paper: #fff; --mute: #555; --line: #ccc; --soft: #f3f3f3; }
  body { font-size: 12px; }
  .top, .back, .sem-print, #formCard, #boot { display: none !important; }
  .solo-print { display: block; }
  .print-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 3px solid #000; font-size: 13px; }
  .print-head .brand { font-size: 18px; }
  .logo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  main.page h1 { font-size: 34px; }
  .sub { font-size: 14px; }
  .print-foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid #ccc; font-size: 10px; color: #555; }
  .grid { display: block; }
  main.page { padding: 0; max-width: none; }
  .diag { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; clip-path: none !important; }
  .diag.good { background: #fff; color: #000; border-width: 3px; }
  .diag p, .diag ul { font-size: 13px; }
  .kpi { break-inside: avoid; animation: none !important; opacity: 1 !important; }
  .scroll { max-height: none; overflow: visible; }
  .stack > * + * { margin-top: 12px; }
  section.card { break-inside: avoid; }
}

/* ===== App: estrutura de produto (menu lateral, busca, chat) ===== */
#shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.side .brand { padding: 4px 8px; }
.buscar { display: flex; align-items: center; gap: 10px; width: 100%; font: inherit; font-size: 14px; color: var(--mute); background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: pointer; text-align: left; }
.buscar:hover { border-color: var(--ink); color: var(--ink); }
.buscar .k { margin-left: auto; }
kbd { font: 600 11px var(--display); border: 1.5px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--mute); background: var(--paper); }
.side nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 14px; }
.side nav a:hover { background: var(--soft); }
.side nav a.on { background: var(--ink); color: var(--paper); font-weight: 700; }
.side nav a small { opacity: .6; font-size: 12px; font-weight: 500; }
.side-h { font-size: 12px; font-weight: 700; color: var(--mute); margin: 14px 10px 4px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 12px; }
.side-foot span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; }
.bar { display: none; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 5; }
.crumb { flex: 1; font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#scrim { display: none; }
#shell .page { max-width: 1120px; }
@media (max-width: 900px) {
  #shell { display: block; }
  .side { position: fixed; inset: 0 auto 0 0; width: 286px; z-index: 30; transform: translateX(-100%); transition: transform .25s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--ink) 35%, transparent); }
  .bar { display: flex; }
}

/* início */
.hello h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -.045em; line-height: 1; margin-bottom: 8px; }
.hello p { font-family: var(--text); font-size: 19px; color: var(--mute); margin: 0 0 24px; max-width: 52ch; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .home-grid { grid-template-columns: 1fr; } }
.chat { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 26px; height: min(600px, 72vh); overflow: hidden; }
.thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.m { max-width: 92%; padding: 11px 15px; border-radius: 18px; line-height: 1.45; }
.m.u { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; font-weight: 500; }
.m.a { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 5px; font-family: var(--text); font-size: 17px; }
.m.a b { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.m.a a.lk { text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font: inherit; font-family: var(--display); font-size: 13px; font-weight: 500; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.chip:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.m .acoes { margin-top: 10px; }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: bounce 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.comp { display: flex; gap: 8px; padding: 12px; border-top: 1.5px solid var(--line); align-items: flex-end; }
.comp textarea { flex: 1; resize: none; font: inherit; color: var(--ink); background: var(--soft); border: 1.5px solid var(--line); border-radius: 18px; padding: 11px 15px; max-height: 120px; outline: none; }
.comp textarea:focus { border-color: var(--ink); }
.comp .btn { padding: 11px 18px; }

.painel { position: sticky; top: 20px; }
.painel h2 { font-size: 13px; font-weight: 600; color: var(--mute); margin: 0 0 10px; letter-spacing: 0; }
.sugs { display: grid; gap: 10px; }
.sug { display: block; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; text-decoration: none; transition: background .18s, color .18s, transform .18s; animation: up .4s both; animation-delay: calc(var(--i, 0) * 60ms); }
.sug:hover { background: var(--ink); color: var(--paper); transform: translateX(3px); }
.sug b { display: block; font-size: 17px; letter-spacing: -.025em; margin: 4px 0 3px; }
.sug .d { font-family: var(--text); font-size: 15px; color: var(--mute); line-height: 1.4; display: block; }
.sug:hover .d { color: var(--paper); opacity: .85; }
.sug .t { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--mute); }
.sug:hover .t { color: var(--paper); }
.sug .badge { color: inherit; }
.sug:hover .badge.good { background: var(--paper); color: var(--ink); }
.sec-h { font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin: 40px 0 14px; }
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.acard { display: block; border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; text-decoration: none; transition: background .18s, color .18s; }
.acard:hover { background: var(--ink); color: var(--paper); }
.acard b { display: block; font-size: 18px; letter-spacing: -.025em; margin-bottom: 4px; }
.acard span { font-family: var(--text); font-size: 15px; color: var(--mute); display: block; line-height: 1.4; }
.acard:hover span { color: var(--paper); opacity: .85; }
.acard small { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; }
.area-head h1 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.045em; margin-bottom: 6px; }
.grid-sugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }

/* busca rápida (Ctrl/⌘ K) */
#palette { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--ink) 45%, transparent); display: grid; place-items: start center; padding-top: 12vh; }
.pal { width: min(640px, 92vw); background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; }
.pal input { width: 100%; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 18px; padding: 18px 20px; outline: none; }
#pr { max-height: 46vh; overflow-y: auto; padding: 8px; }
.pi { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; cursor: pointer; text-decoration: none; }
.pi b { font-size: 15px; letter-spacing: -.02em; }
.pi small { color: var(--mute); font-size: 12px; white-space: nowrap; }
.pi.on { background: var(--ink); color: var(--paper); }
.pi.on small { color: var(--paper); opacity: .7; }
.pvazio { padding: 18px 14px; color: var(--mute); font-size: 14px; }
.pal-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1.5px solid var(--line); font-size: 12px; color: var(--mute); }

@media print {
  #shell { display: block; }
  .side, .bar, #palette, #scrim, #topAuth { display: none !important; }
}
.m .btn, .m .chip { font-family: var(--display); }

/* ===== Largura total no app + dashboard das calculadoras ===== */
#shell .page { max-width: none; padding: 28px clamp(16px, 2.4vw, 40px) 64px; }
#shell .grid { grid-template-columns: 340px minmax(0, 1fr); }
@media (max-width: 880px) { #shell .grid { grid-template-columns: 1fr; } }
.kpis .kpi:first-child { grid-column: span 2; }
.kpis .kpi:first-child .val { font-size: 40px; letter-spacing: -.04em; }
@media (max-width: 520px) { .kpis .kpi:first-child { grid-column: auto; } }
.kpis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.paineis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 16px; }
.pc { border: 1.5px solid var(--line); border-radius: 22px; padding: 18px 20px; background: var(--paper); break-inside: avoid; min-width: 0; }
.pc.largo { grid-column: 1 / -1; }
.pc h2 { font-size: 13px; font-weight: 600; color: var(--mute); margin: 0 0 12px; letter-spacing: 0; }
.pc .pn { font-family: var(--text); font-size: 14px; color: var(--mute); margin: -4px 0 12px; line-height: 1.4; }
.tw { overflow: auto; max-height: 360px; }

/* barras horizontais, funil, composição */
.bars, .fun { display: grid; gap: 10px; }
.br, .fr { display: grid; grid-template-columns: minmax(84px, 30%) 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.bl, .fl { color: var(--ink); font-weight: 500; line-height: 1.25; }
.bt, .ft { position: relative; height: 22px; background: var(--soft); border-radius: 7px; overflow: hidden; }
.bv { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 64px; text-align: right; }
.b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
.cheio { background: var(--ink); }
.hachurado { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pontilhado { background: radial-gradient(var(--ink) 1.3px, transparent 1.5px) 0 0 / 6px 6px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.vazado { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.cinza { background: color-mix(in srgb, var(--ink) 35%, var(--paper)); }
.meta { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2.5px dashed var(--ink); }
.meta.inl { position: static; display: inline-block; height: 12px; vertical-align: middle; }
.bleg { font-size: 12px; color: var(--mute); margin-top: 2px; }
.fc { font-size: 12px; color: var(--mute); padding-left: calc(30% + 12px); margin: -4px 0; }
.comp-bar { display: flex; height: 30px; border-radius: 10px; overflow: hidden; gap: 2px; background: var(--paper); }
.seg { display: block; min-width: 2px; }
.leg { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.leg li { display: grid; grid-template-columns: 18px 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; }
.leg li b { font-variant-numeric: tabular-nums; }
.leg li small { color: var(--mute); min-width: 38px; text-align: right; }
.sw { width: 16px; height: 16px; border-radius: 4px; display: block; }
.leg.h { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 10px; }
.leg.h li { display: flex; gap: 8px; }

/* linha e cascata */
.chart { width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .zl { stroke: var(--mute); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .ax { font: 500 11px var(--display); fill: var(--mute); }
.chart .mt { font: 700 12px var(--display); fill: var(--ink); }
.chart .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .ln.dash { stroke-width: 2.5; stroke-dasharray: 8 5; }
.chart .ln.dot { stroke-width: 2.5; stroke-dasharray: 1 6; }
.chart .mk { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.chart .cn { stroke: var(--mute); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .cb.cheio { fill: var(--ink); }
.chart .cb.hachurado { fill: url(#pHatch); stroke: var(--ink); stroke-width: 1.5; }
.chart .cb.vazado { fill: none; stroke: var(--ink); stroke-width: 2; }
.eixo-x { text-align: center; font-size: 12px; color: var(--mute); margin-top: 2px; }
.leg.h svg .ln { stroke: var(--ink); fill: none; }
@media print { .pc { break-inside: avoid; } .paineis { display: block; } .pc { margin-bottom: 12px; } }

/* CTA discreto: ExpX Play (rodapé do menu, acima do usuário) */
.play { display: block; text-decoration: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 13px; transition: border-color .15s, background .15s; }
.play:hover { border-color: var(--ink); background: var(--soft); }
.play b { display: block; font-size: 14px; letter-spacing: -.02em; }
.play span { display: block; font-family: var(--text); font-size: 14px; color: var(--mute); line-height: 1.35; margin: 3px 0 6px; }
.play small { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.side .play { margin-top: auto; }
.side .play + .side-foot { margin-top: 12px; }
.leg.h svg .ln.dash { stroke-dasharray: 8 5; }
.leg.h svg .ln.dot { stroke-dasharray: 1 6; }
.acoes-head { display: flex; gap: 8px; flex-wrap: wrap; }

/* quadro branco */
#shell main.page.larga { max-width: none; padding: 16px 16px 16px; }
.q-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.q-barra select { font: inherit; font-size: 13px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); }
.q-sp { flex: 1; }
.q-zoom { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.q-zoom b { min-width: 42px; text-align: center; font-weight: 600; }
.q-tela { position: relative; height: calc(100vh - 92px); min-height: 420px; overflow: hidden; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.q-tela:active { cursor: grabbing; }
.q-grade { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--line) 1.5px, transparent 1.6px); background-size: 24px 24px; pointer-events: none; }
.q-mundo { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.q-setas { position: absolute; left: -10000px; top: -10000px; width: 20000px; height: 20000px; max-width: none; pointer-events: none; color: var(--ink); }
.q-setas .vis { stroke: currentColor; stroke-width: 2; }
.q-setas .hit { stroke: transparent; stroke-width: 16; cursor: pointer; pointer-events: stroke; }
.q-setas .sel .vis { stroke-width: 4; }
.q-setas .qtemp { stroke: currentColor; stroke-width: 2; stroke-dasharray: 6 5; }
.q-dica { position: absolute; left: 14px; bottom: 10px; margin: 0; font-size: 12px; color: var(--mute); pointer-events: none; }
.qn { position: absolute; min-width: 120px; max-width: 280px; padding: 14px 18px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; text-align: center; font-weight: 600; cursor: move; }
.qn .qt { outline: none; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.2em; }
.qn .qt[contenteditable="true"], .qn .qt[contenteditable="plaintext-only"] { cursor: text; }
.qn.nota { background: var(--soft); border-style: dashed; border-radius: 4px; font-weight: 500; text-align: left; min-width: 150px; min-height: 90px; }
.qn.circulo, .qn.losango, .qn.triangulo { display: flex; align-items: center; justify-content: center; padding: 22px; }
.qn.circulo { border-radius: 50%; min-width: 130px; min-height: 130px; }
/* formas vazadas: o preenchimento é translúcido, então a interseção entre duas formas fica mais escura (Venn) */
.qn.circulo { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.qn.losango, .qn.triangulo { border-color: transparent; background: transparent; min-width: 120px; min-height: 90px; }
.qn .qf { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.qn .qf polygon { fill: color-mix(in srgb, var(--ink) 8%, transparent); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.qn .qt { position: relative; z-index: 1; }
.qn.triangulo .qt { margin-top: 26%; max-width: 58%; }
.qn.triangulo .qh { right: calc(25% - 7px); }
.qn .qr { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 3px; cursor: nwse-resize; opacity: 0; transition: opacity .12s; z-index: 2; }
.qn:hover .qr, .qn.sel .qr { opacity: 1; }
.qn.texto { border-color: transparent; background: transparent; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.qn.sel { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.qn.texto.sel { border-color: var(--line); }
.qn .qh { position: absolute; right: -8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 2px solid var(--paper); cursor: crosshair; opacity: 0; transition: opacity .12s; }
.qn:hover .qh, .qn.sel .qh { opacity: 1; }
@media print { #quadro .q-barra, #quadro .q-dica { display: none !important; } .q-tela { height: auto; border: 0; } }

/* quadro: caneta, traços e painel da sala ao vivo */
.q-tinta { position: absolute; left: -10000px; top: -10000px; width: 20000px; height: 20000px; max-width: none; pointer-events: none; z-index: 3; color: var(--ink); }
.q-tinta path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.q-tela.caneta { cursor: crosshair; }
#qCaneta.on { background: var(--ink); color: var(--paper); }
#quadro { position: relative; }
.q-sala { position: absolute; top: 48px; right: 8px; z-index: 10; width: min(340px, calc(100% - 16px)); max-height: calc(100% - 64px); overflow: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 16px; }
.q-sala h3 { font-size: 16px; margin: 14px 0 4px; }
.q-sala .q-h { margin: 0 0 10px; font-size: 13px; color: var(--mute); line-height: 1.4; }
.q-sala .q-st { margin: 0; padding-right: 36px; font-size: 14px; }
.q-sala .q-x { position: absolute; top: 10px; right: 10px; }
.q-qr { width: 200px; margin: 0 auto 10px; background: #fff; padding: 6px; border-radius: 10px; }
.q-qr svg { display: block; width: 100%; height: auto; }
.q-lk { display: flex; gap: 6px; margin-bottom: 8px; }
.q-lk input { flex: 1; min-width: 0; font: inherit; font-size: 12px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.q-sala #qsEncerrar { margin-top: 10px; }

/* prompt para IA */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--ink) 40%, transparent); }
.modal-box { width: min(720px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; padding: 22px; }
.modal-box h2 { font-size: 24px; }
.modal-box .q-h { margin: 0; font-size: 14px; color: var(--mute); line-height: 1.45; }
.modal-box textarea { flex: 1; min-height: 280px; resize: vertical; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); }
.modal-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
@media print { .modal { display: none !important; } }

#qBorracha.on { background: var(--ink); color: var(--paper); }
.q-tela.borracha { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><circle cx='14' cy='14' r='12' fill='none' stroke='black' stroke-width='3'/><circle cx='14' cy='14' r='12' fill='none' stroke='white' stroke-width='1.5'/></svg>") 14 14, cell; }
