/* RENGUI — App do Frete
   Identidade: azul-marinho, dourado envelhecido e branco. Logo RG (o G é uma estrada),
   estrada em perspectiva como desenho de fundo. Letras: Manrope (textos) e Archivo (marca e números).
   Uma coluna de celular, botões grandes, um assunto por tela. */
:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #0E1726;
  --muted: #5B6577;
  --line: #DDE2EA;
  --navy: #0B1B33;
  --navy-2: #1A3358;
  --navy-line: #2A4470;
  --ico-bg: #0B1B33;
  --card-navy: #0B1B33;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C3CAD6;
  --gold: #B8954F;
  --gold-light: #D6BC85;
  --gold-text: #8E6F33;
  --on-gold: #0B1B33;
  --accent: #0B1B33;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EBF3;
  --positive: #1E6B4A;
  --warn-soft: #F6EEDC;
  --danger: #A12C23;
  --danger-ink: #FFFFFF;
  --danger-soft: #F5DCD8;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Archivo", "Manrope", -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08111F; --surface: #101C31; --ink: #EEF1F6; --muted: #9AA6B8; --line: #23324D;
    --card-navy: #132544; --navy-line: #2E4A78; --ico-bg: #1E355C;
    --gold-text: #D6BC85;
    --accent: #D6BC85; --accent-ink: #0B1B33; --accent-soft: #1A2A47;
    --positive: #6FCF97; --warn-soft: #3A2E14;
    --danger: #F2897E; --danger-ink: #1C0C0A; --danger-soft: #3D1E1A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08111F; --surface: #101C31; --ink: #EEF1F6; --muted: #9AA6B8; --line: #23324D;
  --card-navy: #132544; --navy-line: #2E4A78; --ico-bg: #1E355C;
  --gold-text: #D6BC85;
  --accent: #D6BC85; --accent-ink: #0B1B33; --accent-soft: #1A2A47;
  --positive: #6FCF97; --warn-soft: #3A2E14;
  --danger: #F2897E; --danger-ink: #1C0C0A; --danger-soft: #3D1E1A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
html { touch-action: manipulation; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; font-weight: 500; line-height: 1.45; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, .big, .act, .item, .cat, .chip, .notabar { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* Topo (marinho, de ponta a ponta) */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--navy); }
.bar { position: sticky; top: 0; z-index: 5; background: var(--navy); color: var(--on-navy); border-bottom: 2px solid var(--gold); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; min-height: 78px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.bar #backBtn { grid-column: 1; }
.bar h1 { grid-column: 2; margin: 0; text-align: center; font-size: 18px; font-weight: 800; line-height: 1.2; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bar .right { grid-column: 3; justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 44px; height: 44px; flex: none; }
.wordmark { font-family: var(--font-num); font-weight: 800; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.bar .wordmark { font-size: 23px; padding-left: .14em; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--on-navy-muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6FCF97; }
.status.off::before { background: #E2B04A; }
.status.sending::before { background: var(--gold-light); }
.status.demo::before { background: #9AA6B8; }
.icon-btn { width: 46px; height: 46px; border: 1px solid transparent; background: transparent; border-radius: 12px; display: grid; place-items: center; color: var(--on-navy); }
.icon-btn.right { border-color: var(--navy-line); color: var(--gold-light); }
.icon-btn:hover { background: var(--navy-2); }
.icon-btn svg { width: 24px; height: 24px; }

.app {
  max-width: 480px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 18px 48px;
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.banner { background: var(--warn-soft); border-radius: 14px; padding: 12px 14px; font-size: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.banner.info { background: var(--accent-soft); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.tabs button { min-height: 48px; border: 0; border-radius: 10px; background: transparent; font-weight: 800; font-size: 16px; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tabs.tabs3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabs.tabs3 button { font-size: 15px; padding: 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: 14px; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Cartões marinho com a estrada ao fundo */
.trip { position: relative; overflow: hidden; background: var(--card-navy); color: var(--on-navy); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.trip > * { position: relative; }
.deco { position: absolute !important; inset: 0; pointer-events: none; }
.deco svg { position: absolute; right: -10px; bottom: 0; width: 72%; height: 100%; }
.eyebrow { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--on-navy-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-block; font-size: 11px; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-weight: 800; }
.pill.done { background: transparent; color: var(--on-navy); box-shadow: inset 0 0 0 1px var(--on-navy-muted); }
.route { font-family: var(--font-num); font-weight: 800; font-stretch: 110%; font-size: 26px; line-height: 1.1; margin: 0; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.route .arrow { color: var(--gold); }
.route.small { font-size: 21px; }
.trip.compact { padding: 16px; gap: 8px; }
.sub { margin: 0; color: var(--muted); font-size: 16px; }
.trip .sub { color: var(--on-navy-muted); font-size: 15px; }
.cash { background: rgba(26, 51, 88, .92); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.cash span { font-size: 14px; color: var(--on-navy-muted); }
.cash b { font-family: var(--font-num); font-size: 34px; line-height: 1.1; font-weight: 700; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.cash small { color: var(--on-navy-muted); font-size: 14px; }
.cash.neg b { color: #F2A097; }
.link { background: none; border: 0; padding: 4px 0; color: var(--gold-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 16px; align-self: flex-start; }
.trip .link { color: var(--gold-light); }
.link.danger { color: var(--danger); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act { min-height: 100px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px; text-align: left; font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.ico-c { width: 40px; height: 40px; border-radius: 50%; background: var(--ico-bg); color: var(--gold-light); display: grid; place-items: center; flex: none; }
.ico-c svg { width: 21px; height: 21px; }
.act:active { transform: scale(.98); }
.act.finish { grid-column: 1 / -1; min-height: 66px; flex-direction: row; align-items: center; justify-content: center; background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-size: 19px; }
.act.finish svg { width: 24px; height: 24px; }
.big { width: 100%; min-height: 62px; border-radius: 16px; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; text-align: center; }
.big svg { width: 24px; height: 24px; flex: none; }
.big.gold { background: var(--gold); color: var(--on-gold); }
.big.slim { min-height: 50px; font-size: 16px; border-radius: 14px; }
.trip .big.ghost { background: transparent; color: var(--on-navy); border-color: var(--navy-line); }
.trip .big.ghost svg { color: var(--gold-light); }
.big[disabled] { opacity: .5; }
select { appearance: auto; }
.big.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.big.ghost svg { color: var(--gold-text); }
.big.danger { background: var(--danger); color: var(--danger-ink); }
.big:disabled { opacity: .6; cursor: default; }
label.big { cursor: pointer; }

h2.sec { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 8px 0 0; }
.totals { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--muted); }
.totals b { color: var(--ink); font-family: var(--font-num); }
.items { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.items li + li { border-top: 1px solid var(--line); }
.item { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; min-height: 64px; }
.item.static { cursor: default; }
.item:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.item:not(.static):active, .notabar:active { background: var(--accent-soft); }
.big:active:not([disabled]) { filter: brightness(.94); }
/* Listas longas: o celular só desenha o que está aparecendo na tela. */
.items li { content-visibility: auto; contain-intrinsic-size: auto 66px; }
.item .ico { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; color: var(--ink); }
.item .ico svg { width: 21px; height: 21px; }
.item .ico.cashico { background: var(--warn-soft); color: var(--gold-text); }
.item .ico.numico { background: var(--ico-bg); color: var(--gold-light); font-family: var(--font-num); font-weight: 800; font-size: 14px; }
.item .what { min-width: 0; font-weight: 800; line-height: 1.25; }
.item .what small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.item .val { text-align: right; font-family: var(--font-num); font-size: 19px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item .val small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 12px; color: var(--muted); }
.item .val small.adi { color: var(--gold-text); }
.item .val.neg { color: var(--danger); }
.empty { color: var(--muted); padding: 16px; margin: 0; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi > * { position: relative; }
.kpi.wide { grid-column: 1 / -1; background: var(--card-navy); border-color: var(--card-navy); color: var(--on-navy); }
.kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
.kpi.wide span { color: var(--gold-light); }
.kpi b { font-family: var(--font-num); font-size: clamp(19px, 5.6vw, 24px); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kpi.wide b { font-size: clamp(24px, 8vw, 32px); }
.kpi small { color: var(--muted); font-size: 13px; }
.kpi.wide small { color: var(--on-navy-muted); }
.kpi small b { font-size: 14px; font-family: var(--font-body); font-weight: 800; color: var(--ink); }
.kpi.wide small b { color: var(--gold-light); font-size: 14px; }
.kpi small b.neg { color: var(--danger); }
.kpi.wide small b.neg { color: #F2A097; }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 16px; }
.ftitle { font-family: var(--font-num); font-weight: 800; font-stretch: 110%; font-size: 28px; text-transform: uppercase; line-height: 1.05; margin: 0; color: var(--ink); }
.hint { color: var(--muted); font-size: 16px; margin: -8px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 16px; }
.field small { font-weight: 500; color: var(--muted); font-size: 14px; }
.field input, .field textarea, .field select { width: 100%; min-height: 58px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); padding: 10px 14px; font-size: 22px; font-weight: 600; color: var(--ink); }
.field textarea { min-height: 88px; font-size: 18px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(184, 149, 79, .25); }
.field input.bad { border-color: var(--danger); background: var(--danger-soft); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair > * { min-width: 0; }
.live { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; font-size: 16px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.live b { font-family: var(--font-num); font-size: 26px; color: var(--gold-text); }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.seg legend { font-weight: 800; font-size: 16px; margin-bottom: 6px; padding: 0; }
.seg .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 60px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); padding: 8px 10px; font-size: 16px; font-weight: 800; line-height: 1.15; }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.err { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: 16px; margin: 0; }
.confirm { background: var(--danger-soft); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.confirm p { margin: 0; font-weight: 800; }
.confirm .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat { min-height: 70px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 17px; font-weight: 800; padding: 10px 14px; text-align: left; line-height: 1.15; color: var(--ink); }
.cat:active { transform: scale(.98); }

/* Acerto e fechamento */
.acerto { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.acerto .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: 15px; align-items: baseline; }
.acerto .row + .row, .acerto .result + .row { border-top: 1px solid var(--line); }
.acerto .row b { font-family: var(--font-num); font-size: 19px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acerto .row span small { display: block; color: var(--muted); font-size: 13px; }
.result { padding: 15px 16px; font-size: 16px; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.result b { font-family: var(--font-num); font-size: 30px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.result.pay { background: var(--navy); color: var(--on-navy); }
.result.pay b { color: var(--gold-light); }
.result.owe { background: var(--warn-soft); }
.result.owe b { color: var(--gold-text); }
.result.zero { background: var(--bg); }
.result.good b { color: var(--positive); }
.grid-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.grid-info div { background: var(--surface); padding: 10px 12px; min-width: 0; }
.grid-info span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.grid-info b { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.copybox textarea { width: 100%; min-height: 220px; border: 2px solid var(--gold); border-radius: 14px; padding: 12px; font-size: 15px; background: var(--surface); color: var(--ink); }
.foot { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; }

/* Entrada */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); border-radius: 24px; min-height: 400px; padding: 28px 20px 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.hero > * { position: relative; }
.hero .deco svg { right: 0; left: 0; margin: 0 auto; width: 100%; }
.hero .logo { width: 96px; height: 96px; }
.hero .wordmark { font-size: 32px; padding-left: .14em; }
.tag { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .6em; color: var(--gold-light); padding-left: .6em; }
.tag::before, .tag::after { content: ""; width: 22px; height: 1px; background: var(--gold); }
.hero p { margin: 6px 0 0; color: var(--on-navy-muted); font-size: 15px; }
.login { display: flex; flex-direction: column; gap: 16px; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--navy); color: var(--on-navy); border: 1px solid var(--gold); padding: 12px 18px; border-radius: 14px; font-size: 16px; font-weight: 700; max-width: calc(100% - 32px); z-index: 20; text-align: center; pointer-events: none; }
/* Notas fiscais e arquivos */
.anx { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.anx-head { display: flex; flex-direction: column; gap: 2px; }
.anx-head b { font-size: 16px; font-weight: 800; }
.anx-head small { color: var(--muted); font-size: 14px; font-weight: 500; }
.anx-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.anx-btns .big { position: relative; min-height: 52px; font-size: 15px; padding: 8px 10px; gap: 8px; border-radius: 14px; }
.anx-btns .big svg { width: 22px; height: 22px; }
.anx-btns.mini .big { min-height: 44px; font-size: 14px; border-radius: 12px; }
.anx-btns.mini .big svg { width: 19px; height: 19px; }
.vh-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.thumb .t-open { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; height: 100%; }
.thumb .t-open:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.pend img { opacity: .75; }
.t-file { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; color: var(--gold-text); }
.t-file svg { width: 28px; height: 28px; }
.t-file b { font-size: 13px; color: var(--ink); }
.t-prep { display: grid; place-items: center; height: 100%; padding: 6px; font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; animation: pulsa 1.2s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .45; } }
.t-tag { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: var(--gold-light); padding: 2px 7px; border-radius: 999px; pointer-events: none; }
.t-rm { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: rgba(11, 27, 51, .84); color: #FFFFFF; display: grid; place-items: center; }
.t-rm svg { width: 16px; height: 16px; }
.nf { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; font-family: var(--font-body); }
.nf svg { width: 12px; height: 12px; }
.nf.ok { background: var(--accent-soft); color: var(--ink); }
.nf.no { background: var(--warn-soft); color: var(--gold-text); }
.notabar { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.notabar:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.notabar.falta { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.notabar b { display: block; font-weight: 800; }
.notabar small { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.notabar .chev { font-size: 28px; line-height: 1; color: var(--gold-text); }
.nf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nf-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.nf-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.nf-top .what { min-width: 0; font-weight: 800; line-height: 1.25; }
.nf-top .what small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }

/* Visualizador de nota (sempre escuro, como uma galeria de fotos) */
.viewer { position: fixed; inset: 0; z-index: 30; background: #050B16; color: #FFFFFF; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.v-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid #1A3358; }
.v-name { min-width: 0; font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.v-name small { display: block; font-weight: 500; color: #C3CAD6; font-size: 13px; }
.v-top .icon-btn { color: #FFFFFF; flex: none; }
.v-body { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 12px; overscroll-behavior: contain; }
.v-body img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; background: #FFFFFF; }
.v-body.zoom { display: block; }
.v-body.zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.v-msg { color: #C3CAD6; text-align: center; padding: 20px; margin: 0; }
.v-file { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #D6BC85; }
.v-file svg { width: 64px; height: 64px; }
.v-file b { color: #FFFFFF; font-size: 22px; }
.v-file small { color: #C3CAD6; font-size: 15px; }
.v-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid #1A3358; }
.v-actions .big { min-height: 54px; }
.v-actions .big.ghost { background: transparent; color: #FFFFFF; border-color: #2A4470; }
.v-actions .big.ghost svg { color: #D6BC85; }
.v-actions .full { grid-column: 1 / -1; }
.v-actions .link { justify-self: center; align-self: center; color: #F2A097; }
.v-ask { grid-column: 1 / -1; margin: 0; font-weight: 800; text-align: center; }
body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .act:active, .cat:active { transform: none; } .t-prep { animation: none; } }
