/* Expenses app dashboard, tagged sharing, transactions, statistics, and receipt-review surfaces. */
.expenses-content {
    width: min(1120px, 100%);
    padding-bottom: 110px;
}

.expenses-shell {
    display: grid;
    gap: 14px;
}

.expenses-dashboard-grid,
.expense-stats-grid,
.expense-list-screen {
    display: grid;
    gap: 12px;
}

.expense-total-card,
.expense-card,
.expense-filter-card {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        #121724;
    box-shadow: 0 18px 55px rgba(3, 7, 18, .24);
}

.expense-total-card {
    display: grid;
    min-height: 226px;
    padding: 22px;
    grid-template-columns: minmax(0, 1.12fr) minmax(220px, .88fr);
    align-items: center;
    gap: 20px;
    overflow: hidden;
    color: #f7f8ff;
}

.expense-total-meta,
.expense-total-card em,
.expense-card-heading p,
.expense-empty-note {
    color: #9aa3b8;
}

.expense-total-copy {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.expense-total-meta {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
}

.expense-total-meta > span {
    display: inline-flex;
    min-height: 30px;
    padding: 0 10px;
    align-items: center;
    color: #b9c0d3;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
}

.expense-total-meta .expense-period-chip {
    color: #f7f8ff;
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .07);
}

.expense-total-meta .expense-count-pill {
    margin-left: auto;
}

.expense-total-card strong {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1;
}

.expense-total-card em {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.expense-total-actions {
    display: grid;
    margin-top: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.expense-hero-action {
    display: flex;
    min-width: 0;
    min-height: 70px;
    padding: 12px;
    align-items: center;
    gap: 12px;
    color: #f4f6ff;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.expense-hero-action:hover,
.expense-hero-action:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(101, 119, 255, .38);
    background: rgba(101, 119, 255, .11);
    outline: 0;
}

.expense-hero-action svg {
    width: 42px;
    height: 42px;
    padding: 11px;
    flex: 0 0 auto;
    color: #f7f8ff;
    border-radius: 15px;
    background: rgba(255, 255, 255, .09);
}

.expense-hero-action.primary svg {
    background: linear-gradient(135deg, #7c5cff, #5364e8);
    box-shadow: 0 12px 28px rgba(101, 119, 255, .28);
}

.expense-hero-action span,
.expense-hero-action strong,
.expense-hero-action small {
    display: block;
    min-width: 0;
}

.expense-hero-action strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expense-hero-action small {
    margin-top: 2px;
    color: #9aa3b8;
    font-size: 12px;
    font-weight: 800;
}

.expense-total-card em.good {
    color: #65e5a4;
}

.expense-total-card em.warn {
    color: #f8b15f;
}

.expense-trend-panel {
    display: grid;
    min-width: 0;
    gap: 8px;
    align-self: center;
}

.expense-trend-line {
    width: 100%;
    height: 78px;
    color: #8b5cf6;
    filter: drop-shadow(0 8px 12px rgba(139, 92, 246, .36));
}

.expense-trend-guide {
    fill: none;
    stroke: rgba(255, 255, 255, .09);
    stroke-dasharray: 4 6;
    stroke-linecap: round;
    stroke-width: 1;
}

.expense-trend-line polyline {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.25;
}

.expense-trend-labels {
    display: flex;
    justify-content: space-between;
    color: #7f899f;
    font-size: 11px;
    font-weight: 900;
}

.expense-card,
.expense-filter-card {
    padding: 18px;
    color: #f7f8ff;
}

.expense-card-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.expense-card-heading h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
}

.expense-card-heading p {
    margin: 2px 0 0;
    font-size: 12px;
}

.expense-card-heading a {
    color: #a78bfa;
    font-size: 12px;
    font-weight: 800;
}

.expense-compare-people {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.expense-person,
.expense-person.right,
.expense-person-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expense-person.right {
    justify-content: flex-end;
    text-align: right;
}

.expense-person span,
.expense-person-total span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--profile-color, #6577ff);
    font-size: 15px;
    font-weight: 900;
}

.expense-person strong,
.expense-person em {
    display: block;
}

.expense-person strong {
    font-size: 13px;
}

.expense-person em {
    margin-top: 3px;
    color: #a78bfa;
    font-style: normal;
    font-weight: 900;
}

.expense-person.right em {
    color: #f65fa6;
}

.expense-person-add {
    color: inherit;
    text-decoration: none;
}

.expense-person-add span {
    color: #d9dded;
    border: 1px dashed rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .04);
}

.expense-person-add svg {
    width: 18px;
    height: 18px;
}

.expense-person-empty {
    min-width: 0;
}

.expense-person-empty .expense-person-empty-copy {
    display: block;
    width: auto;
    height: auto;
    color: inherit;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
}

.expense-person-empty-copy strong,
.expense-person-empty-copy em {
    display: block;
}

.expense-person-empty-copy strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expense-person-empty-copy em {
    color: #9aa3b8;
    font-size: 12px;
}

.expense-compare-picker {
    display: flex;
    min-width: 0;
    justify-content: flex-end;
}

.expense-compare-picker select {
    width: min(150px, 100%);
    height: 38px;
    min-width: 0;
    padding: 0 10px;
    color: #f7f8ff;
    outline: 0;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: #0f1420;
    font-size: 12px;
    font-weight: 800;
}

.expense-compare-picker button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    flex: 0 0 auto;
    place-items: center;
    color: #d9dded;
    border: 1px dashed rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
}

.expense-compare-card {
    padding-bottom: 16px;
}

.expense-compare-card .expense-card-heading {
    margin-bottom: 10px;
}

.expense-compare-card .expense-person span {
    width: 40px;
    height: 40px;
}

.expense-compare-bar {
    position: relative;
    display: grid;
    height: 14px;
    margin: 14px 4px 0;
    grid-template-columns: var(--split) 1fr;
    align-items: center;
}

.expense-compare-bar span,
.expense-compare-bar b {
    display: block;
    height: 10px;
}

.expense-compare-bar span {
    border-radius: 999px 0 0 999px;
    background: linear-gradient(90deg, #6d47ff, #8b5cf6);
}

.expense-compare-bar b {
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, #f65fa6, #ff6aa8);
}

.expense-compare-bar i {
    position: absolute;
    left: calc(var(--split) - 18px);
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #d7dbeb;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    background: #171c2b;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.expense-compare-summary {
    margin: 10px 0 0;
    color: #aeb5ca;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.expense-category-empty {
    display: grid;
    gap: 8px;
    color: #dfe4f4;
}

.expense-category-empty strong,
.expense-recent-empty strong {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
}

.expense-category-empty p,
.expense-recent-empty p {
    margin: 0;
    color: #9aa3b8;
    font-size: 13px;
    line-height: 1.45;
}

.expense-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.expense-empty-actions a,
.expense-recent-empty a {
    display: inline-flex;
    min-height: 40px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #f4f6ff;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    background: rgba(255, 255, 255, .045);
    font-size: 12px;
    font-weight: 900;
}

.expense-empty-actions a:hover,
.expense-empty-actions a:focus-visible,
.expense-recent-empty a:hover,
.expense-recent-empty a:focus-visible {
    color: #fff;
    border-color: rgba(101, 119, 255, .38);
    background: rgba(101, 119, 255, .14);
    outline: 0;
}

.expense-empty-actions svg,
.expense-recent-empty a svg {
    width: 16px;
    height: 16px;
}

.expense-category-layout {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.expense-donut {
    display: grid;
    position: relative;
    width: 168px;
    height: 168px;
    justify-self: start;
    margin-left: -4px;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: conic-gradient(var(--expense-donut));
}

.expense-donut::after {
    position: absolute;
    inset: 34px;
    border-radius: 50%;
    background: #121724;
    content: "";
}

.expense-donut strong,
.expense-donut span {
    position: relative;
    z-index: 1;
}

.expense-donut strong {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
}

.expense-donut span {
    color: #9aa3b8;
    font-size: 12px;
}

.expense-category-list {
    display: grid;
    gap: 8px;
}

.expense-category-row,
.expense-stat-bar,
.expense-transaction-row {
    display: grid;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.expense-category-row {
    grid-template-columns: 10px minmax(0, 1fr) 36px 78px;
    gap: 8px;
    font-size: 12px;
}

.expense-category-row > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--category-color);
}

.expense-category-row strong,
.expense-category-row b,
.expense-stat-bar strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expense-category-row em {
    color: #b2b8c9;
    font-style: normal;
    text-align: right;
}

.expense-category-row b {
    text-align: right;
}

.expense-recent-card {
    padding-bottom: 12px;
}

.expense-transaction-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 8px 0;
    color: #f7f8ff;
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.expense-transaction-row:first-of-type {
    border-top: 0;
}

.expense-transaction-row.full {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 70px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 16px;
    background: #121724;
}

.expense-transaction-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #08101c;
    border-radius: 14px;
    background: var(--category-color, #94a3b8);
}

.expense-transaction-icon svg {
    width: 19px;
    height: 19px;
}

.expense-transaction-row strong,
.expense-transaction-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expense-transaction-row small {
    margin-top: 3px;
    color: #929bad;
    font-size: 11px;
}

.expense-transaction-row b {
    font-family: "Manrope", sans-serif;
    font-size: 15px;
}

.expense-recent-empty {
    display: grid;
    min-height: 92px;
    margin-top: 6px;
    padding: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .025);
}

.expense-recent-empty > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #b7c0d8;
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
}

.expense-recent-empty > span svg {
    width: 22px;
    height: 22px;
}

.expense-recent-empty a {
    color: #fff;
    border-color: rgba(101, 119, 255, .5);
    background: linear-gradient(135deg, #6577ff, #7c5cff);
    box-shadow: 0 12px 28px rgba(101, 119, 255, .22);
}

.expense-row-button,
.expense-mini-danger {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    color: #d8def0;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
}

.expense-row-button svg,
.expense-mini-danger svg {
    width: 16px;
    height: 16px;
}

.expense-mini-danger {
    color: #ff8aa0;
}

.expense-filter-card {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(130px, 1fr)) auto;
    align-items: end;
    gap: 10px;
}

.expense-filter-card label,
.expense-entry-form label,
.expense-scan-form {
    display: grid;
    gap: 7px;
}

.expense-filter-card span,
.expense-entry-form label > span,
.expense-notes-field > span {
    color: #9aa3b8;
    font-size: 11px;
    font-weight: 900;
}

.expense-filter-card input,
.expense-filter-card select,
.expense-entry-form input,
.expense-entry-form select,
.expense-entry-form textarea {
    width: 100%;
    min-width: 0;
    color: #f7f8ff;
    outline: 0;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: #0f1420;
}

.expense-filter-card input,
.expense-filter-card select,
.expense-entry-form input,
.expense-entry-form select {
    height: 44px;
    padding: 0 12px;
}

.expense-entry-form textarea {
    min-height: 86px;
    padding: 12px;
    resize: vertical;
}

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

.expense-card.stat {
    display: grid;
    gap: 8px;
}

.expense-card.stat span {
    color: #9aa3b8;
    font-size: 12px;
    font-weight: 900;
}

.expense-card.stat strong {
    font-family: "Manrope", sans-serif;
    font-size: 28px;
}

.expense-card.wide {
    grid-column: 1 / -1;
}

.expense-stat-bar {
    grid-template-columns: 160px minmax(0, 1fr) 95px;
}

.expense-stat-bar i {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.expense-stat-bar i b {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: var(--category-color);
}

.expense-person-total {
    min-height: 58px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.expense-person-total:first-of-type {
    border-top: 0;
}

.expense-person-total strong {
    flex: 1;
}

.expenses-bottom-nav {
    position: fixed;
    z-index: 18;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    left: calc(280px + 18px);
    display: grid;
    max-width: 760px;
    min-height: 78px;
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #8f98ad;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    background: rgba(18, 23, 36, .94);
    box-shadow: 0 22px 55px rgba(3, 7, 18, .34);
    backdrop-filter: blur(18px);
}

.expenses-bottom-nav a {
    display: grid;
    min-width: 0;
    place-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 900;
}

.expenses-bottom-nav svg {
    width: 22px;
    height: 22px;
}

.expenses-bottom-nav a.active {
    color: #8b5cf6;
}

.expenses-bottom-nav .expense-add-nav {
    color: #f7f8ff;
    transform: translateY(-18px);
}

.expenses-bottom-nav .expense-add-nav svg {
    width: 58px;
    height: 58px;
    padding: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d47ff);
    box-shadow: 0 18px 38px rgba(109, 71, 255, .42);
}

.expense-form-overlay {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(4, 8, 16, .58);
    backdrop-filter: blur(14px);
}

.expense-form-panel {
    width: min(760px, 100%);
    max-height: min(860px, calc(100dvh - 48px));
    overflow: auto;
    padding: 20px;
    color: #f7f8ff;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 24px;
    background: #121724;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.expense-form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.expense-form-heading h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 24px;
}

.expense-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.expense-notes-field {
    display: grid;
    gap: 7px;
}

.expense-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.expense-scan-form {
    gap: 12px;
}

.expense-receipt-drop {
    display: grid;
    min-height: 260px;
    padding: 28px;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #dfe4f4;
    border: 1px dashed rgba(167, 139, 250, .45);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(139, 92, 246, .16), rgba(56, 189, 248, .08));
    text-align: center;
}

.expense-receipt-drop svg {
    width: 44px;
    height: 44px;
    color: #a78bfa;
}

.expense-receipt-drop input {
    width: min(330px, 100%);
}

.expense-review-banner {
    display: grid;
    margin-bottom: 14px;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(101, 119, 255, .26);
    border-radius: 18px;
    background: rgba(101, 119, 255, .12);
}

.expense-review-banner img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
}

.expense-review-banner p {
    margin: 0;
    color: #cfd5e7;
    font-size: 13px;
    line-height: 1.5;
}

html:not([data-theme="dark"]) .expense-total-card,
html:not([data-theme="dark"]) .expense-card,
html:not([data-theme="dark"]) .expense-filter-card {
    color: var(--ink);
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

html:not([data-theme="dark"]) .expense-total-meta,
html:not([data-theme="dark"]) .expense-total-card em,
html:not([data-theme="dark"]) .expense-card-heading p,
html:not([data-theme="dark"]) .expense-empty-note,
html:not([data-theme="dark"]) .expense-hero-action small,
html:not([data-theme="dark"]) .expense-category-empty p,
html:not([data-theme="dark"]) .expense-recent-empty p,
html:not([data-theme="dark"]) .expense-transaction-row small,
html:not([data-theme="dark"]) .expense-filter-card span,
html:not([data-theme="dark"]) .expense-entry-form label > span,
html:not([data-theme="dark"]) .expense-notes-field > span {
    color: var(--muted);
}

html:not([data-theme="dark"]) .expense-total-meta > span,
html:not([data-theme="dark"]) .expense-hero-action,
html:not([data-theme="dark"]) .expense-empty-actions a {
    color: var(--ink);
    border-color: var(--line);
    background: #fafafe;
}

html:not([data-theme="dark"]) .expense-period-chip {
    color: var(--ink);
    background: color-mix(in srgb, var(--accent) 9%, #fff);
}

html:not([data-theme="dark"]) .expense-trend-guide {
    stroke: color-mix(in srgb, var(--line) 70%, var(--muted));
}

html:not([data-theme="dark"]) .expense-donut::after,
html:not([data-theme="dark"]) .expense-transaction-row.full,
html:not([data-theme="dark"]) .expense-recent-empty,
html:not([data-theme="dark"]) .expense-form-panel {
    background: var(--surface);
}

html:not([data-theme="dark"]) .expense-filter-card input,
html:not([data-theme="dark"]) .expense-filter-card select,
html:not([data-theme="dark"]) .expense-compare-picker select,
html:not([data-theme="dark"]) .expense-entry-form input,
html:not([data-theme="dark"]) .expense-entry-form select,
html:not([data-theme="dark"]) .expense-entry-form textarea {
    color: var(--ink);
    border-color: var(--line);
    background: #fafafe;
}

html:not([data-theme="dark"]) .expense-compare-picker button {
    color: var(--ink);
    border-color: var(--line);
    background: #fafafe;
}

html:not([data-theme="dark"]) .expense-transaction-row,
html:not([data-theme="dark"]) .expense-category-empty,
html:not([data-theme="dark"]) .expense-recent-empty,
html:not([data-theme="dark"]) .expense-form-panel {
    color: var(--ink);
}

@media (max-width: 980px) {
    .expense-total-card,
    .expense-filter-card,
    .expense-form-grid {
        grid-template-columns: 1fr;
    }

    .expense-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .expenses-content {
        padding: 18px 16px 120px;
        background:
            linear-gradient(180deg, rgba(14, 19, 32, .98), rgba(8, 12, 21, .98)),
            #090d16;
    }

    .expense-total-card,
    .expense-card,
    .expense-filter-card {
        border-radius: 16px;
    }

    .expense-total-card {
        min-height: 0;
        padding: 16px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .expense-total-meta {
        gap: 6px;
        font-size: 11px;
    }

    .expense-total-meta > span {
        min-height: 28px;
        padding: 0 9px;
    }

    .expense-total-card strong {
        font-size: 31px;
    }

    .expense-total-actions {
        margin-top: 8px;
    }

    .expense-hero-action {
        min-height: 62px;
        padding: 10px;
        gap: 9px;
        border-radius: 15px;
    }

    .expense-hero-action svg {
        width: 38px;
        height: 38px;
        padding: 10px;
        border-radius: 14px;
    }

    .expense-hero-action strong {
        font-size: 12px;
    }

    .expense-hero-action small {
        font-size: 10.5px;
    }

    .expense-trend-line {
        height: 50px;
    }

    .expense-trend-labels {
        font-size: 10px;
    }

    .expense-card-heading {
        margin-bottom: 10px;
    }

    .expense-compare-people {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: center;
    }

    .expense-person {
        gap: 8px;
    }

    .expense-person strong {
        font-size: 12px;
    }

    .expense-person em {
        font-size: 12px;
    }

    .expense-person.right {
        justify-content: flex-start;
        text-align: left;
    }

    .expense-person.right.expense-compare-picker {
        width: 100%;
        gap: 7px;
        justify-content: stretch;
    }

    .expense-compare-picker select {
        flex: 1 1 auto;
        width: 100%;
        height: 42px;
        min-width: 0;
        padding: 0 8px;
        border-radius: 13px;
        font-size: 11px;
    }

    .expense-compare-picker button {
        width: 42px;
        height: 42px;
    }

    .expense-category-card {
        padding: 14px;
    }

    .expense-category-layout {
        grid-template-columns: 124px minmax(0, 1fr);
        gap: 10px;
    }

    .expense-donut {
        width: 122px;
        height: 122px;
        margin-left: -3px;
    }

    .expense-donut::after {
        inset: 24px;
    }

    .expense-donut strong {
        font-size: 11px;
    }

    .expense-donut span {
        font-size: 10px;
    }

    .expense-category-list {
        gap: 6px;
    }

    .expense-category-row {
        grid-template-columns: 8px minmax(0, 1fr) 28px 58px;
        gap: 5px;
        font-size: 10.5px;
    }

    .expense-category-row > span {
        width: 8px;
        height: 8px;
    }

    .expense-category-empty {
        align-self: center;
    }

    .expense-category-empty strong,
    .expense-recent-empty strong {
        font-size: 14px;
    }

    .expense-empty-actions {
        gap: 6px;
    }

    .expense-empty-actions a {
        min-height: 36px;
        padding: 0 9px;
        font-size: 10px;
    }

    .expense-recent-empty {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .expense-recent-empty a {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .expense-transaction-row.full {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .expense-row-button {
        grid-column: 2 / -1;
        width: 100%;
        justify-self: stretch;
    }

    .expense-stat-bar {
        grid-template-columns: 1fr;
    }

    .expense-stat-bar strong {
        justify-self: start;
    }

    .expenses-bottom-nav {
        right: 16px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 16px;
        min-height: 76px;
    }

    .expense-form-overlay {
        align-items: end;
        padding: 10px;
    }

    .expense-form-panel {
        max-height: calc(100dvh - 20px);
        border-radius: 22px;
    }
}
