/* Skin legada — aplica a identidade nova (ki-tokens.css) sobre as páginas existentes sem editá-las.
   Carregada no fim do <head> e de novo no fim do <body>. Especificidade alta de propósito (html body …). */
html body{font-family:var(--ki-font)!important;-webkit-font-smoothing:antialiased}
/* fundo de app só em páginas originalmente claras (legacy.js marca html.ki-skin-light); páginas escuras ficam como são */
html.ki-skin-light body{background:var(--ki-bg-app)!important;color:var(--ki-ink)}
html.ki-skin-light body h1,html.ki-skin-light body h2,html.ki-skin-light body h3{font-family:var(--ki-font-display)!important;letter-spacing:-.025em}
html.ki-skin-light body h1{letter-spacing:-.04em}

/* ---------- cabeçalho legado (.kigh) → barra de vidro da nova identidade ---------- */
html body header.kigh{background:var(--ki-glass)!important;-webkit-backdrop-filter:var(--ki-glass-filter);backdrop-filter:var(--ki-glass-filter);border-bottom:1px solid var(--ki-line)!important;box-shadow:none!important}
html body .kigh [stroke^="url("]{stroke:currentColor!important}
html body .kigh [fill^="url("]{fill:currentColor!important}
html body .kigh .kigh-orb-slot,html body .kigh .ki-lang-switcher{display:none!important}           /* bola do Ki e bandeira saem da barra (HANDOFF 4.1) */
html body .kigh .kigh-logo img{display:block!important;height:38px!important;width:auto!important}
html body .kigh .kigh-logo::after{content:none!important}
html body .kigh .kigh-btn-status,html body .kigh .kigh-grid-btn,html body .kigh .kigh-fav,html body .kigh .kigh-bell{background:var(--ki-fill)!important;color:var(--ki-ink)!important;border:0!important;border-radius:var(--ki-r-pill)!important;box-shadow:none!important}
html body .kigh .kigh-user{border-radius:50%!important;background:var(--ki-ink)!important;color:var(--ki-bg)!important;border:0!important}
html body .kigh .kigh-search-input{background:var(--ki-fill)!important;border-radius:var(--ki-r-pill)!important;border:0!important;color:var(--ki-ink)!important}
html body .kigh-plugins-dropdown,html body .kigh-dropdown{background:rgba(255,255,255,.985)!important;border-radius:24px!important;box-shadow:var(--ki-shadow-pop)!important;border:0!important}

/* ---------- elementos comuns ---------- */
html.ki-skin-light body a{color:var(--ki-ink)}
html.ki-skin-light body button:focus-visible,html.ki-skin-light body a:focus-visible,html.ki-skin-light body input:focus-visible,html.ki-skin-light body select:focus-visible,html.ki-skin-light body textarea:focus-visible{outline:2px solid var(--ki-accent);outline-offset:2px}
html.ki-skin-light body input[type=text],html.ki-skin-light body input[type=email],html.ki-skin-light body input[type=password],html.ki-skin-light body input[type=tel],html.ki-skin-light body input[type=url],html.ki-skin-light body input[type=number],html.ki-skin-light body input[type=search],html.ki-skin-light body select,html.ki-skin-light body textarea{font-family:var(--ki-font)!important;border:1px solid var(--ki-line)!important;border-radius:var(--ki-r-xs)!important;background:var(--ki-surface)!important;color:var(--ki-ink)!important}
html.ki-skin-light body input:focus,html.ki-skin-light body select:focus,html.ki-skin-light body textarea:focus{border-color:var(--ki-accent)!important;box-shadow:none!important}
html.ki-skin-light body .btn,html.ki-skin-light body [class*="btn-primary"],html.ki-skin-light body [class*="btn--primary"],html.ki-skin-light body button[type=submit]{font-family:var(--ki-font)!important;border-radius:var(--ki-r-pill)!important;background-image:none!important}
html.ki-skin-light body .btn-module--primary,html.ki-skin-light body [class*="btn-primary"],html.ki-skin-light body button[type=submit]{background-color:var(--ki-ink)!important;color:var(--ki-bg)!important;border-color:transparent!important;box-shadow:none!important}
html.ki-skin-light body .btn-module--secondary,html.ki-skin-light body [class*="btn-secondary"]{background-color:var(--ki-fill)!important;color:var(--ki-ink)!important;border-color:transparent!important;border-radius:var(--ki-r-pill)!important}
/* fim do carnaval: sem degradê de fundo e sem sombras coloridas nos cartões */
html.ki-skin-light body [class*="card"],html.ki-skin-light body [class*="box"],html.ki-skin-light body [class*="panel"]{border-radius:var(--ki-r-l)}
html.ki-skin-light body .module-card,html.ki-skin-light body .card,html.ki-skin-light body .pu-card{box-shadow:none!important;border:0!important;background:var(--ki-surface)!important}
html.ki-skin-light body .hero-kicker,html.ki-skin-light body [class*="kicker"]{background:var(--ki-accent-soft)!important;color:var(--ki-ink)!important}


/* ---------- ordem da barra: logo à esquerda, ações à direita ---------- */
@media(min-width:768px){
  html body header.kigh .kigh-inner{display:flex!important;align-items:center;gap:14px;max-width:var(--ki-container)!important;margin:0 auto;padding:8px var(--ki-pad-page)!important}
  html body header.kigh .kigh-mid{order:-1;position:static!important;transform:none!important;width:auto!important;flex:none}
  html body header.kigh .kigh-left{order:1;margin-left:auto;display:flex;align-items:center;gap:8px}
  html body header.kigh .kigh-right{order:2;display:flex;align-items:center;gap:8px}
}
html body .kigh .kigh-search-icon-btn{width:40px!important;height:40px!important;border:0!important;border-radius:50%!important;box-shadow:none!important;animation:none!important;
  background:var(--ki-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center/18px no-repeat!important}
html body .kigh .kigh-search-icon-btn>*{display:none!important}
html body .kp{display:none!important}                                  /* bola flutuante do Porteiro sai (HANDOFF 4.1) */
html.ki-skin-light body h1,html.ki-skin-light body h2{font-weight:700!important}
html body .kigh .kigh-logo{display:inline-flex!important;align-items:center;height:40px}

/* ---------- ajustes da rodada 2 (plugins/CRM) ---------- */
html body .kigh .kigh-mid{display:flex!important;align-items:center;height:40px;margin:0!important;padding:0!important}
html body .kigh .kigh-logo{margin:0!important;padding:0!important;line-height:1!important}
html.ki-skin-light body [class*="title"]:not(title),html.ki-skin-light body [class*="titulo"],html.ki-skin-light body [class*="heading"]{font-family:var(--ki-font-display)!important;font-weight:700!important;letter-spacing:-.02em}
html.ki-skin-light body [class*="-label"],html.ki-skin-light body label{font-family:var(--ki-font)!important}

/* ---------- dock legado do celular (.kif2) → cápsula de vidro monocromática ---------- */
@media(max-width:767px){
  html body{padding-bottom:110px!important}
  html body #ki-mobile-footer.kif2{background:var(--ki-glass)!important;-webkit-backdrop-filter:var(--ki-glass-filter);backdrop-filter:var(--ki-glass-filter);border:0!important;border-radius:32px!important;box-shadow:0 10px 30px rgba(0,0,0,.12)!important;height:64px;padding:0 10px!important}
  html body .kif2 [stroke^="url("]{stroke:currentColor!important}
  html body .kif2 [fill^="url("]{fill:currentColor!important}
  html body .kif2 .ki-mob-footer-btn{border:0!important;background:none!important;color:var(--ki-ink-2)!important;width:var(--ki-touch)!important;height:var(--ki-touch)!important;border-radius:50%!important}
  html body .kif2 .ki-mob-footer-btn--status{color:var(--ki-ink-2)!important}
  html body .kif2 .ki-mob-back{width:52px!important;height:52px!important;margin:-6px 0 0 -26px!important;border-radius:50%!important;border:0!important;box-shadow:none!important;animation:none!important;
    background:var(--ki-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center/24px no-repeat!important}
  html body .kif2 .ki-mob-back img{display:none!important}
  html body .kigh .kigh-orb-m,html body .kigh .kigh-orb-p{display:none!important}
}
html body .kigh .kigh-logo{top:0!important;bottom:auto!important;transform:none!important}
/* páginas originalmente escuras (pagar/pix/sucesso): botão branco vira botão escuro sobre o fundo claro */
html.ki-skin-light body .btn-pay,html.ki-skin-light body [class*="btn-pay"]{background:var(--ki-ink)!important;color:var(--ki-bg)!important;box-shadow:none!important;border-radius:var(--ki-r-pill)!important;text-align:center}

/* ---------- barra lateral do editor (inc/views/plugins_sidebar.php): lista agrupada, acento único ---------- */
html body .kpsb{gap:0;margin:12px 0 4px}
html body .kpsb-propagar{background:var(--ki-accent)!important;color:var(--ki-on-accent)!important;border-radius:var(--ki-r-pill)!important;box-shadow:none!important;min-height:var(--ki-touch);font:600 15px var(--ki-font)!important;margin-bottom:16px!important}
html body .kpsb-propagar:hover{background:#2E4BE0!important}
html body .kpsb-title{color:var(--ki-ink-2)!important;font:600 12px var(--ki-font)!important;letter-spacing:.06em;padding:0 8px!important;margin:0 0 8px!important}
html body .kpsb:not(.kpsb--m) .kpsb-item{background:var(--ki-surface)!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--ki-ink)!important;font:500 15px var(--ki-font)!important;min-height:var(--ki-touch);padding:0 16px!important;margin:0!important;gap:12px}
html body .kpsb:not(.kpsb--m) .kpsb-item+.kpsb-item{border-top:1px solid var(--ki-line-soft)!important}
html body .kpsb:not(.kpsb--m) a.kpsb-item:first-of-type{border-radius:var(--ki-r-m) var(--ki-r-m) 0 0!important}
html body .kpsb:not(.kpsb--m) a.kpsb-item:last-of-type{border-radius:0 0 var(--ki-r-m) var(--ki-r-m)!important}
html body .kpsb:not(.kpsb--m) a.kpsb-item:only-of-type{border-radius:var(--ki-r-m)!important}
html body .kpsb-item:hover{background:var(--ki-fill)!important;color:var(--ki-ink)!important}
html body .kpsb-item--public{color:var(--ki-ink-2)!important}
html body .kpsb-icon{color:var(--ki-ink-2)!important}
html body .kpsb-name{font-weight:500}
html body .kpsb-count{background:var(--ki-accent-soft)!important;color:var(--ki-ink)!important;font-weight:600;padding:2px 8px!important}
html body .kpsb-arrow,html body .kpsb-item:hover .kpsb-arrow{color:var(--ki-chevron)!important}
html body .kpsb.kpsb--m .kpsb-item{background:var(--ki-surface)!important;border:0!important;border-radius:var(--ki-r-m)!important;box-shadow:none!important;color:var(--ki-ink)!important}
html body .kpsb-relevancia{background:var(--ki-surface)!important;border:0!important;border-radius:var(--ki-r-m)!important;box-shadow:none!important;margin-top:16px!important;padding:14px 16px!important}
html body .kpsb-rel-title{color:var(--ki-ink)!important;font-weight:600!important}
html body .kpsb-rel-sub{color:var(--ki-ink-2)!important;opacity:1!important}
html body .kpsb-rel-pct{font-family:var(--ki-font-display)!important;font-weight:700!important;letter-spacing:-.03em}
html body .kpsb-relevancia:hover{transform:none!important;background:var(--ki-fill)!important}
/* editor: seções (acordeões) sem borda nem sombra, como cartões da nova identidade */
html.ki-skin-light body .ki-section{border:0!important;box-shadow:none!important;border-radius:var(--ki-r-m)!important;background:var(--ki-surface)!important}
html.ki-skin-light body .ki-section__toggle{font-family:var(--ki-font)!important}

/* ---------- editor: Área GEO / SEO / Cartão de Visita (inc/views/link_script.php) ---------- */
html body .ki-area-title{font-family:var(--ki-font-display)!important;font-weight:700!important;letter-spacing:-.02em;color:var(--ki-ink)!important}
html body .ki-area-subtitle{color:var(--ki-ink-2)!important;font-weight:400!important}
html body .ki-linkrow{background:var(--ki-fill)!important;border:0!important;border-radius:var(--ki-r-m)!important;box-shadow:none!important}
html body .ki-linkrow__lbl{color:var(--ki-ink-2)!important;font:600 11px var(--ki-font)!important;letter-spacing:.06em}
html body .ki-linkrow__input{background:var(--ki-surface)!important;color:var(--ki-ink)!important;border:0!important;border-radius:var(--ki-r-pill)!important;font:15px var(--ki-font)!important;min-height:var(--ki-touch)}
html body .ki-linkrow__btn,html body .ki-btn--pink,html body .ki-btn--green{background:var(--ki-accent)!important;background-image:none!important;color:var(--ki-on-accent)!important;border:0!important;border-radius:var(--ki-r-pill)!important;box-shadow:none!important;font:600 14px var(--ki-font)!important;min-height:var(--ki-touch)}
html body .ki-linkrow__btn[style*="#111"]{background:var(--ki-ink)!important;color:var(--ki-bg)!important}
html body .ki-acc__sum{background:var(--ki-fill)!important;background-image:none!important;color:var(--ki-ink)!important;border:0!important;border-radius:var(--ki-r-m)!important;box-shadow:none!important;font:600 15px var(--ki-font)!important;min-height:var(--ki-touch)}
html body .ki-acc__chev{color:var(--ki-ink-2)!important}
html body .ki-acc__hint{color:var(--ki-ink-2)!important}
html body .ki-code{background:var(--ki-fill)!important;color:var(--ki-ink)!important;border:0!important;border-radius:var(--ki-r-m)!important;font:12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace!important}
html body .ki-copy-btn{background:var(--ki-ink)!important;background-image:none!important;color:var(--ki-bg)!important;border:0!important;border-radius:var(--ki-r-pill)!important;box-shadow:none!important;font:600 14px var(--ki-font)!important;min-height:var(--ki-touch)}
/* preview do cartão (Cartão Ki inline no lugar do iframe do card legado) */
.ct-embedwrap{display:flex;justify-content:center;margin:16px 0 20px}.ct-embedwrap .ct-card{width:100%;max-width:340px;margin:0}

/* ---------- modais do editor (.ki-modal: Propagar nas IAs, avisos, Pix…): folha clara, ações em pílula, acento único ---------- */
html body .ki-modal{background:rgba(0,0,0,.32)!important;-webkit-backdrop-filter:blur(4px)!important;backdrop-filter:blur(4px)!important}
html body .ki-modal-content{background:var(--ki-surface)!important;color:var(--ki-ink)!important;border-radius:var(--ki-r-xl)!important;box-shadow:var(--ki-shadow-pop)!important;padding:24px!important;font-family:var(--ki-font)!important}
html body .ki-modal .modal-title{font:700 22px var(--ki-font-display)!important;letter-spacing:-.02em;color:var(--ki-ink)!important;margin:0 0 10px!important}
html body .ki-modal .modal-text{font:400 15px/1.5 var(--ki-font)!important;color:var(--ki-ink-2)!important;margin:0 0 18px!important}
html body .ki-modal .modal-text b{color:var(--ki-ink);font-weight:600}
html body .ki-modal .modal-btn{background:var(--ki-ink)!important;color:var(--ki-bg)!important;border:0!important;border-radius:var(--ki-r-pill)!important;min-height:var(--ki-touch);padding:0 20px!important;font:600 15px var(--ki-font)!important;box-shadow:none!important}
html body #propagateModal .prop-actions{gap:10px!important}
html body #propagateModal #propagateNowBtn{background:var(--ki-accent)!important;color:var(--ki-on-accent)!important}                 /* Publicar = ação primária */
html body #propagateModal .prop-actions .modal-btn:not(#propagateNowBtn){background:var(--ki-fill)!important;color:var(--ki-ink)!important}  /* Revisar = secundária */
html body #propagateModal .prop-cancel{background:transparent!important;color:var(--ki-ink-2)!important;margin-top:8px!important}      /* Cancelar = texto */
html body #propagateModal .prop-cancel:hover{background:var(--ki-fill)!important}

/* editor: sanfona com a MESMA tipografia do menu de plugins (fonte do sistema, peso 500, 15px, tinta) */
html body .ki-section__toggle,html body .ki-section__toggle *{font-family:var(--ki-font)!important}
html body .ki-section__toggle{font-weight:500!important;font-size:15px!important;color:var(--ki-ink)!important;background:var(--ki-surface)!important}
html body .ki-section__toggle>span:first-child,html body .ki-section.is-open .ki-section__toggle>span:first-child{color:var(--ki-ink)!important;font-weight:500!important;font-size:15px!important}
html body .ki-section__toggle:hover{background:var(--ki-fill)!important}
html body .ki-section.is-open .ki-section__toggle{color:var(--ki-ink)!important}
html body .ki-section__chev{color:var(--ki-chevron)!important;font-weight:400}
html body .ki-section.is-open .ki-section__chev{background:var(--ki-accent-soft)!important;color:var(--ki-ink)!important}
html body .ki-mobile-title{font:600 20px var(--ki-font-display)!important;color:var(--ki-ink)!important}
html body .kpsb:not(.kpsb--m) .kpsb-name{font:500 15px var(--ki-font)!important;color:inherit}

/* editor: botão Propagar do rodapé e convites pendentes (Ki Conexões) */
html body .btn-update{background:var(--ki-accent)!important;background-image:none!important;color:var(--ki-on-accent)!important;border:0!important;border-radius:var(--ki-r-pill)!important;box-shadow:none!important;min-height:var(--ki-touch);font:600 15px var(--ki-font)!important;letter-spacing:0!important;text-transform:none!important}
html body .btn-update:hover{background:#2E4BE0!important;transform:none!important}
html body [style*="background:#fffbeb"]{background:var(--ki-fill)!important;border:0!important;border-radius:var(--ki-r-m)!important}
html body [style*="color:#ef4444"][title="Cancelar convite"]{color:var(--ki-ink-2)!important}
/* Cartão Ki dentro do editor: a regra genérica de [class*="box"] não pode arredondar a caixa branca do QR; texto alinhado à esquerda */
html body .ct-qr__box{border-radius:6px!important}
html body .ct-card,html body .ct-card *{text-align:left}
html body .ct-btn{text-align:center}

/* ---------- plugin Conteúdo IA: gerador em cartão claro (sem degradê roxo), pills e botão no acento ---------- */
html body .gera-box{background:var(--ki-surface)!important;background-image:none!important;color:var(--ki-ink)!important;border-radius:var(--ki-r-xl)!important;box-shadow:none!important;padding:24px!important}
html body .gera-box h2{font:700 22px var(--ki-font-display)!important;letter-spacing:-.02em;color:var(--ki-ink)!important;margin-bottom:6px!important}
html body .gera-box p{color:var(--ki-ink-2)!important;opacity:1!important;font-size:15px!important}
html body .gera-box p strong{color:var(--ki-ink);font-weight:600}
html body .gera-tipo-label,html body .gera-tema-label{color:var(--ki-ink-2)!important;opacity:1!important;font:600 12px var(--ki-font)!important;letter-spacing:.06em}
html body .tipo-pill{background:var(--ki-fill)!important;color:var(--ki-ink)!important;border:0!important;min-height:36px;display:inline-flex;align-items:center;padding:0 14px!important;font:500 14px var(--ki-font)!important}
html body .tipo-pill:hover{background:var(--ki-fill-strong)!important}
html body .tipo-pill.ativo{background:var(--ki-ink)!important;color:var(--ki-bg)!important}
html body .gera-textarea{background:var(--ki-fill)!important;color:var(--ki-ink)!important;border:0!important;border-radius:var(--ki-r-m)!important;font:15px/1.6 var(--ki-font)!important}
html body .gera-textarea::placeholder{color:var(--ki-ink-3)!important}
html body .gera-textarea:focus{background:var(--ki-surface)!important;outline:2px solid var(--ki-accent)!important}
html body .gera-hint,html body #temaCount,html body .gera-loader{color:var(--ki-ink-2)!important;opacity:1!important}
html body .gera-box [style*="color:#9ca3af"]{color:var(--ki-ink-2)!important}
html body .gera-btn{background:var(--ki-accent)!important;color:var(--ki-on-accent)!important;border-radius:var(--ki-r-pill)!important;min-height:var(--ki-touch);padding:0 24px!important;font:600 15px var(--ki-font)!important;box-shadow:none!important}
html body .gera-loader-bar{background:var(--ki-fill-strong)!important}html body .gera-loader-fill{background:var(--ki-accent)!important}
html body .perfil-ctx-icon{background:var(--ki-ink)!important;background-image:none!important;color:#fff}
html body .perfil-ctx-setor span{background:var(--ki-accent-soft)!important;color:var(--ki-ink)!important}
html body .perfil-ctx-nome{font-weight:600!important;color:var(--ki-ink)!important}
html body .perfil-ctx-icon{background:var(--ki-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h2M13 8h2M9 12h2M13 12h2M10 21v-4h4v4'/%3E%3C/svg%3E") center/20px no-repeat!important;font-size:0!important}

/* editor: sanfonas no mesmo tamanho dos botões de plugin + título separador + ícones de linha */
html body .ki-section__toggle,html body .ki-section__toggle>span:first-child,html body .ki-section.is-open .ki-section__toggle>span:first-child{font-size:13px!important}
html body .ki-section__toggle>span:first-child{display:inline-flex;align-items:center;gap:10px}
html body .ki-section__toggle svg.kis-ic,html body .ki-mobile-title svg.kis-ic{width:18px;height:18px;flex:none;color:var(--ki-ink-2);fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
html body .ki-mobile-title{display:flex;align-items:center;gap:10px}
html body .kis-h{font:600 12px var(--ki-font);letter-spacing:.06em;text-transform:uppercase;color:var(--ki-ink-2);padding:0 8px;margin:22px 0 10px}
/* editor mobile: margens laterais iguais às do card "Ki Conexões" (16px) em sanfonas e áreas GEO/SEO */
@media(max-width:767px){
  html body .ki-section__toggle{padding-left:16px!important;padding-right:16px!important}
  html body .ki-section__body{padding-left:0!important;padding-right:0!important}
  html body .ki-section__body .card{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding-left:16px!important;padding-right:16px!important;margin-left:0!important;margin-right:0!important}
  html body .ki-linkrow{padding:0!important;background:none!important}
  html body .ki-acc__body{padding-left:14px!important;padding-right:14px!important}
}
/* editor: Imagens — bloco Logo + bloco Fotos (reorganizado por editor.js) */
html body .kim{display:flex;flex-direction:column;gap:22px;padding:6px 16px 18px}
html body .kim-blk{display:flex;flex-direction:column;gap:12px}
html body .kim-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
html body .kim-h b{font:600 15px var(--ki-font);color:var(--ki-ink)}
html body .kim-cnt{font:500 11px var(--ki-font)!important;letter-spacing:.04em!important;color:var(--ki-ink-2)!important;margin:0!important}
html body .kim-logo{display:flex;align-items:center;gap:14px}
html body .kim-logo .main-logo-view{flex:none;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;width:auto!important}
html body .kim-logo .main-logo-view img,html body .kim-logo #main-preview{width:76px!important;height:76px!important;border-radius:20px!important;object-fit:cover;display:block;background:var(--ki-fill);border:1px solid var(--ki-line)!important;box-shadow:none!important;margin:0!important}
html body .kim-meta{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
html body .kim-slug{margin:0!important;font:600 15px var(--ki-font)!important;color:var(--ki-ink)!important}
html body .kim-sub{font:400 12px/1.4 var(--ki-font);color:var(--ki-ink-2)}
html body .kim-btn{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-height:38px!important;padding:0 18px!important;border-radius:999px!important;border:0!important;font:600 13px var(--ki-font)!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer;box-shadow:none!important}
html body .kim-btn--pri{background:var(--ki-accent)!important;color:#fff!important;align-self:flex-start}
html body .kim-btn--sec{background:var(--ki-fill)!important;color:var(--ki-ink)!important}
html body .kim .gallery-area,html body .kim .gallery-preview{margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body .kim .gallery-preview{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;max-height:none!important;overflow:visible!important}
html body .kim .thumbWrap{position:relative;width:auto!important;height:auto!important;aspect-ratio:1/1;border-radius:16px!important;overflow:hidden;margin:0!important;border:0!important;box-shadow:none!important;background:var(--ki-fill)}
html body .kim .thumbWrap>img{width:100%!important;height:100%!important;object-fit:cover;display:block;border-radius:0!important}
html body .kim .thumbWrap.is-destaque{box-shadow:0 0 0 2px var(--ki-accent)!important}
html body .kim .thumbOverlay{position:absolute!important;inset:0!important;display:block!important;background:none!important;opacity:1!important;pointer-events:none}
html body .kim .thumbBtn{pointer-events:auto;position:absolute!important;top:6px;width:26px!important;height:26px!important;min-width:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(0,0,0,.55)!important;color:#fff!important;font:600 15px/26px var(--ki-font)!important;text-align:center;cursor:pointer;box-shadow:none!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html body .kim .thumbBtn--star{left:6px!important;right:auto!important}
html body .kim .thumbBtn--del{right:6px!important;left:auto!important}
html body .kim .thumbLikes{position:absolute;left:6px;bottom:6px;font:600 11px var(--ki-font);color:#fff;background:rgba(0,0,0,.55);border-radius:99px;padding:2px 8px}
@media(min-width:768px){html body .kim .gallery-preview{grid-template-columns:repeat(5,1fr)!important}}
html body .kim .thumbBtn--star{font-size:0!important}
html body .kim .thumbBtn--star::before{content:"";display:block;width:14px;height:14px;margin:6px auto;background:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/%3E%3C/svg%3E") center/contain no-repeat}
html body .kim .thumbWrap.is-destaque .thumbBtn--star{background:var(--ki-accent)!important}
html body .kim .thumbWrap.is-destaque .thumbBtn--star::before{background:#fff;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/%3E%3C/svg%3E")}
/* modal de recorte de imagem (editor) */
html body #cropModal .ki-modal-content{border-radius:28px!important;padding:22px 18px 16px!important;max-width:min(440px,calc(100vw - 24px))!important}
html body #cropModal .modal-title{font:700 20px var(--ki-font)!important;margin:0 0 4px!important}
html body #cropModal .modal-text{font:400 13px var(--ki-font)!important;color:var(--ki-ink-2)!important;text-align:center;margin:0 0 12px!important}
html body #cropModal .ki-modal-content>div:first-of-type{border:0!important;border-radius:18px!important;background:var(--ki-fill)}
html body #cropModal .ki-modal-content>div:nth-of-type(2){display:flex!important;justify-content:center;gap:2px!important;margin:14px auto 0!important;padding:3px;width:max-content;border-radius:999px;background:var(--ki-fill)}
html body #cropModal .ki-modal-content>div:nth-of-type(2) .modal-btn{width:auto!important;min-width:64px;min-height:34px!important;padding:0 16px!important;border-radius:999px!important;border:0!important;background:transparent!important;color:var(--ki-ink-2)!important;font:600 13px var(--ki-font)!important;box-shadow:none!important}
html body #cropModal .ki-modal-content>div:nth-of-type(2) .modal-btn.is-on{background:#fff!important;color:var(--ki-ink)!important;box-shadow:0 1px 4px rgba(0,0,0,.14)!important}
html body #cropModal .ki-modal-content>div:nth-of-type(3){display:flex!important;flex-direction:column;gap:8px!important;margin-top:16px!important}
html body #cropModal .modal-btn{width:100%!important;min-height:46px!important;border-radius:999px!important;border:0!important;font:600 15px var(--ki-font)!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important;white-space:normal}
html body #cropModal .ki-modal-content>div:nth-of-type(3) .modal-btn:first-child{background:var(--ki-accent)!important;color:#fff!important}
html body #cropModal .ki-modal-content>div:nth-of-type(3) .modal-btn:last-child{background:var(--ki-fill)!important;color:var(--ki-ink)!important}
html body #cropModal .ki-modal-content>button.modal-btn{background:transparent!important;color:var(--ki-ink-2)!important;min-height:40px!important;margin-top:4px!important;font-weight:500!important}

/* menu de plugins em grade (reconstruído por editor.js) — mesmo visual do popover do perfil novo */
html body .kis-menu{padding:10px!important;border-radius:24px!important;background:rgba(255,255,255,.985)!important;border:0!important;box-shadow:0 12px 40px rgba(0,0,0,.18)!important;min-width:300px!important;width:300px;max-width:calc(100vw - 24px);color:var(--ki-ink)}
html body .kis-menu .kis-pop__h{display:block;padding:6px 10px 8px;font:600 13px var(--ki-font);color:var(--ki-ink-2)}
html body .kis-menu .kis-apps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
html body .kis-menu .kis-apps a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 2px;border-radius:var(--ki-r-m);text-decoration:none;font:500 12px var(--ki-font);color:var(--ki-ink)!important;text-align:center;background:none}
html body .kis-menu .kis-apps a:hover{background:var(--ki-fill)}
html body .kis-menu .kis-apps a span{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;color:#fff}
html body .kis-menu .kis-all{display:flex;justify-content:space-between;align-items:center;min-height:44px;margin-top:6px;padding:0 10px;border-top:1px solid var(--ki-line);color:var(--ki-ink)!important;text-decoration:none;font:600 14px var(--ki-font)}

/* menu da conta (reconstruído por editor.js) */
html body .kis-acc{padding:10px!important;border-radius:24px!important;background:rgba(255,255,255,.985)!important;border:0!important;box-shadow:0 12px 40px rgba(0,0,0,.18)!important;min-width:260px!important;color:var(--ki-ink)}
html body .kis-acc .kis-who{display:flex;align-items:center;gap:12px;padding:6px 8px 10px}
html body .kis-acc .kis-av{width:40px;height:40px;border-radius:50%;background:var(--ki-ink);color:#fff;display:grid;place-items:center;font:600 16px var(--ki-font);flex:none}
html body .kis-acc .kis-who strong{display:block;font:600 15px var(--ki-font);color:var(--ki-ink)}
html body .kis-acc .kis-who a{font:400 12px var(--ki-font);color:var(--ki-ink-2);text-decoration:none}
html body .kis-acc hr{border:0;border-top:1px solid var(--ki-line);margin:4px 0}
html body .kis-acc>a{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 10px;border-radius:var(--ki-r-m);text-decoration:none;font:500 14px var(--ki-font);color:var(--ki-ink)!important;background:none!important}
html body .kis-acc>a:hover{background:var(--ki-fill)!important}
html body .kis-acc>a i{font-style:normal;color:var(--ki-chevron)}
html body .kis-acc>a.danger{color:#D70015!important}
/* notificações: gaveta lateral vira cartão flutuante */
html body #kiNotifPanel{top:64px!important;right:16px!important;height:auto!important;max-height:70vh;width:340px!important;border-radius:24px!important;box-shadow:0 12px 40px rgba(0,0,0,.18)!important;overflow:hidden;font-family:var(--ki-font)}
html body #kiNotifPanel>div:first-child{border-bottom:0!important;padding:16px 18px 6px!important}
html body #kiNotifPanel>div:first-child strong{font:600 13px var(--ki-font)!important;color:var(--ki-ink-2)}
html body #kiNotifPanel>div:first-child button{width:28px;height:28px;border-radius:50%!important;background:var(--ki-fill)!important;font-size:16px!important;display:grid;place-items:center}
html body #kiNotifLista{padding:6px 10px 12px!important}
html body #kiNotifLista>div[id^=kiNotif-]{border:0!important;border-radius:14px;background:var(--ki-fill)!important;margin-bottom:6px}
html body .kis-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 12px;text-align:center;color:var(--ki-ink-3,#8E8E93)}
html body .kis-empty strong{font:600 15px var(--ki-font);color:var(--ki-ink)}html body .kis-empty span{font:400 13px var(--ki-font)}
@media(max-width:640px){html body #kiNotifPanel{top:56px!important;right:8px!important;left:8px;width:auto!important}}

/* ===== perfil_usuario: "Suas páginas e empresas" ===== */
html body .pu-wrap{max-width:calc(1360px + 36px)!important}
html body .pu-grid.kis-2col{grid-template-columns:300px minmax(0,1fr)}
html body .pu-grid.kis-2col>.pu-sidebar{display:none}
@media(max-width:980px){html body .pu-grid.kis-2col{grid-template-columns:1fr}}
/* botões: primário = azul com texto branco; secundário = branco com texto azul; Editar = grafite; filial = contorno azul */
html body .pu-new-btn{background:var(--ki-accent)!important;color:#fff!important;box-shadow:none!important;border-radius:var(--ki-r-pill)!important;font-weight:600!important}
html body .pu-new-btn:hover{background:#2E4BE0!important}
html body .pu-page-edit{background:var(--ki-ink)!important;color:#fff!important;border-radius:var(--ki-r-pill)!important;font-weight:600!important}
html body .pu-page-open{background:#fff!important;color:var(--ki-ink)!important;border:1px solid var(--ki-line)!important;border-radius:var(--ki-r-pill)!important;font-weight:600!important}
html body .pu-access-btn,html body .pu-life-btn{background:#fff!important;color:var(--ki-ink-2)!important;border:1px solid var(--ki-line)!important;border-radius:var(--ki-r-pill)!important}
html body .pu-filial-btn{background:var(--ki-accent-soft,#EEF1FF)!important;color:var(--ki-ink)!important;border:1px solid transparent!important;border-radius:var(--ki-r-pill)!important;font-weight:600!important}
html body .pu-life-menu button,html body .pu-life-menu a{background:#fff!important;color:var(--ki-ink)!important}
html body .pu-life-menu .pu-life-danger,html body .pu-life-menu button.pu-life-danger{color:#D70015!important}
html body .pu-life-menu button:hover{background:var(--ki-fill)!important}
html body .pu-page-card{border-radius:var(--ki-r-l,22px)!important;border:0!important;box-shadow:none!important;background:var(--ki-surface)!important}
/* colunas 1/2/3 no PC (o botão é montado por editor.js) */
@media(min-width:641px){
  html body .pu-pages-grid{grid-template-columns:repeat(var(--pu-cols,2),minmax(0,1fr))!important}
  html body .pu-cols-toggle{display:flex!important;align-items:center;gap:6px;font-size:12px;color:var(--ki-ink-2);flex:none}
  html body .pu-cols-toggle button{display:flex;align-items:center;justify-content:center;gap:3px;width:38px;height:30px;padding:0;border:1.5px solid var(--ki-line);background:#fff;color:var(--ki-ink-2);border-radius:var(--ki-r-s,10px);cursor:pointer}
  html body .pu-cols-toggle button.on{border-color:var(--ki-accent);background:var(--ki-accent-soft,#EEF1FF);color:var(--ki-ink)}
  html body .pu-bar{display:block;width:9px;height:4px;border-radius:2px;background:currentColor}html body .pu-bar--l{width:18px}
  html body .pu-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
}
@media(max-width:640px){
  html body .pu-cols-toggle button[data-cols="3"]{display:none}
  /* sem caixa branca externa: só os cartões, como em Imóveis; botão novo com respiro embaixo */
  html body .pu-main,html body .pu-card.pu-main{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
  html body .pu-new-btn--m{background:var(--ki-accent)!important;color:#fff!important;box-shadow:none!important;margin:0 0 16px!important;min-height:48px}
  html body .pu-page-card{padding:12px!important}
}
@media(min-width:641px){
  html body .pu-page-actions{display:flex!important;flex-wrap:wrap;gap:8px;align-items:stretch;margin-top:auto}
  html body .pu-page-actions>form,html body .pu-page-actions>.pu-page-open{flex:1 1 calc(50% - 4px)!important;min-width:0;margin:0}
  html body .pu-page-actions .pu-page-edit,html body .pu-page-actions>.pu-page-open{width:100%;min-height:44px;padding:0 14px!important;display:inline-flex;align-items:center;justify-content:center;font-size:14px!important;box-sizing:border-box}
  html body .pu-page-actions>.pu-access-btn,html body .pu-page-actions>.pu-filial-btn,html body .pu-page-actions>.pu-lifecycle{flex:1 1 0!important;min-width:92px;min-height:44px}
  html body .pu-page-actions .pu-life-btn,html body .pu-page-actions>.pu-access-btn,html body .pu-page-actions>.pu-filial-btn{width:100%;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px}
}

/* ===== plugin/imoveis: lista de imóveis do corretor ===== */
html body .imv-b{border-radius:var(--ki-r-pill)!important;font-weight:600!important;background:#fff!important;color:var(--ki-ink)!important;border:1px solid var(--ki-line)!important}
html body .imv-b--k{background:var(--ki-ink)!important;color:#fff!important;border-color:transparent!important}
html body .imv-btns .btn-novo,html body .btn-novo:not(.btn-limite){background:var(--ki-accent)!important;color:#fff!important;border-radius:var(--ki-r-pill)!important;font-weight:600!important}
html body .kiv button.on{border-color:var(--ki-accent)!important;background:var(--ki-accent-soft,#EEF1FF)!important;color:var(--ki-ink)!important}
html body .imovel-card{border:0!important;box-shadow:none!important;border-radius:var(--ki-r-l,22px)!important;background:var(--ki-surface)!important}
html body .imovel-actions .btn-edit{background:var(--ki-fill)!important;color:var(--ki-ink)!important;border:0!important;border-radius:var(--ki-r-pill)!important;font-weight:600;min-height:36px}
html body .imovel-actions a.btn-edit{color:var(--ki-ink)!important}
html body .imovel-actions .btn-del{background:#FFF1F0!important;color:#D70015!important;border:0!important;border-radius:var(--ki-r-pill)!important;font-weight:600;min-height:36px}
html body .imovel-actions .btn-edit,html body .imovel-actions .btn-del{display:inline-flex!important;align-items:center;justify-content:center;text-decoration:none}
html body .status-dot{font-size:11px!important;letter-spacing:.04em}
/* 2 e 3 colunas: foto em cima (com o status sobre ela), textos embaixo, botões no fim */
html body .imv-grid.cols-2 .imovel-top,html body .imv-grid.cols-3 .imovel-top{flex-direction:column;gap:10px;position:relative}
html body .imv-grid.cols-2 .imovel-thumb,html body .imv-grid.cols-3 .imovel-thumb{width:100%!important;height:auto!important;aspect-ratio:4/3;border-radius:16px!important}
html body .imv-grid.cols-2 .imovel-info,html body .imv-grid.cols-3 .imovel-info{width:100%;flex:none}
html body .imv-grid.cols-2 .status-dot,html body .imv-grid.cols-3 .status-dot{position:absolute;top:10px;left:10px;margin:0!important;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 1px 4px rgba(0,0,0,.12)}
html body .imv-grid.cols-2 .imovel-titulo,html body .imv-grid.cols-3 .imovel-titulo{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px}
html body .imv-grid.cols-2 .imovel-meta,html body .imv-grid.cols-3 .imovel-meta{white-space:normal}
html body .imv-grid.cols-2 .imovel-card,html body .imv-grid.cols-3 .imovel-card{padding:10px!important}
html body .imv-grid.cols-2 .imovel-actions,html body .imv-grid.cols-3 .imovel-actions{margin-top:auto}
/* 1 coluna: foto um pouco maior e texto sem cortar à força */
html body .imv-grid.cols-1 .imovel-thumb{width:96px!important;height:76px!important;border-radius:14px!important}
html body .imv-grid{align-items:stretch!important}
html body #btnNovoImovel{background:var(--ki-accent)!important;color:#fff!important}

/* perfil_usuario: divisória suave entre os cartões, botões Acesso/Gerenciar e menu */
html body .pu-page-card{border:1px solid var(--ki-line)!important}
html body .pu-access-btn .pu-d,html body .pu-life-btn .pu-d{display:inline-flex;align-items:center;gap:6px;font:600 13px var(--ki-font);color:var(--ki-ink-2)}
html body .pu-access-btn .pu-d svg,html body .pu-life-btn .pu-d svg{width:16px;height:16px;flex:none}
html body .pu-life-menu{background:#fff!important;border:1px solid var(--ki-line)!important;border-radius:20px!important;box-shadow:0 12px 40px rgba(0,0,0,.16)!important;padding:8px!important;min-width:230px!important}
html body .pu-life-menu button,html body .pu-life-menu form button,html body .pu-life-menu button[type=submit]{background:transparent!important;color:var(--ki-ink)!important;border:0!important;box-shadow:none!important;border-radius:var(--ki-r-m,14px)!important;min-height:44px!important;padding:0 12px!important;font:500 14px var(--ki-font)!important;display:flex!important;align-items:center;gap:10px;text-align:left;width:100%}
html body .pu-life-menu button:hover{background:var(--ki-fill)!important}
html body .pu-life-menu button.pu-life-danger,html body .pu-life-menu form button.pu-life-danger{color:#D70015!important}
html body .pu-life-menu button svg{width:18px;height:18px;flex:none;color:var(--ki-ink-2)}
html body .pu-life-menu button.pu-life-danger svg{color:#D70015}

/* perfil_usuario: cartões das páginas separados sobre o fundo cinza (mesmo padrão da tela de Plugins) */
html body .pu-main,html body .pu-card.pu-main{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
html body .pu-main .pu-head{padding:0 4px;margin-bottom:16px}
html body .pu-pages-grid{gap:16px!important}
html body .pu-page-card{background:#fff!important;border:0!important;border-radius:var(--ki-r-xl,24px)!important;box-shadow:0 1px 2px rgba(0,0,0,.04),0 6px 20px rgba(0,0,0,.05)!important;padding:20px!important}
@media(max-width:640px){html body .pu-pages-grid{gap:10px!important}html body .pu-page-card{padding:12px!important;border-radius:20px!important}}

/* ===== SISTEMA ÚNICO DE BOTÕES (classificados por editor.js em data-kb) =====
   primary = azul · strong = grafite · secondary = branco com contorno · danger = vermelho suave. Todos em pílula, mesma altura e fonte. */
html body [data-kb][data-kb]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 18px;border-radius:999px!important;font:500 14px/1.1 var(--ki-font)!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;box-shadow:none!important;background-image:none!important;cursor:pointer;box-sizing:border-box;white-space:nowrap;transition:background .15s,opacity .15s}
html body [data-kb][data-kb] *{color:inherit!important;text-transform:none!important}
html body [data-kb][data-kb] svg{flex:none}
html body [data-kb=primary][data-kb]{background:var(--ki-accent)!important;color:#fff!important;border:0!important}
html body [data-kb=primary][data-kb]:hover{background:#2E4BE0!important}
html body [data-kb=strong][data-kb]{background:var(--ki-ink)!important;color:#fff!important;border:0!important}
html body [data-kb=strong][data-kb]:hover{background:#3A3A3C!important}
html body [data-kb=secondary][data-kb]{background:#fff!important;color:var(--ki-ink)!important;border:1px solid var(--ki-line)!important}
html body [data-kb=secondary][data-kb]:hover{background:var(--ki-fill)!important}
html body [data-kb=danger][data-kb]{background:#FFF1F0!important;color:#D70015!important;border:0!important}
html body [data-kb=danger][data-kb]:hover{background:#FFE3E0!important}
html body [data-kb][data-kb-i]{padding:0!important;width:40px;min-width:40px}
html body [data-kb][data-kb][disabled],html body [data-kb][data-kb].disabled{opacity:.5;cursor:default}


/* ===== FEED ===== */
html body .feed-layout{padding-top:6px!important;gap:20px}
html body .feed-wrap{padding-top:0}
/* composer vira modal: só um botão preto "Publicar" na página */
html body .feed-wrap .compose-box{display:none!important}
html body .feed-wrap .compose-box.kis-open{display:block!important;position:fixed!important;z-index:10050;left:50%;top:50%;transform:translate(-50%,-50%);width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border-radius:24px!important;padding:18px 20px 20px!important;margin:0!important;border:0!important;box-shadow:0 24px 80px rgba(0,0,0,.28)!important;background:#fff}
html body .kis-ov{position:fixed;inset:0;background:rgba(0,0,0,.4);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:10040}
html body .kis-ov[hidden]{display:none}
html body .kis-cm-h{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;font:500 16px var(--ki-font);color:var(--ki-ink)}
html body .kis-cm-h .kis-x{width:32px;height:32px;border-radius:50%;border:0;background:var(--ki-fill);color:var(--ki-ink-2);font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center}
html body .kis-pub{margin:0 0 12px}
html body .kis-pub__btn{min-height:44px;padding:0 28px;border:0;border-radius:999px;background:var(--ki-ink);color:#fff;font:500 15px var(--ki-font);cursor:pointer}
html body .kis-pub__btn:hover{background:#3A3A3C}
/* posts */
html body .post-card{border-radius:10px!important;border:0!important;box-shadow:none!important}
html body .post-nome{color:var(--ki-ink)!important;font-weight:500!important;font-size:14px!important}
html body .post-tempo{color:var(--ki-ink-2)!important}
html body .post-link-card{margin:0 0 12px!important;border:0!important;border-radius:0!important}
html body .post-link-img{height:auto!important;aspect-ratio:1/1;border-radius:0!important}
html body .post-carousel,html body .post-carousel-slide,html body .post-carousel-slide img{border-radius:0!important}
html body .ver-mais{color:var(--ki-ink)!important;font-weight:500!important;text-decoration:underline}
/* menu esquerdo do feed = mesmo desenho do menu da conta */
html body .kis-sbimg{width:88px;height:88px;border-radius:16px;background:#000;margin:0 0 12px}
html body .kis-fm{background:#fff;border-radius:24px;padding:8px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 6px 20px rgba(0,0,0,.05)}
html body .kis-fm>a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 12px;border-radius:14px;text-decoration:none;font:500 14px var(--ki-font);color:var(--ki-ink)!important}
html body .kis-fm>a:hover{background:var(--ki-fill)}
html body .kis-fm>a i{font-style:normal;color:var(--ki-chevron)}
html body .kis-fm>a small{margin-left:auto;margin-right:6px;font:400 12px var(--ki-font);color:var(--ki-ink-2)}
html body .kis-fm>a.danger{color:#D70015!important}
html body .kis-fm hr{border:0;border-top:1px solid var(--ki-line);margin:6px 4px}
/* status BI */
html body .brand{color:#fff!important}
html body .page-selector,html body .range-select{-webkit-appearance:none;appearance:none;padding-right:34px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231D1D1F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}
/* avatar de foto no menu da conta */
html body .kis-acc .kis-av img,html body .ks-av img,html body .ks-ib--me img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
html body .kis-acc .kis-av{overflow:hidden}

/* ===== REGRAS DE BOTÃO E COR (18/10) — vence o sistema único acima ===== */
html body [data-kb][data-kb]{font-weight:400!important;border-radius:10px!important}
html body [data-kb][data-kb] *{font-weight:400!important}
html body [data-kb=danger][data-kb]{background:#fff!important;color:var(--ki-ink)!important;border:1px solid var(--ki-line)!important}
html body [data-kb=danger][data-kb]:hover{background:var(--ki-fill)!important}
html body .kim-btn{border-radius:10px!important;font-weight:400!important}
html body .kim-btn--sec{background:#fff!important;border:1px solid var(--ki-line)!important}
html body .kis-noblue,html body .kis-noblue *{color:var(--ki-ink)!important}
/* galeria do editor: botões de imagem = ícone quadrado (sem pílula, sem texto "Excluir") */
html body .kim .thumbBtn{width:30px!important;height:30px!important;min-width:0!important;min-height:0!important;padding:0!important;border-radius:8px!important;font-size:0!important;line-height:0!important;display:block!important;top:6px!important}
html body .kim .thumbBtn *{display:none!important}
html body .kim .thumbBtn--star{background:var(--ki-ink)!important;color:#fff!important;left:6px!important}
html body .kim .thumbBtn--star::before{margin:8px auto!important;width:14px!important;height:14px!important}
html body .kim .thumbBtn--del{background:#fff!important;color:var(--ki-ink)!important;border:1px solid var(--ki-line)!important;right:6px!important}
html body .kim .thumbBtn--del::before{content:"";display:block;width:14px;height:14px;margin:7px auto;background:var(--ki-ink);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center/contain no-repeat}

/* ===== CRM: respiro interno em todos os boxes (18/10) ===== */
html body:has(.crm-top) :is(.lead,.p,.v){padding:18px 20px!important;gap:16px!important;align-items:center!important;border-radius:16px!important;border:1px solid var(--ki-line)!important;box-shadow:none!important}
html body:has(.crm-top) :is(.lead,.p,.v) .lead-nome,html body:has(.crm-top) .p-nome{font-weight:600!important;font-size:15px!important;line-height:1.3!important}
html body:has(.crm-top) .lead-sub{gap:4px!important;margin-top:4px!important;line-height:1.4!important}
html body:has(.crm-top) .lead-data{margin-top:8px!important}
html body:has(.crm-top) .list.cols-2 .lead,html body:has(.crm-top) .list.cols-3 .lead{flex-wrap:wrap}
html body:has(.crm-top) .list.cols-2 .lead-tags,html body:has(.crm-top) .list.cols-3 .lead-tags{flex-basis:100%;justify-content:flex-start}
html body:has(.crm-top) :is(.card,.m){border:1px solid var(--ki-line)!important;border-radius:16px!important;box-shadow:none!important}
html body:has(.crm-top) .card:not(:has(.card-thumb)):not(:has(.card-noimg)){padding:14px 16px!important}
html body:has(.crm-top) .card .card-body{padding:12px 14px 14px!important}
html body:has(.crm-top) .card .card-prop,html body:has(.crm-top) .card .card-edit{padding-left:14px!important;padding-right:14px!important}
html body:has(.crm-top) .m-head{padding:18px 20px 14px!important;gap:16px!important}
html body:has(.crm-top) :is(.empty,.col-empty){padding:32px 20px!important}
html body:has(.crm-top) .badge,html body:has(.crm-top) .pill{border-radius:8px!important;font-weight:400!important;padding:5px 10px!important}

/* Relevância IA: indicador (não botão) — vermelho ruim, laranja médio, verde bom; cores vêm do score (--rcor/--rbg) */
html body .kpsb-relevancia[data-aud-card]{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;background:var(--rbg)!important;border:0!important;border-left:5px solid var(--rcor)!important;border-radius:12px!important;padding:14px 18px!important;box-shadow:none!important;min-height:0!important;font-weight:400!important}
html body .kpsb-relevancia .kpsb-rel-left{display:flex;flex-direction:column;gap:2px;align-items:flex-start}
html body .kpsb-relevancia .kpsb-rel-title{color:var(--rcor)!important;font-size:12px!important;font-weight:400!important;letter-spacing:.06em;text-transform:uppercase!important}
html body .kpsb-relevancia .kpsb-rel-sub{color:var(--rcor)!important;font-size:15px!important;font-weight:600!important;opacity:1!important}
html body .kpsb-relevancia .kpsb-rel-pct{color:var(--rcor)!important;font-size:34px!important;font-weight:600!important;line-height:1}
html body .kpsb-relevancia[data-aud-card]:hover{background:var(--rbg)!important;filter:brightness(.98)}

/* separação visual entre as sanfonas de informações e o bloco Área GEO / Cartão / Conexões */
html body .kis-sep{display:flex;align-items:center;gap:12px;margin:32px 0 16px;color:var(--ki-ink-2);font:500 12px var(--ki-font);letter-spacing:.08em;text-transform:uppercase}
html body .kis-sep::before,html body .kis-sep::after{content:"";flex:1;height:1px;background:var(--ki-line)}
/* Relevância IA no mobile: ocupa a linha inteira */
html body .kpsb.kpsb--m .kpsb-relevancia[data-aud-card]{grid-column:1 / -1;width:100%!important;margin-top:4px!important}
/* editor: nome da galeria */
html body .kim-nome{display:flex;flex-direction:column;gap:6px;margin:4px 0 8px}
html body .kim-nome label{font:400 13px var(--ki-font);color:var(--ki-ink-2)}
html body .kim-nome select{height:40px;border-radius:10px;border:1px solid var(--ki-line);background:#fff;color:var(--ki-ink);padding:0 14px;font:400 14px var(--ki-font);max-width:280px}
html body .kim-msg{font:400 12px var(--ki-font);color:var(--ki-ink-2);min-height:16px}
