/* Vault on the phone — the lite layer (2026-10-03).
   Lives beside the Mac layout; body.lite-on swaps one for the other.
   Everything is scoped to #lite so nothing here can leak into the desktop. */

body.lite-on .app-container, body.lite-on .mobile-header, body.lite-on .mobile-nav,
body.lite-on .mobile-drawer, body.lite-on .mobile-drawer-backdrop, body.lite-on .mode-bar,
body.lite-on .mc-popup, body.lite-on #vaultAuthGate { display: none !important; }
body.lite-on { overflow: auto !important; height: auto; background: var(--bg-primary); }
body.lite-on #lite { display: block; }
#lite { display: none; font-size: 15px; line-height: 1.4; color: var(--text-primary); min-height: 100vh; }
#lite a { color: inherit; text-decoration: none; }
#lite .num { font-family: var(--font-num); }
#lite svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
#lite button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; -webkit-tap-highlight-color: transparent; }
#lite input { font-size: 16px; }

/* Frame: content scrolls under a fixed tab bar */
#lite .scr { padding: calc(10px + env(safe-area-inset-top, 0px)) 16px calc(110px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; }
#lite .scr.noTabs { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
#lite .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(58px + env(safe-area-inset-bottom, 0px)); background: var(--bg-secondary); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px env(safe-area-inset-bottom, 0px); }
#lite .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--text-muted); position: relative; }
#lite .tab svg.i { width: 23px; height: 23px; }
#lite .tab.on { color: var(--accent-gold); }
#lite .tab .bdg { position: absolute; top: -2px; left: 50%; margin-left: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-red); color: #1a0a0a; font: 700 11px/18px var(--font-num); text-align: center; }

/* Shared pieces */
#lite .top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 8px; gap: 10px; }
#lite .top h2 { font-size: 26px; font-weight: 700; letter-spacing: -.4px; }
#lite .ico-btn { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); flex-shrink: 0; }
#lite .ico-btn.gold { color: var(--accent-gold); }
#lite .ico-btn.spin svg { animation: lite-spin 1s linear infinite; }
@keyframes lite-spin { to { transform: rotate(360deg); } }
#lite .seg { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
#lite .seg button { font-size: 14px; font-weight: 500; padding: 7px 16px; border-radius: 999px; color: var(--text-secondary); }
#lite .seg button.on { background: var(--accent-gold-dim); color: var(--accent-gold); font-weight: 700; }
#lite .card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 14px; }
#lite .lbl { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; }
#lite .asof { font-size: 12px; color: var(--text-muted); }
#lite .up { color: var(--accent-green); font-weight: 600; } #lite .down { color: var(--accent-red); font-weight: 600; }
#lite .gold { color: var(--accent-gold); }
#lite .muted { color: var(--text-muted); }
#lite .chev { color: var(--text-muted); width: 18px !important; height: 18px !important; }
#lite .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 700; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); white-space: nowrap; }
#lite .btn.pri { background: var(--accent-gold); border-color: var(--accent-gold); color: #1a1a24; }
#lite .btn.sm { height: 36px; font-size: 14px; padding: 0 14px; }
#lite .btn.wide { width: 100%; }
#lite .btn[disabled] { opacity: .5; }
#lite .sec { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 2px 8px; gap: 10px; }
#lite .sec h3 { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; }
#lite .sec span { font-size: 12px; color: var(--text-muted); text-align: right; }
#lite .empty { font-size: 14px; color: var(--text-muted); padding: 14px; }
#lite .loading { padding: 80px 16px; text-align: center; color: var(--text-muted); font-size: 15px; }

/* Today */
#lite .hero { padding: 2px 2px 0; }
#lite .hero .val { font: 700 42px/1.1 var(--font-num); letter-spacing: -1.4px; margin-top: 4px; }
#lite .hero .chg { font-size: 14px; margin-top: 5px; color: var(--text-muted); }
/* The net-worth chart component draws the hero itself; restyle its head for the phone */
#lite .nwc { margin-top: 10px; display: flex; flex-direction: column; }
#lite .nwc-head-slim { order: 3; margin: 4px 0 0; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
#lite .nwc-note { order: 2; }
#lite .nwc-change { font-size: 13px; }
#lite .nwc-range { font-size: 12px; padding: 6px 12px; }
#lite .nwc-plot { margin: 4px -4px 0; }
#lite .nwc-breakdown { display: none; }
#lite .needs { display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-top: 12px; width: 100%; border: 1px solid rgba(248,113,113,.5); border-radius: 14px; background: linear-gradient(0deg, rgba(248,113,113,.07), rgba(248,113,113,.07)), var(--bg-card); }
#lite .needs .n { width: 34px; height: 34px; border-radius: 17px; background: var(--accent-red); color: #1a0a0a; font: 700 16px/34px var(--font-num); text-align: center; flex-shrink: 0; }
#lite .needs b { display: block; font-size: 15px; }
#lite .needs small { font-size: 13px; color: var(--text-secondary); }
#lite .needs div { flex: 1; min-width: 0; }
#lite .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
#lite .tile { padding: 12px 14px; display: block; width: 100%; }
#lite .tile .v { font: 600 22px/1.15 var(--font-num); letter-spacing: -.5px; margin-top: 6px; }
#lite .tile .s { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
#lite .rowc { padding: 4px 14px; }
#lite .row { display: flex; align-items: center; gap: 10px; min-height: 46px; border-top: 1px solid var(--border); font-size: 15px; width: 100%; }
#lite .row:first-child { border-top: 0; }
#lite .row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lite .row .nm small { display: block; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lite .row .when { width: 52px; font-size: 12px; color: var(--accent-gold); font-weight: 600; flex-shrink: 0; }
#lite .row .amt { font-family: var(--font-num); font-weight: 500; white-space: nowrap; }
#lite .pace { height: 8px; background: var(--bg-secondary); border-radius: 4px; position: relative; margin-top: 10px; }
#lite .pace i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent-gold); }
#lite .pace u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text-primary); border-radius: 1px; }
#lite .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
#lite .alloc { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
#lite .warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-top: 10px; border-radius: 10px; background: rgba(212,168,83,.09); border: 1px solid rgba(212,168,83,.35); font-size: 13px; color: var(--text-primary); line-height: 1.35; width: 100%; }
#lite .warn svg { color: var(--accent-gold); margin-top: 1px; width: 17px !important; height: 17px !important; }

/* Accounts */
#lite .grp { margin-top: 10px; overflow: hidden; }
#lite .grp-h { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
#lite .grp-h .t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
#lite .grp-h .t em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--text-muted); }
#lite .grp-h .tot { font: 600 16px var(--font-num); }
#lite .acct { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 58px; border-top: 1px solid var(--border); width: 100%; }
#lite .grp-h + .acct { border-top: 0; }
#lite .acct .m { flex: 1; min-width: 0; }
#lite .acct .nm { font-size: 15px; font-weight: 600; }
#lite .acct .nm span { font: 500 12px var(--font-num); color: var(--text-muted); margin-left: 6px; }
#lite .acct .sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
#lite .acct .sub.stale { color: var(--accent-gold); }
#lite .acct .bal { font: 600 16px var(--font-num); text-align: right; white-space: nowrap; }
#lite .util { height: 3px; width: 150px; max-width: 100%; background: var(--border); border-radius: 2px; margin-top: 6px; overflow: hidden; }
#lite .util i { display: block; height: 100%; background: var(--accent-green); border-radius: 2px; }

/* Sheets (one account, menu, notifications) */
#lite .dim { position: fixed; inset: 0; background: rgba(4,4,8,.66); z-index: 50; }
#lite .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg-secondary); border-top: 1px solid var(--border-card); border-radius: 22px 22px 0 0; padding: 10px 18px calc(28px + env(safe-area-inset-bottom, 0px)); }
#lite .sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #3a3a4c; margin: 0 auto 14px; }
#lite .sheet h3 { font-size: 20px; font-weight: 700; }
#lite .sheet h3 span { font: 500 13px var(--font-num); color: var(--text-muted); margin-left: 8px; }
#lite .sheet .big { font: 700 36px/1.1 var(--font-num); letter-spacing: -1px; margin-top: 12px; }
#lite .sheet .sec h3 { font-size: 13px; }
#lite .facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
#lite .facts div { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; min-width: 0; }
#lite .facts b { display: block; font: 600 15px var(--font-num); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lite .edit { margin-top: 14px; padding: 12px; background: var(--bg-card); border: 1px solid var(--accent-gold); border-radius: 12px; }
#lite .edit input { display: block; width: 100%; height: 48px; padding: 0 12px; margin-top: 8px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font: 600 20px var(--font-num); }
#lite .edit input:focus { outline: none; border-color: var(--accent-gold); }
#lite .edit .acts { display: flex; gap: 8px; margin-top: 10px; }
#lite .edit .acts .btn { flex: 1; }
#lite .menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 4px; border-top: 1px solid var(--border); font-size: 16px; }
#lite .menu-item:first-of-type { border-top: 0; }
#lite .menu-item svg { color: var(--text-secondary); }
#lite .menu-item small { display: block; font-size: 12px; color: var(--text-muted); }
#lite .menu-item div { flex: 1; }

/* Spending */
#lite .month { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 700; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 0 4px; height: 40px; }
#lite .month button { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
#lite .month button[disabled] { opacity: .3; }
#lite .month b { padding: 0 4px; white-space: nowrap; }
#lite .search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; margin-top: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; color: var(--text-muted); }
#lite .search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text-primary); outline: none; }
#lite .search input::placeholder { color: var(--text-muted); }
#lite .cat { display: grid; grid-template-columns: 30px 1fr auto; column-gap: 10px; align-items: center; padding: 9px 0 10px; border-top: 1px solid var(--border); width: 100%; }
#lite .cat:first-child { border-top: 0; }
#lite .cat .chip { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; grid-row: span 2; }
#lite .cat .chip svg { width: 16px; height: 16px; }
#lite .cat .nm { font-size: 15px; font-weight: 500; text-align: left; }
#lite .cat .nm em { font-style: normal; font-size: 12px; color: var(--text-muted); margin-left: 6px; }
#lite .cat .amt { font: 600 15px var(--font-num); }
#lite .cat .bar { grid-column: 2 / 4; height: 4px; background: var(--bg-secondary); border-radius: 2px; margin-top: 6px; }
#lite .cat .bar i { display: block; height: 100%; border-radius: 2px; }
#lite .back { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-gold); font-size: 15px; font-weight: 600; min-height: 44px; }

/* To do */
#lite .task { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 11px 14px; margin-top: 8px; border-left-width: 3px; }
#lite .task .bd { font: 700 10px var(--font-num); letter-spacing: .6px; grid-column: 1 / 3; }
#lite .task .tt { font-size: 16px; font-weight: 700; }
#lite .task .dt { font-size: 13px; color: var(--text-secondary); grid-column: 1 / 3; line-height: 1.35; }
#lite .task .due { font: 500 13px var(--font-num); color: var(--text-muted); text-align: right; white-space: nowrap; }
#lite .task .act { grid-column: 1 / 3; display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
#lite .task.now { border-left-color: var(--accent-red); } #lite .task.now .bd { color: var(--accent-red); }
#lite .task.soon { border-left-color: var(--accent-gold); } #lite .task.soon .bd { color: var(--accent-gold); }
#lite .task.later { border-left-color: var(--border); } #lite .task.later .bd { color: var(--text-muted); }
#lite .task.done { border-left-color: var(--accent-green); opacity: .75; } #lite .task.done .bd { color: var(--accent-green); }
#lite .task.slim { padding: 8px 14px; }
#lite .task.slim .tt { font-size: 15px; font-weight: 600; }
#lite .log { font-size: 13px; color: var(--text-secondary); margin-top: 10px; line-height: 1.6; }
#lite .log:empty { display: none; }

/* File flow */
#lite .ftop { display: flex; align-items: center; gap: 12px; min-height: 44px; }
#lite .ftop b { flex: 1; font-size: 17px; }
#lite .ftop span { font: 600 14px var(--font-num); color: var(--text-secondary); }
#lite .prog { height: 4px; background: var(--bg-card); border-radius: 2px; margin: 4px 0 14px; }
#lite .prog i { display: block; height: 100%; background: var(--accent-gold); border-radius: 2px; transition: width .2s; }
#lite .txn { padding: 16px; }
#lite .txn .mer { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
#lite .txn .amt { font: 700 30px/1.1 var(--font-num); letter-spacing: -.8px; margin-top: 6px; }
#lite .txn .raw { font: 500 12px var(--font-num); color: var(--text-muted); margin-top: 10px; letter-spacing: .2px; overflow-wrap: anywhere; }
#lite .txn .meta { font-size: 14px; color: var(--text-secondary); margin-top: 3px; }
#lite .sugg { display: grid; grid-template-columns: 1fr; gap: 8px; }
#lite .pick { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; width: 100%; }
#lite .pick .chip { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#lite .pick .chip svg { width: 18px; height: 18px; }
#lite .pick b { font-size: 16px; display: block; }
#lite .pick small { font-size: 12px; color: var(--text-muted); }
#lite .pick .g { flex: 1; min-width: 0; }
#lite .pick.best { border-color: var(--accent-gold); background: linear-gradient(0deg, rgba(212,168,83,.08), rgba(212,168,83,.08)), var(--bg-card); }
#lite .tog { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 10px; font-size: 14px; width: 100%; }
#lite .tog div { flex: 1; text-align: left; }
#lite .tog b { font-size: 15px; }
#lite .sw { width: 46px; height: 28px; border-radius: 14px; background: #3a3a4c; position: relative; flex-shrink: 0; transition: background .15s; }
#lite .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #f0f0f5; transition: left .15s; }
#lite .sw.on { background: var(--accent-gold); } #lite .sw.on::after { left: 21px; }
#lite .fbot { position: fixed; left: 0; right: 0; bottom: 0; padding: 24px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; z-index: 40; background: linear-gradient(180deg, rgba(10,10,15,0) 0%, var(--bg-primary) 30%); }
#lite .fbot .btn { flex: 1; }
#lite .catlist { margin-top: 8px; max-height: 50vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 4px; }
#lite .catlist .ch { display: flex; align-items: center; gap: 8px; padding: 12px 8px 4px; font-size: 13px; font-weight: 700; }
#lite .catlist .ci { display: block; width: 100%; padding: 10px 8px 10px 36px; font-size: 15px; border-radius: 8px; }
#lite .catlist .ci:active { background: var(--bg-card-hover); }
#lite .done-card { padding: 28px 16px; text-align: center; }
#lite .done-card b { display: block; font-size: 20px; margin-bottom: 6px; }

/* Lock */
#lite .lock { padding: 120px 26px 0; text-align: center; max-width: 420px; margin: 0 auto; }
#lite .lock .logo img { width: 96px; height: 96px; display: block; border-radius: 24px; }
#lite .lock .logo { width: 96px; height: 96px; padding: 0; margin: 0 auto 18px; border-radius: 24px; background: none; border: none; display: block; color: var(--accent-gold); }
#lite .lock .logo svg { width: 34px; height: 34px; }
#lite .lock h2 { font-size: 26px; font-weight: 700; }
#lite .lock p { font-size: 15px; color: var(--text-secondary); margin: 6px 0 30px; }
#lite .lock .btn { width: 100%; height: 54px; font-size: 17px; }
#lite .lock .alt { display: block; width: 100%; text-align: center; margin-top: 20px; font-size: 15px; color: var(--accent-gold); min-height: 44px; }
#lite .lock .fine { font-size: 13px; color: var(--text-muted); margin-top: 40px; line-height: 1.5; }
#lite .lock input { display: block; width: 100%; height: 52px; padding: 0 14px; margin-bottom: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 17px; }
#lite .lock input:focus { outline: none; border-color: var(--accent-gold); }
#lite .lock .err { color: var(--accent-red); font-size: 14px; min-height: 20px; margin-top: 10px; }

#lite .toast { position: fixed; left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 12px; padding: 12px 14px; font-size: 14px; box-shadow: var(--shadow-pop); }
