/* Réplicas das telas do CRM IDX para as páginas de módulo.
   Tudo escopado em .crm e copiado do front real (src/pages/apps/*): Inter,
   azul #3073F1, cartão rounded-xl com borda #e5e7eb e sombra quase invisível,
   etapas e status padrão do backend. Desenhado numa largura fixa (1120 px, ou
   760 px no celular) e escalado por crm.js, para o layout ser o do produto e
   não uma versão "responsiva" que ele não tem. */

.crm-wrap { position: relative; width: 100%; max-width: 1120px; margin: 0 auto; }
.crm {
  --p: #3073F1; --p10: rgba(48,115,241,.1); --p5: rgba(48,115,241,.05);
  --g50: #F9FAFB; --g100: #F3F4F6; --g200: #E5E7EB; --g300: #D1D5DB; --g400: #9CA3AF; --g500: #6B7280; --g600: #4B5563; --g700: #374151; --g800: #1F2937;
  --sl400: #94A3B8; --sl600: #475569; --sl700: #334155; --sl800: #1E293B;
  --ia: #7A2CBF; --sky: #0284C7;
  --card-sh: 0 1px 10px rgba(0,0,0,.04);
  position: absolute; left: 0; top: 0; width: 1120px; transform-origin: 0 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif; color: var(--g800);
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -24px rgba(20,12,51,.28), 0 0 0 1px rgba(20,12,51,.08);
  -webkit-font-smoothing: antialiased; text-align: left; letter-spacing: 0;
}
.crm.narrow { width: 760px; }
.crm * { box-sizing: border-box; }
.crm svg.c { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.crm b { font-weight: 600; }

/* janela do navegador */
.crm-bar { height: 36px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #F6F7F9; border-bottom: 1px solid var(--g200); }
.crm-bar .dots { display: flex; gap: 6px; }
.crm-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #E1E3E8; }
.crm-bar .url { flex: 1; max-width: 420px; margin: 0 auto; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--g200); font-size: 11px; color: var(--g500); display: flex; align-items: center; justify-content: center; }

/* casca: trilho de ícones (sidebar v2) + topbar transparente */
.crm-app { display: flex; background: #F5F5F5; position: relative; overflow: hidden; }
.crm-rail { width: 52px; flex-shrink: 0; background: #F2F4F7; border-right: 1px solid var(--g200); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.crm-rail .logo { width: 30px; height: 20px; margin-bottom: 10px; color: var(--p); }
.crm-rail span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #818998; position: relative; }
.crm-rail span.on { color: #1E85FF; background: rgba(30,133,255,.1); }
.crm-rail span.on::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #1E85FF; }
.crm-rail svg.c { width: 18px; height: 18px; }
.crm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crm-top { height: 56px; display: flex; align-items: center; gap: 10px; padding: 12px 20px 0; flex-shrink: 0; }
.crm-top .bk { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #8391A2; }
.crm-top h5 { margin: 0; font-size: 20px; font-weight: 600; color: #2c3542; letter-spacing: -.01em; }
.crm-top .r { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #8391A2; }
.crm-top .r > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.crm-top .me { width: 30px; height: 30px; border-radius: 50%; background: var(--p); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.crm-body { flex: 1; min-height: 0; padding: 14px 20px 20px; position: relative; }
.crm.narrow .crm-rail { display: none; }

/* peças comuns */
.crm .card { background: #fff; border: 1px solid var(--g200); border-radius: 12px; box-shadow: var(--card-sh); }
.crm .btn-o { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--g200); background: #fff; font-size: 13px; font-weight: 600; color: var(--g700); }
.crm .btn-p { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 12px; background: var(--p); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.crm .av { border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; color: #fff; background: var(--p); flex-shrink: 0; }
.crm .pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.crm .lbl { font-size: 8px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--g400); }

/* cursor, toast e entradas */
.crm-cur { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 30; pointer-events: none; opacity: 0; transition: transform 750ms cubic-bezier(.65,0,.35,1), opacity 250ms; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.crm-cur svg { width: 22px; height: 22px; }
.crm-cur.on { opacity: 1; }
.crm-cur::after { content: ""; position: absolute; left: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(48,115,241,.35); transform: scale(0); opacity: 0; }
.crm-cur.down::after { animation: crmTap 420ms ease-out; }
@keyframes crmTap { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.crm-toast { position: absolute; right: 18px; top: 64px; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--g200); box-shadow: 0 12px 30px -10px rgba(0,0,0,.2); font-size: 12.5px; color: var(--g700); transform: translateY(-8px); opacity: 0; transition: transform 350ms cubic-bezier(.23,1,.32,1), opacity 250ms; max-width: 360px; }
.crm-toast.on { transform: none; opacity: 1; }
.crm-toast .ti { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #DCFCE7; color: #16A34A; flex-shrink: 0; }
.crm-toast b { display: block; color: var(--g800); font-size: 12.5px; }
.crm .enter { animation: crmIn 520ms cubic-bezier(.23,1,.32,1) both; }
@keyframes crmIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.crm .pop { animation: crmPop 420ms cubic-bezier(.23,1,.32,1); }
@keyframes crmPop { 0% { transform: scale(.85); opacity: .3; } 60% { transform: scale(1.06); } 100% { transform: none; opacity: 1; } }
.crm .flash { animation: crmFlash 1.4s ease-out; }
@keyframes crmFlash { 0% { box-shadow: 0 0 0 3px rgba(48,115,241,.45), var(--card-sh); } 100% { box-shadow: 0 0 0 3px rgba(48,115,241,0), var(--card-sh); } }
.crm .fade-swap { animation: crmFade 380ms ease-out both; }
@keyframes crmFade { from { opacity: 0; filter: blur(3px); } }

/* ===================================================== FUNIL */
.fn-head { display: flex; gap: 12px; align-items: center; }
.fn-sel { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--g200); background: #fff; }
.fn-sel .ib { width: 24px; height: 24px; border-radius: 8px; background: var(--p10); color: var(--p); display: grid; place-items: center; }
.fn-sel .ib svg.c { width: 14px; height: 14px; }
.fn-sel .nm { font-size: 14px; font-weight: 500; color: var(--g800); }
.fn-sel .ativo { font-size: 9px; font-weight: 600; background: rgba(48,115,241,.3); color: #fff; border-radius: 6px; padding: 2px 5px; }
.fn-sel .star { color: #FACC15; width: 13px; height: 13px; }
.fn-sel .cnt { font-size: 10px; background: var(--g100); color: var(--g600); border-radius: 999px; padding: 2px 8px; }
.fn-sel .chev { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; background: var(--g200); display: grid; place-items: center; color: var(--g600); }
.fn-head .acts { margin-left: auto; display: flex; gap: 8px; }
.fn-head .acts .sq { width: 36px; padding: 0; justify-content: center; }
.fn-qf { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; }
.fn-qf .ic { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--g200); background: #fff; display: grid; place-items: center; color: var(--g500); }
.fn-qf .ic.on { border-color: var(--p); background: var(--p10); color: var(--p); }
.fn-qf .dv { width: 1px; height: 22px; background: var(--g200); margin: 0 4px; }
.fn-qf .st { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--g200); background: #fff; font-size: 12px; font-weight: 500; color: var(--g700); }
.fn-qf .st i { width: 8px; height: 8px; border-radius: 50%; }
.fn-qf .st em { font-style: normal; font-size: 10px; background: var(--g200); border-radius: 999px; padding: 1px 6px; color: var(--g600); }
.fn-board { display: flex; gap: 12px; align-items: flex-start; }
.fn-col { width: 248px; flex-shrink: 0; }
.fn-ch { padding: 10px 12px; border-radius: 12px 12px 0 0; border: 1px solid; border-bottom: 0; }
.fn-ch .t { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; padding: 4px 10px; border-radius: 8px; }
.fn-ch .m { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.fn-ch .m span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 8px; font-size: 10px; font-weight: 500; background: #fff; border: 1px solid var(--g200); color: var(--g600); }
.fn-ch .m svg.c { width: 11px; height: 11px; }
.fn-cb { border: 1px solid; border-top: 0; border-radius: 0 0 12px 12px; padding: 8px; min-height: 150px; display: flex; flex-direction: column; gap: 8px; }
.fn-new { text-align: center; font-size: 13px; font-weight: 500; color: var(--g500); padding: 6px 0 2px; }
.lc { background: #fff; border: 1px solid var(--g200); border-radius: 12px; box-shadow: var(--card-sh); padding: 11px 12px; position: relative; transition: box-shadow 250ms, transform 250ms; }
.lc.lift { transform: rotate(2deg) scale(1.03); box-shadow: 0 18px 36px -12px rgba(0,0,0,.28); z-index: 20; }
.lc .r1 { display: flex; align-items: center; gap: 6px; }
.lc .nm { font-size: 13.5px; font-weight: 500; color: var(--g800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.lc .tp { font-size: 10px; padding: 2px 7px; }
.lc .tp svg.c { width: 11px; height: 11px; }
.tp.q { background: #FAECE7; color: #993C1D; } .tp.m { background: #FAEEDA; color: #854F0B; } .tp.f { background: #E6F1FB; color: #185FA5; }
.lc .val { margin-top: 6px; font-size: 18px; font-weight: 500; color: var(--g800); letter-spacing: -.01em; }
.lc .val small { font-size: 11px; color: var(--g500); margin-right: 3px; font-weight: 400; }
.lc .pz { margin-top: 8px; border-radius: 8px; padding: 7px 9px; }
.lc .pz .pl { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; }
.lc .pz .pl svg.c { width: 11px; height: 11px; }
.lc .pz .dt { display: flex; gap: 14px; margin-top: 5px; }
.lc .pz .dt b { display: block; font-size: 11px; font-weight: 500; color: var(--g700); }
.pz.ok { background: #EAF3DE; } .pz.ok .pl { color: #3B6D11; }
.pz.at { background: #FAEEDA; } .pz.at .pl { color: #854F0B; }
.pz.cr { background: #FCEBEB; } .pz.cr .pl { color: #A32D2D; }
.lc .stp { margin-top: 8px; font-size: 10px; padding: 3px 9px; border: 1px solid; transition: background-color 300ms, color 300ms, border-color 300ms; }
.lc hr { border: 0; height: 1px; background: var(--g100); margin: 9px 0 7px; }
.lc .ft { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lc .ft div > span:last-child { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 10px; color: var(--g600); }
.lc .ft svg.c { width: 11px; height: 11px; }
.lc .ft .av { width: 16px; height: 16px; font-size: 7px; }
.lc.u-ok { border-left: 2px solid #97C459; } .lc.u-at { border-left: 3px solid #EF9F27; } .lc.u-cr { border-left: 4px solid #E24B4A; } .lc.u-sel { border-left: 3px solid #3073F1; }
.fn-add { width: 180px; flex-shrink: 0; height: 47px; border: 2px dashed var(--g300); border-radius: 11px; background: var(--g50); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--g500); }
.crm.narrow .fn-col[data-col="0"], .crm.narrow .fn-col[data-col="3"], .crm.narrow .fn-add, .crm.narrow .fn-head .acts .btn-o:not(.sq) { display: none; }
.crm.narrow .fn-col { width: 346px; }

/* ===================================================== INBOX / IODAI */
.ib-app { display: flex; height: 100%; background: #fff; }
.ib-list { width: 330px; flex-shrink: 0; border-right: 1px solid var(--g200); display: flex; flex-direction: column; background: var(--g50); }
.ib-lh { padding: 14px 14px 10px; background: #fff; border-bottom: 1px solid var(--g100); }
.ib-lh .t { display: flex; align-items: center; gap: 8px; }
.ib-lh h6 { margin: 0; font-size: 18px; font-weight: 700; color: var(--g800); }
.ib-lh .con { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--g500); margin-top: 2px; }
.ib-lh .con i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.ib-lh .bts { margin-left: auto; display: flex; gap: 6px; }
.ib-lh .bts span { width: 32px; height: 32px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--g200); color: var(--g600); }
.ib-lh .bts span.p { background: var(--p); border-color: var(--p); color: #fff; }
.ib-chips { display: flex; gap: 6px; margin-top: 10px; }
.ib-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--g100); color: var(--g600); }
.ib-chips span.on { background: var(--p); color: #fff; }
.ib-chips .z { width: 14px; height: 14px; border-radius: 50%; background: #16A34A; color: #fff; font-size: 8px; font-weight: 700; display: grid; place-items: center; }
.ib-chips svg.c { width: 13px; height: 13px; color: #A855F7; }
.ib-search { display: flex; gap: 6px; margin-top: 10px; }
.ib-search .in { flex: 1; height: 36px; border-radius: 12px; background: var(--g50); border: 1px solid var(--g200); display: flex; align-items: center; gap: 7px; padding: 0 11px; font-size: 12px; color: var(--g400); }
.ib-search > span:not(.in) { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--g200); display: grid; place-items: center; color: var(--g500); }
.ib-tg { display: flex; justify-content: space-between; margin-top: 10px; }
.seg { display: inline-flex; background: var(--g100); padding: 2px; border-radius: 8px; }
.seg span { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--g500); display: grid; place-items: center; }
.seg span.on { background: #fff; color: var(--g800); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg svg.c { width: 13px; height: 13px; }
.ib-rows { padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; flex: 1; }
.ib-sec { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g400); padding: 4px 4px 0; }
.cv { display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: #fff; transition: background-color 250ms, box-shadow 250ms; }
.cv.on { background: rgba(48,115,241,.1); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cv .ph { position: relative; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--g600); background: var(--g100); }
.cv .bd { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.cv .bd svg.c { width: 11px; height: 11px; }
.cv .bd.ia { color: var(--sky); } .cv .bd.wa { color: #16A34A; }
.cv .un { position: absolute; right: -3px; top: -3px; width: 18px; height: 18px; border-radius: 50%; background: #22C55E; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.cv .tx { flex: 1; min-width: 0; }
.cv .l1 { display: flex; align-items: center; gap: 6px; }
.cv .l1 b { font-size: 13px; font-weight: 600; color: var(--g700); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv .l1 time { font-size: 11px; color: var(--g500); }
.cv .l2 { font-size: 12px; color: var(--g500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cv .l2 strong { font-weight: 600; color: var(--g600); }
.cv .l3 { display: flex; gap: 4px; margin-top: 6px; flex-wrap: nowrap; }
.cv .l3 .pill { font-size: 10px; padding: 1px 7px; border: 1px solid; }
.cv .l3 .pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cv .l3 .rs { border-color: var(--g200); background: var(--g50); color: var(--g600); padding-left: 2px; }
.cv .l3 .rs .av { width: 15px; height: 15px; font-size: 7px; background: #DBEAFE; color: #2563EB; }
.ib-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ib-chh { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--g200); background: #fff; }
.ib-chh .ph { width: 44px; height: 44px; border-radius: 50%; background: var(--g100); display: grid; place-items: center; font-weight: 600; color: var(--g600); box-shadow: 0 0 0 2px rgba(48,115,241,.1); }
.ib-chh .who b { display: block; font-size: 16px; font-weight: 600; color: var(--g800); }
.ib-chh .who span { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--g500); }
.ib-chh .who svg.c { width: 12px; height: 12px; }
.ib-chh .r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ib-chh .org { text-align: right; line-height: 1.25; }
.ib-chh .org b { display: block; font-size: 11.5px; font-weight: 500; color: var(--g600); }
.ib-chh .org span { font-size: 10px; color: var(--g400); }
.ib-chh .org-ic { color: #A855F7; }
.ib-chh .att { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; transition: background-color 300ms, color 300ms; }
.ib-chh .att.ia { background: #E0F2FE; color: #0369A1; }
.ib-chh .att.hu { background: #FEF3C7; color: #B45309; }
.ib-chh .att::before { content: ""; position: absolute; left: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%; background: #22C55E; border: 2px solid #fff; }
.ib-chh .sq { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--g500); }
.ib-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px 18px; background-color: #F4F2EE; background-image: radial-gradient(rgba(0,0,0,.045) 1px, transparent 1.2px); background-size: 14px 14px; }
.ib-day { align-self: center; padding: 3px 11px; border-radius: 8px; background: rgba(229,231,235,.9); font-size: 11.5px; font-weight: 500; color: var(--g600); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.mg { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.mg.in { align-self: flex-start; }
.mg.out { align-self: flex-end; flex-direction: row-reverse; }
.mg .ma { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 10px; font-weight: 600; }
.mg.in .ma { background: var(--g200); color: var(--g500); }
.mg.out .ma.ia { background: #E0F2FE; color: var(--sky); }
.mg.out .ma.hu { background: #DCFCE7; color: #16A34A; }
.mg .bb { padding: 6px 6px 8px; font-size: 13.5px; line-height: 1.45; max-width: none; display: block; box-shadow: none; }
.mg .bb p { margin: 0; padding: 0 6px; }
.mg.in .bb { background: #fff; border: 1px solid var(--g200); color: var(--g800); border-radius: 14px 14px 14px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.mg.out .bb { background: var(--p); color: #fff; border-radius: 14px 14px 4px 14px; }
.mg .bb .mby { display: block; padding: 0 6px 2px; font-size: 11.5px; font-weight: 600; }
.mg .bb .mchip { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 4px; padding: 1px 8px; border-radius: 999px; font-size: 10px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); }
.mg .bb .mchip svg.c { width: 10px; height: 10px; }
.mg .bb .tm { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11px; margin-top: 4px; padding: 0 6px; }
.mg.in .tm { color: var(--g500); }
.mg.out .tm { color: rgba(255,255,255,.65); }
.mg .tk svg.c { width: 14px; height: 14px; opacity: .75; }
.mg .tk.read { color: #86EFAC; }
.mg .tk.read svg.c { opacity: 1; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px !important; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.8); animation: crmDot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes crmDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.ib-comp { display: flex; align-items: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--g200); background: #fff; }
.ib-comp .ad { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--g500); }
.ib-comp .ta { flex: 1; min-height: 38px; border-radius: 8px; background: var(--g50); border: 1px solid var(--g200); font-size: 13px; color: var(--g400); padding: 10px 12px; transition: border-color 250ms; }
.ib-comp .ta.typing-in { color: var(--g800); border-color: var(--p); }
.ib-comp .sd { width: 38px; height: 38px; border-radius: 8px; background: var(--p); color: #fff; display: grid; place-items: center; }
.crm.narrow .ib-list { display: none; }

/* ===================================================== JORNADA */
.jr-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.jr-tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--g600); background: #fff; border: 1px solid var(--g200); }
.jr-tabs span.on { background: var(--p); border-color: var(--p); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.jr-tabs svg.c { width: 14px; height: 14px; }
.jr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.jr-kpis .card { padding: 14px 16px; min-height: 96px; }
.jr-kpis .k { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--g400); }
.jr-kpis .v { margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--g800); display: flex; align-items: center; gap: 7px; }
.jr-kpis .v i { width: 8px; height: 8px; border-radius: 50%; background: var(--g300); }
.jr-kpis .v.big { font-size: 28px; }
.jr-kpis .v small { font-size: 12px; font-weight: 500; color: var(--g500); }
.jr-kpis .s { font-size: 11px; color: var(--g500); margin-top: 2px; }
.jr-kpis .bars { display: flex; gap: 3px; margin-left: auto; align-items: flex-end; }
.jr-kpis .bars b { width: 5px; height: 22px; border-radius: 3px; background: var(--g100); transition: background-color 300ms; }
.jr-kpis .bars b.g { background: #22C55E; }
.jr-kpis .ex { color: #16A34A; font-size: 11px; font-weight: 600; margin-top: 2px; }
.jr-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.jr-main { padding: 18px 20px; }
.jr-mh { display: flex; align-items: center; gap: 10px; }
.jr-mh h6 { margin: 0; font-size: 14px; font-weight: 600; color: var(--g800); }
.jr-mh small { display: block; font-size: 11.5px; color: var(--g500); font-weight: 400; }
.jr-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; transition: background-color 300ms, color 300ms; }
.jr-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.jr-badge.off { background: var(--g100); color: var(--g600); }
.jr-badge.on { background: #DBEAFE; color: #1D4ED8; }
.jr-badge.on i { background: #3B82F6; animation: crmPulse 1.4s infinite; }
@keyframes crmPulse { 0% { box-shadow: 0 0 0 0 rgba(59,130,246,.6); } 100% { box-shadow: 0 0 0 7px rgba(59,130,246,0); } }
.jr-clock { text-align: center; padding: 22px 0 16px; }
.jr-clock .k { font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--g400); }
.jr-clock .h { font-size: 64px; font-weight: 700; letter-spacing: -.02em; color: var(--g800); font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; }
.jr-clock .msg { font-size: 13px; color: var(--g500); margin-top: 4px; }
.jr-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jr-mini div { background: var(--g50); border-radius: 12px; padding: 11px 14px; }
.jr-mini span { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g400); }
.jr-mini span i { width: 6px; height: 6px; border-radius: 50%; }
.jr-mini b { display: block; margin-top: 4px; font-size: 19px; font-weight: 700; color: var(--g800); font-variant-numeric: tabular-nums; }
.jr-btn { margin-top: 14px; width: 100%; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; color: #fff; background: #16A34A; transition: background-color 300ms, transform 160ms; }
.jr-btn svg.c { width: 22px; height: 22px; }
.jr-btn.reg { background: #F59E0B; animation: crmBlink 900ms infinite; }
.jr-btn.stop { background: #DC2626; }
.jr-btn.press { transform: scale(.98); }
@keyframes crmBlink { 50% { opacity: .75; } }
.jr-side { padding: 16px 18px; }
.jr-side .hd { display: flex; align-items: center; }
.jr-side .hd h6 { margin: 0; font-size: 14px; font-weight: 600; }
.jr-side .hd span { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--g400); }
.jr-empty { text-align: center; padding: 38px 0; font-size: 12.5px; color: var(--g400); }
.jr-per { padding: 14px 0; border-bottom: 1px solid var(--g100); }
.jr-per .pt { display: flex; align-items: center; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g400); }
.jr-per .pt em { margin-left: auto; font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #16A34A; letter-spacing: 0; text-transform: none; }
.jr-per .pt em i { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; animation: crmPulse 1.4s infinite; }
.jr-per .pg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.jr-per .tl { border: 1px solid var(--g200); border-radius: 12px; padding: 10px 12px; }
.jr-per .tl.op { border: 2px dashed var(--g200); }
.jr-per .tl span { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g400); }
.jr-per .tl span i { width: 6px; height: 6px; border-radius: 50%; }
.jr-per .tl b { display: block; font-size: 22px; font-weight: 700; color: var(--g800); margin-top: 2px; }
.jr-per .tl b.ph { width: 60px; height: 22px; border-radius: 6px; background: var(--g200); margin-top: 6px; }
.jr-per .tl small { display: flex; align-items: center; gap: 3px; font-size: 10px; color: var(--g500); margin-top: 2px; }
.jr-per .tl small svg.c { width: 11px; height: 11px; }
.jr-tot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.jr-tot div { display: flex; align-items: center; gap: 8px; background: var(--g100); border-radius: 12px; padding: 9px 10px; }
.jr-tot .ic { width: 32px; height: 32px; border-radius: 9px; background: #fff; display: grid; place-items: center; color: var(--g500); }
.jr-tot span { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g400); }
.jr-tot b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.crm.narrow .jr-grid { grid-template-columns: 1fr; }
.crm.narrow .jr-side, .crm.narrow .jr-tabs span:nth-child(n+4) { display: none; }
.crm.narrow .jr-kpis { grid-template-columns: repeat(2, 1fr); }

/* ===================================================== IDX.IA */
.ia-app { display: flex; height: 100%; background: #fff; }
.ia-side { width: 250px; flex-shrink: 0; border-right: 1px solid var(--g200); padding-top: 12px; }
.ia-side .seg { margin: 0 12px; display: flex; }
.ia-side .seg span { flex: 1; gap: 5px; display: flex; justify-content: center; font-weight: 600; }
.ia-new { margin: 12px; height: 36px; border-radius: 10px; border: 1px solid var(--g200); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--g700); }
.ia-cv { position: relative; margin: 2px 8px; padding: 9px 12px; border-radius: 8px; }
.ia-cv.on { background: var(--p5); }
.ia-cv.on::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -16px; width: 4px; height: 32px; border-radius: 4px; background: var(--p); }
.ia-cv b { display: block; font-size: 13px; font-weight: 500; color: var(--sl700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-cv.on b { color: var(--p); }
.ia-cv span { display: block; font-size: 11px; color: var(--sl400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.ia-welcome { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 40px; transition: opacity 300ms, transform 300ms; }
.ia-welcome.gone { opacity: 0; transform: translateY(-10px); }
.ia-hi { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 600; color: var(--sl800); letter-spacing: -.02em; margin-bottom: 22px; }
.ia-mark { width: 28px; height: 28px; background: linear-gradient(135deg, #2B3FC9, #7A2CBF, #D53377); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5Z'/%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'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ia-comp { width: 100%; max-width: 640px; border-radius: 16px; border: 1px solid #E2E8F0; box-shadow: 0 1px 2px rgba(0,0,0,.05); background: #fff; padding: 14px 14px 10px; transition: border-color 250ms, box-shadow 250ms; }
.ia-comp.focus { border-color: rgba(48,115,241,.4); box-shadow: 0 10px 24px -8px rgba(48,115,241,.18); }
.ia-comp .ph { font-size: 14px; color: var(--sl400); min-height: 22px; }
.ia-comp .ph.tx { color: var(--sl800); }
.ia-comp .bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--sl400); }
.ia-comp .bar .sp { margin-left: auto; }
.ia-comp .go { width: 30px; height: 30px; border-radius: 8px; background: var(--p); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity 200ms, transform 200ms; }
.ia-comp .go.on { opacity: 1; transform: none; }
.ia-hint { font-size: 10px; color: var(--sl400); margin-top: 8px; }
.ia-chips { display: flex; gap: 8px; margin-top: 18px; }
.ia-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid #E2E8F0; background: #fff; font-size: 13px; font-weight: 500; color: var(--sl600); }
.ia-chips svg.c { width: 14px; height: 14px; color: var(--sl400); }
.ia-thread { position: absolute; inset: 0; bottom: 0; padding: 20px 0 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; }
.ia-u { align-self: flex-end; margin-right: 40px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: 70%; }
.ia-u .you { font-size: 10px; font-weight: 600; background: var(--p10); color: var(--p); border-radius: 999px; padding: 1px 8px; }
.ia-u p { margin: 0; padding: 10px 16px; border-radius: 16px 16px 4px 16px; background: #F1F5F9; color: var(--sl800); font-size: 13px; line-height: 1.55; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ia-a { max-width: 672px; width: 100%; margin: 0 auto; padding: 10px 20px; display: flex; gap: 14px; }
.ia-a .aa { width: 28px; height: 28px; border-radius: 8px; background: var(--p); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ia-a .aa svg.c { width: 15px; height: 15px; }
.ia-a .bd { flex: 1; min-width: 0; }
.ia-a .nm { font-size: 12px; font-weight: 600; color: var(--p); }
.ia-a .nm time { font-size: 10px; color: var(--sl400); font-weight: 400; margin-left: 6px; }
.ia-trace { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--sl400); }
.ia-trace svg.c { width: 12px; height: 12px; color: var(--ia); }
.ia-trace.run svg.c { animation: crmSpin 1s linear infinite; }
@keyframes crmSpin { to { transform: rotate(360deg); } }
.ia-txt { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--sl700); }
.ia-txt p { margin: 0 0 6px; }
.ia-txt ul { margin: 0 0 8px; padding: 0; list-style: none; }
.ia-txt li { display: flex; gap: 8px; padding: 3px 0; }
.ia-txt li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sl400); margin-top: 9px; flex-shrink: 0; }
.ia-txt li b { color: var(--sl800); }
.ia-choice { display: grid; gap: 6px; margin-top: 4px; }
.ia-choice div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid #E2E8F0; font-size: 12.5px; font-weight: 500; color: var(--sl700); transition: background-color 250ms, border-color 250ms; }
.ia-choice div.rec { background: var(--p5); border-color: rgba(48,115,241,.3); }
.ia-choice div.picked { background: var(--p10); border-color: var(--p); }
.ia-choice .ci { width: 28px; height: 28px; border-radius: 8px; background: var(--g100); display: grid; place-items: center; color: var(--sl600); }
.ia-choice .rec .ci { background: var(--p10); color: var(--p); }
.ia-choice .rc { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--p); background: #fff; border: 1px solid rgba(48,115,241,.3); border-radius: 999px; padding: 1px 8px; }
.ia-res { margin-top: 8px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; overflow: hidden; }
.ia-res .rh { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #F1F5F9; }
.ia-res .rh .ok { width: 24px; height: 24px; border-radius: 7px; background: #ECFDF5; color: #059669; display: grid; place-items: center; }
.ia-res .rh > span > span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sl400); }
.ia-res .rh b { font-size: 13px; color: var(--sl800); }
.ia-res .kv { display: flex; padding: 6px 12px; font-size: 12px; color: var(--sl700); }
.ia-res .kv span { width: 112px; font-size: 11px; color: var(--sl400); }
.ia-bot { padding: 0 20px 14px; display: flex; justify-content: center; }
.crm.narrow .ia-side { display: none; }

/* ===================================================== WORKSPACE */
.ws-tb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ws-tb .seg { padding: 4px; }
.ws-tb .seg span { display: flex; gap: 6px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.ws-tb .seg span.on { color: var(--p); }
.ws-tb .plus { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--g500); }
.ws-tb .srch { margin-left: auto; width: 220px; height: 36px; border-radius: 12px; border: 1px solid var(--g200); background: var(--g50); display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 13px; color: var(--g400); }
.ws-tb .tools { height: 36px; border-radius: 12px; background: var(--g100); display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--g700); }
.ws-sec { margin-bottom: 14px; }
.ws-sh { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fff; border: 1px solid var(--g200); border-radius: 8px 8px 0 0; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ws-sh .nm { font-size: 17px; font-weight: 600; }
.ws-sh .ct { height: 22px; min-width: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.ws-sh .mr { margin-left: auto; color: var(--g400); }
.ws-tbl { background: #fff; border: 1px solid var(--g200); border-top: 0; border-radius: 0 0 8px 8px; overflow: hidden; }
.ws-r { display: grid; grid-template-columns: 8px minmax(0, 1fr) 150px 150px 150px; position: relative; }
.ws-r > * { border-bottom: 1px solid var(--g200); }
.ws-r > :nth-child(n+3) { border-left: 1px solid var(--g200); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ws-r:last-child > * { border-bottom: 0; }
.ws-r .bar { border-bottom: 0; }
.ws-r.hd > * { font-size: 13px; font-weight: 600; color: var(--g700); padding: 9px 12px; }
.ws-r.hd > :nth-child(2) { font-size: 14px; }
.ws-r .ti { padding: 12px 16px; font-size: 13px; color: var(--g800); }
.ws-st { position: relative; overflow: hidden; color: #fff; font-weight: 500; }
.ws-st .fill { position: absolute; inset: 0; transform-origin: left; transition: transform 450ms cubic-bezier(.23,1,.32,1); }
.ws-st span { position: relative; }
.ws-st.empty { color: var(--g300); }
.ws-st svg.c { width: 18px; height: 18px; }
.ws-av { display: flex; }
.ws-av .av { width: 26px; height: 26px; font-size: 9.5px; border: 2px solid #fff; margin-left: -7px; }
.ws-av .av:first-child { margin-left: 0; }
.ws-dt { gap: 5px; color: var(--g700); }
.ws-dt svg.c { width: 14px; height: 14px; color: var(--g500); }
.ws-empty { color: var(--g300); }
.ws-empty svg.c { width: 18px; height: 18px; }
.crm.narrow .ws-r { grid-template-columns: 8px minmax(0, 1fr) 130px 130px; }
.crm.narrow .ws-r > :nth-child(5), .crm.narrow .ws-tb .srch { display: none; }

/* ===================================================== PROPOSTAS E CONTRATOS */
.pp-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.pp-stats .card { padding: 13px 14px; display: flex; align-items: center; gap: 10px; }
.pp-stats .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.pp-stats b { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pp-stats span { font-size: 11.5px; color: var(--g500); }
.pp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pp-card { padding: 16px 18px; }
.pp-card .top { display: flex; align-items: center; gap: 6px; }
.pp-id { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; font-weight: 600; color: var(--p); background: var(--p10); border-radius: 6px; padding: 2px 6px; }
.pp-ty { font-size: 10px; font-weight: 500; border-radius: 6px; padding: 2px 6px; background: #EEF2FF; color: #4338CA; }
.pp-card .top .ed { margin-left: auto; display: flex; gap: 8px; color: var(--g400); }
.pp-card .top .ed svg.c { width: 14px; height: 14px; }
.pp-st { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; transition: background-color 350ms, color 350ms; }
.pp-st svg.c { width: 13px; height: 13px; }
.st-pend { background: #FEF9C3; color: #854D0E; } .st-env { background: #DBEAFE; color: #1E40AF; } .st-apr { background: #DCFCE7; color: #166534; } .st-rej { background: #FEE2E2; color: #991B1B; }
.pp-cli { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--g100); }
.pp-cli .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--p10); color: var(--p); display: grid; place-items: center; }
.pp-cli b { display: block; font-size: 15px; font-weight: 600; color: var(--g800); }
.pp-cli span { font-size: 11px; color: var(--g500); }
.pp-k { margin-top: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--g400); }
.pp-v { font-size: 22px; font-weight: 700; color: var(--g800); margin-top: 2px; }
.pp-sv { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.pp-sv span { font-size: 11px; background: #EFF6FF; color: #1D4ED8; box-shadow: inset 0 0 0 1px #DBEAFE; border-radius: 6px; padding: 2px 7px; }
.pp-ven { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--g700); }
.pp-ven .av { width: 28px; height: 28px; font-size: 10px; background: linear-gradient(135deg, rgba(48,115,241,.3), rgba(48,115,241,.1)); color: var(--p); }
.pp-ft { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.pp-ft .pdf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; background: #F0FDF4; color: #15803D; border-radius: 8px; padding: 5px 10px; }
.pp-ft .pdf svg.c { width: 13px; height: 13px; }
.pp-ft a { font-size: 12px; font-weight: 600; color: var(--p); }
.ct-card { padding: 14px 15px; }
.ct-st { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; transition: background-color 350ms, color 350ms; }
.ct-st svg.c { width: 12px; height: 12px; }
.cs-ag { background: #FEF9C3; color: #A16207; } .cs-vi { background: #DBEAFE; color: #1D4ED8; } .cs-as { background: #DCFCE7; color: #15803D; }
.ct-card h6 { margin: 10px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--g800); }
.ct-card .ln { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--g500); margin-top: 4px; }
.ct-card .ln svg.c { width: 12px; height: 12px; }
.ct-sig { margin-top: 12px; border: 1px dashed var(--g200); border-radius: 10px; padding: 10px 12px; }
.ct-sig .sr { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--g700); padding: 3px 0; }
.ct-sig .sr i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--g300); display: grid; place-items: center; transition: background-color 300ms, border-color 300ms; }
.ct-sig .sr i.ok { background: #16A34A; border-color: #16A34A; }
.ct-sig .sr i.ok::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ct-sig .sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 22px; color: #1E3A8A; height: 30px; margin-top: 4px; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s ease-out; }
.ct-sig .sig.on { clip-path: inset(0 0 0 0); }
.ct-hash { margin-top: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; color: var(--g400); opacity: 0; transition: opacity 400ms; }
.ct-hash.on { opacity: 1; }
.ct-ft { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--g100); }
.ct-ft b { font-size: 15px; font-weight: 600; }
.ct-ft span { display: flex; gap: 8px; color: var(--g400); }
.ct-ft svg.c { width: 14px; height: 14px; }
.crm.narrow .pp-stats { grid-template-columns: repeat(3, 1fr); }
.crm.narrow .pp-stats .card:nth-child(n+4), .crm.narrow .pp-grid > :nth-child(2) { display: none; }
.crm.narrow .pp-grid { grid-template-columns: 1fr 1fr; }

@media (prefers-reduced-motion: reduce) {
  .crm *, .crm-cur { animation: none !important; transition: none !important; }
}

/* ===================================================== PALCO
   A tela do produto recortada dentro de um painel de cor suave, vazando pela
   direita e cortada embaixo, com abas em pílula que acompanham o roteiro. */
.palco-box { position: relative; }
.palco { position: relative; overflow: hidden; border-radius: 32px; background: var(--palco, #EFEBFD); padding: 64px 0 0 64px; }
.palco::before { content: ""; position: absolute; right: -8%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,0)); pointer-events: none; }
.palco::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(20,12,51,.07) 1px, transparent 1.3px); background-size: 18px 18px; -webkit-mask: linear-gradient(135deg, #000, transparent 55%); mask: linear-gradient(135deg, #000, transparent 55%); pointer-events: none; }
.palco .crm-wrap { max-width: none; width: calc(100% + 120px); z-index: 1; }
.palco .crm { border-radius: 18px 18px 0 0; box-shadow: 0 40px 80px -30px rgba(20,12,51,.35), 0 0 0 1px rgba(20,12,51,.06); }
.palco-tabs { display: flex; justify-content: center; margin-top: 22px; }
.palco-tabs .in { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.palco-tabs .in::-webkit-scrollbar { display: none; }
.palco-tabs button { position: relative; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: 600 15px var(--display); color: var(--ink-3); cursor: pointer; transition: color .2s, background-color .2s, transform 160ms var(--ease-out); }
.palco-tabs button:hover { color: var(--ink); }
.palco-tabs button:active { transform: scale(.97); }
.palco-tabs button .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--paper-2); color: var(--ink-3); transition: background-color .2s, color .2s; }
.palco-tabs button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-deep); }
.palco-tabs button[aria-pressed="true"] .n { background: var(--accent); color: #fff; }
.palco-tabs button.done .n { background: var(--accent-line); color: var(--accent-deep); }
.palco-tabs button::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.palco-tabs button[aria-pressed="true"]::after { animation: palcoProg var(--dur, 4s) linear forwards; }
@keyframes palcoProg { to { transform: scaleX(1); } }
.palco-tabs:not(.playing) button::after { animation-play-state: paused; }
@media (max-width: 760px) {
  .palco { padding: 28px 0 0 20px; border-radius: 22px; }
  .palco .crm-wrap { width: calc(100% + 40px); }
  .palco-tabs { justify-content: flex-start; }
  .palco-tabs button { height: 38px; padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .palco-tabs button::after { display: none; } }
/* dentro do palco a borda direita da tela fica fora de vista: o toast entra antes dela */
.palco .crm-toast { right: 150px; }

/* palco com vários módulos (home): as abas de módulo trocam a réplica e o traço
   da aba ativa vira a barra de progresso da cena */
.crm-wrap[hidden] { display: none !important; }
[data-multi] .feature-tabs { margin-bottom: 24px; }
[data-multi] .ftab { cursor: pointer; }
[data-multi] .ftab.go0::before { transform: scaleX(0) !important; transition: none !important; }
[data-multi] .ftab.go::before { transition: transform var(--dur, 14s) linear; }
[data-multi] .palco { padding-top: 56px; }

/* palco sobre a seção escura da IODAI */
.night .palco { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.night .palco::before { background: radial-gradient(closest-side, rgba(107,59,238,.45), rgba(107,59,238,0)); }
.night .palco::after { background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.3px); }
.night .palco .crm { box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.night .palco-tabs .in { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.night .palco-tabs button { color: rgba(255,255,255,.7); }
.night .palco-tabs button:hover { color: #fff; }
.night .palco-tabs button .n { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.night .palco-tabs button[aria-pressed="true"] { background: #fff; color: var(--accent-deep); }
.split-media .palco-tabs { justify-content: flex-start; }
.split-media .palco { padding: 44px 0 0 40px; }
@media (max-width: 760px) { .split-media .palco { padding: 28px 0 0 20px; } }
.night .palco-tabs button[aria-pressed="true"] .n { background: var(--accent); color: #fff; }

/* ===================================================== NOVA PROPOSTA (gerando a proposta)
   Criar/SelecionarModelo.tsx (assistente em 4 etapas + resumo) e Criar/CriarComModelo.tsx
   (dados do lead, campos personalizados, pré-visualização, Exportar PDF). */
.np-scr { position: absolute; inset: 14px 20px 20px; transition: opacity 350ms, transform 350ms; }
.np-scr.off { opacity: 0; transform: translateY(8px); pointer-events: none; }
.np-step { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 16px; border: 1px solid var(--g100); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 12px; }
.np-step .sp { display: flex; align-items: center; gap: 8px; }
.np-step .ci { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--g200); color: var(--g500); transition: background-color 300ms, color 300ms; }
.np-step .ci svg.c { width: 13px; height: 13px; stroke-width: 2.6; }
.np-step .sp.on .ci { background: var(--p); color: #fff; }
.np-step .sp.ok .ci { background: #22C55E; color: #fff; }
.np-step .tx small { display: block; font-size: 10px; color: var(--g400); }
.np-step .tx b { font-size: 12.5px; font-weight: 600; color: var(--g700); }
.np-step .ln { flex: 1; height: 2px; border-radius: 2px; background: var(--g200); position: relative; overflow: hidden; }
.np-step .ln::after { content: ""; position: absolute; inset: 0; background: #22C55E; transform: scaleX(0); transform-origin: left; transition: transform 500ms cubic-bezier(.23,1,.32,1); }
.np-step .ln.ok::after { transform: none; }
.np-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
.np-main { padding: 18px 20px; }
.np-h { display: flex; align-items: center; gap: 12px; }
.np-h .hi { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background-color 300ms, color 300ms; }
.np-h b { display: block; font-size: 15px; font-weight: 600; color: var(--g800); }
.np-h span { font-size: 12px; color: var(--g500); }
.np-srch { margin: 14px 0 12px; height: 36px; border-radius: 12px; background: var(--g50); border: 1px solid var(--g200); display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 12.5px; color: var(--g400); }
.np-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 150px; align-content: start; }
.np-card { display: flex; align-items: center; gap: 10px; border: 2px solid var(--g200); border-radius: 12px; padding: 10px 12px; transition: border-color 250ms, background-color 250ms; }
.np-card .ti { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--g100); flex-shrink: 0; }
.np-card .tx { flex: 1; min-width: 0; }
.np-card b { display: block; font-size: 13px; font-weight: 600; color: var(--g800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-card span { display: block; font-size: 11.5px; color: var(--g500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-card .ck { width: 22px; height: 22px; border-radius: 50%; background: #22C55E; color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform 300ms cubic-bezier(.34,1.56,.64,1); flex-shrink: 0; }
.np-card .ck svg.c { width: 12px; height: 12px; stroke-width: 3; }
.np-card.sel .ck { transform: none; }
.np-card.sel.v-green { border-color: #22C55E; background: #F0FDF4; }
.np-card.sel.v-violet { border-color: #8B5CF6; background: #F5F3FF; }
.np-card.sel.v-blue { border-color: #3B82F6; background: #EFF6FF; }
.np-card.sel.v-orange { border-color: #F97316; background: #FFF7ED; }
.np-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--g100); font-size: 12px; color: var(--g500); }
.np-ft .prev { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--g400); }
.np-ft .nx { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 12px; background: var(--p); color: #fff; font-size: 13px; font-weight: 600; transition: background-color 300ms; }
.np-ft .nx.fim { background: #16A34A; }
.np-res { padding: 16px 18px; }
.np-res h6 { margin: 0 0 12px; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--g800); }
.np-res h6 svg.c { color: var(--p); }
.np-res .sc { padding: 8px 0; border-top: 1px solid var(--g100); }
.np-res .sc > span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g400); margin-bottom: 6px; }
.np-res .sc i { font-size: 12px; color: var(--g400); }
.np-res .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.np-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid; font-size: 11.5px; font-weight: 500; }
.np-chip.green { background: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
.np-chip.violet { background: #F5F3FF; border-color: #DDD6FE; color: #6D28D9; }
.np-chip.blue { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.np-chip.orange { background: #FFF7ED; border-color: #FED7AA; color: #C2410C; }
.np-res .vl { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--g100); }
.np-res .vl span { font-size: 11.5px; color: var(--g500); }
.np-res .vl b { display: block; font-size: 24px; font-weight: 700; color: #16A34A; font-variant-numeric: tabular-nums; }
/* formulário (CriarComModelo) */
.np-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.np-top .cr { font-size: 12px; color: var(--g400); }
.np-top .cr b { color: var(--g700); font-weight: 600; }
.np-top .r { margin-left: auto; display: flex; gap: 8px; }
.np-top .sv { background: #1CB454; }
.np-form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.np-form .card { padding: 14px 16px; margin-bottom: 12px; }
.np-form h6 { margin: 0 0 10px; display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--g800); }
.np-form h6 svg.c { color: var(--p); }
.np-form h6 small { font-weight: 400; color: var(--g400); font-size: 11.5px; }
.np-form h6 .ap { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 10px; background: #16A34A; color: #fff; font-size: 11.5px; font-weight: 600; }
.np-in { height: 34px; border-radius: 12px; background: var(--g50); border: 1px solid var(--g200); padding: 0 11px; font-size: 12.5px; color: var(--g800); display: flex; align-items: center; transition: border-color 300ms; white-space: nowrap; overflow: hidden; }
.np-in.auto { border-color: #86EFAC; }
.np-in.ph { color: var(--g400); }
.np-lb { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; font-size: 11.5px; font-weight: 500; color: var(--g700); }
.np-lb svg.c { width: 12px; height: 12px; color: #A855F7; }
.np-lb .org { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 500; padding: 1px 6px; border-radius: 999px; background: #F3E8FF; color: #7E22CE; }
.np-lb .au { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 600; color: #16A34A; opacity: 0; transition: opacity 300ms; }
.np-lb .au.on { opacity: 1; }
.np-lb .au svg.c { color: #16A34A; }
.np-lead { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 11px; border-radius: 12px; border: 1px solid #DDD6FE; background: #F5F3FF; }
.np-lead .li { width: 30px; height: 30px; border-radius: 9px; background: #EDE9FE; color: #7C3AED; display: grid; place-items: center; }
.np-lead b { display: block; font-size: 12.5px; color: var(--g800); }
.np-lead span { font-size: 11px; color: var(--g500); }
.np-lead .seg { margin-left: auto; }
.np-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.np-prev { padding: 14px 16px; }
.np-stack { position: relative; width: 248px; height: 140px; margin: 4px auto 22px; }
.np-pg { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 16px -6px rgba(0,0,0,.25); background: #fff; border: 1px solid var(--g200); }
.np-pg.b2 { transform: translate(14px, 14px); opacity: .7; }
.np-pg.b1 { transform: translate(7px, 7px); opacity: .85; }
.np-cover { background: linear-gradient(135deg, #0F1E4A, #3073F1); color: #fff; padding: 14px 16px; display: flex; flex-direction: column; border: 0; }
.np-cover .k { font-size: 7px; font-weight: 700; letter-spacing: .18em; opacity: .75; }
.np-cover .t { font-size: 15px; font-weight: 700; margin-top: 6px; line-height: 1.15; }
.np-cover .c { font-size: 10px; margin-top: 3px; opacity: .9; }
.np-cover .bt { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font-size: 8px; opacity: .9; }
.np-cover .bt b { font-size: 12px; }
.np-var { border-radius: 3px; padding: 0 2px; transition: background-color 700ms; }
.np-var.hl { background: rgba(250,204,21,.55); }
.np-prev .cap { text-align: center; font-size: 11px; color: var(--g500); margin-bottom: 8px; }
.np-prev .rw { display: flex; justify-content: space-between; font-size: 12px; color: var(--g600); padding: 4px 0; }
.np-prev .rw b { font-weight: 600; color: var(--g800); }
.np-prev .vf { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--g100); font-size: 11.5px; color: var(--g500); }
.np-prev .vf b { display: block; font-size: 22px; font-weight: 700; color: #16A34A; }
.np-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: crmSpin .8s linear infinite; }
/* diálogo de sucesso */
.np-dlg { position: absolute; inset: 0; z-index: 22; background: rgba(0,0,0,.45); display: grid; place-items: center; opacity: 0; transition: opacity 300ms; pointer-events: none; }
.np-dlg.on { opacity: 1; }
.np-dlg .bx { width: 380px; background: #fff; border-radius: 18px; padding: 26px 26px 22px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); transform: scale(.94); transition: transform 350ms cubic-bezier(.23,1,.32,1); }
.np-dlg.on .bx { transform: none; }
.np-dlg .ok { width: 56px; height: 56px; border-radius: 50%; background: #DCFCE7; color: #16A34A; display: grid; place-items: center; margin: 0 auto 12px; }
.np-dlg .ok svg.c { width: 28px; height: 28px; stroke-width: 2.4; }
.np-dlg h6 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--g800); }
.np-dlg p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--g600); }
.np-dlg p b { color: var(--g800); }
.np-dlg .bts { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.crm.narrow .np-grid, .crm.narrow .np-form { grid-template-columns: 1fr; }
.crm.narrow .np-res, .crm.narrow .np-prev, .crm.narrow .np-step .tx { display: none; }
.palco.inteiro { padding-right: 64px; }
.palco.inteiro .crm-wrap { width: 100%; }
@media (max-width: 760px) { .palco.inteiro { padding-right: 20px; } }
.palco.inteiro .crm-toast { right: 18px; }

/* ===================================================== PROPOSTA LINK
   PropostaHeader + TipoPropostaModal, CriarPropostaLink e a página pública
   (ConstruindoProposta + HTML do modelo com os {{campos}} trocados). */
.nl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.nl-head .seg { margin-left: auto; }
.nl-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nl-list .pp-card { padding: 14px 16px; }
.nl-modal { position: absolute; inset: 0; z-index: 21; background: rgba(0,0,0,.5); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 300ms; }
.nl-modal.on { opacity: 1; }
.nl-modal .bx { width: 560px; background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.35); transform: translateY(10px) scale(.97); transition: transform 350ms cubic-bezier(.23,1,.32,1); }
.nl-modal.on .bx { transform: none; }
.nl-modal .mh { display: flex; align-items: flex-start; justify-content: space-between; color: var(--g400); }
.nl-modal .mh b { display: block; font-size: 17px; font-weight: 700; color: var(--g800); }
.nl-modal .mh span span { font-size: 12.5px; color: var(--g500); }
.nl-modal .mt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.nl-modal .op { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px 16px; border-radius: 16px; border: 2px solid var(--g200); transition: border-color 250ms, background-color 250ms; }
.nl-modal .op .oi { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; }
.nl-modal .op .oi svg.c { width: 26px; height: 26px; }
.nl-modal .op b { font-size: 14.5px; font-weight: 700; color: var(--g800); }
.nl-modal .op span:last-child { font-size: 12px; color: var(--g500); line-height: 1.45; }
.nl-modal .op.lk.hot { border-color: #8B5CF6; background: #F5F3FF; }
.nl-ban { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid #DDD6FE; background: #F5F3FF; margin-bottom: 12px; font-size: 12px; color: var(--g600); }
.nl-ban > svg.c { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: #EDE9FE; color: #7C3AED; }
.nl-ban b { display: block; font-size: 13px; font-weight: 600; color: #5B21B6; }
.nl-form { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; }
.nl-form .card { padding: 14px 16px; }
.nl-h { margin: 0 0 10px; display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--g800); }
.nl-h svg.c { color: var(--p); }
.nl-sw { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; font-size: 12.5px; font-weight: 500; color: var(--g700); }
.nl-sw .sw { width: 36px; height: 20px; border-radius: 999px; background: var(--g300); position: relative; }
.nl-sw .sw.on { background: var(--p); }
.nl-sw .sw i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.nl-sw .sw.on i { left: 18px; }
.nl-rd { display: flex; gap: 14px; margin-bottom: 8px; font-size: 12px; color: var(--g600); }
.nl-rd span { display: inline-flex; align-items: center; gap: 5px; }
.nl-rd i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--g300); }
.nl-rd .on i { border: 4px solid var(--p); }
.nl-d { margin: 0 0 12px; font-size: 11.5px; color: var(--g500); line-height: 1.5; }
.nl-d code, .nl-ph { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 10px; background: #EDE9FE; color: #6D28D9; padding: 1px 5px; border-radius: 4px; }
.nl-bts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.crm .nl-v { background: #7C3AED; }
.nl-link { margin: 14px 0 4px; text-align: left; }
.nl-link > span { font-size: 11.5px; color: var(--g500); }
.nl-link div { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.nl-link code { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--g700); background: var(--g50); border: 1px solid var(--g200); border-radius: 8px; padding: 8px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-link .cp { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 8px; background: #7C3AED; color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; transition: background-color 250ms; }
.nl-link .cp.ok { background: #16A34A; }
.crm .np-dlg .bx.nl { width: 440px; }
/* a página pública abrindo por cima, como uma aba nova do navegador */
.nl-web { position: absolute; inset: 0; z-index: 24; background: #F9FAFB; display: flex; flex-direction: column; transform: translateY(24px) scale(.98); opacity: 0; pointer-events: none; transition: transform 450ms cubic-bezier(.23,1,.32,1), opacity 300ms; }
.nl-web.on { transform: none; opacity: 1; }
.nl-web .wb { height: 38px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #F1F2F4; border-bottom: 1px solid var(--g200); }
.nl-web .wb .dots { display: flex; gap: 6px; }
.nl-web .wb .dots i { width: 10px; height: 10px; border-radius: 50%; background: #E1E3E8; }
.nl-web .wb .url { flex: 1; max-width: 560px; margin: 0 auto; height: 24px; border-radius: 8px; background: #fff; border: 1px solid var(--g200); font-size: 11px; color: var(--g500); display: flex; align-items: center; justify-content: center; }
.nl-web .build { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 300ms; }
.nl-web .build.off { opacity: 0; position: absolute; pointer-events: none; }
.nl-web .win { width: 420px; background: #fff; border-radius: 16px; border: 1px solid var(--g100); box-shadow: 0 10px 25px -5px rgba(0,0,0,.1); overflow: hidden; }
.nl-web .wh { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--g50); border-bottom: 1px solid var(--g100); }
.nl-web .wh i { width: 11px; height: 11px; border-radius: 50%; background: #FCA5A5; }
.nl-web .wh i:nth-child(2) { background: #FCD34D; } .nl-web .wh i:nth-child(3) { background: #86EFAC; }
.nl-web .wh span { margin-left: 10px; flex: 1; height: 18px; border-radius: 6px; background: var(--g200); }
.nl-web .wc { position: relative; padding: 18px; display: grid; gap: 14px; overflow: hidden; }
.nl-web .wc .r { display: flex; justify-content: space-between; align-items: center; }
.nl-web .wc .r3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nl-web .wc .r3 .bk { height: 56px; border-radius: 8px; }
.nl-web .bk { display: block; border-radius: 6px; background: var(--g200); transform-origin: top; animation: nlBuild 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes nlBuild { 0% { opacity: 0; transform: scaleY(.25); } 18% { opacity: 1; transform: scaleY(1); } 82% { opacity: 1; transform: scaleY(1); } 100% { opacity: .12; transform: scaleY(.25); } }
.nl-web .scan { position: absolute; left: 0; right: 0; top: 0; height: 30px; background: linear-gradient(to bottom, rgba(48,115,241,.15), transparent); animation: nlScan 2.6s ease-in-out infinite; }
@keyframes nlScan { 0% { transform: translateY(-100%); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(2400%); opacity: 0; } }
.nl-web .build p { margin-top: 18px; font-size: 13px; color: var(--g500); }
.nl-web .dd::after { content: ""; animation: nlDots 1.6s steps(1) infinite; }
@keyframes nlDots { 0%, 20% { content: ""; } 40% { content: "."; } 60% { content: ".."; } 80%, 100% { content: "..."; } }
.nl-web .page { flex: 1; background: #fff; display: none; flex-direction: column; overflow: hidden; }
.nl-web .page.on { display: flex; animation: crmFade 500ms ease-out both; }
.nl-web .ph1 { display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; border-bottom: 1px solid var(--g100); font-size: 12px; color: var(--g500); }
.nl-web .lg { font-weight: 800; letter-spacing: .12em; color: #0F1E4A; font-size: 13px; }
.nl-web .hero { padding: 34px 40px 22px; background: linear-gradient(135deg, #0F1E4A, #3073F1); color: #fff; }
.nl-web .hero small { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.nl-web .hero h3 { margin: 8px 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; max-width: 640px; }
.nl-web .hero p { margin: 0; font-size: 13.5px; opacity: .85; }
.nl-web .its { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 14px; padding: 22px 40px 0; }
.nl-web .its > div { border: 1px solid var(--g200); border-radius: 12px; padding: 14px 16px; }
.nl-web .its b { display: block; font-size: 14px; color: var(--g800); }
.nl-web .its span { font-size: 12px; color: var(--g500); }
.nl-web .its .tot { background: #F0FDF4; border-color: #BBF7D0; }
.nl-web .its .tot b { font-size: 22px; color: #16A34A; margin-top: 2px; }
.nl-web .cta { padding: 20px 40px; }
.nl-web .cta .btn-p { background: #16A34A; height: 40px; padding: 0 18px; }
.nl-web .hero .np-var.hl { background: rgba(250,204,21,.4); }
.crm.narrow .nl-form { grid-template-columns: 1fr; }
.crm.narrow .nl-form > .card:first-child, .crm.narrow .nl-list > :nth-child(3), .crm.narrow .pp-stats .card:nth-child(n+4) { display: none; }
.crm.narrow .nl-list { grid-template-columns: 1fr 1fr; }
.crm.narrow .nl-web .its { grid-template-columns: 1fr; }
.crm .nl-web .hero h3 { color: #fff; }
