:root{--ink:#111827;--ink2:#1d4ed8;--brand:#2563eb;--brand2:#1d4ed8;--tint:#e8effd;--paper:#f7f5f2;--card:#fff;--line:#e7e3dc;--muted:#6b7280;--accent:#60a5fa;--ok:#2f7d4f;--bad:#b3372f;--r:16px;--sh:0 1px 2px rgba(17,24,39,.05),0 8px 24px rgba(17,24,39,.05);--nav-h:64px}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#111111;background:var(--paper);-webkit-font-smoothing:antialiased}
a{color:var(--brand2)}
code{font:13px ui-monospace,Menlo,Consolas,monospace;background:#f1eee9;padding:2px 6px;border-radius:6px}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.muted{color:var(--muted)}small.muted{display:block;margin-top:4px;font-size:12.5px}

/* ---------- estrutura ---------- */
.app{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh}
.side{background:linear-gradient(180deg,#111827,#0b1220);color:#cbd0d8;padding:18px 12px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh;overflow-y:auto}
.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:750;font-size:17px;text-decoration:none;padding:6px 8px 18px;letter-spacing:-.01em}
.brand i{flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:var(--brand);color:#fff;display:grid;place-items:center;font-style:normal;font-weight:800;font-size:17px}
.side nav{display:flex;flex-direction:column;gap:2px}
.side .grp{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#9ca3af;margin:14px 10px 4px;font-weight:700}
.side nav a{display:flex;align-items:center;gap:11px;color:#cbd0d8;text-decoration:none;padding:9px 12px;border-radius:11px;font-weight:550;transition:background .15s,color .15s}
.side nav a svg{flex:0 0 19px;opacity:.85}
.side nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.side nav a.on{background:rgba(255,255,255,.14);color:#fff}
.side nav a.on svg{color:var(--accent);opacity:1}
.cnt{margin-left:auto;background:var(--accent);color:#111827;border-radius:20px;font-size:11.5px;font-weight:800;padding:0 7px;min-width:20px;text-align:center;line-height:20px}
.who{margin-top:auto;padding:12px;font-size:13px;color:#a3acba;border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:center;gap:10px}
.who .av{flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;font-weight:700}
.who b{display:block;color:#fff;font-weight:600;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}
.who a{color:#93b4ff;text-decoration:none;font-weight:600}
.appbar,.tabbar,.moresheet{display:none}
main{padding:30px 36px 60px;max-width:1240px;width:100%}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:22px}
h1{font-size:27px;margin:0;letter-spacing:-.02em;font-weight:750}
h2{font-size:17px;margin:0 0 12px;letter-spacing:-.01em;font-weight:700}
h3{font-size:15px;margin:16px 0 8px}
.actions{display:flex;gap:8px;flex-wrap:wrap}

/* ---------- cartões ---------- */
.card{background:var(--card);border:1px solid rgba(17,24,39,.08);border-radius:var(--r);padding:20px;margin-bottom:18px;box-shadow:var(--sh)}
.cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;align-items:start}
.cols.even{grid-template-columns:1fr 1fr}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-bottom:18px}
.stat{background:var(--card);border:1px solid rgba(17,24,39,.08);border-radius:var(--r);padding:16px 18px;box-shadow:var(--sh);position:relative;overflow:hidden}
.stat::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:0 4px 4px 0;background:var(--brand)}
.stat.neg::before{background:var(--bad)}
.stat b{display:block;font-size:26px;letter-spacing:-.02em;line-height:1.2}
.stat span{color:var(--muted);font-size:13.5px}

/* ---------- botões ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--brand);color:#fff;border:1px solid var(--brand);border-radius:999px;padding:9px 20px;font:inherit;font-weight:650;cursor:pointer;text-decoration:none;transition:background .15s,transform .05s;min-height:40px}
.btn:hover{background:var(--brand2)}
.btn:active{transform:translateY(1px)}
.btn.sec{background:#fff;color:var(--ink);border-color:var(--line)}
.btn.sec:hover{background:#f5f2ee}
.btn.danger{background:#fff;color:var(--bad);border-color:#e6bdb9}
.btn.sm{padding:5px 14px;font-size:13px;min-height:34px;border-radius:999px}
.btns{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 0}

/* ---------- formulários ---------- */
.form label{display:block;font-weight:600;font-size:13.5px;margin:0 0 5px}
.form .chk,.chk{display:flex;gap:8px;align-items:center;font-weight:500;margin:0 0 4px}
input[type=checkbox],input[type=radio]{width:18px;height:18px;accent-color:var(--brand);flex:0 0 auto}
input[type=text],input[type=email],input[type=password],input[type=url],input[type=date],input[type=search],input[type=number],input[type=tel],input:not([type]),select,textarea{width:100%;font:inherit;padding:10px 12px;border:1px solid #d6d1c8;border-radius:11px;background:#fff;color:inherit;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.18)}
input[type=color]{width:64px;height:40px;padding:2px;border:1px solid #d6d1c8;border-radius:10px;background:#fff}
input[type=file]{font-size:13.5px;max-width:100%}
.field{margin-bottom:14px}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:0 16px}
.inline{display:flex;gap:8px;flex-wrap:wrap;align-items:end}
.inline>*{flex:1 1 140px}
.inline>.btn{flex:0 0 auto}

/* ---------- tabelas ---------- */
.tbl{width:100%;border-collapse:collapse;font-size:14.5px}
.tbl th{text-align:left;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:700;border-bottom:1px solid var(--line);padding:8px 10px;white-space:nowrap}
.tbl td{padding:12px 10px;border-bottom:1px solid #f1eee9;vertical-align:top}
.tbl tr:hover td{background:#faf8f5}
.tbl .num{text-align:right;font-variant-numeric:tabular-nums}
.scroll{overflow-x:auto}
.badge{display:inline-block;border-radius:20px;padding:2px 10px;font-size:12.5px;font-weight:650;white-space:nowrap}
.b-lead{background:#e9e5de;color:#4b5563}.b-negociando{background:#fbefd2;color:#7a4f06}
.b-ativo{background:#d9eddf;color:#1f5c38}.b-inativo{background:#f4dcda;color:#8a2a24}
.b-minisite{background:#dcebf0;color:#1d4c5c}.b-google{background:#fbefd2;color:#7a4f06}
.b-wifi{background:#e6e0f2;color:#463a73}.b-url{background:#e9e5de;color:#4b5563}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.tabs a{padding:7px 14px;border-radius:20px;border:1px solid var(--line);background:#fff;text-decoration:none;color:var(--ink);font-size:14px;font-weight:550}
.tabs a.on{background:var(--brand);color:#fff;border-color:var(--brand)}

.flash{padding:12px 16px;border-radius:12px;margin-bottom:16px;font-weight:550}
.flash.ok{background:#d9eddf;color:#1f5c38}.flash.err{background:#f6dedb;color:#8a2a24}

.tl{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.tl li{border-left:3px solid var(--line);padding-left:12px}
.tl small{color:var(--muted);display:block}
.list{list-style:none;margin:0;padding:0}
.list li{padding:9px 0;border-bottom:1px solid #f1eee9;display:flex;justify-content:space-between;gap:10px}
.list li:last-child{border:0}

.links{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:10px}
.linkrow{display:grid;grid-template-columns:auto 1fr;gap:10px 12px;border:1px solid var(--line);border-radius:12px;padding:10px;background:#faf8f5}
.mv{display:flex;flex-direction:column;gap:4px}
.mv button{border:1px solid var(--line);background:#fff;border-radius:6px;cursor:pointer;font-size:10px;padding:4px 8px}
.linkrow .f{display:grid;gap:6px}
.linkrow .meta{grid-column:1/-1;display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:13px}
.clicks b{font-size:17px}.clicks small{color:var(--muted);margin-left:8px}
.chk.del{margin-left:auto;color:var(--bad)}
.thumb{display:block;max-width:100%;margin:0 0 6px;border:1px solid var(--line)}
.thumb.round{width:72px;height:72px;border-radius:50%;object-fit:cover}
.thumb.wide{width:100%;max-width:280px;height:90px;object-fit:cover;border-radius:10px}

.qrwrap{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.qrbox{width:170px;flex:0 0 170px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;min-height:40px}
.qrbox svg{display:block;width:100%;height:auto}
.addr{word-break:break-all}
.chart{width:100%;height:auto}
.chart text{font-size:11px;fill:#6b7772}
.chart .grid{stroke:#e9e5de;stroke-width:1}
.legend{display:flex;gap:16px;font-size:13px;color:var(--muted);margin-bottom:6px;flex-wrap:wrap}
.legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}
.bar{height:8px;background:#e9e5de;border-radius:4px;overflow:hidden;margin-top:4px}
.bar i{display:block;height:100%;background:var(--brand)}
.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:16px}
.filters>div{flex:0 1 200px}
.filters label{display:block;font-size:13px;font-weight:600;margin-bottom:3px}
.empty{padding:26px;text-align:center;color:var(--muted)}

body.login{display:grid;place-items:center;min-height:100vh;padding:20px;background:#f7f5f2;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
body.login .card{box-shadow:0 8px 30px rgba(17,24,39,.08);border-radius:20px;padding:26px}
.loginbox .logo{margin-bottom:26px;text-align:center;line-height:0}
.loginbox{text-align:center}.loginbox .card{text-align:left}
.loginbox .btn{border-radius:999px;padding:13px 28px;box-shadow:0 4px 14px rgba(37,99,235,.22)}
.loginbox{width:min(400px,100%)}
.loginbox h1{margin-bottom:6px;font-size:30px;letter-spacing:-.03em}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Financeiro e títulos de seção */
h2.sec{font-size:15px;color:var(--muted);margin:22px 0 10px;font-weight:650}
.b-pago{background:#d9eddf;color:#1f5c38}.b-atraso{background:#f4dcda;color:#8a2a24}.b-avencer{background:#fbefd2;color:#7a4f06}
.tbl tfoot td{border-top:2px solid var(--line);border-bottom:0;background:#faf8f5}
.iconsel{width:auto;min-width:150px;padding:5px 8px;font-size:13px}
.stat span{display:block}

/* ===== Editor de minisite ===== */
.ed{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
.ed-side{position:sticky;top:16px}
.pvhead{display:flex;flex-direction:column;margin-bottom:8px}
.etabs{display:none;gap:6px;margin-bottom:14px;background:#e3e7de;padding:4px;border-radius:12px;width:fit-content;max-width:100%;overflow-x:auto}
.js .etabs{display:flex}
.etab{border:0;background:transparent;font:inherit;font-weight:600;color:var(--muted);padding:8px 16px;border-radius:9px;cursor:pointer;white-space:nowrap}
.etab.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.js [data-panel]{display:none}
.js [data-panel].on{display:block}
.lks{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:12px}
.lk{border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px;transition:box-shadow .15s,opacity .15s;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.lk:hover{box-shadow:0 4px 14px rgba(18,48,44,.1)}
.lk.drag{opacity:.45;border-style:dashed}
.lk.removed{opacity:.5;background:#faf1f0;border-color:#e3b9b5}
.lk.removed .lk-fields input{text-decoration:line-through}
.lk-main{display:flex;gap:10px;align-items:center}
.grip{border:0;background:transparent;color:#9aa49f;cursor:grab;padding:6px 2px;border-radius:6px;flex:0 0 auto}
.grip:hover{color:var(--ink)}
.lk-ic{flex:0 0 46px;width:46px;height:46px;border-radius:12px;background:var(--ink);color:#fff;display:grid;place-items:center}
.lk-fields{flex:1;display:grid;gap:6px;min-width:0}
.lk-label{font-weight:650}
.lk-url{font-size:14px;color:#33443f}
.switch{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:600;font-size:13px;margin:0!important;flex:0 0 auto}
.switch input{position:absolute;opacity:0;width:0;height:0}
.switch .sw{width:42px;height:24px;border-radius:24px;background:#d3cec5;position:relative;transition:background .15s;flex:0 0 42px}
.switch .sw::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 2px rgba(0,0,0,.3)}
.switch input:checked+.sw{background:var(--ok)}
.switch input:checked+.sw::after{transform:translateX(18px)}
.switch input:focus-visible+.sw{outline:3px solid var(--accent);outline-offset:2px}
.switch em{font-style:normal;color:var(--muted);min-width:34px}
.lk-foot{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.lk-stat{display:flex;flex-direction:column;gap:2px;min-width:170px;flex:1 1 200px}
.lk-stat b{font-size:17px}
.lk-stat small{color:var(--muted)}
.lk-bar{display:block;height:6px;background:#e9e5de;border-radius:4px;overflow:hidden;margin-top:3px;max-width:260px}
.lk-bar i{display:block;height:100%;background:var(--accent);border-radius:4px}
.pill{display:inline-block;background:#fbefd2;color:#7a4f06;border-radius:20px;font-size:11.5px;font-weight:700;padding:1px 8px;margin-left:6px;vertical-align:2px}
.lk-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ic-btn{border:1px solid var(--line);background:#fff;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.ic-btn:hover{background:#f1eee9}
.lk-del{border:1px solid #e3b9b5;background:#fff;color:var(--bad);border-radius:8px;font:inherit;font-size:13px;font-weight:600;padding:6px 12px;cursor:pointer}
.lk-del:hover{background:#faf1f0}
.btn.add{width:100%;border-style:dashed;padding:12px}
.savebar{position:sticky;bottom:0;z-index:5;margin-top:6px;padding:12px 16px;background:rgba(255,255,255,.94);backdrop-filter:blur(6px);border:1px solid var(--line);border-radius:14px;display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;box-shadow:0 -6px 18px rgba(18,48,44,.08)}
.dirty{margin-right:auto;color:#7a4f06;font-weight:600;font-size:14px}

.phone{border:9px solid #111827;border-radius:36px;background:#111827;overflow:hidden;box-shadow:0 12px 30px rgba(18,48,44,.25)}
.pv{--c:#111827;--t:#fff;--r:12px;height:560px;overflow:auto;background:#f3f3f0;color:#111111;font-size:14px;padding-bottom:16px;border-radius:26px}
.pv.dark{background:#0e1312;color:#f1eee9}
.pv-cover{height:96px;background:var(--c) center/cover no-repeat;border-radius:0 0 18px 18px}
.pv-cover.plain{background:var(--c)}
.pv-av{width:68px;height:68px;border-radius:50%;border:3px solid #fff;margin:-34px auto 8px;background:var(--c);color:var(--t);display:grid;place-items:center;font-weight:700;font-size:26px;overflow:hidden;position:relative}
.pv.dark .pv-av{border-color:#18211f}
.pv-av img{width:100%;height:100%;object-fit:cover}
.pv-title{text-align:center;font-weight:700;font-size:17px;padding:0 14px}
.pv-bio{text-align:center;color:#5a6763;font-size:12.5px;padding:2px 18px 0}
.pv.dark .pv-bio{color:#a3b0ab}
.pv-btns{display:grid;gap:9px;padding:16px 14px 0}
.pv-btn{display:flex;align-items:center;gap:10px;background:var(--c);color:var(--t);border-radius:var(--r);padding:7px 10px 7px 8px;font-weight:650;box-shadow:0 1px 4px rgba(0,0,0,.16)}
.pv-ic{width:32px;height:32px;border-radius:9px;background:rgba(127,127,127,.25);display:grid;place-items:center;flex:0 0 32px}
.pv-ic svg{width:18px;height:18px}
.pv-lb{flex:1;text-align:center;padding-right:32px;line-height:1.2}
.pv-empty{text-align:center;color:#8a9692;padding:18px 8px;border:1px dashed #d3cec5;border-radius:12px;font-size:12.5px}

/* ===== Painel do cliente ===== */
.hello{background:linear-gradient(135deg,#111827,#1e4a43);color:#fff;border-radius:16px;padding:22px 24px;margin-bottom:18px;display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
.hello h2{font-size:22px;margin:0 0 4px;color:#fff}
.hello p{margin:0;color:#c9d9d5}
.hello .tabs{margin:0}
.hello .tabs a{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:#ece9e3}
.hello .tabs a.on{background:var(--accent);border-color:var(--accent);color:#111827;font-weight:700}
.banner{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;border-radius:14px;padding:14px 18px;margin-bottom:18px;border:1px solid}
.banner.late{background:#fbeceb;border-color:#e3b9b5;color:#7d261f}
.banner.soon{background:#fdf3dc;border-color:#ecd49a;color:#6b4506}
.banner b{display:block}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-bottom:18px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;gap:14px;align-items:flex-start}
.kpi .kic{flex:0 0 44px;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:#fff}
.kpi b{display:block;font-size:28px;line-height:1.1;letter-spacing:-.02em}
.kpi span{color:var(--muted);font-size:14px}
.kpi .delta{display:block;margin-top:4px}
.delta{font-size:12.5px;color:var(--muted)}
.delta.up{color:var(--ok)}.delta.down{color:var(--bad)}
.rank{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.rank li{display:flex;gap:12px;align-items:flex-start}
.rank .pos{flex:0 0 24px;height:24px;border-radius:50%;background:#e9e5de;color:#4b5563;font-size:12.5px;font-weight:700;display:grid;place-items:center;margin-top:9px}
.rank .top .pos{background:var(--accent);color:#111827}
.rk-ic{flex:0 0 40px;height:40px;border-radius:11px;background:var(--ink);color:#fff;display:grid;place-items:center}
.rank .zero .rk-ic{background:#d3cec5}
.rk-body{flex:1;min-width:0}
.rk-line{display:flex;gap:8px;align-items:baseline}
.rk-line b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rk-n{margin-left:auto;font-weight:700;white-space:nowrap}
.rk-n small{font-weight:500;color:var(--muted)}
.rk-bar{height:8px;background:#e9e5de;border-radius:5px;overflow:hidden;margin:5px 0 2px}
.rk-bar i{display:block;height:100%;background:var(--ink);border-radius:5px}
.rank .top .rk-bar i{background:var(--accent)}
.quick{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tip{background:#f1eee9;border:1px solid #cfe3d6;border-radius:12px;padding:12px 14px;color:#24523a;font-size:14.5px}

/* ===== Financeiro do cliente ===== */
.paybox{display:grid;gap:14px}
.keybox{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#f5f2ee;border:1px dashed #b9c1b3;border-radius:12px;padding:12px 14px}
.keybox code{font-size:16px;background:transparent;padding:0;word-break:break-all;flex:1 1 200px}
.months{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.mchip{border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff;text-align:center;font-size:13px}
.mchip b{display:block;font-size:14px}
.mchip.ok{background:#e6f3ea;border-color:#bcdcc8;color:#1f5c38}
.mchip.no{background:#fdf3dc;border-color:#ecd49a;color:#6b4506}
.mchip.now{box-shadow:0 0 0 2px var(--accent)}
.stat.big b{font-size:30px}

@media (max-width:1100px){.ed{grid-template-columns:1fr}.ed-side{position:static;order:-1;max-width:340px}.pv{height:420px}}
@media (max-width:600px){.lk-main{flex-wrap:wrap}.lk-fields{flex:1 1 100%;order:3}.switch em{display:none}.ed-side{display:none}}
.stat span.badge{display:inline-block;margin-top:4px}

/* situação das placas e pedidos */
.b-menu{background:#f3e3d4;color:#6b3d17}.b-hotel{background:#dfe6f7;color:#2a3f78}
.b-estoque{background:#e9e5de;color:#4b5563}.b-revendedor{background:#e6e0f2;color:#463a73}
.b-ativa{background:#d9eddf;color:#1f5c38}.b-inativa{background:#f4dcda;color:#8a2a24}
.b-novo{background:#fbefd2;color:#7a4f06}.b-atendido{background:#d9eddf;color:#1f5c38}.b-cancelado{background:#e9e5de;color:#4b5563}
.stock{display:flex;gap:8px;flex-wrap:wrap}
.stock span{background:#f5f2ee;border:1px solid var(--line);border-radius:10px;padding:6px 12px;font-size:14px}
.stock b{font-size:18px;margin-right:4px}
.freebadge{background:#fdf3dc;color:#6b4506;border-radius:20px;font-size:12px;font-weight:600;padding:1px 9px;white-space:nowrap}

.tabs a.on::before{content:'\2713\00a0'}
.tabs a.on{box-shadow:0 0 0 2px rgba(31,157,138,.25)}
.checks{display:flex;flex-wrap:wrap;gap:6px 16px;margin:6px 0}
[hidden]{display:none!important}
.menuitem{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:8px 0;background:#fff}
.menuitem>summary{cursor:pointer;list-style:none}
.menuitem>summary::-webkit-details-marker{display:none}
.menuitem[open]{box-shadow:0 2px 8px rgba(0,0,0,.08)}
.menuitem.add{background:#faf8f5;border-style:dashed}
.import>summary{cursor:pointer;list-style:none}
.import>summary::-webkit-details-marker{display:none}
.impcat{border:1px solid var(--line);border-radius:12px;margin:10px 0;padding:6px 12px}
.improw{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.improw:last-child{border:0}
.improw input[type=text],.improw input:not([type]){max-width:110px}
.impph{width:40px;height:40px;border-radius:8px;object-fit:cover;flex:0 0 40px}

/* ===== extras do novo visual ===== */
.ver{text-align:center;font-size:11px;color:#8a948f;margin:18px 0 20px}
.hello{background:linear-gradient(135deg,#111827,#2563eb);border-radius:20px}
.kpi,.mchip{border-radius:16px}
.kpi{box-shadow:var(--sh);border-color:rgba(17,24,39,.08)}
.tip{background:var(--tint);border-color:#c9e0da;color:#0f4a40}
.menuitem,.lk,.impcat,.keybox{border-radius:14px}
.etabs{background:#e4ece9}

/* ===== celular e tablet: cara de app ===== */
@media (max-width:900px){
  body{padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom))}
  .app{display:block;min-height:0}
  .side{display:none}
  .appbar{display:flex;position:sticky;top:0;z-index:30;align-items:center;justify-content:space-between;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:linear-gradient(135deg,#111827,#2563eb);color:#fff}
  .appbar .brand{padding:0;font-size:18px;min-width:0}
  .appbar .brand i{flex:0 0 32px;width:32px;height:32px;border-radius:10px;font-size:15px}
  .appbar .brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .avbtn{flex:0 0 36px;width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;font:700 15px inherit;cursor:pointer}
  main{padding:16px 14px 24px;max-width:none}
  .top{margin-bottom:14px}
  .top h1{display:none}
  .top:has(.actions:empty){display:none}
  .actions{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}
  .actions .btn{white-space:nowrap;flex:0 0 auto}
  .cols,.cols.even{grid-template-columns:1fr}
  .card{padding:16px;border-radius:18px}
  .cards{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:13px 14px}
  .stat b{font-size:21px}
  .kpis{grid-template-columns:1fr 1fr;gap:10px}
  .tabs{flex-wrap:nowrap;overflow-x:auto;margin-left:-14px;margin-right:-14px;padding:0 14px 4px;scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .tabs a{white-space:nowrap;flex:0 0 auto}
  input[type=text],input[type=email],input[type=password],input[type=url],input[type=date],input[type=search],input[type=number],input[type=tel],input:not([type]),select,textarea{font-size:16px;padding:12px}
  .btn{min-height:44px}
  .btn.sm{min-height:38px}
  .row{grid-template-columns:1fr}
  .inline>*{flex:1 1 100%}
  .filters>div{flex:1 1 140px}
  .qrbox{flex:0 0 150px;width:150px}
  .savebar{bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 6px)!important}

  /* barra inferior */
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding:6px 6px env(safe-area-inset-bottom);background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid var(--line);justify-content:space-around}
  .tabbar a,.tabbar button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:none;font:inherit;font-size:11.5px;font-weight:600;color:var(--muted);text-decoration:none;border-radius:12px;cursor:pointer;padding:4px 2px}
  .tabbar a span,.tabbar button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tabbar a.on,.tabbar button.on{color:var(--brand);background:var(--tint)}
  .tabbar .cnt{position:absolute;margin:-26px -28px 0 0;margin-left:0}
  .tabbar a{position:relative}
  .tabbar .cnt{top:2px;right:calc(50% - 22px);margin:0}

  /* menu "Mais" */
  .moresheet{display:none;position:fixed;inset:0;z-index:60;background:rgba(10,30,26,.5);align-items:flex-end}
  body.more .moresheet{display:flex}
  .mpanel{background:#fff;width:100%;max-height:85vh;overflow:auto;border-radius:24px 24px 0 0;padding:14px 14px calc(18px + env(safe-area-inset-bottom));animation:sheetup .22s ease-out}
  @keyframes sheetup{from{transform:translateY(40px);opacity:.5}to{transform:none;opacity:1}}
  .mhead{display:flex;justify-content:space-between;align-items:center;padding:4px 6px 12px}
  .mhead button{border:0;background:#f1eee9;width:36px;height:36px;border-radius:50%;font-size:22px;cursor:pointer;color:var(--ink)}
  .mgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
  .mgrid a{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:14px 6px;border-radius:16px;background:#f5f2ee;color:var(--ink);text-decoration:none;font-size:12.5px;font-weight:600;line-height:1.2}
  .mgrid a svg{width:24px;height:24px;color:var(--brand)}
  .mgrid a.on{background:var(--tint);outline:2px solid var(--brand)}
  .mgrid a.out svg{color:var(--bad)}
  .mgrid .cnt{position:absolute;top:6px;right:8px;margin:0}
  .ver{display:none}

  /* tabelas viram cartões */
  .tbl.stack thead{display:none}
  .tbl.stack,.tbl.stack tbody,.tbl.stack tfoot,.tbl.stack tr,.tbl.stack td{display:block;width:100%}
  .tbl.stack tr{border:1px solid var(--line);border-radius:14px;padding:6px 12px;margin-bottom:10px;background:#fff}
  .tbl.stack tr:hover td{background:none}
  .tbl.stack td{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:7px 0;border-bottom:1px dashed #e8eeeb;text-align:right}
  .tbl.stack td:last-child{border-bottom:0}
  .tbl.stack td::before{content:attr(data-label);flex:0 0 38%;max-width:45%;text-align:left;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);padding-top:2px}
  .tbl.stack td:not([data-label])::before{display:none}
  .tbl.stack td:not([data-label]){justify-content:flex-end}
  .tbl.stack td:first-child{font-size:15.5px}
  .tbl.stack .num{text-align:right}
  .tbl.stack form,.tbl.stack .btns{justify-content:flex-end}
  .scroll{overflow-x:visible}
  .tbl.stack tfoot tr{background:#f5f2ee}
}
@media (max-width:420px){
  .cards{grid-template-columns:1fr 1fr}
  .stat span{font-size:12.5px}
  .mgrid{grid-template-columns:repeat(3,1fr);gap:8px}
}

/* ===== abas de seção, ajuda, blocos recolhíveis ===== */
.subnav{display:flex;gap:4px;margin:-6px 0 16px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.subnav::-webkit-scrollbar{display:none}
.subnav a{display:flex;align-items:center;gap:7px;white-space:nowrap;padding:10px 14px;text-decoration:none;color:var(--muted);font-weight:600;border-bottom:3px solid transparent;margin-bottom:-1px}
.subnav a svg{display:none}
.subnav a:hover{color:var(--ink)}
.subnav a.on{color:var(--brand);border-bottom-color:var(--brand)}
.subnav .cnt{margin-left:2px}
.help{margin:-8px 0 18px;color:var(--muted);font-size:14.5px;max-width:78ch}
.help b{color:#33433e}
details.fold{padding:0}
details.fold>summary{cursor:pointer;list-style:none;padding:16px 20px;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
details.fold>summary::-webkit-details-marker{display:none}
details.fold>summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .15s;flex:0 0 9px;margin-right:4px}
details.fold[open]>summary::after{transform:rotate(-135deg)}
details.fold>summary small{font-weight:500;color:var(--muted);margin-left:8px}
details.fold>.inner{padding:0 20px 20px}
.sumcard{padding:22px}
.flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:10px;align-items:center;margin:6px 0 14px}
.flow>div{background:#f5f2ee;border-radius:14px;padding:14px 16px}
.flow span{display:block;color:var(--muted);font-size:13px;font-weight:600}
.flow b{display:block;font-size:26px;letter-spacing:-.02em;line-height:1.2}
.flow .op{background:none;padding:0;font-size:24px;color:var(--muted);font-weight:300}
.flow .in b{color:var(--ok)}.flow .res.pos{background:#e3f3e9}.flow .res.neg{background:#fbeceb}.flow .res.neg b{color:var(--bad)}.flow .res.pos b{color:var(--ok)}
.verdict{margin:0 0 6px;font-size:15px}
@media (max-width:900px){
  .subnav{margin:0 -14px 14px;padding:0 10px}
  .help{margin:0 0 14px;font-size:14px}
  .flow{grid-template-columns:1fr;gap:6px}
  .flow .op{display:none}
  details.fold>summary{padding:14px 16px}
  details.fold>.inner{padding:0 16px 16px}
}

/* ===== implantação a pagar ===== */
.setupcard{background:#fffaf0;border:2px solid var(--accent);border-radius:20px;padding:20px;margin-bottom:18px;box-shadow:0 10px 30px rgba(242,177,52,.18)}
.sc-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.sc-top>div:first-child{flex:1 1 320px;min-width:0}
.sc-top h2{font-size:22px;margin:6px 0}
.sc-top p{margin:0 0 6px}
.sc-tag{display:inline-block;background:var(--accent);color:#3d2a00;border-radius:20px;font-size:12px;font-weight:800;padding:3px 12px;text-transform:uppercase;letter-spacing:.04em}
.sc-amount{background:#fff;border:1px solid #f0d9a5;border-radius:16px;padding:12px 18px;text-align:right}
.sc-amount small{display:block;color:var(--muted);font-weight:600}
.sc-amount b{display:block;font-size:32px;letter-spacing:-.02em;line-height:1.1}
.sc-steps{margin:10px 0 14px;padding-left:20px;color:#4a3d1c}
.sc-steps li{margin:3px 0}
.sc-pay{display:flex;gap:18px;flex-wrap:wrap;align-items:flex-start}
.sc-pay .qrbox{background:#fff}
.sc-code{flex:1 1 280px;min-width:0}
.sc-code .keybox{background:#fff}
.sc-code .keybox code{font-size:12px;word-break:break-all;flex:1 1 100%}
@media (max-width:900px){.sc-amount{text-align:left;width:100%}.sc-pay .qrbox{flex:0 0 160px;width:160px;margin:0 auto}.sc-code{flex-basis:100%}.sc-code .btn{width:100%}}
.impin{display:flex;gap:6px;flex:0 0 auto}.impin input{width:90px!important;max-width:90px}.impin input[type=number]{width:72px!important}

/* Pré-visualização por template */
.pv-t-minimal{background:#fff}
.pv-t-minimal .pv-cover{height:0}
.pv-t-minimal .pv-av{margin:26px 0 8px 16px;border:0;width:54px;height:54px;font-size:20px;border-radius:12px}
.pv-t-minimal .pv-title{text-align:left;font-size:21px;padding:0 16px}.pv-t-minimal .pv-bio{text-align:left;padding:2px 16px 0}
.pv-t-minimal .pv-btn{background:transparent;color:#111111;border:1.5px solid #111111;box-shadow:none;border-radius:6px}
.pv-t-minimal .pv-ic{background:transparent}.pv-t-minimal .pv-lb{text-align:left}
.pv-t-vitrine .pv-cover{height:130px;border-radius:0 0 26px 26px}
.pv-t-vitrine .pv-btns{grid-template-columns:1fr 1fr}
.pv-t-vitrine .pv-btn{flex-direction:column;padding:12px 6px;text-align:center;gap:6px}
.pv-t-vitrine .pv-lb{padding-right:0;font-size:12px}
.pv-t-vitrine .pv-btn:last-child:nth-child(odd){grid-column:1/-1;flex-direction:row}
.pv-t-gourmet{background:#17110d;color:#f6ece0}
.pv-t-gourmet .pv-cover{border-radius:0}.pv-t-gourmet .pv-av{border-color:#17110d}
.pv-t-gourmet .pv-title{font-family:Georgia,serif;font-size:19px;font-weight:600;color:#f6ece0}
.pv-t-gourmet .pv-bio{color:#c9b5a0;font-style:italic}
.pv-t-beauty{background:#fbf2ef}
.pv-t-beauty .pv-cover{border-radius:0 0 50% 50%/0 0 26px 26px}.pv-t-beauty .pv-av{border-color:#fbf2ef}
.pv-t-beauty .pv-title{font-family:Georgia,serif;font-weight:500}
.pv-t-beauty .pv-btn{background:#fff;color:#111111;border:1.5px solid var(--c);border-radius:999px}
.pv-t-beauty .pv-ic{background:var(--c);color:var(--t);border-radius:50%}
.pv-t-impacto .pv-cover{height:70px;border-radius:0;border-bottom:5px solid #111111}
.pv-t-impacto .pv-av{border-radius:6px;border:3px solid #111111}
.pv-t-impacto .pv-title{text-transform:uppercase;font-weight:900}
.pv-t-impacto .pv-btn{border:2.5px solid #111111;box-shadow:3px 3px 0 #111111;border-radius:4px;text-transform:uppercase;font-weight:800}
.pv-t-impacto .pv-lb{text-align:left}
.pv.dark.pv-t-minimal .pv-btn,.pv.dark.pv-t-beauty .pv-btn{color:#f1eee9;border-color:#f1eee9;background:transparent}
.pv.dark.pv-t-impacto .pv-btn,.pv.dark.pv-t-impacto .pv-av{border-color:#f1eee9;box-shadow:3px 3px 0 rgba(255,255,255,.3)}

/* logo */
.brand .brandlogo{height:30px;width:auto;display:block}
.brand .brandicon{flex:0 0 32px;width:32px;height:32px;display:block}
.side .brand{padding:6px 8px 20px}
