/* WebApp JK — tema roxo, mobile-first */
:root {
  color-scheme: dark light;
  --bg: #14101f;
  --card: #1f1930;
  --card2: #282040;
  --text: #f4f2fa;
  --muted: #a89ec4;
  --accent: #7c3aed;
  --accent2: #6d28d9;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f3fa;
    --card: #ffffff;
    --card2: #efeaf9;
    --text: #1d1830;
    --muted: #6f6590;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
.hidden { display: none !important; }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: #6D28D9;
  color: #fff;
}
.topbar-title { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.topbar-title strong { font-size: 18px; }
.topbar-title small { opacity: .85; font-size: 12px; }
.icon-btn {
  appearance: none; border: 0; background: rgba(255,255,255,.16); color: #fff;
  width: 38px; height: 38px; border-radius: 12px; font-size: 20px;
  display: grid; place-items: center; text-decoration: none; cursor: pointer; flex: none;
}

.container { max-width: 720px; margin: 0 auto; padding: 16px 14px 40px; }
h1 { font-size: 22px; margin: 6px 0 12px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
p.lead { color: var(--muted); }

/* Projetos */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid rgba(140,130,190,.35); background: var(--card); color: var(--text);
  padding: 9px 14px; border-radius: 999px; font-size: 15px; cursor: pointer;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.chip.add { border-style: dashed; color: var(--muted); }

/* Subseções da página Download: ícone oficial + nome do sistema */
.dl-h { display: flex; align-items: center; gap: 9px; margin: 22px 0 8px; font-size: 17px; }

/* Cards de seção / itens */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Grade de seções: SEMPRE 2 colunas, em qualquer aparelho (padrão visual único — pedido do dono, v75). Não reintroduzir colapso por largura de tela. */
.card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  cursor: pointer; border: 1px solid rgba(140,130,190,.14);
}
.card .emoji { font-size: 30px; }
.grid .card { position: relative; -webkit-touch-callout: none; }
@keyframes jiggle { from { transform: rotate(-1.3deg); } to { transform: rotate(1.3deg); } }
.grid.jiggling .card { animation: jiggle .26s ease-in-out infinite alternate; }
.grid.jiggling .card:nth-child(2n) { animation-delay: -.13s; }
.grid.jiggling .card:nth-child(3n) { animation-delay: -.07s; }
.jig-del, .jig-edit { position: absolute; top: -9px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-size: 13px; line-height: 1; cursor: pointer; z-index: 3; box-shadow: 0 1px 4px rgba(0,0,0,.3); padding: 0; }
.jig-del { left: -9px; background: #3a3a3c; color: #fff; }
.jig-edit { right: -9px; background: #6D28D9; color: #fff; }
.card h3 { margin: 8px 0 4px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  background: var(--card); border-radius: var(--radius); padding: 12px 14px;
  display: flex; gap: 12px; align-items: center; border: 1px solid rgba(140,130,190,.14);
}
.item img.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s { color: var(--muted); font-size: 13px; }
.item .val { font-weight: 700; white-space: nowrap; }
.item .del { background: none; border: 0; font-size: 17px; cursor: pointer; color: var(--danger); flex: none; padding: 6px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--card2); color: var(--muted); }
.tag.paid { color: var(--ok); }
.tag.due { color: var(--warn); }

/* Resumo */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 14px; }
.stat .n { font-size: 20px; font-weight: 800; }
.stat .l { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Botões */
.btn {
  appearance: none; border: 0; border-radius: 12px; padding: 12px 16px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--card2); color: var(--text); }
.btn.block { width: 100%; margin-top: 12px; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .btn { flex: 1; }

/* Calendário */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.cal-head .m { font-weight: 700; font-size: 16px; text-transform: capitalize; }
.cal-nav { background: var(--card2); border: 0; color: var(--text); width: 36px; height: 36px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; color: var(--muted); font-size: 12px; padding: 4px 0; }
.cal .day {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid rgba(140,130,190,.18);
  background: var(--card); color: var(--text); font-size: 14px; cursor: pointer; position: relative;
}
.cal .day.worked { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.cal .day.today { outline: 2px solid var(--warn); outline-offset: -2px; }
.cal .day.empty { background: transparent; border: 0; cursor: default; }
.cal .day.sun { color: #fda4af; }
.cal .day.worked.sun { color: #fff; }

/* Modal / formulário */
.modal { position: fixed; inset: 0; background: rgba(8,5,18,.6); display: grid; place-items: end center; z-index: 50; }
.modal-box {
  background: var(--card); width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto;
  border-radius: 20px 20px 0 0; padding: 20px 18px calc(16px + env(safe-area-inset-bottom));
}
.modal-box h2 { margin: 0 0 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 12px; font-size: 16px; border-radius: 10px; border: 1px solid rgba(140,130,190,.35);
  background: var(--bg); color: var(--text); width: 100%;
}
.field input[type="checkbox"] { width: 22px; height: 22px; }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-actions .btn { flex: 1; }
.photo-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin-top: 6px; }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--accent2); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; z-index: 60;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.empty { color: var(--muted); text-align: center; padding: 22px 10px; font-size: 14px; }
footer.app-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 28px; }

/* ===== Seção Trabalho — estilo dos prints (escuro esverdeado) ===== */
.topbar.dark { background: #101410; }
.workdark {
  background: #0c100c; color: #e9f2e9;
  margin: -16px -14px -40px; padding: 18px 14px 44px;
  min-height: calc(100dvh - 58px);
}
.workdark .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.workdark .mut { color: #93a393; }
.workdark .orange { color: #ff8a3d; }
.workdark .empty { color: #93a393; }
.workdark .item { background: #161c16; border-color: rgba(160,190,160,.14); }
.workdark .item .s { color: #93a393; }
.workdark .btn.ghost { background: #1d261d; color: #e9f2e9; }
.workdark h2.wsec { color: #e9f2e9; }

.period-nav { text-align: center; margin-bottom: 14px; }
.period-label { color: #93a393; font-size: 14px; text-transform: capitalize; }
.period-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.period-range { font-size: 19px; font-weight: 700; flex: 1; }
.period-sub { color: #93a393; font-size: 13px; margin-top: 2px; }
.workdark .cal-nav { background: #1d261d; color: #e9f2e9; border-radius: 999px; width: 42px; height: 42px; }

.wcard {
  background: #161c16; border: 1px solid rgba(160,190,160,.16);
  border-radius: 20px; padding: 16px; margin-bottom: 12px;
}
.wcard.cyan-border { border-color: rgba(56,189,248,.55); }
.wcard-title { margin: 0 0 8px; font-size: 17px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cyan-title { color: #38bdf8; font-weight: 700; font-size: 17px; }
.bar { height: 14px; border-radius: 999px; background: #232b23; overflow: hidden; margin: 10px 0; }
.bar span { display: block; height: 100%; border-radius: 999px; }
.bar.cyan span { background: #22b8dd; }
.bar.orange span { background: #ff8a3d; }
.bar.blue span { background: #38a8e8; }
.big-line { font-weight: 700; margin: 6px 0 4px; }
.mini-title { color: #93a393; font-size: 12px; letter-spacing: .06em; margin: 14px 0 6px; }
.yrow { padding: 3px 0; font-size: 14px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge.cyan { background: #0d3742; color: #4fd8f7; }

.hero {
  background: linear-gradient(160deg, #2fbf71, #23a35e);
  border-radius: 22px; padding: 20px 18px; color: #fff; margin-bottom: 12px;
}
.hero-label { font-size: 13px; letter-spacing: .08em; opacity: .9; font-weight: 700; }
.hero-value { font-size: 46px; font-weight: 800; line-height: 1.1; margin: 4px 0 12px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; border-top: 1px solid rgba(255,255,255,.35); padding-top: 14px; }
.hero-stats .n { font-size: 24px; font-weight: 800; }
.hero-stats .n.orange { color: #ffd9a8; }
.hero-stats .l { font-size: 11px; letter-spacing: .05em; opacity: .85; }
.hero-line { margin-top: 10px; font-size: 14px; }
.hero-rows { border-top: 1px solid rgba(255,255,255,.35); margin-top: 14px; padding-top: 10px; }
.hrow { display: flex; justify-content: space-between; padding: 5px 0; font-size: 16px; }
.hrow.total { border-top: 1px solid rgba(255,255,255,.35); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.hrow.total strong { font-size: 30px; }
.disc-label { display: block; font-weight: 700; margin: 16px 0 8px; }
.disc-row { display: flex; gap: 10px; }
.disc-row input {
  flex: 1; padding: 14px; font-size: 17px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.14); color: #fff;
}
.disc-row input::placeholder { color: rgba(255,255,255,.6); }
.btn.white { background: #fff; color: #1d9e57; }
.hero-note { font-size: 13px; opacity: .9; margin: 10px 0 0; }
.hero-pay { border-top: 1px solid rgba(255,255,255,.35); margin-top: 14px; padding-top: 12px; font-weight: 700; }

.goal-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.goal-name { color: #4db2ff; font-weight: 700; font-size: 16px; }
.goal-foot { display: flex; justify-content: space-between; gap: 10px; }

.btn.launch {
  width: 100%; padding: 20px; font-size: 18px; border-radius: 18px;
  background: rgba(35,163,94,.18); color: #4ade80;
  border: 2px dashed #2fbf71;
}
label.grow-label { flex: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; text-align: center; }
.btn.green { background: #2fbf71; color: #fff; }

.daycard {
  background: #161c16; border: 1px solid rgba(160,190,160,.16);
  border-radius: 18px; padding: 12px; display: flex; gap: 12px; align-items: flex-start;
}
.datebox { background: #232b23; border-radius: 14px; padding: 8px 6px; text-align: center; min-width: 58px; }
.datebox.cyan { background: #0d3742; }
.datebox .dn { font-size: 24px; font-weight: 800; line-height: 1; }
.datebox .dw { font-size: 10px; color: #a9b8a9; margin-top: 4px; letter-spacing: .03em; }
.daycard .grow { flex: 1; min-width: 0; }
.daycard .times { font-size: 16px; font-weight: 600; }
.daycard .extra { color: #ff8a3d; font-weight: 700; margin-top: 2px; }
.daycard .sub { color: #93a393; font-size: 13px; margin-top: 2px; }
.daycard .note { font-size: 13px; margin-top: 4px; }
.daycard .val { color: #4ade80; font-weight: 800; font-size: 17px; white-space: nowrap; padding-top: 4px; }
.daycard .actions { display: flex; flex-direction: column; gap: 8px; }
.daycard .mini {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(160,190,160,.25);
  background: transparent; cursor: pointer; font-size: 15px;
}
.daycard .mini.red { border-color: rgba(248,113,113,.4); }

/* ===== Pokémon — Álbum (estilo dos prints, escuro azulado + vermelho) ===== */
.pokedark {
  background: #0b0e14; color: #eef1f6;
  margin: -16px -14px -40px; padding: 18px 14px 44px;
  min-height: calc(100dvh - 58px);
}
.pokedark .mut { color: #98a2b5; }
.pokedark .mut.small, .pokedark .small { font-size: 12px; }
.pokedark .empty { color: #98a2b5; }
.pk-h1 { font-size: 28px; margin: 2px 0 6px; }
.album-card {
  background: #171c26; border: 1px solid rgba(160,175,205,.14);
  border-radius: 20px; padding: 18px; margin-bottom: 14px; cursor: pointer;
}
.album-card h3 { margin: 0; font-size: 21px; letter-spacing: .01em; }
.code-badge { background: rgba(240,68,56,.18); color: #ff6b5e; font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.code-inline { color: #98a2b5; font-size: 15px; font-weight: 600; }
.jp { color: #98a2b5; font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar.red span { background: #f04438; }
.album-value { margin-top: 12px; border-top: 1px solid rgba(160,175,205,.14); padding-top: 12px; font-size: 16px; }
.album-value strong { font-size: 24px; }
.delta.up { color: #4ade80; }
.delta.down { color: #ff7a6e; }
.btn.dashed-red {
  width: 100%; padding: 20px; font-size: 17px; border-radius: 18px;
  background: transparent; color: #eef1f6; border: 2px dashed rgba(160,175,205,.4);
}
.btn.red { background: #f04438; color: #fff; }
.btn.outline-red { background: transparent; color: #eef1f6; border: 2px solid #f04438; }
/* Botão escuro "pro": discreto, borda fina, usado nas ações da seção Pokémon */
.btn.dark { background: #171d2e; color: #e9edf5; border: 1px solid #2a3448; }
.btn.dark:active { background: #1f2739; }
/* Grade de atalhos do álbum: 3 quadrados com ícone grande e nome curto */
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.shortcut { background: #171d2e; border: 1px solid #2a3448; border-radius: 18px; padding: 14px 4px 11px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: #e9edf5; font-family: inherit; }
.shortcut:active { background: #1f2739; }
.shortcut .sc-icon { font-size: 26px; line-height: 1; }
.shortcut .sc-label { font-size: 12.5px; font-weight: 600; }
.pokedark .btn.ghost { background: #232938; color: #eef1f6; }
.pokedark .item { background: #171c26; border-color: rgba(160,175,205,.14); }
.album-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
/* Bolinha do álbum: a imagem da box como "foto de perfil".
   Ela fica FIXA na tela: ao rolar, sobrepõe o que passar por baixo. */
.album-thumb-slot { width: 52px; height: 52px; flex: none; }
.album-thumb { position: fixed; top: calc(78px + env(safe-area-inset-top)); left: 14px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(160,175,205,.28); background: #232b3d; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.5); cursor: pointer; }
/* Bolinha ampliada: fundo escurecido e o círculo grande no centro da tela */
.avatar-lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(4,6,12,.88); display: grid; place-items: center; animation: lb-fade .18s ease-out; }
.avatar-lightbox .lb-circle { width: min(74vw, 320px); height: min(74vw, 320px); border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.25); background: #232b3d; display: grid; place-items: center; box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: lb-pop .22s ease-out; }
.avatar-lightbox .lb-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-pop { from { transform: scale(.7); opacity: .5; } to { transform: scale(1); opacity: 1; } }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Letreiro: textos longos do cabeçalho rolam pra mostrar o restante */
.mq { overflow: hidden; white-space: nowrap; }
.mq-in { display: inline-block; white-space: nowrap; will-change: transform; }
.mq.run .mq-in { animation: mq-move var(--mq-dur, 6s) ease-in-out infinite alternate; }
@keyframes mq-move { 0%, 16% { transform: translateX(0); } 84%, 100% { transform: translateX(calc(-1 * var(--mq-shift, 0px))); } }
.jp.mq { text-overflow: clip; }
.album-head .grow { flex: 1; min-width: 0; }
.album-title { font-size: 24px; font-weight: 800; line-height: 1.15; }
.pkcard { background: #171c26; border: 1px solid rgba(160,175,205,.14); border-radius: 20px; padding: 18px; margin-bottom: 12px; }
.pk-sep { border-top: 1px solid rgba(160,175,205,.14); margin: 16px -18px 14px; }
.pkcard .big { font-size: 21px; }
.pct-red { color: #f04438; font-size: 26px; }
.album-big-value { font-size: 32px; font-weight: 800; margin-top: 4px; }
.eval-result { margin-top: 14px; border-top: 1px solid rgba(160,175,205,.14); padding-top: 10px; font-size: 14px; }
.eval-result .delta { margin: 3px 0; }
.chart { width: 100%; height: 80px; }
.pk-chips { margin-bottom: 10px; }
.pokedark .chip { background: #171c26; border-color: rgba(160,175,205,.3); color: #eef1f6; }
.pokedark .chip.active-white { background: #fff; color: #111; border-color: #fff; font-weight: 700; }
.search-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.search-row input {
  flex: 1; min-width: 0; padding: 13px 14px; font-size: 15px; border-radius: 14px;
  border: 1px solid rgba(160,175,205,.3); background: #171c26; color: #eef1f6;
}
.pk-group { font-size: 19px; margin: 18px 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: #171c26; border: 1px solid rgba(160,175,205,.12); border-radius: 14px; overflow: hidden; cursor: pointer; }
.tile-art { position: relative; aspect-ratio: 3/4.1; background: linear-gradient(160deg, #2a3244, #1a2130); display: grid; place-items: center; }
.tile.missing .tile-art { filter: grayscale(1); opacity: .75; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-art img.art-img { position: absolute; inset: 0; }
.tile-name { position: absolute; top: 6px; left: 7px; right: 7px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.tile-q { font-size: 26px; opacity: .8; }
.tile .check {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 999px;
  background: #22c55e; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  border: 2px solid #d9fbe7;
}
.tile .qty {
  position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.75); color: #fbbf24;
  font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(251,191,36,.5);
}
.tile-info { padding: 8px; font-size: 12px; }
.tile-num { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-num span { color: #c6cdd9; }
.tile-price { font-weight: 800; font-size: 14px; margin-top: 2px; }
.tile-info .delta { font-size: 11px; margin-top: 2px; }
.checkrow { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid rgba(140,130,190,.12); font-size: 14px; }
.checkrow input { width: 20px; height: 20px; flex: none; }

/* Páginas do fichário + tema do álbum */
.binder {
  background: #12161f; border: 1px solid rgba(160,175,205,.18); border-radius: 18px;
  padding: 12px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.02);
}
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 10px; }
.page-title { text-align: center; font-weight: 800; font-size: 17px; flex: 1; }
.page-title .small { font-weight: 400; }
.pokedark .cal-nav { background: #232938; color: #eef1f6; border-radius: 999px; width: 42px; height: 42px; border: 0; font-size: 20px; cursor: pointer; }
.pokedark .cal-nav:disabled { opacity: .35; cursor: default; }
.page-dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.page-dots .dot {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(160,175,205,.3); background: #171c26; color: #c6cdd9; font-size: 13px;
}
.page-dots .dot.on { background: #f04438; border-color: #f04438; color: #fff; font-weight: 800; }
.mini-btn {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35); cursor: pointer; font-size: 15px; flex: none;
}
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 44px; height: 44px; border-radius: 12px; border: 2px solid rgba(255,255,255,.25); cursor: pointer; color: #fff; font-size: 16px; }
.swatch.none { background: transparent; }
.theme-preview { margin-top: 8px; font-size: 13px; color: var(--muted); }
.album-card { position: relative; overflow: hidden; }

/* Puxar para atualizar (pull-to-refresh) */
.ptr {
  position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; z-index: 90;
  transform: translate(-50%, -90px); transition: transform .18s ease; pointer-events: none;
}
.ptr-box {
  background: var(--accent2); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.35); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
#ptr-pika { height: 44px; width: auto; display: block; }
#ptr-pika.hidden { display: none; }
/* Na hora de atualizar (seção Pokémon): o Pikachu aparece GRANDE no meio da
   página, centralizado e sempre dentro dos limites da tela. */
#pika-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  pointer-events: none; background: rgba(12, 4, 30, .22); padding: 16px;
}
#pika-overlay.hidden { display: none; }
#pika-overlay img {
  width: min(80vw, 360px); height: auto; max-height: 64vh; object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.45));
  animation: pika-pop .28s ease-out;
}
@keyframes pika-pop { from { transform: scale(.82); opacity: .4; } to { transform: scale(1); opacity: 1; } }

/* Filtros do álbum — faixa rolável + controle segmentado (clean) */
.cat-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, #000 92%, transparent);
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(160,175,205,.22); background: #171c26; color: #cfd6e2; font-size: 14px;
}
.cat-chip .cnt { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.09); color: #98a2b5; padding: 1px 7px; border-radius: 999px; }
.cat-chip.on { background: #f04438; border-color: #f04438; color: #fff; font-weight: 700; }
.cat-chip.on .cnt { background: rgba(255,255,255,.25); color: #fff; }
.search-row { margin-bottom: 10px; }
.seg {
  display: flex; gap: 3px; background: #171c26; border: 1px solid rgba(160,175,205,.18);
  border-radius: 13px; padding: 3px; margin-bottom: 6px;
}
.seg button {
  flex: 1; padding: 9px 4px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: #98a2b5; font-size: 14px; font-weight: 600;
}
.seg button.on { background: #e9edf5; color: #10131a; }

/* Coleção: cards expansíveis, balãozinho do logotipo, foto ampliável */
.prod-list { display: flex; flex-direction: column; gap: 16px; }
.prod-card { position: relative; background: var(--card); border: 1px solid rgba(150,140,200,.14); border-radius: 16px; padding: 12px; margin-top: 10px; }
.logo-bubble { position: absolute; top: -11px; left: 14px; z-index: 2; background: #fff; border-radius: 999px; padding: 3px 10px; box-shadow: 0 4px 12px rgba(0,0,0,.35); line-height: 0; }
.logo-bubble img { max-height: 18px; max-width: 90px; object-fit: contain; }
.logo-bubble.static { position: static; display: inline-grid; place-items: center; min-height: 24px; }
.logo-bubble.static .mut { line-height: 1.2; font-size: 12px; }
.pc-head { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.pc-head img.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; flex: none; cursor: zoom-in; }
.pc-head img.pc-ball { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; flex: none; cursor: zoom-in; }
.pc-head .t { font-weight: 700; font-size: 16px; }
.pc-head .s { color: #98a2b5; font-size: 13.5px; margin-top: 2px; }
.pc-chev { color: #98a2b5; flex: none; font-size: 14px; }
.site-chip { display: inline-block; margin-top: 5px; font-size: 12px; color: #c4b5fd; background: rgba(124,58,237,.18); border: 1px solid rgba(167,139,250,.35); padding: 2px 8px; border-radius: 999px; text-decoration: none; }
.pc-body { margin-top: 12px; border-top: 1px solid rgba(140,150,175,.14); padding-top: 12px; }
.pc-name { font-size: 17px; font-weight: 800; margin: 2px 0 4px; }
.pc-photo { border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; width: auto; max-width: none; min-width: 0; margin: -12px -12px 8px; cursor: zoom-in; }
.pc-photo img { width: 100%; max-width: 100%; height: auto; max-height: 70vh; object-fit: contain; display: block; border-radius: 12px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.btn.block { display: flex; }
.pc-photo.is-cutout, .il-box.is-cutout, .pf-photo.is-cutout { background: repeating-conic-gradient(#262b36 0% 25%, #1d212b 0% 50%) 50% / 22px 22px; }
.img-lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(4,6,12,.9); display: flex; align-items: center; justify-content: center; animation: lb-fade .18s ease-out; padding: 16px; box-sizing: border-box; }
.il-box { max-width: 100%; max-height: 100%; min-width: 0; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.il-box img { max-width: 100%; max-height: 84vh; width: auto; height: auto; object-fit: contain; display: block; border-radius: 12px; }
.pf-photo { border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; min-width: min(200px, 100%); min-height: 90px; margin: 0 auto 12px; background: rgba(140,150,175,.08); }
.pf-photo img { max-width: 100%; max-height: 38vh; width: auto; height: auto; object-fit: contain; display: block; border-radius: 12px; }
.pf-logo-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); padding: 0; cursor: pointer; }
.sw.sel { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.45); }
.sw.transp { background: repeating-conic-gradient(#9aa3b2 0% 25%, #5b6472 0% 50%) 50% / 10px 10px; }
.kv-list { margin-top: 6px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(140,150,175,.14); font-size: 14.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: #98a2b5; flex: none; }
.kv .v { font-weight: 600; text-align: right; word-break: break-all; }

/* Game Boy: console realista (corpo, lente da tela, cruz, botões 3D, alto-falante) */
.gb-wrap { --gb-name: #e8ecf5; --gb-status: #9aa3b8; --gb-label: #cfd6e4; --gb-dpad: #2c313d; --gb-a: #b3314f; --gb-b: #8e2a44; --gb-pill: #3a4050; --gb-bezel-bg: linear-gradient(165deg, #2a2e37, #14161c); --gb-brand: #e8ecf5; background: linear-gradient(170deg, #262b36, #1b1f27); border-radius: 20px 20px 46px 20px; padding: 16px 16px 20px; margin: -4px -2px 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.35); }
.gb-wrap.theme-dmg { --gb-name: #26241f; --gb-status: #5c584e; --gb-label: #3c4470; --gb-dpad: #26262a; --gb-a: #a91e4c; --gb-b: #a91e4c; --gb-pill: #8f8c84; --gb-bezel-bg: linear-gradient(165deg, #63636c, #43434b); --gb-brand: #2e3a67; background: linear-gradient(170deg, #dcd9d0, #c6c3ba); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 24px rgba(0,0,0,.3); }
.gb-wrap.theme-gbc { --gb-name: #4a3200; --gb-status: #6b5200; --gb-label: #1d3f9e; --gb-dpad: #2456c8; --gb-a: #e23b2e; --gb-b: #37a93c; --gb-pill: #2b2b2e; --gb-bezel-bg: linear-gradient(165deg, #232326, #0a0a0c); --gb-brand: #b9bec9; background: linear-gradient(170deg, #ffd12e, #f0a90e); border-radius: 20px 20px 64px 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 10px 24px rgba(0,0,0,.3); }
.gb-wrap .mut { color: var(--gb-status); }
.gb-echo { text-align: center; min-height: 15px; margin: 2px 0 0; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--gb-status); }
.gb-name { color: var(--gb-name); font-weight: 800; font-size: 16px; text-align: center; margin-bottom: 10px; }
.gb-bezel { position: relative; background: var(--gb-bezel-bg); border-radius: 14px 14px 52px 14px; padding: 12px 14px 9px; box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.15); }
.theme-gbc .gb-bezel { padding: 16px 18px 12px; border-radius: 16px 16px 58px 16px; }
.gb-pika { display: none; position: absolute; left: 10px; bottom: 4px; width: 48px; height: 48px; object-fit: contain; pointer-events: none; }
.theme-gbc .gb-pika { display: block; }
.theme-gbc .brand-gbc { padding-left: 52px; }
.gb-ball { display: none; width: 21px; height: 21px; border-radius: 50%; background: linear-gradient(180deg, #e23b2e 0 44%, #151515 44% 56%, #f4f4f4 56% 100%); box-shadow: inset 0 -2px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.4); position: relative; flex: none; }
.gb-ball::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #fff; border: 1.6px solid #151515; transform: translate(-50%, -50%); }
.theme-gbc .gb-ball { display: inline-block; }
.theme-gbc .gb-led { display: none; }
.theme-gbc .gb-power { flex-direction: column; gap: 3px; }
.gb-shell-logo { display: none; text-align: center; margin-top: 14px; font-size: 27px; font-weight: 900; font-style: italic; letter-spacing: .02em; color: #ffcb05; -webkit-text-stroke: 1.2px #2a75bb; text-shadow: 2px 2px 0 #2a75bb; }
.theme-gbc .gb-shell-logo { display: block; }
.gb-letter { display: none; font-size: 20px; font-weight: 900; color: rgba(0,0,0,.42); }
.theme-gbc .gb-letter { display: block; }
.theme-gbc .gb-abtn > span { display: none; }
.gb-stripes { display: none; height: 7px; border-radius: 3px; margin-bottom: 8px; background: linear-gradient(180deg, #7a4a72 0 2px, transparent 2px 4px, #2e3a67 4px 6px, transparent 6px); }
.theme-dmg .gb-stripes { display: block; }
.gb-bezel-top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.gb-power { display: inline-flex; align-items: center; gap: 5px; color: #d7d9de; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.gb-led { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 6px 2px rgba(255,59,48,.75), inset 0 -1px 2px rgba(0,0,0,.4); display: inline-block; }
.gb-matrix { color: #c9ccd4; font-size: 8px; font-weight: 600; letter-spacing: .22em; white-space: nowrap; overflow: hidden; }
.theme-gbc .gb-matrix { display: none; }
.gb-screen { background: #101216; padding: 7px; border-radius: 6px; box-shadow: inset 0 2px 10px rgba(0,0,0,.85); display: flex; justify-content: center; }
.gb-screen canvas { width: 100%; max-width: 440px; aspect-ratio: 10 / 9; height: auto; image-rendering: pixelated; background: #9bbc0f; border-radius: 2px; display: block; }
.gb-brand { display: none; color: var(--gb-brand); font-size: 15px; margin-top: 7px; letter-spacing: .01em; }
.gb-brand b { font-style: italic; font-weight: 900; font-size: 19px; letter-spacing: .02em; }
.gb-brand sup { font-size: 8px; }
.theme-dark .brand-dmg, .theme-dmg .brand-dmg { display: block; }
.theme-gbc .brand-gbc { display: block; font-weight: 800; font-style: italic; font-size: 17px; }
.gb-brand .cb i { font-style: italic; }
.gb-brand .cb i:nth-child(1) { color: #e94f3d; } .gb-brand .cb i:nth-child(2) { color: #f39c2c; } .gb-brand .cb i:nth-child(3) { color: #39b54a; } .gb-brand .cb i:nth-child(4) { color: #2f80ed; } .gb-brand .cb i:nth-child(5) { color: #9b51e0; }
.gb-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; -webkit-touch-callout: none; padding: 0 2px; }
.gb-cross { position: relative; width: 132px; height: 132px; flex: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.gb-arm { pointer-events: none; }
.gb-arm.lit { color: rgba(255,255,255,.85); }
.gb-cross::before, .gb-cross::after { content: ""; position: absolute; background: linear-gradient(160deg, color-mix(in srgb, var(--gb-dpad) 88%, #fff), var(--gb-dpad) 55%, color-mix(in srgb, var(--gb-dpad) 72%, #000)); box-shadow: 0 3px 6px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.25), inset 0 -2px 4px rgba(0,0,0,.45); }
.gb-cross::before { left: 50%; top: 0; width: 42px; height: 100%; transform: translateX(-50%); border-radius: 7px; }
.gb-cross::after { top: 50%; left: 0; height: 42px; width: 100%; transform: translateY(-50%); border-radius: 7px; }
.gb-arm { position: absolute; z-index: 1; width: 44px; height: 44px; background: transparent; border: 0; color: rgba(255,255,255,.22); font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.gb-arm.up { top: 0; left: 50%; transform: translateX(-50%); }
.gb-arm.down { bottom: 0; left: 50%; transform: translateX(-50%); }
.gb-arm.left { left: 0; top: 50%; transform: translateY(-50%); }
.gb-arm.right { right: 0; top: 50%; transform: translateY(-50%); }
.gb-hub { position: absolute; z-index: 2; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--gb-dpad) 80%, #fff) 0 26%, var(--gb-dpad) 60%, color-mix(in srgb, var(--gb-dpad) 70%, #000)); box-shadow: inset 0 2px 5px rgba(0,0,0,.5); pointer-events: none; }
.gb-ab2 { display: flex; gap: 14px; align-items: flex-start; transform: rotate(-14deg); }
.gb-abtn { text-align: center; }
.gb-abtn.lower { margin-top: 24px; }
.gb-abtn span { display: block; margin-top: 3px; font-size: 14px; font-weight: 900; font-style: italic; color: var(--gb-label); }
.gb-round { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; box-shadow: 0 4px 0 rgba(0,0,0,.28), 0 7px 12px rgba(0,0,0,.35), inset 0 2px 3px rgba(255,255,255,.45), inset 0 -4px 7px rgba(0,0,0,.35); }
.gb-round.a { background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--gb-a) 62%, #fff), var(--gb-a) 58%, color-mix(in srgb, var(--gb-a) 74%, #000)); }
.gb-round.b { background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--gb-b) 62%, #fff), var(--gb-b) 58%, color-mix(in srgb, var(--gb-b) 74%, #000)); }
.gb-round:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.28), 0 3px 6px rgba(0,0,0,.3), inset 0 2px 3px rgba(255,255,255,.4), inset 0 -3px 6px rgba(0,0,0,.35); }
.gb-meta2 { position: relative; display: flex; gap: 20px; justify-content: center; margin-top: 20px; min-height: 58px; }
.gb-sbtn { text-align: center; transform: rotate(-14deg); }
.gb-sbtn span { display: block; margin-top: 4px; font-size: 9px; font-weight: 800; letter-spacing: .16em; color: var(--gb-label); }
.gb-pill { appearance: none; border: 0; width: 54px; height: 14px; border-radius: 999px; background: linear-gradient(180deg, color-mix(in srgb, var(--gb-pill) 80%, #fff), var(--gb-pill) 60%, color-mix(in srgb, var(--gb-pill) 72%, #000)); box-shadow: 0 2px 4px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.gb-pill:active { transform: translateY(1px); }
.gb-speaker { position: absolute; right: 0; bottom: -4px; width: 104px; height: 56px; opacity: .45; background: repeating-linear-gradient(-32deg, rgba(0,0,0,.55) 0 5px, transparent 5px 13px); border-radius: 8px; }
.theme-gbc .gb-speaker { background: radial-gradient(circle, rgba(90,55,0,.65) 1.6px, transparent 2.2px) 0 0 / 11px 11px; opacity: .5; }
[data-gb] { touch-action: none; -webkit-tap-highlight-color: transparent; }
.gb-cols-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.gb-cols { display: flex; gap: 6px; }
.gb-cols button { appearance: none; border: 1px solid rgba(140,150,175,.25); background: transparent; color: var(--muted); border-radius: 999px; min-width: 40px; padding: 7px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.gb-cols button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gb-grid { display: grid; grid-template-columns: repeat(var(--gbc, 2), 1fr); gap: 12px; margin-bottom: 14px; }
.gb-box { position: relative; background: var(--card); border: 1px solid rgba(140,130,190,.14); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.gb-grid.jiggling .gb-box { animation: jiggle .26s ease-in-out infinite alternate; }
.gb-badge { position: absolute; top: -9px; width: 27px; height: 27px; border-radius: 50%; border: 2px solid #fff; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.gb-badge.bl { left: -7px; background: #3b4257; }
.gb-badge.br { right: -7px; background: #c0392b; }
.gb-cover { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #171a21; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-cover-ph { font-size: 42px; opacity: .45; }
.gb-cover-preview { aspect-ratio: 1 / 1; max-width: 240px; margin: 0 auto 10px; border-radius: 12px; overflow: hidden; background: #171a21; display: flex; align-items: center; justify-content: center; }
.gb-cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-box-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-box-size { color: var(--muted); font-size: 12px; margin-top: -5px; }
.gb-box-btns { display: flex; gap: 6px; }

/* Capa do álbum (prévia no app) */
.album-cover {
  background: linear-gradient(165deg, #1a2338, #0d1220 70%);
  border: 1px solid rgba(240,68,56,.45); border-radius: 18px;
  padding: 26px 20px 22px; text-align: center; margin-bottom: 14px;
}
.album-cover .ac-code { color: #f04438; font-weight: 800; letter-spacing: 2px; font-size: 12px; }
.album-cover .ac-name { font-size: 30px; font-weight: 900; line-height: 1.15; margin: 10px 0 4px; }
.album-cover .ac-sub { color: #98a2b5; font-size: 14px; margin-bottom: 16px; }
.album-cover .bar { margin: 0 auto 12px; max-width: 260px; }
.album-cover .ac-stats { font-size: 15px; font-weight: 600; line-height: 1.5; }
/* Capa com imagem: caixa nas proporções da caixa oficial, imagem ao fundo do texto */
.album-cover.has-img { position: relative; overflow: hidden; padding: 0; text-align: left; width: 100%; }
.album-cover .cover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album-cover .cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,20,.40), rgba(8,10,20,0) 36%, rgba(8,10,20,0) 58%, rgba(8,10,20,.45)); }
.album-cover .cover-top { position: absolute; top: 0; left: 0; right: 0; padding: 14px 16px; }
.album-cover .cover-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 14px; }
.album-cover .onimg { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.8), 0 1px 3px rgba(0,0,0,.85); }
.album-cover .ac-code.onimg { color: #fff; font-size: 11px; }
.album-cover .ac-name.onimg { font-size: 21px; margin: 4px 0 0; }
.album-cover .cover-bottom { padding: 10px 16px 15px; }
.album-cover .ac-stats.onimg { font-size: 12.5px; font-weight: 700; letter-spacing: .2px; }
.album-cover .cover-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.28); }
.album-cover .cover-progress span { display: block; height: 100%; background: #f04438; }
/* Ações da capa: fileira única, discreta e uniforme (clean) */
.cover-actions { display: flex; gap: 4px; background: #141a29; border: 1px solid #232b3d; border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.cover-actions .ca-btn { flex: 1; background: transparent; border: 0; color: #e9edf5; font-size: 13.5px; font-weight: 600; padding: 9px 2px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.cover-actions .ca-btn:active { background: #232b3d; }

/* Scanner de documentos */
.scan-list { display: grid; gap: 10px; }
.scan-card {
  display: flex; gap: 12px; align-items: center; background: var(--card);
  border: 1px solid rgba(140,150,165,.25); border-radius: 14px; padding: 10px; cursor: pointer;
}
.scan-card img { width: 52px; height: 64px; object-fit: cover; border-radius: 8px; background: #ddd; }
.scan-card .chev { font-size: 22px; color: var(--muted); }
.bill-thumb { width: 52px; height: 64px; border-radius: 8px; background: #efe9fb; display: grid; place-items: center; font-size: 24px; flex: none; }
.fl-ball { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 26px; flex: none; position: relative; overflow: hidden; }
.fl-ball img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; background: #fff; }
.bill-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.bill-badge.paga { background: #dcf5e5; color: #137333; }
.bill-badge.pendente { background: #ececf1; color: #55586b; }
.bill-badge.hoje { background: #fdeeda; color: #9a6206; }
.bill-badge.vencida { background: #fde3e0; color: #b3261e; }
.scan-status { text-align: center; font-weight: 600; padding: 10px; }
.doc-page {
  position: relative; width: 100%; background: #fff; color: #14161a;
  border-radius: 6px; box-shadow: 0 4px 18px rgba(20,20,40,.18);
  container-type: size; overflow: hidden;
}
.doc-text { position: absolute; line-height: 1.25; white-space: nowrap; cursor: pointer; }
.doc-img { position: absolute; object-fit: cover; border-radius: 2px; }
.crop-wrap { position: relative; border-radius: 12px; overflow: hidden; touch-action: none; -webkit-touch-callout: none; }
.crop-img { width: 100%; display: block; }
.crop-rect {
  position: absolute; border: 2px solid #f04438; background: rgba(240,68,56,.18);
  border-radius: 4px; pointer-events: none;
}
