/* Painel, login — sistema visual sóbrio no padrão de produtos profissionais (Linear, Vercel, Stripe):
   tipografia contida (Geist), cinzas neutros, cantos de 8px, bordas finas, a cor da marca só nos detalhes. */
:root {
  --sans:"Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --mono:"Geist Mono", ui-monospace, Menlo, monospace;
  --display:var(--sans);
  --bg:#fafafa; --side:#f4f4f3; --panel:#ffffff; --panel2:#f7f7f6; --hover:rgba(0,0,0,.04); --active:rgba(0,0,0,.06);
  --ink:#171717; --ink2:#404040; --muted:#737373; --faint:#a3a3a3;
  --line:rgba(0,0,0,.08); --line2:rgba(0,0,0,.13);
  --accent:#e8590c; --accent-ink:#fff;
  --ok:#15803d; --okbg:#f0fdf4; --warn:#b45309; --warnbg:#fffbeb; --bad:#dc2626; --badbg:#fef2f2; --info:#2563eb; --infobg:#eff6ff;
  --r-sm:6px; --r:8px; --r-lg:12px;
  --shadow-sm:0 1px 2px rgba(0,0,0,.04); --shadow:0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04); --shadow-lg:0 16px 48px -12px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06);
  color-scheme:light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg:#0a0a0a; --side:#0f0f0f; --panel:#121212; --panel2:#171717; --hover:rgba(255,255,255,.05); --active:rgba(255,255,255,.08);
  --ink:#ededed; --ink2:#d4d4d4; --muted:#8f8f8f; --faint:#5c5c5c;
  --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.14);
  --ok:#4ade80; --okbg:rgba(74,222,128,.1); --warn:#fbbf24; --warnbg:rgba(251,191,36,.1); --bad:#f87171; --badbg:rgba(248,113,113,.1); --info:#60a5fa; --infobg:rgba(96,165,250,.1);
  --shadow-sm:none; --shadow:none; --shadow-lg:0 16px 48px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  color-scheme:dark;
} }
* { box-sizing:border-box; }
html, body { margin:0; }
body { font:14px/1.5 var(--sans); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; background:var(--bg); color:var(--ink); min-height:100vh; min-height:100dvh; -webkit-tap-highlight-color:transparent; }
a { color:var(--ink); text-decoration-color:var(--line2); text-underline-offset:3px; }
a:hover { text-decoration-color:currentColor; }
h1, h2, h3 { margin:0; font-family:var(--sans); letter-spacing:-.015em; line-height:1.25; font-weight:600; }
h1 { font-size:22px; letter-spacing:-.02em; } h2 { font-size:15px; } h3 { font-size:14px; }
p { margin:4px 0 0; }
button, input, select, textarea { font:inherit; color:inherit; }
.ic { flex:none; display:block; }
.muted { color:var(--muted); } .small { font-size:13px; }
.row { display:flex; gap:8px; align-items:center; } .row.wrap { flex-wrap:wrap; } .row.center { justify-content:center; } .grow { flex:1; min-width:0; }
.stack { display:flex; flex-direction:column; gap:16px; } .stack.tight { gap:6px; align-items:flex-start; }
.mono-label { font:500 11px var(--mono); letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
.link-arrow { font-weight:500; }
code { font:12.5px var(--mono); background:var(--active); padding:1px 5px; border-radius:4px; }

/* Botões */
button, .btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:34px; padding:0 12px; border:1px solid var(--line2); background:var(--panel); color:var(--ink); border-radius:var(--r); font-size:13.5px; font-weight:500; cursor:pointer; text-decoration:none; white-space:nowrap; box-shadow:var(--shadow-sm); transition:background .12s, border-color .12s, color .12s; }
button:hover:not(:disabled), .btn:hover { background:var(--panel2); }
button:active:not(:disabled), .btn:active { background:var(--active); }
button:disabled { opacity:.45; cursor:default; }
button.primary, .btn.primary { background:var(--ink); border-color:var(--ink); color:var(--bg); box-shadow:none; }
button.primary:hover:not(:disabled), .btn.primary:hover { background:var(--ink2); border-color:var(--ink2); }
button.danger { color:var(--bad); }
button.ghost { background:transparent; border-color:transparent; box-shadow:none; }
button.ghost:hover:not(:disabled) { background:var(--hover); }
button.sm, .small-btn { height:30px !important; padding:0 10px !important; font-size:13px; }
.icon-btn { width:34px; padding:0 !important; } .icon-btn.sm { width:30px; }
.mtop .icon-btn, .side-foot .icon-btn { border-color:transparent; background:transparent; box-shadow:none; color:var(--muted); }
.mtop .icon-btn:hover:not(:disabled), .side-foot .icon-btn:hover:not(:disabled) { color:var(--ink); background:var(--hover); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline:2px solid var(--info); outline-offset:2px; }

/* Campos */
input, select, textarea { width:100%; height:36px; border:1px solid var(--line2); background:var(--panel); border-radius:var(--r); padding:0 11px; font-size:14px; box-shadow:var(--shadow-sm); transition:border-color .12s, box-shadow .12s; }
textarea { height:auto; padding:9px 11px; }
input::placeholder, textarea::placeholder { color:var(--faint); }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--ink2); box-shadow:0 0 0 3px var(--active); }
label { display:block; font-size:13px; font-weight:500; color:var(--ink2); margin:14px 0 6px; }

/* ---------- Estrutura ---------- */
.shell { display:grid; grid-template-columns:240px minmax(0, 1fr); min-height:100vh; min-height:100dvh; }
.sidenav { position:sticky; top:0; height:100vh; height:100dvh; display:flex; flex-direction:column; gap:2px; padding:12px 10px; background:var(--side); border-right:1px solid var(--line); }
.org { display:flex; align-items:center; gap:10px; padding:6px 8px 16px; min-width:0; }
.org-mark { width:28px; height:28px; border-radius:7px; background:var(--accent); color:#fff; display:grid; place-items:center; flex:none; }
.org-mark svg { width:17px; height:17px; } .org-mark[hidden] { display:none; }
.org-logo { max-height:28px; max-width:96px; object-fit:contain; flex:none; }
.org-txt { display:flex; flex-direction:column; min-width:0; line-height:1.3; }
.org-txt b { font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .org-txt .small { font-size:12px; }
.navlist { display:flex; flex-direction:column; gap:1px; }
.navlist button { justify-content:flex-start; gap:10px; height:32px; padding:0 10px; border:0; background:transparent; box-shadow:none; color:var(--ink2); font-weight:500; border-radius:var(--r-sm); }
.navlist button .ic { color:var(--muted); }
.navlist button:hover:not(.on):not(:disabled) { background:var(--hover); }
.navlist button.on, .navlist button.on:hover { background:var(--active); color:var(--ink); }
.navlist button.on .ic { color:var(--ink); }
.side-foot { margin-top:auto; display:flex; flex-direction:column; gap:8px; }
.usage { display:flex; flex-direction:column; align-items:stretch; gap:6px; height:auto; text-align:left; border-radius:var(--r); border:1px solid var(--line); background:var(--panel); padding:10px 12px; white-space:normal; box-shadow:none; }
.usage:hover:not(:disabled) { background:var(--panel); border-color:var(--line2); }
.usage .small { font-size:12px; } .usage b { font-size:13px; font-weight:500; }
.usage .pbar { margin:0; height:4px; }
.me { display:flex; align-items:center; gap:10px; padding:12px 4px 0 8px; min-width:0; border-top:1px solid var(--line); }
.me b { display:block; font-size:13px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .me .small { display:block; font-size:12px; }
.avatar { width:26px; height:26px; border-radius:50%; background:var(--active); color:var(--ink2); display:grid; place-items:center; font-weight:600; font-size:12px; flex:none; }
.mtop, .tabbar, .fab { display:none; }

main.page { width:100%; max-width:1080px; margin:0 auto; padding:36px 40px 80px; min-width:0; }
.phead { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:28px; }
.phead p { margin-top:2px; color:var(--muted); font-size:14px; }
.sec-head { display:flex; align-items:baseline; gap:10px; margin:0 0 10px; } .sec-head h2 { font-size:14px; flex:1; } .sec-head .small { font-size:12.5px; }
.banner { border:1px solid var(--line); background:var(--panel); color:var(--ink2); border-radius:var(--r); padding:10px 14px; margin-bottom:24px; font-size:13px; }
.banner b { color:var(--warn); font-weight:600; }
details.banner summary { cursor:pointer; list-style:none; } details.banner summary::-webkit-details-marker { display:none; }
details.banner summary::after { content:"Detalhes"; float:right; color:var(--muted); } details.banner[open] summary::after { content:"Fechar"; }

/* Indicadores: uma faixa única dividida */
#overview:empty { display:none; }
#overview { margin-bottom:32px; }
.kpis { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); border:1px solid var(--line); border-radius:var(--r-lg); background:var(--panel); overflow:hidden; box-shadow:var(--shadow-sm); }
.kpi { padding:14px 16px; display:flex; flex-direction:column-reverse; justify-content:flex-end; gap:4px; border-left:1px solid var(--line); }
.kpi:first-child { border-left:0; }
.kpi b { font-size:24px; font-weight:600; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1.1; }
.kpi span { font-size:12.5px; color:var(--muted); line-height:1.35; }
.kpi.warn b { color:var(--warn); }
.feed { margin-top:12px; background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg); padding:4px 0; }
.feed h3 { font-size:12.5px; font-weight:500; color:var(--muted); padding:8px 16px 4px; }
.feed-item { display:flex; gap:12px; align-items:center; padding:10px 16px; border-top:1px solid var(--line); } .feed h3 + .feed-item { border-top:0; }
.feed-item b { display:block; font-weight:500; font-size:13.5px; } .feed-item .small { display:block; font-size:12.5px; }
.dot-ic { width:20px; height:20px; border-radius:50%; display:grid; place-items:center; font-weight:600; font-size:11px; flex:none; } .dot-ic.warn { background:var(--warnbg); color:var(--warn); }

/* Lista de produtos */
.listbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.listbar[hidden] { display:none; }
.search { position:relative; margin:0; flex:0 1 260px; min-width:0; color:var(--faint); display:block; }
.search .ic { position:absolute; left:10px; top:50%; transform:translateY(-50%); pointer-events:none; width:16px; height:16px; }
.search input { min-width:0; padding-left:32px; height:32px; font-size:13.5px; }
.seg-chips { display:flex; gap:2px; padding:2px; border-radius:var(--r); background:var(--active); overflow-x:auto; scrollbar-width:none; } .seg-chips::-webkit-scrollbar { display:none; }
.seg-chips button { height:28px; padding:0 10px; font-size:13px; border:0; background:transparent; box-shadow:none; color:var(--muted); border-radius:var(--r-sm); flex:none; gap:6px; }
.seg-chips button:hover:not(:disabled) { background:transparent; color:var(--ink); }
.seg-chips button .n { font-size:12px; color:var(--faint); font-variant-numeric:tabular-nums; } .seg-chips button .n:empty { display:none; }
.seg-chips button.on, .seg-chips button.on:hover { background:var(--panel); color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.1); } .seg-chips button.on .n { color:var(--muted); }

.plist { border:1px solid var(--line); border-radius:var(--r-lg); background:var(--panel); overflow:hidden; box-shadow:var(--shadow-sm); }
.plist-head, .prow { display:grid; grid-template-columns:minmax(0, 1fr) 140px 64px 120px 168px; align-items:center; gap:16px; padding:0 12px 0 16px; }
.plist-head { height:36px; font-size:12px; font-weight:500; color:var(--muted); border-bottom:1px solid var(--line); background:var(--panel2); }
.prow { min-height:60px; border-top:1px solid var(--line); transition:background .1s; }
.plist-head + .prow { border-top:0; }
.prow[data-ready] { cursor:pointer; } .prow:hover { background:var(--panel2); }
.pcell-main { display:flex; align-items:center; gap:12px; min-width:0; padding:10px 0; }
.pthumb { width:34px; height:34px; border-radius:var(--r); border:1px solid var(--line); background:var(--panel2); color:var(--muted); display:grid; place-items:center; flex:none; }
.ptext { display:flex; flex-direction:column; min-width:0; }
.ptext b { font-weight:500; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ptext span { font-size:12.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pcell-date { font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.pcell-score .score { font-variant-numeric:tabular-nums; font-size:13px; }
.pcell-act { display:flex; gap:6px; justify-content:flex-end; align-items:center; }
.pcell-progress { grid-column:1 / -1; display:flex; align-items:center; gap:12px; padding:0 0 12px 46px; font-size:12.5px; color:var(--muted); }
.pcell-progress .pbar { width:160px; flex:none; margin:0; }
.err-line { color:var(--bad); }
.status { display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--ink2); white-space:nowrap; }
.status::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--faint); flex:none; }
.status.ok::before { background:var(--ok); } .status.info::before { background:var(--info); animation:blink 1.2s ease-in-out infinite; } .status.bad::before { background:var(--bad); } .status.bad { color:var(--bad); }
@keyframes blink { 50% { opacity:.25; } }
.score { font-weight:600; } .score.hi { color:var(--ok); } .score.mid { color:var(--warn); } .score.lo { color:var(--bad); }

.chips { display:flex; gap:6px; flex-wrap:wrap; }
.chip { display:inline-flex; align-items:center; gap:6px; height:22px; font-size:12px; font-weight:500; padding:0 8px; border-radius:var(--r-sm); background:var(--active); color:var(--ink2); border:0; box-shadow:none; white-space:nowrap; }
.chip.ok { background:var(--okbg); color:var(--ok); } .chip.warn { background:var(--warnbg); color:var(--warn); } .chip.bad { background:var(--badbg); color:var(--bad); } .chip.info { background:var(--infobg); color:var(--info); }
button.chip:hover:not(:disabled) { filter:brightness(.97); }
.spinner { width:14px; height:14px; border:1.5px solid var(--line2); border-top-color:var(--ink); border-radius:50%; display:inline-block; animation:spin .7s linear infinite; vertical-align:-2px; }
@keyframes spin { to { transform:rotate(360deg); } }
.skeleton-grid { border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; background:var(--panel); }
.sk { height:60px; border-top:1px solid var(--line); background:linear-gradient(90deg, transparent 0, var(--hover) 50%, transparent 100%) var(--panel); background-size:200% 100%; animation:sk 1.3s ease infinite; } .sk:first-child { border-top:0; }
@keyframes sk { from { background-position:150% 0; } to { background-position:-50% 0; } }

/* Estado vazio */
.empty { text-align:center; padding:64px 24px; border:1px solid var(--line); border-radius:var(--r-lg); background-color:var(--panel); box-shadow:var(--shadow-sm);
  background-image:radial-gradient(var(--line) 1px, transparent 1px); background-size:16px 16px; }
.empty h2 { font-size:16px; margin-top:16px; } .empty p { max-width:380px; margin:6px auto 20px; font-size:14px; }
.empty .row { gap:8px; }
.empty.slim { padding:36px 20px; background-image:none; } .empty.slim p { margin:0 auto; }
.empty-ic { width:44px; height:44px; margin:0 auto; border-radius:10px; background:var(--panel); border:1px solid var(--line2); color:var(--ink2); display:grid; place-items:center; box-shadow:var(--shadow); }

/* Cartões e formulários */
.card { background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px; display:flex; flex-direction:column; gap:8px; box-shadow:var(--shadow-sm); }
.card.form { gap:0; padding:0 20px 20px; }
.card.form h2 { font-size:14px; margin:0 -20px; padding:14px 20px; border-bottom:1px solid var(--line); }
.card.form h2 + p { margin-top:14px; }
.card.flush { padding:0; }
.split { display:grid; grid-template-columns:minmax(0, 1fr) 280px; gap:28px; align-items:start; }
.fields2 { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.swatches { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.sw { width:26px; height:26px; padding:0 !important; border-radius:50%; background:var(--c); border:0; box-shadow:inset 0 0 0 1px rgba(0,0,0,.12); }
.sw:hover:not(:disabled) { background:var(--c); }
.sw.on { box-shadow:0 0 0 2px var(--panel), 0 0 0 4px var(--ink); }
.sw.custom { position:relative; margin:0; overflow:hidden; cursor:pointer; background:conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #f43f5e); display:block; }
.sw.custom input { position:absolute; inset:0; opacity:0; cursor:pointer; height:100%; }
.hex { width:96px; height:30px; font:12.5px var(--mono); margin-left:4px; }
.logo-pick { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.logo-box { width:104px; height:64px; border-radius:var(--r); border:1px dashed var(--line2); display:grid; place-items:center; background:var(--panel2); overflow:hidden; }
.logo-box img { max-width:88px; max-height:48px; object-fit:contain; } .logo-box [hidden] { display:none; }
.btn-file { display:inline-flex; align-items:center; gap:6px; height:30px; margin:0; padding:0 10px; border:1px solid var(--line2); border-radius:var(--r); color:var(--ink); font-size:13px; font-weight:500; cursor:pointer; background:var(--panel); box-shadow:var(--shadow-sm); }
.btn-file:hover { background:var(--panel2); } .btn-file .ic { width:15px; height:15px; }
.savebar { position:sticky; bottom:16px; display:flex; align-items:center; gap:12px; margin-top:20px; padding:8px 8px 8px 16px; border-radius:var(--r-lg); background:var(--panel); border:1px solid var(--line); box-shadow:var(--shadow-lg); max-width:calc(100% - 308px); }
.savebar .err { margin:0; }
.preview-col { position:sticky; top:36px; display:flex; flex-direction:column; gap:12px; align-items:center; }
.phone-prev { --accent:#e8590c; position:relative; width:236px; height:460px; border-radius:34px; border:7px solid #1c1c1c; outline:1px solid var(--line2); background:linear-gradient(#f7f5f0, #e9e5da); overflow:hidden; box-shadow:var(--shadow-lg); color:#171717; font-family:var(--sans); }
.pp-top { display:flex; align-items:center; gap:8px; padding:18px 14px 0; font-weight:600; font-size:13px; } .pp-top img { max-height:20px; max-width:64px; object-fit:contain; } .pp-top img[hidden] { display:none; }
.pp-stage { display:grid; place-items:center; height:230px; color:#a8a29e; }
.pp-card { position:absolute; left:8px; right:8px; bottom:8px; background:#fff; border-radius:16px; padding:12px; display:flex; flex-direction:column; gap:2px; box-shadow:0 4px 16px rgba(0,0,0,.1); }
.pp-card .small { color:var(--accent); font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; } .pp-card b { font-size:14px; font-weight:600; }
.pp-btns { display:flex; gap:6px; margin-top:8px; } .pp-b { border:1px solid #e5e5e5; border-radius:999px; padding:6px 12px; font-size:12px; } .pp-b.pri { flex:1; text-align:center; background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }
.pp-help { position:absolute; top:48px; right:10px; background:var(--accent); color:#fff; font-size:10.5px; font-weight:600; padding:5px 10px; border-radius:999px; }

/* Como funciona */
.timeline { list-style:none; padding:0; margin:0 0 20px; max-width:640px; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--panel); overflow:hidden; }
.timeline li { display:flex; gap:14px; padding:16px 18px; border-top:1px solid var(--line); } .timeline li:first-child { border-top:0; }
.tl-ic { width:32px; height:32px; border-radius:var(--r); display:grid; place-items:center; background:var(--panel2); border:1px solid var(--line); color:var(--ink2); flex:none; }
.tl-ic .ic { width:16px; height:16px; }
.timeline h3 { font-size:14px; margin-top:2px; } .timeline p { margin-top:2px; font-size:13.5px; } .timeline .mono-label { font-size:10.5px; }
.card.note { max-width:640px; gap:2px; margin-bottom:16px; }

/* Plano */
.usage-big { max-width:640px; margin-bottom:28px; } .usage-big h2 { font-size:20px; margin-top:2px; }
.pbar { display:block; height:6px; background:var(--active); border-radius:3px; overflow:hidden; margin:4px 0; } .pbar i { display:block; height:100%; background:var(--ink); border-radius:3px; transition:width .6s; }
.pbar.lg { height:8px; margin:10px 0 8px; }
.plans { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.plan { gap:6px; } .plan .tag { font-size:12px; font-weight:500; color:var(--muted); min-height:16px; }
.plan h3 { font-size:15px; } .plan .price { font-size:26px; font-weight:600; letter-spacing:-.025em; font-variant-numeric:tabular-nums; } .plan .price small { font-size:13px; font-weight:400; color:var(--muted); letter-spacing:0; }
.plan ul { margin:8px 0 12px; padding:12px 0 0; border-top:1px solid var(--line); list-style:none; font-size:13.5px; color:var(--ink2); display:grid; gap:8px; flex:1; }
.plan li { padding-left:22px; position:relative; } .plan li::before { content:""; position:absolute; left:3px; top:5px; width:9px; height:5px; border-left:1.5px solid var(--ok); border-bottom:1.5px solid var(--ok); transform:rotate(-45deg); }
.plan .tag:empty { display:none; }
.plan.hl { box-shadow:var(--shadow), inset 0 0 0 1px var(--ink); } .plan.cur { background:var(--panel2); }

/* Janelas */
.modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.4); display:grid; place-items:center; padding:16px; z-index:50; animation:fade .15s ease; }
.modal { position:relative; background:var(--panel); border-radius:var(--r-lg); padding:20px 22px; width:min(520px, 100%); max-height:88vh; max-height:88dvh; overflow:auto; box-shadow:var(--shadow-lg); animation:pop .18s cubic-bezier(.2,.8,.3,1); overscroll-behavior:contain; }
.modal.wide { width:min(780px, 100%); }
.modal h2 { margin-bottom:2px; font-size:16px; padding-right:24px; }
.modal h2 + p { font-size:13.5px; }
.modal h3 { font-size:13.5px; }
.modal .foot { display:flex; gap:8px; justify-content:flex-end; margin:20px -22px -20px; padding:12px 22px; border-top:1px solid var(--line); background:var(--panel2); flex-wrap:wrap; }
@keyframes fade { from { opacity:0; } } @keyframes pop { from { opacity:0; transform:translateY(4px) scale(.98); } }
@keyframes up { from { transform:translateY(100%); } }
.menu { display:flex; flex-direction:column; margin:14px -8px 0; }
.menu-item { justify-content:flex-start; gap:12px; height:auto; min-height:44px; padding:8px 10px; border:0; border-radius:var(--r); background:transparent; box-shadow:none; text-align:left; white-space:normal; }
.menu-item:hover:not(:disabled) { background:var(--hover); }
.menu-item .ic { color:var(--muted); width:17px; height:17px; } .menu-item b { display:block; font-weight:500; } .menu-item .small { display:block; font-size:12.5px; }
.menu-item.danger, .menu-item.danger .ic { color:var(--bad); }
.dropzone { display:flex; flex-direction:column; align-items:center; gap:2px; border:1px dashed var(--line2); border-radius:var(--r-lg); padding:28px 18px; text-align:center; color:var(--muted); cursor:pointer; margin-top:16px; background:var(--panel2); font-size:13px; transition:border-color .12s, background .12s; }
.dropzone b { color:var(--ink); font-weight:500; font-size:14px; }
.dropzone:hover, .dropzone.over { border-color:var(--ink2); background:var(--hover); }
.dropzone.has { border-style:solid; border-color:var(--ok); }
.dz-ic { width:36px; height:36px; border-radius:var(--r); display:grid; place-items:center; background:var(--panel); border:1px solid var(--line2); color:var(--ink2); box-shadow:var(--shadow-sm); margin-bottom:10px; }
.dz-ic .ic { width:18px; height:18px; }
.file-pill { margin-top:8px; padding:6px 10px; border-radius:var(--r-sm); background:var(--okbg); color:var(--ok); font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.file-pill[hidden] { display:none; }
.alt { display:flex; gap:4px; align-items:center; flex-wrap:wrap; margin-top:16px; }
.alt .small { margin-right:4px; }
.code { font:12px/1.55 var(--mono); background:var(--panel2); border:1px solid var(--line); border-radius:var(--r); padding:10px 12px; overflow-wrap:anywhere; user-select:all; }
.qr { background:#fff; padding:12px; border-radius:var(--r-lg); width:172px; height:172px; border:1px solid var(--line); }
.qr svg { width:100%; height:100%; display:block; }
.tscroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
table { width:100%; border-collapse:collapse; font-size:13.5px; } th, td { text-align:left; padding:10px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-weight:500; font-size:12px; white-space:nowrap; background:var(--panel2); }
tbody tr:last-child td { border-bottom:0; }
.modal .kpis { grid-template-columns:repeat(auto-fit, minmax(130px, 1fr)); margin:14px 0; box-shadow:none; }
.bars { display:flex; align-items:flex-end; gap:3px; height:80px; margin:10px 0; } .bars i { flex:1; background:var(--ink); border-radius:2px 2px 0 0; min-height:2px; opacity:.8; }
.bar-h { height:6px; background:var(--ink); border-radius:3px; }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:var(--ink); color:var(--bg); padding:10px 14px; border-radius:var(--r); z-index:80; box-shadow:var(--shadow-lg); max-width:90vw; font-size:13.5px; font-weight:500; animation:toast .2s ease; }
@keyframes toast { from { opacity:0; transform:translate(-50%, 6px); } }
.err { color:var(--bad); font-size:13px; min-height:18px; margin-top:8px; }

/* ---------- Tablet e celular ---------- */
@media (max-width:1100px) {
  .kpis { grid-template-columns:repeat(3, minmax(0, 1fr)); } .kpi:nth-child(4) { border-left:0; } .kpi:nth-child(n+4) { border-top:1px solid var(--line); }
  .split { grid-template-columns:1fr; } .preview-col { display:none; } .savebar { max-width:none; }
  .plist-head, .prow { grid-template-columns:minmax(0, 1fr) 120px 48px 150px; } .pcell-date, .plist-head span:nth-child(4) { display:none; }
}
@media (max-width:860px) {
  body { font-size:15px; }
  .shell { display:block; }
  .sidenav { display:none; }
  .mtop { display:flex; align-items:center; gap:10px; position:sticky; top:0; z-index:30; height:52px; padding:0 6px 0 16px; padding-top:env(safe-area-inset-top); box-sizing:content-box;
    background:color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter:saturate(1.5) blur(14px); -webkit-backdrop-filter:saturate(1.5) blur(14px); border-bottom:1px solid var(--line); }
  .mtop b { font-size:15px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mtop .org-mark { width:26px; height:26px; } .mtop .org-mark svg { width:15px; height:15px; }
  .mtop .org-logo { max-height:26px; max-width:84px; }
  .mtop .icon-btn { width:40px; height:40px; }
  .tabbar { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:40; padding:4px 4px calc(4px + env(safe-area-inset-bottom));
    background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:saturate(1.5) blur(16px); -webkit-backdrop-filter:saturate(1.5) blur(16px); border-top:1px solid var(--line); }
  .tabbar button { flex:1; flex-direction:column; gap:3px; height:52px; border:0; background:transparent; box-shadow:none; padding:4px 2px; font-size:11px; font-weight:500; color:var(--muted); }
  .tabbar button:hover:not(:disabled) { background:transparent; }
  .tabbar button.on { color:var(--ink); }
  main.page { padding:20px 16px calc(100px + env(safe-area-inset-bottom)); }
  h1 { font-size:24px; }
  .phead { margin-bottom:20px; } .phead .primary { display:none; }
  .fab { display:grid; place-items:center; position:fixed; right:16px; bottom:calc(72px + env(safe-area-inset-bottom)); z-index:35; width:52px; height:52px; padding:0; border-radius:16px; background:var(--ink); border:0; color:var(--bg); box-shadow:0 8px 24px -6px rgba(0,0,0,.35); }
  .fab:hover:not(:disabled) { background:var(--ink); }
  .kpis.scroller { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; } .kpis.scroller::-webkit-scrollbar { display:none; }
  .kpis.scroller .kpi { flex:0 0 40%; scroll-snap-align:start; border-top:0 !important; border-left:1px solid var(--line) !important; } .kpis.scroller .kpi:first-child { border-left:0 !important; }
  .listbar { flex-direction:column; align-items:stretch; gap:8px; }
  .search { flex:none; width:100%; } .search input { height:38px; font-size:15px; }
  .seg-chips { align-self:flex-start; max-width:100%; }
  .seg-chips button { height:30px; }
  .plist-head { display:none; }
  .prow { grid-template-columns:minmax(0, 1fr) auto; gap:4px 10px; padding:12px 8px 12px 14px; }
  .pcell-main { padding:0; }
  .pcell-status, .pcell-score { display:none; }
  .pcell-act button[data-act="stats"] { display:none; }
  .ptext b { font-size:15px; }
  .pthumb { width:40px; height:40px; }
  .pcell-progress { padding:6px 0 0; flex-direction:column; align-items:stretch; gap:4px; } .pcell-progress .pbar { width:100%; }
  .fields2 { grid-template-columns:1fr; }
  input, select { height:42px; font-size:16px; }
  button, .btn { height:38px; }
  .savebar { position:fixed; left:12px; right:12px; bottom:calc(72px + env(safe-area-inset-bottom)); margin:0; z-index:36; }
  .modal-bg { place-items:end stretch; padding:0; }
  .modal, .modal.wide { width:100%; max-height:92vh; max-height:92dvh; border-radius:16px 16px 0 0; padding:24px 18px calc(18px + env(safe-area-inset-bottom)); animation:up .25s cubic-bezier(.2,.9,.3,1); }
  .modal::before { content:""; position:absolute; top:8px; left:50%; width:36px; height:4px; margin-left:-18px; border-radius:4px; background:var(--line2); }
  .modal .foot { position:sticky; bottom:calc(-18px - env(safe-area-inset-bottom)); margin:18px -18px calc(-18px - env(safe-area-inset-bottom)); padding:12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .modal .foot button { flex:1; height:44px; }
  .menu-item { min-height:52px; }
  .toast { bottom:calc(84px + env(safe-area-inset-bottom)); }
  html, body { overflow-x:clip; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation:none !important; transition:none !important; } }

/* ---------- Login ---------- */
.auth { min-height:100vh; min-height:100dvh; display:grid; grid-template-columns:minmax(0, 1fr) minmax(400px, 520px); }
.auth .side { background:#0a0a0a; color:#ededed; padding:40px 48px; display:flex; flex-direction:column; justify-content:space-between; gap:40px; position:relative; overflow:hidden; border-right:1px solid rgba(255,255,255,.08); }
.auth .side::before { content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size:22px 22px; mask-image:radial-gradient(70% 70% at 40% 60%, #000 30%, transparent 85%); -webkit-mask-image:radial-gradient(70% 70% at 40% 60%, #000 30%, transparent 85%); }
.auth .side > * { position:relative; z-index:1; }
.auth .side h2 { font-size:clamp(28px, 2.8vw, 40px); font-weight:600; line-height:1.12; letter-spacing:-.03em; max-width:480px; } .auth .side h2 em { font-style:normal; color:#8f8f8f; }
.auth .side ul { list-style:none; padding:0; margin:28px 0 0; display:grid; gap:12px; color:#a3a3a3; font-size:14px; max-width:420px; }
.auth .side li { display:flex; gap:10px; align-items:flex-start; } .auth .side li::before { content:""; flex:none; width:16px; height:16px; margin-top:2px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ededed' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.auth .side .mono { font:500 11.5px var(--mono); letter-spacing:.04em; text-transform:uppercase; color:#737373; }
.logo-row { display:flex; align-items:center; gap:10px; font-weight:600; font-size:15px; color:inherit; text-decoration:none; } .logo-row svg { width:24px; height:24px; }
.auth .box { display:flex; flex-direction:column; justify-content:center; padding:48px; background:var(--bg); }
.auth .box h1 { font-size:24px; }
.auth .box a { color:var(--ink2); }
.tabs { display:flex; gap:2px; background:var(--active); padding:3px; border-radius:var(--r); margin:24px 0 4px; }
.tabs button { flex:1; height:30px; border:0; background:transparent; box-shadow:none; color:var(--muted); border-radius:var(--r-sm); } .tabs button:hover:not(:disabled) { background:transparent; color:var(--ink); }
.tabs button.on, .tabs button.on:hover { background:var(--panel); color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.1); }
.auth .box button.primary { height:40px !important; min-height:0 !important; }
.pw { position:relative; } .pw input { padding-right:72px; }
.pw button { position:absolute; right:4px; top:50%; transform:translateY(-50%); height:28px; padding:0 8px; border:0; background:transparent; box-shadow:none; color:var(--muted); font-size:12.5px; }
.pw button:hover:not(:disabled) { color:var(--ink); background:var(--hover); }
@media (max-width:860px) {
  .auth { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  .auth .side { padding:20px 20px 28px; padding-top:max(20px, env(safe-area-inset-top)); gap:20px; border-right:0; }
  .auth .side h2 { font-size:24px; } .auth .side ul, .auth .side .foot-note { display:none; }
  .auth .box { justify-content:flex-start; padding:28px 20px calc(28px + env(safe-area-inset-bottom)); }
  .auth .box button.primary { height:46px !important; }
}
.mstat { display:none; font-style:normal; }
@media (max-width:860px) {
  .pcell-act button:not([data-act="more"]) { display:none; }
  .mstat { display:inline-flex; margin-right:6px; font-size:12.5px; color:var(--muted); }
  .mstat::after { content:"·"; margin-left:6px; color:var(--faint); }
  .kpi span { white-space:nowrap; }
}

/* =====================================================================
   Componentes modernos do painel: menu em grupos, blocos (bento), cards com foto do móvel
   Referências: Linear/Vercel (estrutura), Dribbble "bento dashboard" (blocos), Shopify (cards de produto com imagem)
   ===================================================================== */
.nav-group { font-size:11.5px; font-weight:500; color:var(--faint); padding:14px 10px 4px; }
.navlist .nav-group:first-child { padding-top:4px; }
.badge { min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--bad); color:#fff; font-size:11px; font-weight:600; display:inline-grid; place-items:center; line-height:1; }
.badge[hidden] { display:none; }
.tabbar .badge { position:absolute; top:4px; left:calc(50% + 6px); }
.tabbar button { position:relative; }
.usage-cta { font-size:12.5px; font-weight:500; color:var(--accent); }
.usage.warn { border-color:color-mix(in srgb, var(--accent) 40%, var(--line)); background:color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.eyebrow { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:500; color:var(--accent); }

/* Destaque (assinar / confirmar pagamento) */
.hero-card { display:flex; gap:24px; align-items:center; padding:24px 28px; margin-bottom:24px; border-radius:16px; border:1px solid var(--line);
  background:radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel) 60%); box-shadow:var(--shadow-sm); overflow:hidden; }
.hero-card h2 { font-size:20px; letter-spacing:-.02em; margin:6px 0 4px; max-width:520px; }
.hero-card p { color:var(--muted); max-width:520px; margin:0 0 16px; }
.hero-card.slim p { margin:0; }
.hero-art { display:flex; flex:none; }
.hero-art img { width:150px; height:112px; object-fit:contain; margin-left:-40px; filter:drop-shadow(0 8px 16px rgba(0,0,0,.12)); }
.hero-art img:first-child { margin-left:0; }

/* Blocos de indicadores */
.bento { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:12px; margin-bottom:32px; }
.tile { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:2px; height:auto; padding:16px 18px; border-radius:14px; border:1px solid var(--line); background:var(--panel); box-shadow:var(--shadow-sm); text-align:left; white-space:normal; font-weight:400; overflow:hidden; }
.tile b { font-size:30px; font-weight:600; letter-spacing:-.03em; font-variant-numeric:tabular-nums; line-height:1.15; margin-top:6px; }
.tile-l { font-size:12.5px; color:var(--muted); font-weight:500; }
.tile-s { font-size:12.5px; color:var(--muted); margin-top:auto; padding-top:6px; }
.tile.big { background:linear-gradient(160deg, var(--ink), color-mix(in srgb, var(--ink) 82%, var(--accent))); color:var(--bg); border-color:transparent; }
.tile.big .tile-l, .tile.big .tile-s { color:color-mix(in srgb, var(--bg) 70%, transparent); }
.tile.big b { font-size:40px; }
.tile.link:hover:not(:disabled) { background:var(--panel2); }
.tile.warn b { color:var(--warn); }
.ring { position:absolute; right:16px; top:16px; width:34px; height:34px; border-radius:50%; background:conic-gradient(var(--ok) calc(var(--p) * 1%), var(--active) 0); -webkit-mask:radial-gradient(circle, transparent 54%, #000 56%); mask:radial-gradient(circle, transparent 54%, #000 56%); }

/* Cards de produto com foto */
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:16px; }
.pcard { position:relative; display:flex; flex-direction:column; border-radius:14px; border:1px solid var(--line); background:var(--panel); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .18s ease, box-shadow .18s ease, border-color .18s; color:inherit; text-decoration:none; }
.pcard[data-ready], .pcard.ex { cursor:pointer; }
.pcard:hover { transform:translateY(-2px); box-shadow:0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.18); border-color:var(--line2); }
.pc-media { position:relative; aspect-ratio:4 / 3; display:grid; place-items:center; overflow:hidden;
  background:radial-gradient(90% 80% at 50% 35%, #fbfbfa, #ecebe7); }
@media (prefers-color-scheme: dark) { .pc-media { background:radial-gradient(90% 80% at 50% 35%, #2a2a28, #1a1a19); } }
.pc-media img { width:100%; height:100%; object-fit:contain; padding:6% 8%; transition:transform .4s ease; }
.pcard:hover .pc-media img { transform:scale(1.04); }
.pc-ph { color:var(--faint); } .pc-proc { display:grid; place-items:center; }
.pc-proc .spinner { width:28px; height:28px; border-width:2px; }
.pc-status { position:absolute; left:10px; top:10px; height:24px; padding:0 9px; border-radius:7px; font-size:12px; font-weight:500; background:color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter:blur(6px); box-shadow:0 1px 2px rgba(0,0,0,.08); }
.pc-score { position:absolute; right:10px; top:10px; height:24px; min-width:28px; padding:0 7px; border-radius:7px; font-size:12px; font-weight:600; display:grid; place-items:center; background:color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter:blur(6px); box-shadow:0 1px 2px rgba(0,0,0,.08); }
.pc-score.hi { color:var(--ok); } .pc-score.mid { color:var(--warn); } .pc-score.lo { color:var(--bad); }
.pc-qr { position:absolute; right:10px; bottom:10px; width:58px; height:58px; padding:5px; background:#fff; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.pc-qr svg { width:100%; height:100%; display:block; }
.pc-body { display:flex; flex-direction:column; gap:3px; padding:12px 14px 12px; flex:1; border-top:1px solid var(--line); }
.pc-body h3 { font-size:14.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pc-meta { font-size:12.5px; color:var(--muted); }
.pc-link { display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:500; margin-top:6px; }
.pc-body .pbar { margin:6px 0 2px; }
.pc-act { display:flex; gap:6px; align-items:center; margin-top:auto; padding-top:10px; }
.sk-card { aspect-ratio:4 / 3.6; border-radius:14px; border:1px solid var(--line); background:linear-gradient(90deg, transparent 0, var(--hover) 50%, transparent 100%) var(--panel); background-size:200% 100%; animation:sk 1.3s ease infinite; }
.sk-row { height:64px; border-radius:12px; margin-bottom:8px; border:1px solid var(--line); background:linear-gradient(90deg, transparent 0, var(--hover) 50%, transparent 100%) var(--panel); background-size:200% 100%; animation:sk 1.3s ease infinite; }
.thumb-maker { position:fixed; right:0; bottom:0; width:640px; height:480px; border:0; opacity:0; pointer-events:none; z-index:-1; }

/* QR codes */
.qcard { display:flex; flex-direction:column; border-radius:14px; border:1px solid var(--line); background:var(--panel); overflow:hidden; box-shadow:var(--shadow-sm); }
.qc-code { background:#fff; padding:22px; display:grid; place-items:center; border-bottom:1px solid var(--line); }
.qc-code svg { width:150px; height:150px; display:block; }
.qc-body { padding:12px 14px; display:flex; flex-direction:column; gap:2px; }
.qc-body h3 { font-size:14.5px; } .qc-body .pc-meta { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Relatos */
.rlist { display:flex; flex-direction:column; gap:8px; }
.rcard { display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:12px; border:1px solid var(--line); background:var(--panel); box-shadow:var(--shadow-sm); }
.rcard b { display:block; font-weight:500; } .rcard .pc-meta { display:block; }
.r-kind { flex:none; font-size:12px; font-weight:500; padding:4px 9px; border-radius:7px; background:var(--warnbg); color:var(--warn); white-space:nowrap; }
.rcard.done { opacity:.65; } .rcard.done .r-kind { background:var(--active); color:var(--muted); }

/* Biblioteca, ajuda, plano */
.frame-card { border-radius:14px; border:1px solid var(--line); overflow:hidden; background:var(--panel); height:calc(100vh - 170px); min-height:480px; }
.frame-card iframe { width:100%; height:100%; border:0; display:block; }
.help-grid { display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:24px; align-items:start; margin-bottom:28px; }
.sec-title { font-size:14px; margin:0 0 10px; }
.contact-card { gap:6px; } .contact-card .btn { align-self:flex-start; margin-top:6px; }
.link-card { flex-direction:row; align-items:center; gap:12px; height:auto; padding:14px 16px; text-align:left; white-space:normal; font-weight:400; color:var(--muted); }
.link-card b { display:block; color:var(--ink); font-weight:500; } .link-card .small { display:block; }
.faq { border:1px solid var(--line); border-radius:12px; background:var(--panel); overflow:hidden; max-width:820px; }
.faq details { border-top:1px solid var(--line); padding:0 18px; } .faq details:first-child { border-top:0; }
.faq summary { cursor:pointer; list-style:none; padding:14px 0; font-weight:500; display:flex; justify-content:space-between; gap:12px; }
.faq summary::after { content:"+"; color:var(--muted); font-size:18px; line-height:1; } .faq details[open] summary::after { content:"–"; }
.faq summary::-webkit-details-marker { display:none; } .faq details p { margin:0 0 14px; }
.plan-now { max-width:none; margin-bottom:20px; } .plan-now h2 { font-size:20px; margin-top:4px; }
.plan-note { margin-top:14px; }
.timeline { max-width:none; }

@media (max-width:1100px) {
  .bento { grid-template-columns:1fr 1fr; } .help-grid { grid-template-columns:1fr; }
}
@media (max-width:860px) {
  .hero-card { flex-direction:column; align-items:stretch; padding:20px; gap:12px; } .hero-art { display:none; }
  .bento { grid-template-columns:1fr 1fr; gap:10px; } .tile { padding:14px; } .tile b { font-size:26px; } .tile.big { grid-column:1 / -1; } .tile.big b { font-size:34px; }
  .cards { grid-template-columns:1fr 1fr; gap:10px; }
  .pc-body { padding:10px 10px 10px; } .pc-body h3 { font-size:14px; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .pc-act button:not([data-act="more"]):not(.primary) { display:none; }
  .pc-act .primary span { display:none; } .pc-act .primary { width:34px; padding:0 !important; }
  .pc-act .primary:not(:has(svg)) { width:auto; padding:0 10px !important; }
  .pc-status { left:8px; top:8px; } .pc-score { right:8px; top:8px; }
  .pc-qr { width:46px; height:46px; }
  .rcard { flex-wrap:wrap; } .rcard .grow { flex-basis:calc(100% - 100px); } .rcard .btn, .rcard button { flex:1; }
  .frame-card { height:calc(100dvh - 230px); }
  .qc-code svg { width:120px; height:120px; }
}
@media (max-width:380px) { .cards { grid-template-columns:1fr; } }
.navlist button .grow { text-align:left; }
.link-card .grow, .menu-item .grow { text-align:left; }

/* ===== Plataforma completa: peças, clientes, montadores, relatório, equipe, integrações ===== */
.tile.dark { background:linear-gradient(160deg, var(--ink), color-mix(in srgb, var(--ink) 82%, var(--accent))); color:var(--bg); border-color:transparent; }
.tile.dark .t-l, .tile.dark .t-s { color:color-mix(in srgb, var(--bg) 72%, transparent); }
.t-l { font-size:12.5px; color:var(--muted); font-weight:500; } .t-s { font-size:12.5px; color:var(--muted); margin-top:auto; padding-top:6px; }
.tile .t-big { font-size:34px; } .tile .t-big.good { color:#16a34a; } .tile .t-big.bad { color:#dc2626; } .tile.dark .t-big.good { color:#86efac; } .tile.dark .t-big.bad { color:#fca5a5; }
.meter { width:100%; height:6px; border-radius:6px; background:var(--active); margin-top:auto; overflow:hidden; } .meter i { display:block; height:100%; background:var(--accent); border-radius:6px; }
.pill { display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:999px; font-size:12px; font-weight:550; background:var(--active); color:var(--ink2); white-space:nowrap; }
.pill.st-aberto { background:#fef3c7; color:#92400e; } .pill.st-analise { background:#e0e7ff; color:#3730a3; } .pill.st-separando { background:#dbeafe; color:#1e40af; }
.pill.st-enviado { background:#cffafe; color:#155e75; } .pill.st-entregue { background:#dcfce7; color:#166534; } .pill.st-recusado { background:#fee2e2; color:#991b1b; }
@media (prefers-color-scheme: dark) { .pill[class*="st-"] { filter:saturate(.8) brightness(.9); } }
.rcard.part { cursor:pointer; } .rcard.part:hover { background:var(--panel2); }
.r-kind.code, .mono { font-family:"Geist Mono", ui-monospace, monospace; letter-spacing:.02em; }
.r-kind.code { background:var(--active); color:var(--ink); }
.ap-thumb { width:64px; height:48px; border-radius:8px; background:var(--panel2); display:grid; place-items:center; flex:none; overflow:hidden; color:var(--faint); } .ap-thumb img { width:100%; height:100%; object-fit:contain; }
.dl { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden; margin:14px 0; }
.dl > div { background:var(--panel); padding:10px 12px; display:flex; flex-direction:column; gap:2px; } .dl span { font-size:12px; color:var(--muted); } .dl b { font-weight:500; font-size:14px; word-break:break-word; }
@media (max-width:560px) { .dl { grid-template-columns:1fr; } }
.part-photo { display:block; max-width:100%; max-height:260px; border-radius:12px; border:1px solid var(--line); margin-bottom:12px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; } .grid3 { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
@media (max-width:620px) { .grid2, .grid3 { grid-template-columns:1fr; gap:0; } }
.foot.wrap { flex-wrap:wrap; }
.nowrap { white-space:nowrap; }
.card-table { border:1px solid var(--line); border-radius:var(--r-lg); background:var(--panel); box-shadow:var(--shadow-sm); }
.card-table table { margin:0; } .card-table th { position:sticky; top:0; background:var(--panel2); }
.nps-b { display:inline-grid; place-items:center; min-width:28px; height:24px; border-radius:7px; font-weight:600; font-size:13px; }
.nps-b.good { background:#dcfce7; color:#166534; } .nps-b.mid { background:#fef3c7; color:#92400e; } .nps-b.bad { background:#fee2e2; color:#991b1b; }
.icard { display:flex; gap:14px; align-items:center; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--panel); box-shadow:var(--shadow-sm); flex-wrap:wrap; }
.icard.off { opacity:.6; } .icard h3 { margin:0; font-size:15px; } .icard .pc-meta { display:block; }
.avatar.lg { width:44px; height:44px; font-size:17px; background:color-mix(in srgb, var(--accent) 14%, var(--panel)); color:var(--ink); }
.avatar.sm { width:24px; height:24px; font-size:11px; } .avatar.ghost { background:var(--panel2); border:1px solid var(--line); color:var(--muted); font-size:10.5px; }
.card-list { border:1px solid var(--line); border-radius:var(--r-lg); background:var(--panel); overflow:hidden; box-shadow:var(--shadow-sm); }
.mrow { display:flex; gap:12px; align-items:center; padding:12px 14px; border-top:1px solid var(--line); flex-wrap:wrap; } .mrow:first-child { border-top:0; }
.mrow .grow { display:flex; flex-direction:column; min-width:160px; } .mrow select { width:auto; min-width:170px; }
.roles { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:10px; }
.role { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:var(--panel); display:flex; flex-direction:column; gap:4px; }
.role-pick { display:flex; flex-direction:column; gap:6px; }
.rp { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:10px; cursor:pointer; margin:0; font-weight:400; }
.rp:has(input:checked) { border-color:var(--ink); background:var(--panel2); } .rp input { margin-top:3px; width:auto; } .rp span { display:flex; flex-direction:column; }
.timeline { border:1px solid var(--line); border-radius:var(--r-lg); background:var(--panel); }
.tl-row { display:flex; gap:10px; align-items:center; padding:11px 14px; border-top:1px solid var(--line); font-size:14px; } .tl-row:first-child { border-top:0; }
.code-box { display:flex; gap:8px; align-items:center; margin:8px 0; padding:8px 8px 8px 12px; border:1px solid var(--line); border-radius:10px; background:var(--panel2); }
.code-box code { flex:1; min-width:0; overflow-x:auto; white-space:nowrap; font:13px/1.5 "Geist Mono", ui-monospace, monospace; scrollbar-width:thin; }
.form-card { border:1px solid var(--line); border-radius:var(--r-lg); background:var(--panel); padding:18px 20px; margin-bottom:14px; box-shadow:var(--shadow-sm); }
.form-card h3 { margin:0 0 6px; font-size:15px; }
.swrow { display:flex; gap:14px; align-items:center; padding:10px 0; cursor:pointer; margin:0; font-weight:400; } .swrow .grow { display:flex; flex-direction:column; gap:2px; }
input.switch { appearance:none; -webkit-appearance:none; width:42px; height:24px; min-height:0; padding:0; border-radius:999px; background:var(--line2); position:relative; cursor:pointer; flex:none; border:0; transition:background .15s; }
input.switch::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .15s; }
input.switch:checked { background:var(--ok); } input.switch:checked::after { transform:translateX(18px); }
.sticky-save { position:sticky; bottom:calc(76px + env(safe-area-inset-bottom)); display:flex; justify-content:flex-end; padding:8px 0; }
@media (min-width:900px) { .sticky-save { bottom:12px; } }
.int-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:10px; }
.int { border:1px solid var(--line); border-radius:12px; padding:14px 16px; background:var(--panel); display:flex; flex-direction:column; gap:6px; }
.ev-list { display:grid; gap:6px; } .ev-list div { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; } .ev-list code { font-size:12.5px; background:var(--panel2); padding:2px 6px; border-radius:6px; }
.notice { border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin:12px 0; background:#fffbeb; color:#78350f; }
.notice.ok { background:#f0fdf4; color:#14532d; } .notice.bad { background:#fef2f2; color:#7f1d1d; }
@media (prefers-color-scheme: dark) { .notice { background:#2a2312; color:#fde68a; } .notice.ok { background:#10261a; color:#bbf7d0; } .notice.bad { background:#2b1414; color:#fecaca; } }
.widget-prev { padding:20px; border-radius:12px; background:var(--panel2); display:flex; flex-direction:column; gap:10px; }
.vid-stage { width:100%; max-height:52vh; background:var(--panel2); border-radius:12px; margin:12px auto 6px; display:flex; justify-content:center; overflow:hidden; }
.vid-stage canvas { height:100%; max-width:100%; object-fit:contain; }
.roi summary { cursor:pointer; font-size:13.5px; color:var(--muted); margin-top:12px; }
.print-head { display:none; }
@media print {
  .sidenav, .mtop, .tabbar, .phead .row, .no-print, .listbar { display:none !important; }
  .page { padding:0 !important; margin:0 !important; } .print-head { display:block; font-size:16px; margin-bottom:16px; }
  .bento { grid-template-columns:repeat(3, 1fr) !important; } .tile { break-inside:avoid; }
}
.tile.dark .t-big.good, .tile.dark .t-big.bad { color:inherit; }

/* primeiros passos da empresa nova */
.onboard { margin-bottom:24px; padding:18px 20px; }
.onb { list-style:none; margin:12px 0 0; padding:0; display:grid; gap:6px; }
.onb li { display:flex; gap:12px; align-items:center; padding:8px 10px; border-radius:10px; }
.onb li b { display:block; font-size:14px; font-weight:600; }
.onb li.next { background:var(--panel2); }
.onb li.ok b { color:var(--muted); text-decoration:line-through; text-decoration-thickness:1px; }
.onb-ic { flex:none; width:22px; height:22px; border-radius:50%; border:1.5px solid var(--line); display:grid; place-items:center; color:var(--bg); }
.onb li.ok .onb-ic { background:var(--ok); border-color:transparent; }
.banner.warn { border-color:var(--warn); background:var(--warnbg); color:var(--ink); }
button.linkbtn { background:none; border:0; padding:0; color:inherit; text-decoration:underline; cursor:pointer; font:inherit; min-height:0; }

/* pontos de dificuldade */
.drow { display:flex; gap:16px; align-items:center; width:100%; text-align:left; padding:14px 16px; border:1px solid var(--line); border-radius:var(--r); background:var(--panel); color:var(--ink); height:auto; font-weight:400; }
.drow + .drow { margin-top:8px; }
.drow b { display:block; font-size:15px; }
.drow .grow > .small { display:block; }
.dsteps { display:grid; gap:2px; margin-top:8px; color:var(--ink2); }
.dright { display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex:none; }
.dscore { font-size:24px; font-weight:650; letter-spacing:-.02em; }
.dscore.bad { color:var(--bad); } .dscore.warn { color:var(--warn); } .dscore.ok { color:var(--ok); }
.dlist { display:grid; gap:6px; }
.dstep { border:1px solid var(--line); border-radius:var(--r); background:var(--panel); }
.dstep.hot { border-color:var(--warn); }
.dstep summary { display:flex; align-items:center; gap:12px; padding:10px 14px; cursor:pointer; list-style:none; }
.dstep summary::-webkit-details-marker { display:none; }
.dstep summary b { display:block; font-size:14px; }
.dstep summary .small { display:block; }
.dn { flex:none; width:26px; height:26px; border-radius:50%; background:var(--active); display:grid; place-items:center; font-size:12px; font-weight:600; }
.dbar { flex:none; width:90px; height:6px; border-radius:3px; background:var(--active); overflow:hidden; }
.dbar i { display:block; height:100%; background:var(--faint); } .dbar i.bad { background:var(--bad); } .dbar i.warn { background:var(--warn); } .dbar i.ok { background:var(--ok); }
.dsc { flex:none; width:28px; text-align:right; font-size:14px; }
.dmore { padding:0 14px 12px 52px; }
.dmore ul { margin:4px 0 10px; padding-left:18px; color:var(--ink2); font-size:13px; }
.dai { border-top:1px solid var(--line); padding:10px 0; }
.dai p { margin:4px 0; font-size:14px; }
@media (max-width:640px) { .dbar { width:50px; } .dmore { padding-left:14px; } .drow { align-items:flex-start; } }
.drow .dsteps b { display:inline; font-size:inherit; }
.drow { white-space:normal; line-height:1.45; } .drow .grow { min-width:0; } .dsteps .small { display:block; }

/* Como funciona */
.tour-h { font-size:15px; margin:22px 0 10px; color:var(--ink2); }
.tour { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; }
.tour-c { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; }
.tour-c b { display:block; font-weight:600; } .tour-c .chip { font-weight:500; margin-left:4px; vertical-align:1px; }
.tour-c p { margin:4px 0 0; }
