
/* v1.14.6 Configuracoes reorganizada: cartoes por assunto, chaves liga/desliga */
html body #tela-configuracoes .cf-wrap{padding:14px 14px 28px;display:flex;flex-direction:column;gap:14px}
html body #tela-configuracoes .cf-card{background:var(--card)!important;border:1px solid var(--borda)!important;border-radius:18px;padding:14px;box-shadow:0 1px 2px rgba(15,23,42,.05)}
html body #tela-configuracoes .cf-hd{display:flex;align-items:center;gap:11px;margin-bottom:12px}
html body #tela-configuracoes .cf-ic{width:36px;height:36px;flex:0 0 36px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:18px;background:rgba(74,128,192,.16)}
html body #tela-configuracoes .cf-tt{font-size:16px;font-weight:800;color:var(--texto)}
html body #tela-configuracoes .cf-sub,html body #tela-configuracoes .cf-s,html body #tela-configuracoes .cf-dica{font-size:12px;font-weight:500;color:var(--texto-sec);line-height:1.35}
html body #tela-configuracoes .cf-sub{margin-top:1px}
html body #tela-configuracoes .cf-fld{margin-bottom:10px}
html body #tela-configuracoes .cf-fld label,html body #tela-configuracoes .cf-fld .cfg-lbl{font-size:11px!important;font-weight:800!important;color:var(--texto-sec)!important;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
html body #tela-configuracoes .cf-fld .cfg-input{height:44px;font-size:15px;padding:0 12px}
html body #tela-configuracoes .cf-g2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html body #tela-configuracoes .cf-g3{display:grid;grid-template-columns:1fr 84px;gap:10px}
html body #tela-configuracoes .cf-g3b{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
/* logo */
html body #tela-configuracoes .cf-logo{display:flex;gap:12px;align-items:center;margin-bottom:14px;padding:10px;border:1px dashed var(--borda);border-radius:14px;background:var(--card-soft)}
html body #tela-configuracoes .cf-logo-prev{flex:0 0 112px;width:112px;height:56px;border-radius:10px;background:#fff;border:1px solid var(--borda);display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:11px;color:#8a97a8;text-align:center}
html body #tela-configuracoes .cf-logo-bt{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:0}
html body #tela-configuracoes .cf-logo-bt .cf-dica{grid-column:1/3}
/* botoes */
html body #tela-configuracoes .cf-bt{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border-radius:12px;border:1.5px solid var(--borda)!important;background:var(--card-soft)!important;background-image:none!important;color:var(--texto)!important;font-size:13px;font-weight:800;font-family:inherit;cursor:pointer;box-shadow:none!important;text-align:center;margin:0}
html body #tela-configuracoes .cf-bt-full{width:100%}
html body #tela-configuracoes .cf-bt-azul{color:#2f7fd1!important;border-color:#2f7fd1!important}
html body.tema-claro #tela-configuracoes .cf-bt-azul{color:#1a3a6b!important;border-color:#9fb4d3!important;background:#eef3fb!important}
html body #tela-configuracoes .cf-bt-verde{background:#22a355!important;border-color:#22a355!important;color:#fff!important}
html body #tela-configuracoes .cf-bt-x{color:#c0392b!important;border-color:rgba(192,57,43,.55)!important}
html body #tela-configuracoes .cf-bt-perigo{color:#c0392b!important;border-color:#c0392b!important;background:rgba(192,57,43,.08)!important}
html body:not(.tema-claro) #tela-configuracoes .cf-bt-x,html body:not(.tema-claro) #tela-configuracoes .cf-bt-perigo{color:#ff8a7e!important}
html body #tela-configuracoes .cf-salvar{background:#22a355;border:none;color:#fff;padding:0 16px;height:40px;border-radius:12px;font-size:14px;font-weight:800;cursor:pointer;font-family:inherit;white-space:nowrap}
/* aparencia */
html body #tela-configuracoes .cf-seg{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border-radius:14px;background:var(--card-soft);border:1px solid var(--borda);margin-bottom:6px}
html body #tela-configuracoes .cf-seg button{height:42px;border-radius:10px;border:2px solid transparent!important;background:transparent!important;color:var(--texto-sec);font-size:14px;font-weight:800;font-family:inherit;cursor:pointer}
html body.tema-claro #tela-configuracoes #btn-tema-claro,html body:not(.tema-claro) #tela-configuracoes #btn-tema-escuro{background:var(--card)!important;border-color:#2f7fd1!important;color:var(--texto)!important;box-shadow:0 1px 3px rgba(15,23,42,.18)}
/* linhas com chave */
html body #tela-configuracoes .cf-sw{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 0;border-bottom:1px solid var(--borda)}
html body #tela-configuracoes .cf-sw:last-child{border-bottom:0}
html body #tela-configuracoes .cf-sw span{font-size:14px;font-weight:700;color:var(--texto)}
html body #tela-configuracoes .cf-sw-lbl{cursor:pointer}
html body #tela-configuracoes .cf-mods{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html body #tela-configuracoes .cf-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:6px 10px 6px 12px;border:1px solid var(--borda);border-radius:12px;background:var(--card-soft)}
html body #tela-configuracoes .cf-chip span{font-size:13px;font-weight:700;color:var(--texto);line-height:1.2}
html body #tela-configuracoes .cf-sep{font-size:11px;font-weight:800;color:var(--texto-sec);text-transform:uppercase;letter-spacing:.06em;margin:14px 2px 8px}
/* a chave: o botao antigo vira interruptor */
html body #tela-configuracoes .cfg-toggle{position:relative;flex:0 0 46px;width:46px;height:28px;padding:0!important;border-radius:14px!important;border:0!important;background:#94a3b8!important;font-size:0!important;line-height:0;color:transparent!important;cursor:pointer;transition:background .15s}
html body #tela-configuracoes .cfg-toggle::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:left .15s}
html body #tela-configuracoes .cfg-toggle::before{content:'';position:absolute;top:-12px;bottom:-12px;left:-6px;right:-6px}
html body #tela-configuracoes .cfg-toggle.ativo{background:#22a355!important}
html body #tela-configuracoes .cfg-toggle.ativo::after{left:21px}
html body:not(.tema-claro) #tela-configuracoes .cfg-toggle{background:#3b4d6b!important}
html body:not(.tema-claro) #tela-configuracoes .cfg-toggle.ativo{background:#22a355!important}
html body #tela-configuracoes input.cf-chk{-webkit-appearance:none;appearance:none;position:relative;flex:0 0 46px;width:46px;min-height:28px;height:28px;border-radius:14px;background:#94a3b8!important;margin:0;cursor:pointer;transition:background .15s;border:0!important;box-shadow:none!important;padding:0}
html body:not(.tema-claro) #tela-configuracoes input.cf-chk{background:#3b4d6b!important}
html body #tela-configuracoes .cf-chk::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:left .15s}
html body #tela-configuracoes input.cf-chk:checked{background:#22a355!important}
html body #tela-configuracoes input.cf-chk:checked::after{left:21px}
html body #tela-configuracoes .cf-sw+.cf-bt-full{margin-top:10px}
html body:not(.tema-claro) #tela-configuracoes .cfg-input::placeholder{color:#7f8da3!important}
html.zm2 #tela-configuracoes .cf-mods,html.zm3 #tela-configuracoes .cf-mods,html.zm4 #tela-configuracoes .cf-mods,html.zm5 #tela-configuracoes .cf-mods,html.zm3 #tela-configuracoes .cf-g2,html.zm4 #tela-configuracoes .cf-g2,html.zm5 #tela-configuracoes .cf-g2,html.zm3 #tela-configuracoes .cf-g3,html.zm4 #tela-configuracoes .cf-g3,html.zm5 #tela-configuracoes .cf-g3,html.zm3 #tela-configuracoes .cf-g3b,html.zm4 #tela-configuracoes .cf-g3b,html.zm5 #tela-configuracoes .cf-g3b{grid-template-columns:1fr!important}
html.zm3 #tela-configuracoes .cf-logo,html.zm4 #tela-configuracoes .cf-logo,html.zm5 #tela-configuracoes .cf-logo{flex-direction:column;align-items:stretch}
html.zm3 #tela-configuracoes .cf-logo-prev,html.zm4 #tela-configuracoes .cf-logo-prev,html.zm5 #tela-configuracoes .cf-logo-prev{flex:0 0 auto;width:100%}
html.zm3 #tela-configuracoes .cf-logo-bt,html.zm4 #tela-configuracoes .cf-logo-bt,html.zm5 #tela-configuracoes .cf-logo-bt{grid-template-columns:1fr}
html.zm3 #tela-configuracoes .cf-logo-bt .cf-dica,html.zm4 #tela-configuracoes .cf-logo-bt .cf-dica,html.zm5 #tela-configuracoes .cf-logo-bt .cf-dica{grid-column:1}
html.zm4 #tela-configuracoes .cf-wrap,html.zm5 #tela-configuracoes .cf-wrap{padding-left:8px;padding-right:8px}
html body #tela-configuracoes .cf-sw+.cf-fld{margin-top:10px}
/* blocos que abrem */
html body #tela-configuracoes .cf-abre{display:none;margin-top:12px}
html body #tela-configuracoes .cf-abre.on{display:block}
html body #tela-configuracoes .cf-bt-full+.cf-abre{margin-top:12px}
html body #tela-configuracoes .cf-prev-t{font-size:11px;font-weight:800;color:var(--texto-sec);text-transform:uppercase;letter-spacing:.05em;margin:4px 0 6px}
html body #tela-configuracoes .cf-prev{background:#fff;padding:8px;border-radius:10px;display:inline-block;max-width:100%;overflow:auto;margin-bottom:10px;border:1px solid var(--borda)}
html body #tela-configuracoes .cf-tool{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
html body #tela-configuracoes .cf-tool button,html body #tela-configuracoes .cf-tool select{height:38px;min-width:38px;padding:0 10px;border-radius:10px;border:1.5px solid var(--borda);background:var(--card-soft);color:var(--texto);font-size:13px;font-weight:800;font-family:inherit}
html body #tela-configuracoes .cf-editor{max-height:240px;overflow:auto;padding:12px;border-radius:12px;border:1.5px solid var(--borda);background:#fff;color:#1a2540;font-size:13px;line-height:1.5;margin-bottom:10px}
html body #tela-configuracoes .cf-ok{font-size:12px;font-weight:800;color:#22a355;min-height:16px;margin-top:6px;text-align:center}
html body #tela-configuracoes .cf-seg-card{margin-top:10px;padding-top:12px;border-top:1px solid var(--borda)}
html body #tela-configuracoes .cf-seg-card .cf-s{margin-bottom:8px}
html body #tela-configuracoes .cf-demo{font-size:13px;font-weight:700;color:var(--texto);margin-bottom:10px}
html body #tela-configuracoes #info-ultimo-backup[style*="85, 85, 85"]{color:var(--texto-sec)!important}
html body #tela-configuracoes .cf-perigo-t{display:block;width:100%;margin-top:14px;padding:10px 2px 2px;background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;border-top:1px solid var(--borda)!important;border-radius:0!important;color:#c0392b;font-size:13px;font-weight:800;text-align:left;font-family:inherit;cursor:pointer}
html body:not(.tema-claro) #tela-configuracoes .cf-perigo-t{color:#ff8a7e}
/* v1.14.8 contraste: botoes que parecem botao, campos bem visiveis */
html body.tema-claro #tela-configuracoes .cf-card{border:1.5px solid #b7c8e0!important;box-shadow:0 2px 8px rgba(20,40,80,.10)}
html body:not(.tema-claro) #tela-configuracoes .cf-card{border:1.5px solid #34527f!important}
html body.tema-claro #tela-configuracoes .cf-fld .cfg-input,html body.tema-claro #tela-configuracoes .cf-g3b input.cfg-input{background:#fff!important;border:2px solid #7f9bc4!important;color:#10213f!important;font-weight:600;box-shadow:inset 0 1px 2px rgba(20,40,80,.08)}
html body:not(.tema-claro) #tela-configuracoes .cf-fld .cfg-input{background:#0a1424!important;border:2px solid #4f75ad!important;color:#fff!important;font-weight:600}
html body.tema-claro #tela-configuracoes .cf-fld .cfg-input:focus{border-color:#1a56c4!important;box-shadow:0 0 0 3px rgba(26,86,196,.18)}
html body:not(.tema-claro) #tela-configuracoes .cf-fld .cfg-input:focus{border-color:#6ea8ff!important;box-shadow:0 0 0 3px rgba(110,168,255,.25)}
html body.tema-claro #tela-configuracoes .cf-fld .cfg-input::placeholder{color:#5f7089!important;opacity:1}
html body:not(.tema-claro) #tela-configuracoes .cf-fld .cfg-input::placeholder{color:#93a6c2!important;opacity:1}
html body.tema-claro #tela-configuracoes .cf-fld label,html body.tema-claro #tela-configuracoes .cf-fld .cfg-lbl{color:#3a4f73!important}
html body:not(.tema-claro) #tela-configuracoes .cf-fld label,html body:not(.tema-claro) #tela-configuracoes .cf-fld .cfg-lbl{color:#b8c7de!important}
/* botoes */
html body.tema-claro #tela-configuracoes .cf-bt{background:#dbe7f8!important;border:2px solid #6f8fbf!important;color:#10285a!important;box-shadow:0 2px 0 rgba(31,62,120,.18)!important}
html body:not(.tema-claro) #tela-configuracoes .cf-bt{background:#2a4a7c!important;border:2px solid #5f8ccc!important;color:#fff!important;box-shadow:0 2px 0 rgba(0,0,0,.35)!important}
html body.tema-claro #tela-configuracoes .cf-bt-azul{background:#1a3a6b!important;border-color:#1a3a6b!important;color:#fff!important}
html body:not(.tema-claro) #tela-configuracoes .cf-bt-azul{background:#2f6fd0!important;border-color:#6ea8ff!important;color:#fff!important}
html body.tema-claro #tela-configuracoes .cf-bt-x{background:#fff!important;border-color:#c0392b!important;color:#b03024!important}
html body:not(.tema-claro) #tela-configuracoes .cf-bt-x{background:rgba(255,107,95,.16)!important;border-color:#ff6b5f!important;color:#ffc2bb!important}
html body #tela-configuracoes .cf-bt-perigo{background:#c0392b!important;border-color:#c0392b!important;color:#fff!important}
html body #tela-configuracoes .cf-bt-verde{background:#1e9a4e!important;border-color:#1e9a4e!important;color:#fff!important}
html body #tela-configuracoes .cf-salvar{box-shadow:0 2px 0 rgba(0,0,0,.25)}
html body #tela-configuracoes .cf-tool button,html body #tela-configuracoes .cf-tool select{border:2px solid #6f8fbf;background:#dbe7f8;color:#10285a}
html body:not(.tema-claro) #tela-configuracoes .cf-tool button,html body:not(.tema-claro) #tela-configuracoes .cf-tool select{background:#2a4a7c;border-color:#5f8ccc;color:#fff}
/* tema */
html body #tela-configuracoes .cf-seg{border:2px solid #7f9bc4}
html body:not(.tema-claro) #tela-configuracoes .cf-seg{border-color:#4f75ad}
html body.tema-claro #tela-configuracoes #btn-tema-claro,html body:not(.tema-claro) #tela-configuracoes #btn-tema-escuro{background:#1a3a6b!important;border-color:#1a3a6b!important;color:#fff!important;box-shadow:none}
html body:not(.tema-claro) #tela-configuracoes #btn-tema-escuro{background:#2f6fd0!important;border-color:#6ea8ff!important}
html body.tema-claro #tela-configuracoes .cf-seg button{color:#3a4f73}
html body:not(.tema-claro) #tela-configuracoes .cf-seg button{color:#c5d3e8}
/* chaves e chips */
html body:not(.tema-claro) #tela-configuracoes .cfg-toggle,html body:not(.tema-claro) #tela-configuracoes input.cf-chk{background:#5d7396!important}
html body:not(.tema-claro) #tela-configuracoes .cfg-toggle.ativo,html body:not(.tema-claro) #tela-configuracoes input.cf-chk:checked{background:#22a355!important}
html body.tema-claro #tela-configuracoes .cf-chip{border:1.5px solid #b7c8e0;background:#f1f6fd}
html body:not(.tema-claro) #tela-configuracoes .cf-chip{border:1.5px solid #34527f;background:#1c3257}
html body.tema-claro #tela-configuracoes .cf-logo,html body.tema-claro #tela-configuracoes .cf-logo-prev{border-color:#7f9bc4}
html body #tela-configuracoes .cf-sw{border-bottom-color:rgba(127,155,196,.45)}
html body.tema-claro #tela-configuracoes .cf-sub,html body.tema-claro #tela-configuracoes .cf-s,html body.tema-claro #tela-configuracoes .cf-dica{color:#4a5e80}
html body:not(.tema-claro) #tela-configuracoes .cf-sub,html body:not(.tema-claro) #tela-configuracoes .cf-s,html body:not(.tema-claro) #tela-configuracoes .cf-dica{color:#a9b9d3}
html body.tema-claro #tela-configuracoes .cf-fld .cfg-input::placeholder{color:#66789a!important;-webkit-text-fill-color:#66789a!important;opacity:1!important;font-weight:400!important}
html body:not(.tema-claro) #tela-configuracoes .cf-fld .cfg-input::placeholder{color:#7a8fb3!important;-webkit-text-fill-color:#7a8fb3!important;opacity:1!important;font-weight:400!important}
html body.tema-claro #tela-configuracoes .cf-fld .cfg-input{-webkit-text-fill-color:#10213f!important}
html body:not(.tema-claro) #tela-configuracoes .cf-fld .cfg-input{-webkit-text-fill-color:#fff!important}
html body.tema-claro #tela-configuracoes .cf-bt.cf-bt-perigo,html body:not(.tema-claro) #tela-configuracoes .cf-bt.cf-bt-perigo{background:#c0392b!important;border-color:#962b20!important;color:#fff!important}
html body.tema-claro #tela-configuracoes .cf-bt.cf-bt-verde,html body:not(.tema-claro) #tela-configuracoes .cf-bt.cf-bt-verde{background:#1e9a4e!important;border-color:#16783b!important;color:#fff!important}
/* logo na tela inicial + previa na config */
.home-logo-wrap{position:absolute;left:12px;top:50%;transform:translateY(-50%);z-index:3;display:none;line-height:0}
#home-logo-wrap{display:none!important}
.home-logo-wrap img{display:block;height:54px;width:auto;max-width:clamp(36px,calc(50vw - 150px),72px);object-fit:contain;background:none;border:0;padding:0;filter:brightness(1.45) contrast(1.06) saturate(1.1) drop-shadow(0 2px 4px rgba(0,0,0,.30))}
.home-logo-wrap.redonda{width:52px;height:52px;border-radius:50%;overflow:hidden;box-shadow:0 2px 7px rgba(0,0,0,.30)}
.home-logo-wrap.redonda img{width:100%;height:100%;max-width:none;object-fit:cover;transform:scale(1.08);filter:brightness(1.4) contrast(1.06) saturate(1.1)}
.home-logo-wrap.escura{background:#1a3a6b}
.home-logo-wrap.escura img{filter:none}
.home-logo-wrap.escura:not(.redonda){padding:4px;border-radius:11px;border:1px solid rgba(255,255,255,.35)}
html body #tela-configuracoes .cf-logo-prev.escura{background-image:none;background-color:#1a3a6b}
html body #tela-configuracoes .cf-logo{display:block;padding:10px}
html body #tela-configuracoes .cf-logo-prev{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;flex:none;height:110px;padding:10px;margin-bottom:10px;border-radius:12px;border:1.5px solid #9db3d4;background-color:#fff;background-image:linear-gradient(45deg,#eef2f8 25%,transparent 25%,transparent 75%,#eef2f8 75%),linear-gradient(45deg,#eef2f8 25%,transparent 25%,transparent 75%,#eef2f8 75%);background-size:16px 16px;background-position:0 0,8px 8px;color:#6b7c96;font-size:12px;font-weight:600;text-align:center;line-height:1.35}
html body #tela-configuracoes .cf-logo-prev span{font-size:26px;opacity:.7}
html body #tela-configuracoes .cf-logo-prev.tem{box-sizing:border-box}
html body #tela-configuracoes .cf-logo-bt{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html body #tela-configuracoes .cf-logo-bt .cf-dica{grid-column:1/3;text-align:center}
