@font-face { font-family: Manrope; src: url('/static/fonts/manrope.woff2?v=20261017') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #f6f6f7; --sheet: #ffffff; --inset: #f2f3f5; --hover: #f5f5f7;
  --ink: #25262b; --muted: #62646e; --faint: #71737e;
  --rule: #e8e8ec; --rule-soft: #f0f0f3; --control-border: #dedee5;
  --blue: #5753de; --blue-hover: #4641c5; --blue-soft: #efeffc; --accent-ink: #ffffff;
  --green: #267961; --green-soft: #eaf5ef; --warning: #916117; --warning-soft: #fcf5e8;
  --danger: #b44346; --danger-soft: #fcedee; --focus: #9d99ed;
  --shadow: 0 1px 3px #18182908, 0 3px 9px #18182904;
  --font: Manrope, 'Segoe UI', sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #18191c; --sheet: #202125; --inset: #25262b; --hover: #292a30;
  --ink: #e9e9ee; --muted: #aaaab6; --faint: #9595a2;
  --rule: #323339; --rule-soft: #2a2b31; --control-border: #41424c;
  --blue: #ada8ff; --blue-hover: #c1bdff; --blue-soft: #302e48; --accent-ink: #1c1937;
  --green: #75ccaa; --green-soft: #24382f; --warning: #e8bd77; --warning-soft: #352e23;
  --danger: #ee9296; --danger-soft: #3b282d; --focus: #aaa4ff;
  --shadow: 0 1px 3px #00000020;
}

* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
form { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 18px; background: var(--blue); color: var(--accent-ink); border-radius: 6px; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.demo-bar { min-height: 38px; padding: 8px 24px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 11px; letter-spacing: .02em; }
.demo-tag { font-size: 9px; letter-spacing: .12em; background: var(--green-soft); padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.demo-bar button { margin-left: 12px; text-decoration: underline; text-underline-offset: 3px; border: 0; padding: 0; background: none; color: inherit; font-size: inherit; }
.app-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.demo-bar + .app-shell { min-height: calc(100vh - 38px); }
.sidebar { padding: 31px 22px 24px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 44px; position: sticky; top: 0; height: 100vh; max-height: 1050px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.7px; }
.brand-symbol { background: var(--blue); color: white; width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; letter-spacing: -2px; padding-right: 2px; flex: none; }
.brand-sub { font-size: 9px; font-weight: 500; letter-spacing: 1.5px; color: var(--muted); display: block; margin-top: 1px; }
.nav-label { font-size: 10px; letter-spacing: .12em; color: var(--faint); font-weight: 600; margin: 0 13px 12px; }
.nav { display: grid; gap: 5px; }
.nav a { display: flex; align-items: center; gap: 11px; width: 100%; border-radius: 7px; padding: 12px; color: var(--muted); font-weight: 500; font-size: 13px; transition: background .15s, color .15s; }
.nav a.active { background: var(--blue-soft); color: var(--blue); }
.nav a:hover { background: var(--hover); color: var(--ink); }
.side-bottom { margin-top: auto; }
.account-mini { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--rule); padding: 20px 2px 12px; }
.account-mini > div { min-width: 0; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 50%; background: var(--inset); font-size: 12px; font-weight: 600; color: var(--muted); }
.account-mini b { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.account-mini small { display: block; color: var(--muted); font-size: 10px; }
.logout { background: none; border: 0; padding: 9px 2px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.logout .icon { width: 15px; height: 15px; }
.logout:hover { color: var(--blue); }
.workspace { min-width: 0; }
.topbar { min-height: 88px; border-bottom: 1px solid var(--rule); padding: 15px 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.breadcrumbs { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.breadcrumbs b { color: var(--ink); font-weight: 500; }
.top-account { display: flex; align-items: center; gap: 10px; font-size: 12px; text-align: right; }
.top-logout { display: none; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 7px; background: var(--sheet); }
.content { max-width: 1230px; margin: auto; padding: 38px 48px 26px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 29px; }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); font-weight: 600; margin-bottom: 9px; }
h1 { font-size: 31px; line-height: 1.2; letter-spacing: -1.1px; font-weight: 550; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
h3 { font-size: 15px; font-weight: 600; }
.subheading { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.7; }
.btn { border: 1px solid var(--rule); background: var(--sheet); border-radius: 7px; padding: 11px 15px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; line-height: 1.4; text-align: center; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--hover); box-shadow: 0 2px 3px #18182908; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 2px 2px #5753de12; }
.btn.primary:hover { background: var(--blue-hover); }
.btn .icon { width: 16px; height: 16px; }
.full { width: 100%; }
.notice { margin: 0 0 22px; border: 1px solid var(--rule); border-radius: 8px; background: var(--blue-soft); color: var(--muted); padding: 13px 16px; font-size: 12px; line-height: 1.7; }
.notice a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.notice.warning { background: var(--warning-soft); border-color: var(--warning-soft); color: var(--warning); }
.notice.error, .feedback.error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }
.account-sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.currency-tabs { display: flex; flex-wrap: wrap; gap: 25px; padding: 0 28px; border-bottom: 1px solid var(--rule); }
.currency-tabs a { border-bottom: 2px solid transparent; padding: 18px 0 15px; color: var(--muted); font-size: 12px; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.currency-tabs a.active { border-bottom-color: var(--blue); color: var(--blue); }
.currency-tabs a:hover { color: var(--blue); }
.currency-icon { font-size: 12px; width: 21px; height: 21px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; opacity: .8; }
.balance-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 36px; padding: 34px 32px; }
.balance-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.balance-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.balance-code { font-size: 17px; font-weight: 450; color: var(--faint); }
.balance-value { font-size: clamp(29px, 3.5vw, 49px); line-height: 1.2; letter-spacing: -2px; font-weight: 550; overflow-wrap: anywhere; }
.favor { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 11px; color: var(--green); }
.favor .icon { width: 14px; height: 14px; }
.balance-due { color: var(--warning); }
.period-summary { border-left: 1px solid var(--rule); padding-left: 28px; display: grid; gap: 11px; }
.period-summary h2 { font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.summary-line span { color: var(--muted); }
.summary-line b { font-variant-numeric: tabular-nums; font-weight: 500; overflow-wrap: anywhere; min-width: 0; text-align: right; }
.summary-line.total { border-top: 1px solid var(--rule); padding-top: 12px; }
.summary-line.total span, .summary-line.total b { font-weight: 600; color: var(--ink); }
.freshness { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 28px; background: var(--hover); border-top: 1px solid var(--rule); font-size: 10px; color: var(--muted); }
.freshness > span { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.stale .status-dot { background: var(--warning); }
.info-button { display: flex; align-items: center; gap: 5px; color: var(--muted); background: none; border: 0; padding: 4px 0; font-size: 10px; flex: none; }
.info-button .icon { width: 14px; height: 14px; }
.movements { margin-top: 35px; scroll-margin-top: 25px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-caption { font-size: 11px; color: var(--muted); margin-top: 4px; }
.period-picker { display: flex; align-items: center; gap: 7px; position: relative; }
.period-picker > .icon { position: absolute; right: 12px; top: 13px; width: 14px; height: 14px; pointer-events: none; color: var(--muted); }
.period-picker:has(.filter-submit:not([hidden])) > .icon { display: none; }
select { appearance: none; border: 1px solid var(--control-border); border-radius: 7px; background: var(--sheet); padding: 10px 33px 10px 13px; color: var(--ink); font-size: 12px; cursor: pointer; }
.table-sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
table { border-collapse: collapse; width: 100%; }
.movement-table { table-layout: fixed; }
th { font-size: 10px; font-weight: 500; color: var(--muted); text-align: left; background: var(--hover); border-bottom: 1px solid var(--rule); padding: 13px 18px; }
.movement-table th:first-child { width: 15%; }
.movement-table th:nth-child(2) { width: 34%; }
.movement-table th:nth-child(3) { width: 15%; }
.movement-table th:nth-child(4), .movement-table th:nth-child(5) { width: 18%; }
td { border-bottom: 1px solid var(--rule-soft); padding: 16px 18px; vertical-align: middle; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--hover); }
td.date { color: var(--muted); font-variant-numeric: tabular-nums; }
td.date small { display: block; font-size: 10px; color: var(--faint); margin-top: 2px; }
.movement-open { display: flex; align-items: center; gap: 11px; border: 0; background: none; text-align: left; padding: 0; width: 100%; font-size: 12px; }
.movement-open:hover .movement-name { text-decoration: underline; text-underline-offset: 3px; }
.movement-symbol { display: grid; place-items: center; width: 31px; height: 31px; background: var(--green-soft); border-radius: 50%; color: var(--green); flex: none; }
.movement-symbol.debit { background: var(--inset); color: var(--muted); }
.movement-symbol .icon { width: 14px; height: 14px; }
.movement-text { min-width: 0; overflow-wrap: anywhere; }
.movement-name { display: block; font-weight: 600; }
.movement-ref { display: block; font-size: 10px; color: var(--faint); margin-top: 3px; }
.movement-receipt { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 10px; margin-top: 5px; }
.movement-receipt .icon { width: 12px; height: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--green); background: var(--green-soft); padding: 4px 7px; border-radius: 4px; }
.badge .status-dot { width: 4px; height: 4px; }
.badge-neutral { background: var(--rule-soft); color: var(--muted); }
.badge-neutral .status-dot { background: var(--muted); }
.numeric { font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.amount-positive { color: var(--green); }
.row-balance { color: var(--muted); }
.table-foot { padding: 13px 18px; border-top: 1px solid var(--rule); font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.mobile-date { display: none; }
.empty-row { text-align: center; color: var(--muted); padding: 36px 20px; }
.empty-row b, .empty-row span, .empty-row a { display: block; }
.empty-row b { color: var(--ink); font-weight: 600; }
.empty-row span { margin: 7px 0 14px; }
.empty-row a, .text-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.empty-state { text-align: center; padding: 48px 25px; }
.empty-state .auth-symbol { margin: 0 auto 18px; }
.empty-state p { max-width: 440px; margin: 12px auto 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.empty-state small { display: block; margin-top: 20px; color: var(--muted); font-size: 11px; }
.history-note, .account-help { color: var(--muted); font-size: 11px; margin-top: 16px; }
.page-foot { display: flex; justify-content: space-between; gap: 14px; padding-top: 26px; font-size: 10px; color: var(--faint); }
.page-foot span { display: flex; gap: 5px; align-items: center; }
.page-foot .icon { width: 12px; height: 12px; }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 1px solid var(--rule); border-radius: 15px; padding: 29px; color: var(--ink); background: var(--sheet); box-shadow: 0 20px 90px #182b3a25; }
dialog::backdrop { background: #15233d55; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 10px; }
.dialog-header h2 { font-size: 20px; }
.close { display: grid; place-items: center; border: 0; background: var(--inset); width: 32px; height: 32px; border-radius: 50%; padding: 7px; flex: none; }
.close .icon { width: 16px; height: 16px; }
.dialog-description { font-size: 12px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.spaced { margin-top: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 25px 0; }
.field { display: grid; gap: 7px; font-size: 11px; color: var(--muted); }
.field select { width: 100%; padding-right: 10px; appearance: auto; }
.download-note { display: flex; gap: 10px; padding: 13px; background: var(--paper); border-radius: 7px; color: var(--muted); font-size: 11px; margin-bottom: 22px; }
.download-note .icon { color: var(--blue); margin-top: 1px; width: 18px; height: 18px; }
.dialog-note { font-size: 11px; color: var(--faint); margin-top: 15px; text-align: center; }
.detail-amount { font-size: 33px; letter-spacing: -1px; font-weight: 550; margin: 22px 0 5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-grid { display: grid; margin: 22px 0 3px; }
.detail-grid div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 12px; }
.detail-grid dt { color: var(--muted); flex: none; max-width: 45%; }
.detail-grid dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.receipt-panel { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 15px; }
.receipt-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.receipt-heading h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.receipt-heading h3 .icon { width: 16px; height: 16px; color: var(--muted); }
.receipt-download { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 4px 0; }
.receipt-download .icon { width: 14px; height: 14px; }
.receipt-status, .receipt-empty { font-size: 11px; color: var(--muted); line-height: 1.7; }
.receipt-status { padding: 18px; border-radius: 8px; background: var(--paper); }
.receipt-empty { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.receipt-preview { position: relative; display: flex; justify-content: center; width: 100%; padding: 16px 16px 42px; border: 1px solid var(--rule); border-radius: 9px; background: var(--sheet); overflow: hidden; }
.receipt-preview:hover { border-color: var(--blue); background: var(--blue-soft); }
.receipt-preview img { display: block; max-width: 100%; width: auto; height: auto; max-height: 580px; object-fit: contain; border: 1px solid var(--rule); }
.receipt-preview > span { position: absolute; bottom: 11px; left: 12px; right: 12px; display: flex; justify-content: center; align-items: center; gap: 5px; color: var(--blue); font-size: 11px; }
.receipt-preview > span .icon { width: 13px; height: 13px; }
.receipt-dialog { width: min(940px, calc(100% - 24px)); padding: 24px; max-height: calc(100dvh - 24px); }
.receipt-dialog .dialog-header { align-items: flex-start; margin-bottom: 18px; }
.receipt-filename { margin-top: 5px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.receipt-viewer { max-height: calc(100dvh - 220px); overflow: auto; overscroll-behavior: contain; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.receipt-viewer:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.receipt-full-image { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.receipt-viewer-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 17px; }
.receipt-viewer-footer > span { color: var(--muted); font-size: 11px; max-width: 310px; }
.movement-selected { background: var(--blue-soft); }
.movement-selected .movement-name { color: var(--blue); }
.movement-detail-row > td { padding: 0; }
.movement-detail { background: var(--paper); padding: 24px; border-bottom: 1px solid var(--rule); }
.movement-detail:focus { outline: none; }
.movement-detail > .dialog-header { margin-bottom: 24px; }
.movement-detail-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.movement-detail-layout:has(.receipt-panel[hidden]) { grid-template-columns: minmax(0, 560px); }
.movement-detail .detail-amount { font-size: 28px; margin-top: 0; }
.movement-detail .receipt-panel { margin: 0; padding: 0; border: 0; }
.movement-detail .dialog-note { text-align: left; }
.movement-detail .receipt-status { background: var(--sheet); }
.signin { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.demo-bar + .signin { min-height: calc(100vh - 38px); }
.signin-story { background: var(--inset); padding: 50px 13%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.story-title { font-size: clamp(42px, 5vw, 70px); font-weight: 500; letter-spacing: -3px; line-height: 1.06; }
.story-title span { color: var(--blue); }
.story-copy { font-size: 14px; color: var(--muted); margin-top: 24px; line-height: 1.8; }
.signin-story small { font-size: 11px; color: var(--muted); }
.signin-form { display: grid; place-items: center; padding: 40px 32px; }
.signin-card { width: min(365px, 100%); }
.signin-card h1 { font-size: 29px; letter-spacing: -1.1px; }
.signin-card .notice { margin-top: 22px; }
.signin-card .subheading b { overflow-wrap: anywhere; }
.signin-card .btn { min-height: 44px; }
.login-primary { margin-top: 30px; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 11px; line-height: 1.8; }
.login-primary > .field-hint { text-align: center; }
.feedback { margin-top: 14px; padding: 12px; border-radius: 6px; background: var(--blue-soft); color: var(--muted); font-size: 12px; }
.login-help { margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.login-help summary { font-size: 12px; font-weight: 600; cursor: pointer; }
.login-help > p { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.stack { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
input { width: 100%; min-width: 0; font: inherit; color: var(--ink); padding: 12px; border: 1px solid var(--control-border); background: var(--sheet); border-radius: 7px; }
input::placeholder { color: var(--faint); opacity: 1; }
.activation-link { margin-top: 24px; display: grid; gap: 7px; font-size: 12px; text-align: center; }
.activation-link > span { color: var(--muted); }
.activation-link a { display: inline-flex; justify-content: center; align-items: center; gap: 5px; color: var(--blue); font-weight: 600; }
.activation-link .icon { width: 14px; height: 14px; }
.demo-intro { margin: 28px 0 18px; }
.demo-intro p { color: var(--muted); font-size: 12px; margin-top: 10px; }
.demo-accounts { display: grid; gap: 11px; }
.demo-account { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid var(--rule); border-radius: 9px; width: 100%; background: var(--sheet); text-align: left; transition: background .15s, border-color .15s, transform .15s; }
.demo-account:hover { background: var(--blue-soft); border-color: var(--blue); transform: translateY(-1px); }
.demo-account > .icon { margin-left: auto; color: var(--blue); }
.demo-account b { display: block; font-size: 13px; font-weight: 600; }
.demo-account small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.back-link { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 27px; }
.back-link:hover { color: var(--blue); }
.auth-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); margin-bottom: 20px; flex: none; }
.auth-symbol .icon { width: 23px; height: 23px; }
.code-form, .activation-form { margin-top: 25px; }
.code-input { font-size: 27px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.signin-card > .text-link { display: inline-block; margin-top: 18px; font-size: 12px; }
.activation-form + .download-note { margin-top: 23px; }
.error-card { max-width: 550px; padding: 12px 0; }
.error-card .btn { margin-top: 25px; }
.security-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.security-heading { display: flex; gap: 15px; align-items: center; margin-bottom: 24px; }
.security-heading .auth-symbol { margin: 0; }
.security-heading p { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.key-list { list-style: none; margin: 0; padding: 0; }
.key-list li { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 0; border-top: 1px solid var(--rule); }
.key-list b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.key-list small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.subtle-danger { color: var(--danger); }
.subtle-danger:hover { background: var(--danger-soft); }
.key-empty { padding: 20px; border-radius: 7px; background: var(--paper); font-size: 12px; color: var(--muted); }
.registration-panel { border-top: 1px solid var(--rule); margin-top: 22px; padding-top: 22px; }
.registration-panel > p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.registration-panel .stack { max-width: 390px; }
.security-help { margin-top: 20px; }
.session-table-wrap { overflow-x: auto; }
.session-table th, .session-table td { padding: 13px 14px; }
.session-table td { font-variant-numeric: tabular-nums; }
.session-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 25px; }
.session-actions p { max-width: 330px; font-size: 11px; color: var(--muted); line-height: 1.8; }
@media (min-width: 1550px) {
  .content { padding-top: 50px; }
  .balance-layout { padding-top: 44px; padding-bottom: 44px; }
  td { padding-top: 19px; padding-bottom: 19px; }
}
@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 184px minmax(0, 1fr); }
  .sidebar { padding: 28px 16px; }
  .brand-sub { font-size: 8px; letter-spacing: 1px; }
  .content { padding: 30px 28px 24px; }
  .topbar { padding: 15px 28px; }
  .balance-layout { gap: 22px; padding: 28px 24px; }
  .balance-value { font-size: 37px; letter-spacing: -1.6px; }
  .period-summary { padding-left: 24px; }
  th, td { padding-left: 12px; padding-right: 12px; }
  .movement-open { gap: 9px; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--rule); padding: 18px 25px; flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
  .sidebar .nav-label, .side-bottom { display: none; }
  .nav { display: flex; gap: 4px; }
  .nav a { padding: 10px; font-size: 12px; }
  .nav .icon { width: 16px; height: 16px; }
  .topbar { min-height: 62px; padding-top: 10px; padding-bottom: 10px; }
  .top-logout { display: block; }
  .content { max-width: 900px; width: 100%; }
  .brand-sub { display: none; }
  .balance-value { font-size: 42px; }
  .signin-story { padding: 38px 10%; }
}
@media (max-width: 600px) {
  .demo-bar { padding: 8px 10px; font-size: 10px; gap: 6px; }
  .demo-bar button { margin-left: 5px; }
  .sidebar { padding: 15px 20px; }
  .brand { font-size: 18px; }
  .brand-symbol { height: 30px; width: 30px; font-size: 17px; border-radius: 8px; }
  .nav a { gap: 0; padding: 11px; }
  .nav a > span { display: none; }
  .nav .icon { width: 18px; height: 18px; }
  .topbar { padding: 8px 20px; min-height: 52px; gap: 12px; }
  .breadcrumbs { font-size: 10px; gap: 7px; }
  .top-account { font-size: 10px; max-width: 47%; gap: 8px; }
  .top-account > span { overflow-wrap: anywhere; }
  .content { padding: 25px 18px 22px; }
  .page-head { display: block; margin-bottom: 22px; }
  h1 { font-size: 29px; }
  .page-head .btn { margin-top: 19px; width: 100%; padding: 12px; }
  .subheading { font-size: 12px; }
  .eyebrow { font-size: 9px; }
  .currency-tabs { padding: 0 20px; gap: 20px; }
  .currency-tabs a { font-size: 11px; gap: 6px; padding: 16px 0 13px; }
  .currency-icon { width: 18px; height: 18px; font-size: 10px; }
  .balance-layout { grid-template-columns: 1fr; gap: 24px; padding: 26px 22px 22px; }
  .balance-value { font-size: clamp(28px, 9vw, 42px); letter-spacing: -1.8px; }
  .balance-code { font-size: 14px; }
  .period-summary { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--rule); gap: 9px; }
  .period-summary h2 { font-size: 11px; }
  .summary-line { font-size: 12px; }
  .summary-line.total { padding-top: 9px; }
  .freshness { padding: 11px 17px; align-items: center; font-size: 10px; gap: 8px; }
  .info-button { padding: 8px 2px; }
  .info-button > span { display: none; }
  .section-head { align-items: center; gap: 8px; }
  .section-head h2 { font-size: 17px; }
  .section-caption { font-size: 10px; }
  .period-picker select { font-size: 11px; padding-left: 10px; padding-right: 29px; max-width: 166px; }
  .period-picker > .icon { right: 10px; }
  .movements { margin-top: 29px; }
  .movement-table th.date, .movement-table td.date, .movement-table th.state, .movement-table td.state, .movement-table th.row-balance, .movement-table td.row-balance { display: none; }
  .movement-table th:nth-child(2) { width: 64%; }
  .movement-table th:nth-child(4) { width: 36%; }
  th, td { padding: 14px; }
  th { font-size: 10px; }
  .movement-open { font-size: 11px; gap: 9px; }
  .movement-symbol { width: 27px; height: 27px; }
  .movement-ref { font-size: 10px; }
  .desktop-ref { display: none; }
  .mobile-date { display: inline; }
  .numeric { font-size: 11px; }
  .table-foot { font-size: 10px; padding: 12px 14px; }
  .table-foot .foot-note { display: none; }
  .page-foot { font-size: 10px; flex-wrap: wrap; }
  .signin { grid-template-columns: 1fr; min-height: 100dvh; }
  .signin-story { padding: 26px 30px; gap: 32px; }
  .story-title { font-size: 43px; letter-spacing: -2px; }
  .story-copy, .signin-story small { display: none; }
  .signin-form { padding: 35px 27px; align-content: start; }
  .signin-card h1 { font-size: 27px; }
  input { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  dialog { padding: 23px; }
  .detail-amount { font-size: 30px; }
  .movement-detail { padding: 18px 14px; }
  .movement-detail > .dialog-header { margin-bottom: 18px; }
  .movement-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .movement-detail .receipt-panel { order: -1; }
  .movement-detail .detail-amount { font-size: 25px; }
  .receipt-preview { padding: 8px 8px 36px; }
  .receipt-dialog { padding: 18px; }
  .receipt-viewer { max-height: calc(100dvh - 220px); }
  .receipt-viewer-footer { align-items: flex-start; gap: 10px; }
  .receipt-viewer-footer > span { font-size: 10px; }
  .receipt-viewer-footer .btn { padding: 9px 12px; flex: none; }
  .security-card { padding: 22px 18px; }
  .security-heading { gap: 12px; }
  .security-heading .auth-symbol { width: 38px; height: 38px; border-radius: 10px; }
  .security-heading p { font-size: 11px; }
  .key-list li { gap: 10px; }
  .key-list small { font-size: 10px; }
  .key-list .btn { font-size: 11px; padding: 9px 10px; }
  .session-table { min-width: 0; table-layout: fixed; }
  .session-table th, .session-table td { overflow-wrap: anywhere; }
  .session-table td .movement-ref { display: block; }
  .session-table th, .session-table td { padding: 12px 10px; font-size: 11px; }
  .session-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .session-table tbody, .session-table tr, .session-table td { display: block; }
  .session-table tr { padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
  .session-table td { padding: 3px 10px; overflow-wrap: normal; border: 0; }
  .session-table td::before { content: attr(data-label) " · "; opacity: .65; }
  .session-actions form, .session-actions .btn { width: 100%; }
}
@media (max-width: 370px) {
  .sidebar { padding: 13px 16px; gap: 9px; }
  .brand { gap: 7px; font-size: 16px; }
  .nav a { padding: 9px; }
  .content { padding-left: 13px; padding-right: 13px; }
  .currency-tabs { gap: 14px; padding: 0 17px; }
  .currency-tabs .currency-icon { display: none; }
  .movement-symbol { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .account-sheet, .movements { animation: arrive .35s ease both; }
  .movements { animation-delay: .05s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
  .sidebar, .demo-bar, .topbar, .page-head > .btn, .period-picker, .info-button, .page-foot, dialog { display: none !important; }
  body { background: var(--sheet); color: black; font-size: 11px; }
  .app-shell { display: block; }
  .content { padding: 0; max-width: none; }
  .account-sheet, .table-sheet { break-inside: avoid; }
  .movements, .account-sheet { animation: none; }
}

.pending-label { color: var(--muted); font-size: 11px; font-weight: 400; }
.office-section { min-width: 0; }
.office-details { border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); overflow: hidden; }
.office-details summary { padding: 18px 22px; cursor: pointer; font-weight: 600; }
.office-scroll { overflow-x: auto; max-width: 100%; }
.office-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.office-table th, .office-table td { padding: 14px 18px; border-top: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.office-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.office-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; }

.receipt-pdf { display: block; width: 100%; height: 640px; border: 1px solid var(--rule); border-radius: 8px; background: var(--inset); }
.movement-detail-layout:has(.receipt-pdf:not([hidden])) { grid-template-columns: 1fr; }
@media(max-width: 600px) { .receipt-pdf { height: 480px; } }

/* Portal: una cuenta legible, con el comprobante junto al movimiento. */
body { font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select { font-family: var(--font); }
button, a, input, select, summary { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
button:disabled { cursor: not-allowed; }
.app-shell { grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { padding: 25px 16px 18px; gap: 45px; max-height: none; background: var(--paper); }
.sidebar .brand { padding: 0 10px; }
.brand { gap: 10px; font-size: 16px; letter-spacing: -.55px; }
.brand-symbol { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--sheet); font-size: 18px; box-shadow: inset 0 0 0 1px #ffffff10; }
.brand-sub { font-size: 10px; letter-spacing: .05px; font-weight: 450; margin-top: 2px; }
.nav-label { font-size: 9px; letter-spacing: .08em; margin: 0 12px 12px; }
.nav { gap: 5px; }
.nav a { padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; gap: 11px; }
.nav a:hover { background: var(--inset); }
.nav a.active { background: var(--sheet); color: var(--ink); border-color: var(--rule); box-shadow: var(--shadow); font-weight: 650; }
.nav a.active .icon { color: var(--blue); }
.nav .icon { width: 17px; height: 17px; }
.account-mini { padding: 17px 10px 12px; }
.avatar { width: 32px; height: 32px; background: var(--blue-soft); color: var(--blue); border: 1px solid var(--rule); border-radius: 10px; }
.account-mini b { font-size: 11px; }
.account-mini small { font-size: 10px; margin-top: 3px; }
.logout { padding: 10px 12px; width: 100%; font-size: 11px; border-radius: 8px; }
.logout:hover { background: var(--inset); color: var(--ink); }
.topbar { min-height: 68px; padding: 12px 36px; gap: 16px; }
.top-context { display: flex; align-items: center; gap: 18px; min-width: 0; }
.breadcrumbs { font-size: 11px; gap: 12px; }
.breadcrumbs > span[aria-hidden] { color: var(--faint); opacity: .6; }
.top-account { gap: 12px; }
.account-chip { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 7px; font-size: 10px; font-weight: 600; background: var(--sheet); }
.icon-button { width: 33px; height: 33px; border-radius: 8px; border-color: transparent; background: transparent; color: var(--muted); }
.icon-button:hover { color: var(--ink); background: var(--inset); border-color: var(--rule); }
.icon-button .icon { width: 17px; height: 17px; }
.theme-toggle { background: var(--sheet); border-color: var(--rule); box-shadow: var(--shadow); }
.theme-toggle .icon:first-child { display: none; }
[data-theme="dark"] .theme-toggle .icon:first-child { display: block; }
[data-theme="dark"] .theme-toggle .icon:last-child { display: none; }
.content { max-width: 1320px; padding: 34px 40px 24px; }
.page-head { align-items: center; margin-bottom: 26px; }
.eyebrow { font-size: 9px; letter-spacing: .12em; margin-bottom: 8px; font-weight: 650; }
h1 { font-size: clamp(23px, 2.1vw, 30px); letter-spacing: -1.1px; font-weight: 650; line-height: 1.3; }
h2 { font-size: 16px; letter-spacing: -.5px; font-weight: 650; }
.heading-dot { color: var(--blue); }
.subheading { font-size: 12px; margin-top: 6px; }
.btn { border-radius: 9px; font-size: 11px; padding: 10px 13px; min-height: 38px; box-shadow: var(--shadow); font-weight: 600; }
.btn.primary { color: var(--accent-ink); border-color: var(--blue); box-shadow: 0 2px 3px #5753de18, inset 0 1px 0 #ffffff18; }
.btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.reference-notice { display: flex; align-items: center; gap: 9px; padding: 11px 14px; margin-bottom: 18px; border-radius: 9px; font-size: 11px; border-color: transparent; }
.reference-notice > .icon { width: 15px; height: 15px; }
.reference-notice b { font-weight: 650; }
.account-sheet { border-radius: 14px; box-shadow: var(--shadow); }
.currency-tabs { padding: 18px 24px 0; gap: 6px; border: 0; }
.currency-tabs a { border: 1px solid transparent; padding: 6px 11px; border-radius: 7px; font-size: 11px; gap: 7px; font-weight: 550; }
.currency-tabs a.active { background: var(--inset); border-color: var(--rule); color: var(--ink); box-shadow: 0 1px 2px #18182904; }
.currency-tabs a:hover { background: var(--hover); }
.currency-tabs a > span:last-child:not(.currency-icon) { color: var(--faint); font-size: 9px; }
.currency-icon { width: 17px; height: 17px; border: 0; background: var(--sheet); color: var(--muted); font-size: 10px; }
.balance-layout { padding: 26px 28px 28px; gap: 40px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.balance-label { font-size: 11px; font-weight: 500; margin-bottom: 10px; }
.balance-line { gap: 10px; }
.balance-code { font-size: 15px; font-weight: 500; }
.balance-value { font-size: clamp(32px, 3.3vw, 48px); letter-spacing: -2px; font-weight: 600; }
.favor { border-radius: 5px; padding: 4px 7px; background: var(--green-soft); font-size: 10px; margin-top: 15px; }
.balance-due, .balance-review { color: var(--warning); background: var(--warning-soft); }
.period-summary { gap: 9px; padding-left: 32px; }
.period-summary h2 { font-size: 10px; margin-bottom: 3px; }
.summary-line { font-size: 11px; }
.summary-line b { font-weight: 600; }
.summary-line.total { padding-top: 9px; }
.freshness { padding: 11px 24px; font-size: 10px; background: var(--sheet); border-top-color: var(--rule-soft); }
.info-button { font-size: 10px; }
.movements { margin-top: 28px; scroll-margin-top: 24px; }
.section-head { margin-bottom: 14px; }
.section-caption { font-size: 11px; }
.period-picker select { font-size: 11px; border-radius: 8px; padding-top: 9px; padding-bottom: 9px; border-color: var(--rule); box-shadow: var(--shadow); }
.table-sheet { border-radius: 12px; box-shadow: var(--shadow); }
.movement-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.filter-chips { display: flex; align-items: center; gap: 3px; padding: 3px; background: var(--inset); border-radius: 9px; max-width: 100%; }
.filter-chips button { border: 1px solid transparent; padding: 6px 9px; border-radius: 7px; background: transparent; display: flex; align-items: center; gap: 5px; font-size: 10px; white-space: nowrap; color: var(--muted); min-height: 30px; }
.filter-chips button[aria-pressed="true"] { color: var(--ink); background: var(--sheet); border-color: var(--rule); box-shadow: var(--shadow); font-weight: 600; }
.filter-chips button:hover { color: var(--ink); }
.filter-chips button > span { font-size: 9px; color: var(--faint); min-width: 10px; font-variant-numeric: tabular-nums; }
.filter-chips .icon { width: 12px; height: 12px; }
.pending-dot { background: var(--warning); }
.movement-search { display: flex; align-items: center; gap: 8px; width: 212px; min-width: 140px; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); padding: 0 10px; }
.movement-search > .icon { width: 14px; height: 14px; color: var(--faint); }
.movement-search input { border: 0; padding: 8px 0; font-size: 11px; background: transparent; border-radius: 0; box-shadow: none; }
.movement-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.movement-search input:focus-visible { outline: 0; }
th { padding: 11px 18px; font-size: 10px; background: var(--sheet); font-weight: 500; }
td { padding: 14px 18px; border-color: var(--rule-soft); font-size: 11px; }
.movement-table th:first-child { width: 15%; }
.movement-table th:nth-child(2) { width: 31%; }
.movement-table th:nth-child(3) { width: 18%; }
.movement-open { font-size: 11px; gap: 11px; min-height: 35px; }
.movement-name { font-weight: 600; }
.movement-open:hover .movement-name { text-decoration: none; color: var(--blue); }
.movement-symbol { border-radius: 9px; width: 32px; height: 32px; background: var(--green-soft); }
.movement-ref { font-size: 10px; margin-top: 3px; }
.movement-receipt { font-size: 9px; margin-top: 5px; background: var(--inset); color: var(--muted); border: 1px solid var(--rule); padding: 2px 5px; border-radius: 4px; }
.movement-pending { color: var(--faint); border-style: dashed; }
.badge { font-size: 9px; border-radius: 5px; padding: 4px 6px; white-space: normal; line-height: 1.5; }
.badge-neutral { background: var(--inset); }
.numeric { font-size: 11px; letter-spacing: -.15px; }
.numeric small { display: block; margin-top: 3px; font-size: 9px; letter-spacing: 0; }
.table-foot { padding: 12px 16px; font-size: 10px; border-color: var(--rule-soft); }
.empty-row > .icon { width: 24px; height: 24px; color: var(--faint); margin-bottom: 12px; }
.empty-row b { font-size: 12px; }
.empty-row .btn { margin: 4px auto 0; }
.movement-selected { background: var(--blue-soft); }
.movement-detail { padding: 24px; background: var(--inset); box-shadow: inset 3px 0 0 var(--blue); }
.movement-detail .dialog-header h3 { font-size: 13px; }
.movement-detail-layout { gap: 24px; }
.movement-detail-summary { background: var(--sheet); padding: 22px; border: 1px solid var(--rule); border-radius: 10px; }
.detail-grid { margin-top: 20px; }
.detail-grid div { font-size: 11px; }
.movement-detail .detail-amount { font-size: 27px; font-weight: 600; }
.movement-detail .receipt-panel { background: var(--sheet); border: 1px solid var(--rule); padding: 16px; border-radius: 10px; }
.receipt-preview { background: var(--inset); padding: 12px 12px 38px; }
.receipt-preview img { box-shadow: var(--shadow); }
.receipt-heading h3 { font-size: 12px; }
.receipt-empty { font-size: 11px; }
/* Evidencia externa: enlace al proveedor, distinto de un comprobante adjunto o faltante. */
.movement-external { color: var(--blue); }
.external-evidence { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.external-evidence-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.external-evidence-label .icon { width: 14px; height: 14px; color: var(--blue); }
.external-evidence-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 4px 0 10px; }
.external-evidence .btn { max-width: 100%; white-space: normal; }
.office-details { border-radius: 12px; box-shadow: var(--shadow); margin-top: 14px; }
.office-details summary { padding: 15px 18px; font-size: 12px; }
.office-scroll { max-height: 540px; overflow: auto; }
.office-table th { position: sticky; top: 0; z-index: 1; background: var(--sheet); text-transform: none; font-size: 10px; }
.office-table td { font-size: 11px; }
.office-table tfoot th { top: auto; bottom: 0; border-top: 2px solid var(--rule); color: var(--ink); font-size: 11px; }
.office-section > .history-note { margin-top: 0; }
.history-note, .account-help { font-size: 10px; }
.page-foot { font-size: 9px; padding-top: 30px; }
dialog { padding: 26px; border-radius: 16px; box-shadow: 0 18px 80px #00000030; }
dialog::backdrop { background: #18192360; }
.dialog-header h2 { font-size: 18px; }
.close { border-radius: 8px; background: var(--inset); }
.close:hover { background: var(--rule); }
.signin { position: relative; grid-template-columns: 1fr 1fr; background: var(--sheet); }
.signin-story { background: var(--paper); padding: 44px 12%; border-right: 1px solid var(--rule); gap: 48px; }
.story-badge { display: inline-flex; background: var(--sheet); border: 1px solid var(--rule); padding: 5px 9px; border-radius: 6px; color: var(--muted); font-size: 10px; margin-bottom: 22px; }
.story-title { font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -3px; font-weight: 600; line-height: 1.1; }
.story-copy { font-size: 12px; line-height: 1.9; margin-top: 19px; }
.story-features { margin-top: 34px; display: grid; gap: 9px; max-width: 320px; }
.story-features > span { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--rule); background: var(--sheet); border-radius: 9px; font-size: 11px; box-shadow: var(--shadow); }
.story-features .icon { width: 15px; height: 15px; color: var(--muted); }
.story-features .icon:last-child { margin-left: auto; color: var(--green); width: 13px; height: 13px; }
.signin-story small { display: flex; align-items: center; gap: 7px; font-size: 9px; }
.signin-story small .icon { width: 12px; height: 12px; }
.signin-theme { position: absolute; top: 35px; right: 40px; }
.signin-form { padding: 85px 44px 48px; }
.signin-card { max-width: 348px; }
.signin-card h1 { font-size: 25px; font-weight: 650; letter-spacing: -.9px; }
.signin-card .eyebrow { font-size: 9px; margin-bottom: 12px; }
.signin-card .subheading { font-size: 11px; }
.signin-card .btn { min-height: 42px; }
.stack { gap: 16px; }
.stack label { font-size: 11px; font-weight: 550; color: var(--ink); gap: 7px; }
input { background: var(--inset); border-color: transparent; padding: 12px; border-radius: 8px; font-size: 12px; }
input:hover { border-color: var(--control-border); }
input:focus-visible { background: var(--sheet); }
.login-primary { margin-top: 24px; }
.login-help { padding: 17px 0; margin-top: 24px; }
.login-help summary { font-size: 11px; }
.activation-link { font-size: 11px; }
.field-hint, .dialog-note { font-size: 10px; }
.security-card { border-radius: 12px; box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px; }
.security-card > p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.security-heading .auth-symbol { background: var(--inset); color: var(--muted); border: 1px solid var(--rule); width: 40px; height: 40px; border-radius: 10px; }
.security-heading h2 { font-size: 15px; }
.security-heading p { font-size: 11px; }
.session-table th, .session-table td { font-size: 11px; }
@media (min-width: 901px) {
  .sidebar-compact .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar-compact .sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar-compact .brand { padding: 0; justify-content: center; }
  .sidebar-compact .brand-name, .sidebar-compact .nav-label, .sidebar-compact .nav a > span, .sidebar-compact .account-mini > div, .sidebar-compact .logout > span { display: none; }
  .sidebar-compact .nav a, .sidebar-compact .logout, .sidebar-compact .account-mini { justify-content: center; }
  .sidebar-compact .account-mini { padding-left: 0; padding-right: 0; }
}
@media (max-width: 1150px) and (min-width: 901px) {
  .app-shell { grid-template-columns: 196px minmax(0, 1fr); }
  .content { padding: 28px 26px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .movement-search { flex: 1; }
  .balance-layout { gap: 24px; padding: 24px; }
  .period-summary { padding-left: 24px; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { padding: 16px 24px; gap: 12px; height: auto; }
  .sidebar .brand { padding: 0; }
  .nav a { padding: 9px 10px; }
  .sidebar-toggle { display: none; }
  .topbar { min-height: 58px; padding: 10px 24px; }
  .content { max-width: none; padding: 28px 26px; }
  .signin-story { padding: 36px 9%; }
  .signin-form { padding-left: 30px; padding-right: 30px; }
  .story-features { display: none; }
  .balance-value { font-size: 40px; }
}
@media (max-width: 600px) {
  .sidebar { padding: 14px 16px; }
  .sidebar .brand-name { display: none; }
  .brand-symbol { width: 30px; height: 30px; }
  .nav { gap: 5px; }
  .nav a { padding: 8px 5px; border-radius: 8px; flex-direction: column; gap: 4px; font-size: 9px; }
  .nav a > span { display: block; }
  .nav .nav-desktop-prefix { display: none; }
  .nav .icon { width: 18px; height: 18px; }
  .topbar { padding: 9px 17px; gap: 8px; }
  .breadcrumb-root, .breadcrumbs > span[aria-hidden] { display: none; }
  .top-account { max-width: 75%; gap: 7px; }
  .account-chip { font-size: 9px; max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .content { padding: 23px 16px 20px; }
  .page-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
  h1 { font-size: 24px; letter-spacing: -.9px; }
  .page-head > .btn { width: auto; margin: 0; padding: 9px 12px; font-size: 10px; }
  .subheading { font-size: 11px; }
  .reference-notice { font-size: 10px; align-items: flex-start; padding: 10px 12px; }
  .reference-notice > .icon { margin-top: 2px; }
  .currency-tabs { padding: 15px 17px 0; gap: 5px; }
  .currency-tabs a { font-size: 10px; padding: 6px 9px; }
  .balance-layout { grid-template-columns: 1fr; gap: 20px; padding: 22px 20px; }
  .balance-value { font-size: clamp(29px, 9vw, 40px); letter-spacing: -1.7px; }
  .balance-code { font-size: 13px; }
  .period-summary { padding: 18px 0 0; gap: 9px; }
  .favor { margin-top: 12px; }
  .freshness { padding: 10px 15px; font-size: 9px; }
  .freshness > span { gap: 6px; }
  .movements { margin-top: 24px; }
  .section-head { gap: 10px; align-items: center; }
  .section-head h2 { font-size: 16px; }
  .section-caption { font-size: 10px; }
  .period-picker select { max-width: 151px; font-size: 10px; padding: 9px 26px 9px 10px; }
  .movement-tools { gap: 10px; padding: 10px; }
  .filter-chips { width: 100%; justify-content: space-between; gap: 0; }
  .filter-chips button { font-size: 9px; padding: 6px 7px; gap: 4px; }
  .filter-chips button > span { font-size: 8px; }
  .filter-chips .icon, .filter-chips .status-dot { display: none; }
  .movement-search { width: 100%; }
  .movement-search input { font-size: 16px; padding: 7px 0; }
  .movement-search input::placeholder { font-size: 11px; }
  .movement-table th:nth-child(2) { width: 62%; }
  .movement-table th:nth-child(4) { width: 38%; }
  .movement-table th, .movement-table td { padding: 13px 12px; }
  .movement-open { font-size: 11px; gap: 8px; }
  .movement-symbol { width: 27px; height: 27px; border-radius: 8px; }
  .movement-ref, .movement-receipt { font-size: 9px; }
  .numeric { font-size: 10px; }
  .table-foot { padding: 12px; font-size: 9px; }
  .movement-table .movement-detail-row > td { padding: 0; }
  .movement-detail { padding: 14px 10px; }
  .movement-detail-layout { grid-template-columns: 1fr; gap: 14px; }
  .movement-detail-summary { padding: 15px; }
  .movement-detail .receipt-panel { padding: 12px; }
  .movement-detail .detail-amount { font-size: 25px; }
  .office-section .section-head { align-items: flex-start; flex-wrap: wrap; }
  .office-section .btn { font-size: 10px; }
  .office-details summary { font-size: 11px; }
  .signin { display: block; }
  .signin-story { padding: 26px; border: 0; background: var(--sheet); gap: 30px; }
  .signin-story .brand-sub { display: block; }
  .story-title { font-size: 38px; letter-spacing: -2px; }
  .story-badge, .story-copy, .story-features, .signin-story small { display: none; }
  .signin-theme { top: 27px; right: 26px; }
  .signin-form { padding: 10px 26px 36px; display: block; }
  .signin-card { width: 100%; max-width: none; }
  .signin-card h1 { font-size: 23px; }
  .signin-card .eyebrow { display: none; }
  .signin-card input { font-size: 16px; }
  .security-card { padding: 20px 16px; }
  .security-heading { align-items: flex-start; }
  .page-foot { font-size: 9px; gap: 10px; }
}
@media (max-width: 370px) {
  .sidebar { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .nav { gap: 2px; }
  .content { padding-left: 12px; padding-right: 12px; }
  .filter-chips button { padding-left: 5px; padding-right: 5px; }
  .movement-symbol { display: none; }
  .balance-value { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  :root[data-theme] { --paper: #fff; --sheet: #fff; --ink: #111; --muted: #444; --rule: #ddd; --green: #222; }
  .movement-tools, .theme-toggle, .sidebar-toggle { display: none !important; }
  .content { padding: 0; }
  .office-scroll { max-height: none; overflow: visible; }
}

/* Páginas separadas: bandera de moneda y estado de acreditación */
.currency-flag { display: inline-grid; place-items: center; width: 20px; height: 14px; flex: none; }
.currency-flag svg { width: 20px; height: 14px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px var(--rule); }
.currency-flag.round, .currency-flag.round svg { width: 16px; height: 16px; border-radius: 50%; }
.badge.ingreso-si { color: #0f7a4a; background: #e7f6ee; }
.badge.ingreso-no { color: #b42318; background: #fdecea; }
.badge.ingreso-pendiente { color: #8a5a00; background: #fff4dc; }
[data-theme="dark"] .badge.ingreso-si { color: #6fd6a4; background: #10291e; }
[data-theme="dark"] .badge.ingreso-no { color: #ff9b91; background: #331513; }
[data-theme="dark"] .badge.ingreso-pendiente { color: #f2c46b; background: #2e2410; }
.badge.ingreso-si .status-dot, .badge.ingreso-no .status-dot, .badge.ingreso-pendiente .status-dot { background: currentColor; }


/* Movimientos: barra, resumen, filas por día */
.movements-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-right: 20px; }
.movements-toolbar .currency-tabs { padding-bottom: 18px; }
.movements-toolbar .period-picker { margin-top: 18px; margin-bottom: 18px; }
.movements-toolbar:not(:has(.currency-tabs)) { background: none; border: 0; box-shadow: none; padding: 0; justify-content: flex-end; }
.movements-toolbar:not(:has(.currency-tabs)) .period-picker { margin: 0; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.stat { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.stat span { font-size: 11px; color: var(--muted); }
.stat b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat.total { border-color: var(--blue); }
.stat small { font-size: 10px; color: var(--faint); font-weight: 550; }
.day-row th { text-align: left; background: var(--inset); font-size: 11px; font-weight: 650; color: var(--ink); padding: 9px 18px; display: table-cell; }
.day-row th > span { display: inline-block; }
.day-row .day-balance { float: right; color: var(--muted); font-weight: 500; }
.day-row .day-balance b { color: var(--ink); font-weight: 650; margin-left: 4px; font-variant-numeric: tabular-nums; }
.movement-table td.received { color: var(--muted); }
.movement-table td.credited { font-weight: 650; }
.movement-table td.credited-pending { color: var(--faint); font-weight: 500; font-size: 11px; }
.badge.ingreso-enviado { color: #3b4bd8; background: #ecefff; }
[data-theme="dark"] .badge.ingreso-enviado { color: #a9b3ff; background: #1c2146; }
.badge.ingreso-enviado .status-dot { background: currentColor; }
.chart-section { margin-top: 28px; }
.projection-form { padding: 22px 24px; margin-top: 8px; }
.projection-form .form-grid { margin: 0 0 18px; }
.projection-form .field input { width: 100%; }
.projection-public { width: min(760px, 100%); max-width: none; }
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movement-table td.received, .movement-table th.received { display: none; }
}


.movement-table thead th:first-child { width: 12%; }
.movement-table thead th:nth-child(2) { width: 27%; }
.movement-table thead th:nth-child(3) { width: 16%; }
.movement-table thead th:nth-child(4), .movement-table thead th:nth-child(5), .movement-table thead th:nth-child(6) { width: 15%; }
.movement-table tbody .day-row th { width: auto; }
@media (max-width: 720px) {
  .movement-table thead th:nth-child(2) { width: 58%; }
  .movement-table thead th:nth-child(5) { width: 42%; }
}


.badge.badge-cash { color: #0f6b5c; background: #e3f5f1; }
[data-theme="dark"] .badge.badge-cash { color: #7fd8c6; background: #102a25; }
.badge.badge-cash .status-dot { background: currentColor; }


.earlier-block { margin-top: 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 4px 16px 12px; }
.earlier-block > summary { cursor: pointer; padding: 12px 0; font-size: 12px; font-weight: 600; }
.earlier-block > summary span { color: var(--muted); font-weight: 500; margin-left: 6px; }
.earlier-table td small { display: block; color: var(--faint); font-size: 10px; }


.balance-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; font-size: 12px; color: #8a5a00; max-width: 34ch; }
.balance-note .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.period-summary .summary-sub { margin-top: 10px; }
[data-theme="dark"] .balance-note { color: #f2c46b; }
.mobile-state { display: none; }
.movement-balance { margin-top: 16px; padding: 16px; }
.movement-balance > .section-caption { margin-top: 8px; }
.movement-balance .balance-note { max-width: none; }
.medium-summary { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 12px; }
.medium-summary > summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.medium-summary .summary-line, .medium-summary .section-caption { margin-top: 8px; }
@media (max-width: 720px) {
  .mobile-state { display: inline-flex; max-width: 100%; margin-top: 5px; }
  .movement-balance > .summary-line { flex-wrap: wrap; gap: 6px; }
}
.balance-asof { margin-top: 10px; font-size: 12px; color: var(--muted); max-width: 46ch; line-height: 1.5; }
.balance-asof b { color: inherit; font-weight: 600; }
