/* Meu Financeiro — estilos. As cores vêm de variáveis definidas em js/theme.js. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg, #EEF6F4);
  color: var(--text, #173330);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.lg { width: 22px; height: 22px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.warn { color: var(--warn); }
.nowrap { white-space: nowrap; }
.money-hidden { letter-spacing: .08em; }
.slot { display: contents; }
html.locked, html.locked body { overflow: hidden; }
.dash, .dash > .col, .wide-grid { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.boot { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; }
.boot .brand-mark { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.login .btn svg { width: 18px; height: 18px; }

/* ---------- Estrutura ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.main { padding: 14px 16px calc(100px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.topbar .actions { display: flex; gap: 8px; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex: none; }
.brand-date { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.title-back { display: flex; align-items: center; gap: 8px; }
.title-back h1 { font-size: 22px; }

.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.sync-dot { position: relative; }
.sync-dot[data-state="pending"]::after, .sync-dot[data-state="offline"]::after, .sync-dot[data-state="error"]::after { content: ''; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 99px; background: var(--warn); }
.sync-dot[data-state="error"]::after { background: var(--neg); }

.month-nav { display: flex; align-items: center; justify-content: space-between; padding: 2px; border-radius: 14px; background: var(--surface2); }
.month-nav button { width: 44px; height: 40px; border: 0; border-radius: 12px; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; }
.month-nav .label { flex: 1; width: auto; min-width: 0; height: auto; min-height: 40px; flex-direction: column; gap: 0; font-size: 15px; font-weight: 800; padding: 4px 10px; line-height: 1.2; white-space: nowrap; }
.month-nav .label small { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.flush { padding: 0 12px; gap: 0; border-radius: 18px; }
.card h2, .section-title { margin: 0; font-size: 16px; font-weight: 800; }
.card .sub, .section-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.section-head { padding-top: 4px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

.hero { background: var(--hero); color: var(--hero-text); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.hero .k { font-size: 13px; font-weight: 600; color: var(--hero-muted); }
.hero .big { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .note { font-size: 12.5px; color: var(--hero-muted); line-height: 1.4; }
.hero .line { height: 1px; background: var(--hero-line); }
.hero .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero .mid { font-size: 18px; font-weight: 800; margin-top: 3px; white-space: nowrap; }
.hero .tiny { font-size: 11.5px; color: var(--hero-muted); margin-top: 2px; line-height: 1.35; }
.hero-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--hero-chip); color: var(--hero-text); font-size: 13.5px; font-weight: 700; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero .bar { height: 8px; border-radius: 99px; background: var(--hero-chip); overflow: hidden; }
.hero .bar > span { display: block; height: 100%; border-radius: 99px; background: var(--hero-text); }
.pill { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: var(--hero-chip); white-space: nowrap; }

.row-list > * + * { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; border: 0; background: transparent; text-align: left; min-width: 0; }
button.row { color: var(--text); }
.row .ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--surface2); }
.row .body { flex: 1; min-width: 0; }
.row .t { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { text-align: right; flex: none; }
.row .v { display: block; font-size: 14.5px; font-weight: 800; white-space: nowrap; }
.row .tag { display: block; font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.date-box { width: 44px; height: 44px; border-radius: 12px; background: var(--surface2); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.date-box b { font-size: 15px; font-weight: 800; line-height: 1; }
.date-box small { font-size: 10.5px; font-weight: 700; color: var(--muted); margin-top: 3px; text-transform: uppercase; }

.kv { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kv .l { display: flex; gap: 10px; min-width: 0; }
.kv .dot { width: 8px; height: 8px; border-radius: 99px; margin-top: 6px; flex: none; }
.kv .lt { font-size: 14px; font-weight: 700; }
.kv .ln { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.kv .val { font-size: 15px; font-weight: 800; white-space: nowrap; }

.track { position: relative; height: 8px; border-radius: 99px; background: var(--surface2); }
.track.thin { height: 6px; }
.track > .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); max-width: 100%; }
.track > .mark { position: absolute; top: -4px; width: 2px; height: 16px; border-radius: 2px; background: var(--text); }
.track.thin > .mark { top: -3px; height: 12px; }

.cat-row { display: flex; gap: 12px; align-items: center; }
.cat-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.cat-row .body { flex: 1; min-width: 0; }
.cat-row .top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.cat-row .top b { font-weight: 800; white-space: nowrap; }
.cat-row .top span { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row .bot { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; }
.cat-row .track { margin-top: 6px; }

.tip { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; display: flex; gap: 12px; }
.tip .ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.tip b { display: block; font-size: 14px; font-weight: 800; }
.tip p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface2); font-size: 13px; line-height: 1.5; }
.notice svg { margin-top: 1px; color: var(--accent-ink); }
.notice.warn { background: var(--warn-soft); }
.notice.warn svg { color: var(--warn); }
.notice.neg { background: var(--neg-soft); }
.notice.neg svg { color: var(--neg); }
.notice.pos { background: var(--pos-soft); }
.notice.pos svg { color: var(--pos); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 800; text-decoration: none; }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.plain { background: var(--surface2); color: var(--text); }
.btn.danger { background: var(--neg-soft); color: var(--neg); }
.btn.sm { height: 44px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.link-row { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--surface2); color: var(--text); font-size: 14px; font-weight: 700; width: 100%; }
.dashed { height: 52px; border-radius: 16px; border: 1.5px dashed var(--border); background: transparent; color: var(--accent-ink); font-size: 14.5px; font-weight: 800; width: 100%; }

.seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface2); }
.seg button { height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; white-space: nowrap; min-width: 0; }
@media (max-width: 420px) { .seg button { font-size: 13.5px; } }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--seg-shadow); }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.stat .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat .v { font-size: 16px; font-weight: 800; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.group-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 4px 2px 0; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }

.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent; color: var(--text); font-size: 15px; padding: 0; }

/* Barras de gráfico simples */
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 140px; }
.bars .col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bars .col small { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bars .col b { font-size: 12px; font-weight: 700; }
.bars .bar { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--accent); min-height: 2px; }
.bars .pair { display: flex; align-items: flex-end; gap: 3px; height: 100%; width: 100%; justify-content: center; }
.bars .pair span { width: 42%; max-width: 16px; border-radius: 5px 5px 2px 2px; min-height: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 99px; display: block; }
.stack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface2); gap: 2px; }
.stack span { display: block; height: 100%; }

/* ---------- Navegação ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
.nav-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 700; min-height: 52px; justify-content: center; }
.nav-btn[aria-current="page"] { color: var(--accent-ink); }
.nav-btn[aria-current="page"] .nav-ico { background: var(--accent-soft); }
.nav-ico { width: 48px; height: 28px; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
.fab-wrap { display: flex; justify-content: center; }
.fab { width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--fab-shadow); margin-top: -18px; }
.fab svg { width: 26px; height: 26px; stroke-width: 2.2; }
.nav-side-title, .nav-side-foot { display: none; }

/* ---------- Painel inferior (sheet) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-scrim { position: absolute; inset: 0; border: 0; background: var(--overlay); padding: 0; animation: fade .18s ease-out; }
.sheet { position: relative; background: var(--bg); border-radius: 24px 24px 0 0; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow); animation: up .22s ease-out; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 640px; margin: 0 auto; }
.sheet-grip { width: 40px; height: 5px; border-radius: 99px; background: var(--border); margin: 2px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: var(--bg); padding: 10px 0 0; margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.input { height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 15px; width: 100%; min-width: 0; }
textarea.input { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.amount { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.amount .k { font-size: 13px; font-weight: 700; color: var(--muted); }
.amount .v { display: flex; align-items: baseline; gap: 6px; }
.amount .v span { font-size: 22px; font-weight: 800; color: var(--muted); }
.amount input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 36px; font-weight: 800; letter-spacing: -.02em; padding: 0; color: var(--text); }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.2; min-height: 76px; }
.cat-pick .cat-ico { width: 36px; height: 36px; }
.cat-pick[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.toggle .tl { font-size: 14px; font-weight: 700; }
.toggle .ts { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--border); transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
details.more { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
details.more > summary { list-style: none; padding: 14px; font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary svg { transform: rotate(90deg); }
details.more > .inner { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.scope { display: flex; flex-direction: column; gap: 8px; }

/* Aparência */
.pal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pal { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--text); }
.pal[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); border-color: transparent; }
.pal .sw { display: flex; height: 40px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); }
.pal .sw span { flex: 1; }
.pal .nm { display: flex; justify-content: space-between; align-items: center; }

/* Login e telas cheias */
.center { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login .brand-mark { width: 56px; height: 56px; border-radius: 16px; font-size: 18px; }
.login h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.login p { margin: 0; color: var(--muted); line-height: 1.5; }
.err { color: var(--neg); font-size: 13.5px; font-weight: 700; min-height: 1em; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(12px); background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 700; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--text); font-size: 13px; font-weight: 600; }
.banner svg { color: var(--warn); }
.banner button { margin-left: auto; border: 0; background: transparent; color: var(--accent-ink); font-weight: 800; font-size: 13px; padding: 6px; }

table.simple { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.simple th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 8px 8px 0; }
table.simple td { padding: 9px 8px 9px 0; border-top: 1px solid var(--border); white-space: nowrap; }
table.simple td.r, table.simple th.r { text-align: right; padding-right: 0; }
.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }

/* ---------- Computador ---------- */
@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 14px; border-top: 0; border-right: 1px solid var(--border); }
  .nav-side-title { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; order: -2; }
  .nav-side-title b { font-size: 17px; font-weight: 800; }
  .nav-btn { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 14.5px; min-height: 48px; padding: 0 10px; border-radius: 14px; }
  .nav-btn[aria-current="page"] { background: var(--accent-soft); }
  .nav-btn[aria-current="page"] .nav-ico { background: transparent; }
  .nav-ico { width: 28px; }
  .fab-wrap { order: -1; justify-content: stretch; margin-bottom: 12px; }
  .fab { width: 100%; height: 48px; border-radius: 14px; margin: 0; gap: 8px; font-weight: 800; font-size: 15px; box-shadow: none; }
  .fab svg { width: 20px; height: 20px; }
  .fab::after { content: 'Novo lançamento'; }
  .nav-side-foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
  .main { max-width: 1120px; padding: 24px 32px 48px; }
  .dash { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .dash > .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .wide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .sheet-wrap { justify-content: center; align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; max-height: 88vh; max-width: 560px; }
  .sheet-grip { display: none; }
  .sheet-foot { bottom: -20px; }
  .toast { bottom: 32px; }
  .hide-desktop { display: none !important; }
  .topbar .brand .brand-mark { display: none; }
}
@media (max-width: 959px) { .show-desktop { display: none !important; } }
@media (max-width: 360px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero .big { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
