* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #f6f7fb;
    color: #20202a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.income-page {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 10px;
}

.income-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    margin-bottom: 8px;
    border-radius: 8px 8px 0 0;
    background: #fff;
    box-shadow: 0 10px 28px rgba(30, 35, 70, 0.06);
}

.income-tabs a {
    position: relative;
    padding: 12px 4px 11px;
    color: #20202a;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.income-tabs a.active {
    color: #ff3b35;
}

.income-tabs a.active::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    border-radius: 3px;
    background: #ff3b35;
}

.income-card {
    padding: 12px;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(30, 35, 70, 0.06);
}

.income-filter {
    margin-bottom: 8px;
}

.income-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
}

.income-filter-row label {
    color: #4b5565;
    font-size: 14px;
    font-weight: 400;
}

.income-filter-row select {
    flex: 1;
    max-width: 240px;
    height: 32px;
    padding: 0 30px 0 12px;
    border: 1px solid #eef0f6;
    border-radius: 8px;
    background: #f8f9fc;
    color: #20202a;
    font-size: 14px;
    outline: none;
}

.view-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.view-switch span {
    padding: 5px 10px;
    border-radius: 3px;
    background: #f1f3f8;
    color: #8a90a0;
    font-size: 13px;
    font-weight: 400;
}

.view-switch span.active {
    background: #fff;
    color: #20202a;
    box-shadow: inset 0 0 0 1px #eef0f6;
}

.view-switch em,
.view-switch a {
    color: #8a90a0;
    font-size: 13px;
    font-style: normal;
}

.view-switch em {
    margin-left: auto;
}

.page-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 4px;
}

.page-refresh svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.update-time-success {
    color: #18a755 !important;
}

.update-time-warning {
    color: #f59e0b !important;
}

.update-time-danger {
    color: #ee3e3e !important;
}

.income-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px 0 9px;
    background: #f3f4fb;
}

.income-header h1 {
    min-width: 102px;
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0;
}

.month-arrow {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
}

.month-arrow::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-left: 2px solid #8b90a0;
    border-bottom: 2px solid #8b90a0;
    transform: rotate(45deg);
}

.month-arrow_next::before {
    left: 6px;
    transform: rotate(225deg);
}

.income-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    background: #f3f4fb;
}

.calendar-week {
    padding: 3px 0 5px;
    color: #6f7382;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.calendar-day {
    display: block;
    min-height: 40px;
    padding: 5px 2px 4px;
    border-radius: 6px;
    background: #e5e5e5;
    box-shadow: 0 5px 12px rgba(30, 35, 70, 0.04);
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.calendar-day:active {
    transform: scale(0.97);
}

.calendar-day_empty {
    background: transparent;
    box-shadow: none;
}

.calendar-date {
    display: block;
    color: #20202a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.1;
}

.calendar-income {
    display: block;
    margin-top: 3px;
    color: #7b7f8c;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.calendar-day_positive {
    background: #fde0dd;
}

.calendar-day_positive .calendar-income {
    color: #ee3e3e;
}

.calendar-day_negative {
    background: #c9efd5;
}

.calendar-day_negative .calendar-income {
    color: #18a755;
}

.calendar-day_selected {
    background: #ff514b !important;
    box-shadow: 0 6px 14px rgba(255, 81, 75, 0.18);
}

.calendar-day_selected.calendar-day_negative {
    background: #18a755 !important;
    box-shadow: 0 6px 14px rgba(24, 167, 85, 0.18);
}

.calendar-day_selected .calendar-date,
.calendar-day_selected .calendar-income {
    color: #fff !important;
}

.income-detail {
    padding: 14px 0 2px;
}

.detail-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.detail-title strong {
    font-size: 16px;
    font-weight: 500;
}

.detail-title span,
.detail-title em {
    color: #7f8494;
    font-size: 13px;
    font-style: normal;
}

.detail-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.detail-chips span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    max-width: 210px;
    min-height: 34px;
    overflow: hidden;
    padding: 0 12px;
    border: 1px solid #edf0f5;
    border-radius: 999px;
    background: #fff;
    color: #5b6170;
    font-size: 12px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(30, 35, 70, 0.04);
}

.detail-chips strong {
    font-size: 15px;
    font-weight: 400;
}

.detail-list {
    border-top: 1px solid #f0f2f6;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f6;
}

.detail-item:last-child {
    border-bottom: 0;
}

.detail-item strong {
    display: block;
    color: #20202a;
    font-size: 15px;
    font-weight: 400;
}

.detail-item span {
    display: block;
    margin-top: 5px;
    color: #8a90a0;
    font-size: 12px;
}

.detail-item em {
    flex: 0 0 auto;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
}

.detail-empty {
    padding: 30px 0;
    color: #8a90a0;
    font-size: 14px;
    text-align: center;
}

.money-positive {
    color: #ee3e3e;
}

.money-negative {
    color: #18a755;
}

.income-today {
    margin-top: 12px;
    border: 1px solid #e2e6ef !important;
    background: #fff !important;
    color: #20202a !important;
    box-shadow: 0 6px 16px rgba(30, 35, 70, 0.06);
}

.logout-link,
.profile-link {
    display: block;
    padding: 14px 0 4px;
    color: #8a90a0;
    font-size: 13px;
    text-align: center;
}

.theme-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 12px auto 4px;
    padding: 4px;
    border-radius: 999px;
    background: #eceff5;
}

.theme-switch button {
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #7b8190;
    font-size: 12px;
}

.theme-switch button.active {
    background: #fff;
    color: #20202a;
    box-shadow: 0 4px 10px rgba(30, 35, 70, 0.08);
}

@media (min-width: 641px) {
    .income-card {
        padding: 16px;
    }

    .income-calendar {
        gap: 6px;
        padding: 12px;
    }

    .calendar-day {
        min-height: 52px;
        padding-top: 7px;
    }

    .calendar-date {
        font-size: 16px;
    }

    .calendar-income {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .income-page {
        padding: 6px;
    }

    .income-card {
        padding: 8px;
    }

    .income-calendar {
        gap: 3px;
        padding: 6px;
    }

    .calendar-day {
        min-height: 36px;
    }

    .calendar-income {
        font-size: 9px;
    }
}

.login-page {
    min-height: 100vh;
    padding: 64px 24px 28px;
    background: linear-gradient(180deg, #fff 0%, #f6f7fb 100%);
}

.login-brand {
    margin-bottom: 38px;
}

.login-brand span {
    color: #ff514b;
    font-size: 14px;
}

.login-brand h1 {
    margin: 10px 0 8px;
    color: #20202a;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0;
}

.login-brand p {
    margin: 0;
    color: #8a90a0;
    font-size: 14px;
    line-height: 1.6;
}

.login-form {
    width: 100%;
}

.login-error {
    margin-bottom: 18px;
    padding: 11px 12px;
    border-radius: 8px;
    background: #fff0ef;
    color: #e63b35;
    font-size: 14px;
}

.login-field {
    display: block;
    margin-bottom: 18px;
}

.login-field span {
    display: block;
    margin-bottom: 7px;
    color: #5b6170;
    font-size: 13px;
}

.login-field input {
    width: 100%;
    height: 48px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #e5e8f0;
    border-radius: 0;
    background: transparent;
    color: #20202a;
    font-size: 17px;
    outline: none;
}

.login-field input:focus {
    border-color: #ff514b;
}

.login-submit {
    margin-top: 22px;
    border-radius: 8px;
}

.login-submit.weui-btn_primary,
.profile-submit.weui-btn_primary {
    background-color: #ff514b;
}

.login-submit.weui-btn_primary:not(.weui-btn_disabled):active,
.profile-submit.weui-btn_primary:not(.weui-btn_disabled):active {
    background-color: #e64540;
}

.profile-page {
    min-height: 100vh;
    padding: 16px 16px 28px;
    background: #f6f7fb;
}

.profile-hero {
    position: relative;
    margin-bottom: 14px;
    padding: 48px 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff615b 0%, #ff8f6b 100%);
    color: #fff;
    overflow: hidden;
}

.profile-hero::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -72px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.profile-hero_compact {
    padding-bottom: 26px;
}

.profile-back {
    position: absolute;
    top: 16px;
    left: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.profile-hero span {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.profile-hero h1 {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    color: #fff;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0;
}

.profile-hero p {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
}

.profile-menu {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(30, 35, 70, 0.05);
}

.profile-menu a,
.profile-menu-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid #f0f2f6;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.profile-menu a:last-child,
.profile-menu-button:last-child {
    border-bottom: 0;
}

.profile-menu strong {
    display: block;
    color: #20202a;
    font-size: 16px;
    font-weight: 400;
}

.profile-menu span {
    display: block;
    margin-top: 5px;
    color: #8a90a0;
    font-size: 12px;
}

.menu-arrow {
    position: relative;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-top: 2px solid #c2c7d0;
    border-right: 2px solid #c2c7d0;
    transform: rotate(45deg);
}

.theme-sheet[hidden] {
    display: none;
}

.theme-sheet {
    position: fixed;
    inset: 0;
    z-index: 20;
}

.theme-sheet-mask {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.36);
}

.theme-sheet-panel {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(30, 35, 70, 0.16);
}

.theme-sheet-panel strong {
    display: block;
    margin-bottom: 10px;
    color: #20202a;
    font-size: 16px;
    font-weight: 400;
}

.theme-sheet-panel button {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: #f5f7fb;
    color: #20202a;
    font-size: 15px;
}

.theme-sheet-panel button.active {
    background: #ff514b;
    color: #fff;
}

.profile-section {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(30, 35, 70, 0.05);
}

.section-title {
    margin-bottom: 14px;
}

.section-title strong {
    display: block;
    color: #20202a;
    font-size: 17px;
    font-weight: 400;
}

.section-title span {
    display: block;
    margin-top: 4px;
    color: #8a90a0;
    font-size: 12px;
}

.profile-field {
    display: block;
    margin-bottom: 13px;
}

.profile-field span {
    display: block;
    margin-bottom: 6px;
    color: #5b6170;
    font-size: 13px;
}

.profile-field input,
.profile-field textarea {
    width: 100%;
    padding: 0 12px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #f8f9fc;
    color: #20202a;
    font-size: 15px;
    outline: none;
}

.profile-field input {
    height: 42px;
}

.profile-field textarea {
    min-height: 126px;
    padding-top: 10px;
    resize: vertical;
    line-height: 1.5;
}

.profile-field input:focus,
.profile-field textarea:focus {
    border-color: #ff8a86;
    background: #fff;
}

.profile-submit {
    margin-top: 4px;
    border-radius: 8px;
}

.profile-message,
.profile-error {
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.profile-message {
    background: #eef9f1;
    color: #18a755;
}

.profile-error {
    background: #fff0ef;
    color: #e63b35;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body {
        background: #101114;
        color: #f2f3f5;
    }

    :root:not([data-theme="light"]) .income-tabs,
    :root:not([data-theme="light"]) .income-card,
    :root:not([data-theme="light"]) .detail-chips span,
    :root:not([data-theme="light"]) .profile-section {
        background: #1a1c21;
        box-shadow: none;
    }

    :root:not([data-theme="light"]) .income-tabs a,
    :root:not([data-theme="light"]) .income-header h1,
    :root:not([data-theme="light"]) .calendar-date,
    :root:not([data-theme="light"]) .detail-item strong,
    :root:not([data-theme="light"]) .login-brand h1,
    :root:not([data-theme="light"]) .profile-header h1,
    :root:not([data-theme="light"]) .section-title strong {
        color: #f2f3f5;
    }

    :root:not([data-theme="light"]) .income-filter-row label,
    :root:not([data-theme="light"]) .view-switch em,
    :root:not([data-theme="light"]) .view-switch a,
    :root:not([data-theme="light"]) .calendar-week,
    :root:not([data-theme="light"]) .calendar-income,
    :root:not([data-theme="light"]) .detail-title span,
    :root:not([data-theme="light"]) .detail-title em,
    :root:not([data-theme="light"]) .detail-chips span,
    :root:not([data-theme="light"]) .detail-item span,
    :root:not([data-theme="light"]) .detail-empty,
    :root:not([data-theme="light"]) .logout-link,
    :root:not([data-theme="light"]) .profile-link,
    :root:not([data-theme="light"]) .login-brand p,
    :root:not([data-theme="light"]) .login-field span,
    :root:not([data-theme="light"]) .profile-header a,
    :root:not([data-theme="light"]) .section-title span,
    :root:not([data-theme="light"]) .profile-field span {
        color: #9da3af;
    }

    :root:not([data-theme="light"]) .income-filter-row select,
    :root:not([data-theme="light"]) .view-switch span,
    :root:not([data-theme="light"]) .profile-field input,
    :root:not([data-theme="light"]) .profile-field textarea {
        border-color: #30333b;
        background: #14161a;
        color: #f2f3f5;
    }

    :root:not([data-theme="light"]) .view-switch span.active,
    :root:not([data-theme="light"]) .month-arrow {
        background: #23262d;
        color: #f2f3f5;
        box-shadow: none;
    }

    :root:not([data-theme="light"]) .calendar-day {
        background: #3a3d43;
        color: #f2f3f5;
        box-shadow: none;
    }

    :root:not([data-theme="light"]) .view-switch span.active {
        box-shadow: inset 0 0 0 1px #343842;
    }

    :root:not([data-theme="light"]) .income-header,
    :root:not([data-theme="light"]) .income-calendar,
    :root:not([data-theme="light"]) .profile-page {
        background: #101114;
    }

    :root:not([data-theme="light"]) .month-arrow::before {
        border-color: #c8ccd4;
    }

    :root:not([data-theme="light"]) .calendar-day_positive {
        background: #4a2528;
    }

    :root:not([data-theme="light"]) .calendar-day_positive .calendar-income,
    :root:not([data-theme="light"]) .money-positive {
        color: #ff7b78;
    }

    :root:not([data-theme="light"]) .calendar-day_negative {
        background: #173923;
    }

    :root:not([data-theme="light"]) .calendar-day_negative .calendar-income,
    :root:not([data-theme="light"]) .money-negative {
        color: #48d37b;
    }

    :root:not([data-theme="light"]) .calendar-day_selected {
        background: #ff514b;
    }

    :root:not([data-theme="light"]) .calendar-day_selected .calendar-date,
    :root:not([data-theme="light"]) .calendar-day_selected .calendar-income {
        color: #fff;
    }

    :root:not([data-theme="light"]) .detail-chips span,
    :root:not([data-theme="light"]) .detail-list,
    :root:not([data-theme="light"]) .detail-item {
        border-color: #2b2f37;
    }

    :root:not([data-theme="light"]) .login-page {
        background: linear-gradient(180deg, #101114 0%, #15171c 100%);
    }

    :root:not([data-theme="light"]) .login-field input {
        border-bottom-color: #30333b;
        color: #f2f3f5;
    }

    :root:not([data-theme="light"]) .login-field input:focus,
    :root:not([data-theme="light"]) .profile-field input:focus,
    :root:not([data-theme="light"]) .profile-field textarea:focus {
        border-color: #ff736d;
        background: #171a1f;
    }

    :root:not([data-theme="light"]) .login-error,
    :root:not([data-theme="light"]) .profile-error {
        background: #361d20;
        color: #ff8d88;
    }

    :root:not([data-theme="light"]) .profile-message {
        background: #173923;
        color: #63df91;
    }

    :root:not([data-theme="light"]) .theme-switch {
        background: #23262d;
    }

    :root:not([data-theme="light"]) .theme-switch button {
        color: #9da3af;
    }

    :root:not([data-theme="light"]) .theme-switch button.active {
        background: #101114;
        color: #f2f3f5;
        box-shadow: none;
    }
}

:root[data-theme="dark"] body {
    background: #101114;
    color: #f2f3f5;
}

:root[data-theme="dark"] .income-tabs,
:root[data-theme="dark"] .income-card,
:root[data-theme="dark"] .detail-chips span,
:root[data-theme="dark"] .profile-section {
    background: #1a1c21;
    box-shadow: none;
}

:root[data-theme="dark"] .income-tabs a,
:root[data-theme="dark"] .income-header h1,
:root[data-theme="dark"] .calendar-date,
:root[data-theme="dark"] .detail-item strong,
:root[data-theme="dark"] .login-brand h1,
:root[data-theme="dark"] .profile-header h1,
:root[data-theme="dark"] .section-title strong {
    color: #f2f3f5;
}

:root[data-theme="dark"] .income-filter-row label,
:root[data-theme="dark"] .view-switch em,
:root[data-theme="dark"] .view-switch a,
:root[data-theme="dark"] .calendar-week,
:root[data-theme="dark"] .calendar-income,
:root[data-theme="dark"] .detail-title span,
:root[data-theme="dark"] .detail-title em,
:root[data-theme="dark"] .detail-chips span,
:root[data-theme="dark"] .detail-item span,
:root[data-theme="dark"] .detail-empty,
:root[data-theme="dark"] .logout-link,
:root[data-theme="dark"] .profile-link,
:root[data-theme="dark"] .login-brand p,
:root[data-theme="dark"] .login-field span,
:root[data-theme="dark"] .profile-header a,
:root[data-theme="dark"] .section-title span,
:root[data-theme="dark"] .profile-field span {
    color: #9da3af;
}

:root[data-theme="dark"] .income-filter-row select,
:root[data-theme="dark"] .view-switch span,
:root[data-theme="dark"] .profile-field input,
:root[data-theme="dark"] .profile-field textarea {
    border-color: #30333b;
    background: #14161a;
    color: #f2f3f5;
}

:root[data-theme="dark"] .view-switch span.active,
:root[data-theme="dark"] .month-arrow {
    background: #23262d;
    color: #f2f3f5;
    box-shadow: none;
}

:root[data-theme="dark"] .calendar-day {
    background: #3a3d43;
    color: #f2f3f5;
    box-shadow: none;
}

:root[data-theme="dark"] .view-switch span.active {
    box-shadow: inset 0 0 0 1px #343842;
}

:root[data-theme="dark"] .income-header,
:root[data-theme="dark"] .income-calendar,
:root[data-theme="dark"] .profile-page {
    background: #101114;
}

:root[data-theme="dark"] .month-arrow::before {
    border-color: #c8ccd4;
}

:root[data-theme="dark"] .calendar-day_positive {
    background: #4a2528;
}

:root[data-theme="dark"] .calendar-day_positive .calendar-income,
:root[data-theme="dark"] .money-positive {
    color: #ff7b78;
}

:root[data-theme="dark"] .calendar-day_negative {
    background: #173923;
}

:root[data-theme="dark"] .calendar-day_negative .calendar-income,
:root[data-theme="dark"] .money-negative {
    color: #48d37b;
}

:root[data-theme="dark"] .calendar-day_selected {
    background: #ff514b;
}

:root[data-theme="dark"] .calendar-day_selected .calendar-date,
:root[data-theme="dark"] .calendar-day_selected .calendar-income {
    color: #fff;
}

:root[data-theme="dark"] .detail-chips span,
:root[data-theme="dark"] .detail-list,
:root[data-theme="dark"] .detail-item {
    border-color: #2b2f37;
}

:root[data-theme="dark"] .login-page {
    background: linear-gradient(180deg, #101114 0%, #15171c 100%);
}

:root[data-theme="dark"] .login-field input {
    border-bottom-color: #30333b;
    color: #f2f3f5;
}

:root[data-theme="dark"] .login-field input:focus,
:root[data-theme="dark"] .profile-field input:focus,
:root[data-theme="dark"] .profile-field textarea:focus {
    border-color: #ff736d;
    background: #171a1f;
}

:root[data-theme="dark"] .login-error,
:root[data-theme="dark"] .profile-error {
    background: #361d20;
    color: #ff8d88;
}

:root[data-theme="dark"] .profile-message {
    background: #173923;
    color: #63df91;
}

:root[data-theme="dark"] .theme-switch {
    background: #23262d;
}

:root[data-theme="dark"] .theme-switch button {
    color: #9da3af;
}

:root[data-theme="dark"] .theme-switch button.active {
    background: #101114;
    color: #f2f3f5;
    box-shadow: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .calendar-day_positive {
        background: #4a2528;
    }

    :root:not([data-theme="light"]) .calendar-day_positive .calendar-income {
        color: #ff7b78;
    }

    :root:not([data-theme="light"]) .calendar-day_negative {
        background: #173923;
    }

    :root:not([data-theme="light"]) .calendar-day_negative .calendar-income {
        color: #48d37b;
    }

    :root:not([data-theme="light"]) .income-today {
        border-color: #30333b;
        background: #1a1c21;
        color: #f2f3f5;
        box-shadow: none;
    }

    :root:not([data-theme="light"]) .profile-menu {
        background: #1a1c21;
        box-shadow: none;
    }

    :root:not([data-theme="light"]) .profile-menu a {
        border-color: #2b2f37;
    }

    :root:not([data-theme="light"]) .profile-menu strong {
        color: #f2f3f5;
    }

    :root:not([data-theme="light"]) .profile-menu span {
        color: #9da3af;
    }
}

:root[data-theme="dark"] .calendar-day_positive {
    background: #4a2528;
}

:root[data-theme="dark"] .calendar-day_positive .calendar-income {
    color: #ff7b78;
}

:root[data-theme="dark"] .calendar-day_negative {
    background: #173923;
}

:root[data-theme="dark"] .calendar-day_negative .calendar-income {
    color: #48d37b;
}

:root[data-theme="dark"] .income-today {
    border-color: #30333b;
    background: #1a1c21;
    color: #f2f3f5;
    box-shadow: none;
}

:root[data-theme="dark"] .profile-menu {
    background: #1a1c21;
    box-shadow: none;
}

:root[data-theme="dark"] .profile-menu a {
    border-color: #2b2f37;
}

:root[data-theme="dark"] .profile-menu strong {
    color: #f2f3f5;
}

:root[data-theme="dark"] .profile-menu span {
    color: #9da3af;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .calendar-day_selected,
    :root:not([data-theme="light"]) .calendar-day_selected.calendar-day_positive,
    :root:not([data-theme="light"]) .calendar-day_selected.calendar-day_negative {
        background: #ff514b !important;
    }

    :root:not([data-theme="light"]) .calendar-day_selected.calendar-day_negative {
        background: #18a755 !important;
    }

    :root:not([data-theme="light"]) .calendar-day_selected .calendar-date,
    :root:not([data-theme="light"]) .calendar-day_selected .calendar-income {
        color: #fff !important;
    }

    :root:not([data-theme="light"]) .income-today {
        border-color: #30333b !important;
        background: #1a1c21 !important;
        color: #f2f3f5 !important;
        box-shadow: none;
    }

    :root:not([data-theme="light"]) .profile-menu-button,
    :root:not([data-theme="light"]) .profile-menu a {
        border-color: #2b2f37;
    }

    :root:not([data-theme="light"]) .theme-sheet-panel {
        background: #1a1c21;
    }

    :root:not([data-theme="light"]) .theme-sheet-panel strong {
        color: #f2f3f5;
    }

    :root:not([data-theme="light"]) .theme-sheet-panel button {
        background: #23262d;
        color: #f2f3f5;
    }

    :root:not([data-theme="light"]) .theme-sheet-panel button.active {
        background: #ff514b;
        color: #fff;
    }
}

:root[data-theme="dark"] .calendar-day_selected,
:root[data-theme="dark"] .calendar-day_selected.calendar-day_positive,
:root[data-theme="dark"] .calendar-day_selected.calendar-day_negative {
    background: #ff514b !important;
}

:root[data-theme="dark"] .calendar-day_selected.calendar-day_negative {
    background: #18a755 !important;
}

:root[data-theme="dark"] .calendar-day_selected .calendar-date,
:root[data-theme="dark"] .calendar-day_selected .calendar-income {
    color: #fff !important;
}

:root[data-theme="dark"] .income-today {
    border-color: #30333b !important;
    background: #1a1c21 !important;
    color: #f2f3f5 !important;
    box-shadow: none;
}

:root[data-theme="dark"] .profile-menu-button,
:root[data-theme="dark"] .profile-menu a {
    border-color: #2b2f37;
}

:root[data-theme="dark"] .theme-sheet-panel {
    background: #1a1c21;
}

:root[data-theme="dark"] .theme-sheet-panel strong {
    color: #f2f3f5;
}

:root[data-theme="dark"] .theme-sheet-panel button {
    background: #23262d;
    color: #f2f3f5;
}

:root[data-theme="dark"] .theme-sheet-panel button.active {
    background: #ff514b;
    color: #fff;
}
