/* Graphite & Steel — the mobile companion design system. No green.
   Light + dark aware, system-font stack, tabular figures for money. */
:root {
    --fs: 1.15;   /* user font-size scale (applied as zoom on the scroll body); set from the A-/A+ control */
    --paper:#f4f5f6; --surface:#ffffff; --surface-2:#eceef0;
    --ink:#1c2024; --ink-2:#3d444b; --ink-3:#5f676e; --line:#e2e4e7;
    --accent:#3f6ea5; --accent-ink:#ffffff; --accent-soft:#e6ecf3;
    --debit:#c0392b; --debit-soft:#f3e2e0; --credit:#3f6ea5;
    --warn:#b5871f; --warn-soft:#f4ecd6;
    --shadow:0 8px 24px -14px rgba(20,24,28,.35);
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper:#111315; --surface:#1b1e21; --surface-2:#24282c;
        --ink:#eceef0; --ink-2:#aeb5bc; --ink-3:#8b939b; --line:#2e3237;
        --accent:#79a6d8; --accent-ink:#0a0f14; --accent-soft:#1a2530;
        --debit:#e07567; --debit-soft:#2a1c1a; --credit:#79a6d8;
        --warn:#d8ab4a; --warn-soft:#29230f;
        --shadow:0 8px 24px -14px rgba(0,0,0,.6);
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--paper); color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased; line-height: 1.4;
}
h1, h2, h3 { letter-spacing: -.02em; }
.muted { color: var(--ink-3); }
.error { color: var(--debit); font-size: 13px; }

/* app shell + tab bar */
/* Fixed viewport height + a scroll-constrained body so the tab bar stays PINNED at the bottom
   (min-height:0 lets the flex child scroll internally instead of growing to fit all content). */
.app-shell { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.app-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; zoom: var(--fs, 1); }

/* Pinned app header: brand + tenant left, status dot + font controls right. First flex child of
   the 100dvh shell, so it pins without fixed positioning; safe-area padded for the notch. */
.apphdr { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(6px + env(safe-area-inset-top)) 12px 6px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; background: none; border: 0; padding: 4px 2px; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.brand img { width: 26px; height: 26px; flex: 0 0 26px; }
/* Full app name with the tenant as a subtitle — stacked, so a narrow phone fits both. */
.bstack { display: flex; flex-direction: column; min-width: 0; }
.bnm { font-weight: 750; font-size: 13.5px; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bten { font-size: 11px; font-weight: 600; color: var(--ink-3); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hright { display: flex; align-items: center; gap: 12px; }
/* Host reachability ("is my home PC up?"). Design system is no-green: accent = on, debit = off. */
.statusdot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.statusdot.on { background: #2ea043; }        /* green: connected (reached the PC) */
.statusdot.warn { background: var(--warn); }   /* yellow: checking / one missed probe (often a blip) */
.statusdot.off { background: var(--debit); }   /* red: can't reach the PC (2+ misses) */
/* The dot is tappable (sync-queue sheet) and carries the queued-count badge. */
.dotbtn { position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: none; border: 0; padding: 0; cursor: pointer; }
.qbadge { position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
.qbadge.bad { background: var(--debit); color: #fff; }

/* Sync-queue sheet rows */
.qrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.qrow .qmeta { flex: 1; min-width: 0; }
.qrow .qnm { display: block; font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .qsub { display: block; font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow.bad .qsub { color: var(--debit); }
.qact { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--accent); font-size: 12px; font-weight: 700; padding: 5px 10px; cursor: pointer; }
.qact.bad { color: var(--debit); }

/* Font-size control (A- / A+), in the header. Scales the whole scroll body via --fs. */
.fontctl { display: flex; gap: 4px; }
.fontctl button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 700; cursor: pointer; opacity: .9; }
.fontctl button:active { transform: scale(.94); }
.fontctl .fa-lg { font-size: 15px; }
.fontctl .fa-sm { font-size: 11px; }

/* About sheet (tap the brand): version / tenant / host / connection. */
.aboutveil { position: fixed; inset: 0; background: rgba(10, 14, 18, .45); z-index: 90; }
.aboutsheet { position: fixed; left: 14px; right: 14px; top: calc(56px + env(safe-area-inset-top)); z-index: 91; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); max-height: calc(100dvh - 72px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.abrand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 750; margin-bottom: 12px; }
/* Grouped About-sheet section header (label left, optional action right). */
.aboutsheet .asec { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.aboutsheet .asec:first-of-type { margin-top: 4px; }
.aboutsheet .asec .qact { text-transform: none; letter-spacing: 0; }

/* Auth P3-D remote-access lock — an OPAQUE full-screen block that hides all cached data until unlocked. */
.lockveil { position: fixed; inset: 0; z-index: 200; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 24px; padding-top: calc(24px + env(safe-area-inset-top)); }
.locksheet { width: 100%; max-width: 340px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px; box-shadow: var(--shadow); }
.lockicon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.lockttl { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.lockmsg { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.locknote { font-size: 12.5px; color: var(--warn); margin-top: 10px; font-weight: 600; }
.lockbtns { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.lockbtns .cta { margin: 12px 0 0; width: 100%; }
.locksheet .pinbox { width: 100%; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 18px; letter-spacing: .3em; text-align: center; box-sizing: border-box; }
.locksheet > .cta.ghost:last-child { margin-top: 8px; }
.abrand img { width: 28px; height: 28px; }
.arow { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.arow .ak { color: var(--ink-3); flex: 0 0 auto; }
.arow .av { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.arow .av.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 500; }
/* CPU-temp health colour (HOST-STATUS): normal / warning ≥80°C / danger ≥90°C. */
.arow .av.hot-ok { color: var(--credit); font-weight: 700; }
.arow .av.hot-warn { color: #d9822b; font-weight: 800; }
.arow .av.hot-danger { color: var(--debit); font-weight: 800; }
.aclose { width: 100%; margin: 14px 0 0; }
.diagbtns { display: flex; gap: 10px; margin-top: 12px; }
.diagbtns .qact { flex: 1; }
.tabbar { display: flex; justify-content: space-around; align-items: center; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-3); font-size: 10px; font-weight: 600; text-decoration: none; }
.tab .ti { font-size: 18px; }
.tab.active { color: var(--accent); }
/* Evident active-view marker: an accent bar across the top of the current tab (sits on the tabbar's border). */
.tab.active::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 26px; height: 3px; border-radius: 999px; background: var(--accent); }
.tab.disabled { opacity: .4; pointer-events: none; }

/* header */
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.appbar .hello { font-size: 21px; font-weight: 700; margin: 0; }

.scroll { padding: 0 20px 24px; }
.sectlabel { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 16px 2px 10px; }

/* pinned tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; cursor: pointer; min-height: 84px; display: flex; flex-direction: column; justify-content: center; gap: 4px; transition: transform .12s ease; }
.tile:active { transform: scale(.97); }
.tile .nm { font-size: 14px; font-weight: 650; }
.tile .sub { font-size: 11.5px; color: var(--ink-3); }
.tile.primary { background: var(--accent); border-color: var(--accent); }
.tile.primary .nm { color: var(--accent-ink); }
.tile.primary .sub { color: var(--accent-ink); opacity: .82; }

/* search */
.tsearch { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; margin: 16px 0 6px; }
.tsearch .mag { color: var(--ink-3); }
.tsearch input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.tsearch .magclear { flex: 0 0 auto; border: 0; background: transparent; color: var(--ink-3); font-size: 15px; line-height: 1; padding: 2px 4px; cursor: pointer; }

/* template list */
.tlrow { display: flex; align-items: center; gap: 11px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tlrow.desktop { opacity: .6; cursor: default; }
.tlrow .tmeta { flex: 1; }
.tlrow .tnm { font-size: 13.5px; font-weight: 600; }
.tlrow .tsub { font-size: 11px; color: var(--ink-3); }
.tlrow .go { color: var(--ink-3); font-size: 18px; }
.desktop-tag { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }

/* entry header */
.entryhead { display: flex; align-items: center; gap: 14px; padding: 16px 20px 0; }
.backbtn { width: 34px; height: 34px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 18px; cursor: pointer; }
.entryhead .et { font-size: 12px; color: var(--ink-3); margin: 0; }
.entryhead .en { font-size: 18px; font-weight: 700; margin: 1px 0 0; }
.chip-tmpl { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }

/* amount hero */
.amountcard { margin: 16px 20px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; text-align: center; }
.amountcard .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.amount-input { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-top: 6px; }
.amount-input .cur { flex: 0 0 auto; color: var(--ink-3); font-size: 26px; font-weight: 600; }
/* Full-width input so a large amount (e.g. 50876.00) isn't clipped by a fixed char width. */
.amount-input input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 42px; font-weight: 750; letter-spacing: -.03em; width: 100%; text-align: center; color: var(--ink); outline: none; font-variant-numeric: tabular-nums; }

/* fields */
.fields { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.field .fic { color: var(--ink-3); width: 18px; text-align: center; }
.field .fmeta { flex: 1; }
.field .fk { font-size: 11px; color: var(--ink-3); }
.field .fv, .field input { font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--ink); font-family: inherit; outline: none; width: 100%; }

/* legs */
.legs { margin: 16px 20px 0; }
.legrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.legrow + .legrow { border-top: 1px dashed var(--line); }
.drcr { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.drcr.dr { background: var(--debit-soft); color: var(--debit); }
.drcr.cr { background: var(--accent-soft); color: var(--credit); }
.legrow .lacct { flex: 1; }
.legrow .lnm { font-size: 13.5px; font-weight: 600; }
.legrow .lty { font-size: 11px; color: var(--ink-3); }
.legrow .lamt { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* account picker */
.picker { flex-direction: column; align-items: stretch; }
.picklist { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.picklist li { padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.picklist li:last-child { border-bottom: 0; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 12px; }

/* balanced bar */
.balance { margin: 12px 20px 0; display: flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 10px 14px; font-size: 12.5px; font-weight: 650; }
.balance .eq { margin-left: auto; font-variant-numeric: tabular-nums; opacity: .85; }

/* buttons */
.cta { display: block; width: calc(100% - 40px); margin: 20px 20px 0; padding: 15px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); border: 0; text-align: center; font-size: 15px; font-weight: 700; cursor: pointer; }
.cta:disabled { opacity: .5; cursor: default; }
.cta.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }

/* unlock */
.unlock { padding: 60px 26px 0; display: flex; flex-direction: column; gap: 12px; }
.unlock h1 { font-size: 26px; margin: 0; }
.unlock input { padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; outline: none; }
.unlock .cta { width: 100%; margin: 6px 0 0; }
/* Auth P1 T8: Microsoft sign-in button + divider on the Sign-in screen. */
.unlock .cta.msbtn { background: #2f2f2f; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; }
.unlock .cta.msbtn::before { content: ""; width: 16px; height: 16px; background:
    linear-gradient(#f25022 0 0) 0 0 / 7px 7px no-repeat,
    linear-gradient(#7fba00 0 0) 9px 0 / 7px 7px no-repeat,
    linear-gradient(#00a4ef 0 0) 0 9px / 7px 7px no-repeat,
    linear-gradient(#ffb900 0 0) 9px 9px / 7px 7px no-repeat; }
.unlock .cta.secondary { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.unlock .orline { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; margin: 14px 0 4px; }
.unlock .orline::before, .unlock .orline::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.unlock .linkbtn { background: none; border: 0; color: var(--accent); font: inherit; font-size: 13px; padding: 10px; cursor: pointer; align-self: center; }

/* saved */
.saved { display: flex; flex-direction: column; align-items: center; padding: 60px 26px 0; text-align: center; }
.savedmark { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 38px; margin-bottom: 20px; }
.saved h3 { font-size: 22px; margin: 0 0 6px; }
.saved .ssub { color: var(--ink-2); font-size: 14px; margin: 0 0 20px; }
.saved .cta { width: 100%; }

/* update banner (new version downloaded and waiting; one tap applies it) */
#update-banner { position: fixed; left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 95; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent); color: var(--accent-ink); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); }
#update-banner[hidden] { display: none; }
#update-banner button { border: 0; border-radius: 9px; padding: 7px 14px; background: var(--accent-ink); color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer; }

/* blazor error ui (themed) */
#blazor-error-ui { background: var(--warn-soft); color: var(--ink); bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* balances */
.balrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.balrow .balmeta { min-width: 0; }
.balrow .balnm { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balrow .balsub { font-size: 11px; color: var(--ink-3); }
.balrow .balamt { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balrow .balamt.neg { color: var(--debit); }
.nwcard { margin: 22px 0 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.nwlbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.nwtotal { font-size: 33px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 3px; }
.nwrow { display: flex; align-items: center; gap: 7px; margin-top: 11px; font-size: 13px; }
.nwrow .up { color: var(--credit); font-weight: 800; }
.nwrow .down { color: var(--debit); font-weight: 800; }
.nwrow .k { color: var(--ink-3); }
.nwrow .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.nwdiv { height: 1px; background: var(--line); margin: 13px 0 0; }
.nwasof { font-size: 11px; color: var(--ink-3); margin-top: 12px; }
.nwasof.stale { color: var(--warn); }

/* merged net-worth tile: invested line, type segments, liquid subset lens, collapse toggle */
.invline { margin-top: 9px; font-size: 13px; font-variant-numeric: tabular-nums; }
.invline .k { color: var(--ink-3); }
.invline .ret { font-weight: 800; color: var(--credit); }
.invline .ret.down { color: var(--debit); }
.liqsum { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; font-size: 13px; }
.liqsum .k { color: var(--ink-3); }
.liqsum .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.subhead { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 4px; }
.subhead .sh { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.subhead .shr { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.segrow { display: grid; grid-template-columns: 1fr auto 52px; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.segrow .snm { font-size: 13.5px; font-weight: 600; }
.segrow .sval { font-size: 13.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.segrow .spct { font-size: 12.5px; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 600; }
.segrow .spct.up { color: var(--credit); font-weight: 800; }
.segrow .spct.down { color: var(--debit); font-weight: 800; }
.segrow.other .snm { color: var(--ink-3); }
.liqhead { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 2px; }
.liqhead .lt { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.liqhead .lt .lk { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-right: 8px; }
.liqhead .lr { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.liqcap { font-size: 10.5px; color: var(--ink-3); font-style: italic; margin: 0 0 4px; line-height: 1.3; }
.liqrow { display: grid; grid-template-columns: 1fr auto 52px; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.liqrow .lnm { font-size: 13px; color: var(--ink-2); }
.liqrow .lval { font-size: 13px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.liqrow .lpct { font-size: 12px; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nwtoggle { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px -18px 0; padding: 11px 0 3px; border-top: 1px solid var(--line); color: var(--accent); font-size: 12.5px; font-weight: 700; cursor: pointer; }

/* ── Dashboard (redesigned net-worth view: Investments + Liquid − Debt) ───── */
.dash .num { font-variant-numeric: tabular-nums; }
.dash .neg { color: var(--debit); }
.dash .cr  { color: var(--credit); }

.nwhero { margin: 6px 0 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.nwlbl { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.nwbig { font-size: 38px; font-weight: 500; letter-spacing: -.025em; font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.nwgain { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chg.up { color: var(--accent); font-weight: 700; }
.chg.dn { color: var(--debit); font-weight: 700; }

.nwrecon { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 13px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nwrecon span { display: flex; align-items: center; gap: 6px; }
.nwrecon em { color: var(--ink-3); font-style: normal; font-weight: 800; }
.sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.sw.inv { background: var(--accent); }
.sw.liq { background: var(--warn); }
.sw.owe { background: var(--debit); }

/* Net-worth composition donut (assets by sub-group; centre = net worth). Desktop-matched palette. */
.nwdonut { position: relative; width: 156px; height: 156px; margin: 16px auto 2px; }
.nwdonut .donutsvg { width: 100%; height: 100%; }
.nwdonut .donutbg { stroke: var(--surface-2); }
.donutctr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; pointer-events: none; }
.donutctr .dk { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.donutctr .num { font-size: 18px; font-weight: 800; color: var(--ink); }
.donutlegend { margin: 8px 2px 2px; }
.dleg { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; }
.dleg .sw { flex: 0 0 auto; }
.dleg .dln { color: var(--ink-2); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dleg .dlp { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: auto; }
.dleg .dlv { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.dleg .dlv.neg { color: var(--debit); }

.nwbar { display: flex; height: 11px; border-radius: 6px; overflow: hidden; margin-top: 11px; background: var(--surface-2); }
.nwbar i { display: block; height: 100%; }
.nwbar i.inv { background: var(--accent); }
.nwbar i.liq { background: var(--warn); }

.dcard { margin-top: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dcrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 15px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dci { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center; font-size: 16px; color: #fff; }
.dci.inv { background: var(--accent); }
.dci.liq { background: var(--warn); }
.dci.owe { background: var(--debit); }
.dcmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dcnm { font-size: 15px; font-weight: 650; }
.dcnote { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcval { text-align: right; flex: 0 0 auto; }
.dcval b { font-size: 16px; font-weight: 750; display: block; font-variant-numeric: tabular-nums; }
.dcsub { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dcaret { color: var(--ink-3); font-size: 13px; flex: 0 0 auto; transition: transform .2s; }
.dcard.open .dcaret { transform: rotate(90deg); }

.dsub { max-height: 0; overflow: hidden; transition: max-height .28s ease; background: var(--surface-2); }
.dcard.open .dsub { max-height: 2000px; }
/* Sub-group header (Equity / Metals / …) inside a drill-down + its slightly-more-indented rows. */
.dsub-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px 4px 20px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.dsub-h .dv { color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dsrow.sub { padding-left: 32px; }
/* Right-aligned value + a small meta line (%NW · return%) beneath it. */
.dvcol { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.dmeta { display: flex; gap: 7px; align-items: baseline; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dmeta .chg { font-size: 11px; font-weight: 700; }
.dsrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 15px 10px 20px; font-size: 13.5px; border-top: 1px solid var(--line); }
.dsrow .dk { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsrow .dv { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dsrow.dnet { font-weight: 800; }
.dsrow.dnet .dk { color: var(--ink); }

/* Text button used in the Dashboard empty state to retry the (fragile) heavy fetch. */
.linklike { background:none; border:none; padding:0; font:inherit; color:var(--accent); text-decoration:underline; cursor:pointer; }

/* MOBILE-R2: Capture "This month" voucher list. Phone-captured rows get a faint accent tint (parallel to
   the desktop row tint); not-yet-synced captures carry an amber "pending" tag. */
.rlist { display:flex; flex-direction:column; padding: 2px 20px 14px; }
.rrow { display:flex; align-items:center; gap:12px; padding:9px 8px; border-radius:8px; }
.rrow:not(:last-child) { box-shadow: inset 0 -1px 0 var(--line); }
.rrow.mob { background: var(--accent-soft); box-shadow:none; }
.rmeta { flex:1 1 auto; min-width:0; }
.rnote { font-size:14px; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rsub { font-size:11.5px; color:var(--ink-3); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ramt { flex:0 0 auto; text-align:right; white-space:nowrap; }
.rval { font-variant-numeric: tabular-nums; font-size:14px; color:var(--ink); }
.pend { display:block; margin-top:2px; font-size:10px; font-weight:600; letter-spacing:.03em; text-transform:uppercase; color:var(--warn); }
.showall { display:block; margin: 2px 20px 14px; padding: 6px 0; font-size:13px; }

/* Slice 1: month stepper on the recent list + tappable rows. */
.monthnav { display:flex; align-items:center; gap:10px; }
.stepbtn { background:var(--surface-2); border:1px solid var(--line); color:var(--ink-2); width:26px; height:26px; border-radius:8px; font-size:12px; line-height:1; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.stepbtn:disabled { opacity:.35; cursor:default; }
.monthlbl { font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); font-weight:700; min-width:82px; text-align:center; }
.rrow.tap { cursor:pointer; }
.rrow.tap:active { background:var(--surface-2); }
.rgo { display:inline-block; margin-left:8px; color:var(--ink-3); font-size:15px; vertical-align:middle; }

/* Slice 2: grouped account list + account drill-down. Also used as a collapsible <button> header. */
.grouphd { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; margin:18px 0 2px; padding:0 2px 6px; border:0; border-bottom:1px solid var(--line); background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.grouphd .gnm { flex:1 1 auto; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gcaret { flex:0 0 auto; color:var(--ink-3); font-size:11px; transition:transform .15s ease; display:inline-block; }
.gcaret.open { transform:rotate(90deg); }
.quickrow .monthjump { margin-left:auto; }
.tab .ti svg { width:21px; height:21px; display:block; }
/* Collapsible Capture section headers: a caret+label button that sits beside the section's existing
   control (no nested buttons). caret-btn is the bare caret used inside the month stepper row. */
.caphd { display:inline-flex; align-items:center; gap:6px; border:0; background:none; padding:0; cursor:pointer; font:inherit; color:var(--ink-3); font-size:11px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; }
.caret-btn { border:0; background:none; padding:0 4px 0 0; cursor:pointer; color:var(--ink-3); display:inline-flex; align-items:center; }
.grouphd .gsub { font-size:12.5px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--ink-2); white-space:nowrap; }
.grouphd .gsub.neg { color:var(--debit); }
.balrow .balmeta { flex:1 1 auto; }
.balrow.tap { cursor:pointer; }
.balrow.tap:active { background:var(--surface-2); }
.entryhead .en .acbal { font-variant-numeric:tabular-nums; }
.entryhead .en .acbal.neg { color:var(--debit); }
.rval.pos { color:var(--credit); }
.rval.neg { color:var(--debit); }
/* Breakdown pin (Expenses/Revenue): a thin share-of-total bar under each category/account name. */
.brbar { height:5px; border-radius:3px; background:var(--line); margin-top:6px; overflow:hidden; }
.brbar .brfill { height:100%; background:var(--accent); border-radius:3px; }

/* Slice 3: dashboard category rows drill into their accounts. */
.dsrow.tap { cursor:pointer; }
.dsrow.tap:active { background:var(--surface-2); }
.dsrow.tap .dk { flex:1 1 auto; min-width:0; }
.dgo { flex:0 0 auto; color:var(--ink-3); font-size:15px; margin-left:2px; }

/* Reminders tab: due/upcoming list + mark-done. */
.remrow { display:flex; align-items:center; gap:12px; padding:12px 2px; border-bottom:1px solid var(--line); }
.remico { flex:0 0 auto; width:30px; height:30px; border-radius:9px; background:var(--surface-2); display:flex; align-items:center; justify-content:center; font-size:16px; }
.remmeta { flex:1 1 auto; min-width:0; }
.remlbl { font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.remsub { font-size:11.5px; color:var(--ink-3); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.remsub .due { color:var(--ink-2); font-weight:600; }
.remsub .due-over { color:var(--debit); font-weight:700; }
.rembtn { flex:0 0 auto; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--accent); font-size:12.5px; font-weight:700; padding:7px 12px; cursor:pointer; }
.rembtn:disabled { opacity:.4; cursor:default; }
.undochip { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 2px; padding:9px 14px; border-radius:12px; background:var(--accent-soft); color:var(--ink); font-size:13px; font-weight:600; }
.undochip button { border:0; background:transparent; color:var(--accent); font-weight:800; font-size:13px; cursor:pointer; }
.remrow.tap { cursor:pointer; }
.remrow.tap:active { background:var(--surface-2); }
/* Reminder push-notification toggle. */
.pushrow { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:8px 0 2px; padding:11px 14px; border-radius:12px; background:var(--surface-2); }
.pushmeta { min-width:0; display:flex; flex-direction:column; gap:2px; }
.pushttl { font-size:13.5px; font-weight:600; color:var(--ink); }
.pushsub { font-size:11px; color:var(--ink-3); }
.pushtest { padding:2px 2px 6px; }
.remaddrow { padding:8px 0 4px; }
/* Reminder editor: lead value + unit on one row. */
.leadrow { display:flex; align-items:center; gap:8px; }
.leadrow input { flex:0 0 72px; }
.leadrow select { flex:1 1 auto; }

/* REMINDER-CALENDAR: List ⇄ Calendar segmented toggle + month grid. */
.viewseg { display:flex; gap:6px; margin:10px 0 4px; padding:3px; border-radius:11px; background:var(--surface-2); }
.viewseg .segbtn { flex:1 1 0; border:0; border-radius:9px; background:transparent; color:var(--ink-2); font-size:12.5px; font-weight:700; padding:7px 0; cursor:pointer; }
.viewseg .segbtn.on { background:var(--surface); color:var(--accent); box-shadow:0 1px 2px rgba(0,0,0,.12); }
.cal { margin:8px 0 4px; }
.cal-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.cal-nav .cal-lbl { font-size:14px; font-weight:700; }
.cal-nav .stepbtn { border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); width:34px; height:32px; font-size:18px; line-height:1; cursor:pointer; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.cal-wds { margin-bottom:4px; }
.cal-wd { text-align:center; font-size:10.5px; font-weight:700; letter-spacing:.06em; color:var(--ink-3); padding:2px 0; }
.cal-cell { position:relative; aspect-ratio:1/1; border-radius:9px; background:var(--surface-2); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; cursor:pointer; }
.cal-cell.empty { background:transparent; cursor:default; }
.cal-cell .cal-dn { font-size:13px; font-variant-numeric:tabular-nums; color:var(--ink-2); }
.cal-cell.has .cal-dn { color:var(--ink); font-weight:700; }
.cal-cell.today { outline:2px solid var(--accent); outline-offset:-2px; }
.cal-cell.sel { background:var(--accent-soft); }
.cal-cell .cal-dot { min-width:15px; height:15px; padding:0 3px; border-radius:8px; background:var(--accent); color:#fff; font-size:9.5px; font-weight:800; line-height:15px; text-align:center; }
.cal-cell:active { background:var(--surface); }
.fields select { border:0; background:transparent; font:inherit; font-size:15px; color:var(--ink); outline:none; width:100%; padding:2px 0; }
/* Reminder detail sheet body (reuses the .sheet chrome). */
.rem-detail { margin:12px 0 4px; }
.rd-row { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid var(--line); font-size:13.5px; }
.rd-row .rd-k { color:var(--ink-3); }
.rd-row .rd-v { color:var(--ink); font-weight:600; text-align:right; }

/* Reports R1: Monthly Trend rows + Spend-by-category rows. */
.trow { padding:11px 2px; border-bottom:1px solid var(--line); }
.tr-hd { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.tr-mo { font-size:13.5px; font-weight:600; color:var(--ink); }
.tr-net { font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; }
.tr-net.pos { color:var(--credit); }
.tr-net.neg { color:var(--debit); }
.tr-bar { height:5px; border-radius:3px; background:var(--surface-2); margin-top:5px; overflow:hidden; }
.tr-bar i { display:block; height:100%; }
.tr-bar i.inc { background:var(--credit); }
.tr-bar i.exp { background:var(--debit); }
.tr-sub { display:flex; gap:14px; margin-top:5px; font-size:11.5px; font-variant-numeric:tabular-nums; }
.tr-sub .inc { color:var(--credit); }
.tr-sub .exp { color:var(--debit); }
.tr-sub .inv { color:var(--accent); }

.sp-total { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:6px 2px 12px; font-size:13px; color:var(--ink-3); }
.sp-total b { font-size:18px; font-weight:800; color:var(--ink); font-variant-numeric:tabular-nums; }
.sprow { padding:9px 2px; border-bottom:1px solid var(--line); }
.sprow.other { opacity:.7; }
.sp-hd { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.sp-lbl { font-size:13.5px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sp-amt { font-size:13.5px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.sp-bar { height:6px; border-radius:3px; background:var(--surface-2); margin-top:6px; overflow:hidden; }
.sp-bar i { display:block; height:100%; background:var(--accent); }
.sp-pct { margin-top:3px; font-size:11px; color:var(--ink-3); font-variant-numeric:tabular-nums; }

/* Reports: Investments-this-month summary strip (In / Out / Net) + group subtotals. */
.ifsum { display:flex; gap:8px; margin:6px 2px 12px; }
.ifsum .ifcell { flex:1 1 0; display:flex; flex-direction:column; gap:3px; padding:10px 12px; border-radius:11px; background:var(--surface-2); }
.ifsum .ifk { font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3); font-weight:700; }
.ifsum .ifv { font-size:15px; font-weight:800; font-variant-numeric:tabular-nums; }
.ifsum .ifv.pos { color:var(--credit); }
.ifsum .ifv.neg { color:var(--debit); }
.ifgrp { margin-top:14px; }

/* Reports R2: upcoming commitments rows. */
.cmrow { display:flex; align-items:center; gap:12px; padding:12px 2px; border-bottom:1px solid var(--line); }
.cmmeta { flex:1 1 auto; min-width:0; }
.cmttl { font-size:14px; font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cmsub { font-size:11.5px; color:var(--ink-3); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cmamt { flex:0 0 auto; font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.cmamt.pos { color:var(--credit); }
.cmamt.neg { color:var(--debit); }
.cmamt .muted { color:var(--ink-3); font-weight:600; }

/* Reports R3: deposits & maturities rows. */
.dptot { font-size:12.5px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--ink-2); }
.dprow { display:flex; align-items:center; gap:12px; padding:12px 2px; border-bottom:1px solid var(--line); }
.dpmeta { flex:1 1 auto; min-width:0; }
.dpnm { font-size:14px; font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dpsub { font-size:11.5px; color:var(--ink-3); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dpval { flex:0 0 auto; text-align:right; white-space:nowrap; }
.dpnow { font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--ink); }
.dpmat { font-size:11px; color:var(--credit); font-variant-numeric:tabular-nums; margin-top:2px; }

/* Slice 1: voucher detail bottom sheet (tap a row). */
.sheet-backdrop { position:fixed; inset:0; background:rgba(10,14,18,.5); z-index:96; }
.sheet { position:fixed; left:0; right:0; bottom:0; z-index:97; background:var(--surface); border-top-left-radius:20px; border-top-right-radius:20px; padding:8px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow:0 -6px 24px rgba(0,0,0,.28); max-height:82vh; overflow-y:auto; }
.sheet-grip { width:38px; height:4px; border-radius:2px; background:var(--line); margin:4px auto 12px; }
.sheet-hd { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.sheet-title { font-size:17px; font-weight:700; color:var(--ink); overflow:hidden; text-overflow:ellipsis; }
.sheet-amt { font-size:20px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--ink); white-space:nowrap; }
.sheet-amt.neg { color:var(--debit); }
.sheet-sub { display:flex; align-items:center; gap:8px; margin-top:4px; font-size:12px; color:var(--ink-3); }
.src { font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:1px 6px; border-radius:6px; background:var(--surface-2); color:var(--ink-3); }
.src.mob { background:var(--accent-soft); color:var(--accent); }
.src.void { background:var(--debit-soft); color:var(--debit); }
.sheet-flow { display:flex; align-items:center; gap:10px; margin-top:14px; font-size:14px; color:var(--ink); }
.sheet-flow em { color:var(--ink-3); font-style:normal; }
.sheet-legs { margin-top:12px; display:flex; flex-direction:column; gap:6px; }
.sheet-leg { display:flex; align-items:center; gap:10px; font-size:13.5px; }
.sheet-leg .ln { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sheet-leg .la { font-variant-numeric:tabular-nums; color:var(--ink-2); white-space:nowrap; }
.sheet-note { margin-top:12px; font-size:13.5px; color:var(--ink-2); background:var(--surface-2); border-radius:10px; padding:9px 11px; }
.sheet-hint { margin-top:10px; font-size:12px; color:var(--ink-3); }
.sheet-actions { display:flex; gap:10px; margin-top:18px; }
.sbtn { flex:1 1 auto; border:1px solid var(--line); background:var(--surface-2); color:var(--ink); border-radius:12px; padding:12px 8px; font-size:14px; font-weight:600; cursor:pointer; }
.sbtn.danger { color:var(--debit); border-color:var(--debit-soft); }
.sbtn.armed { background:var(--debit); color:#fff; border-color:var(--debit); }

/* Capture rework: top action row + section-header toggles + This-month jump chip. */
/* Horizontal padding 0 so the pills' left edge lines up with the search box (both inset by .scroll's 20px). */
.quickrow { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding: 2px 0 8px; }
/* Compact, on-theme action pills — content-sized, not a full-width block. */
.qbtn { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:9px 15px; font-size:13.5px; font-weight:600; cursor:pointer; white-space:nowrap; background:var(--surface-2); border:1px solid var(--line); color:var(--ink-2); }
.qbtn.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.qbtn .qi { font-size:15px; font-weight:800; line-height:1; }
.sectlabel.rowlabel { display:flex; align-items:center; justify-content:space-between; }
.rowacts { display:flex; align-items:center; gap:14px; }
.viewtoggle { background:none; border:none; color:var(--accent); font-size:12px; font-weight:600; cursor:pointer; padding:2px 4px; }
/* Privacy (hide-amounts) toggle in the header. Explicit colour so the SVG stroke (currentColor) stays visible on the dark app bar. */
.privbtn { background:none; border:none; cursor:pointer; padding:2px 6px; color:var(--ink-2); display:inline-flex; align-items:center; line-height:1; }

/* Sync-UX epic: "Sync now" affordance + progress in the queue sheet. */
.syncbar { display:flex; align-items:center; gap:10px; padding: 4px 2px 6px; }
.syncing { font-size:12px; color:var(--ink-3); }

/* Red-dot diagnostics: the connection sheet explains the dot's colour + a remedy when red. */
.conndetail { font-size:12px; color:var(--ink-3); padding: 2px 2px 4px; }
.connremedy { font-size:12px; color:var(--ink-2); padding: 8px 10px; margin: 4px 0 6px; background: var(--debit-soft); border-radius: 8px; }

/* Swipe-to-flip: the keyed content wrapper replays a directional slide on each tab change.
   NB: no persistent `will-change: transform` here — it makes .pagewrap a containing block for
   position:fixed descendants, which pins the voucher sheet's bottom:0 to the (tall, scrolled)
   content instead of the viewport, hiding it off-screen on long pages. The slide animation still
   composites its own transform for its 0.2s, when no sheet is open. */
.pagewrap.sl-next { animation: slNext .2s ease; }
.pagewrap.sl-prev { animation: slPrev .2s ease; }
@keyframes slNext { from { transform: translateX(26px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes slPrev { from { transform: translateX(-26px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pagewrap.sl-next, .pagewrap.sl-prev { animation: none; } }
