@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --paper: #f4f6fa;
    --surface: #ffffff;
      --ink: #1a2633;
        --ink-2: #55637a;
          --line: #dfe5ee;
            --line-soft: #ecf0f6;
              --blue: #2b66ad;
                --blue-dark: #1f4f8b;
                  --blue-tint: #e6eef9;
                    --navy: #14304f;
                      --brass: #a9813a;
                        --brass-tint: #f6efe0;
                          --green: #18744f;
                            --green-tint: #e3f3ea;
                              --red: #b93a2b;
                                --red-tint: #fbe9e6;
                                  --amber: #8f5f0c;
                                    --amber-tint: #fbf0d8;
                                      --radius: 14px;
                                        --radius-sm: 9px;
                                          --shadow: 0 1px 2px rgba(20, 48, 79, .06), 0 2px 8px rgba(20, 48, 79, .05);
                                            --nav-w: 232px;
                                            }

                                            * { box-sizing: border-box; }
                                            html { -webkit-text-size-adjust: 100%; }
                                            body {
                                              margin: 0; background: var(--paper); color: var(--ink);
                                                font-family: "Plex Arabic", "Segoe UI", Tahoma, sans-serif; font-size: 15.5px; line-height: 1.7;
                                                }
                                                h1, h2, h3, p, dl, dd, ul, fieldset { margin: 0; padding: 0; }
                                                ul { list-style: none; }
                                                a { color: var(--blue); text-decoration: none; }
                                                a:hover { text-decoration: underline; }
                                                bdi, .amt { font-variant-numeric: tabular-nums; }
                                                [hidden] { display: none !important; }
                                                :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
                                                .icon { flex: none; }
                                                .muted { color: var(--ink-2); }
                                                .block { display: block; }
                                                small { font-size: .82em; }

                                                .shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
                                                .nav { background: var(--surface); border-inline-end: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
                                                .brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 20px; color: var(--ink); }
                                                .brand:hover { text-decoration: none; }
                                                .brand-mark {
                                                  width: 40px; height: 40px; border-radius: 11px; background: var(--navy); color: #f3dfb4;
                                                    display: grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 1; padding-bottom: 3px;
                                                      box-shadow: inset 0 -3px 0 var(--brass);
                                                      }
                                                      .brand-mark-lg { width: 60px; height: 60px; font-size: 22px; border-radius: 16px; }
                                                      .brand-text { display: flex; flex-direction: column; line-height: 1.3; }
                                                      .brand-text strong { font-size: 19px; font-weight: 700; }
                                                      .brand-text small { color: var(--ink-2); font-size: 12.5px; }
                                                      .nav-link { display: flex; align-items: center; gap: 12px; padding: 9px 14px; margin-bottom: 2px; border-radius: 999px; color: var(--ink); font-weight: 500; }
                                                      .nav-link:hover { background: var(--paper); text-decoration: none; }
                                                      .nav-link.is-active { background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }
                                                      .nav-scrim { display: none; }

                                                      .main { min-width: 0; display: flex; flex-direction: column; }
                                                      .topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; }
                                                      .page-title { font-size: 22px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
                                                      .topbar-user { display: flex; align-items: center; gap: 6px; }
                                                      .user-chip { display: flex; align-items: center; gap: 8px; font-weight: 500; }
                                                      .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brass-tint); color: var(--brass); display: grid; place-items: center; font-weight: 700; }
                                                      .icon-btn.nav-toggle { display: none; }
                                                      .content { padding: 4px 28px 48px; max-width: 1180px; width: 100%; }

                                                      .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
                                                      .card.narrow { max-width: 620px; }
                                                      .card.center { text-align: center; margin-inline: auto; }
                                                      .card h2 { font-size: 18px; font-weight: 600; }
                                                      .card > h2 { margin-bottom: 6px; }
                                                      .card > h2 + .muted { margin-bottom: 14px; }
                                                      .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
                                                      .head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
                                                      .crumb { margin-bottom: 10px; font-size: 14px; }

                                                      .btn {
                                                        display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 20px;
                                                          border: 1px solid transparent; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
                                                            transition: background-color .12s, box-shadow .12s;
                                                            }
                                                            .btn:hover { text-decoration: none; }
                                                            .btn-primary { background: var(--blue); color: #fff; }
                                                            .btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow); }
                                                            .btn-tonal { background: var(--blue-tint); color: var(--blue-dark); }
                                                            .btn-tonal:hover { background: #d8e5f6; }
                                                            .btn-text { background: transparent; color: var(--blue-dark); padding-inline: 12px; }
                                                            .btn-text:hover { background: var(--blue-tint); }
                                                            .btn-danger { background: var(--red); color: #fff; }
                                                            .btn-danger-text { background: transparent; color: var(--red); padding-inline: 12px; }
                                                            .btn-danger-text:hover { background: var(--red-tint); }
                                                            .btn-sm { min-height: 34px; padding: 4px 14px; font-size: 14px; }
                                                            .btn-block { width: 100%; }
                                                            .btn[disabled] { opacity: .6; cursor: progress; }
                                                            .icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
                                                            .icon-btn:hover { background: var(--line-soft); }
                                                            .inline-form { display: inline; }

                                                            .badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
                                                            .badge-paid, .badge-act-create { background: var(--green-tint); color: var(--green); }
                                                            .badge-partial, .badge-act-update { background: var(--amber-tint); color: var(--amber); }
                                                            .badge-unpaid { background: var(--blue-tint); color: var(--blue-dark); }
                                                            .badge-cancelled, .badge-act-cancel { background: var(--red-tint); color: var(--red); }
                                                            .badge-kind-in { background: var(--green-tint); color: var(--green); }
                                                            .badge-kind-out { background: var(--line-soft); color: var(--ink); }
                                                            .pill { display: inline-block; background: var(--paper); border-radius: 999px; padding: 0 10px; }

                                                            .money { white-space: nowrap; }
                                                            .money .cur { color: var(--ink-2); font-size: .86em; }
                                                            .money.strong .amt { font-weight: 700; }
                                                            .amt-in .amt { color: var(--green); }
                                                            .amt-out .amt { color: var(--red); }

                                                            .flashes { padding: 0 28px; max-width: 1180px; }
                                                            .flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; font-weight: 500; border: 1px solid; }
                                                            .flash-success { background: var(--green-tint); color: #0f5236; border-color: #bfe2cf; }
                                                            .flash-error { background: var(--red-tint); color: #8a2a1e; border-color: #f2c7c0; }
                                                            .flash-info { background: var(--blue-tint); color: var(--blue-dark); border-color: #c9daf1; }
                                                            .flash-close { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 2px; display: grid; }
                                                            .form-error { background: var(--red-tint); color: #8a2a1e; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 500; }
                                                            .notice { background: var(--amber-tint); color: #6d4706; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
                                                            .empty { color: var(--ink-2); padding: 22px 4px; text-align: center; }

                                                            .quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
                                                            .quick-action {
                                                              display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line);
                                                                border-radius: var(--radius); color: var(--ink); font-weight: 600; font-size: 16.5px; transition: border-color .12s, box-shadow .12s;
                                                                }
                                                                .quick-action:hover { text-decoration: none; border-color: var(--blue); box-shadow: var(--shadow); }
                                                                .quick-action .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; }
                                                                .qa-in .icon { background: var(--green-tint); color: var(--green); }
                                                                .qa-out .icon { background: var(--red-tint); color: var(--red); }
                                                                .qa-pay .icon { background: var(--blue-tint); color: var(--blue-dark); }
                                                                .qa-swap .icon { background: var(--brass-tint); color: var(--brass); }

                                                                .vault-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
                                                                .vault-card {
                                                                  display: flex; flex-direction: column; gap: 2px; padding: 20px 24px; border-radius: var(--radius); background: var(--navy); color: #fff;
                                                                    border-top: 4px solid var(--brass); position: relative; overflow: hidden;
                                                                    }
                                                                    .vault-card:hover { text-decoration: none; background: #183a5f; }
                                                                    .vault-card.vault-lyd { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--brass); }
                                                                    .vault-card.vault-lyd:hover { background: #fbfcfe; }
                                                                    .vault-name { font-weight: 500; opacity: .85; }
                                                                    .vault-balance { font-size: 34px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
                                                                    .vault-balance small { font-size: 16px; font-weight: 500; opacity: .8; }
                                                                    .vault-open { font-size: 13.5px; opacity: .7; }

                                                                    .chips { display: flex; gap: 6px; flex-wrap: wrap; }
                                                                    .chip { padding: 3px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; background: var(--surface); }
                                                                    .chip:hover { text-decoration: none; background: var(--paper); }
                                                                    .chip.is-on { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }

                                                                    .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
                                                                    .stat { padding: 16px 18px; border-inline-end: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 0 -1px -1px 0; }
                                                                    .stat h3 { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
                                                                    .stat-value { font-size: 20px; font-weight: 600; line-height: 1.5; }
                                                                    .stat-note, .stat-line { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
                                                                    .stat-line { font-size: 13.5px; color: var(--ink); }

                                                                    .feed li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
                                                                    .feed li:first-child { border-top: 0; }
                                                                    .dir { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
                                                                    .dir-in { background: var(--green-tint); color: var(--green); }
                                                                    .dir-out { background: var(--red-tint); color: var(--red); }
                                                                    .feed-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
                                                                    .feed-main .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
                                                                    .feed-side { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.5; font-weight: 600; }
                                                                    .feed-side .muted { font-size: 12.5px; font-weight: 400; }

                                                                    .field { margin-bottom: 14px; }
                                                                    .field label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 14.5px; }
                                                                    .optional { color: var(--ink-2); font-weight: 400; font-size: 12.5px; }
                                                                    .control { position: relative; display: flex; }
                                                                    input, select, textarea {
                                                                      font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #c3ccd9; border-radius: var(--radius-sm);
                                                                        padding: 9px 12px; width: 100%; min-height: 44px;
                                                                        }
                                                                        input[dir="ltr"] { text-align: right; }
                                                                        input[data-money], input[data-rate] { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 17px; }
                                                                        input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
                                                                        .suffix { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: 14px; pointer-events: none; }
                                                                        .control:has(.suffix) input { padding-inline-end: 62px; }
                                                                        .hint { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
                                                                        .field-error { color: var(--red); font-size: 13.5px; font-weight: 500; margin-top: 4px; }
                                                                        .has-error input, .has-error select, .has-error textarea { border-color: var(--red); background: #fffafa; }
                                                                        .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
                                                                        .form-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
                                                                        .group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 2px; margin-bottom: 14px; }
                                                                        .group legend { padding: 0 8px; font-weight: 600; font-size: 14.5px; }
                                                                        .calc { background: var(--brass-tint); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; }
                                                                        .calc strong { font-size: 18px; }
                                                                        .day-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
                                                                        .day-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
                                                                        .day-pick span { display: inline-block; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; }
                                                                        .day-pick input:checked + span { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); font-weight: 600; }
                                                                        .day-pick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

                                                                        .inv-summary, .summary-3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
                                                                        .inv-summary > div, .summary-3 > div { padding: 10px 14px; display: flex; flex-direction: column; border-inline-end: 1px solid var(--line); }
                                                                        .inv-summary > div:last-child, .summary-3 > div:last-child { border-inline-end: 0; }
                                                                        .inv-summary span:first-child, .summary-3 > div > span:first-child { color: var(--ink-2); font-size: 13px; }
                                                                        .summary-3 .money .amt, .inv-summary strong { font-size: 18px; font-weight: 600; }
                                                                        .is-key { background: var(--brass-tint); }
                                                                        .summary-3 { margin-bottom: 14px; }

                                                                        .filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
                                                                        .filters label { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); font-weight: 500; }
                                                                        .filters input, .filters select { min-height: 38px; padding: 5px 10px; font-size: 14.5px; min-width: 120px; }
                                                                        .filters .grow { flex: 1; min-width: 180px; }
                                                                        .filters .btn { min-height: 38px; }
                                                                        .inline-add { display: grid; grid-template-columns: 130px 1fr 1fr 1.5fr auto; gap: 0 10px; align-items: start; margin-bottom: 8px; }
                                                                        .inline-add .btn { margin-top: 29px; }

                                                                        .kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
                                                                        .kv > div:first-child { border-top: 0; }
                                                                        .kv dt { color: var(--ink-2); }
                                                                        .kv dd { font-weight: 500; text-align: end; }
                                                                        .kv-row { display: flex; flex-wrap: wrap; gap: 6px 32px; }
                                                                        .kv-row > div { border: 0; padding: 0; justify-content: flex-start; gap: 8px; }
                                                                        .kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
                                                                        .kv-grid > div:nth-child(2) { border-top: 0; }
                                                                        .kv-grid .span-2 { grid-column: span 2; }

                                                                        .disclosure { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
                                                                        .disclosure summary { cursor: pointer; color: var(--blue-dark); font-weight: 600; margin-bottom: 10px; }
                                                                        .vault-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
                                                                        .big-balance { font-size: 36px; font-weight: 700; line-height: 1.3; }
                                                                        .big-balance small { font-size: 17px; font-weight: 500; color: var(--ink-2); }

                                                                        .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
                                                                        .tab { padding: 10px 22px; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; }
                                                                        .tab:hover { text-decoration: none; background: var(--line-soft); }
                                                                        .tab.is-active { color: var(--blue-dark); border-bottom-color: var(--blue); }

                                                                        .table-wrap { overflow-x: auto; margin: 0 -6px; }
                                                                        .table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
                                                                        .table th { text-align: start; font-weight: 600; color: var(--ink-2); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
                                                                        .table td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
                                                                        .table tbody tr:hover { background: #f9fbfd; }
                                                                        .table .num { text-align: end; }
                                                                        .table .actions { text-align: end; white-space: nowrap; }
                                                                        .table tfoot th, .table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; padding-top: 12px; font-size: 14.5px; color: var(--ink); }
                                                                        .link-strong { font-weight: 600; }
                                                                        .is-cancelled td { color: #8b96a6; }
                                                                        .is-cancelled .money .amt { text-decoration: line-through; color: inherit; }
                                                                        .changes li { display: flex; flex-wrap: wrap; gap: 2px 8px; line-height: 1.6; }
                                                                        .ch-label { color: var(--ink-2); }
                                                                        .ch-label::after { content: ":"; }
                                                                        .ch-old { text-decoration: line-through; color: #8b96a6; }
                                                                        .ch-arrow { color: var(--ink-2); }
                                                                        .ch-new { font-weight: 600; }
                                                                        .table-log td:nth-child(4) { min-width: 220px; }
                                                                        .table-log td:nth-child(5) { min-width: 310px; }
                                                                        .pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }

                                                                        dialog.confirm { border: 0; border-radius: var(--radius); padding: 24px; max-width: min(420px, 92vw); box-shadow: 0 12px 40px rgba(20, 48, 79, .25); color: var(--ink); font: inherit; }
                                                                        dialog.confirm::backdrop { background: rgba(20, 48, 79, .4); }
                                                                        dialog.confirm p { font-weight: 500; font-size: 16.5px; margin-bottom: 18px; }
                                                                        .dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; }

                                                                        .auth-body { display: grid; place-items: start center; min-height: 100vh; padding: 6vh 16px 32px; }
                                                                        .auth-wrap { width: 100%; max-width: 400px; }
                                                                        .auth-wrap:has(.auth-card-wide) { max-width: 640px; }
                                                                        .auth-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; text-align: center; }
                                                                        .auth-brand h1 { font-size: 23px; font-weight: 700; }
                                                                        .auth-wrap .flashes { padding: 0; }
                                                                        .auth-card { padding: 26px; box-shadow: var(--shadow); }
                                                                        .auth-card h2 { margin-bottom: 14px; font-size: 19px; }
                                                                        .auth-card h2 + .muted { margin-top: -8px; }

                                                                        @media (max-width: 900px) {
                                                                          .shell { display: block; }
                                                                            .nav { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(280px, 84vw); z-index: 30; transform: translateX(100%); transition: transform .2s ease; box-shadow: none; }
                                                                              body.nav-open .nav { transform: none; box-shadow: 0 0 40px rgba(20, 48, 79, .3); }
                                                                                body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(20, 48, 79, .4); z-index: 20; }
                                                                                  .icon-btn.nav-toggle { display: grid; }
                                                                                    .stats { grid-template-columns: 1fr 1fr; }
                                                                                      .stat { padding: 12px 14px; }
                                                                                        .stat-value { font-size: 17px; }
                                                                                          .stat-transfer { grid-column: span 2; }
                                                                                            .topbar { padding: 10px 14px; position: sticky; top: 0; background: var(--paper); z-index: 10; gap: 6px; }
                                                                                              .page-title { font-size: 19px; }
                                                                                                .user-name, .topbar-user .btn span { display: none; }
                                                                                                  .topbar-user .btn { padding-inline: 8px; }
                                                                                                    .content { padding: 4px 14px 40px; }
                                                                                                      .flashes { padding: 0 14px; }
                                                                                                        .card { padding: 16px; }
                                                                                                          .quick { grid-template-columns: 1fr 1fr; gap: 10px; }
                                                                                                            .quick-action { padding: 12px; font-size: 15.5px; gap: 10px; }
                                                                                                              .vault-row, .vault-grid { grid-template-columns: 1fr; }
                                                                                                                .vault-balance { font-size: 30px; }
                                                                                                                  .inline-add { grid-template-columns: 1fr 1fr; }
                                                                                                                    .inline-add .btn { margin-top: 0; grid-column: span 2; }
                                                                                                                      .kv-grid { grid-template-columns: 1fr; }
                                                                                                                        .kv-grid > div:nth-child(2) { border-top: 1px solid var(--line-soft); }
                                                                                                                          .kv-grid .span-2 { grid-column: auto; }
                                                                                                                          }
                                                                                                                          @media (max-width: 720px) {
                                                                                                                            .grid-2 { grid-template-columns: 1fr; }
                                                                                                                              .filters label { flex: 1 1 44%; }
                                                                                                                                .filters .grow { flex-basis: 100%; }
                                                                                                                                  .filters input, .filters select { min-width: 0; }
                                                                                                                                    .inv-summary, .summary-3 { grid-template-columns: 1fr; }
                                                                                                                                      .inv-summary > div, .summary-3 > div { border-inline-end: 0; border-bottom: 1px solid var(--line); flex-direction: row; justify-content: space-between; align-items: center; }
                                                                                                                                        .inv-summary > div:last-child, .summary-3 > div:last-child { border-bottom: 0; }
                                                                                                                                          .table-wrap { margin: 0; overflow: visible; }
                                                                                                                                            .table thead { display: none; }
                                                                                                                                              .table, .table tbody, .table tfoot, .table tr, .table td, .table th { display: block; width: 100%; }
                                                                                                                                                .table tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 12px; margin-bottom: 10px; }
                                                                                                                                                  .table td, .table tfoot th { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border: 0; text-align: end; }
                                                                                                                                                    .table td::before { content: attr(data-label); color: var(--ink-2); font-size: 13px; flex: none; text-align: start; }
                                                                                                                                                      .table td:empty, .table td.actions:empty { display: none; }
                                                                                                                                                        .table td.actions { justify-content: flex-end; }
                                                                                                                                                          .table td.actions::before { content: none; }
                                                                                                                                                            .table tfoot tr { background: var(--paper); }
                                                                                                                                                              .table tfoot td, .table tfoot th { border: 0; padding-top: 5px; }
                                                                                                                                                                .table-log td:nth-child(4), .table-log td:nth-child(5) { min-width: 0; }
                                                                                                                                                                  .table td { padding: 3px 0; }
                                                                                                                                                                    .changes li { justify-content: flex-end; }
                                                                                                                                                                      .feed-side .muted { display: none; }
                                                                                                                                                                      }
                                                                                                                                                                      @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
                                                                                                                                                                      @media print { .nav, .topbar-user, .quick, .filters, .actions, .btn { display: none !important; } .shell { display: block; } }