/* Painel do cliente — ajustes de layout (celular primeiro, depois tablet e computador).
   Só vale quando o menu do portal existe; o painel da equipe não é afetado. As cores vêm de --portal-accent / --primary. */
.app-shell{ --pt-acc:var(--portal-accent, var(--primary, #e8830f)); }
body:has(.sidebar.portal) .content{ max-width:1120px; width:100%; margin-inline:auto; }

/* ---- botão do WhatsApp: nunca tampa o texto ---- */
body:has(.sidebar.portal) .portal-fab-wa{ transition:transform .25s ease, opacity .25s ease; }
body:has(.sidebar.portal) .portal-fab-wa.fab-hide{ transform:translateY(90px); opacity:0; pointer-events:none; }

/* ---- Home: cabeçalho ---- */
body:has(.sidebar.portal) .hm-hero{ padding:20px 22px; border-radius:22px; box-shadow:0 14px 30px -14px color-mix(in srgb,var(--pt-acc) 60%,transparent); }
body:has(.sidebar.portal) .hm-hero-t{ font-size:1.55rem; font-weight:800; letter-spacing:-.01em; line-height:1.15; }
body:has(.sidebar.portal) .hm-hero-s{ margin-top:4px; opacity:.92; font-size:.95rem; }
body:has(.sidebar.portal) .hm-up{ width:100%; text-align:left; min-height:44px; }
.hm-novos{ display:inline-flex; align-items:center; gap:8px; margin-top:12px; padding:8px 13px; border-radius:99px; background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.35); color:#fff; font-size:.82rem; font-weight:700; line-height:1.25; }
.hm-novos svg{ width:18px; height:18px; flex:none; }

/* ---- Home: avaliações ---- */
body:has(.sidebar.portal) .hm-soc{ min-height:64px; }

/* ---- Cartões das marcas ---- */
.hm-sec{ margin:20px 2px 10px; font-size:1.1rem; font-weight:800; }
.hm-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr)); gap:14px; align-items:start; }
.hm-grid .hm-marca{ margin:0; padding:16px 18px; display:flex; flex-direction:column; gap:0; }
.hm-m-tag{ font-size:.76rem; font-weight:700; color:var(--pt-acc); margin-bottom:6px; }
.hm-marca-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.hm-m-id{ min-width:0; }
.hm-m-id h2{ margin:0; font-size:1.2rem; font-weight:800; line-height:1.2; overflow-wrap:anywhere; }
.hm-m-sub{ margin-top:3px; font-size:.84rem; color:var(--muted); line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hm-marca-go{ flex:none; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:color-mix(in srgb,var(--pt-acc) 12%,transparent); color:var(--pt-acc); }
.hm-marca-go svg{ width:18px; height:18px; }
.hm-marca:hover .hm-marca-go{ background:var(--pt-acc); color:#fff; }
.hm-grid .hm-bar{ margin-top:14px; height:10px; }
.hm-grid .hm-bar > div{ box-shadow:0 0 10px color-mix(in srgb,var(--c, var(--pt-acc)) 40%,transparent); }
.hm-m-st{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }
.hm-m-st b{ font-size:.95rem; color:var(--text); font-variant-numeric:tabular-nums; }
.hm-pill{ display:inline-flex; align-items:center; gap:7px; min-width:0; padding:5px 11px; border-radius:99px; font-size:.8rem; font-weight:700; line-height:1.25;
  background:color-mix(in srgb,var(--c,var(--pt-acc)) 14%,transparent); color:color-mix(in srgb,var(--c,var(--pt-acc)) 72%,#000); }
.hm-pill i{ flex:none; width:8px; height:8px; border-radius:50%; background:var(--c,var(--pt-acc)); }
.hm-m-desc{ margin-top:10px; font-size:.86rem; line-height:1.45; color:var(--text); opacity:.85; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.hm-m-prev{ margin-top:10px; padding-top:10px; border-top:1px dashed var(--border); display:flex; gap:8px; align-items:flex-start; font-size:.78rem; line-height:1.4; color:var(--muted); }
.hm-m-prev svg{ width:15px; height:15px; flex:none; margin-top:1px; }

/* ---- Processos (lista) e Detalhe: mesma tipografia ---- */
body:has(.sidebar.portal) #procLista .card h2{ font-size:1.2rem; font-weight:800; }
body:has(.sidebar.portal) #btnVoltarMarca{ min-height:44px; padding-inline:16px; border-radius:99px; margin-bottom:2px; }
body:has(.sidebar.portal) .content .card-head h2{ font-size:1.25rem; font-weight:800; }
body:has(.sidebar.portal) .content .card-head .small{ margin-top:2px; }
body:has(.sidebar.portal) .content .vgrid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; }
body:has(.sidebar.portal) .content .vitem .l{ font-size:.76rem; font-weight:700; color:var(--muted); margin-bottom:3px; }
body:has(.sidebar.portal) .content .vitem .v{ font-size:.98rem; line-height:1.4; overflow-wrap:anywhere; }

/* ---- Configurações ---- */
body:has(.sidebar.portal) .content .card > h2{ font-size:1.2rem; font-weight:800; margin-bottom:12px; }
body:has(.sidebar.portal) .content .card label{ font-size:.82rem; font-weight:700; color:var(--muted); }
body:has(.sidebar.portal) .content input:not([type=color]):not([type=checkbox]):not([type=radio]),
body:has(.sidebar.portal) .content select{ min-height:46px; }
body:has(.sidebar.portal) .content .card .row{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; }
body:has(.sidebar.portal) #pf_cor{ width:56px !important; height:56px !important; padding:3px !important; border-radius:14px; flex:none; }
body:has(.sidebar.portal) [data-modo]{ flex:1 1 0; min-height:44px; justify-content:center; }
body:has(.sidebar.portal) .content .actions{ display:flex; flex-wrap:wrap; gap:10px; }
body:has(.sidebar.portal) .content .actions .btn{ min-height:44px; }
body:has(.sidebar.portal) #btnSalvarPortalCfg{ min-height:48px; }

/* ---- Celular ---- */
@media (max-width:820px){
  body:has(.sidebar.portal) .content{ padding:14px 14px calc(96px + env(safe-area-inset-bottom,0px)); }
  body:has(.sidebar.portal) .content .card{ padding:16px; border-radius:20px; margin-bottom:12px; }
  body:has(.sidebar.portal) .hm-hero{ padding:18px; }
  body:has(.sidebar.portal) .hm-hero-t{ font-size:1.4rem; }
  body:has(.sidebar.portal) .content .card > h2, body:has(.sidebar.portal) .content .card-head h2{ font-size:1.12rem; }
  body:has(.sidebar.portal) .content input, body:has(.sidebar.portal) .content select, body:has(.sidebar.portal) .content textarea{ font-size:16px; }
  body:has(.sidebar.portal) .content .card .row{ grid-template-columns:1fr; }
  body:has(.sidebar.portal) .portal-fab-wa{ width:52px; height:52px; right:14px; bottom:calc(16px + env(safe-area-inset-bottom,0px)); }
}
@media (max-width:480px){
  body:has(.sidebar.portal) .content{ padding-inline:12px; }
  .hm-grid .hm-marca{ padding:14px 15px; }
  .hm-m-id h2{ font-size:1.12rem; }
  body:has(.sidebar.portal) .content .vgrid{ grid-template-columns:1fr; }
  body:has(.sidebar.portal) .hm-stars{ font-size:.85rem; letter-spacing:0; }
}
@media (prefers-reduced-motion:reduce){ body:has(.sidebar.portal) .portal-fab-wa{ transition:none; } }

/* ---- Detalhe: dados como texto (não parecem campos bloqueados) ---- */
body:has(.sidebar.portal) .content .vitem .v{ background:none; border:0; padding:0; min-height:0; box-shadow:none; font-weight:600; }
body:has(.sidebar.portal) .content .vgrid{ margin-top:4px; }
@media (max-width:480px){
  body:has(.sidebar.portal) .content .vgrid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:has(.sidebar.portal) .content .vitem[style*="grid-column"]{ grid-column:1/-1 !important; }
}
/* ---- Configurações: modo de visualização em cápsula e links ---- */
body:has(.sidebar.portal) .content .card a:not(.btn){ color:var(--pt-acc); font-weight:600; }
body:has(.sidebar.portal) [data-faq] > div:first-child > span{ flex:none; font-size:.75rem; color:var(--muted); margin-left:10px; }
body:has(.sidebar.portal) [data-modo]{ white-space:nowrap; }

/* ---- Processos: busca e filtro ---- */
body:has(.sidebar.portal) #procBusca{ flex:1 1 220px; min-width:0 !important; }
@media (max-width:600px){
  body:has(.sidebar.portal) #procStatus{ max-width:none !important; width:100%; flex:1 1 100%; }
}
body:has(.sidebar.portal) .hm-grid .hm-marca [data-vermarca]:focus-visible{ outline:2px solid var(--pt-acc); outline-offset:4px; border-radius:12px; }

/* ---- Suporte: vídeos de ajuda ---- */
body:has(.sidebar.portal) .vd-grid{ grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); }
body:has(.sidebar.portal) .vd-it{ border-radius:16px; transition:transform .15s ease, box-shadow .15s ease; }
body:has(.sidebar.portal) .vd-it:hover{ transform:translateY(-2px); box-shadow:0 10px 22px -12px rgba(20,20,25,.3); }
body:has(.sidebar.portal) .vd-tx b{ font-size:.95rem; }
@media (max-width:600px){
  body:has(.sidebar.portal) .vd-grid{ grid-template-columns:1fr; gap:10px; }
  body:has(.sidebar.portal) .vd-it{ flex-direction:row; align-items:center; min-height:84px; }
  body:has(.sidebar.portal) .vd-th{ flex:none; width:132px; aspect-ratio:16/10; align-self:stretch; }
  body:has(.sidebar.portal) .vd-th::after{ width:34px; height:34px; }
  body:has(.sidebar.portal) .vd-th::before{ border-left-width:11px; border-top-width:7px; border-bottom-width:7px; }
  body:has(.sidebar.portal) .vd-tx{ padding:10px 12px; min-width:0; }
  body:has(.sidebar.portal) .vd-tx span{ display:block; margin-top:2px; line-height:1.3; }
}
body:has(.sidebar.portal) [data-faq]{ min-height:48px; display:flex; flex-direction:column; justify-content:center; }

/* ---- Relatórios: tabela vira lista no celular (só na tela; o PDF não muda) ---- */
@media screen and (max-width:600px){
  body:has(.sidebar.portal) .rel-tab thead{ display:none; }
  body:has(.sidebar.portal) .rel-tab, body:has(.sidebar.portal) .rel-tab tbody, body:has(.sidebar.portal) .rel-tab tr{ display:block; width:100%; }
  body:has(.sidebar.portal) .rel-tab tr{ border:1px solid var(--border); border-radius:16px; padding:12px 14px; margin-bottom:10px; }
  body:has(.sidebar.portal) .rel-tab td{ display:flex; justify-content:space-between; gap:14px; padding:6px 0 !important; border:0 !important; text-align:right; font-size:.9rem; }
  body:has(.sidebar.portal) .rel-tab td:first-child{ display:block; text-align:left; font-weight:800; font-size:1.02rem; padding-bottom:8px !important; }
  body:has(.sidebar.portal) .rel-tab td:not(:first-child)::before{ color:var(--muted); font-weight:700; text-align:left; flex:none; }
  body:has(.sidebar.portal) .rel-tab td:nth-child(2)::before{ content:"Classe"; }
  body:has(.sidebar.portal) .rel-tab td:nth-child(3)::before{ content:"Status"; }
  body:has(.sidebar.portal) .rel-tab td:nth-child(4)::before{ content:"Andamento"; }
  body:has(.sidebar.portal) .rel-tab td:nth-child(5)::before{ content:"Previsão"; }
}

/* ---- Modo escuro: a logo escura ganha uma base clara para continuar legível ---- */
html[data-theme="dark"] .pm-logo.logo-propria, html[data-theme="dark"] .sidebar.portal .logo-wrap img.logo-propria, html[data-theme="dark"] .sidebar.portal .logo-wrap img.logo-parceiro{ background:#fff; border-radius:10px; padding:4px 10px; box-sizing:content-box; }
html[data-theme="dark"] .hm-pill{ color:color-mix(in srgb,var(--c,var(--pt-acc)) 62%,#fff); }
@media (prefers-color-scheme:dark){ html:not([data-theme="light"]) .hm-pill{ color:color-mix(in srgb,var(--c,var(--pt-acc)) 62%,#fff); } }

/* =====================================================================
   Configurações (portal) e aproveitamento da tela grande
   ===================================================================== */
html{ background:var(--bg); }
@media (min-width:900px){
  body:has(.sidebar.portal) .content{ max-width:1320px; padding:32px 40px 56px; }
  .hm-grid{ grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr)); gap:18px; }
  body:has(.sidebar.portal) .hm-hero{ padding:26px 30px; }
  body:has(.sidebar.portal) .hm-hero-t{ font-size:1.8rem; }
  .hm-novos{ white-space:nowrap; }
  .hm-pill{ white-space:nowrap; }
  body:has(.sidebar.portal) .hm-up{ width:auto; max-width:100%; }
}
.hm-m-id h2, .hm-m-sub{ overflow-wrap:break-word; word-break:normal; }
.hm-m-id h2{ overflow-wrap:anywhere; }

.cfg2-top{ margin-bottom:18px; }
.cfg2-top h1{ margin:0 0 4px; font:800 1.6rem/1.15 "Manrope","Inter",sans-serif; letter-spacing:-.01em; }
.cfg2-grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
.cfg2-col{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.cfg2 .card.cfg-card{ margin:0; }
@media (min-width:900px){
  .cfg2-grid{ grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:20px; align-items:start; }
  .cfg2-col{ gap:20px; }
  .cfg2 .card.cfg-card{ padding:22px 24px; }
}
.cfg-head{ display:flex; align-items:center; gap:13px; margin-bottom:16px; }
.cfg-head h2{ margin:0 !important; font-size:1.1rem !important; font-weight:800; line-height:1.2; }
.cfg-head .small{ margin-top:2px; line-height:1.35; }
.cfg-ic{ flex:none; width:42px; height:42px; border-radius:14px; display:grid; place-items:center; color:#fff;
  background:linear-gradient(135deg,var(--pt-acc),var(--primary-dark,var(--pt-acc))); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4), 0 8px 16px -8px color-mix(in srgb,var(--pt-acc) 70%,transparent); }
.cfg-ic svg{ width:22px; height:22px; }
.cfg-dica{ font-weight:500; opacity:.8; }
.cfg-acoes{ display:flex; justify-content:flex-end; gap:10px; margin-top:16px; flex-wrap:wrap; }
.cfg-acoes-esq{ justify-content:flex-start; }
.cfg2 .row{ gap:2px 16px; }
@media (max-width:899px){ .cfg-acoes:not(.cfg-acoes-esq) .btn{ width:100%; justify-content:center; } }

/* cor predominante */
.cfg-cores{ display:flex; flex-wrap:nowrap; justify-content:space-between; align-items:center; gap:8px; margin:10px 2px 12px; max-width:340px; }
.cfg-cor{ position:relative; flex:0 1 32px; width:32px; min-width:22px; height:auto; aspect-ratio:1; margin:0 !important; border-radius:50%; border:0; padding:0; cursor:pointer; background:var(--c);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4), 0 6px 12px -6px var(--c); transition:transform .2s; -webkit-tap-highlight-color:transparent; }
.cfg-cor:hover{ transform:scale(1.08); }
.cfg-cor.on::after{ content:""; position:absolute; inset:-4px; border-radius:50%; border:2px solid var(--c); }
.cfg-cor.on::before{ content:""; position:absolute; inset:0; margin:auto; width:13px; height:13px; background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.cfg-cor-livre{ background:conic-gradient(from 0deg,#e8830f,#f5a300,#2fb86b,#1aa3d8,#4b5cf0,#b13bd8,#e8830f); overflow:hidden; }
.cfg-cor-livre input{ position:absolute; inset:0; width:100% !important; height:100% !important; opacity:0; cursor:pointer; min-height:0 !important; padding:0; border:0; }
.cfg-cor:focus-within{ outline:2px solid var(--pt-acc); outline-offset:3px; }
.cfg-cor:focus-visible{ outline:2px solid var(--pt-acc); outline-offset:3px; }

/* modo de visualização: cápsula */
.cfg-seg{ container-type:inline-size; display:flex; gap:4px; padding:4px; margin-top:6px; border-radius:999px; background:color-mix(in srgb,var(--text) 6%,var(--panel)); box-shadow:inset 0 1px 3px rgba(0,0,0,.08); }
.cfg-seg button{ flex:1 1 0; min-width:0; min-height:44px; padding:0 6px; display:flex; align-items:center; justify-content:center; gap:6px; border:0; border-radius:999px; background:transparent; color:var(--muted); font:700 .84rem "Inter",sans-serif; cursor:pointer; white-space:nowrap; transition:background .25s, color .25s, box-shadow .25s; -webkit-tap-highlight-color:transparent; }
.cfg-seg button svg{ width:17px; height:17px; flex:none; }
@container (max-width:330px){ .cfg-seg button svg{ display:none; } }
.cfg-seg button:hover{ color:var(--text); }
.cfg-seg button.on{ color:#fff; background:linear-gradient(135deg,var(--pt-acc),var(--primary-dark)); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4), 0 6px 14px -6px color-mix(in srgb,var(--pt-acc) 70%,transparent); }
.cfg-seg button:focus-visible{ outline:2px solid var(--pt-acc); outline-offset:2px; }

/* logo */
.cfg-logo{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.cfg-logo-img{ flex:none; display:grid; place-items:center; width:150px; height:76px; padding:8px; border-radius:16px; background:#fff; border:1px solid var(--border); }
.cfg-logo-img img{ max-width:100%; max-height:100%; display:block; }
.cfg-logo .small{ flex:1; min-width:190px; line-height:1.45; }

/* baixar o app: passo a passo */
.cfg-passos{ margin-bottom:14px; padding:14px 16px; border-radius:18px; background:color-mix(in srgb,var(--pt-acc) 6%,var(--panel)); border:1px solid color-mix(in srgb,var(--pt-acc) 16%,var(--border)); }
.cfg-passos-t{ font-weight:800; font-size:.92rem; margin-bottom:8px; }
.cfg-passos-g{ display:grid; grid-template-columns:minmax(0,1fr); gap:12px 24px; }
@media (min-width:640px){ .cfg-passos-g{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.cfg-passos b{ font-size:.86rem; }
.cfg-passos ol{ margin:6px 0 0; padding-left:20px; font-size:.84rem; line-height:1.5; color:var(--muted); }
.cfg-passos li b{ color:var(--text); }

/* privacidade e sair */
.cfg-links{ display:flex; flex-wrap:wrap; gap:10px; }
.cfg-links a{ display:inline-flex; align-items:center; min-height:44px; padding:0 18px; border-radius:999px; text-decoration:none; font-size:.88rem; font-weight:700; color:#fff !important;
  background:linear-gradient(135deg,var(--pt-acc),var(--primary-dark,var(--pt-acc))); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4), 0 8px 16px -8px color-mix(in srgb,var(--pt-acc) 70%,transparent); transition:transform .15s; }
.cfg-links a:hover{ transform:translateY(-1px); }
/* botões secundários da área de ajustes: mesmo degradê escuro da cor escolhida */
.cfg2 .btn.secondary{ color:#fff; border:0; background:linear-gradient(135deg,var(--pt-acc),var(--primary-dark,var(--pt-acc))); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4), 0 8px 16px -8px color-mix(in srgb,var(--pt-acc) 70%,transparent); }
.cfg2 .btn.secondary:hover{ filter:brightness(1.06); }
.cfg2 .card.cfg-card.cfg-sair{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:26px; }
@media (min-width:900px){ .cfg2 .card.cfg-card.cfg-sair{ margin-top:20px; } }
.cfg-sair-tx{ display:flex; align-items:center; gap:13px; min-width:0; flex:1 1 260px; }
.cfg-sair-tx h2{ margin:0 !important; font-size:1.05rem !important; font-weight:800; }
.cfg2 .cfg-ic-sair{ color:#fff; background:linear-gradient(135deg,#e5484d,#a62b30); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.35), 0 8px 16px -8px rgba(229,72,77,.7); }
.cfg2 #btnSairPortal{ color:#fff; background:linear-gradient(135deg,#e5484d,#a62b30); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.35), 0 8px 16px -8px rgba(229,72,77,.7); }
#btnSairPortal{ min-height:46px; padding-inline:26px; color:var(--danger); border-color:color-mix(in srgb,var(--danger) 40%,var(--border)); }
#btnSairPortal:hover{ color:#fff; background:linear-gradient(135deg,var(--danger),var(--danger-dark)); }
@media (max-width:899px){ #btnSairPortal{ width:100%; justify-content:center; } .cfg2 .card.cfg-card.cfg-sair{ margin-top:30px; } }
.cfg2 #btnSairPortal{ position:relative; overflow:hidden; transition:transform .18s, box-shadow .18s; }
.cfg2 #btnSairPortal::after{ content:""; position:absolute; top:0; left:-60%; width:40%; height:100%; background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent); transform:skewX(-20deg); animation:sairBrilho 4.5s ease-in-out infinite; pointer-events:none; }
.cfg2 #btnSairPortal:hover{ transform:translateY(-1px); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.35), 0 12px 22px -8px rgba(229,72,77,.85); }
.cfg2 #btnSairPortal:active{ transform:scale(.97); }
@keyframes sairBrilho{ 0%,60%{ left:-60%; } 100%{ left:130%; } }
@media (prefers-reduced-motion:reduce){ .cfg2 #btnSairPortal::after{ animation:none; display:none; } }

/* cartões que chegam de outros módulos (biometria, app, marketplace) seguem o mesmo cabeçalho */
.cfg2 #cfgPush .card, .cfg2 #cfgBio .card, .cfg2 #cfgMkt .card{ margin:0; }
.cfg2 #cfgBio .card .btn, .cfg2 #cfgPush .card .btn{ min-height:44px; }
.cfg-flash{ animation:cfgFlash 2.2s ease; border-radius:20px; }
@keyframes cfgFlash{ 0%,100%{ box-shadow:0 0 0 0 transparent; } 20%,70%{ box-shadow:0 0 0 4px color-mix(in srgb,var(--pt-acc) 45%,transparent); } }
@media (prefers-reduced-motion:reduce){ .cfg-flash{ animation:none; } .cfg-cor{ transition:none; } }

/* ---- modo escuro: cores mais claras para texto/ícone em destaque ---- */
html[data-theme="dark"]{ --pt-txt-acc:color-mix(in srgb,var(--pt-acc) 62%,#fff); --pt-txt-danger:#ff8f80; }
html[data-theme="dark"] body:has(.sidebar.portal) .content .card a:not(.btn):not(.cfg-links a){ color:var(--pt-txt-acc); }
html[data-theme="dark"] .hm-m-tag, html[data-theme="dark"] .hm-marca-go{ color:var(--pt-txt-acc); }

@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]){ --pt-txt-acc:color-mix(in srgb,var(--pt-acc) 62%,#fff); --pt-txt-danger:#ff8f80; }
  html:not([data-theme="light"]) body:has(.sidebar.portal) .content .card a:not(.btn):not(.cfg-links a){ color:var(--pt-txt-acc); }
  html:not([data-theme="light"]) .hm-m-tag, html:not([data-theme="light"]) .hm-marca-go, html:not([data-theme="light"]) .av-ic{ color:var(--pt-txt-acc); }
}
@media (min-width:900px){
  body:has(.sidebar.portal) .rel-tab th, body:has(.sidebar.portal) .rel-tab td:not(:last-child){ white-space:nowrap; padding-right:22px !important; }
  body:has(.sidebar.portal) .rel-tab{ font-size:.92rem !important; }
}
.hm-m-prev, .hm-m-desc, .hm-m-sub{ text-wrap:pretty; }
@media (min-width:900px){ .hm-grid{ grid-template-columns:repeat(auto-fill,minmax(min(100%,500px),1fr)); } }

/* ---- Configurações: cápsula com as duas seções ---- */
.cfg-abas{ container-type:inline-size; display:flex; gap:4px; padding:4px; margin:0 0 18px; max-width:460px; border-radius:999px; background:color-mix(in srgb,var(--text) 6%,var(--panel)); box-shadow:inset 0 1px 3px rgba(0,0,0,.08); }
.cfg-abas button{ flex:1 1 0; min-width:0; min-height:46px; padding:0 8px; display:flex; align-items:center; justify-content:center; gap:7px; border:0; border-radius:999px; background:transparent; color:var(--muted); font:700 .9rem "Inter",sans-serif; cursor:pointer; white-space:nowrap; transition:background .25s,color .25s,box-shadow .25s; -webkit-tap-highlight-color:transparent; }
.cfg-abas button svg{ width:18px; height:18px; flex:none; }
.cfg-abas button:hover{ color:var(--text); }
.cfg-abas button.on{ color:#fff; background:linear-gradient(135deg,var(--pt-acc),var(--primary-dark,var(--pt-acc))); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4), 0 6px 14px -6px color-mix(in srgb,var(--pt-acc) 70%,transparent); }
.cfg-abas button:focus-visible{ outline:2px solid var(--pt-acc); outline-offset:2px; }
@container (max-width:340px){ .cfg-abas button svg{ display:none; } }
.cfg-painel[hidden]{ display:none; }

/* ---- nota das estimativas (Processos) ---- */
.aviso-prev{ margin-top:10px; color:var(--muted); line-height:1.5; }
@media (min-width:900px){
  .aviso-prev{ font-size:.98rem; line-height:1.6; margin-top:16px; padding:0 4px; }
  #procLista .hm-grid{ grid-template-columns:repeat(auto-fill,minmax(min(100%,520px),1fr)); gap:22px; }
  #procLista .hm-marca{ padding:26px 28px; border-radius:26px; }
  #procLista .hm-m-id h2{ font-size:1.35rem; }
  #procLista .hm-m-st{ font-size:1rem; }
  #procLista .hm-m-desc{ font-size:.96rem; line-height:1.55; -webkit-line-clamp:4; }
  #procLista .hm-m-prev{ font-size:.92rem; margin-top:14px; padding-top:14px; }
  #procLista .hm-m-prev svg{ width:17px; height:17px; }
  #procLista .hm-bar{ height:10px; }
}

/* ---- botões: o brilho e a sombra seguem a cor escolhida (nada de laranja da marca) ---- */
body:has(.sidebar.portal) .app-shell{ --glow:color-mix(in srgb,var(--pt-acc) 50%,transparent); }
body:has(.sidebar.portal) .content .btn{ text-shadow:0 1px 1px rgba(0,0,0,.22);
  box-shadow:0 1px 0 rgba(255,255,255,.38) inset, 0 -1px 0 rgba(0,0,0,.14) inset, 0 1px 2px rgba(0,0,0,.2), 0 10px 18px -10px var(--glow); }
body:has(.sidebar.portal) .content .btn:hover{ box-shadow:0 1px 0 rgba(255,255,255,.42) inset, 0 -1px 0 rgba(0,0,0,.14) inset, 0 2px 4px rgba(0,0,0,.22), 0 14px 24px -10px var(--glow); }
body:has(.sidebar.portal) .content .btn.secondary{ text-shadow:none; }

/* =====================================================================
   Detalhe do processo
   ===================================================================== */
.pd{ display:block; will-change:transform; }
.pd-vem-d{ animation:pdVemD .34s cubic-bezier(.2,.8,.2,1); }
.pd-vem-e{ animation:pdVemE .34s cubic-bezier(.2,.8,.2,1); }
@keyframes pdVemD{ from{ opacity:0; transform:translateX(34px); } to{ opacity:1; transform:none; } }
@keyframes pdVemE{ from{ opacity:0; transform:translateX(-34px); } to{ opacity:1; transform:none; } }
.pd-nav{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.pd-voltar{ display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 18px 0 12px; border-radius:999px; cursor:pointer; font:700 .9rem "Inter",sans-serif; color:var(--text);
  background:color-mix(in srgb,var(--panel) 92%,transparent); border:1px solid var(--border); box-shadow:0 1px 3px rgba(20,20,25,.06); -webkit-tap-highlight-color:transparent; transition:transform .15s; }
.pd-voltar svg{ width:20px; height:20px; }
.pd-voltar:active{ transform:scale(.96); }
.pd-pos{ display:inline-flex; align-items:center; gap:2px; padding:4px; border-radius:999px; background:color-mix(in srgb,var(--text) 6%,var(--panel)); box-shadow:inset 0 1px 3px rgba(0,0,0,.08); }
.pd-pos span{ min-width:56px; text-align:center; font:700 .82rem "Inter",sans-serif; color:var(--muted); }
.pd-pos button{ width:38px; height:38px; border:0; border-radius:50%; display:grid; place-items:center; cursor:pointer; color:#fff; -webkit-tap-highlight-color:transparent;
  background:linear-gradient(135deg,var(--pt-acc),var(--primary-dark,var(--pt-acc))); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4), 0 6px 12px -6px color-mix(in srgb,var(--pt-acc) 70%,transparent); }
.pd-pos button svg{ width:18px; height:18px; }
.pd-pos button:disabled{ opacity:.35; box-shadow:none; background:color-mix(in srgb,var(--text) 18%,transparent); cursor:default; }
.pd-pos button:not(:disabled):active{ transform:scale(.92); }

.pd-hero{ position:relative; overflow:hidden; margin-bottom:16px; padding:22px 22px 20px; border-radius:26px; color:#fff;
  background:linear-gradient(135deg,var(--pt-acc),var(--primary-dark,var(--pt-acc))); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.35), 0 18px 34px -16px color-mix(in srgb,var(--pt-acc) 65%,transparent); }
.pd-hero::before{ content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(360px 200px at 0 0,rgba(255,255,255,.22),transparent 70%), radial-gradient(260px 200px at 100% 100%,rgba(0,0,0,.16),transparent 70%); }
.pd-hero > *{ position:relative; }
.pd-hero-t{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.pd-hero-id{ min-width:0; }
.pd-classe{ display:inline-block; padding:4px 11px; border-radius:999px; font-size:.76rem; font-weight:700; background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.28); }
.pd-hero h1{ margin:10px 0 0; font:800 1.65rem/1.15 "Manrope","Inter",sans-serif; letter-spacing:-.01em; color:#fff; overflow-wrap:anywhere; }
.pd-anel{ position:relative; flex:none; width:78px; height:78px; display:grid; place-items:center; }
.pd-anel::before{ content:""; position:absolute; inset:0; border-radius:50%; background:conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.28) 0);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 8px),#000 calc(100% - 7px)); mask:radial-gradient(farthest-side,transparent calc(100% - 8px),#000 calc(100% - 7px)); filter:drop-shadow(0 0 6px rgba(255,255,255,.4)); }
.pd-anel b{ font:800 1.35rem/1 "Manrope","Inter",sans-serif; color:#fff; }
.pd-anel small{ font-size:.7em; font-weight:700; margin-left:1px; }
.pd-pill{ display:inline-flex; align-items:center; gap:9px; margin-top:16px; padding:8px 15px; border-radius:999px; font-weight:700; font-size:.92rem; line-height:1.25; background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.3); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.pd-pill i{ flex:none; width:11px; height:11px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 3px rgba(255,255,255,.18); }
.pd-prev{ display:flex; align-items:flex-start; gap:9px; margin-top:14px; font-size:.9rem; line-height:1.45; opacity:.95; }
.pd-prev svg{ flex:none; width:18px; height:18px; margin-top:1px; }

.pd-grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
.pd-col{ min-width:0; }
.pd .card{ margin-bottom:14px; }
.pd .card-head h2{ font-size:1.15rem; }
.pd-sig p{ margin:0; font-size:.98rem; line-height:1.6; }
.pd-sig .aviso-prev{ margin-top:14px; padding-top:12px; border-top:1px dashed var(--border); }
@media (min-width:900px){
  .pd-nav{ margin-bottom:18px; }
  .pd-hero{ padding:30px 34px 28px; border-radius:30px; margin-bottom:22px; }
  .pd-hero h1{ font-size:2.1rem; }
  .pd-anel{ width:100px; height:100px; }
  .pd-anel b{ font-size:1.7rem; }
  .pd-pill{ font-size:1rem; padding:10px 18px; }
  .pd-prev{ font-size:1rem; }
  .pd-grid{ grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:22px; align-items:start; }
  .pd .card{ margin-bottom:20px; padding:24px 26px; }
}
@media (prefers-reduced-motion:reduce){ .pd-vem-d, .pd-vem-e{ animation:none; } }

/* =====================================================================
   Detalhe: círculo de progresso com efeito de carregamento
   ===================================================================== */
.pd-anel{ animation:pdAnel 1.5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pdAnel{ from{ --p:0; } }
.pd-anel::after{ content:""; position:absolute; inset:-5px; border-radius:50%; border:2px solid rgba(255,255,255,.55); opacity:0; animation:pdOnda 2.8s ease-out 1.6s infinite; }
@keyframes pdOnda{ 0%{ opacity:.7; transform:scale(.92); } 100%{ opacity:0; transform:scale(1.22); } }
@media (prefers-reduced-motion:reduce){ .pd-anel, .pd-anel::after{ animation:none; } }

/* =====================================================================
   Home: carrossel de marcas no topo
   ===================================================================== */
.hm-hero2{ overflow:hidden; position:relative; }
.hm-hero2::before{ content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(420px 220px at 0 0,rgba(255,255,255,.2),transparent 70%), radial-gradient(300px 220px at 100% 100%,rgba(0,0,0,.18),transparent 70%); }
.hm-hero2 > *{ position:relative; }
.hm-car{ margin-top:16px; }
.hm-trilho{ display:flex; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; border-radius:22px; outline:none; }
.hm-trilho::-webkit-scrollbar{ display:none; }
.hm-trilho:focus-visible{ box-shadow:0 0 0 3px rgba(255,255,255,.7); }
.hm-sl{ flex:0 0 100%; min-width:0; scroll-snap-align:start; scroll-snap-stop:always; display:flex; align-items:center; gap:18px; padding:18px 18px; border-radius:22px; cursor:pointer; color:#fff;
  background:linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,.08)); border:1px solid rgba(255,255,255,.32); box-shadow:inset 0 1px 0 rgba(255,255,255,.3); -webkit-tap-highlight-color:transparent; }
.hm-gauge{ position:relative; flex:none; width:118px; height:118px; display:grid; place-items:center; }
.hm-gauge svg{ position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); overflow:visible; }
.hm-gauge circle{ fill:none; stroke-width:9; }
.hm-gauge .gt{ stroke:rgba(255,255,255,.26); }
.hm-gauge .gp{ stroke-linecap:round; stroke-dasharray:var(--pv) 100; filter:drop-shadow(0 0 6px rgba(255,255,255,.7)); }
.hm-gauge.anim .gp{ animation:hmArco 1.3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes hmArco{ from{ stroke-dasharray:0 100; } }
.hm-gauge::after{ content:""; position:absolute; inset:-6px; border-radius:50%; border:2px solid rgba(255,255,255,.5); opacity:0; animation:hmOnda 3s ease-out 1.5s infinite; pointer-events:none; }
@keyframes hmOnda{ 0%{ opacity:.7; transform:scale(.94); } 100%{ opacity:0; transform:scale(1.2); } }
.hm-gauge .gn{ position:relative; font:800 1.9rem/1 "Manrope","Inter",sans-serif; letter-spacing:-.02em; color:#fff; text-shadow:0 2px 10px rgba(0,0,0,.2); }
.hm-gauge .gn small{ font-size:.55em; font-weight:700; margin-left:1px; opacity:.9; }
.hm-sl-tx{ flex:1; min-width:0; }
.hm-sl-top{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hm-sl-cl{ padding:3px 10px; border-radius:999px; font-size:.72rem; font-weight:700; background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.28); }
.hm-sl-novo{ display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-size:.72rem; font-weight:800; color:var(--pt-acc,#e8830f); background:#fff; }
.hm-sl-novo i{ width:7px; height:7px; border-radius:50%; background:var(--pt-acc,#e8830f); animation:hmPulse 1.8s ease-in-out infinite; }
.hm-sl h3{ margin:8px 0 0; font:800 1.3rem/1.15 "Manrope","Inter",sans-serif; letter-spacing:-.01em; color:#fff; overflow-wrap:anywhere; }
.hm-sl-pill{ display:inline-flex; align-items:center; gap:8px; margin-top:10px; padding:6px 12px; border-radius:999px; font-size:.84rem; font-weight:700; line-height:1.25; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.28); }
.hm-sl-pill i{ flex:none; width:9px; height:9px; border-radius:50%; background:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.2); }
.hm-sl-qd{ display:flex; align-items:center; flex-wrap:wrap; gap:0 4px; margin-top:10px; font-size:.8rem; opacity:.95; }
.hm-sl-qd span{ font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.hm-sl-qd svg{ width:15px; height:15px; }
.hm-ctl{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; }
.hm-seta-b{ flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; color:#fff; cursor:pointer; background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.35); box-shadow:inset 0 1px 0 rgba(255,255,255,.35); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); -webkit-tap-highlight-color:transparent; transition:transform .15s, background .2s; }
.hm-seta-b svg{ width:19px; height:19px; }
.hm-seta-b:hover{ background:rgba(255,255,255,.32); }
.hm-seta-b:active{ transform:scale(.9); }
.hm-seta-b:focus-visible, .hm-ponto:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.hm-pontos{ display:flex; align-items:center; justify-content:center; gap:7px; flex-wrap:wrap; min-width:0; }
.hm-ponto{ width:9px; height:9px; padding:0; border:0; border-radius:99px; cursor:pointer; background:rgba(255,255,255,.4); transition:width .3s cubic-bezier(.3,1.4,.5,1), background .2s; -webkit-tap-highlight-color:transparent; position:relative; }
.hm-ponto::after{ content:""; position:absolute; inset:-9px -4px; }
.hm-ponto.on{ width:26px; background:#fff; }
@media (max-width:420px){ .hm-gauge{ width:98px; height:98px; } .hm-gauge .gn{ font-size:1.6rem; } .hm-sl{ gap:14px; padding:16px 14px; } .hm-sl h3{ font-size:1.18rem; } }
@media (min-width:900px){ .hm-sl{ padding:24px 28px; gap:28px; } .hm-gauge{ width:144px; height:144px; } .hm-gauge .gn{ font-size:2.3rem; } .hm-sl h3{ font-size:1.7rem; } .hm-sl-pill{ font-size:.95rem; } .hm-sl-qd{ font-size:.9rem; } .hm-car{ margin-top:20px; } }
@media (prefers-reduced-motion:reduce){ .hm-gauge.anim .gp, .hm-gauge::after{ animation:none; } .hm-sl-novo i{ animation:none; } }

/* =====================================================================
   Home: Instagram e Google
   ===================================================================== */
.hm-redes{ display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-bottom:14px; }
@media (min-width:760px){ .hm-redes.duas{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } }
.rd{ position:relative; overflow:hidden; display:flex; align-items:center; gap:14px; padding:16px 16px 16px 16px; border-radius:24px; text-decoration:none; -webkit-tap-highlight-color:transparent; transition:transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .25s; }
.rd:hover{ transform:translateY(-2px); }
.rd:active{ transform:scale(.985); }
.rd:focus-visible{ outline:3px solid var(--pt-acc,#e8830f); outline-offset:3px; }
.rd-ic{ position:relative; flex:none; width:52px; height:52px; border-radius:18px; display:grid; place-items:center; }
.rd-ic svg{ width:28px; height:28px; }
.rd-tx{ flex:1; min-width:0; }
.rd-t{ font:800 1rem/1.25 "Manrope","Inter",sans-serif; }
.rd-s{ margin-top:3px; font-size:.84rem; line-height:1.4; }
.rd-go{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:7px; }
.rd-btn{ display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 15px; border-radius:999px; font:800 .86rem "Inter",sans-serif; white-space:nowrap; }
.rd-btn svg{ width:16px; height:16px; transition:transform .2s; }
.rd:hover .rd-btn svg{ transform:translateX(3px); }
/* Instagram: degradê da marca do app, brilho que passa e selo de bônus */
.rd.ig{ color:#fff; background:linear-gradient(120deg,#f58529,#dd2a7b 38%,#8134af 70%,#515bd4); background-size:220% 100%; animation:rdDesliza 9s ease-in-out infinite alternate; box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4), 0 18px 34px -16px rgba(221,42,123,.65); }
@keyframes rdDesliza{ from{ background-position:0 0; } to{ background-position:100% 0; } }
.rd.ig::before{ content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.3) 50%,transparent 65%); transform:translateX(-130%); animation:rdBrilho 5s ease-in-out 1.2s infinite; }
@keyframes rdBrilho{ 55%,100%{ transform:translateX(130%); } }
.rd.ig .rd-ic{ background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.45); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.5), 0 8px 18px -8px rgba(0,0,0,.4); }
.rd.ig .rd-t{ color:#fff; text-shadow:0 1px 8px rgba(0,0,0,.18); }
.rd.ig .rd-s{ color:rgba(255,255,255,.95); }
.rd.ig .rd-btn{ color:#b3226b; background:#fff; box-shadow:0 8px 16px -8px rgba(0,0,0,.45); }
.rd-bonus{ display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px; font-size:.7rem; font-weight:800; letter-spacing:.01em; color:#fff; background:rgba(255,255,255,.22); border:1px solid rgba(255,255,255,.4); }
.rd-bonus svg{ width:13px; height:13px; }
/* Google: cartão claro com fio nas quatro cores e estrelas que brilham em sequência */
.rd.gg{ color:var(--text); background:var(--panel,#fff); border:1px solid color-mix(in srgb,var(--text) 9%,transparent); box-shadow:0 14px 30px -18px rgba(66,133,244,.55), inset 0 1px 0 rgba(255,255,255,.6); }
.rd.gg::before{ content:""; position:absolute; left:0; right:0; top:0; height:4px; background:linear-gradient(90deg,#4285F4,#EA4335,#FBBC05,#34A853,#4285F4); background-size:300% 100%; animation:rdFio 6s linear infinite; }
@keyframes rdFio{ to{ background-position:300% 0; } }
.rd.gg .rd-ic{ background:#fff; border:1px solid color-mix(in srgb,#000 8%,transparent); box-shadow:0 8px 18px -8px rgba(0,0,0,.3); }
.rd.gg .rd-s{ color:var(--muted); }
.rd-stars{ display:flex; gap:3px; margin-top:6px; }
.rd-stars .st{ width:19px; height:19px; fill:#f6b400; filter:drop-shadow(0 1px 2px rgba(246,180,0,.5)); animation:rdEstrela 2.6s ease-in-out infinite; animation-delay:calc(var(--k) * .14s); }
@keyframes rdEstrela{ 0%,55%,100%{ transform:scale(1); filter:drop-shadow(0 1px 2px rgba(246,180,0,.5)); } 25%{ transform:scale(1.28) rotate(-8deg); filter:drop-shadow(0 0 8px rgba(255,200,40,.95)); } }
.rd.gg .rd-btn{ color:#fff; background:linear-gradient(135deg,#4f8df5,#1a5bd8); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4), 0 10px 18px -10px rgba(26,91,216,.8); }
html[data-theme="dark"] .rd.gg .rd-ic{ border-color:rgba(255,255,255,.2); }
@media (max-width:480px){ .rd{ padding:14px; gap:12px; } .rd-ic{ width:46px; height:46px; border-radius:16px; } .rd-bonus{ display:none; } .rd-btn{ padding:0 13px; } }
@media (max-width:360px){ .rd-go .rd-btn{ font-size:.8rem; padding:0 11px; } .rd-go .rd-btn svg{ display:none; } }
@media (prefers-reduced-motion:reduce){ .rd.ig, .rd.ig::before, .rd.gg::before, .rd-stars .st{ animation:none; } }

/* Relatórios: resumo gráfico */
.rl-resumo{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; margin:14px 0 6px; padding:18px; border-radius:20px; border:1px solid var(--border); background:linear-gradient(145deg,color-mix(in srgb,var(--pt-acc,#e8830f) 7%,var(--panel,#fff)),var(--panel,#fff)); -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.rl-donut{ position:relative; width:150px; height:150px; flex:none; color:var(--text,#111); }
.rl-donut svg{ width:100%; height:100%; display:block; }
.rl-arc{ animation:rlArco .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rlArco{ from{ stroke-dasharray:0 100; } }
.rl-donut-c{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.rl-donut-c b{ font-size:1.9rem; font-weight:800; line-height:1; letter-spacing:-.02em; }
.rl-donut-c span{ font-size:.68rem; color:var(--muted); margin-top:4px; max-width:80px; line-height:1.15; }
.rl-leg{ list-style:none; margin:0; padding:0; flex:1 1 170px; display:grid; gap:10px; }
.rl-leg li{ display:flex; align-items:center; gap:10px; font-size:.95rem; }
.rl-leg li i{ width:12px; height:12px; border-radius:4px; flex:none; }
.rl-leg li span{ flex:1; }
.rl-leg li b{ font-size:1.1rem; font-weight:800; min-width:24px; text-align:right; }
.rl-leg .rl-tot{ color:var(--muted); font-size:.85rem; padding-top:8px; border-top:1px dashed var(--border); }
.rl-barras{ display:grid; gap:14px; margin:18px 0 20px; }
.rl-b-t{ display:flex; justify-content:space-between; gap:10px; font-weight:700; font-size:.92rem; margin-bottom:6px; }
.rl-b-t b{ font-weight:800; }
.rl-b-tr{ height:12px; border-radius:99px; background:color-mix(in srgb,var(--text,#111) 8%,transparent); overflow:hidden; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.rl-b-f{ height:100%; border-radius:99px; transform-origin:left; animation:rlBarra .8s cubic-bezier(.2,.8,.2,1) both; animation-delay:calc(var(--i)*90ms); -webkit-print-color-adjust:exact; print-color-adjust:exact; }
@keyframes rlBarra{ from{ transform:scaleX(0); } }
@media (max-width:520px){ .rl-resumo{ gap:16px; padding:14px; flex-wrap:nowrap; } .rl-donut{ width:122px; height:122px; } .rl-donut-c b{ font-size:1.5rem; } .rl-donut-c span{ font-size:.6rem; max-width:64px; } .rl-leg{ flex-basis:0; min-width:0; gap:8px; } .rl-leg li{ font-size:.85rem; } }
@media (prefers-reduced-motion:reduce){ .rl-arc,.rl-b-f{ animation:none; } }

/* Relatórios: caixas de seleção estilizadas */
#relTodas, #relListaMarcas input[type=checkbox], [data-relm]{ -webkit-appearance:none; appearance:none; width:24px !important; height:24px; flex:none; margin:0 !important; padding:0; border-radius:8px; border:2px solid color-mix(in srgb,var(--text,#111) 25%,transparent); background:color-mix(in srgb,var(--text,#111) 4%,transparent); cursor:pointer; position:relative; transition:background .18s, border-color .18s, transform .15s, box-shadow .18s; }
#relTodas::after, #relListaMarcas input[type=checkbox]::after{ content:""; position:absolute; left:50%; top:50%; width:11px; height:6px; border:solid #fff; border-width:0 0 2.6px 2.6px; border-radius:1px; transform:translate(-50%,-70%) rotate(-45deg) scale(0); transition:transform .2s cubic-bezier(.3,1.6,.5,1); }
#relTodas:checked, #relListaMarcas input[type=checkbox]:checked{ border-color:transparent; background:linear-gradient(135deg,color-mix(in srgb,var(--pt-acc,#e8830f) 82%,#fff),color-mix(in srgb,var(--pt-acc,#e8830f) 78%,#000)); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.35), 0 6px 12px -6px var(--pt-acc,#e8830f); }
#relTodas:checked::after, #relListaMarcas input[type=checkbox]:checked::after{ transform:translate(-50%,-70%) rotate(-45deg) scale(1); }
#relTodas:active, [data-relm]:active{ transform:scale(.88); }
#relTodas:focus-visible, [data-relm]:focus-visible{ outline:3px solid color-mix(in srgb,var(--pt-acc,#e8830f) 40%,transparent); outline-offset:2px; }
#relTodas:indeterminate{ border-color:transparent; background:var(--pt-acc,#e8830f); }
@media print{ #relTodas, [data-relm]{ display:none; } }

/* Configurações: escolha das áreas da barra inferior */
.bar-op-g{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:6px; }
@media (min-width:520px){ .bar-op-g{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
.bar-op{ position:relative; display:flex; align-items:center; gap:10px; min-width:0; padding:10px 38px 10px 9px; border-radius:16px; border:1.5px solid var(--border); background:color-mix(in srgb,var(--text,#111) 3%,var(--panel,#fff)); color:var(--text); font:700 .86rem/1.2 inherit; font-family:inherit; text-align:left; cursor:pointer; transition:border-color .18s, background .18s, transform .15s; -webkit-tap-highlight-color:transparent; }
.bar-op:active{ transform:scale(.97); }
.bar-op-ic{ flex:none; width:34px; height:34px; border-radius:11px; display:grid; place-items:center; color:var(--muted); background:color-mix(in srgb,var(--text,#111) 7%,transparent); transition:background .18s,color .18s; }
.bar-op-ic svg{ width:18px; height:18px; }
.bar-op-t{ min-width:0; overflow-wrap:anywhere; font-size:.82rem; }
.bar-op-ck{ position:absolute; right:10px; top:50%; width:22px; height:22px; margin-top:-11px; border-radius:7px; border:2px solid color-mix(in srgb,var(--text,#111) 25%,transparent); transition:all .18s; }
.bar-op-ck::after{ content:""; position:absolute; left:50%; top:50%; width:10px; height:5.5px; border:solid #fff; border-width:0 0 2.4px 2.4px; transform:translate(-50%,-70%) rotate(-45deg) scale(0); transition:transform .2s cubic-bezier(.3,1.6,.5,1); }
.bar-op.on{ border-color:color-mix(in srgb,var(--pt-acc) 55%,transparent); background:color-mix(in srgb,var(--pt-acc) 9%,var(--panel,#fff)); }
.bar-op.on .bar-op-ic{ color:#fff; background:linear-gradient(135deg,var(--pt-acc),color-mix(in srgb,var(--pt-acc) 70%,#000)); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.35); }
.bar-op.on .bar-op-ck{ border-color:transparent; background:linear-gradient(135deg,color-mix(in srgb,var(--pt-acc) 82%,#fff),color-mix(in srgb,var(--pt-acc) 78%,#000)); }
.bar-op.on .bar-op-ck::after{ transform:translate(-50%,-70%) rotate(-45deg) scale(1); }
.bar-op.nao{ animation:barNao .35s; }
@keyframes barNao{ 25%{ transform:translateX(-5px); } 55%{ transform:translateX(5px); } 80%{ transform:translateX(-3px); } }
.bar-op-st{ margin-top:12px; }
.bar-op-av{ color:var(--danger); font-weight:700; }
@media (prefers-reduced-motion:reduce){ .bar-op.nao{ animation:none; } }

/* Destaques (stories) embutidos no cartão azul/colorido da Home */
.hm-stories-in:empty{ display:none; }
.hm-stories-in:not(:empty){ margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,.24); }
.hm-stories-in .hm-stories{ justify-content:center; gap:10px; padding:2px 2px 0; margin:0; }
.hm-stories-in .hm-story{ width:72px; color:#fff; }
.hm-stories-in .hm-ring{ width:60px; height:60px; padding:2.5px; box-shadow:0 6px 14px -6px rgba(0,0,0,.4); }
.hm-stories-in .hm-ring img{ border:2.5px solid rgba(255,255,255,.92); }
.hm-stories-in .hm-story-t{ font-size:.72rem; font-weight:700; margin-top:6px; text-shadow:0 1px 6px rgba(0,0,0,.3); }
.hm-stories-in .hm-story.visto .hm-ring{ background:rgba(255,255,255,.35); }
@media (min-width:900px){ .hm-stories-in .hm-story{ width:84px; } .hm-stories-in .hm-ring{ width:68px; height:68px; } }

/* Face ID: aparelhos cadastrados */
.pk-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--border); }
.pk-nome{ flex:1; min-width:0; font-weight:700; }
.pk-meta{ display:block; font-weight:400; color:var(--muted); margin-top:2px; }
.btn.pk-rem{ flex:none; white-space:nowrap; overflow:visible; min-width:0; padding-inline:16px; gap:7px; }
.btn.pk-rem svg{ width:16px; height:16px; flex:none; }
.cfg2 .btn.secondary.pk-rem{ background:linear-gradient(135deg,#e5484d,#a62b30); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.35), 0 8px 16px -8px rgba(229,72,77,.6); color:#fff; }

/* Minha empresa no Marketplace */
.mk-it{ padding:14px; margin-top:12px; border:1px solid var(--border); border-radius:20px; background:linear-gradient(145deg,color-mix(in srgb,var(--pt-acc) 5%,var(--panel,#fff)),var(--panel,#fff)); }
.mk-top{ display:flex; align-items:center; gap:13px; }
.mk-av{ flex:none; width:50px; height:50px; border-radius:16px; object-fit:contain; background:#fff; border:1px solid var(--border); }
.mk-ini{ display:grid; place-items:center; color:#fff; font-weight:800; font-size:1.2rem; border:0; background:linear-gradient(135deg,var(--pt-acc),color-mix(in srgb,var(--pt-acc) 62%,#000)); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.35); }
.mk-tx{ min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.mk-tx b{ font-size:1.02rem; }
.mk-cat{ font-size:.82rem; color:var(--muted); }
.mk-st{ display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-size:.74rem; font-weight:700; background:color-mix(in srgb,var(--muted) 14%,transparent); color:var(--muted); }
.mk-st::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.mk-st.ok{ background:color-mix(in srgb,var(--ok,#1e8e5a) 15%,transparent); color:var(--ok,#1e8e5a); }
.mk-st.wait{ background:color-mix(in srgb,#d98a0b 16%,transparent); color:#b36f06; }
.mk-bt{ display:flex; gap:10px; margin-top:14px; }
.mk-bt .btn{ flex:1 1 0; justify-content:center; gap:7px; min-height:44px; white-space:normal; text-align:center; line-height:1.15; }
.mk-bt .btn svg{ width:17px; height:17px; flex:none; }
