/* ── Estilos das telas de celular do app (escopados sob .aps + .aps-<tela>) ── */
/* Recriação estática das telas do app (Inter, paleta própria). Cada tela tem   */
/* seu escopo (.aps-mes, .aps-import, …) porque o animacoes reusa nomes genéricos*/
/* (.card, .eyebrow) que colidiriam entre telas e com o CSS do site.            */

/* ===== COMUM ===== */
.aps {
  --purple: #6A0DAD; --purple-dark: #4A0078; --form: #8914DD; --tab: #4A1D96;
  --success: #4CAF50; --success-dark: #388E3C; --income: #00C896;
  --blue: #3B82F6; --blue-400: #60A5FA;
  --cyan: #0891B2; --cyan-500: #06B6D4;
  --danger: #EF4444; --warning: #F59E0B; --bud-orange: #FFB347;
  --surface: #F8F8FC; --surface-2: #EDEDF5; --border: #E5E7EB; --gray: #9CA3AF;
  --ink: #1A1A2E; --ink-2: #6B7280; --ink-4: #9CA3AF;
  --red-50: #FEF2F2; --green-300: #86EFAC;
  --purple-tint: #F3E9FA; --green-tint: #ECFAF1; --green-deep: #3DB868;
  --red-tint: #FDECEC; --orange-soft: #FFEDD5; --orange-ink: #9A3412;
  --coral: #F04E4E; --orange: #F59E0B; --purple-soft: #EAD7F5;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.aps .ms {
  font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal;
  line-height: 1; display: inline-block; vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Moldura escalável: --w define a largura de exibição */
.aps-frame { position: relative; width: var(--w, 320px); height: calc(var(--w, 320px) * 808 / 458); }
.aps-stage { position: absolute; top: 0; left: 0; transform: scale(var(--sc, 0.7)); transform-origin: top left; }

.aps .device {
  position: relative; padding: 14px; background: #0c0c0e; border-radius: 66px;
  box-shadow: inset 0 0 0 2px #3a3a41, inset 0 0 0 6px #141417,
              0 50px 100px -28px rgba(0,0,0,.55), 0 10px 30px rgba(0,0,0,.3);
}
.aps .device .side { position: absolute; background: linear-gradient(180deg, #35353b, #202024); border-radius: 3px; }
.aps .device .mute { left: -3px; top: 138px; width: 4px; height: 32px; }
.aps .device .vup  { left: -3px; top: 194px; width: 4px; height: 62px; }
.aps .device .vdn  { left: -3px; top: 270px; width: 4px; height: 62px; }
.aps .device .pwr  { right: -3px; top: 228px; width: 4px; height: 104px; }

.aps .screen {
  width: 430px; height: 932px; background: var(--surface);
  border-radius: 52px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06) inset;
  display: flex; flex-direction: column;
}
.aps .island { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 122px; height: 34px; background: #000; border-radius: 20px; z-index: 30; }
.aps .scroll { flex: 1; overflow-y: auto; overflow-x: hidden; }

.aps .hdr { background: var(--purple); }
.aps .statusbar { height: 50px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 18px 5px; color: #fff; font-size: 16px; font-weight: 600; }
.aps .statusbar .icons { display: flex; align-items: center; gap: 7px; }
.aps .appbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aps .appbar .logo { display: flex; align-items: center; }
.aps .appbar .right { display: flex; align-items: center; gap: 12px; }
.aps .appbar .greet { font-size: 17px; font-weight: 700; color: #fff; white-space: nowrap; }
.aps .appbar .avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }

.aps .nav { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: #fff; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; z-index: 12; }
.aps .nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-2); text-decoration: none; }
.aps .nav a.active { color: var(--purple); }
.aps .nav a .ms { font-size: 24px; }
.aps .nav a.active .ms { font-variation-settings: 'FILL' 1, 'wght' 400; }
.aps .nav a span { font-size: 9px; font-weight: 600; }

/* ===== MÊS ATUAL (.aps-mes) ===== */
.aps-mes .scroll { padding: 0 0 80px; }
.aps-mes .hdr { padding: 0 16px 44px; }
.aps-mes .appbar { padding: 6px 2px 20px; }
.aps-mes .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.aps-mes .stat { background: rgba(255,255,255,.15); border-radius: 16px; padding: 12px; text-align: center; }
.aps-mes .stat .k { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.aps-mes .stat .v { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.aps-mes .stat .v.g { color: var(--green-300); }
.aps-mes .qef { background: var(--form); border-radius: 16px; padding: 16px; margin: -24px 16px 0; }
.aps-mes .tabs { display: flex; margin-bottom: 16px; }
.aps-mes .tabs button { flex: 1; padding: 10px 4px; font-size: 14px; font-weight: 700; border-radius: 12px; color: rgba(255,255,255,.6); background: transparent; border: 0; font-family: inherit; }
.aps-mes .tabs button.on { background: var(--tab); color: #fff; }
.aps-mes .qef .col { display: flex; flex-direction: column; gap: 12px; }
.aps-mes .field { background: #fff; border-radius: 12px; padding: 14px; font-size: 15px; color: var(--ink); font-weight: 500; display: flex; align-items: center; gap: 12px; }
.aps-mes .field.ph { color: rgba(107,114,128,.5); }
.aps-mes .field .cat-ic { font-size: 20px; color: #26043E; }
.aps-mes .field .chev { margin-left: auto; color: var(--ink-2); font-size: 18px; }
.aps-mes .field-row { display: flex; gap: 8px; }
.aps-mes .hoje { background: rgba(255,255,255,.2); border-radius: 12px; padding: 14px 12px; color: #fff; font-size: 14px; font-weight: 600; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.aps-mes .hoje .ms { font-size: 16px; }
.aps-mes .tune { background: rgba(255,255,255,.2); border-radius: 12px; padding: 0 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.aps-mes .tune .ms { font-size: 18px; color: #fff; }
.aps-mes .pix { width: 20px; height: 20px; flex-shrink: 0; }
.aps-mes .helper { font-size: 11px; color: rgba(255,255,255,.6); line-height: 1.35; padding: 0 2px; }
.aps-mes .toggle-row { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.aps-mes .switch { width: 48px; height: 24px; border-radius: 999px; background: var(--tab); position: relative; flex-shrink: 0; }
.aps-mes .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.aps-mes .toggle-row span { font-size: 14px; color: #fff; font-weight: 600; }
.aps-mes .cta { background: var(--success); color: #fff; border-radius: 12px; padding: 16px; text-align: center; font-size: 16px; font-weight: 700; margin-top: 4px; }
.aps-mes .cards { padding: 16px; display: flex; flex-direction: column; gap: 32px; }
.aps-mes .card { background: #fff; border: 0; border-radius: 16px; padding: 16px; box-shadow: 0 1px 3px rgba(26,26,46,.06); }
.aps-mes .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.aps-mes .label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.aps-mes .label.sec { color: var(--ink-2); }
.aps-mes .big { font-size: 20px; font-weight: 700; }
.aps-mes .gear { color: var(--ink-2); font-size: 18px; }
.aps-mes .chip { width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.aps-mes .chip .ms { font-size: 18px; }
.aps-mes .chip.purple { background: rgba(106,13,173,.1); color: var(--purple); }
.aps-mes .chip.income { background: rgba(0,200,150,.1); color: var(--income); }
.aps-mes .chip.blue { background: rgba(59,130,246,.1); color: var(--blue); }
.aps-mes .chip.cyan { background: rgba(8,145,178,.1); color: var(--cyan); }
.aps-mes .badge { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.aps-mes .pencil { font-size: 16px; flex-shrink: 0; }
.aps-mes .kv { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 14px; }
.aps-mes .kv .lbl { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.aps-mes .kv .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.aps-mes .kv .val { font-weight: 700; }
.aps-mes .kv.total .lbl { color: var(--ink); font-weight: 600; }
.aps-mes .divider { height: 1px; background: var(--surface-2); margin: 3px 0; }
.aps-mes .row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--surface-2); }
.aps-mes .row:last-child { border-bottom: 0; }
.aps-mes .row .nm { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aps-mes .row .nm .c { font-weight: 400; opacity: .7; }
.aps-mes .row .date { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.aps-mes .row .val { font-size: 14px; font-weight: 700; white-space: nowrap; }
.aps-mes .row .arrow { color: var(--ink-2); font-size: 18px; margin-left: 2px; flex-shrink: 0; }
.aps-mes .nm.blue { color: var(--blue); } .aps-mes .nm.purple { color: var(--purple); }
.aps-mes .val.dark { color: var(--ink); }
.aps-mes .sec-hdr { font-size: 10px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.aps-mes .bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.aps-mes .bar.thin { height: 6px; }
.aps-mes .bar-fill { height: 100%; width: var(--to, 0); border-radius: 999px; }
.aps-mes .redbox { background: var(--red-50); border-radius: 12px; padding: 12px 14px; }
.aps-mes .today-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--surface-2); }
.aps-mes .today-row:last-child { border-bottom: 0; }
.aps-mes .prow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--surface-2); }
.aps-mes .prow:last-child { border-bottom: 0; }
.aps-mes .prow .body { flex: 1; min-width: 0; }
.aps-mes .prow .ptop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.aps-mes .prow .pnm { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aps-mes .prow .pval { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.aps-mes .prow .pval .u { font-size: 11px; color: var(--ink-2); font-weight: 400; }
.aps-mes .prow .pmeta { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; }
.aps-mes .prow .pmeta .l { color: var(--ink-2); }
.aps-mes .prow .pmeta .r { color: var(--danger); font-weight: 600; }
.aps-mes .split-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.aps-mes .split-top .col { display: flex; flex-direction: column; }
.aps-mes .split-top .col.c { align-items: center; } .aps-mes .split-top .col.r { align-items: flex-end; }
.aps-mes .split-top .sl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.aps-mes .split-top .sp { font-size: 24px; font-weight: 700; }
.aps-mes .split-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
.aps-mes .split-bar > div { width: var(--to, 0); }
.aps-mes .split-bar > div:first-child { border-radius: 999px 0 0 999px; }
.aps-mes .split-bar > div:last-child { border-radius: 0 999px 999px 0; }
.aps-mes .split-vals { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.aps-mes .days { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 10px; }
.aps-mes .days > div { flex: 1; border-radius: 4px 4px 0 0; height: var(--to, 0); }
.aps-mes .days-x { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-2); margin-top: 6px; padding: 0 2px; }
.aps-mes .mnav { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 1px 3px rgba(26,26,46,.06); font-weight: 700; color: var(--ink); font-size: 15px; }
.aps-mes .mnav .ms { font-size: 20px; color: var(--purple); }

/* ===== IMPORTAR (.aps-import) ===== */
.aps-import .scroll { padding: 0; }
.aps-import .hdr { padding: 0; }
.aps-import .appbar { padding: 4px 18px 16px; }
.aps-import .imp-body { padding: 18px 18px 96px; }
.aps-import .imp-eye { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.aps-import .imp-eye .ms { font-size: 16px; }
.aps-import .imp-h1 { font-size: 25px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; margin: 8px 0 10px; color: var(--ink); }
.aps-import .imp-desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-bottom: 20px; }
.aps-import .imp-desc b { color: var(--ink); font-weight: 700; }
.aps-import .flow { display: flex; flex-direction: column; gap: 32px; }
.aps-import .banner { background: rgba(106,13,173,.05); border: 1px solid rgba(106,13,173,.2); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.aps-import .banner > .ms { font-size: 18px; color: var(--purple); flex-shrink: 0; }
.aps-import .banner .k { font-size: 12px; color: var(--ink-2); }
.aps-import .banner .v { font-size: 14px; font-weight: 600; color: var(--purple); }
.aps-import .card { background: #fff; border: 0; border-radius: 14px; box-shadow: 0 1px 3px rgba(26,26,46,.06); }
.aps-import .tipo { padding: 12px; }
.aps-import .tipo .lbl { font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.aps-import .tipo .lbl span { color: rgba(107,114,128,.6); }
.aps-import .tipo .segs { display: flex; gap: 8px; }
.aps-import .tipo .seg { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 6px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
.aps-import .tipo .seg .ms { font-size: 16px; }
.aps-import .tipo .seg.off { background: var(--surface-2); color: var(--ink-2); }
.aps-import .tipo .seg.on { background: var(--purple); color: #fff; }
.aps-import .tipo .hint { font-size: 11px; color: var(--ink-2); margin-top: 8px; }
.aps-import .summary { padding: 16px; }
.aps-import .summary .top { display: flex; align-items: flex-start; justify-content: space-between; }
.aps-import .summary .lidos { font-size: 14px; font-weight: 700; }
.aps-import .summary .total { font-size: 18px; font-weight: 800; color: var(--danger); text-align: right; }
.aps-import .summary .sel { font-size: 12px; color: var(--ink-2); text-align: right; }
.aps-import .summary .rev { font-size: 12px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
.aps-import .box { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(26,26,46,.06); overflow: hidden; }
.aps-import .box-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--surface-2); }
.aps-import .box-head.collapsed { border-bottom: 0; }
.aps-import .box-chip { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aps-import .box-chip .ms { font-size: 18px; }
.aps-import .box-title { font-size: 14px; font-weight: 700; }
.aps-import .box-sub { font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.aps-import .box-body { padding: 0 16px; }
.aps-import .box-hint { font-size: 12px; color: var(--ink-2); padding: 10px 0; }
.aps-import .irow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--surface-2); }
.aps-import .irow:last-child { border-bottom: 0; }
.aps-import .cbox { width: 22px; height: 22px; border-radius: 7px; background: var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.aps-import .cbox .ms { font-size: 14px; color: #fff; }
.aps-import .irow .mid { flex: 1; min-width: 0; }
.aps-import .irow .nm { font-size: 14px; font-weight: 600; }
.aps-import .irow .dt { font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.aps-import .selpill { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; font-size: 13px; color: var(--ink); max-width: 210px; }
.aps-import .selpill .cat { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aps-import .selpill .ms { font-size: 18px; color: var(--ink-2); margin-left: auto; }
.aps-import .irow .val { font-size: 14px; font-weight: 700; color: var(--danger); flex-shrink: 0; white-space: nowrap; }
.aps-import .actions { display: flex; gap: 12px; }
.aps-import .btn-cancel { flex: 1; padding: 14px; background: var(--surface-2); color: var(--ink-2); font-weight: 700; border-radius: 12px; font-size: 14px; text-align: center; }
.aps-import .btn-confirm { flex: 2; padding: 14px; background: var(--success); color: #fff; font-weight: 700; border-radius: 12px; font-size: 14px; text-align: center; }

/* ===== ANÁLISES (.aps-analise) ===== */
.aps-analise .scroll { padding: 0; }
.aps-analise .hdr { padding: 0; }
.aps-analise .appbar { padding: 4px 18px 10px; }
.aps-analise .anl-body { padding: 16px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.aps-analise .mono { font-family: inherit; font-variant-numeric: tabular-nums; }
.aps-analise .anl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aps-analise .anl-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.aps-analise .anl-ic { font-size: 22px; color: var(--purple); }
.aps-analise .anl-head .t { font-size: 19px; font-weight: 800; color: var(--ink); }
.aps-analise .anl-head .s { font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.aps-analise .period { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; color: var(--ink); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.aps-analise .period .ms { font-size: 17px; color: var(--purple); }
.aps-analise .card { background: #fff; border: 0; border-radius: 16px; padding: 16px; box-shadow: 0 1px 3px rgba(26,26,46,.06); }
.aps-analise .chead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aps-analise .ctitle { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.aps-analise .cbadge { font-size: 10px; font-weight: 700; color: var(--purple); background: var(--purple-tint); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.aps-analise .csub { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 6px; }
.aps-analise .tip { margin-top: 12px; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45; }
.aps-analise .tip.green { background: var(--green-tint); color: #256029; }
.aps-analise .tip.orange { background: var(--orange-soft); color: var(--orange-ink); }
.aps-analise .tip.plain { color: var(--ink-2); padding: 0; margin-top: 10px; }
.aps-analise .track { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.aps-analise .pbar-fill { height: 100%; width: var(--to, 0); border-radius: 4px; }
.aps-analise .big2 { font-size: 18px; font-weight: 800; }
.aps-analise .lbl2 { font-size: 12px; color: var(--ink-4); }
.aps-analise .gbar { transform-box: fill-box; transform-origin: 50% 100%; }
.aps-analise .gbar.neg { transform-origin: 50% 0%; }
.aps-analise .area-fill { opacity: 1; }
.aps-analise .legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.aps-analise .legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); }
.aps-analise .legend .sw { width: 8px; height: 8px; border-radius: 50%; }
.aps-analise .catrow { margin-bottom: 11px; }
.aps-analise .catrow .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.aps-analise .catrow .nm { font-size: 13.5px; font-weight: 600; }
.aps-analise .catrow .delta { font-size: 10px; font-weight: 700; border-radius: 5px; padding: 1px 6px; white-space: nowrap; margin-left: 6px; }
.aps-analise .delta.down { background: var(--green-tint); color: var(--green-deep); }
.aps-analise .delta.up { background: var(--red-tint); color: var(--danger); }
.aps-analise .delta.new { background: var(--surface-2); color: var(--ink-4); }
.aps-analise .catrow .v { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.aps-analise .tabs3 { display: flex; background: var(--surface-2); border-radius: 9px; padding: 3px; margin: 10px 0 12px; }
.aps-analise .tabs3 div { flex: 1; text-align: center; padding: 7px 2px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-4); }
.aps-analise .tabs3 div.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.aps-analise .tagrow { margin-bottom: 10px; }
.aps-analise .tagrow .top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.aps-analise .tagrow .l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.aps-analise .tagrow .l .ms { font-size: 15px; color: var(--purple); }
.aps-analise .tagrow .l .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aps-analise .tagrow .l .n { color: var(--ink-4); font-size: 11px; flex-shrink: 0; }
.aps-analise .tagrow .v { font-size: 13px; font-weight: 700; white-space: nowrap; }
.aps-analise .catsel { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 600; }
.aps-analise .catsel .ms { font-size: 15px; color: var(--ink-4); }

/* ===== ECONOMIAS (.aps-econ) ===== */
.aps-econ .scroll { padding: 0; }
.aps-econ .hdr { padding: 0 18px 20px; }
.aps-econ .appbar { padding: 6px 2px 14px; }
.aps-econ .htitle { display: flex; align-items: center; gap: 10px; }
.aps-econ .htitle .ms { font-size: 26px; color: #fff; }
.aps-econ .htitle .t { font-size: 20px; font-weight: 800; color: #fff; }
.aps-econ .htitle .s { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 1px; }
.aps-econ .tabs { display: flex; gap: 4px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 5px; margin: 16px 0 0; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.aps-econ .tabs .tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.aps-econ .tabs .tab .ms { font-size: 16px; }
.aps-econ .tabs .tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.aps-econ .e-body { padding: 16px; display: flex; flex-direction: column; gap: 28px; padding-bottom: 92px; }
.aps-econ .mono { font-family: inherit; font-variant-numeric: tabular-nums; }
.aps-econ .summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aps-econ .scard { background: #fff; border-radius: 14px; padding: 12px; text-align: center; box-shadow: 0 1px 3px rgba(26,26,46,.06); }
.aps-econ .scard .k { font-size: 10px; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.aps-econ .scard .v { font-size: 15px; font-weight: 800; white-space: nowrap; }
.aps-econ .card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 1px 3px rgba(26,26,46,.06); }
.aps-econ .chead { display: flex; align-items: center; justify-content: space-between; }
.aps-econ .clabel { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.aps-econ .clabel .ms { font-size: 16px; color: var(--purple); }
.aps-econ .cadd { font-size: 12.5px; font-weight: 700; color: var(--purple); }
.aps-econ .mercado .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.aps-econ .mercado .upd { font-size: 11px; color: var(--ink-4); }
.aps-econ .rates { display: flex; gap: 8px; overflow: hidden; }
.aps-econ .rate { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; text-align: center; flex-shrink: 0; }
.aps-econ .rate .rk { font-size: 9px; font-weight: 700; color: var(--ink-4); letter-spacing: .03em; }
.aps-econ .rate .rv { font-size: 15px; font-weight: 800; margin-top: 2px; white-space: nowrap; }
.aps-econ .goal .g-top { display: flex; align-items: flex-start; gap: 12px; }
.aps-econ .goal .g-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--purple-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aps-econ .goal .g-ic .ms { font-size: 22px; color: var(--purple); }
.aps-econ .goal .g-nm { font-size: 16px; font-weight: 700; }
.aps-econ .goal .g-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.aps-econ .goal .pencil { color: var(--ink-4); font-size: 18px; }
.aps-econ .g-bar { height: 8px; border-radius: 999px; background: rgba(106,13,173,.12); overflow: hidden; margin: 12px 0 8px; }
.aps-econ .g-bar > div { height: 100%; background: var(--purple); border-radius: 999px; }
.aps-econ .g-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.aps-econ .g-actions { display: flex; gap: 10px; margin-top: 14px; }
.aps-econ .g-aporte { flex: 1; background: var(--success); color: #fff; border-radius: 12px; padding: 12px; text-align: center; font-size: 14px; font-weight: 700; }
.aps-econ .g-cnt { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.aps-econ .g-cnt .ms { font-size: 14px; }

/* ===== FAMÍLIA / CONTA (.aps-conta) ===== */
.aps-conta .scroll { padding: 0; }
.aps-conta .hdr { padding: 0 18px 18px; }
.aps-conta .appbar { padding: 6px 2px 14px; }
.aps-conta .htitle { display: flex; align-items: center; gap: 10px; }
.aps-conta .htitle .ms { font-size: 26px; color: #fff; }
.aps-conta .htitle .t { font-size: 20px; font-weight: 800; color: #fff; }
.aps-conta .htitle .s { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 1px; }
.aps-conta .c-body { padding: 16px; display: flex; flex-direction: column; gap: 24px; padding-bottom: 92px; }
.aps-conta .mono { font-family: inherit; font-variant-numeric: tabular-nums; }
.aps-conta .totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aps-conta .tot { border-radius: 12px; padding: 14px; text-align: center; }
.aps-conta .tot.green { background: var(--green-tint); }
.aps-conta .tot.red { background: var(--red-tint); }
.aps-conta .tot .k { font-size: 10px; color: var(--ink-4); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.aps-conta .tot .v { font-size: 16px; font-weight: 800; margin-top: 3px; white-space: nowrap; }
.aps-conta .mc { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 3px rgba(26,26,46,.06); }
.aps-conta .mc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.aps-conta .cico { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aps-conta .cico .ms { font-size: 20px; }
.aps-conta .mc-t { font-size: 14px; font-weight: 700; }
.aps-conta .mc-s { font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.aps-conta .step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.aps-conta .stepn { width: 18px; height: 18px; border-radius: 50%; background: var(--purple-tint); color: var(--purple); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.aps-conta .arow { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; }
.aps-conta .arow .cico { width: 34px; height: 34px; border-radius: 10px; background: var(--purple-tint); }
.aps-conta .arow .cico .ms { font-size: 18px; color: var(--purple); }
.aps-conta .arow .al { font-size: 13.5px; font-weight: 600; color: var(--ink); flex: 1; }
.aps-conta .arow .ch { color: var(--ink-4); font-size: 18px; }
.aps-conta .invite { display: inline-flex; align-items: center; gap: 6px; background: var(--purple); color: #fff; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 600; }
.aps-conta .invite .ms { font-size: 15px; }
.aps-conta .mem { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--surface-2); }
.aps-conta .mem.first { border-top: none; }
.aps-conta .mem-av { width: 30px; height: 30px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.aps-conta .mem-nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aps-conta .mem-badges { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.aps-conta .mem-badge { font-size: 9px; font-weight: 700; border-radius: 5px; padding: 1px 7px; }
.aps-conta .mem-sub { font-size: 10px; color: var(--ink-4); }
.aps-conta .btn-out { text-align: center; border: 1px solid var(--border); border-radius: 10px; padding: 11px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.aps-conta .link-c { text-align: center; font-size: 12px; color: var(--ink-4); margin-top: 8px; }
.aps-conta .signout { text-align: center; background: var(--surface-2); border-radius: 12px; padding: 12px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ===== MODO CARD (sem moldura de celular) — no fim para vencer por ordem ===== */
.aps-card .device { padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
.aps-card .device .side { display: none; }
.aps-card .island { display: none; }
.aps-card .statusbar { display: none; }
.aps-card .screen {
  height: 560px; border-radius: 22px;
  box-shadow: 0 24px 48px -18px rgba(26,22,20,.22), 0 6px 14px -6px rgba(26,22,20,.12);
}
.aps-card .hdr { padding-top: 16px; }
