@font-face {
    font-family: Inter;
    src: url("fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: #142342;
    background: #f2f5fb;
    --ink: #142342;
    --muted: #576781;
    --accent: #2454d8;
    --line: #e3e9f4;
    --radius: 18px;
}
* { box-sizing: border-box; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #8475ed; outline-offset: 3px; }
h1, h2, p { margin: 0; }
svg { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.shell { display: grid; grid-template-columns: 242px minmax(0,1fr); min-height: 100dvh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); color: var(--ink); padding: 24px 14px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: white; font-size: 23px; font-weight: 730; letter-spacing: -.045em; padding: 0 9px; line-height: 1.05; }
.brand:hover { text-decoration: none; }
.brand div > span { color: #a9bfff; }
.brand small { display: block; font-size: 10px; letter-spacing: .12em; font-weight: 650; color: #adbef1; margin-top: 6px; }
.brand-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: white; box-shadow: inset 0 0 0 1px #8cacff80; }
.brand-icon svg { width: 25px; height: 25px; }
.brand-icon.custom-logo { padding: 4px; background: white; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; flex: none; }
.custom-logo img { width: 100%; height: 100%; min-width: 0; min-height: 0; display: block; object-fit: contain; }
.sidebar .brand { color: var(--ink); }
.sidebar .brand div > span { color: var(--accent); }
.sidebar .brand small, .side-label { color: var(--muted); }
.side-label { font-weight: 700; font-size: .71rem; letter-spacing: .07em; text-transform: uppercase; margin: 0 10px 4px; }
.sidebar nav { display: grid; gap: 14px; margin-top: 24px; }
.sidebar-group { display: grid; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; min-height: 40px; padding: 8px 10px; border-radius: 9px; color: #485976; }
.sidebar nav a:hover { background: #f1f5ff; text-decoration: none; }
.sidebar nav .selected { background: #e9efff; color: #1a45b9; box-shadow: inset 3px 0 #4167e1; }
.side-bottom { margin-top: auto; padding-top: 28px; }
.demo-tag, .sample-pill { font-size: .82rem; color: #35558b; display: inline-flex; gap: 8px; align-items: center; padding: 8px 11px; background: #eaf0ff; border-radius: 100px; white-space: nowrap; }
.demo-tag { margin-bottom: 12px; }
.demo-tag i, .sample-pill i { width: 7px; height: 7px; background: #2454d8; border-radius: 50%; }
.profile { display: flex; gap: 10px; align-items: center; padding: 14px 7px 8px; border-top: 1px solid var(--line); font-size: .88rem; }
.profile small { display: block; margin-top: 3px; color: var(--muted); }
.avatar { display: grid; place-items: center; border: 0; padding: 0; overflow: hidden; background: #e7efff; color: #1d48b7; border-radius: 50%; width: 40px; height: 40px; flex: none; font-weight: 750; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-identity { min-width: 0; overflow-wrap: anywhere; }
.wallet-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wallet-status:empty { display: none; }
.verified-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 100px; background: #e4eeff; color: #1749a8; font-size: .79rem; font-weight: 680; white-space: nowrap; }
.verified-badge svg { width: 16px; height: 16px; }
.directory-identity { display: flex; align-items: center; gap: 10px; min-width: 135px; }
.verify-form { margin-top: 6px; }
.verify-form .btn { min-height: 36px; padding-inline: 9px; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px; max-width: 980px; }
.profile-card { padding: 20px; }
.profile-card > h2, .profile-card > .profile-preview { margin-bottom: 16px; }
.profile-preview { display: flex; align-items: center; gap: 12px; min-width: 0; }
.profile-preview .verified-badge { margin-top: 5px; }
.profile-card .profile-preview .avatar { width: 64px; height: 64px; font-size: 1.45rem; }
.profile-preview small, .profile-card #photo-help, .profile-card form > p { color: var(--muted); font-size: .87rem; }
.photo-remove { margin-top: 10px; }
.photo-remove button { width: 100%; }
.sign-out { background: transparent; color: var(--muted); border: 0; padding: 10px 8px; min-height: 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); min-height: 68px; padding: 0 clamp(18px,4vw,46px); gap: 12px; font-size: .9rem; }
.topbar > div { display: flex; align-items: center; gap: 12px; }
.notification-bell { position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #edf2ff; color: #1d48b7; }
.notification-bell:hover, .notification-bell[aria-current=page] { background: #dfe9ff; }
.notification-count { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 3px; border: 2px solid white; border-radius: 20px; background: #b72d4c; color: white; text-align: center; font-size: .67rem; line-height: 15px; font-weight: 750; }
.inbox-card { max-width: 840px; overflow: hidden; }
.inbox-filters, .inbox-pages { display: flex; gap: 8px; padding: 12px 16px; }
.inbox-filters a { min-height: 38px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 100px; color: var(--muted); font-size: .9rem; font-weight: 640; }
.inbox-filters a[aria-current=page] { background: #e9efff; color: #1d48b7; }
.inbox-empty { padding: 18px; border-top: 1px solid var(--line); }
.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-list li { border-top: 1px solid var(--line); }
.inbox-item { display: grid; grid-template-columns: auto minmax(0,1fr) 9px; gap: 12px; align-items: center; width: 100%; padding: 15px 17px; text-align: left; background: white; border: 0; color: var(--ink); }
.inbox-item.unread, .inbox-item:hover { background: #f2f6ff; }
.inbox-item:focus-visible { outline-offset: -3px; }
.inbox-copy { display: grid; gap: 3px; overflow-wrap: anywhere; }
.inbox-copy strong { font-size: .95rem; }
.inbox-copy > span { color: var(--muted); font-size: .89rem; }
.inbox-copy time { color: var(--muted); font-size: .8rem; }
.inbox-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.crumb, .date { color: var(--muted); }
.slash { color: #9299aa; }
.date { white-space: nowrap; }
.content { padding: 34px clamp(18px,4vw,46px) 50px; max-width: 1520px; margin-inline: auto; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; }
.page-head > *, .card-title > * { min-width: 0; max-width: 100%; }
.page-head h1, .card-title h2 { overflow-wrap: anywhere; }
.eyebrow { color: var(--accent); font-size: .74rem; letter-spacing: .14em; font-weight: 750; }
h1 { font-size: clamp(1.8rem,4vw,2.65rem); line-height: 1.09; letter-spacing: -.048em; margin-top: 7px; }
h2 { font-size: 1.13rem; letter-spacing: -.025em; }
p { color: var(--muted); line-height: 1.5; }
.page-head p { margin-top: 8px; }
.btn { color: var(--ink); min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; font-size: .88rem; font-weight: 650; line-height: 1.2; text-align: center; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(.95); }
.btn svg { width: 17px; height: 17px; }
.primary { background: var(--accent); color: white; }
.secondary { background: white; border-color: #dce0ec; }
.actions, .detail-actions { display: flex; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.actions > *, .detail-actions > * { max-width: 100%; }
.detail-actions { padding: 0 20px 16px; }
.loan-documents { padding: 0 20px 16px; }
.loan-documents h3 { margin: 0 0 8px; font-size: .95rem; }
.loan-balances { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 20px 16px; }
.loan-balances > div { background: #f4f7fe; border-radius: 12px; padding: 12px; }
.loan-balances span { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.loan-balances strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: 0 2px 4px #20295905; }
.wallet-heading { align-items: center; }
.wallet-heading h1 { margin-top: 0; }
.wallet-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; max-width: 1080px; }
.dashboard-highlights { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.highlight-card { padding: 14px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; color: var(--ink); }
.highlight-card:hover { border-color: #a6baf4; text-decoration: none; }
.highlight-card > span > small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.2; }
.highlight-card > span > strong { display: block; margin-top: 4px; font-size: clamp(1rem,1.8vw,1.25rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.highlight-card > svg { color: #6e7d97; width: 15px; height: 15px; }
.highlight-card .quick-icon { width: 38px; height: 38px; border-radius: 12px; }
.wallet-layout:has(.wallet-aside) { grid-template-columns: minmax(0, 1.65fr) minmax(255px, 1fr); }
.wallet-layout:not(:has(.wallet-aside)) { max-width: 740px; }
.wallet-main, .wallet-aside { min-width: 0; }
.wallet-main { display: grid; gap: 16px; }
.wallet-aside { display: grid; align-content: start; gap: 16px; }
.wallet-card { display: grid; align-content: space-between; position: relative; isolation: isolate; overflow: hidden; color: white; background: radial-gradient(ellipse at 100% 110%, #2d68ee 0%, transparent 64%), linear-gradient(118deg,#102862,#193d9f 66%,#234bcc); border-radius: 24px; padding: 24px 26px; min-height: 226px; box-shadow: 0 9px 22px #2351c628; }
.wallet-card::before, .wallet-card::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 315px; aspect-ratio: 1; border: 1px solid #9cbfff55; border-radius: 39%; transform: rotate(-30deg); right: -123px; top: -136px; }
.wallet-card::after { width: 388px; right: -143px; top: -156px; box-shadow: 0 0 0 32px #a1c2ff15, 0 0 0 64px #a1c2ff12; }
.wallet-top, .wallet-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wallet-top span { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 700; }
.wallet-top i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #ffffff22; }
.wallet-top span:last-child { border: 1px solid #c3d7ff80; border-radius: 100px; padding: 6px 10px; font-size: .76rem; letter-spacing: .08em; }
.wallet-value { padding: 13px 0 19px; }
.balance-label { display: flex; align-items: center; gap: 4px; }
.wallet-value small { color: #e0eaff; font-size: .9rem; }
.wallet-value strong { display: block; font-size: clamp(1.85rem,4.35vw,3.1rem); letter-spacing: -.045em; line-height: 1.1; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.visibility-toggle { padding: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: #e0eaff; }
.visibility-toggle:hover, .visibility-toggle[aria-pressed=true] { background: #ffffff26; }
.visibility-toggle svg { width: 18px; height: 18px; }
.wallet-footer { color: #e0eaff; font-size: .82rem; font-weight: 600; letter-spacing: .025em; }
.wallet-footer svg { width: 31px; height: 31px; }
.quick-panel { display: flex; justify-content: space-around; gap: 2px; padding: 14px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.quick-action { display: flex; flex: 1 1 0; align-items: center; flex-direction: column; gap: 8px; padding: 5px 2px; min-width: 0; color: var(--ink); border: 0; border-radius: 12px; background: transparent; text-align: center; font-size: .88rem; font-weight: 680; }
.quick-action:hover { background: #f3f6fc; text-decoration: none; }
.quick-icon, .feed-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; flex: none; }
.quick-icon.blue, .feed-icon.neutral { background: #e8efff; color: #2851c2; }
.quick-icon.green, .feed-icon.incoming { background: #e1f6ef; color: #127257; }
.quick-icon.amber, .feed-icon.outgoing { background: #fff0e5; color: #a14724; }
.activity-card > .card-title, .services-card > .card-title { padding: 18px 20px; }
.text-link { display: inline-flex; align-items: center; min-height: 34px; gap: 6px; font-size: .9rem; font-weight: 700; }
.text-link svg { width: 17px; height: 17px; }
.wallet-feed { list-style: none; margin: 0; padding: 0 20px; }
.wallet-feed li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.wallet-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.wallet-filters a, .settings-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; background: white; font-size: .85rem; font-weight: 650; }
.wallet-filters a[aria-current=page], .wallet-filters a:hover, .settings-links a:hover { color: #1d48b7; background: #edf2ff; border-color: #d8e3ff; text-decoration: none; }
.feed-icon { width: 39px; height: 39px; border-radius: 12px; }
.feed-icon svg { width: 18px; height: 18px; }
.feed-detail { overflow-wrap: anywhere; }
.feed-detail a { color: inherit; }
.feed-detail small, .feed-amount small, .service-row small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.feed-amount { text-align: right; font-variant-numeric: tabular-nums; }
.wallet-empty { padding: 0 20px 20px; }
.service-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 0; margin: 0 20px; border-top: 1px solid var(--line); color: var(--ink); font-size: .94rem; }
.service-row > svg { color: #64738e; width: 16px; height: 16px; }
.service-row .quick-icon { width: 42px; height: 42px; border-radius: 12px; }
.wallet-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.wallet-totals > div { padding: 13px 16px; }
.wallet-totals > div > span { color: var(--muted); font-size: .88rem; }
.wallet-totals strong { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.snapshot { padding: 20px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title p { margin-top: 4px; font-size: .88rem; }
.snapshot .card-title { margin-bottom: 14px; }
.snapshot-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.snapshot-row span { color: var(--muted); font-size: .88rem; }
.snapshot-row strong { text-align: right; overflow-wrap: anywhere; }
.member-panel .card-title { flex-wrap: wrap; gap: 4px 12px; }
.member-panel .card-title .text-link { min-height: 32px; }
.member-panel .snapshot-row span { max-width: 69%; }
.member-panel .snapshot-row:last-child { padding-bottom: 0; }
.earnings-panel { margin-bottom: 18px; }
.treasury-section { margin-bottom: 18px; }
.estimate-note { margin-top: 12px; color: var(--muted); font-size: .87rem; }
.rate-form { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 770px; align-items: end; }
.rate-form button { justify-self: start; }
.distribution-post { padding: 16px 20px; border-top: 1px solid var(--line); }
.distribution-post form { max-width: 560px; }
.distribution-post button { justify-self: start; }
.distribution-check { display: flex; align-items: center; gap: 8px; }
.distribution-check input { width: 18px; height: 18px; min-height: 18px; flex: none; }
.distribution-post th small, th[scope=row] small { color: var(--muted); display: block; }
.bulletin-panel > .card-title { padding: 14px 20px 5px; }
.bulletin, .bulletin-empty { padding: 16px 20px; overflow-wrap: anywhere; }
.bulletin + .bulletin { border-top: 1px solid var(--line); }
.bulletin time { display: block; color: var(--muted); font-size: .82rem; }
.bulletin h3 { margin: 5px 0 6px; font-size: 1rem; }
.bulletin p { white-space: pre-wrap; }
.bulletin form { margin-top: 12px; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.metrics.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.metric { display: flex; align-items: center; gap: 13px; padding: 17px; color: var(--ink); }
a.metric:hover { text-decoration: none; border-color: #bdb2e9; }
.tile, .transaction-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.purple, .transaction-icon { background: #f0ecff; color: #5a43bd; }
.mint { background: #e0f7ee; color: #167d66; }
.peach { background: #ffede3; color: #a4512c; }
.metric div { min-width: 0; }
.metric div span { display: block; color: var(--muted); font-size: .86rem; }
.metric strong { display: block; font-size: clamp(1.15rem,2.3vw,1.55rem); letter-spacing: -.035em; margin-top: 3px; overflow-wrap: anywhere; }
.table-card { margin-bottom: 18px; }
.table-card .card-title { padding: 18px 20px; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.table-scroll:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; text-align: left; }
th, td { padding: 12px 15px; border-top: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
thead th { background: #f8f8fc; color: #505970; font-weight: 650; white-space: nowrap; }
td small { display: block; margin-top: 3px; color: var(--muted); }
td strong { font-weight: 660; }
.transaction { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.transaction-icon { width: 35px; height: 35px; border-radius: 9px; }
.transaction-icon svg { width: 17px; height: 17px; }
.muted, .empty { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amount { font-weight: 680; }
.positive { color: #13775b; }
.empty { text-align: center; padding-block: 24px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 30px; font-size: .76rem; font-weight: 680; background: #efeafa; color: #533c9c; white-space: nowrap; }
.badge.active, .badge.paid, .badge.balanced, .badge.approved, .badge.reconciled { background: #def5ec; color: #186d55; }
.badge.pending { background: #fff1d8; color: #885100; }
.badge.rejected, .badge.overdue, .badge.out-of-balance { background: #fee8ea; color: #a52d45; }
.search input { width: min(100%,230px); }
input, select, textarea { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #dce0ec; border-radius: 9px; background: #fff; padding: 9px 11px; color: var(--ink); }
textarea { resize: vertical; }
label { display: grid; gap: 6px; font-weight: 630; font-size: .9rem; }
.form-stack { display: grid; gap: 15px; }
.form-stack button { margin-top: 3px; }
.notice { padding: 12px 15px; border-radius: 10px; margin-bottom: 15px; background: #dff4eb; color: #145d48; }
.notice.error { background: #fce6eb; color: #932843; }
.swal2-popup.kapit-alert {
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink);
    box-shadow: 0 18px 55px #15254c33;
}
.kapit-alert .swal2-title { font-size: 1.35rem; letter-spacing: -.022em; }
.kapit-alert .swal2-html-container { color: var(--muted); font-size: .96rem; line-height: 1.5; }
.kapit-alert .swal2-actions { gap: 8px; }
.kapit-alert .swal2-actions .btn { padding-inline: 17px; }
.swal2-toast.kapit-alert { border-left: 4px solid #168064; }
.swal2-toast.kapit-alert .swal2-title { font-size: .9rem; letter-spacing: 0; }
.kapit-alert .swal2-timer-progress-bar { background: #168064; }
dialog { width: min(440px,calc(100% - 26px)); max-height: calc(100dvh - 30px); background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 17px; padding: 20px; box-shadow: 0 24px 80px #16172a44; }
dialog::backdrop { background: #1514278c; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.icon-btn { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 9px; background: #f0eef8; color: var(--ink); border: 0; font-size: 1.35rem; }
.mobile-brand, .mobile-nav { display: none; }
.account-menu nav { display: grid; gap: 4px; margin: 6px 0 14px; }
.account-menu nav a { display: flex; align-items: center; min-height: 44px; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--ink); }
.account-menu nav a:hover, .account-menu nav a[aria-current=page] { background: #eaf0ff; color: #1a45b9; text-decoration: none; }
.account-menu form button { width: 100%; }
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: 1.08fr 1fr; background: white; }
.auth-art { color: white; padding: clamp(24px,5vw,68px); display: flex; flex-direction: column; justify-content: space-between; gap: 42px; background: radial-gradient(ellipse at 100% 90%, #285ee0 0%, transparent 60%), linear-gradient(145deg,#112452,#1b409a); }
.auth-art .brand { padding: 0; }
.auth-copy .eyebrow { color: #d5e2ff; }
.auth-copy h1 { font-size: clamp(2.7rem,6.3vw,6rem); margin-top: 13px; }
.auth-copy p { color: #e2eaff; max-width: 370px; margin-top: 17px; }
.auth-foot { display: flex; flex-wrap: wrap; gap: 17px; color: #e2eaff; font-size: .88rem; }
.auth-foot span { display: inline-flex; gap: 7px; align-items: center; }
.auth-panel { display: grid; place-items: center; padding: clamp(24px,7vw,88px); }
.auth-form { max-width: 430px; width: 100%; }
.auth-form h2 { font-size: clamp(1.7rem,3vw,2.45rem); margin: 7px 0; line-height: 1.1; }
.auth-form > p { margin-bottom: 22px; }
.auth-link { display: block; width: fit-content; margin-top: 15px; font-size: .88rem; font-weight: 650; }
.forgot-link { justify-self: end; margin: -3px 0 0; }
.settings-links { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.logo-form { max-width: 440px; }
.logo-form .btn, .settings-secondary .btn { width: fit-content; }
.logo-form p { font-size: .86rem; }
.settings-secondary { margin-top: 12px; }
.report-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 17px; padding: 15px 18px; }
.report-filter label { max-width: 100%; min-width: min(152px,100%); }
.report-toolbar[aria-current=page], .report-toolbar a[aria-current=page] { background: #e9efff; color: #1d48b7; }
.report-print-issuer { display: none; }
.report-heading { align-items: center; }
.report-table { table-layout: fixed; }
.report-table .report-code { width: clamp(5rem,18%,9rem); }
.report-table .report-amount { width: clamp(8rem,33%,16rem); }
.report-table .report-date { width: 18%; }
.report-table .report-ledger-amount { width: 16%; }
.report-table .report-member-amount { width: 17%; }
.report-ledger-table { min-width: 38rem; }
.report-table th, .report-table td { vertical-align: top; overflow-wrap: anywhere; }
.report-table thead th { white-space: normal; }
.report-table tfoot { border-top: 2px solid var(--line); background: #f8faff; }
.report-table .report-posted-date { white-space: nowrap; }
.report-table th[scope=row] small { margin-top: 3px; font-weight: 500; }
dialog:not([open]) { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.document-page { padding: 20px 12px 34px; }
.document-toolbar, .document-sheet { max-width: 920px; margin-inline: auto; }
.document-toolbar { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.document-sheet { background: white; border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px,4.25vw,42px); }
.document-header { display: flex; justify-content: space-between; align-items: start; gap: 15px; border-bottom: 2px solid var(--accent); padding-bottom: 12px; }
.document-header strong { font-size: 1.14rem; overflow-wrap: anywhere; }
.document-issuer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.document-reference { white-space: nowrap; color: var(--accent); font-weight: 750; }
.document-sheet h1 { margin-top: 18px; }
.document-subtitle { margin: 5px 0 16px; font-size: .9rem; }
.document-sheet section { margin-top: 22px; }
.document-sheet section > p { margin: 8px 0 0; }
.document-note { padding: 10px 12px; margin: 10px 0; border-left: 3px solid #b18230; background: #fff9ed; font-size: .9rem; }
.document-fields { margin: 10px 0; }
.document-fields > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .91rem; }
.document-fields dt { color: var(--muted); }
.document-fields dd { margin: 0; font-weight: 620; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.document-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.document-signatures > div { border-top: 1px solid var(--ink); padding-top: 6px; overflow-wrap: anywhere; }
.document-signatures small { display: block; color: var(--muted); }
.document-sheet .table-scroll { margin-top: 12px; }
.document-sheet table td, .document-sheet table th { padding: 7px 9px; }
@page { size: A4; margin: 14mm; }
@page financial-report {
    size: A4;
    margin: 15mm 14mm 18mm;
    @bottom-left { content: string(financial-report-title); font: 8pt sans-serif; color: #566176; }
    @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 8pt sans-serif; color: #566176; }
}
@media print {
    :root { background: white; }
    .financial-report-page { page: financial-report; background: white; color: #172338; }
    .financial-report-page .sidebar, .financial-report-page .topbar, .financial-report-page .mobile-nav,
    .financial-report-page .report-toolbar, .financial-report-page dialog, .financial-report-page .swal2-container { display: none !important; }
    .financial-report-page .shell { display: block; min-height: 0; }
    .financial-report-page .content { padding: 0; max-width: none; }
    .financial-report-page .table-scroll { overflow: visible; }
    .financial-report-page .report-print-issuer { display: block; margin-bottom: 4pt; font-size: 11pt; font-weight: 700; color: #172338; }
    .financial-report-page .report-heading { margin: 0 0 11pt; padding-bottom: 8pt; border-bottom: 1px solid #bdc8db; }
    .financial-report-page h1 { string-set: financial-report-title content(text); margin: 0; font-size: 19pt; letter-spacing: 0; }
    .financial-report-page .report-heading p { margin-top: 3pt; font-size: 9pt; }
    .financial-report-page .table-card { box-shadow: none; border: 0; margin-bottom: 11pt; }
    .financial-report-page .report-summary { break-inside: avoid; }
    .financial-report-page .card-title { padding: 4pt 0 5pt; }
    .financial-report-page .ledger-table-heading { display: block; }
    .financial-report-page .card-title p { margin-top: 2pt; font-size: 8pt; }
    .financial-report-page table { min-width: 0; font-size: 8.5pt; }
    .financial-report-page .report-table a { color: inherit; }
    .financial-report-page td, .financial-report-page th { padding: 4pt 5pt; }
    .financial-report-page tr, .financial-report-page .card-title { break-inside: avoid; }
    .financial-report-page .card-title { break-after: avoid; }
    .financial-report-page tfoot { display: table-row-group; }
    .financial-report-page #subledger-table tr[hidden] { display: table-row !important; }
    .document-page { padding: 0; background: white; color: #141414; }
    .document-toolbar { display: none; }
    .document-sheet { padding: 0; max-width: none; border: 0; border-radius: 0; }
    .document-sheet h1 { font-size: 23pt; }
    .document-sheet h2 { break-after: avoid; }
    .document-sheet .table-scroll { overflow: visible; }
    .document-sheet table { width: 100%; font-size: 8.75pt; }
    .document-sheet tr, .document-fields > div, .document-signatures { break-inside: avoid; }
    .document-sheet thead { display: table-header-group; }
    .financial-report-page thead th, .document-sheet thead th { white-space: normal; }
    .financial-report-page thead { display: table-header-group; }
}
@media screen and (max-width: 1050px) {
    .shell { grid-template-columns: 192px minmax(0,1fr); }
    .sidebar { padding-inline: 12px; }
    .content, .topbar { padding-inline: 22px; }
    .metric { gap: 9px; padding: 12px; }
}
@media screen and (max-width: 820px) {
    .shell { display: block; }
    .sidebar, .topbar .desktop-crumb { display: none; }
    .mobile-brand { display: inline-flex; align-items: center; gap: 5px; font-size: 1.25rem; font-weight: 750; letter-spacing: -.05em; color: var(--ink); }
    .mobile-brand strong { color: var(--accent); }
    .mobile-brand:hover { text-decoration: none; }
    .mobile-brand .brand-icon { width: 34px; height: 34px; border-radius: 10px; margin-right: 4px; }
    .mobile-brand .brand-icon svg { width: 20px; height: 20px; }
    .topbar { min-height: 59px; }
    .content { padding-top: 25px; padding-bottom: calc(83px + env(safe-area-inset-bottom)); }
    .mobile-nav { position: fixed; z-index: 3; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(4,1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px #14234209; }
    .mobile-nav a, .mobile-nav button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 49px; padding: 3px; border: 0; border-radius: 12px; background: transparent; color: #52627d; font-size: .78rem; font-weight: 650; text-decoration: none; }
    .mobile-nav a[aria-current=page], .mobile-nav a:hover, .mobile-nav button:hover { background: #edf2ff; color: #1d46b8; }
    .account-menu { margin: auto auto 0; border-radius: 22px 22px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); width: min(100%,480px); max-width: none; }
}
@media screen and (max-width: 760px) {
    .wallet-layout:has(.wallet-aside) { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .wallet-aside { gap: 14px; }
    .page-head .actions { justify-content: flex-start; }
}
@media screen and (max-width: 600px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-art { gap: 22px; }
    .auth-foot { display: none; }
    .auth-panel { place-items: start center; }
    .metrics, .metrics.two, .wallet-layout:has(.wallet-aside) { grid-template-columns: 1fr; gap: 12px; }
    .wallet-card { padding: 18px 20px; min-height: 202px; border-radius: 20px; }
    .wallet-main { gap: 12px; }
    .quick-panel { padding-block: 10px; }
    .activity-card > .card-title, .services-card > .card-title { padding: 13px 15px; }
    .wallet-feed { padding-inline: 14px; }
    .wallet-feed li { column-gap: 8px; }
    .service-row { margin-inline: 15px; }
    .service-row .quick-icon { width: 38px; height: 38px; }
    .feed-icon { width: 34px; height: 34px; }
    .page-head { align-items: start; flex-direction: column; margin-bottom: 18px; }
    .btn { max-width: 100%; white-space: normal; }
    .wallet-heading { gap: 8px; }
    .dashboard-highlights { gap: 6px; }
    .highlight-card { grid-template-columns: minmax(0,1fr); padding: 8px; gap: 6px; }
    .highlight-card .quick-icon { width: 28px; height: 28px; border-radius: 8px; }
    .highlight-card .quick-icon svg { width: 16px; height: 16px; }
    .highlight-card > svg { display: none; }
    .highlight-card > span > small { font-size: .75rem; }
    .highlight-card > span > strong { font-size: .91rem; }
    .profile-grid { grid-template-columns: 1fr; gap: 12px; }
    .profile-card { padding: 16px; }
    .rate-form { grid-template-columns: 1fr; }
    .loan-balances { grid-template-columns: 1fr; }
    .card-title { flex-wrap: wrap; }
    .report-filter { align-items: stretch; padding: 12px 14px; }
    .report-filter label { flex: 1 1 100%; }
    .report-heading { align-items: start; }
    .report-table:not(.report-ledger-table) .right, .report-table .mono { white-space: normal; }
    .table-card .card-title { padding: 14px; }
    .content, .topbar { padding-inline: 13px; }
    .date { display: none; }
    .metric { padding: 13px; }
    td, th { padding-inline: 10px; }
    th:first-child, td:first-child { padding-left: 14px; }
    th:last-child, td:last-child { padding-right: 14px; }
}
@media screen and (max-width: 380px) {
    .quick-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; }
    .wallet-feed li { grid-template-columns: auto minmax(0,1fr) minmax(0,.9fr); }
    .feed-amount { overflow-wrap: anywhere; }
    .topbar > div { gap: 8px; }
    .highlight-card > span > small { overflow-wrap: anywhere; }
}
