        @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            font-family: 'Cairo', 'sans-serif';
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .dark ::-webkit-scrollbar-track {
            background: #2d3748;
        }

        ::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        #splash-screen {
            transition: opacity 0.5s ease-out;
        }

        .view {
            animation: fadeIn 0.4s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-content,
        #mobile-drawer {
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .nav-item.active svg,
        .nav-item.active span {
            color: #3b82f6;
        }

        .dark .nav-item.active svg,
        .dark .nav-item.active span {
            color: #60a5fa;
        }

        .nav-item.active svg {
            transform: scale(1.1);
        }

        .summary-card {
            animation: popIn 0.3s ease-out;
        }

        @keyframes popIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        :root {
            --brand-50: #fff7ed;
            --brand-100: #ffedd5;
            --brand-200: #fed7aa;
            --brand-400: #fb923c;
            --brand-500: #f97316;
            --brand-600: #ea580c;
            --brand-700: #c2410c;
            --surface: #ffffff;
            --surface-raised: #fffdf9;
            --field: #fff7ed;
            --page: #fffaf5;
            --ink: #1f2937;
            --muted: #6b7280;
            --success: #16a34a;
            --danger: #dc2626;
            --radius-sm: 12px;
            --radius-md: 20px;
            --radius-lg: 26px;
            --shadow-card: 0 10px 28px rgba(120, 53, 15, .08);
        }

        body {
            background: var(--page) !important;
            color: var(--ink);
        }

        .dark body,
        .dark {
            --page: #151210;
            --surface: #211b18;
            --surface-raised: #29211d;
            --field: #302823;
            --ink: #f5ede7;
            --muted: #b8aaa0;
        }

        .dark input:not([type="checkbox"]):not([type="radio"]),
        .dark select,
        .dark textarea {
            background-color: var(--field) !important;
            color: var(--ink) !important;
            border-color: rgba(254, 215, 170, .16) !important;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
        }
        .dark input::placeholder, .dark textarea::placeholder { color: #a99b91 !important; opacity: 1; }
        .dark select option { background: var(--field); color: var(--ink); }
        .dark input:focus, .dark select:focus, .dark textarea:focus { border-color: var(--brand-400) !important; outline: 0; }

        .bg-blue-500 { background-color: var(--brand-500) !important; }
        .bg-blue-600 { background-color: var(--brand-600) !important; }
        .bg-blue-100 { background-color: var(--brand-100) !important; }
        .text-blue-500, .text-blue-600 { color: var(--brand-600) !important; }
        .text-blue-700, .text-blue-800, .text-blue-900 { color: var(--brand-700) !important; }
        .dark .text-blue-400, .dark .text-blue-300, .dark .text-blue-200 { color: var(--brand-200) !important; }
        .dark .bg-blue-900\/50, .dark .bg-blue-900\/70 { background-color: rgba(194, 65, 12, .35) !important; }
        .hover\:bg-blue-600:hover, .hover\:bg-blue-700:hover { background-color: var(--brand-700) !important; }
        .focus\:ring-blue-500:focus { --tw-ring-color: var(--brand-400) !important; }
        .focus\:border-blue-500:focus { border-color: var(--brand-500) !important; }

        #desktop-nav, #mobile-drawer, header, nav.fixed.bottom-0 {
            border-color: rgba(249, 115, 22, .15) !important;
        }

        .nav-item.active {
            background: var(--brand-50);
            color: var(--brand-700) !important;
        }

        .dark .nav-item.active { background: rgba(249, 115, 22, .14); }
        .nav-item.active svg, .nav-item.active span,
        .dark .nav-item.active svg, .dark .nav-item.active span { color: var(--brand-600) !important; }

        #add-item-btn, .primary-action {
            background: linear-gradient(135deg, var(--brand-400), var(--brand-700)) !important;
            box-shadow: 0 12px 26px rgba(234, 88, 12, .32);
        }

        .dashboard { max-width: 1120px; margin: 0 auto; }
        .dashboard-welcome {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 6px 2px;
        }
        .dashboard-eyebrow, .section-kicker {
            margin: 0 0 4px;
            color: var(--brand-600);
            font-size: .78rem;
            font-weight: 700;
        }
        .dashboard-welcome h2, .section-heading h3 { margin: 0; font-weight: 700; }
        .dashboard-welcome h2 { font-size: clamp(1.45rem, 5vw, 2rem); }
        .dashboard-welcome p:not(.dashboard-eyebrow) { margin: 4px 0 0; color: #6b7280; font-size: .9rem; }
        .dark .dashboard-welcome p:not(.dashboard-eyebrow) { color: #a8a29e; }
        .quick-add {
            display: grid;
            place-items: center;
            width: 52px;
            height: 52px;
            border-radius: 18px;
            background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
            color: white;
            font-size: 2rem;
            font-weight: 400;
            box-shadow: 0 12px 24px rgba(234, 88, 12, .3);
        }
        .dashboard-header-actions { display: flex; align-items: center; gap: 10px; }
        .notification-button, .account-avatar {
            display: grid; place-items: center; width: 44px; height: 44px;
            border: 1px solid rgba(249,115,22,.14); border-radius: 15px;
            background: var(--surface); color: var(--brand-700); transition: transform .2s ease, background .2s ease;
        }
        .notification-button:hover, .account-avatar:hover { transform: translateY(-2px); background: var(--brand-50); }
        .notification-button svg { width: 21px; height: 21px; }
        .account-avatar { background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); color: #fff; font-weight: 700; border: 0; }
        .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
        .section-heading h3 { font-size: 1.15rem; }
        .swipe-hint { color: #9ca3af; font-size: .75rem; }

        .currency-carousel {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 2px 0 12px;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            direction: ltr;
        }
        .currency-carousel::-webkit-scrollbar { display: none; }
        .currency-card {
            position: relative;
            isolation: isolate;
            overflow: hidden;
            flex: 0 0 100%;
            min-height: 196px;
            padding: 24px;
            border-radius: 26px;
            color: white;
            direction: rtl;
            scroll-snap-align: center;
            background: linear-gradient(135deg, #fb923c 0%, #f97316 48%, #9a3412 100%);
            box-shadow: none;
            text-align: right;
            cursor: default;
            transition: transform .2s ease, box-shadow .2s ease;
        }
        .currency-card:focus-visible { outline: 3px solid #fed7aa; outline-offset: 3px; }
        .currency-card:hover { transform: translateY(-2px); box-shadow: none; }
        .currency-card:nth-child(3n + 2) { background: linear-gradient(135deg, #fdba74, #ea580c 52%, #7c2d12); }
        .currency-card:nth-child(3n) { background: linear-gradient(135deg, #f59e0b, #f97316 48%, #9a3412); }
        .currency-card-orb { position: absolute; border-radius: 999px; background: rgba(255,255,255,.14); pointer-events: none; }
        .currency-card-orb-one { width: 190px; height: 190px; top: -98px; left: -46px; }
        .currency-card-orb-two { width: 120px; height: 120px; bottom: -56px; right: -26px; border: 1px solid rgba(255,255,255,.2); background: transparent; }
        .currency-card-balance { direction: ltr; text-align: right; font-size: clamp(1.7rem, 8vw, 2.35rem); font-weight: 700; letter-spacing: -.04em; }
        .currency-badge { padding: 7px 10px; border: 1px solid rgba(255,255,255,.36); border-radius: 12px; background: rgba(255,255,255,.12); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
        .currency-eye { width:36px; height:36px; min-height:36px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.36); border-radius:12px; background:rgba(255,255,255,.12); color:#fff; font-size:1.1rem; }
        .currency-card-footer { display: flex; justify-content: space-between; margin-top: 62px; color: rgba(255,255,255,.86); font-size: .78rem; letter-spacing: .08em; }
        .currency-statement { min-height:0; padding:6px 10px; border:0; border-radius:10px; background:rgba(255,255,255,.16); color:#fff; font:inherit; font-weight:700; }
        .currency-carousel-dots { display: flex; justify-content: center; gap: 6px; min-height: 8px; }
        .currency-carousel-dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--brand-200); transition: width .2s ease, background .2s ease; }
        .currency-carousel-dots .is-active { width: 22px; background: var(--brand-600); }

        .dashboard-metrics-grid, .dashboard-debt-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
        .dashboard-metrics, .dashboard-debt-grid > div {
            background: var(--surface);
            border: 1px solid rgba(249, 115, 22, .11);
            border-radius: 20px;
            box-shadow: 0 8px 24px rgba(120, 53, 15, .06);
        }
        .dashboard-metrics { overflow: hidden; }
        .metric-heading { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--brand-50); color: var(--brand-700); font-size: .82rem; font-weight: 700; }
        .dark .metric-heading { background: rgba(249, 115, 22, .12); color: var(--brand-200); }
        .metric-net { direction: ltr; font-size: .85rem; }
        .metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
        .metric-grid > div { padding: 13px 16px; border-top: 1px solid rgba(249,115,22,.09); }
        .metric-grid > div:nth-child(odd) { border-left: 1px solid rgba(249,115,22,.09); }
        .metric-grid p { margin: 0 0 4px; color: #9ca3af; font-size: .72rem; }
        .metric-grid strong { direction: ltr; display: block; font-size: .84rem; color: var(--ink); }
        .dashboard-debt-card { min-width: 0; overflow: hidden; }
        .dashboard-debt-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
        .dashboard-debt-values > div { min-width: 0; padding: 10px; border-radius: 14px; background: var(--brand-50); }
        .dark .dashboard-debt-values > div { background: rgba(249, 115, 22, .10); }
        .dashboard-debt-values p { min-width: 0; }
        .dashboard-debt-amount { margin-top: 4px; overflow-wrap: anywhere; }
        .currency-amount { display: inline-flex; max-width: 100%; align-items: baseline; justify-content: center; gap: .38em; direction: ltr; unicode-bidi: isolate; white-space: normal; overflow-wrap: anywhere; }
        .currency-amount-number { min-width: 0; font-size: clamp(.82rem, 3.2vw, 1.12rem); font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
        .currency-amount-code { flex: 0 0 auto; font-size: .72em; font-weight: 700; letter-spacing: .04em; opacity: .78; }
        .dashboard-debt-amount .currency-amount { justify-content: flex-start; font-size: clamp(.95rem, 4vw, 1.25rem); }
        .monthly-currency-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(249,115,22,.16); }
        .monthly-currency-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); font-size: .84rem; font-weight: 700; }
        .monthly-currency-banner span:last-child { padding: 2px 8px; border-radius: 999px; background: var(--surface); font-size: .78rem; letter-spacing: .08em; box-shadow: inset 0 0 0 1px rgba(249,115,22,.18); }
        .dark .monthly-currency-banner { background: rgba(249,115,22,.14); color: var(--brand-200); }
        .dark .monthly-currency-banner span:last-child { background: rgba(36,27,22,.8); }
        .bottom-sheet-modal { justify-content: center; transition: background-color .28s ease; }
        .bottom-sheet {
            max-width: 680px;
            max-height: min(90dvh, 760px);
            margin: 0 auto;
            overflow: hidden;
            border-radius: 26px 26px 0 0;
            transform: translateY(105%);
            transition: transform .28s cubic-bezier(.2,.8,.2,1);
            will-change: transform;
        }
        .bottom-sheet.is-open { transform: translateY(0); }
        .bottom-sheet.is-dragging { transition: none; }
        .bottom-sheet-handle { width: 42px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: #d6d3d1; }
        .dark .bottom-sheet-handle { background: #57534e; }
        .bottom-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(249,115,22,.14); touch-action: none; cursor: grab; }
        .bottom-sheet-header:active { cursor: grabbing; }
        .bottom-sheet-close { position: relative; z-index: 2; display: grid; flex: 0 0 auto; place-items: center; width: 38px; min-height: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); font-size: 1.6rem; line-height: 1; touch-action: manipulation; }
        .bottom-sheet-form { max-height: calc(min(90dvh, 760px) - 80px); padding: 18px 2px 18px; overflow-y: auto; overscroll-behavior: contain; }
        .bottom-sheet-actions { position: sticky; bottom: -18px; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0 calc(4px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid rgba(249,115,22,.12); }
        .transaction-type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; border-radius: 15px; background: var(--brand-50); }
        .transaction-type-option { min-height: 42px; border-radius: 11px; color: #78716c; font-size: .92rem; font-weight: 700; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
        .transaction-type-option.is-expense-active { background: #fee2e2; color: #b91c1c; box-shadow: 0 2px 8px rgba(185,28,28,.15); }
        .transaction-type-option.is-income-active { background: #dcfce7; color: #15803d; box-shadow: 0 2px 8px rgba(21,128,61,.15); }
        .dark .transaction-type-toggle { background: rgba(249,115,22,.12); }
        .dark .transaction-type-option.is-expense-active { background: rgba(185,28,28,.30); color: #fecaca; }
        .dark .transaction-type-option.is-income-active { background: rgba(21,128,61,.30); color: #bbf7d0; }
        .category-chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
        .category-chip { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 10px; border: 1px solid rgba(249,115,22,.18); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: .82rem; font-weight: 700; transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease; }
        .category-chip:hover { border-color: var(--brand-400); transform: translateY(-1px); }
        .category-chip.is-active { border-color: var(--brand-600); background: var(--brand-100); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-600); }
        .dark .category-chip { background: rgba(249,115,22,.06); }
        .dark .category-chip.is-active { background: rgba(249,115,22,.24); color: var(--brand-100); }
        .accounts-view { max-width: 1180px; margin: 0 auto; }
        .accounts-hero { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
        .accounts-hero h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2rem); font-weight: 700; }
        .accounts-hero p:not(.section-kicker) { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
        .accounts-count { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .76rem; font-weight: 700; }
        .dark .accounts-count { background: rgba(249,115,22,.15); color: var(--brand-200); }
        .accounts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
        .account-overview-card { min-width: 0; padding: 18px; overflow: hidden; border: 1px solid rgba(249,115,22,.14); border-radius: 20px; background: var(--surface); color: var(--ink); text-align: right; box-shadow: var(--shadow-card); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
        .account-overview-card:hover { transform: translateY(-3px); border-color: var(--brand-400); box-shadow: 0 14px 28px rgba(120,53,15,.12); }
        .account-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        .account-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--brand-100); color: var(--brand-700); }
        .account-currency-badge { padding: 5px 9px; border: 1px solid rgba(249,115,22,.18); border-radius: 999px; color: var(--brand-700); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
        .account-card-name { margin: 16px 0 2px; font-size: 1.05rem; font-weight: 700; }
        .account-card-label { margin: 0; color: var(--muted); font-size: .74rem; }
        .account-card-balance { margin: 8px 0 16px; overflow-wrap: anywhere; color: var(--ink); font-size: clamp(1.38rem, 4.5vw, 2rem); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
        .account-card-balance small { margin-inline-start: 4px; color: var(--muted); font-size: .42em; letter-spacing: .06em; }
        .account-card-link { color: var(--brand-600); font-size: .78rem; font-weight: 700; }
        .accounts-action-card { padding: clamp(16px, 3vw, 25px); border: 1px solid rgba(249,115,22,.14); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card); }
        .accounts-action-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
        .accounts-action-heading h3 { margin: 0; font-size: 1.08rem; font-weight: 700; }
        .accounts-action-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; background: var(--brand-100); color: var(--brand-700); font-size: 1.3rem; }
        .accounts-action-fields { display: grid; gap: 12px; align-items: end; }
        .internal-transfer-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .exchange-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .accounts-action-card label { color: var(--muted); font-size: .78rem; font-weight: 700; }
        .account-action-primary { width: 100%; margin-top: 16px; padding: 12px 16px; border-radius: 13px; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; font-weight: 700; box-shadow: 0 8px 18px rgba(194,65,12,.20); transition: transform .18s ease, box-shadow .18s ease; }
        .account-action-primary:hover { transform: translateY(-1px); box-shadow: 0 11px 22px rgba(194,65,12,.28); }
        .exchange-swap-btn { display: grid; place-items: center; flex: 0 0 auto; width: 44px; min-height: 44px; border-radius: 12px; background: var(--brand-100); color: var(--brand-700); transition: background-color .18s ease, transform .18s ease; }
        .exchange-swap-btn:hover { background: var(--brand-200); transform: rotate(180deg); }
        .exchange-result-card { margin-top: 16px; padding: 14px; border: 1px solid rgba(249,115,22,.16); border-radius: 15px; background: var(--brand-50); text-align: center; }
        .exchange-result-card p:first-child { margin: 0; color: var(--brand-700); font-size: .76rem; font-weight: 700; }
        .exchange-result-card p:last-child { margin: 4px 0 0; color: var(--ink); font-size: clamp(1.25rem, 4vw, 1.8rem); font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums; }
        .dark .account-overview-card, .dark .accounts-action-card { background: var(--surface); border-color: rgba(254,215,170,.12); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
        .dark .account-card-icon, .dark .accounts-action-icon, .dark .exchange-swap-btn, .dark .exchange-result-card { background: rgba(249,115,22,.14); color: var(--brand-200); }
        .dark .account-currency-badge { border-color: rgba(254,215,170,.18); color: var(--brand-200); }
        .quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .quick-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 126px; padding: 18px 12px; border: 1px solid rgba(249,115,22,.16); border-radius: 20px; background: var(--surface); color: var(--ink); font-size: .86rem; font-weight: 700; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
        .quick-action:hover { transform: translateY(-2px); border-color: var(--brand-400); }
        .quick-action:hover { box-shadow: 0 10px 22px rgba(194,65,12,.12); }.quick-action span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-100); color: var(--brand-700); font-size: 1.55rem; }
        .text-link { color: var(--brand-600); font-size: .82rem; font-weight: 700; }
        .empty-state-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--brand-100); font-size: 1.75rem; }

        .mobile-add-action {
            position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center;
            min-width: 56px; color: var(--brand-700); font-size: .69rem; font-weight: 700;
        }
        .mobile-add-action span {
            display: grid; place-items: center; width: 48px; height: 48px; margin-top: -25px;
            border: 4px solid var(--page); border-radius: 17px; background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
            color: #fff; font-size: 1.8rem; line-height: 1; box-shadow: 0 10px 22px rgba(194,65,12,.3);
        }
        .mobile-add-action small { margin-top: 2px; font-size: .69rem; }
        nav.fixed.bottom-0 { height: 70px; }
        #mobile-bottom-nav { height: 70px; align-items: center; }
        #mobile-bottom-nav .nav-item { min-height: 52px; }
        .nav-item.active { position: relative; }
        #mobile-bottom-nav .nav-item.active { background: transparent; }
        #mobile-bottom-nav .nav-item.active::after { content: ''; position: absolute; top: 2px; width: 18px; height: 3px; border-radius: 99px; background: var(--brand-500); }

        button, input, select, textarea { min-height: 44px; }
        .currency-card, .quick-action { min-height: 44px; }

        .bg-white.dark\\:bg-gray-800, .bg-gray-50.dark\\:bg-gray-800 { border-color: rgba(249, 115, 22, .10); }
        .dark .notification-button { background: rgba(249,115,22,.1); color: var(--brand-200); }
        header, #desktop-nav, #mobile-drawer, nav.fixed.bottom-0, .modal-content {
            background-color: var(--surface) !important;
            border-color: rgba(249,115,22,.14) !important;
        }
        .modal-content { border: 1px solid rgba(249,115,22,.14); box-shadow: 0 20px 48px rgba(67,20,7,.22) !important; }
        #main-content .bg-white, #main-content .bg-gray-50 { background-color: var(--surface) !important; border: 1px solid rgba(249,115,22,.11); box-shadow: var(--shadow-card); }
        #main-content .bg-gray-100 { background-color: var(--brand-50) !important; }
        .dark #main-content .bg-gray-100 { background-color: var(--field) !important; }
        .dark #main-content input:not([type="checkbox"]):not([type="radio"]),
        .dark #main-content select,
        .dark #main-content textarea { background-color: var(--field) !important; color: var(--ink) !important; }
        .dark #main-content .dark\\:bg-gray-800 { background-color: var(--surface) !important; }
        .dark #main-content .dark\\:bg-gray-700 { background-color: rgba(249,115,22,.12) !important; }

        @media (min-width: 768px) {
            .currency-carousel { padding: 2px 0 12px; }
            .currency-card { flex-basis: 100%; }
            .currency-carousel-dots, .swipe-hint { display: flex; }
            .dashboard-metrics-grid, .dashboard-debt-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
        }

        @media (max-width: 767px) {
            #main-content { padding-top: 84px !important; padding-bottom: 94px !important; }
            #add-item-btn { display: none !important; }
            .dashboard { padding-bottom: 4px; }
            .dashboard-welcome { align-items: flex-start; }
            .currency-carousel { padding-inline: 0; }
            .currency-card { flex-basis: 100%; min-height: 188px; padding: 22px; }
            .currency-card-footer { margin-top: 55px; }
            .dashboard-debt-values { gap: 8px; }
            .dashboard-debt-values > div { padding: 9px; }
            .currency-amount-number { font-size: clamp(.76rem, 3.8vw, .98rem); }
            .bottom-sheet { max-width: none; }
            .category-chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .category-chip { padding-inline: 6px; font-size: .74rem; }
            .accounts-hero { align-items: flex-start; flex-direction: column; }
            .internal-transfer-fields, .exchange-fields { grid-template-columns: 1fr; }
            .accounts-grid { grid-template-columns: 1fr; }
        }
