@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Plus+Jakarta+Sans:wght@400;500;600;650;700;750;800&display=swap");
:root {
    --ink: #172c32;
    --muted: #74817f;
    --green: #217760;
    --green-dark: #153f39;
    --line: #e8ece8;
    --canvas: #f6f8f5;
    --mint: #e8f4eb;
    --radius: 20px;
    --font: "DM Sans", sans-serif;
    --heading: "Plus Jakarta Sans", sans-serif;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select,
summary {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    color: inherit;
}
button:disabled {
    cursor: default;
}
button,
input,
select {
    border-radius: 0;
}
button {
    border: 0;
    background: none;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1,
h2,
h3 {
    font-family: var(--heading);
    letter-spacing: -0.035em;
}
h1 {
    font-size: 27px;
    line-height: 1.4;
    font-weight: 750;
}
h2 {
    font-size: 16px;
    font-weight: 750;
    line-height: 1.5;
}
h3 {
    font-size: 15px;
}
strong {
    font-weight: 650;
}
svg {
    display: block;
    flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #4caa87;
    outline-offset: 4px;
}
input,
select {
    min-width: 0;
}
input {
    color: var(--ink);
}
input::placeholder {
    color: #8c9695;
}
form {
    margin: 0;
}
[hidden] {
    display: none !important;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    z-index: 100;
    top: -100px;
    left: 16px;
    background: var(--green-dark);
    color: white;
    padding: 14px;
    border-radius: 8px;
}
.skip-link:focus {
    top: 12px;
}
.icon-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.icon-button:hover {
    background: #edf2ed;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}
.brand-light {
    font-weight: 500;
}
.brand small {
    display: block;
    letter-spacing: 2px;
    font-size: 7px;
    font-weight: 600;
    margin-top: 3px;
}
.brand-mark {
    width: 39px;
    height: 43px;
    border-radius: 12px;
    background: var(--green-dark);
    color: #dbf3aa;
    display: grid;
    place-items: center;
}
.brand-mark svg {
    width: 28px;
    height: 28px;
}
.sidebar {
    display: none;
}
.topbar {
    height: 79px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: var(--canvas);
}
.desktop-breadcrumb,
.profile-name,
.topbar-divider,
.profile-link > .icon {
    display: none;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-link {
    display: flex;
    align-items: center;
    gap: 11px;
}
.avatar {
    display: grid;
    place-items: center;
    background: #f0e6d8;
    color: #78644a;
    border: 3px solid white;
    width: 41px;
    height: 41px;
    border-radius: 50%;
    font-weight: 700;
}
.help-button {
    width: 38px;
    height: 38px;
    color: #667672;
}
.main-content {
    padding: 16px 20px 110px;
    max-width: 1440px;
    margin: auto;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 9px;
}
.page-heading p {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
.greeting-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #b6d48a;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 4px;
}
.date-label {
    display: none;
    color: var(--muted);
    font-size: 12px;
    align-items: center;
    gap: 8px;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    min-width: 0;
}
.overview-grid {
    display: grid;
    gap: 16px;
}
.balance-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 23px 24px;
    background: linear-gradient(115deg, #143e36 0%, #1b4e41 65%, #37654a 100%);
    color: white;
    min-height: 228px;
    box-shadow: 0 10px 25px #123d3610;
}
.balance-card > *:not(.card-orbit) {
    position: relative;
    z-index: 1;
}
.balance-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.balance-top > span:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e7f0e9;
}
.account-badge {
    border: 1px solid #ffffff40;
    border-radius: 5px;
    font-size: 8px;
    letter-spacing: 1.5px;
    padding: 5px 7px;
    color: #dfeadf;
}
.balance-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #b5cbc0;
    font-size: 12px;
    margin-top: 18px;
    height: 32px;
}
.balance-toggle {
    padding: 8px;
    border-radius: 50%;
    color: #b5cbc0;
    min-width: 40px;
    min-height: 40px;
    display: grid;
    place-items: center;
}
.balance-toggle:hover {
    background: #ffffff15;
}
.balance-amount {
    font-family: var(--heading);
    font-size: clamp(25px, 7.5vw, 36px);
    font-weight: 650;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
    line-height: 1.45;
}
.balance-bottom {
    margin-top: 24px;
    padding-top: 15px;
    border-top: 1px solid #ffffff20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 10px;
    color: #bfd2c7;
}
.balance-bottom > span:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.balance-owner {
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
}
.status-dot {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #c2e7a0;
    display: inline-block;
    flex-shrink: 0;
}
.card-orbit {
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid #c8e7b41c;
    border-radius: 50%;
    right: -185px;
    top: -110px;
}
.orbit-two {
    width: 420px;
    height: 420px;
    right: -235px;
    top: -155px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.section-heading p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.6;
}
.small-muted {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}
.quick-actions {
    padding: 20px;
}
.quick-actions .section-heading {
    margin-bottom: 21px;
}
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.quick-action {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    font-size: 11px;
    font-weight: 550;
    white-space: nowrap;
    min-height: 78px;
}
.action-icon {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border-radius: 15px;
    flex-shrink: 0;
}
.mint {
    background: #e8f4ec;
    color: #2e8061;
}
.peach {
    background: #fbefe7;
    color: #bc8059;
}
.lavender {
    background: #f0ecfb;
    color: #8d76b8;
}
.blue {
    background: #eaf0fa;
    color: #5b81b5;
}
.quick-action .action-icon {
    transition:
        transform 0.18s,
        box-shadow 0.18s;
}
.quick-action:hover .action-icon {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px #203e3610;
}
.quick-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #7b8680;
    font-size: 9px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}
.totals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0;
}
.total-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 16px;
    min-width: 0;
}
.stat-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
}
.total-card > div {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 10px;
}
.total-card p {
    font-size: 11px;
    color: #697a73;
}
.total-card strong {
    font-family: var(--heading);
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.3px;
    overflow-wrap: anywhere;
}
.total-card small {
    font-size: 9px;
    color: #89928e;
    grid-column: 1/-1;
}
.detail-grid {
    display: grid;
    gap: 18px;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--green);
    font-weight: 650;
    min-height: 40px;
    white-space: nowrap;
}
.text-link:hover {
    text-decoration: underline;
}
.transaction-panel {
    padding: 22px 18px 12px;
}
.transaction-panel .section-heading {
    gap: 5px;
}
.transaction-item {
    border-bottom: 1px solid #edf0eb;
}
.transaction-item:last-child {
    border-bottom: 0;
}
.transaction-item summary {
    display: flex;
    align-items: center;
    gap: 11px;
    list-style: none;
    padding: 17px 0;
    cursor: pointer;
}
.transaction-item summary::-webkit-details-marker {
    display: none;
}
.transaction-icon {
    width: 37px;
    height: 37px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.transaction-info {
    flex: 1;
    min-width: 0;
}
.transaction-info > strong {
    display: block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 550;
}
.transaction-info small {
    display: block;
    font-size: 10px;
    color: #8a9490;
    margin-top: 6px;
}
.transaction-info small span {
    display: none;
}
.transaction-value {
    text-align: right;
    max-width: 52%;
    min-width: 0;
}
.transaction-value strong {
    display: block;
    font-size: 11px;
    overflow-wrap: anywhere;
    line-height: 1.5;
    font-weight: 650;
}
.transaction-value small {
    display: block;
    font-size: 9px;
    color: #83918a;
    margin-top: 5px;
}
.text-green {
    color: var(--green);
}
.transaction-chevron {
    display: none;
    color: #8e9e95;
    transition: transform 0.2s;
}
.transaction-item[open] .transaction-chevron {
    transform: rotate(90deg);
}
.transaction-description {
    background: var(--canvas);
    padding: 15px;
    border-radius: 10px;
    margin: 0 0 14px 48px;
    overflow-wrap: anywhere;
}
.transaction-description span {
    font-size: 10px;
    color: var(--muted);
}
.transaction-description p {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 5px;
}
.period-badge {
    border: 1px solid var(--line);
    font-size: 10px;
    padding: 6px 10px;
    border-radius: 7px;
    color: #64736a;
    white-space: nowrap;
}
.chart-panel {
    padding: 22px 20px;
}
.chart-legend {
    display: flex;
    gap: 18px;
    font-size: 9px;
    color: #768279;
    margin: 5px 0 0;
}
.chart-legend > span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
}
.legend-dot.in {
    background: #33886c;
}
.legend-dot.out {
    background: #cddfc0;
}
.bar-chart {
    display: flex;
    position: relative;
    height: 165px;
    gap: 10px;
    margin-top: 20px;
    padding: 0 4px;
}
.chart-gridlines {
    position: absolute;
    inset: 0 0 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.chart-gridlines span {
    border-top: 1px dashed #e5eae4;
}
.chart-day {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
}
.bar-pair {
    height: 139px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    width: 100%;
    max-width: 34px;
}
.bar {
    height: var(--bar-height);
    max-height: 100%;
    display: block;
    flex: 1;
    border-radius: 4px 4px 0 0;
    min-width: 4px;
}
.bar-in {
    background: #34856a;
}
.bar-out {
    background: #cadcbd;
}
.chart-day-label {
    white-space: nowrap;
    font-size: 8px;
    color: #829087;
    height: 26px;
    display: flex;
    align-items: end;
}
.chart-empty {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: #748378;
    background: #ffffffd9;
    padding: 12px;
}
.chart-totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 24px;
}
.chart-totals > div + div {
    border-left: 1px solid var(--line);
    padding-left: 16px;
}
.chart-totals span {
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-bottom: 7px;
}
.chart-totals strong {
    font-size: 14px;
    font-family: var(--heading);
    overflow-wrap: anywhere;
}
.chart-details {
    margin-top: 17px;
    font-size: 10px;
    color: #667b6e;
}
.chart-details summary {
    cursor: pointer;
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chart-details summary:after {
    content: "+";
}
.chart-details[open] summary:after {
    content: "−";
}
.chart-details table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 10px;
}
.chart-details td,
.chart-details th {
    padding: 10px 3px;
    text-align: right;
    border-bottom: 1px solid var(--line);
    font-weight: 400;
    overflow-wrap: anywhere;
}
.chart-details th:first-child {
    text-align: left;
}
.chart-details thead th {
    font-weight: 650;
}
.saving-banner {
    background: #edf1e6;
    border: 1px solid #e4e9db;
    border-radius: 16px;
    margin-top: 22px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.banner-icon {
    color: #7c9264;
    padding-top: 4px;
}
.saving-banner > div {
    flex: 1;
    min-width: 180px;
}
.saving-banner .eyebrow {
    font-size: 8px;
    color: #778765;
    letter-spacing: 1.3px;
    margin-bottom: 5px;
}
.saving-banner h2 {
    font-size: 14px;
    letter-spacing: -0.4px;
    color: #394d35;
}
.saving-banner p {
    font-size: 10px;
    line-height: 1.7;
    color: #84907a;
    margin-top: 6px;
}
.banner-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 650;
    color: #566d46;
    margin-left: 44px;
    min-height: 32px;
}
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    color: #8b968f;
    font-size: 9px;
}
.app-footer > span:last-child {
    display: flex;
    align-items: center;
    gap: 5px;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fffffff5;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px #1c453004;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 49px;
    color: #829087;
    font-size: 13px;
    font-weight: 500;
}
.bottom-nav .nav-item {
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    border-radius: 12px;
    justify-content: center;
    min-height: 48px;
}
.bottom-nav .nav-item .icon {
    width: 21px;
    height: 21px;
}
.bottom-nav .is-active {
    color: var(--green);
    font-weight: 700;
}
.bottom-nav .is-active:before {
    content: "";
    position: absolute;
    top: 0;
    width: 24px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--green);
}
.count-badge {
    color: var(--green);
    background: var(--mint);
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}
.history-panel {
    padding: 18px;
}
.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 3px;
}
.search-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8faf7;
    border: 1px solid var(--line);
    padding: 0 13px;
    border-radius: 10px;
    flex: 1 1 100%;
    color: #87958b;
}
.search-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: none;
    min-height: 46px;
    font-size: 12px;
}
.search-input:focus-within {
    border-color: var(--green);
}
.filter-select {
    flex: 1;
}
.filter-select select {
    width: 100%;
    padding: 13px 30px 13px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #52645a;
    min-height: 46px;
    font-size: 12px;
}
.primary-button {
    background: var(--green-dark);
    color: white;
    border-radius: 10px;
    padding: 13px 22px;
    font-weight: 600;
    min-height: 46px;
    font-size: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.primary-button:hover {
    background: #256b54;
}
.pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 10px;
    color: var(--muted);
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.pagination a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 17px;
    background: #fff;
}
.empty-state {
    text-align: center;
    padding: 36px 12px;
}
.empty-state .action-icon {
    margin: 0 auto 18px;
    width: 58px;
    height: 58px;
}
.empty-state h3 {
    margin-bottom: 9px;
}
.empty-state p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 320px;
    margin: auto;
}
.summary-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
}
.summary-balance > strong {
    font-size: 30px;
    letter-spacing: -1px;
    font-family: var(--heading);
    overflow-wrap: anywhere;
    max-width: 100%;
}
.summary-balance > p {
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 330px;
}
.update-note {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: auto;
    width: 100%;
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.9;
}
.update-note strong {
    font-size: 12px;
    color: #4a6154;
}
.account-grid {
    display: grid;
    gap: 20px;
}
.account-panel {
    text-align: center;
    padding: 30px 22px;
}
.avatar-large {
    width: 76px;
    height: 76px;
    font-size: 27px;
    margin: 0 auto 18px;
    border: 5px solid #fafbf8;
}
.account-panel h2 {
    font-size: 20px;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}
.account-panel dl {
    margin: 28px 0;
    text-align: left;
}
.account-panel dl > div {
    border-top: 1px solid var(--line);
    padding: 17px 0;
}
.account-panel dt {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 7px;
}
.account-panel dd {
    font-size: 13px;
    margin: 0;
    overflow-wrap: anywhere;
}
.account-options {
    align-self: start;
}
.account-options h2 {
    margin-bottom: 17px;
}
.settings-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px 0;
    text-align: left;
    border-bottom: 1px solid var(--line);
    width: 100%;
}
.settings-row > span:nth-child(2) {
    flex: 1;
}
.settings-row strong {
    font-size: 12px;
}
.settings-row small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
}
.settings-row .action-icon {
    height: 41px;
    width: 41px;
    border-radius: 12px;
}
.logout-row {
    border: 0;
    color: #a85e49;
}
.service-dialog {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    color: var(--ink);
    padding: 28px;
    width: calc(100% - 32px);
    max-width: 440px;
    max-height: calc(100dvh - 40px);
    overflow: auto;
    box-shadow: 0 24px 100px #0c2b3333;
}
.service-dialog::backdrop {
    background: #0e252b77;
    backdrop-filter: blur(4px);
}
.dialog-open {
    overflow: hidden;
}
.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.service-dialog h2 {
    font-size: 23px;
    line-height: 1.5;
    margin-bottom: 10px;
}
.service-dialog > p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 24px;
}
.service-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
    margin: 24px 0;
}
.service-steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 22px 38px;
    font-size: 12px;
    line-height: 1.8;
    color: #5b6e61;
}
.service-steps li:before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    background: var(--mint);
    border-radius: 50%;
    color: var(--green);
    font-weight: 700;
    font-size: 11px;
}
.full-width {
    width: 100%;
}
.notice {
    padding: 15px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #fff1e6;
    color: #965638;
    display: flex;
    gap: 10px;
    align-items: center;
    line-height: 1.7;
}
.notice.success {
    background: var(--mint);
    color: var(--green);
}
/* Login shares the customer design system, independently of the staff layout. */
.login-page {
    background: #fcfdfa;
}
.login-shell {
    min-height: 100dvh;
}
.login-story {
    display: none;
}
.login-form-side {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 32px 26px;
}
.login-mobile-brand {
    margin-bottom: 56px;
}
.login-form-wrap {
    width: 100%;
    max-width: 390px;
    margin: auto;
}
.login-welcome-icon {
    height: 54px;
    width: 54px;
    border: 1px solid #dbe7db;
    background: #f0f6ed;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--green);
    margin-bottom: 30px;
}
.login-form-wrap > .eyebrow {
    font-size: 9px;
    margin-bottom: 12px;
}
.login-form-wrap h1 {
    font-size: 27px;
    line-height: 1.45;
    letter-spacing: -1px;
}
.login-intro {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 12px 0 32px;
    max-width: 340px;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.field-group label {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 9px;
}
.input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #dfe5dd;
    border-radius: 10px;
    background: #fff;
    padding: 0 15px;
    color: #8b978d;
}
.input-wrap:focus-within {
    border-color: #3d8a6b;
    box-shadow: 0 0 0 3px #25744f0a;
}
.input-wrap input {
    border: 0;
    background: none;
    width: 100%;
    height: 52px;
    font-size: 13px;
    outline: 0;
}
.input-wrap .password-toggle {
    width: 34px;
    height: 40px;
    margin-right: -5px;
}
.input-wrap.input-error {
    border-color: #bd6756;
}
.field-error {
    font-size: 11px;
    color: #a84432;
    margin-top: 8px;
    line-height: 1.6;
}
.remember-field {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    color: #5f6f65;
    min-height: 24px;
    cursor: pointer;
}
.remember-field input {
    accent-color: var(--green);
    width: 17px;
    height: 17px;
    margin: 0;
}
.login-submit {
    width: 100%;
    font-size: 13px;
    min-height: 52px;
    margin-top: 3px;
    justify-content: space-between;
    padding: 15px 20px;
}
.login-help {
    display: flex;
    justify-content: center;
    gap: 7px;
    align-items: center;
    color: #81907e;
    margin-top: 25px;
    font-size: 11px;
}
.login-help button {
    color: var(--green);
    font-weight: 650;
    padding: 10px 2px;
}
.login-help button:hover {
    text-decoration: underline;
}
.login-security {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    font-size: 10px;
    line-height: 1.7;
    color: #90998d;
    margin-top: 26px;
}
.login-bottom {
    text-align: center;
    font-size: 10px;
    color: #969e94;
    letter-spacing: 0.4px;
    margin-top: 40px;
    padding-top: 10px;
}
@media (min-width: 600px) {
    .main-content {
        padding: 26px 30px 110px;
    }
    .topbar {
        padding: 0 30px;
    }
    .overview-grid {
        grid-template-columns: 1fr 1fr;
    }
    .quick-actions {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .quick-actions .section-heading .small-muted {
        display: none;
    }
    .balance-card {
        padding: 23px;
    }
    .balance-amount {
        font-size: 30px;
    }
    .totals-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin: 22px 0;
    }
    .total-card {
        align-items: flex-start;
        padding: 19px 16px;
        gap: 10px;
    }
    .total-card > div {
        display: block;
    }
    .total-card strong {
        font-size: 16px;
        display: block;
        margin-top: 10px;
    }
    .total-card small {
        display: block;
        margin-top: 8px;
        font-size: 9px;
        line-height: 1.7;
    }
    .stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    .total-card p {
        font-size: 10px;
    }
    .detail-grid {
        grid-template-columns: 1.2fr 1fr;
    }
    .section-heading {
        align-items: flex-start;
    }
    .transaction-panel .section-heading {
        flex-wrap: wrap;
        margin-bottom: 10px;
    }
    .transaction-panel .section-heading .text-link {
        min-height: 25px;
    }
    .transaction-item summary {
        gap: 9px;
    }
    .transaction-icon {
        width: 31px;
        height: 35px;
    }
    .transaction-info strong {
        font-size: 11px;
    }
    .transaction-value strong {
        font-size: 10px;
    }
    .chart-totals strong {
        font-size: 12px;
    }
    .chart-totals > div + div {
        padding-left: 10px;
    }
    .bar-chart {
        gap: 6px;
        height: 181px;
    }
    .bar-pair {
        height: 155px;
    }
    .chart-panel {
        padding: 22px 18px;
    }
    .chart-panel .section-heading h2 {
        font-size: 15px;
    }
    .history-panel {
        padding: 26px;
    }
    .history-panel .transaction-info strong {
        font-size: 13px;
    }
    .history-panel .transaction-value strong {
        font-size: 13px;
    }
    .history-panel .transaction-info small span {
        display: inline;
    }
    .history-panel .transaction-chevron {
        display: block;
    }
    .history-panel .transaction-icon {
        width: 40px;
        height: 40px;
    }
    .search-input {
        flex: 1 1 180px;
    }
    .filter-select {
        flex: 0 1 160px;
    }
    .account-grid {
        grid-template-columns: 1fr 1.15fr;
    }
    .saving-banner {
        align-items: center;
    }
    .saving-banner > div {
        min-width: 0;
    }
    .banner-link {
        margin-left: auto;
        white-space: nowrap;
    }
    .page-heading h1 {
        font-size: 30px;
    }
    .page-heading > .count-badge {
        display: inline-flex;
    }
    .login-form-side {
        padding: 40px 50px;
    }
}
@media (min-width: 1024px) {
    .app-shell {
        display: flex;
    }
    .sidebar {
        width: 226px;
        position: fixed;
        inset: 0 auto 0 0;
        background: #fff;
        border-right: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        padding: 36px 22px 22px;
        z-index: 25;
    }
    .sidebar .brand {
        font-size: 24px;
        gap: 10px;
    }
    .sidebar .brand-mark {
        width: 40px;
        height: 45px;
    }
    .sidebar-label {
        font-size: 8px;
        color: #a0a89d;
        letter-spacing: 1.8px;
        margin: 52px 0 17px 16px;
        font-weight: 550;
    }
    .desktop-nav {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }
    .sidebar .nav-item {
        padding: 0 17px;
        border-radius: 11px;
        width: 100%;
        font-size: 12px;
    }
    .sidebar .nav-item .icon {
        width: 20px;
        height: 20px;
    }
    .sidebar .is-active {
        background: #eaf3e9;
        color: #2b704f;
        font-weight: 700;
    }
    .sidebar .nav-item:hover {
        background: #f2f5ef;
    }
    .sidebar-bottom {
        margin-top: auto;
        padding-top: 40px;
    }
    .sidebar-note {
        background: #f8f9f3;
        border: 1px solid #eceee3;
        padding: 19px 15px;
        border-radius: 14px;
        margin-bottom: 22px;
    }
    .sidebar-note > .icon {
        color: #829267;
        margin-bottom: 15px;
        width: 24px;
    }
    .sidebar-note strong {
        font-size: 11px;
        line-height: 1.8;
        display: block;
        color: #59694d;
    }
    .sidebar-note p {
        font-size: 10px;
        line-height: 1.8;
        color: #8c9583;
        margin-top: 8px;
    }
    .sidebar-bottom .nav-item {
        font-size: 11px;
    }
    .main-shell {
        margin-left: 226px;
        width: calc(100% - 226px);
        min-width: 0;
    }
    .topbar {
        height: 88px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        padding: 0 36px;
    }
    .desktop-breadcrumb {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 11px;
        color: #929c94;
    }
    .desktop-breadcrumb span {
        color: #bec6bd;
    }
    .desktop-breadcrumb strong {
        font-weight: 500;
        color: #4d6253;
    }
    .mobile-brand {
        display: none;
    }
    .topbar-actions {
        gap: 22px;
    }
    .topbar-divider {
        display: block;
        width: 1px;
        height: 25px;
        background: var(--line);
    }
    .profile-name {
        display: block;
        font-size: 11px;
        font-weight: 600;
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .profile-name small {
        font-size: 9px;
        font-weight: 400;
        color: #94a090;
        display: block;
        margin-top: 4px;
    }
    .profile-link > .icon {
        display: block;
        color: #9ba798;
    }
    .avatar {
        width: 38px;
        height: 38px;
        border: 0;
    }
    .main-content {
        padding: 32px 36px;
    }
    .page-heading {
        margin-bottom: 29px;
    }
    .date-label {
        display: flex;
    }
    .page-heading p {
        font-size: 12px;
    }
    .page-heading h1 {
        font-size: 29px;
    }
    .overview-grid {
        grid-template-columns: 1.15fr 1fr;
        gap: 22px;
    }
    .balance-card {
        padding: 25px 28px;
    }
    .balance-amount {
        font-size: 34px;
    }
    .quick-actions {
        padding: 25px 22px;
    }
    .quick-actions .section-heading .small-muted {
        display: block;
        font-size: 9px;
    }
    .quick-actions .section-heading {
        margin-bottom: 22px;
    }
    .quick-action {
        font-size: 10px;
    }
    .quick-footnote {
        font-size: 9px;
    }
    .totals-grid {
        gap: 18px;
    }
    .total-card {
        padding: 21px 16px;
        gap: 12px;
    }
    .total-card strong {
        font-size: 18px;
    }
    .detail-grid {
        gap: 22px;
        grid-template-columns: 1.3fr 1fr;
    }
    .transaction-panel {
        padding: 24px 22px 10px;
    }
    .transaction-info strong {
        font-size: 12px;
    }
    .transaction-value strong {
        font-size: 11px;
    }
    .transaction-icon {
        width: 35px;
        height: 37px;
    }
    .chart-panel {
        padding: 24px 22px;
    }
    .chart-totals strong {
        font-size: 13px;
    }
    .bar-chart {
        height: 173px;
    }
    .bar-pair {
        height: 147px;
    }
    .saving-banner {
        padding: 22px 24px;
    }
    .saving-banner h2 {
        font-size: 15px;
    }
    .saving-banner p {
        font-size: 10px;
    }
    .saving-banner .eyebrow {
        font-size: 8px;
    }
    .bottom-nav {
        display: none;
    }
    .app-footer {
        margin-top: 28px;
    }
    .summary-grid {
        grid-template-columns: 1.3fr 1fr;
    }
    .login-shell {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        padding: 18px;
        gap: 18px;
    }
    .login-story {
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        background: #183d35;
        border-radius: 24px;
        padding: 38px 42px;
        color: #fff;
        min-height: calc(100dvh - 36px);
    }
    .login-story .brand {
        color: #f1f4e8;
    }
    .login-story .brand-mark {
        background: #d9edb3;
        color: #244935;
    }
    .login-story .brand small {
        color: #adbfae;
    }
    .login-story-content {
        margin: auto 0;
        padding: 46px 4px 20px;
        z-index: 1;
    }
    .story-kicker {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 8px;
        letter-spacing: 1.5px;
        color: #c0d2b1;
    }
    .login-story h2 {
        font-size: clamp(36px, 4.1vw, 64px);
        font-weight: 500;
        line-height: 1.25;
        letter-spacing: -2.2px;
        margin-top: 26px;
    }
    .login-story h2 em {
        font-style: normal;
        color: #c7e3a2;
    }
    .login-story-content > p {
        font-size: 12px;
        line-height: 1.9;
        color: #aebfae;
        max-width: 320px;
        margin-top: 22px;
    }
    .login-copyright {
        font-size: 9px;
        color: #99b09d;
        margin-top: auto;
        padding-top: 30px;
    }
    .login-form-side {
        padding: 30px 45px;
        min-height: calc(100dvh - 36px);
        justify-content: center;
    }
    .login-mobile-brand {
        display: none;
    }
    .login-form-wrap {
        margin: auto;
        max-width: 370px;
    }
    .login-form-wrap h1 {
        font-size: 29px;
    }
    .login-bottom {
        margin-top: 25px;
        font-size: 9px;
    }
    .login-illustration {
        position: relative;
        margin: 38px 0 15px;
        width: 100%;
        max-width: 350px;
        padding: 15px 15px 30px;
    }
    .mini-bank-card {
        background: linear-gradient(120deg, #e6eed3, #bace9f);
        color: #35523a;
        border: 1px solid #ecf8d387;
        border-radius: 17px;
        padding: 24px;
        transform: rotate(-7deg);
        position: relative;
        box-shadow: 0 20px 50px #071e2930;
    }
    .mini-bank-card > span {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: var(--heading);
        font-size: 16px;
        font-weight: 700;
    }
    .mini-bank-card > small {
        display: block;
        font-size: 7px;
        letter-spacing: 1.6px;
        margin-top: 29px;
    }
    .mini-bank-card > strong {
        display: block;
        font-size: 21px;
        letter-spacing: -0.5px;
        margin-top: 7px;
        font-family: var(--heading);
        font-weight: 500;
    }
    .mini-card-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 25px;
        font-size: 13px;
    }
    .floating-badge {
        position: absolute;
        bottom: 0;
        right: -15px;
        background: #fbfdf6;
        box-shadow: 0 10px 30px #06291925;
        border-radius: 10px;
        padding: 14px 16px;
        color: #47744a;
        font-size: 9px;
        display: flex;
        align-items: center;
        gap: 8px;
        transform: rotate(2deg);
    }
    .floating-badge .icon {
        background: #e6f1db;
        border-radius: 50%;
        padding: 2px;
    }
    .illustration-orbit {
        position: absolute;
        border: 1px solid #b8d29620;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        top: -60px;
        left: -40px;
    }
    .login-story:after {
        content: "";
        position: absolute;
        width: 650px;
        height: 650px;
        border: 1px solid #b8d29614;
        border-radius: 50%;
        bottom: -200px;
        left: -280px;
    }
}
@media (min-width: 1280px) {
    .sidebar {
        width: 244px;
        padding: 38px 26px 24px;
    }
    .main-shell {
        margin-left: 244px;
        width: calc(100% - 244px);
    }
    .main-content {
        padding: 36px 44px;
    }
    .topbar {
        padding: 0 44px;
    }
    .overview-grid {
        grid-template-columns: 1.15fr 1fr;
    }
    .quick-actions {
        padding: 25px 28px;
    }
    .quick-action {
        font-size: 11px;
    }
    .action-icon {
        width: 53px;
        height: 53px;
    }
    .quick-footnote {
        margin-top: 24px;
    }
    .total-card {
        padding: 22px;
        gap: 16px;
    }
    .stat-icon {
        width: 41px;
        height: 41px;
        border-radius: 13px;
    }
    .total-card p {
        font-size: 11px;
    }
    .total-card strong {
        font-size: 20px;
    }
    .detail-grid {
        grid-template-columns: 1.3fr 1fr;
    }
    .transaction-panel .section-heading {
        flex-wrap: nowrap;
        margin-bottom: 18px;
    }
    .transaction-item summary {
        gap: 13px;
        padding: 17px 0;
    }
    .transaction-icon {
        width: 40px;
        height: 40px;
    }
    .transaction-info small span {
        display: inline;
    }
    .transaction-info strong {
        font-size: 12px;
    }
    .transaction-value strong {
        font-size: 12px;
    }
    .transaction-chevron {
        display: block;
    }
    .chart-panel .section-heading h2 {
        font-size: 16px;
    }
    .bar-chart {
        height: 181px;
        margin-top: 22px;
    }
    .bar-pair {
        height: 155px;
    }
    .chart-totals strong {
        font-size: 15px;
    }
    .chart-day-label {
        font-size: 9px;
    }
    .saving-banner h2 {
        font-size: 16px;
    }
    .saving-banner p {
        font-size: 11px;
    }
    .login-story {
        padding: 40px 60px;
    }
    .login-story-content {
        padding-left: 8px;
    }
    .login-illustration {
        margin-top: 45px;
    }
}
@media (max-width: 359px) {
    .main-content {
        padding-left: 14px;
        padding-right: 14px;
    }
    .topbar {
        padding: 0 14px;
    }
    .brand {
        font-size: 20px;
    }
    .brand-mark {
        width: 34px;
        height: 38px;
    }
    .balance-card {
        padding: 20px;
    }
    .panel {
        padding: 18px 14px;
    }
    .quick-action {
        font-size: 10px;
    }
    .action-icon {
        width: 45px;
        height: 45px;
    }
    .total-card {
        padding: 14px 12px;
        gap: 10px;
    }
    .total-card > div {
        grid-template-columns: 1fr;
    }
    .total-card strong {
        font-size: 17px;
    }
    .transaction-item summary {
        gap: 8px;
    }
    .transaction-icon {
        width: 30px;
        height: 34px;
    }
    .transaction-value strong {
        font-size: 10px;
    }
    .transaction-info strong {
        font-size: 11px;
    }
    .page-heading > .count-badge {
        display: none;
    }
    .app-footer {
        font-size: 8px;
    }
    .login-form-side {
        padding: 26px 20px;
    }
    .login-form-wrap h1 {
        font-size: 25px;
    }
    .login-mobile-brand {
        margin-bottom: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
/* Keep mobile controls readable and avoid automatic input zoom on iOS. */
@media (max-width: 1023px) {
    .input-wrap input,
    .search-input input,
    .filter-select select {
        font-size: 16px;
    }
    .help-button {
        width: 44px;
        height: 44px;
    }
    .balance-top {
        font-size: 13px;
    }
    .balance-label {
        font-size: 13px;
    }
    .quick-action {
        font-size: 12px;
    }
    .quick-footnote {
        font-size: 10px;
        line-height: 1.6;
        text-align: center;
    }
    .transaction-info > strong {
        font-size: 13px;
    }
    .transaction-info small,
    .transaction-value small {
        font-size: 11px;
    }
    .transaction-value strong {
        font-size: 12px;
    }
    .section-heading p {
        font-size: 12px;
    }
    .chart-legend,
    .chart-totals span {
        font-size: 11px;
    }
    .service-steps li {
        font-size: 14px;
    }
    .service-dialog > p {
        font-size: 14px;
    }
    .field-group label,
    .remember-field {
        font-size: 13px;
    }
    .login-help {
        font-size: 12px;
    }
    .bottom-nav .nav-item {
        font-size: 11px;
    }
}
@media (min-width: 600px) and (max-width: 850px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 359px) {
    .quick-action {
        font-size: 11px;
    }
    .transaction-value strong {
        font-size: 11px;
    }
    .transaction-info > strong {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .filter-select {
        flex-basis: 100%;
    }
    .filter-form .primary-button {
        flex: 1;
    }
}

.page-heading > div { min-width: 0; }
.page-heading h1 { overflow-wrap: anywhere; }
.daily-table-wrap { overflow-x: auto; }
