:root {
  --accent: #6fdb2a; --on-accent: #0b0c0b; --accent-soft: #1d2a14;
  --bg: #0b0c0b; --surface: #171917; --bar: #111311; --line: #262a25;
  --text: #edefec; --muted: #8f978d;
  --green: #4ade80; --green-soft: #14301f; --red: #ff6464; --red-soft: #3a1717;
  --orange: #ffb547; --orange-soft: #38280f;
  --radius: 16px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --accent: #2e8b16; --on-accent: #ffffff; --accent-soft: #e6f2e1;
  --bg: #f2f4f8; --surface: #ffffff; --bar: #ffffff; --line: #e3e7ee;
  --text: #1c2430; --muted: #66707f;
  --green: #1e8e4e; --green-soft: #e4f5ea; --red: #d23b3b; --red-soft: #fce8e8;
  --orange: #c9730a; --orange-soft: #fff1dc;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.45 "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* ---------- abertura e login ---------- */
.splash, .login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.splash img { width: 96px; height: 96px; border-radius: 22px; opacity: .9; }
.splash p { color: var(--muted); }
.login img { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 10px 40px rgba(111, 219, 42, .18); }
.login h1 { margin: 6px 0 0; font-size: 28px; }
.login p { margin: 0; color: var(--muted); max-width: 420px; }
.login .btn { margin-top: 12px; min-width: 260px; }
.login small { color: var(--muted); max-width: 380px; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.gbtn svg { width: 20px; height: 20px; background: #fff; border-radius: 50%; padding: 2px; }

/* ---------- estrutura ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--bar); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { font-size: 17px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 0; background: none; text-align: left; width: 100%; color: var(--muted); font-weight: 600; }
.nav span.i { font-size: 19px; width: 24px; text-align: center; }
.nav:hover { background: var(--surface); color: var(--text); }
.nav.on { background: var(--accent-soft); color: var(--accent); }
.side .grow { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--line); margin-top: 6px; font-size: 13px; color: var(--muted); }
.who img { width: 30px; height: 30px; border-radius: 50%; }
.who .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync { font-size: 12px; color: var(--muted); padding: 2px 10px 8px; }
.sync.off { color: var(--orange); }

main { padding: 26px 34px 60px; max-width: 1180px; width: 100%; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.top h1 { margin: 0; font-size: 26px; }
.top .sub { color: var(--muted); margin-top: 2px; }
.top .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.month { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.month button { border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; color: var(--text); }
.month button:hover { background: var(--accent-soft); }
.month b { min-width: 150px; text-align: center; font-size: 14.5px; }
.month .today { width: auto; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--accent); font-weight: 600; }

.btn { border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; background: var(--accent); color: var(--on-accent); }
.btn:hover { filter: brightness(1.07); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- cartões ---------- */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: 1fr 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 12px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card h3 .muted { font-weight: 500; }
.stat .lbl { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .val { font-size: 24px; font-weight: 800; margin-top: 4px; letter-spacing: -.3px; }
.stat .hint { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pos { color: var(--green); } .neg { color: var(--red); } .warn { color: var(--orange); }
.muted { color: var(--muted); }

.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.row:first-child { border-top: 0; }
.row:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 18px; flex: none; }
.row .tx { flex: 1; min-width: 0; }
.row .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { color: var(--muted); font-size: 13px; }
.row .v { font-weight: 750; white-space: nowrap; text-align: right; }
.row .v small { display: block; font-weight: 600; font-size: 12px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.late { background: var(--red-soft); color: var(--red); }
.pill.soon { background: var(--orange-soft); color: var(--orange); }
.pill.plain { background: var(--accent-soft); color: var(--accent); }
.payb { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.payb:hover { border-color: var(--accent); color: var(--accent); }
.payb.done { background: var(--green-soft); border-color: transparent; color: var(--green); }
.empty { color: var(--muted); text-align: center; padding: 26px 10px; }
.day { color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 14px 6px 4px; }
.total { display: flex; justify-content: space-between; padding: 12px 6px 0; margin-top: 6px; border-top: 1px dashed var(--line); font-weight: 750; }

.bars .b { display: grid; grid-template-columns: 130px 1fr 100px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.bars .track { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--accent); border-radius: 99px; }
.bars .n { text-align: right; font-weight: 650; }
.bars .c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
svg.chart text { fill: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 650; color: var(--muted); }
.tabs button.on { background: var(--accent-soft); color: var(--accent); }

/* ---------- formulários ---------- */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.dlg { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.dlg h2 { margin: 0 0 14px; font-size: 19px; }
.dlg p { color: var(--muted); margin: 0 0 12px; }
.f { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.f label, .lb { font-size: 13px; font-weight: 650; color: var(--muted); }
.f input, .f select, .f textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; outline: none; width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--accent); }
.f .hint { font-size: 12.5px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chk { display: flex; align-items: center; gap: 9px; margin: 4px 0 12px; font-weight: 600; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.dlg .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.dlg .acts .left { margin-right: auto; }
.err { color: var(--red); font-size: 12.5px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 650; z-index: 60; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); max-width: calc(100vw - 32px); }

.setrow { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.setrow:first-child { border-top: 0; }
.setrow .tx { flex: 1; }
.cat { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-top: 1px solid var(--line); }
.cat:first-child { border-top: 0; }
.cat span { flex: 1; }

/* ---------- celular / janela estreita ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px; border-right: 0; border-top: 1px solid var(--line); z-index: 20; justify-content: space-around; }
  .brand, .who, .sync, .side .grow { display: none; }
  .nav { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 4px; text-align: center; }
  main { padding: 18px 16px 100px; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .bars .b { grid-template-columns: 90px 1fr 84px; }
  .stat .val { font-size: 20px; }
}

/* ---------- desfazer, cores, calendário ---------- */
.toast { display: flex; align-items: center; gap: 14px; }
.toast .undo { background: none; border: 0; color: var(--accent); font-weight: 800; padding: 2px 4px; text-transform: uppercase; font-size: 13px; letter-spacing: .4px; }
:root[data-theme="light"] .toast .undo { color: #8fe36a; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sw.on { box-shadow: 0 0 0 3px var(--text); }
.tabs.chips { flex-wrap: wrap; }
.tabs.chips small { background: var(--bg); border-radius: 99px; padding: 1px 7px; margin-left: 4px; font-size: 11.5px; }
.calnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calnav b { font-size: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-h { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-d { border: 1px solid transparent; background: var(--bg); border-radius: 10px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 650; color: var(--text); }
.cal-d:hover { border-color: var(--accent); }
.cal-d.today span { color: var(--accent); font-weight: 800; }
.cal-d.sel { background: var(--accent-soft); border-color: var(--accent); }
.cal-d i { display: flex; gap: 3px; height: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.ag { background: var(--accent); }
.dot.bl { background: var(--orange); }

/* ---------- perfis ---------- */
.pbtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; margin: 0 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; }
.pbtn:hover, .pbtn.on { border-color: var(--accent); }
.pbtn .i { font-size: 19px; width: 24px; text-align: center; }
.pbtn .pn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pbtn .pn small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.pbtn .pn b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbtn .ch { color: var(--muted); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card.prof { display: flex; flex-direction: column; gap: 14px; }
.card.prof.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.prof .pt { display: flex; align-items: center; gap: 12px; }
.prof .pt b { font-size: 16.5px; }
.pi { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 21px; flex: none; color: var(--accent); }
.prof .pa { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger-t { color: var(--red); }
.card.prof.add { align-items: center; justify-content: center; text-align: center; border-style: dashed; color: var(--text); min-height: 130px; cursor: pointer; gap: 6px; }
.card.prof.add:hover { border-color: var(--accent); }
.plist { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.pitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; }
.pitem b { flex: 1; font-size: 15.5px; }
.pitem .pi { width: 36px; height: 36px; font-size: 17px; }
.pitem:hover, .pitem.on { border-color: var(--accent); }
@media (max-width: 900px) {
  .pbtn { display: none; }
  .g3 { grid-template-columns: 1fr; }
}

/* ---------- 2.7: dias da semana, limites, busca, previsão ---------- */
.dows { display: flex; gap: 6px; }
.dows button { flex: 1; height: 38px; border-radius: 50%; max-width: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 800; }
.dows button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #0b0c0b); }
.lim { margin: 10px 0 2px; }
.lim .lh { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.lim .lh b { font-weight: 700; }
.lim .tr { height: 8px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.lim .tr i { display: block; height: 100%; border-radius: 4px; }
.lim small { color: var(--red); font-weight: 700; }
.fore { display: flex; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fore b { display: block; font-size: 15px; }
.upd { background: var(--accent-soft); }
.search-in { width: 100%; font-size: 17px; padding: 12px 14px; }
.sres { max-height: 52vh; overflow: auto; margin-top: 10px; }

/* ---------- 2.9: início limpo, saldo, próximos, voz ---------- */
.home { max-width: 640px; }
.home.wide { max-width: 760px; }
.hhead { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.hhead h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.hhead h1 .muted { font-weight: 500; }
.hhead .grow { flex: 1; }
.chip { border: 0; background: var(--accent-soft); color: var(--accent); font-weight: 750; border-radius: 99px; padding: 5px 12px; font-size: 14px; }
.ibtn { border: 1px solid var(--line); background: var(--surface); border-radius: 50%; width: 42px; height: 42px; font-size: 17px; }
.ibtn:hover { border-color: var(--accent); }
.bal { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; background: none; padding: 4px 2px; text-align: left; width: 100%; color: var(--text); }
.bal .bl { color: var(--muted); font-size: 15px; }
.bal .bv { font-size: 46px; font-weight: 850; letter-spacing: -1px; line-height: 1.1; }
.bal .bp { color: var(--muted); font-size: 16px; }
.bal:hover .bl { color: var(--accent); }
.limline { border: 0; background: none; padding: 10px 2px 2px; text-align: left; font-weight: 750; font-size: 15.5px; cursor: pointer; }
.hbtns { display: flex; gap: 12px; align-items: center; margin: 18px 0 8px; }
.talk { flex: 1; height: 58px; border: 0; border-radius: 30px; background: var(--accent); color: var(--on-accent); font-size: 19px; font-weight: 800; }
.talk:hover, .plus:hover { filter: brightness(1.07); }
.plus { width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 26px; font-weight: 800; }
.seclbl { color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: 1px; margin: 22px 2px 4px; }
.nlist { display: flex; flex-direction: column; }
.nrow { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.nrow:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.nrow .nd { width: 54px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.nrow .nd small { color: var(--muted); font-size: 12px; font-weight: 700; }
.nrow .nd b { font-size: 19px; }
.nrow .nd .tm { font-size: 16.5px; }
.nrow .tx { flex: 1; min-width: 0; }
.nrow .t { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nrow .s { color: var(--muted); font-size: 13.5px; }
.nrow .v { font-weight: 750; white-space: nowrap; }
.okc { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--green); background: none; color: var(--green); font-weight: 900; font-size: 16px; flex: none; }
.okc:hover { background: var(--green-soft); }
.nempty { padding: 14px 4px; font-weight: 700; }
.seeall { border: 0; background: none; color: var(--accent); font-weight: 750; font-size: 16px; padding: 14px 2px; }
.bigv { font-size: 36px; font-weight: 850; margin: 2px 0 10px; }
.sline { display: flex; justify-content: space-between; padding: 5px 0; }
.sep { height: 1px; background: var(--line); margin: 8px 0; }
.cmp { display: grid; grid-template-columns: 1fr auto 96px; gap: 10px; padding: 5px 0; align-items: center; }
.cmp span:last-child { text-align: right; font-weight: 700; font-size: 13.5px; }
.vz { text-align: center; }
.vz .mic { width: 92px; height: 92px; border-radius: 50%; margin: 6px auto 12px; display: grid; place-items: center; font-size: 40px; background: var(--accent-soft); }
.vz .mic.on { animation: pulse 1.2s infinite; background: var(--accent); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }
.vz .heard { min-height: 24px; font-weight: 700; font-size: 17px; margin: 4px 0 10px; }
.vz .ex { color: var(--muted); font-size: 13px; }
.vans { white-space: pre-line; line-height: 1.6; }
.themes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.themes .on { background: var(--accent); color: var(--on-accent); }
@media (max-width: 900px) {
  .bal .bv { font-size: 38px; }
  .hhead h1 { font-size: 23px; }
}

/* ---------- 3.0: metas, nota, sugestões, conversa ---------- */
.acc { color: var(--accent); }
.bal.nb { cursor: default; }
.bal .bv small { font-size: 20px; font-weight: 750; letter-spacing: 0; }
.glist { display: flex; flex-direction: column; }
.gitem { padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.gitem:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.gh { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 16px; }
.gh span { font-weight: 800; }
.gbar { height: 8px; border-radius: 4px; background: var(--line); margin: 7px 0; overflow: hidden; }
.gbar.big { height: 10px; margin: 8px 0 12px; }
.gbar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.gbar i.ok { background: var(--green); }
.s { font-size: 13.5px; }
.talk.soft { background: var(--accent-soft); color: var(--accent); }
.sgi { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.sgi.new .gh b { color: var(--accent); }
.sga { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sga a { text-decoration: none; }
.chat { max-width: 720px; display: flex; flex-direction: column; min-height: calc(100vh - 150px); }
.clog { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; }
.brow { display: flex; flex-direction: column; align-items: flex-start; margin: 3px 0; }
.brow.me { align-items: flex-end; }
.bub { max-width: 78%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; white-space: pre-wrap; line-height: 1.45; }
.bub.me { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.brow small { color: var(--muted); font-size: 11px; margin: 2px 6px 0; }
.cbtns { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 6px; }
.cbtn { border: 0; background: var(--accent-soft); color: var(--accent); font-weight: 700; border-radius: 16px; padding: 8px 14px; text-align: left; max-width: 78vw; }
.cbtn:hover { filter: brightness(1.08); }
.cbar { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; background: var(--bg); padding: 10px 0 14px; }
.cbar input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px 16px; outline: none; font-size: 16px; }
.cbar input:focus { border-color: var(--accent); }
.csend { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 18px; font-weight: 800; flex: none; }
@media (max-width: 900px) {
  .side { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .side .nav { flex: 1 0 auto; width: auto; min-width: 60px; }
  .cbar { bottom: 64px; }
  .chat { min-height: calc(100vh - 220px); }
}

/* 3.1: tela de uso restrito */
.login.gate .gico { font-size: 56px; line-height: 1; margin-bottom: 4px; }
.login.gate p b { color: var(--text); }
.login.gate .gbtns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin-top: 18px; }
.login.gate .gbtns .btn { width: 100%; justify-content: center; margin-top: 0; min-width: 0; }

/* 3.2 */
.recado, .tip { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.recado .gh, .tip .gh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.recado b, .tip b { color: var(--accent); }
.tip { margin: 0 0 14px; }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.card.plano { text-align: center; padding: 30px 20px; }
.card.plano .pico { font-size: 64px; line-height: 1.1; }
.card.plano h2 { margin: 10px 0 2px; }
.card.plano p { margin-top: 14px; }
.code { font-size: 38px; font-weight: 800; letter-spacing: 8px; text-align: center; color: var(--accent); margin: 10px 0; user-select: all; }
.resp { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; margin-top: 6px; }
.resp b { color: var(--accent); font-size: 13px; }
.card textarea { width: 100%; box-sizing: border-box; }
.badge-svg { display: inline-block; vertical-align: middle; flex: none; }
.card.plano .pico .badge-svg { display: block; margin: 0 auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.nav .i .badge-svg { width: 22px; height: 22px; }
.pitem .badge-svg { margin-right: 8px; }

/* 3.3 */
.loginlinks { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; align-items: center; }
.lnk { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 4px; font-size: 14px; }
.lnk:hover { text-decoration: underline; }
.pitem .badge-svg { flex: none; }

.dlbtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; }
.dlbtn:hover { border-color: #3DDC84; }
.modal h2 svg { vertical-align: -4px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.jurosbox { margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; background: rgba(251, 146, 60, .14); border: 1px solid rgba(251, 146, 60, .35); font-size: 13.5px; }

/* ---------- 3.6: iPhone e celular ---------- */
.mbtn { display: none; }
.moregrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.mitem { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 650; font-size: 13.5px; text-align: center; }
.mitem .i { font-size: 26px; line-height: 1; height: 28px; display: grid; place-items: center; }
.mitem.on { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 900px) {
  .side { overflow-x: visible; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .side .nav.xtra { display: none; }
  .side .nav { flex: 1 1 0; min-width: 0; }
  .side .nav span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .mbtn { display: flex; }
  main { padding-top: max(18px, calc(env(safe-area-inset-top) + 8px)); padding-bottom: calc(100px + env(safe-area-inset-bottom)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .cbar { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* iPhone: campo com letra menor que 16px faz a tela dar zoom ao tocar */
  input, select, textarea { font-size: 16px !important; }
}
.login { padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.modal { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.recado.updb { display: block; width: 100%; text-align: left; color: var(--text); cursor: pointer; border-color: var(--accent); }
.recado.updb b { color: var(--accent); }
.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin: 10px 0 14px; }
.nps button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 10px 0; font-weight: 800; }
.nps button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (max-width: 500px) { .nps { grid-template-columns: repeat(6, 1fr); } }
.wz { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.wrow { display: flex; gap: 8px; align-items: center; }
.wrow input[inputmode] { width: 96px; }
.wrow select { width: 96px; }

/* ---------- 3.6: página de apresentação ---------- */
.lp-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 18px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.lp-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.lp-brand img { width: 32px; height: 32px; border-radius: 8px; }
.login.lp-hero { min-height: auto; padding-top: 48px; padding-bottom: 28px; }
.login.lp-hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; }
.login.lp-hero p { font-size: 17px; max-width: 560px; }
.login.lp-hero img { width: 104px; height: 104px; border-radius: 24px; }
.lp-sec { max-width: 1040px; margin: 0 auto; padding: 22px 18px; }
.lp-sec h2 { text-align: center; font-size: 24px; margin: 0 0 16px; }
.lp-video { display: flex; justify-content: center; }
.lp-video video { width: 100%; max-width: 900px; border-radius: 16px; border: 1px solid var(--line); background: #000; }
@media (max-width: 700px) { .lp-video video { max-width: 360px; } }
.lp-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-feat .card { display: flex; flex-direction: column; gap: 6px; }
.lp-feat .lp-i { font-size: 28px; }
.lp-feat p { margin: 0; font-size: 14.5px; }
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 0 auto; }
.lp-plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 12px; }
.lp-plan b { font-size: 19px; }
.lp-plan .lp-v { font-size: 26px; font-weight: 800; margin-top: 6px; }
.lp-plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.lp-tag { position: absolute; top: -11px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.lp-foot { text-align: center; color: var(--muted); font-size: 13.5px; padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); }
.lp-foot a { color: var(--muted); }
@media (max-width: 800px) { .lp-feat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp-feat, .lp-plans { grid-template-columns: 1fr; } .lp-plans { max-width: 340px; } }
.wrow input[inputmode], .wrow select { background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; outline: none; color: var(--text); }
.wrow input:focus, .wrow select:focus { border-color: var(--accent); }
.ibtn.eye { color: var(--muted); display: inline-grid; place-items: center; margin-right: 8px; }
.ibtn.eye:hover { color: var(--text); }

/* quadros que abrem e fecham (Master) */
.card.fold > h3 { cursor: pointer; margin: 0; user-select: none; }
.card.fold > h3 .fchev { margin-left: auto; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .15s; transform: rotate(90deg); }
.card.fold.open > h3 .fchev { transform: rotate(-90deg); }
.card.fold > .foldb { display: none; margin-top: 12px; }
.card.fold.open > .foldb { display: block; }
.card.fold > .foldb > p.muted:first-child { margin-top: 0 !important; }
.top .acts .ibtn.eye { margin-right: 0; }
.resp.novo { box-shadow: 0 0 0 1.5px var(--accent) inset; }
.resp .badge { vertical-align: 1px; margin-left: 4px; }

/* 3.8: aniversários e compras */
.tabs.seg2 { margin: 0 0 14px; }
.cal-d.bd { background: var(--accent-soft); }
.cal-d.bd i { font-style: normal; font-size: 13px; }
.bdtoday { background: var(--accent); color: var(--on-accent, #0b0c0b); border-radius: 14px; padding: 3px 10px; font-weight: 800; }
.shsum .shv { font-size: 24px; font-weight: 800; margin: 2px 0 4px; }
.shrow { gap: 10px; align-items: center; }
.shrow .tx { cursor: pointer; }
.shrow.done .t { text-decoration: line-through; color: var(--muted); }
.ckb { background: none; border: 0; padding: 4px; cursor: pointer; }
.ck { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--muted); color: #fff; font-weight: 900; font-size: 15px; }
.ck.on { background: var(--green); border-color: var(--green); }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.qty button:hover { border-color: var(--accent); }
.qty b { min-width: 26px; text-align: center; }
.qty.big input { width: 80px; text-align: center; }
.qty.big button { width: 44px; height: 44px; font-size: 22px; }
.ibtn.sm { width: 34px; height: 34px; font-size: 16px; }
.tabs.seg { display: flex; flex-wrap: wrap; }
.shrow a { color: var(--accent); font-weight: 600; }
.hquick { display: flex; gap: 10px; margin-top: 12px; }
.hqb { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 20px; padding: 8px 6px; font-weight: 700; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.hqb:hover { border-color: var(--accent); }
.hbtns .talk { flex: 1.15; height: 54px; font-size: 17px; }
.plus.wide { flex: 1; width: auto; height: 54px; border-radius: 30px; font-size: 16px; white-space: nowrap; }
.hbtns > .plus:not(.wide) { width: 54px; height: 54px; flex: none; }
/* ================= 3.9: guia de estilo profissional ================= */
:root { --muted: #a6aea3; --r: 12px; --hb: 44px; --hbs: 34px; }
:root[data-theme="light"] { --muted: #5d6675; }
/* botões: 3 tipos, mesma altura e arredondamento */
.btn { height: var(--hb); padding: 0 18px; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14.5px; white-space: nowrap; }
.btn.sm { height: var(--hbs); padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn.soft { background: transparent; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.soft:hover { background: var(--accent-soft); filter: none; }
.btn.ghost { background: transparent; border: 0; color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.btn.danger { background: transparent; border: 1px solid color-mix(in srgb, var(--red) 50%, transparent); }
.hbtns { gap: 10px; }
.hbtns .talk { height: 52px; border-radius: 14px; font-size: 16.5px; }
.plus, .plus.wide { height: 52px; border-radius: 14px; }
.plus.wide { background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.hbtns > .plus:not(.wide) { width: 52px; background: var(--accent-soft); }
.hqb { height: 42px; border-radius: var(--r); padding: 0 8px; }
.ibtn { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; }
.ibtn.eye { margin: 0; }
/* seletor único (abas e filtros) */
.tabs { display: flex; width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 3px; }
.tabs button { flex: 1; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.tabs button.on { background: var(--accent-soft); color: var(--accent); }
.tabs.chips { max-width: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs.chips button { flex: none; }
/* cabeçalho das telas: título e olho na mesma linha; ações embaixo */
.top { flex-direction: column; align-items: stretch; gap: 12px; }
.top .trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.top .acts { justify-content: flex-start; }
.top h1 { font-size: 24px; letter-spacing: -.2px; }
/* menu lateral em grupos e ícones desenhados */
.navg { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); opacity: .75; padding: 14px 12px 4px; }
.side .navg:first-of-type { padding-top: 4px; }
.nav span.i { width: 24px; height: 24px; display: grid; place-items: center; font-size: 0; }
.nav span.i svg { width: 21px; height: 21px; }
.nav.on span.i { color: var(--accent); }
@media (min-width: 901px) { .nav { padding: 9px 12px; } }
.mitem .i svg { width: 26px; height: 26px; color: var(--accent); }
.mitem .i { font-size: 0; }
.pbtn .i { font-size: 0; display: grid; place-items: center; }
.pbtn .i svg { width: 20px; height: 20px; }
/* quadros e textos */
.card h3 { font-size: 14.5px; letter-spacing: .1px; }
.muted, .s.muted { color: var(--muted); }
/* Início no computador: 2 colunas */
.hside { display: none; }
@media (min-width: 1100px) {
  main.home2 { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1240px; }
  .hside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
  .hside .card { padding: 16px 18px; }
  .hside .sv { font-size: 26px; font-weight: 800; }
  .hside .gm { margin: 8px 0 12px; }
  .hside .gm .gh { display: flex; justify-content: space-between; font-size: 14px; }
  .hside .bars .b { grid-template-columns: 110px 1fr auto; }
}
/* computador: quadros em grade onde ajuda */
@media (min-width: 1100px) {
  .glist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .home.wide:has(.glist) { max-width: 1000px; }
}
@media (max-width: 900px) {
  .nav span.i svg { width: 23px; height: 23px; }
  .navg { display: none; }
  .tabs { max-width: none; }
  .top { margin-bottom: 14px; }
}
.shrow .s.pos { color: var(--green); } .shrow .s.neg { color: var(--red); }

/* grupos do menu que abrem e fecham */
.navgrp { display: flex; flex-direction: column; gap: 2px; }
button.navg { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 8px; }
button.navg:hover { color: var(--text); opacity: 1; }
button.navg .chev { font-size: 16px; transform: rotate(90deg); transition: transform .15s; }
.navgrp.closed button.navg .chev { transform: rotate(0deg); }
@media (min-width: 901px) { .navgrp.closed .nav:not(.on) { display: none; } }
@media (max-width: 900px) { .navgrp { display: contents; } button.navg { display: none; } }

.nav span.i .badge-svg, .mitem .i .badge-svg { width: 24px; height: 24px; }
.mitem .i .badge-svg { width: 28px; height: 28px; }
/* seletor de mês com o canto dos botões */
.month { border-radius: var(--r) !important; height: var(--hb); padding: 0 4px !important; }
.month button { border-radius: 9px !important; }
/* canto padrão em tudo que é clicável (os marcadores de "pago/comprado" continuam redondos) */
.chip, .dlbtn, .qty button, .csend, .dows button, .mitem, .pitem, .cal-d, .month .today { border-radius: 10px !important; }
.cbar input { border-radius: var(--r); }
.qty button { width: 34px; height: 34px; }
.mitem { border-radius: var(--r) !important; }
main { min-width: 0; }
.tabs, .tabs.chips { max-width: 100%; min-width: 0; }
@media (min-width: 901px) { .tabs:not(.chips) { max-width: 520px; } }
/* abas: no computador, do tamanho do conteúdo (nunca passam da coluna); no celular, ocupam a largura e rolam se forem muitas */
@media (min-width: 901px) { .tabs, .tabs:not(.chips) { display: inline-flex; width: auto; max-width: 100%; flex-wrap: wrap; } .tabs button { flex: none; } }
@media (max-width: 900px) { .tabs { overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } .tabs button { flex: 1 0 auto; } }
input, select, textarea { min-width: 0; }

/* 3.9.1 — iPhone: janelas cabem na parte visível da tela e rolam até o fim; data e hora não passam da coluna */
.modal { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.dlg { max-height: calc(100vh - 32px); max-height: calc(var(--app-h, 100dvh) - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.g2 > *, .two > *, .f { min-width: 0; }
input[type="date"], input[type="time"], input[type="month"], input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; min-height: 45px; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; margin: 0; }

/* 4.0 — ícones desenhados no lugar dos emojis */
.icn { vertical-align: -3px; flex: none; }
.btn .icn, .tabs button .icn { vertical-align: -3.5px; margin-right: 2px; }
.emi { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.pdot.neg { color: var(--neg, #e5484d); } .pdot.warn { color: #e0a100; } .pdot.pos { color: var(--pos, #3fcf6b); }
/* 4.0 — supermercado: categorias, pular, modo mercado, gastos */
.shbt { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cathd { display: flex; align-items: center; gap: 10px; margin: 18px 2px 4px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.nlist > .cathd:first-child { margin-top: 4px; }
.cathd b { font-size: 15px; }
.cathd .cv { margin-left: auto; font-weight: 750; }
.ci { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; flex: none; }
.shrow.skipped { opacity: .62; cursor: default; }
.shrow.skipped .t { color: var(--muted); }
.shrow.skipped .ckb { color: var(--muted); display: grid; place-items: center; width: 32px; cursor: default; }
.ibtn.sm { color: var(--muted); display: inline-grid; place-items: center; }
.ibtn.sm:hover { color: var(--accent); }
.skipsp { width: 34px; height: 34px; flex: none; }
.ra { display: flex; gap: 6px; align-items: center; flex: none; }
@media (max-width: 600px) { .ra { flex-direction: column; gap: 6px; } .skipsp { display: none; } .shrow .qty button { width: 30px; height: 30px; } .shrow { gap: 8px; } }
.seclbl .icn { margin-right: 4px; }
.mitem .i { color: var(--accent); }
.catpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.catpick button { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; min-width: 0; }
.catpick button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catpick button .icn { color: var(--muted); }
.catpick button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.catpick button.on .icn, .catpick button.nova .icn { color: var(--accent); }
.catpick button.nova { border-style: dashed; color: var(--accent); }
.icpick { display: flex; flex-wrap: wrap; gap: 8px; }
.icpick button { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icpick button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.mkt { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
body.mkon { overflow: hidden; }
.mkh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mkt1 { font-size: 24px; font-weight: 800; }
.mks { color: var(--muted); font-size: 15px; }
.mkb { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 20px; max-width: 760px; width: 100%; margin: 0 auto; }
.mkc { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 800; font-size: 15px; letter-spacing: .3px; margin: 18px 4px 6px; }
.mki { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 12px; margin: 0 0 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 21px; font-weight: 650; text-align: left; cursor: pointer; }
.mki .ck { transform: scale(1.25); }
.mki .mkn { flex: 1; min-width: 0; }
.mki small { color: var(--muted); font-weight: 600; font-size: 17px; }
.mki .mkv { color: var(--muted); font-size: 16px; font-weight: 600; }
.mki.done { opacity: .5; }
.mki.done .mkn { text-decoration: line-through; }
.mkf { text-align: center; color: var(--muted); font-size: 13px; padding-top: 8px; }
.lsttxt { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 14px/1.5 inherit; max-height: 50vh; overflow: auto; }
.spbars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding: 8px 0 0; }
.spb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.spb i { display: block; width: 100%; max-width: 44px; min-height: 3px; border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.spb i.now { background: var(--accent); }
.spv { font-size: 11px; color: var(--muted); white-space: nowrap; }
.spm { font-size: 12px; color: var(--muted); }
.nrow .v small { display: block; font-size: 12px; font-weight: 700; text-align: right; }
.eic { display: inline-flex; vertical-align: -0.18em; line-height: 1; }
.eic .icn { width: 1.12em; height: 1.12em; vertical-align: 0; }
.eic.pos { color: var(--pos, #3fcf6b); } .eic.warn { color: #e0a100; } .eic.neg { color: var(--neg, #e5484d); }
.row .ic .eic .icn, .ic > .eic .icn { width: 22px; height: 22px; }
body.mkon .modal { z-index: 70; }
/* 4.1 — PC: o menu da esquerda rola com barra visível (dá para clicar e arrastar) */
@media (min-width: 901px) {
  .side { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent) transparent; }
  .side > * { flex-shrink: 0; }
  .side::-webkit-scrollbar { width: 10px; }
  .side::-webkit-scrollbar-track { background: transparent; }
  .side::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 10px; border: 3px solid var(--bar); }
  .side::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}
/* 4.1 — unidade de medida */
.qrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qrow select { width: auto; min-width: 140px; flex: 1; }
.qty.big input { width: 84px; }
.qty b small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.qty b { white-space: nowrap; }
/* 4.1 — importar extrato */
.imlist { max-height: 52vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.imrow { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); }
.imrow:first-child { border-top: 0; }
.imrow .tx { flex: 1; min-width: 0; }
.imrow .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imrow select { margin-top: 4px; padding: 4px 8px; font-size: 13px; border-radius: 10px; background: var(--bg); color: var(--text); border: 1px solid var(--line); max-width: 100%; }
.imrow > b { white-space: nowrap; }
.imrow.off { opacity: .55; }
/* 4.4: Início mais limpo — Até hoje e Falta pagar lado a lado */
.bal .bsplit { display: flex; gap: 28px; margin-top: 6px; }
.bal .bsplit > span { display: flex; flex-direction: column; }
/* 4.5: listas do mercado, nota fiscal pelo QR Code, Última compra */
.lchips { display: inline-flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; margin: 0 0 12px; scrollbar-width: none; }
.lchips::-webkit-scrollbar { display: none; }
.lchips button { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 4px; }
.shtabs button { white-space: nowrap; }
.ltag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0 6px; margin-right: 2px; }
.itag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 0 6px; margin-left: 4px; border: 1px solid var(--line); color: var(--muted); }
.itag.play { color: var(--accent); border-color: var(--accent); }
.spcard { margin-top: 12px; }
.spbars.sm { height: 120px; }
.spb .stk { width: 100%; max-width: 44px; min-height: 3px; display: flex; flex-direction: column-reverse; border-radius: 8px 8px 3px 3px; overflow: hidden; }
.spb .stk i { display: block; width: 100%; max-width: none; min-height: 0; border-radius: 0; }
.spb .spv { font-size: 11px; font-weight: 700; }
.spb .spm { font-size: 12px; color: var(--muted); }
.spcard .legend { flex-wrap: wrap; }
.card.click, .nfcard.click { cursor: pointer; }
.nfcard .t1 { font-size: 18px; font-weight: 800; }
.nftot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; }
.nftot span { font-size: 13px; font-weight: 700; }
.nftot b { font-size: 26px; font-weight: 800; }
.nfacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.nfpage .nrow .t { white-space: normal; }
.nfload { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 6px 6px; text-align: center; }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.lgrp { display: flex; flex-direction: column; gap: 8px; }
.lgrp .lrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.lgrp .lrow.on { border-color: var(--accent); background: var(--accent-soft); }
.lgrp .lrow .tx { flex: 1; min-width: 0; }
.lgrp .lval { width: 110px; text-align: right; font-weight: 750; }
input.ro { opacity: .7; }
.sclist { max-height: 55vh; overflow: auto; }
.recado.bestc { margin: 0 0 14px; }
/* tela da câmera (leitor de QR) */
.qrs { position: fixed; inset: 0; z-index: 80; background: #000; color: #fff; overflow: hidden; }
.qrs video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qrs .qrframe { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.qrs .qrframe i { width: min(68vw, 68vh, 360px); aspect-ratio: 1; border-radius: 18px; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .55); border: 3px solid rgba(255, 255, 255, .9); }
.qrs.ok .qrframe i { border-color: var(--accent); }
.qrs.nocam .qrframe i { border-style: dashed; opacity: .5; }
.qrs .qrtop { position: absolute; left: 0; right: 0; top: 0; padding: max(18px, env(safe-area-inset-top)) 20px 14px; background: rgba(0, 0, 0, .65); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.qrs .qrtop b { font-size: 19px; }
.qrs .qrtop span { font-size: 14.5px; color: #ddd; max-width: 460px; }
.qrs .qrbot { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; align-items: center; background: linear-gradient(transparent, rgba(0, 0, 0, .7) 30%); }
.qrs .qralt, .qrs .qrbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 460px; }
.qrs .qrbtns .btn { flex: 1; color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .45); }
.qrs .qralt .btn { background: rgba(255, 255, 255, .14); color: #fff; }
@media (max-width: 900px) {
  .shtabs { max-width: 100%; }
  .shtabs button { padding: 7px 9px; font-size: 13.5px; }
  .shtabs button svg { display: none; }
  .lgrp .lval { width: 92px; }
}
.grid.lstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.lstats { gap: 8px; } .grid.lstats .card.stat { padding: 10px; } .grid.lstats .val { font-size: 16px; } .grid.lstats .lbl, .grid.lstats .hint { font-size: 11.5px; } }
/* 4.5.1: filtro de categoria em Ver lançamentos (no lugar dos botões que cortavam na tela) */
#lcCat { background: var(--card, var(--bg)); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: none; height: 44px; }
#lcCat:focus { border-color: var(--accent); }
@media (max-width: 560px) { #lcCat { flex: 1 1 100% !important; max-width: none !important; } }
