:root {
    --yljz-primary: #234f46;
    --yljz-income: #3e8062;
    --yljz-expense: #b66c52;
    --yljz-muted: #7c897f;
    --yljz-border: #e5e9df;
    --bs-primary-rgb: 35, 79, 70;
    --bs-success-rgb: 62, 128, 98;
    --bs-danger-rgb: 182, 108, 82;
    --bs-warning-rgb: 197, 158, 83;
    --bs-secondary-color: #7c897f;
    --bs-body-color: #293e35;
    --bs-body-bg: #f6f5f0;
    --bs-border-color: #e5e9df;
    --bs-link-color: #3a6957;
    --bs-link-color-rgb: 58, 105, 87;
    --bs-link-hover-color: #234f46;
    --bs-link-hover-color-rgb: 35, 79, 70;
}

body {
    background: #f6f5f0;
    color: #293e35;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #93af8c; outline-offset: 4px; }
::selection { background: #dce8d1; color: #234f46; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 2000; padding: 12px 20px; border-radius: 10px; background: #234f46; color: white; }
.skip-link:focus { top: 12px; color: white; }

.app-sidebar {
    width: 236px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 32px 20px 24px;
    background: #eef0e7;
    border-right: 1px solid #e2e6d9;
}
.brand { display: flex; align-items: center; gap: 12px; color: #234f46; font-size: 20px; font-weight: 650; letter-spacing: 1px; padding: 0 6px; }
.brand:hover { color: #234f46; }
.brand small { display: block; margin-top: 4px; color: #8a947f; font-size: 10px; font-weight: 400; letter-spacing: 1.4px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 46px; border-radius: 14px; background: #234f46; color: #edf0dc; font-size: 24px; }
.sidebar-label { margin: 46px 16px 14px; color: #939d88; font-size: 10px; letter-spacing: 2px; }
.app-sidebar .nav { gap: 8px; }
.app-sidebar .nav-link { display: flex; align-items: center; gap: 14px; padding: 13px 17px; border-radius: 12px; color: #73806d; font-size: 14px; transition: background .15s, color .15s; }
.app-sidebar .nav-link .bi { font-size: 18px; }
.app-sidebar .nav-link:hover { background: #e2e8d9; color: #234f46; }
.app-sidebar .nav-link.active { color: #ffffff; background: #234f46; box-shadow: 0 5px 12px #234f4612; }
.sidebar-action { padding: 28px 0; }
.sidebar-action .btn { font-size: 13px; background: #dee7d2; border-color: #dee7d2; color: #456443; }
.sidebar-action .btn:hover { background: #d3dfc5; border-color: #d3dfc5; }
.sidebar-note { margin-top: auto; padding: 36px 12px 0; color: #8a957e; }
.sidebar-note > .bi { display: block; margin-bottom: 14px; color: #94a182; font-size: 32px; }
.sidebar-note strong { color: #718365; font-size: 12px; font-weight: 500; }
.sidebar-note p { margin: 8px 0 30px; font-size: 11px; line-height: 1.8; }
.sidebar-note > span { font-size: 10px; letter-spacing: 2px; }
.app-main { min-height: 100vh; margin-left: 236px; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 16px 38px; border-bottom: 1px solid #e9ece2; background: #fafaf6; gap: 20px; }
.topbar-location { display: flex; align-items: center; gap: 16px; min-width: 0; font-size: 12px; }
.topbar-location > span { color: #909b87; white-space: nowrap; }
.topbar-location > .bi { font-size: 9px; color: #a1ab97; }
.topbar-location strong { font-weight: 500; overflow-wrap: anywhere; }
.topbar-right { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.topbar-caption { color: #939c8a; font-size: 11px; letter-spacing: 1px; }
.user-menu { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #516447; padding: 0; font-size: 13px; }
.user-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #e7ecdc; color: #708363; font-size: 20px; }
.user-name { max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dropdown-menu { --bs-dropdown-link-active-bg: #234f46; --bs-dropdown-link-hover-bg: #f0f4e8; padding: 8px; border: 1px solid var(--yljz-border); border-radius: 14px; box-shadow: 0 12px 30px #293e3510; font-size: 13px; }
.dropdown-item { padding: 9px 12px; border-radius: 8px; }
.app-content { max-width: 1500px; margin: 0 auto; padding: 34px 38px; }
.app-content:focus { outline: none; }
.app-footer { padding: 8px 24px 28px; color: #a1aa98; font-size: 10px; text-align: center; letter-spacing: 1px; }
.app-footer span { margin: 0 10px; }

.eyebrow { margin-bottom: 10px; color: #7e9072; font-size: 10px; letter-spacing: 2px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-heading h1 { margin: 0; color: #293e35; font-size: 30px; line-height: 1.4; font-weight: 600; letter-spacing: .5px; overflow-wrap: anywhere; }
.page-heading p, .page-description { margin: 10px 0 0; color: #87917f; font-size: 12px; line-height: 1.8; }
.heading-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.date-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #e1e6d8; border-radius: 10px; color: #7a8870; font-size: 11px; }

.btn { --bs-btn-border-radius: 10px; --bs-btn-font-size: 13px; --bs-btn-padding-x: 18px; --bs-btn-padding-y: 10px; --bs-btn-font-weight: 500; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn-sm { --bs-btn-font-size: 12px; --bs-btn-padding-x: 12px; --bs-btn-padding-y: 7px; --bs-btn-border-radius: 8px; }
.btn-primary { --bs-btn-bg: #234f46; --bs-btn-border-color: #234f46; --bs-btn-hover-bg: #193f37; --bs-btn-hover-border-color: #193f37; --bs-btn-active-bg: #193f37; --bs-btn-active-border-color: #193f37; --bs-btn-disabled-bg: #234f46; --bs-btn-disabled-border-color: #234f46; --bs-btn-focus-shadow-rgb: 107, 142, 111; }
.btn-outline-primary { --bs-btn-color: #3e6952; --bs-btn-border-color: #c8d6be; --bs-btn-hover-bg: #234f46; --bs-btn-hover-border-color: #234f46; --bs-btn-active-bg: #234f46; --bs-btn-active-border-color: #234f46; }
.btn-outline-secondary { --bs-btn-color: #7b8870; --bs-btn-border-color: #e0e5d7; --bs-btn-hover-color: #385939; --bs-btn-hover-bg: #edf2e5; --bs-btn-hover-border-color: #d5dfc8; --bs-btn-active-color: #385939; --bs-btn-active-bg: #e5eddb; --bs-btn-active-border-color: #d5dfc8; }
.btn-outline-success { --bs-btn-color: #4c7a57; --bs-btn-border-color: #c7d9c1; --bs-btn-hover-bg: #3e8062; --bs-btn-hover-border-color: #3e8062; --bs-btn-active-bg: #3e8062; --bs-btn-active-border-color: #3e8062; }
.btn-outline-danger { --bs-btn-color: #ad7c64; --bs-btn-border-color: #eeded2; --bs-btn-hover-bg: #b66c52; --bs-btn-hover-border-color: #b66c52; --bs-btn-active-bg: #b66c52; --bs-btn-active-border-color: #b66c52; }
.card { --bs-card-border-color: #e6eadd; --bs-card-border-radius: 18px; --bs-card-inner-border-radius: 17px; background: #fff; box-shadow: 0 4px 18px #33422c03; }
.card-body { padding: 24px; }
.card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 21px 24px; background: #fff; border-bottom: 1px solid #eff1e8; font-size: 14px; }
.card-header h2 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.card-header p { margin: 5px 0 0; color: #99a08e; font-size: 11px; }
.card-footer { padding: 16px 24px; border-top: 1px solid #edf0e5; gap: 12px; flex-wrap: wrap; }
.section-link { display: inline-flex; align-items: center; gap: 8px; color: #7a8c6d; font-size: 11px; white-space: nowrap; }
.section-link:hover { color: #234f46; }
.form-label { margin-bottom: 8px; color: #52654c; font-size: 12px; }
.form-control, .form-select { min-height: 43px; min-width: 0; padding: 10px 13px; border-color: #e1e7d8; border-radius: 10px; background-color: #fafbf7; color: #344c3c; font-size: 13px; }
.form-control-sm, .form-select-sm { min-height: 39px; font-size: 12px; }
.form-control::placeholder { color: #a0aa95; }
.form-control:focus, .form-select:focus { border-color: #93af85; background-color: #fff; box-shadow: 0 0 0 3px #234f4610; }
.form-control-lg { min-height: 50px; font-size: 17px; }
.input-group-text { border-color: #e1e7d8; border-radius: 10px; background: #f0f4e9; color: #7d9070; font-size: 15px; }
.form-text { color: #8e9b80; font-size: 11px; line-height: 1.8; }
.form-check-input:checked { background-color: #234f46; border-color: #234f46; }
.form-check-input:focus { box-shadow: 0 0 0 3px #234f4615; border-color: #8ea481; }
.filter-card .card-body { padding: 22px 24px; }
.filter-card .row { --bs-gutter-x: 16px; --bs-gutter-y: 14px; }
.filter-title { margin-bottom: 16px; color: #697e5e; font-size: 12px; font-weight: 500; }
.report-filter { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.month-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.month-filter .form-control { width: 170px; }
.month-filter .form-label { white-space: nowrap; }

.table { --bs-table-color: #43573c; --bs-table-bg: #fff; --bs-table-border-color: #edf0e5; --bs-table-hover-bg: #f8faf4; margin-bottom: 0; font-size: 13px; }
.table > :not(caption) > * > * { padding: 16px 20px; vertical-align: middle; }
.table th { padding-top: 12px; padding-bottom: 12px; background-color: #f8f9f4; color: #8c9781; font-size: 11px; font-weight: 500; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td { overflow-wrap: anywhere; }
.table td.text-end { font-variant-numeric: tabular-nums; }
.table td:last-child.text-end { white-space: nowrap; }
.table td .btn { font-size: 11px; padding: 5px 9px; }
.table td[colspan] { white-space: normal !important; }
.table:has(td[colspan]) { min-width: 0; }
.table:has(td[colspan]) thead { display: none; }
.table-responsive { border-radius: 0 0 17px 17px; }
.table-card > .table-responsive:first-child { border-radius: 17px; }
.table-identity { display: flex; align-items: center; gap: 12px; min-width: 135px; }
.table-identity strong { display: block; font-size: 13px; font-weight: 500; }
.table-identity small { display: block; margin-top: 4px; color: #9aa48d; font-size: 10px; }
.table-identity .mobile-account { display: none; }
.category-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; background: #edf2e6; color: #81916c; font-size: 18px; }
.text-income, .amount-income { color: var(--yljz-income) !important; }
.text-expense, .amount-expense { color: var(--yljz-expense) !important; }
.amount-income, .amount-expense { font-weight: 600; font-variant-numeric: tabular-nums; }
.income-tint { background: #eaf2e7; color: #6e9268; }
.expense-tint { background: #f6ece1; color: #b2966b; }
.balance-tint { background: #edf0e7; color: #889575; }
.badge { padding: 6px 9px; border-radius: 7px; font-size: 10px; font-weight: 500; line-height: 1.3; }
.badge.text-bg-success { color: #65835a !important; background-color: #eaf2e4 !important; }
.badge.text-bg-danger { color: #b4785d !important; background-color: #f9ece3 !important; }
.badge.text-bg-warning { color: #a68a42 !important; background-color: #f9f0d9 !important; }
.badge.text-bg-light { color: #809069 !important; background-color: #f1f4ea !important; }
.empty-state { padding: 44px 20px; text-align: center; }
.empty-state > .bi { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 15px; border-radius: 18px; background: #f0f4e7; color: #96a680; font-size: 26px; }
.empty-state h3 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.empty-state p { color: #98a08c; font-size: 12px; }
.empty-state.compact { padding: 24px 12px; }
.pagination { --bs-pagination-color: #68825b; --bs-pagination-border-color: #e5eadb; --bs-pagination-hover-color: #234f46; --bs-pagination-hover-bg: #f0f4e8; --bs-pagination-hover-border-color: #d8e2cb; --bs-pagination-active-bg: #234f46; --bs-pagination-active-border-color: #234f46; --bs-pagination-focus-box-shadow: 0 0 0 3px #234f4612; margin-bottom: 0; }
.card-footer nav { max-width: 100%; overflow-x: auto; }
.alert { --bs-alert-border-radius: 12px; font-size: 13px; }
.alert-success { --bs-alert-bg: #edf5e7; --bs-alert-color: #507446; --bs-alert-border-color: #d8e6cc; }
.alert-danger { --bs-alert-bg: #faeee7; --bs-alert-color: #a96d50; --bs-alert-border-color: #edd9ca; }
.alert-warning { --bs-alert-bg: #fbf4e4; --bs-alert-color: #9b834e; --bs-alert-border-color: #eee2c4; }

.dashboard-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; padding: 32px 38px; border-radius: 22px; background: #234f46; color: #fff; box-shadow: 0 12px 28px #234f4610; }
.dashboard-hero::after { position: absolute; right: -100px; top: -155px; width: 460px; height: 460px; border: 1px solid #e2edd115; border-radius: 50%; box-shadow: 0 0 0 55px #e2edd105; content: ""; pointer-events: none; }
.asset-overview { min-width: 0; position: relative; z-index: 1; }
.hero-label { color: #c0d0bf; font-size: 12px; letter-spacing: 1px; }
.hero-label span { margin-left: 15px; padding: 4px 7px; border: 1px solid #b6d1ad33; border-radius: 5px; color: #a0b89a; font-size: 9px; }
.hero-amount { margin: 12px 0 13px; font-size: clamp(32px, 3.5vw, 50px); font-weight: 600; letter-spacing: 1px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.3; }
.hero-amount > span { margin-right: 12px; color: #d4ddc3; font-size: .55em; font-weight: 400; }
.hero-link { display: inline-flex; align-items: center; gap: 12px; color: #a5bca0; font-size: 11px; }
.hero-link:hover { color: white; }
.hero-aside { min-width: 200px; padding-right: 20px; position: relative; z-index: 1; color: #cfddbd; text-align: center; }
.hero-emblem { font-size: 34px; color: #bccda8; }
.hero-aside p { margin: 8px 0; font-size: 13px; }
.hero-aside > span { color: #90ad8c; font-size: 10px; }
.summary-row { margin-top: 6px; margin-bottom: 28px; }
.stat-card .card-body { position: relative; padding: 22px 24px; }
.stat-label { margin-bottom: 8px; color: #8a957f; font-size: 11px; }
.stat-value { color: #344f3c; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.4; overflow-wrap: anywhere; }
.stat-icon { position: absolute; right: 22px; top: 21px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; font-size: 17px; }
.stat-footnote { margin-top: 9px; color: #a2aa98; font-size: 10px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.dashboard-main, .dashboard-aside { display: grid; gap: 24px; min-width: 0; }
.freshness-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 14px 24px; background: #faf9f1; color: #998d64; font-size: 11px; }
.freshness-summary > span { display: inline-flex; align-items: center; gap: 7px; }
.freshness-summary a { margin-left: auto; color: #8d9976; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #c9b071; }
.status-dot.expired { background: #c8987e; }
.item-title { margin-bottom: 3px; font-weight: 500; }
.expense-rank { margin-bottom: 14px; }
.rank-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 12px; }
.rank-label > span { min-width: 0; overflow-wrap: anywhere; }
.rank-label .bi { margin-right: 8px; color: #98a382; }
.rank-label strong { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress { height: 5px; border-radius: 6px; background: #f0f2e9; }
.progress-bar { background: #849775; border-radius: 6px; }
.expense-rank:nth-child(2n) .progress-bar { background: #c2ad79; }
.expense-rank:nth-child(3n) .progress-bar { background: #a9b898; }
.rank-percent { margin-top: 4px; color: #a3ad96; font-size: 9px; text-align: right; }
.report-link { display: flex; justify-content: space-between; padding: 13px 15px; margin-top: 18px; border-radius: 9px; background: #f5f7ef; color: #859376; font-size: 11px; }
.account-list .list-group-item { display: flex; align-items: center; gap: 12px; padding: 17px 22px; border-color: #eef1e6; }
.account-list .empty-state { width: 100%; }
.account-symbol { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: #f3f1e5; color: #a6956f; font-size: 16px; }
.account-details { flex: 1; min-width: 0; }
.account-details strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.account-details small { display: block; margin-top: 4px; color: #a2ab96; font-size: 10px; }
.account-value { max-width: 46%; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.freshness-shortcut { display: flex; align-items: center; gap: 14px; padding: 23px; border: 1px solid #e1e7d4; border-radius: 17px; background: #edf1e2; color: #748967; }
.shortcut-icon { font-size: 28px; }
.freshness-shortcut strong { display: block; font-size: 13px; font-weight: 500; }
.freshness-shortcut small { display: block; margin-top: 5px; color: #95a186; font-size: 10px; }
.freshness-shortcut > .bi { margin-left: auto; }
.chart-box { width: 100%; height: 310px; }
.chart-box > .empty-state { padding: 50px 20px; }
.account-total { padding: 25px 30px; margin-bottom: 24px; border: 1px solid #e0e7d5; border-radius: 18px; background: #edf1e6; }
.account-total .stat-value { margin-top: 7px; color: #3f6247; font-size: 34px; }
.page-note { display: flex; gap: 10px; margin-top: 20px; color: #92a081; font-size: 11px; line-height: 1.8; }
.data-table { min-width: 720px; }
.expiry-table { min-width: 850px; }
.category-table { min-width: 370px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(200px, 300px); justify-content: center; align-items: start; gap: 28px; }
.editor-card { min-width: 0; }
.editor-card .card-body { padding: 30px; }
.editor-section { padding: 0 0 20px; border-bottom: 1px solid #edf0e5; font-size: 13px; color: #7d906f; }
.editor-section h2 { margin: 0; font-size: 15px; }
.editor-section p { margin: 7px 0 0; color: #929e86; font-size: 12px; }
.form-note-panel { padding: 30px 26px; border: 1px solid #e0e7d4; border-radius: 18px; background: #eef2e6; }
.form-note-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 16px; background: #e0e9d2; color: #7c9468; font-size: 23px; }
.form-note-panel h2 { font-size: 17px; line-height: 1.5; margin-bottom: 12px; color: #58734a; }
.form-note-panel p, .note-list { color: #8b9a7e; font-size: 12px; line-height: 1.9; }
.note-list { padding-left: 18px; margin-top: 20px; }
.note-list li { margin-top: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid #edf0e5; padding-top: 24px; margin-top: 28px; }
.form-actions .btn-primary { min-width: 140px; }
.amount-entry { padding: 22px; margin: 22px 0; border: 1px solid #e9edde; border-radius: 14px; background: #f8faf4; }
.amount-entry .input-group-text { background: transparent; border: 0; padding-left: 0; font-size: 26px; color: #6b8460; }
.amount-entry .form-control { background: transparent; border: 0; font-size: 36px; font-weight: 600; color: #234f46; }
.type-toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: #f1f4e9; }
.type-toggle .btn { border: 0; border-radius: 9px !important; min-width: 100px; }
#iconPicker { padding: 15px; border-radius: 12px; background: #f8faf4; }
#iconPicker .btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; font-size: 17px; border-color: transparent; }

.auth-wrapper { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100dvh; padding: 24px; gap: 24px; }
.auth-story { display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; padding: clamp(32px, 5vw, 84px); border-radius: 28px; background: #234f46; color: #fff; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 60px; color: #eef0dc; font-size: 21px; font-weight: 600; letter-spacing: 2px; }
.auth-brand .brand-mark { border: 1px solid #dbe8cc33; color: #d0deba; background: #315e50; }
.auth-eyebrow { color: #a6bea0; font-size: 11px; letter-spacing: 3px; margin-bottom: 18px; }
.auth-story h1 { max-width: 480px; margin: 0 0 22px; color: #f4f4e7; font-size: clamp(32px, 3.4vw, 54px); font-weight: 500; line-height: 1.55; letter-spacing: 2px; }
.auth-story > p { max-width: 380px; color: #abc0a0; font-size: 13px; line-height: 2; }
.story-illustration { position: relative; width: 100%; height: 230px; margin: 20px 0; }
.story-book { position: absolute; top: 15px; left: 20%; width: 165px; height: 186px; border-radius: 6px 20px 20px 6px; border-left: 12px solid #d7d3b8; background: #eeebd7; transform: rotate(-12deg); box-shadow: 22px 20px 0 #b8cb9a12, 0 20px 35px #102f2930; }
.story-book::before { position: absolute; inset: 42px 28px; background: repeating-linear-gradient(to bottom, #b9c1a1 0, #b9c1a1 2px, transparent 2px, transparent 25px); content: ""; }
.story-book::after { position: absolute; top: 0; right: 28px; width: 18px; height: 38px; border-radius: 0 0 3px 3px; background: #ccab69; content: ""; }
.story-leaf { position: absolute; top: 88px; left: calc(20% + 138px); width: 80px; height: 120px; border: 4px solid #234f46; border-radius: 85% 0 85% 0; background: #a8b88b; transform: rotate(25deg); }
.story-leaf::after { position: absolute; left: 36px; top: 18px; height: 95px; width: 2px; background: #768e63; transform: rotate(30deg); content: ""; }
.auth-features { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; color: #b9caaa; font-size: 11px; }
.auth-features span { display: inline-flex; align-items: center; gap: 8px; }
.auth-stage { display: flex; align-items: center; justify-content: center; padding: 30px; }
.auth-card { width: 100%; max-width: 450px; border-color: transparent; background: transparent; box-shadow: none; }
.auth-card .card-body { padding: 20px; }
.auth-form-heading { margin-bottom: 32px; }
.auth-form-heading h2 { color: #2b4636; font-size: 29px; font-weight: 600; margin-bottom: 10px; }
.auth-form-heading p { color: #8b9780; font-size: 12px; line-height: 1.8; }
.auth-card .form-control { min-height: 47px; background: #fff; }
.auth-card .input-group-text { background: #fff; }
.auth-card .btn[type="submit"] { min-height: 46px; margin-top: 8px; }
.auth-card form + div { color: #8d9982; }
.auth-card form + div a { margin-left: 8px; font-weight: 500; }
.error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 30px; }
.error-card { width: 100%; max-width: 580px; padding: 55px 40px; border: 1px solid #e3e9d9; border-radius: 28px; background: #fff; text-align: center; }
.error-brand { display: inline-flex; align-items: center; gap: 12px; color: #234f46; font-size: 17px; font-weight: 600; }
.error-code { margin: 28px 0 8px; color: #9dae89; font-size: 100px; line-height: 1.3; font-weight: 500; letter-spacing: 8px; }
.error-card h1 { margin-bottom: 16px; font-size: 23px; }
.error-card p { color: #8c9a7d; font-size: 13px; margin-bottom: 26px; }
.status-card { max-width: 660px; margin: 40px auto; padding: 50px 30px; text-align: center; }
.status-icon { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin: 0 auto 24px; border-radius: 22px; background: #f5f0dd; color: #b49d66; font-size: 30px; }
.status-card h1 { font-size: 23px; }
.status-card p { margin: 20px 0 28px; color: #839175; overflow-wrap: anywhere; }

@media (min-width: 1600px) {
    .app-content { padding: 42px 52px; }
    .dashboard-columns { grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); }
}
@media (max-width: 1199.98px) {
    .app-sidebar { width: 214px; padding-left: 16px; padding-right: 16px; }
    .app-main { margin-left: 214px; }
    .app-content { padding: 28px; }
    .app-topbar { padding: 18px 28px; }
    .topbar-caption { display: none; }
    .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
    .dashboard-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .freshness-shortcut { grid-column: 1 / -1; }
    .form-layout { grid-template-columns: minmax(0, 1fr); }
    .form-note-panel { padding: 24px; }
    .form-note-icon { float: left; margin: 0 18px 12px 0; }
}
@media (max-width: 991.98px) {
    .app-sidebar { position: relative; width: 100%; padding: 18px 24px 12px; border-right: 0; border-bottom: 1px solid #dfe5d5; overflow: visible; }
    .app-sidebar .brand { padding: 0; font-size: 18px; }
    .app-sidebar .brand-mark { width: 36px; height: 38px; font-size: 21px; border-radius: 11px; }
    .brand small { font-size: 9px; }
    .sidebar-label, .sidebar-action, .sidebar-note { display: none; }
    .app-sidebar nav { overflow-x: auto; margin-top: 17px; scrollbar-width: thin; }
    .app-sidebar .nav { flex-direction: row !important; flex-wrap: nowrap; gap: 6px; }
    .app-sidebar .nav-link { padding: 10px 14px; gap: 8px; font-size: 12px; white-space: nowrap; }
    .app-sidebar .nav-link .bi { font-size: 15px; }
    .app-main { margin-left: 0; }
    .app-topbar { min-height: 64px; padding: 14px 24px; }
    .app-content { padding: 28px 24px; }
    .auth-wrapper { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
    .auth-story { padding: 30px; border-radius: 22px; }
    .auth-brand { margin-bottom: 26px; font-size: 18px; }
    .auth-story h1 { max-width: none; font-size: 28px; margin-bottom: 10px; }
    .auth-story > p { margin-bottom: 0; }
    .story-illustration { display: none; }
    .auth-features { margin-top: 16px; gap: 18px; }
    .auth-stage { padding: 18px 10px 30px; }
    .auth-card { max-width: 530px; }
}
@media (max-width: 575.98px) {
    body { font-size: 13px; }
    .app-sidebar { padding: 16px 16px 10px; }
    .app-sidebar .nav-link { padding: 9px 11px; }
    .app-topbar { padding: 12px 16px; gap: 12px; }
    .topbar-location { gap: 8px; font-size: 11px; }
    .topbar-location > span, .topbar-location > .bi { display: none; }
    .user-name { max-width: 100px; font-size: 12px; }
    .app-content { padding: 24px 16px; }
    .page-heading { margin-bottom: 22px; gap: 16px; }
    .page-heading h1 { font-size: 25px; }
    .page-heading p { font-size: 11px; }
    .heading-actions { gap: 10px; }
    .date-chip { padding: 8px 10px; }
    .btn { --bs-btn-font-size: 12px; --bs-btn-padding-x: 14px; --bs-btn-padding-y: 9px; }
    .dashboard-hero { display: block; padding: 26px; border-radius: 18px; }
    .hero-amount { font-size: 34px; }
    .hero-aside { min-width: 0; padding: 0; margin-top: 14px; text-align: left; }
    .hero-emblem, .hero-aside p { display: none; }
    .summary-row { --bs-gutter-y: 10px; margin-bottom: 22px; }
    .summary-row .stat-card .card-body { padding: 16px 20px; }
    .summary-row .stat-icon { right: 20px; top: 18px; }
    .summary-row .stat-value { font-size: 25px; }
    .summary-row .stat-footnote { display: none; }
    .dashboard-aside { grid-template-columns: minmax(0, 1fr); }
    .dashboard-columns, .dashboard-main, .dashboard-aside { gap: 18px; }
    .card-header, .card-body, .card-footer, .filter-card .card-body { padding: 18px; }
    .card-header h2 { font-size: 14px; }
    .table > :not(caption) > * > * { padding: 13px 14px; }
    .dashboard-main .table { min-width: 0; }
    .recent-table th:nth-child(2), .recent-table td:nth-child(2) { display: none; }
    .recent-table .table-identity { min-width: 0; gap: 9px; }
    .recent-table .table-identity > div { min-width: 0; }
    .recent-table .category-icon { width: 30px; height: 32px; border-radius: 9px; font-size: 15px; }
    .table-identity .mobile-account { display: block; }
    .recent-table td:last-child { font-size: 12px; }
    .freshness-card td { font-size: 11px; }
    .freshness-summary { padding: 12px 18px; gap: 12px; }
    .account-list .list-group-item { padding: 17px 18px; }
    .stat-card .card-body { padding: 16px 12px; }
    .stat-card .stat-value { font-size: 22px !important; }
    .stat-label { font-size: 10px; }
    .editor-card .card-body { padding: 22px 18px; }
    .month-filter { gap: 10px; }
    .month-filter .form-label { width: 100%; }
    .form-actions { gap: 10px; }
    .form-actions .btn { flex: 1; min-width: 0; }
    .amount-entry { padding: 18px; }
    .amount-entry .form-control { font-size: 30px; }
    .auth-story { padding: 26px; }
    .auth-story h1 { font-size: 25px; }
    .auth-card .card-body { padding: 12px; }
    .auth-form-heading h2 { font-size: 26px; }
    .error-page { padding: 16px; }
    .error-card { padding: 36px 22px; }
    .error-code { font-size: 80px; }
    .error-card h1, .status-card h1 { font-size: 20px; }
    .app-footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
