/* Controle de contas · Central dos Anúncios · mobile-first (base 360–390px) */
.cc, .cc *, .cc *::before, .cc *::after { box-sizing: border-box; }
.cc {
  --roxo: #1F3FD6; --btn: #1F3FD6; --btn-h: #1830A8; --azul: #5F9EF5; --escuro: #14181F;
  --bg: #F7F5F0; --linha: #E2DED5; --texto: #14181F; --muted: #5A6272;
  --verde: #0E8A5F; --verde-t: #0B7550; --verm: #B4432F; --card: #fff;
  --marca: linear-gradient(160deg, #1F3FD6, #1830A8);
  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --abas-h: 64px;
  font-family: var(--fonte); color: var(--texto); font-size: 16px; line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}
html:has(.cc), body:has(.cc) { margin: 0; background: #F7F5F0; }
body:has(.cc) { min-height: 100dvh; }
.cc { max-width: 560px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative;
  padding-bottom: calc(var(--abas-h) + 96px + env(safe-area-inset-bottom)); }
.cc h1, .cc h2, .cc h3, .cc p { margin: 0; }
.cc h1, .cc h2, .cc h3, .cc .cc-num b, .cc .cc-fab, .cc .cc-btn, .cc .cc-btn-sec { font-family: 'Manrope', var(--fonte); }
.cc button, .cc input, .cc select { font: inherit; color: inherit; }
.cc [hidden] { display: none !important; }
.cc .cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cc :focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }

/* topo */
.cc .cc-topo { background: var(--marca); color: #fff; padding: calc(14px + env(safe-area-inset-top)) 20px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc .cc-logo { background: #fff; border-radius: 999px; padding: 6px 14px; display: inline-flex; }
.cc .cc-logo img { height: 22px; width: auto; display: block; }
.cc .cc-topo h1 { font-size: 1rem; font-weight: 600; text-align: right; }

main { display: block; }
.cc #cc-main { padding: 16px 16px 0; }

/* filtro */
.cc .cc-filtro { background: var(--card); border: 1px solid var(--linha); border-radius: 16px; padding: 12px; margin-bottom: 16px; }
.cc .cc-filtro select, .cc .cc-filtro input[type=date], .cc .cc-busca input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--linha); border-radius: 12px; background: #fff; font-size: 1rem; }
.cc .cc-filtro select { font-weight: 600; appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314181F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.cc .cc-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cc .cc-custom label { font-size: .8125rem; color: var(--muted); display: grid; gap: 4px; }
.cc .cc-faixa { font-size: .8125rem; color: var(--muted); margin: 8px 2px 4px; }
.cc .cc-sw { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 2px; cursor: pointer; position: relative; }
.cc .cc-sw input { position: absolute; opacity: 0; width: 52px; height: 32px; margin: 0; left: 0; }
.cc .cc-sw-trilho { flex: none; width: 52px; height: 32px; border-radius: 999px; background: #8A92A6; position: relative; transition: background .2s; }
.cc .cc-sw-trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cc .cc-sw input:checked + .cc-sw-trilho { background: var(--btn); }
.cc .cc-sw input:checked + .cc-sw-trilho::after { transform: translateX(20px); }
.cc .cc-sw input:focus-visible + .cc-sw-trilho { outline: 3px solid var(--azul); outline-offset: 2px; }
.cc .cc-sw-txt { font-weight: 600; font-size: .9375rem; }
.cc .cc-sw-txt small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }

/* números */
.cc .cc-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.cc .cc-num { background: var(--card); border: 1px solid var(--linha); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.cc .cc-num-l { display: block; font-size: .875rem; color: var(--muted); font-weight: 500; }
.cc .cc-num b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cc .cc-num b::before { content: "R$ "; font-size: .75em; font-weight: 600; opacity: .8; }
.cc .cc-ent b { color: var(--verde-t); }
.cc .cc-sai b { color: var(--verm); }
.cc .cc-sal { grid-column: 1 / -1; background: var(--marca); border: 0; color: #fff; padding: 18px 20px; }
.cc .cc-sal .cc-num-l { color: #D5DCFA; }
.cc .cc-sal b { font-size: 2.5rem; }
.cc .cc-sal.neg b { color: #FFD3C9; }

.cc .cc-bloco-cab { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 8px; min-height: 44px; }
.cc .cc-bloco-cab h3, .cc .cc-card h3 { font-size: 1.0625rem; font-weight: 600; }
.cc .cc-link { background: none; border: 0; color: var(--btn); font-weight: 600; min-height: 44px; padding: 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cc .cc-link:hover { color: var(--btn-h); }

/* lista */
.cc .cc-lista { display: grid; gap: 8px; }
.cc .cc-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; background: var(--card);
  border: 1px solid var(--linha); border-radius: 14px; padding: 10px 6px 10px 14px; min-width: 0; }
.cc .cc-item-t { min-width: 0; }
.cc .cc-item-n { font-weight: 600; overflow-wrap: anywhere; }
.cc .cc-item-m { font-size: .8125rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; margin-top: 2px; }
.cc .cc-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.cc .cc-item-d { display: flex; align-items: center; gap: 2px; }
.cc .cc-item-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.cc .cc-item-v.e { color: var(--verde-t); }
.cc .cc-item-v.s { color: var(--verm); }
.cc .cc-x { width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.cc .cc-x:hover { background: #FBEAE6; color: #8E2F1E; }
.cc .cc-tag { font-size: .6875rem; font-weight: 600; background: #E7F0FE; color: #1F4F99; border-radius: 6px; padding: 1px 6px; }
.cc .cc-vazio { background: var(--card); border: 1px dashed #C5CBDD; border-radius: 14px; padding: 24px 16px; text-align: center; color: var(--muted); }
.cc .cc-conta-lanc { font-size: .8125rem; color: var(--muted); margin: 12px 2px 8px; }

/* campos e botões */
.cc .cc-busca { display: block; margin-bottom: 12px; }
.cc .cc-seg { display: flex; background: #E4E9FB; border-radius: 14px; padding: 4px; gap: 4px; }
.cc .cc-seg button { flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 10px; font-weight: 600; font-size: .9375rem; color: var(--muted); cursor: pointer; padding: 0 6px; }
.cc .cc-seg button[aria-pressed=true] { background: #fff; color: var(--escuro); box-shadow: 0 1px 4px rgba(42,15,82,.15); }
.cc .cc-seg button:hover { color: var(--escuro); }
.cc .cc-seg.sai button[aria-pressed=true] { background: var(--verm); color: #fff; }
.cc .cc-seg.ent button[aria-pressed=true] { background: var(--verde-t); color: #fff; }
.cc .cc-btn, .cc .cc-btn-sec { width: 100%; min-height: 52px; border-radius: 14px; font-weight: 700; font-size: 1rem; cursor: pointer; margin-top: 10px; padding: 0 16px; }
.cc .cc-btn { background: var(--btn); color: #fff; border: 0; }
.cc .cc-btn:hover, .cc .cc-btn:active { background: var(--btn-h); color: #fff; }
.cc .cc-btn[disabled] { background: #5A6272; color: #fff; cursor: not-allowed; }
.cc .cc-btn-sec { background: #fff; color: var(--escuro); border: 1.5px solid #C5CBDD; }
.cc .cc-btn-sec:hover, .cc .cc-btn-sec:active { background: #E4E9FB; color: var(--escuro); border-color: var(--btn); }
.cc .cc-card { background: var(--card); border: 1px solid var(--linha); border-radius: 16px; padding: 16px; margin: 16px 0; }
.cc .cc-ajuda { font-size: .875rem; color: var(--muted); margin-top: 4px; }
.cc .cc-msg { font-size: .875rem; margin-top: 10px; color: var(--verde-t); }
.cc .cc-msg.erro { color: var(--verm); }
.cc .cc-lista .cc-chk { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .8125rem; color: var(--muted); cursor: pointer; }
.cc .cc-chk input { width: 22px; height: 22px; accent-color: var(--btn); }

/* relatórios */
.cc #rel { margin-top: 16px; display: grid; gap: 12px; }
.cc .cc-rel-t { font-size: 1.0625rem; font-weight: 600; margin: 8px 2px 0; }
.cc .cc-rel-s { font-size: .8125rem; color: var(--muted); margin: 0 2px; }
.cc .cc-linha { background: var(--card); border: 1px solid var(--linha); border-radius: 14px; padding: 12px 14px; }
.cc .cc-linha-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cc .cc-linha-cab b { font-weight: 600; overflow-wrap: anywhere; }
.cc .cc-linha-cab span { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc .pos { color: var(--verde-t); } .cc .neg { color: var(--verm); }
.cc .cc-barra-l { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; font-size: .8125rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cc .cc-barra { height: 10px; background: #E8EBF4; border-radius: 99px; overflow: hidden; }
.cc .cc-barra i { display: block; height: 100%; border-radius: 99px; min-width: 2px; }
.cc .cc-barra-g { height: 12px; background: #E8EBF4; border-radius: 99px; overflow: hidden; margin: 6px 0; }
.cc .cc-barra-g i { display: block; height: 100%; border-radius: 99px; }
.cc .cc-sub { font-size: .8125rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cc .cc-meta-fim { font-weight: 600; }
.cc .cc-tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: .75rem; color: var(--muted); }
.cc .cc-tres b { display: block; font-size: .9375rem; color: var(--texto); font-variant-numeric: tabular-nums; }
.cc .cc-tres b.pos { color: var(--verde-t); } .cc .cc-tres b.neg { color: var(--verm); }
.cc .cc-cab-rel { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* botão Lançar e abas */
.cc .cc-fab { position: fixed; right: max(16px, calc(50% - 280px + 16px)); bottom: calc(var(--abas-h) + 16px + env(safe-area-inset-bottom));
  z-index: 20; min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; background: var(--btn); color: #fff; font-weight: 700; font-size: 1.0625rem;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 8px 24px rgba(42,15,82,.35); }
.cc .cc-fab:hover, .cc .cc-fab:active { background: var(--btn-h); color: #fff; }
.cc .cc-abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--linha); padding-bottom: env(safe-area-inset-bottom); }
.cc .cc-abas button { min-height: var(--abas-h); border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .6875rem; font-weight: 600; color: var(--muted); cursor: pointer; padding: 0 2px; }
.cc .cc-abas svg { width: 24px; height: 24px; }
.cc .cc-abas button[aria-current=page] { color: var(--btn); }
.cc .cc-abas button:hover { color: var(--btn-h); background: #EEF1FD; }

/* investimentos e ajustes */
.cc .cc-abas { grid-template-columns: repeat(5, 1fr); }
.cc .cc-abas button { font-size: .6875rem; min-width: 0; white-space: nowrap; }
@media (max-width: 379px) { .cc .cc-abas button { font-size: .65625rem; } }
@media (max-width: 339px) { .cc .cc-abas button { font-size: .59375rem; } }
.cc .cc-peq { font-size: .75rem; font-weight: 500; color: var(--muted); }
.cc .cc-inv-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; width: 100%; text-align: left; background: var(--card);
  border: 1px solid var(--linha); border-radius: 14px; padding: 12px 14px; min-height: 56px; cursor: pointer; }
.cc .cc-inv-item:hover, .cc .cc-inv-item:active { border-color: var(--btn); background: #F3F5FD; }
.cc .cc-inv-t { display: grid; gap: 2px; min-width: 0; }
.cc .cc-inv-t b { font-weight: 600; overflow-wrap: anywhere; }
.cc .cc-inv-v { display: grid; text-align: right; font-variant-numeric: tabular-nums; }
.cc .cc-inv-v small { font-size: .8125rem; font-weight: 600; }
.cc .cc-inv-v small.pos { color: var(--verde-t); } .cc .cc-inv-v small.neg { color: var(--verm); }
.cc .cc-edit { font-size: .875rem; font-weight: 600; color: var(--btn); }
.cc .cc-aviso-inv { background: #FFF4E0; border: 1px solid #F0D08A; color: #5C3B00; border-radius: 12px; padding: 10px 14px; margin-top: 8px; font-size: .875rem; }
.cc .cc-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.cc .cc-dl { margin: 12px 0 0; display: grid; gap: 0; }
.cc .cc-kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linha); font-size: .9375rem; }
.cc .cc-kv dt { color: var(--muted); } .cc .cc-kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.cc .cc-perigo { color: #8E2F1E; border-color: #E3B3A8; }
.cc .cc-perigo:hover, .cc .cc-perigo:active { background: #FBEAE6; color: #8E2F1E; border-color: var(--verm); }
.cc .cc-chk-f { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; font-size: .9375rem; cursor: pointer; }
.cc .cc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cc .cc-chip { display: inline-flex; align-items: center; gap: 4px; background: #E4E9FB; border-radius: 999px; padding: 4px 4px 4px 14px; font-size: .875rem; font-weight: 600; }
.cc .cc-chip button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cc .cc-chip button:hover { background: #FBEAE6; color: #8E2F1E; }
.cc .cc-lst-linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.cc .cc-lst-linha:last-child { border-bottom: 0; }
.cc .cc-lst-linha div { min-width: 0; }
.cc .cc-f-grupo input[type=color] { min-height: 52px; }
.cc #adm-corpo .cc-card, .cc #adm-corpo .cc-btn { margin-top: 16px; }
.cc .cc-camada { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 14px; }
.cc .cc-camada span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.cc .cc-st { font-size: .75rem !important; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.cc .cc-st.ok { background: #DDF3EA; color: #0B6244; } .cc .cc-st.parc { background: #FFF1D6; color: #7A4B00; }
.cc .cc-st.falta { background: #E4E9FB; color: #3F4658; } .cc .cc-st.passou { background: #FBE3DD; color: #8E2F1E; }
.cc .cc-off { opacity: .55; }
.cc .cc-f-dupla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cc .cc-f-dupla > *, .cc .cc-f-grupo input, .cc .cc-f-grupo select { min-width: 0; max-width: 100%; }
.cc input[type=date] { font-size: .9375rem; padding: 0 8px; }

/* folha */
.cc .cc-fundo { position: fixed; inset: 0; background: rgba(22,19,26,.55); z-index: 40; }
.cc .cc-folha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 22px 22px 0 0;
  max-height: 94dvh; display: flex; flex-direction: column; animation: cc-sobe .22s ease-out; }
@keyframes cc-sobe { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.cc .cc-folha-cab { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 4px 20px; }
.cc .cc-folha-cab h2 { font-size: 1.25rem; font-weight: 700; }
.cc .cc-fechar { width: 48px; height: 48px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.cc .cc-fechar:hover { background: #E4E9FB; color: var(--escuro); }
.cc .cc-folha-corpo { overflow-y: auto; padding: 4px 20px calc(20px + env(safe-area-inset-bottom)); }
.cc .cc-f-grupo { margin-top: 14px; display: block; }
.cc .cc-f-grupo > span, .cc .cc-f-rot { display: block; font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.cc .cc-f-grupo input:not([type=checkbox]), .cc .cc-f-grupo select { width: 100%; min-height: 52px; border: 1.5px solid var(--linha); border-radius: 12px; padding: 0 14px; font-size: 1rem; background: #fff; }
.cc .cc-valor { display: flex; align-items: center; gap: 8px; border: 2px solid var(--btn); border-radius: 14px; padding: 0 14px; background: #fff; }
.cc .cc-valor span { font-size: 1.25rem; font-weight: 700; color: var(--muted); }
.cc .cc-valor input { border: 0 !important; min-height: 64px !important; font-size: 2rem !important; font-weight: 700; padding: 0 !important; width: 100%; outline: none; background: transparent !important; font-variant-numeric: tabular-nums; }
.cc .cc-valor:focus-within { box-shadow: 0 0 0 3px rgba(95,158,245,.5); }
.cc .cc-erro { color: var(--verm); font-size: .875rem; margin-top: 6px; }
.cc .cc-f-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc .cc-meta-l { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 10px; margin-top: 8px; }
.cc .cc-meta-l span { font-weight: 500; }
.cc .cc-meta-l input { width: 100%; min-height: 48px; border: 1.5px solid var(--linha); border-radius: 12px; padding: 0 12px; text-align: right; font-size: 1rem; }

/* aviso */
.cc .cc-toast { position: fixed; left: 16px; right: 16px; max-width: 528px; margin: 0 auto; bottom: calc(var(--abas-h) + 84px + env(safe-area-inset-bottom)); z-index: 60;
  background: #14181F; color: #fff; border-radius: 14px; padding: 12px 8px 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9375rem; }
.cc .cc-toast button { min-height: 44px; border: 0; background: none; color: #CFE0FF; font-weight: 700; padding: 0 12px; cursor: pointer; }
.cc .cc-toast button:hover { color: #fff; background: rgba(255,255,255,.12); border-radius: 10px; }

@media (min-width: 640px) { .cc { box-shadow: 0 0 0 1px var(--linha); } .cc .cc-folha { border-radius: 22px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .cc * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Central das Contas */
.cc .cc-abas4 { grid-template-columns: repeat(4, 1fr); }
.cc .cc-logo-txt { background: #fff; color: #14181F; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .875rem; }
.cc .cc-abas5 { grid-template-columns: repeat(5, 1fr); }
.cc .cc-item-b { background: none; border: 0; text-align: left; padding: 0; cursor: pointer; min-height: 44px; width: 100%; display: block; border-radius: 10px; }
.cc .cc-item-b:hover { background: #F3F5FD; }
.cc .cc-seg.tr button[aria-pressed=true] { background: var(--escuro); color: #fff; }

/* Identidade Central da IA: Hora dourada (cobalto, âmbar só no destaque), Manrope nos títulos, Inter no texto */
.cc { --ambar: #F5A524; --ambar-h: #E0911A; }
.cc .cc-topo { background: #1F3FD6; }
.cc .cc-logo-img { height: 30px; width: auto; display: block; }
.cc .cc-fab { background: var(--ambar); color: #14181F; box-shadow: 0 8px 24px rgba(20,24,31,.3); }
.cc .cc-fab:hover, .cc .cc-fab:active { background: var(--ambar-h); color: #14181F; }
.cc .cc-sal { background: #1F3FD6; }
.cc .cc-seg.sai button[aria-pressed=true], .cc .cc-seg.ent button[aria-pressed=true], .cc .cc-seg.tr button[aria-pressed=true] { color: #fff; }

/* conta: avatar no topo e tela de entrada */
.cc .cc-topo h1 { margin-left: auto; }
.cc .cc-avatar { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; border: 2px solid #fff; background: #fff; color: #1F3FD6; font: 800 1rem 'Manrope', var(--fonte); cursor: pointer; padding: 0; }
.cc .cc-avatar:hover { background: #E4E9FB; }
.cc-acesso { position: fixed; inset: 0; z-index: 50; background: #F7F5F0; overflow-y: auto; padding: calc(24px + env(safe-area-inset-top)) 16px 32px; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: #14181F; }
.cc-acesso[hidden] { display: none; }
.cc-acesso *, .cc-acesso *::before, .cc-acesso *::after { box-sizing: border-box; }
.cc-ent-caixa { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid #E2DED5; border-radius: 20px; padding: 24px 20px; }
.cc-ent-logo { display: block; height: 30px; margin: 0 auto 18px; background: #1F3FD6; padding: 8px 14px; border-radius: 12px; box-sizing: content-box; }
.cc-acesso h2 { font: 800 1.375rem 'Manrope', system-ui, sans-serif; margin: 0 0 8px; }
.cc-ent-p { font-size: .9375rem; color: #5A6272; margin: 0 0 8px; }
.cc-ent-campo { display: block; margin-top: 14px; }
.cc-ent-campo > span { display: block; font-size: .875rem; font-weight: 600; color: #5A6272; margin-bottom: 6px; }
.cc-ent-campo input { width: 100%; min-height: 52px; border: 1.5px solid #E2DED5; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 1rem; background: #fff; color: #14181F; }
.cc-acesso :focus-visible { outline: 3px solid #5F9EF5; outline-offset: 2px; }
.cc-ent-btn { width: 100%; min-height: 52px; margin-top: 16px; border: 0; border-radius: 14px; background: #1F3FD6; color: #fff; font: 700 1rem 'Manrope', system-ui, sans-serif; cursor: pointer; }
.cc-ent-btn:hover, .cc-ent-btn:active { background: #1830A8; }
.cc-ent-btn[disabled] { background: #5A6272; cursor: not-allowed; }
.cc-ent-msg { font-size: .875rem; margin: 12px 0 0; color: #0B7550; min-height: 1.2em; }
.cc-ent-msg.erro { color: #B4432F; }
.cc-ent-ou { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: #5A6272; font-size: .875rem; }
.cc-ent-ou::before, .cc-ent-ou::after { content: ''; flex: 1; height: 1px; background: #E2DED5; }
.cc-ent-outra { display: block; margin: 10px auto 0; min-height: 44px; padding: 0 12px; background: none; border: 0; color: #1F3FD6; font: inherit; font-size: .9375rem; text-decoration: underline; cursor: pointer; }
.cc-ent-google { display: flex; justify-content: center; min-height: 44px; font-size: .875rem; color: #5A6272; }
.cc-ent-links { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.cc-ent-links button { background: none; border: 0; min-height: 44px; padding: 0 4px; color: #1F3FD6; font: 600 .9375rem 'Inter', sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc-ent-links button:hover { color: #1830A8; }
.cc-ent-ck { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .9375rem; }
.cc-ent-ck input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.cc-ent-termos { margin-top: 10px; font-size: .875rem; color: #5A6272; }
.cc-ent-termos summary { cursor: pointer; min-height: 32px; }
.cc-ent-restrito { margin: 18px 0 0; padding: 12px; background: #FFF4DC; border-radius: 12px; font-size: .8125rem; color: #5A4210; line-height: 1.45; }

/* Financiar e gráfico de preço */
.cc .cc-menu-mais { position: fixed; right: max(8px, calc(50% - 280px + 8px)); bottom: calc(var(--abas-h) + 8px + env(safe-area-inset-bottom)); z-index: 40; min-width: 200px; background: #fff; border: 1px solid var(--linha); border-radius: 14px; box-shadow: 0 12px 32px rgba(20,30,80,.22); padding: 6px; }
.cc .cc-menu-mais[hidden] { display: none; }
.cc .cc-menu-mais button { width: 100%; min-height: 48px; border: 0; background: none; border-radius: 10px; display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 12px; font-size: .9375rem; font-weight: 600; color: var(--ink, #1a1f3a); cursor: pointer; }
.cc .cc-menu-mais svg { width: 24px; height: 24px; flex: none; }
.cc .cc-menu-mais button { justify-content: flex-start; }
.cc .cc-menu-mais button[aria-current=page] { color: var(--btn); background: #EEF1FD; }
.cc .cc-menu-mais button:hover { color: var(--btn-h); background: #EEF1FD; }
.cc .cc-graf { display: block; width: 100%; height: auto; margin-top: 6px; }
.cc .cc-card + .cc-card { margin-top: 12px; }
.cc .cc-btn[disabled], .cc .cc-btn-sec[disabled] { opacity: .45; cursor: not-allowed; }
.cc .cc-avatar { overflow: hidden; }
.cc .cc-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.cc .cc-conta-id { display: flex; align-items: center; gap: 12px; }
.cc .cc-foto { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }

/* Planejar e filtros */
.cc .cc-det { margin-top: 12px; border: 1px solid var(--linha); border-radius: 14px; background: var(--card); padding: 0 14px; }
.cc .cc-det > summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; list-style: none; }
.cc .cc-det > summary::-webkit-details-marker { display: none; }
.cc .cc-det > summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.cc .cc-det[open] > summary::after { content: '▴'; }
.cc .cc-fil { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding-bottom: 8px; }
.cc .cc-fil-c { margin-top: 8px; min-width: 0; }
.cc .cc-det .cc-link { margin: 0 0 12px; }
.cc .cc-tag { display: inline-block; font-size: .6875rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-top: 2px; }
.cc .cc-tag-fixo { background: #E4E9FB; color: #1830A8; }
.cc .cc-tag-variavel { background: #FDEFD2; color: #8A5A00; }
.cc .cc-area { padding: 12px 0; border-top: 1px solid var(--linha); }
.cc .cc-area:first-of-type { border-top: 0; }
.cc .cc-pct { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.cc .cc-pct input { width: 64px; min-height: 44px; text-align: right; border: 1.5px solid #C5CBDD; border-radius: 10px; padding: 0 8px; font: inherit; }
.cc .cc-video-el { display: block; width: 100%; max-height: 68vh; margin: 0 auto; border-radius: 12px; background: #000; }

/* Destaques do Início e importação de extrato */
.cc .cc-dest { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cc .cc-dest-i { background: var(--card); border: 1px solid var(--linha); border-radius: 16px; padding: 14px 16px; min-width: 0; text-align: left; font: inherit; color: inherit; }
.cc .cc-dest-i b { display: block; font-family: 'Manrope', var(--fonte); font-size: 1.25rem; margin-top: 2px; }
.cc .cc-dest-i b.pos { color: var(--verde-t); } .cc .cc-dest-i b.neg { color: var(--verm); }
.cc .cc-dest-i small { display: block; color: var(--muted); font-size: .75rem; margin-top: 2px; }
.cc .cc-dest-b { cursor: pointer; min-height: 48px; }
.cc .cc-dest-w { grid-column: 1 / -1; background: #FFF4E0; border-color: #F0D08A; }
.cc .cc-dest-l { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; padding: 6px 0; border-top: 1px solid #F0D08A; font-size: .875rem; }
.cc .cc-dest-l:first-of-type { border-top: 0; } .cc .cc-dest-l span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cc .cc-dest-p { font-weight: 700; font-size: 1rem; }
.cc .cc-fontes { margin: 4px 0 12px; padding-left: 20px; font-size: .8125rem; } .cc .cc-fontes a { color: var(--btn); overflow-wrap: anywhere; }
.cc .cc-imp-leg { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cc .cc-imp-chip { border-radius: 999px; padding: 4px 12px; font-size: .8125rem; font-weight: 700; }
.cc .cc-imp-chip.ok, .cc .cc-imp-it.ok { background: #E4F5EC; border-color: #9BD4B6; } .cc .cc-imp-chip.ok { color: #0B5E41; }
.cc .cc-imp-chip.q, .cc .cc-imp-it.q { background: #FFF4E0; border-color: #F0D08A; } .cc .cc-imp-chip.q { color: #5C3B00; }
.cc .cc-imp-chip.dup, .cc .cc-imp-it.dup { background: #EEEDF0; border-color: #D6D3DB; color: #4A4F5C; }
.cc .cc-imp-lista { display: grid; gap: 8px; margin-top: 14px; }
.cc .cc-imp-it { border: 1px solid; border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.cc .cc-imp-t { display: flex; justify-content: space-between; gap: 10px; } .cc .cc-imp-t b { overflow-wrap: anywhere; font-size: .9375rem; }
.cc .cc-imp-m { font-size: .75rem; color: #4A4F5C; }

/* telas maiores: tablet (coluna mais larga) e computador (menu lateral) */
@media (min-width: 640px) and (max-width: 767px) {
  .cc { max-width: 720px; }
  .cc .cc-abas { max-width: 720px; }
  .cc .cc-fab { right: max(16px, calc(50% - 360px + 16px)); }
  .cc .cc-menu-mais { right: max(8px, calc(50% - 360px + 8px)); }
  .cc .cc-toast { max-width: 688px; }
}
@media (min-width: 768px) {
  .cc { max-width: none; margin: 0; padding-left: 240px; padding-bottom: 48px; box-shadow: none; }
  .cc .cc-topo { margin-left: -240px; padding-left: 28px; padding-right: 28px; }
  .cc .cc-lateral { position: fixed; left: 0; top: var(--topo-h, 64px); bottom: 0; width: 240px; z-index: 30; background: #fff; border-right: 1px solid var(--linha); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
  .cc .cc-abas { position: static; display: flex; flex-direction: column; max-width: none; margin: 0; background: none; border: 0; padding: 0; gap: 2px; }
  .cc .cc-abas button, .cc .cc-menu-mais button { min-height: 48px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px; font-size: .9375rem; border-radius: 10px; }
  .cc .cc-abas button[aria-current=page], .cc .cc-menu-mais button[aria-current=page] { background: #EEF1FD; }
  .cc #cc-mais { display: none; }
  .cc .cc-menu-mais { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0; background: none; display: flex; flex-direction: column; gap: 2px; }
  .cc #cc-main { max-width: 1040px; margin: 0 auto; padding: 28px 32px 0; }
  .cc .cc-fab { left: 16px; right: auto; bottom: 20px; width: 208px; justify-content: center; }
  .cc .cc-toast { left: 240px; right: 0; bottom: 100px; max-width: 560px; }
  .cc .cc-folha { left: 240px; right: 0; bottom: 24px; max-width: 600px; max-height: 90vh; }
}
/* celular e tablet: o menu "Mais" abre para cima, continuando a barra: Previsto fica rente à barra e Ajustes (o último) no topo */
@media (max-width: 767px) { .cc .cc-menu-mais { display: flex; flex-direction: column-reverse; } .cc .cc-menu-mais[hidden] { display: none; } }

/* bloqueio por biometria */
html.cc-bloq .cc { visibility: hidden; }
.cc-bloq-tela { z-index: 100; display: flex; align-items: center; }
.cc-bloq-tela[hidden] { display: none; }
.cc-bloq-caixa { width: 100%; }
.cc-bloq-caixa h2 { margin: 12px 0 8px; }
.cc-ent-senha { position: relative; display: block; }
.cc-ent-senha input { padding-right: 84px; }
.cc-ver-senha { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 76px; min-height: 44px; background: none; border: 0; color: #1F3FD6; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }

/* importar: deslizar para aceitar (direita) ou recusar (esquerda) */
.cc .cc-imp-w { position: relative; border-radius: 14px; overflow: hidden; }
.cc .cc-imp-fundo { position: absolute; inset: 0; display: flex; font-weight: 800; font-size: .9375rem; }
.cc .cc-imp-fundo span { flex: 1; display: flex; align-items: center; padding: 0 20px; }
.cc .cc-imp-fundo .ac { background: #CDEBDB; color: #0B5E41; justify-content: flex-start; }
.cc .cc-imp-fundo .rc { background: #F8D7D0; color: #8A2A1B; justify-content: flex-end; }
.cc .cc-imp-it[data-imp-i] { position: relative; touch-action: pan-y; transition: transform .16s ease-out, opacity .2s; user-select: none; -webkit-user-select: none; }
.cc .cc-imp-it[data-imp-i] select { user-select: auto; -webkit-user-select: auto; }
.cc .cc-imp-it.arrastando { transition: none; cursor: grabbing; }
.cc .cc-imp-it.acc { border-color: #2E9A6B; box-shadow: inset 4px 0 0 #2E9A6B; }
.cc .cc-imp-it.rec { opacity: .6; border-style: dashed; } .cc .cc-imp-it.rec .cc-imp-t b { text-decoration: line-through; }
.cc .cc-imp-chip.rec { background: #F8D7D0; color: #8A2A1B; }
.cc .cc-imp-st { font-size: .8125rem; color: #2B2F3A; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cc .cc-imp-bt { display: none; gap: 8px; } .cc .cc-imp-bt .cc-btn-sec { margin-top: 0; min-height: 40px; font-size: .875rem; }
@media (pointer: fine) { .cc .cc-imp-bt { display: flex; } }
.cc .cc-imp-dica { border: 2px solid var(--btn); background: #EEF1FD; border-radius: 16px; padding: 14px; margin: 14px 0 0; display: grid; gap: 8px; }
.cc .cc-imp-dica b { font-family: 'Manrope', var(--fonte); font-size: 1rem; }
.cc .cc-imp-dica-l { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-weight: 800; font-size: .8125rem; }
.cc .cc-imp-dica-l span { border-radius: 10px; padding: 8px 10px; }
.cc .cc-imp-dica-l .ac { background: #CDEBDB; color: #0B5E41; } .cc .cc-imp-dica-l .rc { background: #F8D7D0; color: #8A2A1B; text-align: right; }
.cc .cc-imp-dica p { margin: 0; font-size: .875rem; } .cc .cc-imp-dica .cc-btn-sec { margin-top: 2px; }
.cc .cc-imp-w.dica .cc-imp-it { animation: cc-dica 4.4s ease-in-out infinite; }
@keyframes cc-dica { 0%, 10% { transform: translateX(0); } 28%, 40% { transform: translateX(88px); } 56%, 62% { transform: translateX(0); } 78%, 90% { transform: translateX(-88px); } 100% { transform: translateX(0); } }

.cc .cc-imp-av { background: #FFF4E0; border: 1px solid #F0D08A; color: #5C3B00; border-radius: 10px; padding: 8px 10px; font-size: .8125rem; line-height: 1.35; }

/* editor de categorias */
.cc .cc-cat-h { margin: 18px 0 6px; font-size: .9375rem; }
.cc .cc-cat-lista { display: grid; gap: 6px; }
.cc .cc-cat-lin { display: grid; grid-template-columns: 14px 1fr; grid-template-areas: "pt n" "pt m"; column-gap: 12px; text-align: left; background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 10px 12px; min-height: 52px; cursor: pointer; color: var(--escuro); }
.cc .cc-cat-lin:hover { background: #EEF1FD; }
.cc .cc-cat-pt { grid-area: pt; width: 14px; height: 14px; border-radius: 50%; align-self: center; }
.cc .cc-cat-n { grid-area: n; font-weight: 700; font-size: .9375rem; }
.cc .cc-cat-m { grid-area: m; font-size: .75rem; color: #4A4F5C; }
.cc .cc-cor { width: 100%; height: 48px; padding: 4px; border: 1.5px solid #C5CBDD; border-radius: 12px; background: #fff; }
