:root {
    --green: #00b875;
    --green2: #008f5d;
    --mint: #e8f8f0;
    --bg: #f5f8f6;
    --surface: #fff;
    --text: #182a22;
    --muted: #7a8981;
    --line: #e5ece8;
    --red: #e96868;
    --amber: #e9a23b;
    --shadow: 0 12px 35px rgba(24, 62, 43, .055);
    --radius: 17px
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px
}

button,
input,
select,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

.hidden {
    display: none !important
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text);
    font-family: Manrope, sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.7px
}

.brand>span:last-child>span {
    color: var(--green)
}

.brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 800
}

.app {
    min-height: 100vh
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 228px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: 27px 16px 18px;
    display: flex;
    flex-direction: column;
    z-index: 10
}

.sidebar>.brand {
    padding: 0 10px 36px
}

.nav-label,
.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.35px;
    color: #9aa9a1
}

.nav-label {
    padding: 0 11px 13px
}

.sidebar nav {
    display: grid;
    gap: 5px
}

.sidebar nav a {
    height: 43px;
    padding: 0 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #53665c;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: .2s
}

.sidebar nav a i {
    font-style: normal;
    width: 17px;
    text-align: center;
    font-size: 16px;
    color: #71877b
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: var(--mint);
    color: var(--green2)
}

.sidebar nav a.active i {
    color: var(--green)
}

.sidebar-bottom {
    margin-top: auto
}

.backup-card {
    background: #f2faf6;
    border: 1px solid #dff1e7;
    border-radius: 15px;
    padding: 15px;
    margin: 0 2px 16px
}

.backup-icon {
    font-size: 19px;
    color: var(--green);
    margin-bottom: 9px
}

.backup-card strong {
    font-size: 12px
}

.backup-card p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
    margin: 5px 0 12px
}

.side-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 3px 0;
    border-top: 1px solid var(--line)
}

.side-profile>div:nth-child(2) {
    display: grid;
    gap: 3px;
    flex: 1
}

.side-profile strong {
    font-size: 11px
}

.side-profile small {
    font-size: 10px;
    color: var(--muted)
}

.avatar {
    width: 33px;
    height: 33px;
    border: 0;
    border-radius: 50%;
    background: var(--mint);
    color: var(--green2);
    font-weight: 800;
    display: grid;
    place-items: center
}

.main {
    margin-left: 228px;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

.topbar {
    height: 70px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px
}

.crumb {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 11px
}

.crumb span,
.crumb b {
    color: #a0ada6;
    font-weight: 500
}

.crumb strong {
    font-weight: 700
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 15px
}

.today {
    color: var(--muted);
    font-size: 11px
}

.icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: #5e7167;
    display: grid;
    place-items: center
}

.page-content {
    padding: 30px 34px 42px;
    flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 23px;
    gap: 16px
}

.page-heading h1 {
    font: 800 25px Manrope, sans-serif;
    letter-spacing: -1px;
    margin: 6px 0 5px
}

.page-heading p {
    color: var(--muted);
    margin: 0;
    font-size: 12px
}

.page-heading .eyebrow {
    color: var(--green);
    font-size: 10px
}

.heading-actions {
    display: flex;
    gap: 9px;
    align-items: center
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 12px;
    transition: .2s
}

.btn.primary {
    background: var(--green);
    color: white;
    box-shadow: 0 5px 12px #00b87524
}

.btn.primary:hover {
    background: var(--green2);
    transform: translateY(-1px)
}

.btn.outline {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--green2)
}

.btn.soft {
    background: var(--mint);
    color: var(--green2)
}

.btn.danger {
    background: #fff0f0;
    color: var(--red)
}

.btn.small {
    padding: 8px 11px;
    font-size: 11px
}

.btn.wide {
    width: 100%;
    margin-top: 17px;
    padding: 14px
}

.btn span {
    margin-left: 9px
}

.grid {
    display: grid;
    gap: 16px
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 17px
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 17px 18px;
    box-shadow: var(--shadow);
    min-width: 0
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600
}

.stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--mint);
    color: var(--green2);
    display: grid;
    place-items: center;
    font-size: 15px
}

.stat-value {
    font: 800 22px Manrope, sans-serif;
    letter-spacing: -.7px;
    margin: 14px 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.stat-foot {
    font-size: 10px;
    color: var(--muted)
}

.positive {
    color: var(--green2) !important
}

.negative {
    color: var(--red) !important
}

.balance-card {
    background: linear-gradient(120deg, #008f5d, #00b875 75%, #2acb8b);
    color: #fff;
    border: 0;
    position: relative;
    overflow: hidden
}

.balance-card:after {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    border: 1px solid #ffffff25;
    border-radius: 50%;
    right: -48px;
    top: -100px;
    box-shadow: 0 0 0 24px #ffffff0a, 0 0 0 50px #ffffff08
}

.balance-card .stat-top,
.balance-card .stat-foot {
    color: #d6f7e8
}

.balance-card .stat-icon {
    background: #ffffff24;
    color: white
}

.balance-card .stat-value {
    font-size: 27px
}

.balance-actions {
    display: flex;
    gap: 8px;
    margin-top: 13px
}

.balance-actions button {
    background: #ffffff20;
    border: 1px solid #ffffff35;
    color: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 700
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
    margin-bottom: 17px
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0
}

.panel-head {
    padding: 17px 19px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.panel-title {
    font: 800 13px Manrope, sans-serif
}

.panel-sub {
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px
}

.panel-body {
    padding: 12px 19px 18px
}

.select,
.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px 12px;
    color: var(--text);
    outline: none;
    font-size: 12px
}

.select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.toolbar input:focus,
.toolbar select:focus {
    border-color: #72d5aa;
    box-shadow: 0 0 0 3px #00b87512
}

.chart-wrap {
    height: 230px;
    position: relative
}

.chart-wrap canvas {
    width: 100%;
    height: 100%
}

.spend-layout {
    display: flex;
    align-items: center;
    gap: 16px
}

.donut-wrap {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    position: relative
}

.donut-wrap canvas {
    width: 100%;
    height: 100%
}

.donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    pointer-events: none
}

.donut-center strong {
    font: 800 15px Manrope
}

.donut-center small {
    font-size: 9px;
    color: var(--muted)
}

.legend {
    display: grid;
    gap: 10px;
    min-width: 0;
    flex: 1
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: var(--muted)
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    flex: 0 0 8px
}

.legend-row strong {
    margin-left: auto;
    color: var(--text);
    font-size: 10px
}

.bottom-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr)
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap
}

th {
    text-align: left;
    color: #9aa8a1;
    font-size: 9px;
    letter-spacing: .9px;
    font-weight: 800;
    padding: 12px 15px;
    border-bottom: 1px solid var(--line)
}

td {
    padding: 13px 15px;
    border-bottom: 1px solid #eff3f0;
    font-size: 11px
}

tbody tr:last-child td {
    border-bottom: 0
}

.desc-cell {
    display: flex;
    align-items: center;
    gap: 10px
}

.tx-icon {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    background: #f0f7f3;
    display: grid;
    place-items: center;
    color: var(--green2);
    font-weight: 800
}

.desc-cell strong {
    display: block;
    font-size: 11px
}

.desc-cell small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-top: 3px
}

.amount {
    font-weight: 800;
    font-size: 11px
}

.amount.income {
    color: var(--green2)
}

.amount.expense {
    color: var(--red)
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 20px;
    background: var(--mint);
    color: var(--green2);
    font-size: 9px;
    font-weight: 700
}

.badge.red {
    background: #fff0f0;
    color: var(--red)
}

.badge.amber {
    background: #fff7e8;
    color: #b67a1d
}

.empty {
    text-align: center;
    padding: 35px 15px;
    color: var(--muted);
    font-size: 11px
}

.empty .empty-icon {
    font-size: 25px;
    margin-bottom: 8px;
    color: #a9b9b0
}

.toolbar {
    display: flex;
    gap: 9px;
    margin-bottom: 14px;
    flex-wrap: wrap
}

.toolbar input {
    flex: 1;
    min-width: 190px
}

.toolbar select {
    width: auto;
    min-width: 130px
}

.table-panel {
    overflow: hidden
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: var(--muted);
    font-size: 10px;
    border-top: 1px solid var(--line)
}

.action-btn {
    border: 0;
    background: transparent;
    color: #83938a;
    font-size: 15px;
    padding: 4px 7px;
    border-radius: 6px
}

.action-btn:hover {
    background: var(--mint);
    color: var(--green2)
}

.account-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.account-card {
    padding: 19px;
    position: relative;
    overflow: hidden
}

.account-card:after {
    content: '';
    position: absolute;
    right: -30px;
    top: -45px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--mint);
    opacity: .7
}

.account-card .account-kind {
    color: var(--muted);
    font-size: 10px
}

.account-card h3 {
    font: 800 15px Manrope;
    margin: 10px 0 18px
}

.account-card .account-balance {
    font: 800 22px Manrope;
    letter-spacing: -.5px
}

.account-card .account-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    color: var(--muted)
}

.progress {
    height: 8px;
    background: #edf3ef;
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0 8px
}

.progress span {
    display: block;
    height: 100%;
    border-radius: 20px;
    background: var(--green)
}

.budget-list,
.goal-list {
    display: grid;
    gap: 12px
}

.budget-item,
.goal-item {
    padding: 15px 17px
}

.budget-top,
.goal-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center
}

.budget-top strong,
.goal-top strong {
    font-size: 12px
}

.budget-top small,
.goal-top small {
    color: var(--muted);
    font-size: 10px
}

.budget-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted)
}

.report-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.report-card {
    padding: 18px
}

.report-card small {
    color: var(--muted);
    font-size: 10px
}

.report-card strong {
    display: block;
    font: 800 22px Manrope;
    margin-top: 10px
}

.insight-list {
    display: grid;
    gap: 10px
}

.insight {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px;
    background: #f5faf7;
    border-radius: 11px
}

.insight i {
    font-style: normal;
    color: var(--green);
    font-size: 15px
}

.insight p {
    margin: 0;
    font-size: 10px;
    color: #61736a;
    line-height: 1.5
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px
}

.field {
    display: grid;
    gap: 6px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-size: 10px;
    font-weight: 700;
    color: #5f7167
}

.field input,
.field select,
.field textarea {
    padding: 11px
}

.field textarea {
    min-height: 75px;
    resize: vertical
}

.optional {
    color: #a0ada6;
    font-weight: 400
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #0c2118a8;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 16px;
    backdrop-filter: blur(4px)
}

.modal {
    width: min(540px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 25px 80px #071b1250
}

.modal-head {
    padding: 20px 22px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line)
}

.modal-head h3 {
    font: 800 16px Manrope;
    margin: 0
}

.modal-body {
    padding: 20px 22px
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 0 22px 20px
}

.toast-root {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    display: grid;
    gap: 8px
}

.toast {
    background: #183a2b;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-size: 12px;
    animation: slide .25s ease
}

.toast.error {
    background: #9f3939
}

@keyframes slide {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.footer {
    height: 48px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    color: #9aa8a1;
    font-size: 10px
}

.footer b {
    padding: 0 7px
}

.footer span:last-child {
    color: var(--green)
}

.mobile-head,
.mobile-nav {
    display: none
}

.auth-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--surface)
}

.auth-art {
    background: radial-gradient(circle at 78% 25%, #14c98c 0, #009c68 35%, #006a4b 100%);
    color: #fff;
    padding: 35px 7%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.brand.light {
    color: #fff
}

.brand.light>span:last-child>span {
    color: #b9f6d8
}

.auth-message {
    margin: auto 0;
    max-width: 480px;
    position: relative;
    z-index: 1
}

.auth-message .eyebrow {
    color: #b7f3d6
}

.auth-message h1 {
    font: 800 clamp(35px, 4vw, 55px) Manrope;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 16px 0
}

.auth-message p {
    color: #d4f4e5;
    line-height: 1.7;
    max-width: 380px;
    font-size: 14px
}

.auth-orbit {
    height: 180px;
    position: relative;
    margin-top: 38px
}

.orbit-card {
    position: absolute;
    left: 15px;
    top: 0;
    width: 260px;
    padding: 19px;
    background: #ffffff19;
    border: 1px solid #ffffff35;
    border-radius: 17px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px #003c2a40;
    transform: rotate(-5deg)
}

.orbit-card small,
.orbit-card span {
    display: block;
    color: #d1f6e4;
    font-size: 9px;
    letter-spacing: 1px
}

.orbit-card strong {
    display: block;
    font: 800 27px Manrope;
    margin: 12px 0
}

.orbit-card span {
    letter-spacing: 0
}

.orbit-dot {
    position: absolute;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--green2);
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 10px 20px #003c2a30
}

.d1 {
    left: 290px;
    top: 15px
}

.d2 {
    left: 235px;
    top: 105px
}

.d3 {
    left: 40px;
    top: 125px
}

.auth-foot {
    font-size: 9px;
    letter-spacing: 1.3px;
    color: #b7e8d2
}

.auth-foot span {
    padding: 0 8px
}

.auth-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 9%;
    position: relative
}

.auth-form-wrap {
    width: min(370px, 100%)
}

.auth-icon {
    width: 43px;
    height: 43px;
    border-radius: 14px;
    background: var(--mint);
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 23px
}

.auth-form-wrap .eyebrow {
    color: var(--green)
}

.auth-form-wrap h2 {
    font: 800 26px Manrope;
    letter-spacing: -1px;
    margin: 8px 0
}

.muted {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 25px
}

.auth-form-wrap form>label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin: 14px 0 7px
}

.auth-form-wrap input:not(.pin-input) {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none
}

.pin-row {
    display: flex;
    gap: 8px
}

.pin-input {
    width: calc((100% - 40px)/6);
    min-width: 0;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 9px;
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    outline: none
}

.pin-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px #00b87518
}

.auth-note {
    font-size: 10px;
    color: #9aa8a1;
    line-height: 1.6;
    margin-top: 23px
}

.auth-note span {
    color: var(--green2)
}

.auth-copyright {
    position: absolute;
    bottom: 22px;
    color: #a6b2ac;
    font-size: 9px
}

.text-btn {
    border: 0;
    background: none;
    color: var(--green2);
    font-size: 10px;
    margin-top: 15px;
    width: 100%
}

.auth-mobile-brand {
    display: none
}

.dark {
    --bg: #101a15;
    --surface: #17231c;
    --text: #edf7f1;
    --muted: #9aaca1;
    --line: #2a3b31;
    --mint: #1e3a2c;
    --shadow: 0 12px 35px rgba(0, 0, 0, .12)
}

.dark .backup-card,
.dark .insight {
    background: #1d3327;
    border-color: #294a37
}

.dark th {
    border-color: var(--line)
}

.dark td {
    border-color: #26372d
}

.dark .tx-icon {
    background: #20382b
}

.dark .progress {
    background: #293a30
}

.dark .sidebar nav a {
    color: #b1c3b8
}

.dark .sidebar nav a.active {
    color: #7de0b1
}

.dark .auth-panel {
    background: var(--surface)
}

@media(max-width:1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .page-content {
        padding: 25px 24px 35px
    }

    .topbar {
        padding: 0 24px
    }
}

@media(max-width:760px) {
    .sidebar {
        display: none
    }

    .main {
        margin-left: 0;
        padding-bottom: 72px
    }

    .topbar {
        display: none
    }

    .mobile-head {
        height: 60px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 17px
    }

    .mobile-head .brand {
        font-size: 17px
    }

    .mobile-head .brand-mark {
        width: 28px;
        height: 28px
    }

    .page-content {
        padding: 22px 15px 30px
    }

    .page-heading {
        align-items: flex-start;
        margin-bottom: 18px
    }

    .page-heading h1 {
        font-size: 22px
    }

    .page-heading p {
        font-size: 11px;
        line-height: 1.5
    }

    .page-heading .btn {
        padding: 10px 11px;
        font-size: 10px
    }

    .heading-actions {
        flex-wrap: wrap;
        justify-content: flex-end
    }

    .stats-grid {
        gap: 10px
    }

    .stat-card {
        padding: 13px
    }

    .stat-value {
        font-size: 18px;
        margin: 11px 0 4px
    }

    .balance-card .stat-value {
        font-size: 22px
    }

    .stat-top {
        font-size: 10px
    }

    .stat-icon {
        width: 26px;
        height: 26px
    }

    .dashboard-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .chart-wrap {
        height: 210px
    }

    .spend-layout {
        justify-content: center
    }

    .donut-wrap {
        width: 135px;
        height: 135px;
        flex-basis: 135px
    }

    .panel-head {
        padding: 15px 15px 8px
    }

    .panel-body {
        padding: 10px 15px 15px
    }

    .table-panel {
        margin: 0 -1px
    }

    .toolbar {
        gap: 7px
    }

    .toolbar input {
        min-width: 100%;
    }

    .toolbar select {
        flex: 1;
        min-width: 0
    }

    .account-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .account-card {
        padding: 14px
    }

    .account-card .account-balance {
        font-size: 18px
    }

    .report-cards {
        grid-template-columns: 1fr 1fr
    }

    .report-cards .report-card:last-child {
        grid-column: 1/-1
    }

    .report-card {
        padding: 14px
    }

    .report-card strong {
        font-size: 18px
    }

    .footer {
        display: none
    }

    .mobile-nav {
        position: fixed;
        z-index: 20;
        bottom: 0;
        left: 0;
        right: 0;
        height: 66px;
        background: var(--surface);
        border-top: 1px solid var(--line);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    }

    .mobile-nav a {
        display: grid;
        justify-items: center;
        gap: 3px;
        text-decoration: none;
        color: #8c9c93;
        min-width: 48px
    }

    .mobile-nav a i {
        font-style: normal;
        font-size: 18px
    }

    .mobile-nav a small {
        font-size: 9px
    }

    .mobile-nav a.active {
        color: var(--green2)
    }

    .mobile-add {
        width: 47px;
        height: 47px;
        border: 4px solid var(--bg);
        border-radius: 16px;
        background: var(--green);
        color: #fff;
        font-size: 27px;
        line-height: 1;
        margin-top: -22px;
        box-shadow: 0 5px 15px #00b87545
    }

    .auth-screen {
        grid-template-columns: 1fr
    }

    .auth-art {
        display: none
    }

    .auth-panel {
        min-height: 100vh;
        padding: 25px 24px 65px;
        justify-content: center
    }

    .auth-mobile-brand {
        display: flex;
        position: absolute;
        top: 24px;
        left: 24px
    }

    .auth-form-wrap {
        margin-top: 25px
    }

    .auth-copyright {
        bottom: 20px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }

    .modal-backdrop {
        align-items: end;
        padding: 0
    }

    .modal {
        border-radius: 19px 19px 0 0;
        max-height: 92vh
    }

    .modal-head {
        padding: 17px 18px 13px
    }

    .modal-body {
        padding: 17px 18px
    }

    .modal-foot {
        padding: 0 18px 18px
    }

    .toast-root {
        left: 14px;
        right: 14px;
        bottom: 80px
    }

    .toast {
        text-align: center
    }
}

@media(max-width:380px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr
    }

    .stat-value {
        font-size: 16px
    }

    .account-grid {
        grid-template-columns: 1fr
    }

    .spend-layout {
        gap: 8px
    }

    .donut-wrap {
        width: 115px;
        height: 115px;
        flex-basis: 115px
    }

    .legend {
        gap: 7px
    }
}