@charset "UTF-8";
:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; --bg:#08070c; --surface:#17131f; --surface-hover:#211b2c; --line:#302839; --muted:#a6a0b5; --purple:#6b16f5; --light:#b493ff; --green:#64ddb0; --red:#ff9ca8; --amber:#f0ca7a; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:#faf8ff; min-width:280px; }
button, input, select { font:inherit; }
button, a, input, select { -webkit-tap-highlight-color:transparent; }
button, a { touch-action:manipulation; }
button { color:inherit; cursor:pointer; }
button:disabled { cursor:default; opacity:.55; }
a { color:inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline:3px solid #ba96ff; outline-offset:4px; }
.app-shell { max-width:560px; margin:0 auto; min-height:100vh; min-height:100svh; padding:max(22px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
h1,h2,h3,p { margin:0; }
svg { display:block; width:24px; height:24px; flex:none; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:24px; min-height:42px; }
.greeting { font-size:clamp(25px,6.7vw,32px); line-height:1.2; font-weight:750; letter-spacing:-.7px; overflow-wrap:anywhere; }
.eyebrow { color:var(--muted); font-size:13px; line-height:19px; margin-bottom:5px; }
.wave { display:inline-block; margin-left:6px; font-size:26px; }
.icon-button { border:1px solid var(--line); background:var(--surface); width:42px; height:42px; border-radius:14px; display:grid; place-items:center; flex:none; }
.icon-button svg { width:21px; height:21px; }
.balance-card { background:var(--purple); border-radius:26px; padding:24px; min-height:160px; box-shadow:0 13px 35px -27px #9656ff; }
.balance-label { font-size:16px; line-height:23px; color:#eee5ff; }
.balance-line { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:13px; }
.balance-value { font-size:clamp(30px,8vw,43px); font-weight:780; line-height:1.1; letter-spacing:-1.1px; overflow-wrap:anywhere; }
.balance-value.unavailable { font-size:25px; letter-spacing:-.4px; }
.balance-eye { border:0; background:transparent; color:#e5d5ff; padding:8px; margin-right:-8px; width:42px; height:42px; display:grid; place-items:center; flex:none; }
.balance-details { display:flex; flex-wrap:wrap; gap:7px 18px; margin-top:18px; color:#eadcff; font-size:13px; line-height:18px; }
.balance-details strong { font-weight:600; color:#fff; }
.quick-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:18px; }
.quick-action { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; min-height:112px; border:1px solid transparent; background:var(--surface); border-radius:21px; font-size:18px; font-weight:650; }
.quick-action:active,.menu-row:active { background:var(--surface-hover); }
.quick-action .action-icon { width:34px; height:34px; color:#c6a7ff; }
.quick-action .money-icon { color:var(--green); }
.menu-list { margin-top:22px; border-radius:21px; overflow:hidden; border:1px solid #201a29; background:var(--surface); }
.menu-row { width:100%; display:flex; align-items:center; gap:16px; text-align:left; padding:19px; border:0; background:transparent; min-height:82px; }
.menu-row+.menu-row { border-top:1px solid var(--line); }
.menu-row>svg { width:27px; height:27px; color:#cdbce8; }
.menu-copy { display:grid; gap:5px; }
.menu-title { font-size:18px; font-weight:550; }
.menu-subtitle { color:var(--muted); font-size:14px; line-height:20px; }
.connection { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:22px; color:var(--muted); font-size:13px; line-height:20px; }
.route-chip { border:1px solid var(--line); color:#d9c9f7; border-radius:30px; padding:5px 11px; }
.load-more { margin-top:17px; }
.heading-row { display:flex; align-items:center; gap:13px; margin-bottom:25px; }
.heading-row h1 { font-size:26px; font-weight:730; letter-spacing:-.55px; }
.heading-row .icon-button { width:40px; height:40px; border-radius:13px; }
.intro-text { color:var(--muted); font-size:15px; line-height:23px; margin-top:-13px; margin-bottom:22px; }
.primary-button,.secondary-button,.danger-button { width:100%; min-height:52px; display:flex; align-items:center; justify-content:center; gap:10px; border-radius:15px; border:1px solid transparent; padding:13px 18px; font-size:16px; font-weight:650; line-height:23px; text-decoration:none; }
.primary-button { background:var(--purple); color:#fff; }
.primary-button:active { background:#5a0fd3; }
.secondary-button { background:var(--surface); border-color:var(--line); }
.danger-button { background:transparent; color:var(--red); border-color:#59313d; }
.button-stack { display:grid; gap:11px; margin-top:24px; }
.text-button { background:transparent; border:0; color:var(--light); padding:8px 0; font-size:15px; }
.notice { border:1px solid var(--line); border-radius:15px; padding:15px; background:#15111e; color:#c5bed3; font-size:14px; line-height:21px; margin-top:18px; overflow-wrap:anywhere; }
.notice.error { border-color:#603440; background:#26131d; color:#ffb7c0; }
.notice.warning { border-color:#54452d; background:#221c12; color:#e8cf9f; }
.notice.success { border-color:#2e5447; background:#11251e; color:#96e7c4; }
.form-field { margin-top:22px; }
.form-field label { display:block; font-size:14px; font-weight:600; margin-bottom:10px; color:#e1dbea; }
.form-field input,.form-field select { border:1px solid #42364f; border-radius:14px; background:var(--surface); color:#fff; width:100%; min-height:56px; padding:14px 15px; font-size:20px; line-height:26px; }
.form-field input::placeholder { color:#81758f; opacity:1; }
.form-field input:focus,.form-field select:focus { border-color:var(--light); }
.amount-input { display:flex; align-items:center; border:1px solid #42364f; border-radius:16px; background:var(--surface); padding-left:17px; }
.amount-input:focus-within { border-color:var(--light); }
.amount-input>span { font-size:24px; color:#b6a8c9; }
.amount-input input { border:0; background:transparent; font-size:34px; font-weight:650; letter-spacing:-.7px; min-height:76px; padding-left:11px; }
.amount-input input:focus-visible { outline-offset:-5px; }
.field-error { color:var(--red); font-size:14px; line-height:20px; min-height:20px; margin-top:7px; }
.field-hint { color:var(--muted); font-size:14px; line-height:21px; margin-top:9px; }
.select-wrap { position:relative; }
.select-wrap select { appearance:none; -webkit-appearance:none; padding-right:45px; font-size:17px; }
.select-wrap::after { content:""; position:absolute; right:20px; top:23px; width:8px; height:8px; border-right:2px solid #b9a6d2; border-bottom:2px solid #b9a6d2; transform:rotate(45deg); pointer-events:none; }
.value-summary { background:var(--surface); border:1px solid var(--line); border-radius:19px; padding:21px; margin-bottom:23px; }
.value-summary p { color:var(--muted); font-size:14px; }
.value-summary strong { display:block; font-size:32px; line-height:1.2; margin-top:8px; letter-spacing:-.6px; }
.review-card { border:1px solid var(--line); border-radius:20px; background:var(--surface); padding:5px 20px; }
.review-row { display:grid; gap:8px; padding:17px 0; }
.review-row+.review-row { border-top:1px solid var(--line); }
.review-row dt { color:var(--muted); font-size:14px; }
.review-row dd { margin:0; color:#f6f1ff; font-size:17px; font-weight:550; line-height:25px; overflow-wrap:anywhere; }
.review-row dd.amount { font-size:30px; line-height:36px; font-weight:750; letter-spacing:-.5px; }
.key-text { user-select:text; font-variant-numeric:tabular-nums; }
.status-heading { text-align:center; padding:12px 8px 25px; }
.status-symbol { display:grid; place-items:center; width:72px; height:72px; margin:0 auto 18px; border-radius:24px; background:#24183a; color:#c4a0ff; }
.status-symbol svg { width:33px; height:33px; }
.status-symbol.success { background:#143628; color:var(--green); }
.status-symbol.failed { background:#351b25; color:var(--red); }
.status-heading h2 { font-size:25px; letter-spacing:-.5px; }
.status-heading p { font-size:15px; color:var(--muted); line-height:23px; margin-top:11px; }
.filters { display:flex; gap:7px; flex-wrap:wrap; margin:17px 0; }
.filter-button { border:1px solid var(--line); border-radius:12px; background:var(--surface); color:#c9bfd9; font-size:14px; min-height:40px; padding:9px 15px; }
.filter-button[aria-pressed="true"] { border-color:#7e45df; color:#f3ebff; background:#38205e; }
.period-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; }
.period-row label { color:var(--muted); font-size:14px; }
.period-row select { color:#e2d8ef; background:var(--surface); border:1px solid var(--line); border-radius:11px; min-height:40px; padding:8px 38px 8px 12px; font-size:14px; appearance:none; }
.period-row .select-wrap::after { top:14px; right:15px; }
.ledger { margin-top:17px; border:1px solid var(--line); background:var(--surface); border-radius:19px; overflow:hidden; }
.ledger-row { display:flex; align-items:flex-start; gap:12px; width:100%; padding:17px 15px; text-align:left; color:inherit; background:transparent; border:0; }
.ledger-row+.ledger-row { border-top:1px solid var(--line); }
button.ledger-row:active { background:var(--surface-hover); }
.ledger-icon { display:grid; place-items:center; flex:none; width:35px; height:35px; border-radius:11px; background:#243129; color:#8ce4bc; }
.ledger-icon.out { background:#2f2043; color:#c4a6f0; }
.ledger-icon svg { width:18px; height:18px; }
.ledger-main { min-width:0; flex:1; display:grid; gap:5px; }
.ledger-top { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; font-size:15px; }
.ledger-top strong { font-weight:650; }
.ledger-amount { white-space:nowrap; font-variant-numeric:tabular-nums; }
.ledger-meta { color:var(--muted); font-size:13px; line-height:19px; overflow-wrap:anywhere; }
.ledger-status { color:#b9a4d7; font-size:13px; line-height:19px; }
.ledger-status.paid { color:var(--green); }
.ledger-status.failed { color:var(--red); }
.empty { text-align:center; color:var(--muted); border:1px dashed var(--line); border-radius:19px; padding:35px 20px; margin-top:23px; }
.empty svg { width:34px; height:34px; color:#8e74b2; margin:0 auto 14px; }
.empty h2 { color:#e9e0f5; font-size:18px; font-weight:600; margin-bottom:8px; }
.empty p { font-size:14px; line-height:21px; }
.scope-note { color:#8f849e; font-size:13px; line-height:19px; margin-top:15px; }
.summary-grid { display:grid; gap:13px; margin-top:20px; }
.summary-tile { border-radius:19px; background:var(--surface); border:1px solid var(--line); padding:19px; }
.summary-tile.highlight { background:#281743; border-color:#583487; }
.summary-label { color:#c0b4cf; font-size:14px; line-height:21px; }
.summary-value { display:block; font-size:29px; font-weight:720; letter-spacing:-.6px; margin-top:8px; }
.summary-detail { color:var(--muted); font-size:13px; line-height:20px; margin-top:6px; }
.gate { min-height:75vh; min-height:75svh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:17px; max-width:370px; margin:0 auto; }
.gate h1 { font-size:29px; letter-spacing:-.6px; }
.gate p { color:var(--muted); font-size:16px; line-height:25px; }
.gate .primary-button { margin-top:9px; max-width:290px; }
.app-symbol { display:grid; place-items:center; background:var(--purple); color:#fff; width:73px; height:73px; border-radius:24px; font-size:42px; margin-bottom:8px; }
.spinner { display:inline-block; width:22px; height:22px; border-radius:50%; border:2px solid #9b75d8; border-top-color:transparent; animation:spin .8s linear infinite; }
.loading { display:flex; align-items:center; justify-content:center; gap:12px; padding:36px 10px; color:var(--muted); font-size:15px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.noscript { padding:25px; color:#ffb7c0; }
[hidden] { display:none !important; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-width:350px) { .app-shell { padding-left:15px; padding-right:15px; } .balance-card { padding:21px; } .balance-value { font-size:34px; } .quick-action { min-height:102px; } .ledger-row { padding:15px 12px; gap:9px; } .ledger-top { font-size:14px; gap:6px; } }
@media (min-width:600px) { .app-shell { padding-top:32px; padding-bottom:36px; } }
/* The overview fits short phones; editing screens keep their stable flow. */
@media (max-height:640px) {
  .finance-home .app-shell { padding-top:max(16px, env(safe-area-inset-top)); padding-bottom:max(16px, env(safe-area-inset-bottom)); }
  .finance-home .topbar { min-height:38px; margin-bottom:14px; }
  .finance-home .greeting { font-size:25px; line-height:1.16; }
  .finance-home .eyebrow { margin-bottom:3px; }
  .finance-home .balance-card { min-height:128px; padding:18px; border-radius:23px; }
  .finance-home .balance-line { margin-top:8px; }
  .finance-home .balance-value { font-size:34px; }
  .finance-home .balance-value.unavailable { font-size:24px; }
  .finance-home .balance-details { margin-top:10px; gap:5px 12px; }
  .finance-home .quick-actions { margin-top:14px; gap:11px; }
  .finance-home .quick-action { min-height:84px; gap:9px; border-radius:18px; font-size:17px; }
  .finance-home .quick-action .action-icon { width:28px; height:28px; }
  .finance-home .menu-list { margin-top:16px; border-radius:18px; }
  .finance-home .menu-row { min-height:66px; padding:13px 16px; gap:13px; }
  .finance-home .menu-title { font-size:17px; }
  .finance-home .menu-copy { gap:3px; }
  .finance-home .menu-subtitle { line-height:19px; }
  .finance-home .connection { margin-top:12px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; scroll-behavior:auto !important; } }

/* Standalone access keeps a steady layout while the mobile keyboard opens. */
.topbar-tools { display:flex; align-items:center; gap:8px; flex:none; }
.topbar>div:first-child { min-width:0; }
.login-card { max-width:400px; margin:clamp(8px,6svh,54px) auto 0; }
.login-heading .app-symbol { width:64px; height:64px; border-radius:21px; margin-bottom:25px; box-shadow:0 14px 40px -20px #9255ff; }
.login-heading .app-symbol svg { width:29px; height:29px; }
.login-heading h1 { font-size:32px; line-height:1.15; letter-spacing:-.8px; }
.login-heading p { color:var(--muted); margin-top:12px; font-size:16px; line-height:24px; max-width:340px; }
.login-form { margin-top:26px; }
.login-form .form-field { margin-top:18px; }
.login-form .form-field input { font-size:17px; }
.password-wrap { position:relative; }
.password-wrap input { padding-right:58px; }
.password-toggle { position:absolute; right:4px; top:5px; width:46px; height:46px; border:0; background:transparent; color:var(--muted); display:grid; place-items:center; border-radius:10px; }
.password-toggle svg { width:21px; height:21px; }
.login-error { margin-top:13px; margin-bottom:13px; min-height:20px; }
.login-footnote { margin-top:22px; color:var(--muted); font-size:14px; line-height:21px; text-align:center; }
@media (max-width:350px) {
  .topbar { gap:9px; }
  .topbar-tools { gap:6px; }
  .topbar-tools .icon-button { width:38px; height:42px; border-radius:12px; }
  .greeting { font-size:25px; }
}
@media (max-height:640px) {
  .panel-login .app-shell { padding-top:max(16px,env(safe-area-inset-top)); padding-bottom:max(16px,env(safe-area-inset-bottom)); }
  .login-card { margin-top:4px; }
  .login-heading .app-symbol { width:53px; height:53px; border-radius:18px; margin-bottom:17px; }
  .login-heading h1 { font-size:29px; }
  .login-heading p { margin-top:8px; }
  .login-form { margin-top:19px; }
  .login-form .form-field { margin-top:14px; }
  .login-footnote { margin-top:15px; }
}
