/* COMPROVAL / PULSO 1.0 — Cargar después de tokens.css. */
*,*::before,*::after { box-sizing: border-box; }
html { font-size: 16px; scroll-padding-top: 96px; }
body { margin:0; background:var(--bg); color:var(--text); font:var(--text-md)/var(--leading-body) var(--font); -webkit-font-smoothing:antialiased; }
[hidden] { display:none!important; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:var(--brand-text); text-underline-offset:3px; }
a:hover { text-decoration:underline; }
button:disabled { cursor:not-allowed; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; box-shadow:0 0 0 3px var(--focus-gap); }
h1,h2,h3,p,figure { margin:0; }
h1 { font-size:var(--text-3xl); letter-spacing:-.035em; line-height:var(--leading-heading); font-weight:700; }
h2 { font-size:var(--text-lg); letter-spacing:-.02em; line-height:1.3; font-weight:600; }
h3 { font-size:var(--text-base); line-height:1.35; font-weight:600; }
ul { margin:0; padding:0; list-style:none; }
hr { border:0; border-top:1px solid var(--border); margin:20px 0; }
small,.small { font-size:var(--text-sm); }
strong { font-weight:600; }
.muted { color:var(--text-3); } .secondary { color:var(--text-2); }
.eyebrow { font-size:11px; letter-spacing:.12em; font-weight:700; text-transform:uppercase; color:var(--text-3); }
.num { font-variant-numeric:tabular-nums; letter-spacing:-.025em; }
.mono { font-family:var(--font-mono); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip { position:fixed; top:-100px; left:12px; z-index:999; padding:12px; background:var(--surface); }
.skip:focus { top:12px; }
.icon { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; vertical-align:middle; }
.icon--sm { width:16px; height:16px; } .icon--lg { width:28px; height:28px; }
.row { display:flex; align-items:center; gap:12px; }
.between { justify-content:space-between; } .wrap { flex-wrap:wrap; }
.stack { display:grid; gap:16px; } .stack-sm { display:grid; gap:8px; }
.grow { flex:1; min-width:0; } .right { text-align:right; }
.mt-4 { margin-top:16px; } .mt-6 { margin-top:24px; } .mb-4 { margin-bottom:16px; }
.block { display:block; } .full { width:100%; }
.btn { display:inline-flex; gap:8px; align-items:center; justify-content:center; min-height:var(--control-height); padding:10px 16px; border:1px solid transparent; border-radius:var(--radius-md); font-size:14px; font-weight:600; line-height:1.3; text-decoration:none; white-space:normal; transition:background var(--duration-fast),border-color var(--duration-fast); }
.btn:hover { text-decoration:none; }
.btn--primary { background:var(--brand); color:var(--on-brand); border-color:var(--brand-edge); }
.btn--primary:hover { background:var(--brand-hover); color:var(--on-brand-hover); }
.btn--secondary { background:var(--surface); color:var(--text); border-color:var(--border-strong); }
.btn--secondary:hover { background:var(--surface-hover); }
.btn--ghost { background:transparent; color:var(--text-2); }
.btn--ghost:hover { background:var(--surface-hover); color:var(--text); }
.btn--danger { background:var(--risk); color:var(--on-risk); border-color:var(--risk); }
.btn--danger:hover { box-shadow:inset 0 0 0 2px currentColor; }
.btn--large { min-height:56px; font-size:16px; padding:14px 20px; }
.btn--icon { padding:10px; width:44px; min-width:44px; }
.btn[disabled],.btn[aria-disabled="true"] { background:var(--disabled-bg); border-color:var(--disabled-bg); color:var(--disabled-text); box-shadow:none; }
.btn[aria-busy="true"] { pointer-events:none; }
.spinner { display:inline-block; width:18px; height:18px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin 900ms linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); min-width:0; }
.card__head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid var(--border); }
.card__body { padding:20px; }
.card__foot { display:flex; align-items:center; justify-content:space-between; padding:12px 20px; border-top:1px solid var(--border); gap:12px; }
.card--plain { box-shadow:none; }
.pill { display:inline-flex; align-items:center; gap:6px; border:1px solid transparent; padding:4px 9px; border-radius:var(--radius-sm); font-size:12px; line-height:1.4; font-weight:600; white-space:nowrap; color:var(--text-2); background:var(--surface-subtle); }
.pill .icon { width:14px; height:14px; }
[data-status="confirmado"] { --state:var(--ok); --state-soft:var(--ok-soft); --state-text:var(--ok-text); --on-state:var(--on-ok); }
[data-status="pendiente"] { --state:var(--pending); --state-soft:var(--pending-soft); --state-text:var(--pending-text); --on-state:var(--on-pending); }
[data-status="sospechoso"] { --state:var(--risk); --state-soft:var(--risk-soft); --state-text:var(--risk-text); --on-state:var(--on-risk); }
[data-status="usado"] { --state:var(--used); --state-soft:var(--used-soft); --state-text:var(--used-text); --on-state:var(--on-used); }
[data-status="no-encontrado"] { --state:var(--missing); --state-soft:var(--missing-soft); --state-text:var(--missing-text); --on-state:var(--on-missing); }
.pill[data-status] { background:var(--state-soft); color:var(--state-text); }
.state-text { color:var(--state-text); }
.kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.kpi { padding:12px 20px 18px; position:relative; }
.kpi__label { display:flex; align-items:center; justify-content:space-between; gap:4px; min-height:40px; color:var(--text-2); font-size:13px; }
.kpi__value { font-size:30px; font-weight:600; line-height:1.2; font-variant-numeric:tabular-nums; letter-spacing:-.04em; margin:4px 0 8px; }
.kpi__meta { font-size:12px; color:var(--text-3); }
.kpi--attention { border-top:3px solid var(--missing); padding-top:10px; }
.help { display:inline-flex; position:relative; align-items:center; vertical-align:middle; flex-shrink:0; }
.help__button { width:44px; height:44px; border:0; background:none; color:var(--text-3); border-radius:6px; display:grid; place-items:center; }
.tooltip { display:none; position:absolute; z-index:var(--z-tooltip); top:44px; right:0; width:220px; padding:12px; border:1px solid var(--border-strong); border-radius:8px; background:var(--surface); color:var(--text); box-shadow:var(--shadow-md); font-size:13px; font-weight:400; }
.help:hover .tooltip,.help:focus-within:not([data-dismissed]) .tooltip,.help[data-open] .tooltip { display:block; }
.help[data-dismissed] .tooltip { display:none; }
.notice { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:var(--radius-md); background:var(--accent-soft); color:var(--accent-text); border:1px solid var(--border); }
.notice .icon { margin-top:2px; }
.notice p { font-size:13px; margin-top:2px; }
.notice[data-status] { background:var(--state-soft); color:var(--state-text); border-color:var(--state); }
.notice--compact { padding:10px 12px; font-size:13px; }
.tabs { display:flex; align-items:center; gap:20px; border-bottom:1px solid var(--border); margin-bottom:24px; overflow:auto; scrollbar-width:thin; }
.tab { min-height:48px; padding:12px 2px; color:var(--text-2); border:0; border-bottom:3px solid transparent; background:transparent; text-decoration:none; font-size:14px; white-space:nowrap; font-weight:500; }
.tab:hover { color:var(--text); text-decoration:none; background:var(--surface-hover); }
.tab[aria-selected="true"],.tab[aria-current="page"] { color:var(--brand-text); border-bottom-color:var(--brand-text); font-weight:600; }
.subtabs { display:flex; gap:4px; background:var(--surface-subtle); border-radius:8px; padding:4px; overflow:auto; width:fit-content; max-width:100%; }
.subtab { background:transparent; min-height:44px; padding:8px 14px; border:1px solid transparent; border-radius:6px; color:var(--text-2); font-size:13px; font-weight:600; white-space:nowrap; }
.subtab:hover { background:var(--surface-hover); }
.subtab[aria-selected="true"] { background:var(--surface); color:var(--brand-text); border-color:var(--border-strong); box-shadow:var(--shadow-sm); }
.field { display:grid; gap:8px; }
.field label,.field legend { font-size:14px; font-weight:600; }
.fieldset { border:0; margin:0; padding:0; }
.input { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--border-strong); border-radius:var(--radius-md); color:var(--text); background:var(--surface); line-height:1.4; }
.input::placeholder { color:var(--text-3); opacity:1; }
.input:hover:not(:disabled) { border-color:var(--text-2); }
.input:disabled { background:var(--disabled-bg); color:var(--disabled-text); }
.input[aria-invalid="true"] { border:2px solid var(--risk); }
textarea.input { min-height:88px; resize:vertical; }
.field__hint { font-size:12px; color:var(--text-3); }
.field__error { font-size:13px; color:var(--risk-text); display:flex; align-items:center; gap:6px; }
.check { display:flex; gap:10px; min-height:44px; align-items:center; padding:6px 0; }
.check input { width:20px; height:20px; accent-color:var(--brand); flex-shrink:0; }
.toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:20px 0; }
.toolbar .input { width:auto; min-width:140px; }
.toolbar .search { min-width:200px; flex:1; }
.search { position:relative; }
.search>.icon { position:absolute; top:13px; left:12px; color:var(--text-3); }
.search .input { padding-left:40px; width:100%; }
.data-table { border-collapse:collapse; width:100%; font-size:13px; }
.data-table caption { text-align:left; padding:16px 20px; font-weight:600; font-size:16px; }
.data-table th { padding:12px 20px; text-align:left; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); font-weight:600; background:var(--surface-subtle); border-bottom:1px solid var(--border); }
.data-table td { padding:12px 20px; border-bottom:1px solid var(--border); vertical-align:middle; }
.data-table tbody tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover { background:var(--surface-hover); }
.data-table td.num,.data-table th.num { text-align:right; }
.data-table .btn { min-height:44px; padding:8px 12px; }
.table-scroll { overflow:auto; }
.mobile-list { display:none; }
.payment-item { padding:16px; border-bottom:1px solid var(--border); }
.payment-item:last-child { border-bottom:0; }
.payment-item .row+.row { margin-top:8px; }
.bank-mark { width:32px; height:32px; background:var(--surface-subtle); color:var(--text-2); border:1px solid var(--border); border-radius:8px; display:grid; place-items:center; font-weight:700; font-size:12px; flex-shrink:0; }
.bank-mark--n { background:var(--used-soft); color:var(--used-text); }
.bank-mark--b { background:var(--missing-soft); color:var(--missing-text); }
.bank-mark--d { background:var(--risk-soft); color:var(--risk-text); }
.chart { padding:16px 20px 12px; }
.chart__plot { display:flex; height:150px; align-items:flex-end; gap:16px; border-bottom:1px solid var(--border-strong); padding:0 8px; position:relative; }
.chart__column { display:flex; flex:1; height:100%; min-width:0; flex-direction:column; justify-content:flex-end; align-items:center; gap:4px; position:relative; }
.chart__value { font-size:11px; color:var(--text-3); font-variant-numeric:tabular-nums; }
.chart__bar { display:block; width:min(100%,48px); height:var(--bar-height); background:var(--accent-text); border-radius:5px 5px 0 0; }
.chart__bar--active { background:var(--brand-text); }
.chart__labels { display:flex; padding:8px; gap:16px; }
.chart__labels span { flex:1; text-align:center; font-size:11px; color:var(--text-3); }
.chart-key { display:flex; align-items:center; gap:8px; color:var(--text-3); font-size:12px; }
.chart-key::before { content:""; width:8px; height:8px; background:var(--brand-text); border-radius:2px; }
.progress { width:100%; height:8px; appearance:none; border:0; border-radius:999px; overflow:hidden; display:block; background:var(--surface-hover); }
.progress::-webkit-progress-bar { background:var(--surface-hover); }
.progress::-webkit-progress-value { background:var(--brand-text); border-radius:999px; }
.progress::-moz-progress-bar { background:var(--brand-text); }
.progress--warning::-webkit-progress-value { background:var(--missing); }
.progress--warning::-moz-progress-bar { background:var(--missing); }
.quota-label { display:flex; justify-content:space-between; font-size:12px; color:var(--text-2); margin-bottom:8px; }
.empty { display:grid; place-items:center; text-align:center; gap:8px; padding:40px 24px; }
.empty>.icon { width:36px; height:36px; color:var(--text-3); margin-bottom:4px; }
.empty p { max-width:380px; color:var(--text-3); font-size:14px; }
.skeleton { border-radius:6px; background:var(--surface-hover); min-height:16px; }
.toast-region { position:fixed; bottom:24px; right:24px; z-index:var(--z-toast); width:min(420px,calc(100% - 32px)); display:grid; gap:8px; }
.toast { display:flex; align-items:center; gap:12px; padding:12px 16px; background:var(--surface); border:1px solid var(--border-strong); box-shadow:var(--shadow-md); border-radius:12px; font-size:14px; }
.toast .btn { margin-left:auto; }
.toast[data-status] { border-left:4px solid var(--state); }
.dialog { padding:0; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:16px; width:min(600px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); overflow:auto; box-shadow:var(--shadow-dialog); }
.dialog::backdrop { background:var(--overlay); }
.dialog--wide { width:min(1040px,calc(100vw - 48px)); }
.dialog__head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:20px 24px; border-bottom:1px solid var(--border); }
.dialog__head h2 { font-size:21px; }
.dialog__body { padding:24px; }
.dialog__foot { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px; padding:16px 24px; border-top:1px solid var(--border); }
.dialog dl { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0; }
.dialog dt { color:var(--text-3); font-size:12px; }
.dialog dd { margin:4px 0 0; font-weight:600; }
.facts { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0; }
.facts dt { font-size:12px; color:var(--text-3); }
.facts dd { margin:4px 0 0; font-size:14px; font-weight:500; }
/* Application shell */
.sidebar { position:fixed; left:0; top:0; bottom:0; width:var(--sidebar-width); background:var(--surface); border-right:1px solid var(--border); display:flex; flex-direction:column; padding:26px 16px 16px; z-index:var(--z-nav); }
.merchant { display:flex; gap:12px; align-items:center; min-width:0; }
.merchant__mark { width:40px; height:40px; background:var(--brand); color:var(--on-brand); border:1px solid var(--brand-edge); border-radius:11px; display:grid; place-items:center; flex-shrink:0; }
.merchant__mark svg { width:27px; height:27px; }
/* Sin marca propia del comercio: el monograma C + V de Comproval, sin baldosa. */
.merchant__mark--comproval { background:transparent; border-color:transparent; }
.merchant__mark--comproval .cv-mark { width:38px; height:auto; }
.cv-mark { display:block; flex-shrink:0; }
:root[data-theme="dark"] .cv-mark [fill="#1E40AF"] { fill:#ffffff; }
.merchant__name { font-size:17px; font-weight:650; letter-spacing:-.04em; line-height:1.2; }
.merchant__sub { font-size:11px; color:var(--text-3); margin-top:4px; }
.sidebar .merchant { margin-left:8px; }
.sidebar .nav-label { font-size:10px; letter-spacing:.13em; font-weight:600; color:var(--text-3); padding:32px 12px 12px; text-transform:uppercase; }
.nav-list { display:grid; gap:4px; }
.nav-link { min-height:46px; display:flex; align-items:center; gap:12px; color:var(--text-2); padding:10px 12px; text-decoration:none; font-size:13px; font-weight:500; border-radius:8px; }
.nav-link:hover { text-decoration:none; background:var(--surface-hover); }
.nav-link[aria-current="page"] { background:var(--brand-soft); color:var(--brand-text); font-weight:600; }
.nav-count { margin-left:auto; background:var(--missing-soft); color:var(--missing-text); border-radius:5px; min-width:22px; text-align:center; font-size:11px; padding:1px 5px; }
.sidebar__bottom { margin-top:auto; }
.side-health { background:var(--surface-subtle); padding:12px; border-radius:8px; font-size:12px; margin-bottom:16px; }
.dot { width:7px; height:7px; border-radius:50%; background:var(--ok); display:inline-block; margin-right:5px; }
.comproval-sign { display:flex; justify-content:center; align-items:center; gap:5px; color:var(--text-3); font-size:11px; }
.comproval-sign strong { font-size:13px; letter-spacing:-.04em; }
.comproval-sign .icon { width:13px; height:13px; }
.comproval-sign .cv-mark { width:17px; height:auto; }
.comproval-sign strong { color:var(--text-2); }
.app { margin-left:var(--sidebar-width); }
.topbar { height:var(--header-height); display:flex; align-items:center; justify-content:space-between; padding:0 var(--page-gutter); background:var(--surface); border-bottom:1px solid var(--border); gap:16px; }
.breadcrumb { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--text-3); }
.breadcrumb strong { color:var(--text-2); }
.topbar__tools { display:flex; align-items:center; gap:12px; }
.avatar { width:32px; height:32px; border-radius:50%; background:var(--accent-soft); color:var(--accent-text); display:grid; place-items:center; font-size:11px; font-weight:600; flex-shrink:0; }
.account { padding-left:12px; border-left:1px solid var(--border); display:flex; align-items:center; gap:8px; font-size:12px; }
.page { padding:28px var(--page-gutter) 24px; max-width:var(--content-max); margin:auto; }
.page-title { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.page-title p { margin-top:5px; color:var(--text-3); font-size:13px; }
.page-title__actions { display:flex; gap:12px; }
.overview-row { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr); gap:20px; margin:20px 0; }
.finance-hero { padding:16px 20px; }
.finance-hero__amount { font-size:28px; font-weight:600; letter-spacing:-.04em; }
.mini-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:16px; }
.money-detail { padding-top:12px; border-top:1px solid var(--border); }
.money-detail p { font-size:12px; color:var(--text-3); }
.money-detail strong { display:block; margin-top:4px; font-size:16px; }
.split { display:grid; grid-template-columns:1.15fr 1fr; gap:24px; }
.split--review { grid-template-columns:360px 1fr; }
.activity { padding:0 20px; }
.activity li { padding:12px 0; border-bottom:1px solid var(--border); }
.activity li:last-child { border-bottom:0; }
.activity strong { font-size:13px; }
.activity p { font-size:12px; color:var(--text-3); margin-top:4px; }
.bottom-nav,.mobile-header { display:none; }
.page-footer { display:flex; justify-content:space-between; font-size:11px; color:var(--text-3); margin-top:20px; }
.settings-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr); gap:20px; }
.setting-line { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid var(--border); }
.setting-line:first-child { padding-top:0; }
.setting-line:last-child { border-bottom:0; padding-bottom:0; }
.setting-line p { color:var(--text-3); font-size:12px; margin-top:4px; }
.number { font-family:var(--font-mono); font-size:16px; }
.review-layout { display:grid; grid-template-columns:330px 1fr; gap:24px; }
.receipt { background:var(--surface-subtle); border:1px solid var(--border); border-radius:12px; padding:20px; }
.receipt-sheet { background:var(--surface); color:var(--text); border:1px solid var(--border); padding:24px; box-shadow:var(--shadow-sm); border-radius:4px; text-align:center; }
.receipt-sheet .receipt-amount { font-size:28px; font-weight:700; margin:20px 0; }
.receipt-sheet dl { text-align:left; grid-template-columns:1fr; }
.receipt-sheet dt { font-size:11px; }
.receipt-sheet dd { font-size:12px; }
.receipt-note { font-size:10px; letter-spacing:.1em; text-transform:uppercase; margin-top:24px; color:var(--text-3); }
.timeline { border-left:1px solid var(--border-strong); padding-left:18px; margin-left:4px; }
.timeline li { position:relative; padding:0 0 16px; font-size:12px; }
.timeline li::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--text-3); position:absolute; left:-22px; top:5px; }
.timeline time { color:var(--text-3); margin-right:8px; }
/* Cashier: full-width signal; never color-only. */
.cash-body { background:var(--bg); }
.cash-shell { max-width:var(--cash-max); min-height:100dvh; margin:0 auto; background:var(--surface); border-left:1px solid var(--border); border-right:1px solid var(--border); }
.cash-header { min-height:76px; padding:16px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cash-context { display:flex; justify-content:space-between; align-items:center; padding:10px 16px; background:var(--surface-subtle); font-size:11px; }
.cash-main { padding:24px 16px 16px; }
.cash-main h1 { font-size:28px; }
.cash-intro { font-size:14px; line-height:1.5; color:var(--text-3); margin-top:8px; max-width:330px; }
.capture-card { border:1px solid var(--border); border-radius:16px; padding:24px 20px 20px; margin:24px 0 16px; background:var(--surface-subtle); text-align:center; }
.capture-symbol { width:72px; height:72px; background:var(--surface); color:var(--brand-text); border:1px solid var(--border); border-radius:20px; display:grid; place-items:center; margin:0 auto 16px; }
.capture-symbol .icon { width:34px; height:34px; }
.capture-card h2 { font-size:17px; }
.capture-card p { font-size:13px; color:var(--text-3); margin:8px 0 24px; }
.camera-btn { width:100%; min-height:64px; font-size:17px; }
.capture-options { display:grid; gap:8px; margin-top:8px; }
.capture-options .btn { min-height:48px; }
.cash-last { margin-top:24px; padding-top:16px; border-top:1px solid var(--border); }
.cash-last .eyebrow { font-size:10px; }
.cash-foot { padding:16px; display:grid; gap:8px; text-align:center; }
.cash-foot p { font-size:10px; color:var(--text-3); }
.verdict { border:1px solid var(--state); border-radius:16px; overflow:hidden; background:var(--surface); }
.verdict__signal { background:var(--state); color:var(--on-state); padding:24px 20px; text-align:center; }
.verdict__symbol { width:64px; height:64px; border:2px solid currentColor; border-radius:50%; display:grid; place-items:center; margin:0 auto 16px; }
.verdict__symbol .icon { width:36px; height:36px; stroke-width:2.3; }
.verdict__title { font-size:var(--text-verdict); font-weight:700; line-height:1.05; letter-spacing:-.04em; overflow-wrap:normal; }
.verdict__instruction { margin-top:12px; font-size:18px; font-weight:600; line-height:1.3; }
.verdict__body { padding:20px; }
.verdict__amount { font-size:32px; font-weight:650; line-height:1.2; margin:4px 0; }
.verdict__reasons { background:var(--state-soft); color:var(--state-text); border-radius:8px; padding:12px; font-size:12px; margin-top:16px; }
.verdict__reasons p+p { margin-top:4px; }
.verdict__body .facts { margin-top:12px; }
.verdict-actions { display:grid; gap:8px; margin-top:16px; }
.verdict-actions .btn { min-height:52px; font-size:15px; }
.verdict-caption { font-size:11px; color:var(--text-3); text-align:center; margin-top:12px; }
.sending { border:1px solid var(--border); border-radius:16px; background:var(--surface-subtle); text-align:center; padding:40px 20px 32px; margin:24px 0; }
.sending .spinner { width:48px; height:48px; border-width:4px; color:var(--brand-text); margin-bottom:24px; }
.sending h2 { font-size:24px; }
.sending p { font-size:14px; color:var(--text-3); margin-top:12px; }
.step-list { margin:28px 0 0; text-align:left; padding:0; list-style:none; }
.step-list li { display:flex; align-items:center; gap:10px; font-size:13px; padding:10px 0; }
/* Login */
.login-body { background:var(--surface); }
.login-layout { min-height:100dvh; display:grid; grid-template-columns:1.05fr 1fr; }
.login-story { padding:64px; background:var(--brand-soft); display:flex; flex-direction:column; position:relative; overflow:hidden; }
.login-story h1 { max-width:470px; font-size:48px; line-height:1.08; margin:100px 0 20px; color:var(--text); }
.login-story>p { font-size:16px; color:var(--text-2); max-width:400px; line-height:1.65; }
.login-visual { margin-top:40px; border:1px solid var(--border-strong); border-radius:12px; max-width:380px; padding:20px; background:var(--surface); box-shadow:var(--shadow-md); }
.login-visual p { color:var(--text-3); font-size:12px; margin-top:12px; }
.login-story .comproval-sign { margin-top:auto; padding-top:40px; justify-content:flex-start; }
.login-form-wrap { display:flex; flex-direction:column; justify-content:center; align-items:center; padding:40px; }
.login-form { width:100%; max-width:360px; }
.login-form h2 { font-size:28px; font-weight:650; display:block; margin:0; }
.login-form>p { margin:8px 0 24px; color:var(--text-3); font-size:14px; }
.login-form .subtabs { width:100%; margin-bottom:24px; }
.login-form .subtab { flex:1; }
.login-form .field { margin-bottom:20px; }
.pin { font-size:28px; letter-spacing:.55em; text-align:center; }
.login-foot { margin-top:32px; text-align:center; color:var(--text-3); font-size:12px; }
.password-wrap { position:relative; }
.password-wrap .input { padding-right:52px; }
.password-wrap .btn { position:absolute; right:0; top:0; }
/* Handoff and components gallery */
.gallery-shell { max-width:1240px; margin:auto; padding:48px 32px; }
.gallery-hero { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; padding-bottom:32px; border-bottom:1px solid var(--border); }
.gallery-hero h1 { font-size:44px; }
.direction-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:32px 0; }
.direction { overflow:hidden; }
.direction__visual { height:180px; padding:24px; display:flex; flex-direction:column; justify-content:space-between; }
.direction__visual strong { font-size:28px; letter-spacing:-.05em; }
.palette { display:flex; gap:6px; }
.palette i { width:28px; height:28px; display:block; border-radius:6px; border:1px solid rgb(127 127 127 / 40%); }
.direction__text { padding:24px; }
.direction__text p { font-size:13px; color:var(--text-2); margin-top:12px; }
.screen-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0 32px; }
.screen-link { padding:20px; text-decoration:none; display:flex; gap:12px; align-items:center; }
.screen-link:hover { border-color:var(--brand-text); text-decoration:none; }
.screen-link strong { display:block; color:var(--text); font-size:14px; }
.screen-link small { color:var(--text-3); }
.spec-section { margin:32px 0; padding:24px; }
.spec-section h2 { font-size:24px; margin-bottom:20px; }
.spec-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.token-swatch { padding:16px; border:1px solid var(--border); border-radius:8px; }
.token-swatch i { display:block; height:48px; border-radius:4px; margin-bottom:12px; background:var(--swatch); }
pre { margin:16px 0 0; padding:20px; border:1px solid var(--border); border-radius:8px; background:var(--surface-subtle); overflow:auto; font-size:12px; }
code { font-family:var(--font-mono); }
/* Report */
.report-body { background:var(--bg); }
.report-toolbar { max-width:850px; margin:24px auto; padding:0 24px; display:flex; gap:12px; justify-content:space-between; align-items:center; }
.report { margin:0 auto 40px; max-width:794px; background:var(--surface); border:1px solid var(--border); padding:40px 44px; border-radius:12px; }
.report-header { display:flex; justify-content:space-between; gap:24px; border-bottom:2px solid var(--text); padding-bottom:24px; }
.report-title { margin:24px 0; }
.report-title h1 { font-size:28px; }
.report-title p { font-size:12px; color:var(--text-3); margin-top:8px; }
.report-summary { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--border); border-radius:8px; margin:24px 0; }
.report-summary>div { padding:16px; border-right:1px solid var(--border); }
.report-summary>div:last-child { border:0; }
.report-summary dt { font-size:11px; color:var(--text-3); }
.report-summary dd { margin:8px 0 0; font-size:20px; font-weight:600; }
.report .data-table th,.report .data-table td { padding:10px 8px; font-size:11px; }
.report-section { margin-top:24px; }
.report-section h2 { font-size:15px; margin-bottom:12px; }
.report-sign { display:flex; justify-content:space-between; gap:24px; font-size:11px; margin-top:24px; border-top:1px solid var(--border); padding-top:16px; }
.report-note { font-size:10px; color:var(--text-3); margin-top:16px; }
@media (max-width:1100px) {
 .kpi-grid { gap:12px; } .kpi { padding:12px 16px; } .kpi__value { font-size:25px; }
 .settings-grid { grid-template-columns:1fr; } .topbar .demo-tag { display:none; }
}
@media (max-width:900px) {
 :root { --sidebar-width:196px; } .sidebar { padding-left:12px; padding-right:12px; }
 .nav-link { font-size:12px; gap:8px; } .overview-row { grid-template-columns:1fr; }
 .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .account-name { display:none; } .page-title { align-items:flex-start; }
 .split { grid-template-columns:1fr; }
}
@media (max-width:760px) {
 body { font-size:16px; } h1 { font-size:28px; }
 .sidebar { display:none; } .app { margin:0; }
 .topbar { display:none; }
 .mobile-header { height:64px; padding:0 16px; display:flex; justify-content:space-between; align-items:center; gap:8px; background:var(--surface); border-bottom:1px solid var(--border); }
 .mobile-header .merchant__mark { width:32px; height:32px; border-radius:8px; }
 .mobile-header .merchant__mark svg { width:24px; height:24px; }
 .mobile-header .merchant__mark--comproval .cv-mark { width:32px; height:auto; }
 .mobile-header .merchant__name { font-size:16px; }
 .mobile-header .merchant__sub { display:none; }
 .page { padding:20px 16px 96px; }
 .page-title { margin-bottom:20px; gap:12px; flex-wrap:wrap; }
 .page-title p { font-size:12px; }
 .page-title__actions { gap:8px; width:100%; }
 .page-title__actions .btn { flex:1; }
 .kpi-grid { gap:12px; }
 .kpi { padding:8px 12px 12px; }
 .kpi__label { font-size:12px; min-height:44px; gap:0; }
 .kpi__label>span:first-child { max-width:100px; }
 .kpi__value { font-size:27px; margin:0 0 6px; }
 .kpi__meta { font-size:11px; }
 .kpi .help__button { width:44px; }
 .kpi:nth-child(odd) .tooltip { left:0; right:auto; }
 .overview-row { gap:16px; margin:16px 0; }
 .desktop-chart { display:none; }
 .overview-row:has(.desktop-chart) { display:block; }
 .finance-hero { padding:16px; }
 .finance-hero__amount { font-size:26px; }
 .mini-grid { gap:16px; }
 .money-detail strong { font-size:15px; }
 .card__head { padding:12px 16px; }
 .card__head h2 { font-size:16px; }
 .card__body { padding:16px; }
 .card__foot { padding:8px 16px; }
 .desktop-table { display:none; }
 .mobile-list { display:block; }
 .bottom-nav { position:fixed; z-index:var(--z-nav); bottom:0; width:100%; min-height:72px; background:var(--surface); border-top:1px solid var(--border-strong); display:flex; justify-content:space-around; padding:4px 4px calc(4px + env(safe-area-inset-bottom)); }
 .bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:8px; min-width:60px; min-height:60px; color:var(--text-3); font-size:10px; text-decoration:none; border-radius:8px; }
 .bottom-nav a[aria-current="page"] { color:var(--brand-text); background:var(--brand-soft); }
 .bottom-nav .icon { width:22px; height:22px; }
 .toolbar { gap:8px; }
 .toolbar .input { min-width:0; }
 .toolbar .field { flex:1; }
 .toolbar .search { flex-basis:100%; }
 .tabs { gap:16px; margin-bottom:16px; }
 .settings-grid,.split,.review-layout { grid-template-columns:1fr; }
 .notice p { font-size:12px; }
 .page-footer { gap:16px; flex-direction:column; }
 .hide-mobile { display:none!important; }
 .dialog { max-height:calc(100dvh - 24px); width:calc(100vw - 24px); }
 .dialog__head,.dialog__body { padding:16px; }
 .dialog__foot { padding:16px; gap:8px; }
 .dialog__foot .btn { flex:1; }
 .dialog__head h2 { font-size:20px; }
 .receipt { padding:16px; }
 .login-layout { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
 .login-story { padding:24px 24px 20px; background:var(--surface); }
 .login-story h1,.login-story>p,.login-visual,.login-story .comproval-sign { display:none; }
 .login-form-wrap { padding:16px 24px 32px; justify-content:flex-start; }
 .login-form h2 { font-size:27px; }
 .gallery-shell { padding:24px 16px; }
 .gallery-hero { flex-direction:column; }
 .gallery-hero h1 { font-size:32px; }
 .direction-grid,.screen-links,.spec-grid { grid-template-columns:1fr; }
 .spec-section { padding:16px; }
 .report { padding:24px 16px; margin:0 12px 24px; }
 .report-toolbar { margin:16px 0; padding:0 16px; }
 .report-summary { grid-template-columns:1fr; }
 .report-summary>div { border-right:0; border-bottom:1px solid var(--border); }
 .report-header { gap:12px; } .report-header .merchant__name { font-size:14px; }
 .report-header>.right { font-size:10px; }
 .toast-region { bottom:88px; right:16px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; scroll-behavior:auto!important; transition:none!important; } }
@media (forced-colors:active) {
 .btn,.pill,.verdict,.input,.nav-link[aria-current],.tab[aria-selected="true"] { border:2px solid ButtonText; }
 .chart__bar { background:CanvasText; }
}
@page { size:A4; margin:14mm 14mm 16mm; }
@media print {
 :root,:root[data-theme="dark"] { color-scheme:light; --bg:#fff; --surface:#fff; --surface-subtle:#f0f0f0; --text:#000; --text-2:#222; --text-3:#333; --border:#aaa; --border-strong:#555; --brand:#fff; --on-brand:#000; --brand-edge:#555; --brand-text:#000; --ok-text:#000; --ok-soft:#fff; --missing-text:#000; --missing-soft:#fff; --risk-text:#000; --risk-soft:#fff; }
 .no-print,.report-toolbar,.sidebar,.topbar,.bottom-nav,.toast-region { display:none!important; }
 body.report-body { font-size:10pt; background:#fff; }
 .report { max-width:none; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; }
 .report-header { padding-bottom:14px; }
 .report-title { margin:18px 0; } .report-title h1 { font-size:21pt; }
 .report-summary { display:grid; grid-template-columns:repeat(3,1fr); margin:16px 0; break-inside:avoid; }
 .report-summary>div { padding:12px; border:0; border-right:1px solid #aaa; }
 .report-summary dd { font-size:14pt; }
 .report-section { margin-top:18px; }
 .report .data-table th,.report .data-table td { padding:8px; }
 .report .data-table thead { display:table-header-group; }
 .report .data-table tr,.report-header,.report-sign,.report .notice { break-inside:avoid; }
 .report .table-scroll { overflow:visible; }
 .report .notice,.report .pill { color:#000; background:#fff; border:1px solid #555; }
 .report .merchant__mark { color:#000; background:#fff; border:1px solid #555; }
 .report .comproval-sign { color:#000; }
 .report a { color:#000; text-decoration:none; }
 .report .notice p { font-size:9pt; }
 .report-sign { margin-top:16px; }
}
/* Density refinements: the decision remains above the fold, never reduced touch targets. */
.wa-mobile-tabs { display:none; }
.chart--daily .chart__plot,.chart--daily .chart__labels { gap:6px; }
.chart--daily .chart__value,.chart--daily .chart__labels span { font-size:10px; }
.dialog__foot { position:sticky; bottom:0; z-index:2; background:var(--surface); }
.cash-header { padding:12px 16px; min-height:68px; }
.cash-context { padding:8px 16px; }
.cash-main { padding-top:16px; }
.cash-foot { padding:12px 16px; }
.sending { padding:24px 20px; margin:20px 0; }
.sending .step-list { margin-top:20px; }
.sending .step-list li { padding:8px 0; }
@media (min-width:761px) {
 .page { padding-top:24px; padding-bottom:16px; }
 .page-title { margin-bottom:20px; }
 .kpi { padding:4px 20px 12px; }
 .kpi--attention { padding-top:2px; }
 .kpi__value { margin:0 0 4px; line-height:1.12; font-size:28px; }
 .card__head { padding:8px 20px; min-height:52px; }
 .data-table td { padding:6px 20px; }
 .data-table th { padding:10px 20px; }
 .overview-row { margin:16px 0; gap:20px; }
 .finance-hero { padding:12px 20px; }
 .finance-hero hr { margin:8px 0; }
 .finance-hero .mini-grid { margin-top:12px; }
 .finance-hero .money-detail { padding-top:8px; }
 .page-footer { margin-top:16px; }
 .settings-grid .card__body { padding:16px 20px; }
 .settings-grid .setting-line { padding:10px 0; }
 .settings-grid .number { margin-top:8px; }
 .settings-grid .number+p { margin-top:8px; }
 .settings-grid hr { margin:12px 0; }
 .settings-grid form.stack { gap:12px; }
 .settings-grid .activity li { padding:8px 0; }
 .settings-grid .card__foot { padding:8px 20px; }
 .settings-grid .check { padding:4px 0; }
 .summary-page .desktop-chart .chart__plot { height:136px; }
}
@media (max-width:760px) {
 .summary-page .page-title { margin-bottom:16px; }
 .summary-page .kpi-grid { gap:8px; }
 .summary-page .kpi { padding:4px 12px 8px; }
 .summary-page .kpi__label { font-size:11px; }
 .summary-page .kpi__value { font-size:24px; }
 .summary-page .kpi__meta { font-size:10px; }
 .summary-page .finance-hero { padding:8px 16px; }
 .summary-page .finance-hero .mini-grid { margin-top:8px; }
 .summary-page .finance-hero .money-detail { padding-top:8px; }
 .summary-page .finance-hero hr { margin:8px 0; }
 .summary-page .finance-hero>.row:last-child { display:none; }
 .summary-page .mobile-list .payment-item:nth-child(n+2) { display:none; }
 .summary-page .page-footer { display:none; }
 .summary-page .card__head { padding-top:4px; padding-bottom:4px; }
 .summary-page .overview-row { margin:12px 0; }
 .wa-mobile-tabs { display:flex; }
 .wa-mobile-tabs .subtab { padding:8px 12px; }
 .whatsapp-grid>div:not(:has(>section:not([hidden]))) { display:none; }
 .whatsapp-grid [data-wa-pane] { margin-top:0; }
 .whatsapp-grid .setting-line { align-items:flex-start; }
 .whatsapp-grid .setting-line>.row { gap:0; flex-direction:column; }
 .whatsapp-grid .number { font-size:14px; }
 .whatsapp-grid .card__body>.row { flex-wrap:wrap; }
}
@media (min-width:761px) {
 .summary-page .page-footer,[data-view="whatsapp"] .page-footer,[data-view="consumo"] .page-footer { display:none; }
 [data-view="consumo"] .overview-row .card__body.stack { padding:12px 20px; gap:12px; }
 [data-view="consumo"] .chart__plot { height:122px; }
 [data-view="consumo"] .tabs { margin-bottom:16px; }
}
@media (max-width:760px) {
 .page:has(.summary-page) { padding-bottom:80px; }
 .summary-page .mobile-list .payment-item .row+.row { display:none; }
 .summary-page .finance-hero hr { display:none; }
}
.table-scroll { position:relative; }
.timeline { list-style:none; margin-top:0; margin-bottom:0; }
