/* 情侣空间：子屏入口全屏层 + 邀请面板 + 聊天内邀请函卡片（BN0001-4 微蓝系素雅色） */

:root {
    --couple-sp-bg: #ddeff4;
    --couple-sp-bg-deep: #c9e2ec;
    --couple-sp-border: #b8d4e0;
    --couple-sp-text: #3d4f5c;
    --couple-sp-muted: #6b7c88;
    --couple-sp-accent: #7a9aa8;
}

/* ========== 全屏主界面（挂载在 #app 内，随小手机宽度而非铺满浏览器） ========== */
.couple-space-overlay {
    position: absolute;
    inset: 0;
    /* 主壳层；全局悬浮球见 style.css .main-float-root(100350)，叠在本层之上以保持各功能内快捷入口可用 */
    z-index: 100135;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--couple-sp-bg) 0%, #e8f4f8 48%, #f2f8fb 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.couple-space-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 情侣空间内：滚动条隐形（Firefox / IE 边 / WebKit），仍可触摸或滚轮滚动 */
.couple-space-overlay,
.couple-space-overlay * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.couple-space-overlay::-webkit-scrollbar,
.couple-space-overlay *::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.couple-space-shell {
    position: relative;
    z-index: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.couple-space-header {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    padding: 10px 8px 8px;
    box-sizing: border-box;
}

.couple-space-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.couple-space-back,
.couple-space-add,
.couple-space-export {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.35);
    color: var(--couple-sp-text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.couple-space-export-icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(29%) sepia(8%) saturate(780%) hue-rotate(287deg) brightness(98%) contrast(89%) drop-shadow(0 1px 0 rgba(255,255,255,0.52));
    opacity: 0.94;
}

.couple-space-back:active,
.couple-space-add:active,
.couple-space-export:active {
    opacity: 0.85;
}

.couple-space-export.is-hidden,
.couple-space-add.is-hidden {
    display: none;
}

.couple-space-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--couple-sp-text);
    text-align: center;
}

.couple-space-body {
    flex: 1;
    min-height: 120px;
}

/* ========== 邀请面板（底部抽屉） ========== */
.couple-space-sheet-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(61, 79, 92, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.couple-space-sheet-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.couple-space-invite-sheet {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(78vh, 520px);
    background: linear-gradient(180deg, #f7fbfd 0%, #eef6f9 100%);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 28px rgba(61, 79, 92, 0.12);
    transform: translateY(105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: 0 0 env(safe-area-inset-bottom, 12px);
}

.couple-space-invite-sheet.is-open {
    transform: translateY(0);
}

.couple-space-sheet-head {
    flex-shrink: 0;
    padding: 16px 18px 10px;
    border-bottom: 1px solid rgba(184, 212, 224, 0.55);
}

.couple-space-sheet-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--couple-sp-text);
    text-align: center;
    letter-spacing: 0.06em;
}

.couple-space-friend-list {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px 12px;
}

.couple-space-friend-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.couple-space-friend-row:last-child {
    margin-bottom: 0;
}

.couple-space-friend-row.is-selected {
    border-color: var(--couple-sp-accent);
    background: rgba(255, 255, 255, 0.92);
}

.couple-space-friend-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--couple-sp-bg-deep) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--couple-sp-text);
}

.couple-space-friend-meta {
    flex: 1;
    min-width: 0;
}

.couple-space-friend-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--couple-sp-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.couple-space-friend-tag {
    font-size: 12px;
    color: var(--couple-sp-muted);
    margin-top: 3px;
}

.couple-space-sheet-empty {
    text-align: center;
    padding: 28px 16px;
    font-size: 14px;
    color: var(--couple-sp-muted);
}

.couple-space-sheet-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(184, 212, 224, 0.45);
    background: rgba(247, 251, 253, 0.96);
}

.couple-space-btn {
    flex: 1;
    height: 46px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.couple-space-btn--ghost {
    background: rgba(255, 255, 255, 0.85);
    color: var(--couple-sp-muted);
    border: 1px solid var(--couple-sp-border);
}

.couple-space-btn--primary {
    background: linear-gradient(180deg, #b9d9e6 0%, #9fc6d8 100%);
    color: #2c3e48;
    box-shadow: 0 2px 8px rgba(61, 79, 92, 0.12);
}

.couple-space-btn:active {
    opacity: 0.9;
}

/* ========== 聊天内：邀请函卡片（仿 QQ 结构，素雅配色） ========== */
.chat-message-bubble--couple-invite-wrap {
    max-width: 300px;
}

.couple-sp-invite-card {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f4f8 0%, #ddeff4 40%, #d2e8f0 100%);
    border: 1px solid rgba(184, 212, 224, 0.85);
    box-shadow: 0 4px 14px rgba(61, 79, 92, 0.08), 0 1px 0 rgba(255, 255, 255, 0.75) inset;
    overflow: hidden;
}

.couple-sp-invite-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.couple-sp-invite-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--couple-sp-accent);
    text-transform: none;
}

.couple-sp-invite-main {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--couple-sp-text);
}

.couple-sp-invite-sub {
    font-size: 12px;
    line-height: 1.45;
    color: var(--couple-sp-muted);
}

.couple-sp-invite-logo-col {
    flex-shrink: 0;
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.couple-sp-invite-logo-stage {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.couple-sp-invite-logo-img {
    width: 56px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    display: block;
    transform-origin: 50% 75%;
    animation: couple-sp-logo-head 2.4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(61, 79, 92, 0.12));
}

.couple-sp-invite-tail {
    position: absolute;
    right: 2px;
    bottom: 6px;
    width: 18px;
    height: 22px;
    border-radius: 40% 60% 55% 45%;
    background: linear-gradient(145deg, #c5dfe8, #a8ccd9);
    opacity: 0.85;
    transform-origin: 20% 80%;
    animation: couple-sp-logo-tail 1.1s ease-in-out infinite;
    pointer-events: none;
}

@keyframes couple-sp-logo-head {
    0%,
    100% {
        transform: rotate(-5deg) translateY(0);
    }
    35% {
        transform: rotate(6deg) translateY(-2px);
    }
    65% {
        transform: rotate(-4deg) translateY(1px);
    }
}

@keyframes couple-sp-logo-tail {
    0%,
    100% {
        transform: rotate(-12deg) scaleY(1);
    }
    50% {
        transform: rotate(18deg) scaleY(1.08);
    }
}

.couple-sp-invite-foot {
    margin-top: 4px;
    font-size: 10px;
    color: rgba(107, 124, 136, 0.85);
    letter-spacing: 0.06em;
}

.couple-sp-invite-card--tap {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, filter 0.12s ease;
}

.couple-sp-invite-card--tap:active {
    transform: scale(0.992);
    filter: brightness(0.98);
}

/* 好友邀请卡：接受/拒绝 */
.cs-invite-dec-root {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cs-invite-dec-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.38);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cs-invite-dec-panel {
    position: relative;
    z-index: 1;
    width: min(320px, 100%);
    padding: 22px 18px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef6f9 100%);
    border: 1px solid rgba(184, 212, 224, 0.75);
    box-shadow: 0 18px 42px rgba(61, 79, 92, 0.22);
}

.cs-invite-dec-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e48;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 18px;
}

.cs-invite-dec-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cs-invite-dec-btn {
    flex: 1;
    min-height: 40px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.cs-invite-dec-btn--ghost {
    background: rgba(255, 255, 255, 0.9);
    color: #5a6a78;
    border: 1px solid rgba(184, 212, 224, 0.85);
}

.cs-invite-dec-btn--primary {
    border: none;
    background: linear-gradient(180deg, #e8a7b8 0%, #de8199 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(222, 129, 153, 0.35);
}

/* ========== 情侣空间主界面 / 私密空间（关系建立后） ========== */
:root {
    --couple-sp-bg: #fff8f8;
    --couple-sp-bg-deep: #ffecee;
    --couple-sp-border: #f2d8dd;
    --couple-sp-text: #6a4c56;
    --couple-sp-muted: #9a7c85;
    --couple-sp-accent: #de8199;
    --couple-heart-clip: polygon(50% 96%, 40% 88%, 29% 77%, 16% 63%, 8% 49%, 7% 31%, 16% 16%, 31% 9%, 50% 22%, 69% 9%, 84% 16%, 93% 31%, 92% 49%, 84% 63%, 71% 77%, 60% 88%);
}

html[data-appearance="dark"] {
    --couple-sp-bg: #151518;
    --couple-sp-bg-deep: #232327;
    --couple-sp-border: rgba(255, 255, 255, 0.08);
    --couple-sp-text: #f5f5f7;
    --couple-sp-muted: rgba(235, 235, 245, 0.68);
    --couple-sp-accent: #ff8aa8;
}

.couple-space-overlay {
    background: linear-gradient(180deg, var(--couple-sp-bg) 0%, #fff1f3 45%, #fff8fb 100%);
}

.couple-space-back,
.couple-space-add {
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 10px 22px rgba(186, 126, 142, 0.12), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.couple-space-add.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.couple-space-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 18px calc(28px + env(safe-area-inset-bottom, 0px));
}

.couple-space-body.is-couple-space-private {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

.couple-space-shell--private {
    position: relative;
}

/* 私密页：顶栏不占高度，返回键叠在名片背景上 */
.couple-space-header--private {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 8px 10px;
    background: transparent;
    pointer-events: none;
    grid-template-columns: 44px 1fr auto;
}

.couple-space-header--private .couple-space-back,
.couple-space-header--private .couple-space-actions,
.couple-space-header--private .couple-space-export {
    pointer-events: auto;
}

.couple-space-header--private .couple-space-back,
.couple-space-header--private .couple-space-export {
    background: rgba(255, 255, 255, 0.46);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    box-shadow:
        0 4px 18px rgba(40, 22, 28, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.78) inset;
    color: #4a3a42;
}

.couple-space-header--private .couple-space-export-icon {
    filter: brightness(0) saturate(100%) invert(34%) sepia(12%) saturate(553%) hue-rotate(284deg) brightness(95%) contrast(87%) drop-shadow(0 1px 0 rgba(255,255,255,0.6));
}

.couple-space-header--private .couple-space-title {
    display: none;
}

.couple-space-transfer-modal {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 60;
    background: rgba(35, 22, 28, 0.24);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.couple-space-transfer-modal.show {
    display: flex;
}

.couple-space-transfer-panel {
    width: min(100%, 356px);
    border-radius: 26px;
    background: rgba(255, 248, 251, 0.95);
    box-shadow: 0 20px 46px rgba(64, 34, 45, 0.22);
    padding: 18px 16px 16px;
    box-sizing: border-box;
}

.couple-space-transfer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.couple-space-transfer-title {
    margin: 0;
    font-size: 18px;
    color: #4a3a42;
}

.couple-space-transfer-sub {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(74, 58, 66, 0.74);
}

.couple-space-transfer-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #6a4c56;
    font-size: 22px;
    line-height: 1;
}

.couple-space-transfer-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.couple-space-transfer-card h3 {
    margin: 0;
    font-size: 15px;
    color: #4a3a42;
}

.couple-space-transfer-card p {
    margin: 8px 0 12px;
    font-size: 12px;
    line-height: 1.65;
    color: rgba(74, 58, 66, 0.76);
}

.couple-space-transfer-card .couple-space-btn {
    width: 100%;
}

.couple-space-transfer-card + .couple-space-transfer-card {
    margin-top: 10px;
}

@media (max-width: 390px) {
    .couple-space-actions {
        gap: 6px;
    }
}

@media (max-height: 720px) {
    .couple-space-transfer-panel {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
}

.couple-space-empty-state,
.couple-space-overview {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.couple-space-private-view {
    width: 100%;
    max-width: none;
    margin: 0;
}

.couple-space-empty-state {
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.couple-space-empty-heart {
    font-size: 42px;
    line-height: 1;
    color: var(--couple-sp-accent);
    text-shadow: 0 8px 18px rgba(222, 129, 153, 0.18);
}

.couple-space-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--couple-sp-text);
}

.couple-space-empty-sub {
    max-width: 280px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--couple-sp-muted);
}

.couple-space-primary-action {
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #ee9db0 0%, #da7e96 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 22px rgba(218, 126, 150, 0.2);
    cursor: pointer;
}

.couple-space-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 10px;
}

.couple-space-couple-card-strip {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.couple-space-overview-copy {
    font-size: 13px;
    line-height: 1.6;
    color: var(--couple-sp-muted);
    text-align: center;
}

.couple-space-couple-card {
    width: min(100%, 320px);
    min-height: 176px;
    padding: 18px 14px;
    border: none;
    border-radius: 28px;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 84px;
    align-items: center;
    gap: 8px;
    background: rgba(255, 243, 243, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 34px rgba(186, 126, 142, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.couple-space-couple-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.54);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 52%, rgba(243, 205, 214, 0.2) 100%);
    pointer-events: none;
}

.couple-space-couple-card:active {
    transform: scale(0.985);
}

.couple-space-couple-card-side,
.couple-space-couple-card-center {
    position: relative;
    z-index: 1;
}

.couple-space-couple-card-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.couple-space-couple-card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.couple-space-couple-card-name {
    max-width: 84px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--couple-sp-text);
    text-align: center;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.couple-space-couple-card-days {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--couple-sp-text);
}

.couple-space-heart-avatar {
    --avatar-size: 78px;
    position: relative;
    width: var(--avatar-size);
    height: calc(var(--avatar-size) * 0.9);
    flex-shrink: 0;
    filter: drop-shadow(0 10px 18px rgba(197, 125, 144, 0.16));
}

.couple-space-heart-avatar--card {
    --avatar-size: 74px;
}

.couple-space-heart-avatar--stack {
    --avatar-size: 98px;
    position: absolute;
}

.couple-space-heart-avatar--stack-partner {
    left: 16px;
    bottom: 0;
    opacity: 0.8;
}

.couple-space-heart-avatar--stack-user {
    right: 16px;
    top: 0;
    z-index: 2;
}

/* 心形头像框：不使用拍立得胶带装饰 */
.couple-space-heart-avatar::before {
    display: none;
}

.couple-space-heart-avatar-shell,
.couple-space-heart-avatar-media {
    position: absolute;
}

/* 双层心形：外壳浅粉渐变 + 内缩 4px 的里层（露出外壳形成淡粉「框」），非描边 */
.couple-space-heart-avatar-shell {
    inset: 0;
    clip-path: var(--couple-heart-clip);
    border-radius: 0;
    background: linear-gradient(180deg, #fff9fa 0%, #ffd9e0 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    pointer-events: none;
}

.couple-space-heart-avatar-media {
    inset: 4px;
    clip-path: var(--couple-heart-clip);
    border-radius: 0;
    background: linear-gradient(160deg, #ffdfe6 0%, #ffc8d4 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
}

.couple-space-heart-avatar-fallback {
    position: absolute;
    inset: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: var(--couple-heart-clip);
    border-radius: 0;
    font-size: calc(var(--avatar-size) * 0.22);
    font-weight: 700;
    color: rgba(138, 90, 108, 0.82);
    letter-spacing: 0.02em;
    background: linear-gradient(160deg, #ffdfe6 0%, #ffc8d4 100%);
}

.couple-space-heart-avatar.has-image .couple-space-heart-avatar-fallback {
    opacity: 0;
}

.couple-space-heartbeat-svg {
    width: min(124px, 100%);
    height: 54px;
    overflow: visible;
}

.couple-space-heartbeat-base,
.couple-space-heartbeat-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.couple-space-heartbeat-base {
    stroke: rgba(222, 129, 153, 0.24);
    stroke-width: 4;
}

.couple-space-heartbeat-line {
    stroke: #e06f8b;
    stroke-width: 4.4;
    stroke-dasharray: 18 12;
    animation: couple-space-heartbeat-flow 2.8s linear infinite, couple-space-heartbeat-glow 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(224, 111, 139, 0.4));
}

@keyframes couple-space-heartbeat-flow {
    from {
        stroke-dashoffset: 62;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes couple-space-heartbeat-glow {
    0%,
    100% {
        opacity: 0.76;
    }
    50% {
        opacity: 1;
    }
}

.couple-space-private-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.couple-space-private-hero {
    position: relative;
    padding: 26px 18px 22px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(173, 171, 186, 0.88) 0%, rgba(201, 196, 209, 0.88) 42%, rgba(151, 152, 171, 0.88) 100%);
    background-size: cover;
    background-position: center;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow:
        0 18px 42px rgba(96, 95, 116, 0.2),
        0 6px 16px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 1px 0 rgba(255, 255, 255, 0.38) inset;
    overflow: hidden;
    cursor: pointer;
}

.couple-space-private-hero--flush {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0 0 28px 28px;
    box-sizing: border-box;
    min-height: 220px;
    /* 顶栏浮在背景上，为刘海与返回键留出内边距，背景仍从屏幕最顶端铺满 */
    padding: calc(48px + env(safe-area-inset-top, 0px)) 18px 24px;
}

.couple-space-private-hero.has-custom-bg {
    background-color: rgba(80, 40, 50, 0.15);
}

.couple-space-private-hero.has-custom-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(255, 248, 250, 0.45) 0%, rgba(40, 22, 28, 0.22) 100%);
    pointer-events: none;
}

.couple-space-private-hero-inner {
    position: relative;
    z-index: 1;
}

.couple-space-private-hero .couple-space-heart-avatar {
    cursor: default;
}

.couple-space-private-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -40% -10%;
    height: 120px;
    background: radial-gradient(circle, rgba(240, 165, 182, 0.2) 0%, rgba(240, 165, 182, 0) 72%);
    pointer-events: none;
    z-index: 0;
}

.couple-space-private-hero.has-custom-bg::after {
    opacity: 0.35;
}

.couple-space-private-heart-stack {
    position: relative;
    width: 180px;
    height: 120px;
    margin: 0 auto 18px;
}

.couple-space-private-day {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.couple-space-private-day:active .couple-space-private-frost-text--day {
    transform: scale(0.985);
}

.couple-space-private-names {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    text-align: center;
}

/* 磨砂玻璃底 + 轻微浮雕字，适配任意背景亮度 */
.couple-space-private-frost-text {
    display: inline-block;
    max-width: min(100%, 300px);
    box-sizing: border-box;
    padding: 10px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.72) inset,
        0 -1px 0 rgba(0, 0, 0, 0.07) inset,
        0 8px 24px rgba(35, 20, 28, 0.14);
    color: #4f3d44;
    letter-spacing: 0.05em;
    line-height: 1.35;
    word-break: break-word;
}

.couple-space-private-frost-text--day {
    font-size: 22px;
    font-weight: 700;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65),
        0 -0.5px 0 rgba(0, 0, 0, 0.1),
        0 0 18px rgba(255, 255, 255, 0.4);
}

.couple-space-private-frost-text--names {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 14px;
    color: #5c4a52;
    letter-spacing: 0.04em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55),
        0 -0.5px 0 rgba(0, 0, 0, 0.08);
}

.couple-space-private-placeholder {
    padding: 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px dashed rgba(222, 129, 153, 0.28);
    box-shadow: 0 10px 24px rgba(186, 126, 142, 0.08);
}

.couple-space-private-placeholder-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--couple-sp-text);
}

.couple-space-private-placeholder-sub {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--couple-sp-muted);
}

/* 私密页 · 心形功能占位 */
.couple-space-modules-wrap {
    padding: 22px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    box-sizing: border-box;
}

.couple-space-modules-heart {
    position: relative;
    width: 100%;
    max-width: 320px;
    min-height: 300px;
    margin: 0 auto;
}

.couple-space-modules-heart-outline {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 108%;
    height: 92%;
    transform: translate(-50%, -50%);
    clip-path: var(--couple-heart-clip);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 236, 241, 0.35) 48%, rgba(255, 220, 230, 0.25) 100%);
    border: 1px solid rgba(222, 129, 153, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    pointer-events: none;
    opacity: 0.95;
}

.couple-space-module-btn {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    min-width: 92px;
    max-width: 112px;
    padding: 10px 12px;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--couple-sp-text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 243, 246, 0.88) 100%);
    box-shadow: 0 8px 18px rgba(186, 126, 142, 0.14), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
    cursor: pointer;
    text-align: center;
    line-height: 1.25;
    -webkit-tap-highlight-color: transparent;
}

.couple-space-module-btn--center {
    min-width: 100px;
    padding-left: 14px;
    padding-right: 14px;
}

.couple-space-module-btn:active {
    transform: translate(-50%, -50%) scale(0.97);
    opacity: 0.92;
}

@media (max-width: 360px) {
    .couple-space-couple-card {
        grid-template-columns: 76px minmax(0, 1fr) 76px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .couple-space-couple-card-name {
        max-width: 74px;
    }

    .couple-space-heart-avatar--stack {
        --avatar-size: 92px;
    }
}

/* ========== love咪记账（全屏子层，挂载 #app；须高于 .couple-space-overlay 100135 / 旅行层 100210） ========== */
.couple-bookkeeping-overlay {
    position: absolute;
    inset: 0;
    /* 低于票务 .couple-ticketing-overlay(100270)，避免从记账进入买票时被挡住 */
    z-index: 100220;
    display: flex;
    flex-direction: column;
    border-radius: inherit;
    background:
        radial-gradient(circle at top left, rgba(255, 215, 228, 0.88) 0%, rgba(255, 215, 228, 0) 34%),
        radial-gradient(circle at top right, rgba(244, 224, 255, 0.76) 0%, rgba(244, 224, 255, 0) 32%),
        linear-gradient(180deg, #fff6f8 0%, #fffaf6 38%, #fffdf9 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    box-sizing: border-box;
    min-height: 0;
}

.couple-bookkeeping-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 100% 26px, 26px 100%;
    opacity: 0.32;
    mix-blend-mode: soft-light;
}

.couple-bookkeeping-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html[data-appearance="dark"] .couple-bookkeeping-overlay {
    background:
        radial-gradient(circle at top left, rgba(150, 84, 120, 0.44) 0%, rgba(150, 84, 120, 0) 34%),
        radial-gradient(circle at top right, rgba(115, 97, 164, 0.36) 0%, rgba(115, 97, 164, 0) 34%),
        linear-gradient(180deg, #151318 0%, #1d1b22 42%, #232029 100%);
}

.couple-bookkeeping-shell {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    color: var(--couple-sp-text);
}

.couple-bookkeeping-delete-dim {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(36, 26, 32, 0.42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.couple-bookkeeping-delete-dim.is-open {
    display: flex;
}

.couple-bookkeeping-delete-panel {
    width: 100%;
    max-width: 308px;
    padding: 20px 18px 18px;
    border-radius: 24px;
    background: rgba(255, 253, 250, 0.96);
    border: 1px solid rgba(233, 196, 208, 0.52);
    box-shadow: 0 22px 56px rgba(124, 84, 101, 0.18);
    box-sizing: border-box;
}

.couple-bookkeeping-delete-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--couple-sp-text);
    text-align: center;
    letter-spacing: 0.08em;
}

.couple-bookkeeping-delete-text {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--couple-sp-muted);
}

.couple-bookkeeping-delete-actions {
    display: flex;
    gap: 10px;
    justify-content: stretch;
}

.couple-bookkeeping-delete-btn {
    flex: 1;
    min-height: 46px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.couple-bookkeeping-delete-btn--secondary {
    background: rgba(192, 168, 176, 0.18);
    color: var(--couple-sp-text);
}

.couple-bookkeeping-delete-btn--danger {
    background: linear-gradient(180deg, #ff8aac 0%, #ea628b 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(234, 98, 139, 0.25);
}

.couple-bookkeeping-delete-btn:active {
    opacity: 0.9;
}

html[data-appearance="dark"] .couple-bookkeeping-delete-panel {
    background: rgba(39, 35, 43, 0.96);
    border-color: rgba(255, 214, 228, 0.14);
}

html[data-appearance="dark"] .couple-bookkeeping-delete-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(245, 240, 244, 0.92);
}

.couple-bookkeeping-header {
    position: relative;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.couple-bookkeeping-header::after {
    content: '';
    position: absolute;
    left: 56px;
    right: 56px;
    bottom: -7px;
    height: 1px;
    background: linear-gradient(90deg, rgba(229, 191, 204, 0), rgba(229, 191, 204, 0.82), rgba(229, 191, 204, 0));
}

.couple-bookkeeping-back {
    width: 44px;
    height: 40px;
    border: 1px solid rgba(230, 200, 210, 0.65);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--couple-sp-text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.couple-bookkeeping-back:active {
    opacity: 0.88;
}

.couple-bookkeeping-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.14em;
    color: #7e5565;
}

.couple-bookkeeping-header-spacer {
    width: 44px;
    height: 1px;
}

.couple-bookkeeping-summary {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.couple-bookkeeping-summary-range-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.couple-bookkeeping-summary-range-tabs button {
    min-height: 38px;
    border: 1px solid rgba(230, 200, 210, 0.44);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
    color: #9a7884;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(140, 101, 117, 0.04);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.couple-bookkeeping-summary-range-tabs button.active {
    background: linear-gradient(135deg, rgba(255, 225, 234, 0.98) 0%, rgba(249, 235, 255, 0.95) 100%);
    color: #7a5464;
    border-color: rgba(216, 152, 176, 0.46);
    transform: translateY(-1px);
}

.couple-bookkeeping-summary-range-tabs button:active {
    opacity: 0.9;
}

.couple-bookkeeping-period-nav {
    display: grid;
    grid-template-columns: minmax(88px, auto) 1fr minmax(88px, auto);
    align-items: center;
    gap: 10px;
}

.couple-bookkeeping-period-btn {
    min-height: 36px;
    border: 1px solid rgba(230, 200, 210, 0.44);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
    color: #916d79;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(140, 101, 117, 0.04);
}

.couple-bookkeeping-period-btn.is-disabled,
.couple-bookkeeping-period-btn:disabled {
    opacity: 0.48;
    cursor: default;
    box-shadow: none;
}

.couple-bookkeeping-period-label {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(234, 195, 208, 0.34);
    color: #7e5c68;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0 10px;
}

.couple-bookkeeping-summary-card {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 249, 251, 0.94) 0%, rgba(255, 243, 246, 0.92) 48%, rgba(255, 251, 245, 0.96) 100%);
    border: 1px solid rgba(234, 195, 208, 0.55);
    box-shadow: 0 14px 32px rgba(140, 101, 117, 0.12);
}

.couple-bookkeeping-summary-card::after {
    content: '';
    position: absolute;
    right: -24px;
    top: -18px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 226, 0.68) 0%, rgba(255, 210, 226, 0) 72%);
}

.couple-bookkeeping-summary-label {
    font-size: 11px;
    color: #ad7e8e;
    letter-spacing: 0.18em;
}

.couple-bookkeeping-summary-total {
    margin-top: 8px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #7a4d5d;
}

.couple-bookkeeping-summary-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.couple-bookkeeping-summary-pill {
    padding: 12px 13px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(233, 204, 214, 0.52);
    font-size: 12px;
    color: #a27b88;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 6px 18px rgba(140, 101, 117, 0.06);
}

.couple-bookkeeping-summary-pill strong {
    font-size: 17px;
    color: var(--couple-sp-text);
}

.couple-bookkeeping-filters {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
}

.couple-bookkeeping-filters button {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.66);
    color: #9a7884;
    border: 1px solid rgba(230, 200, 210, 0.44);
    box-shadow: 0 4px 10px rgba(140, 101, 117, 0.04);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.couple-bookkeeping-filters button.active {
    background: linear-gradient(135deg, rgba(255, 225, 234, 0.96) 0%, rgba(249, 235, 255, 0.92) 100%);
    color: #7a5464;
    border-color: rgba(216, 152, 176, 0.46);
    transform: translateY(-1px);
}

.couple-bookkeeping-filters button:active {
    opacity: 0.9;
}

/* 列表区：隐藏滚动条，保留触摸/滚轮滚动。记账模块内若新增可滚动层，请加上 .couple-bookkeeping-scrollable */
.couple-bookkeeping-body,
.couple-bookkeeping-scrollable {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.couple-bookkeeping-body::-webkit-scrollbar,
.couple-bookkeeping-scrollable::-webkit-scrollbar {
    display: none;
}

.couple-bookkeeping-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 12px;
}

.couple-bookkeeping-empty {
    padding: 34px 18px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px dashed rgba(226, 189, 202, 0.68);
}

.couple-bookkeeping-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #7b5564;
}

.couple-bookkeeping-empty-hint {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.75;
    color: var(--couple-sp-muted);
}

.couple-bookkeeping-item {
    position: relative;
    margin-bottom: 12px;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.couple-bookkeeping-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 16px;
    bottom: -12px;
    width: 2px;
    background: linear-gradient(180deg, rgba(232, 192, 204, 0.72) 0%, rgba(232, 192, 204, 0.08) 100%);
}

.couple-bookkeeping-item:last-child::before {
    display: none;
}

.couple-bookkeeping-item-main {
    position: relative;
    margin-left: 18px;
    padding: 14px 15px 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(233, 200, 212, 0.48);
    box-shadow: 0 10px 24px rgba(140, 101, 117, 0.08);
}

.couple-bookkeeping-item-main::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7b6ca 0%, #d9b9f3 100%);
    box-shadow: 0 0 0 4px rgba(255, 242, 246, 0.95);
}

.couple-bookkeeping-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.couple-bookkeeping-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #6f4a58;
    flex: 1;
    min-width: 0;
    line-height: 1.45;
}

.couple-bookkeeping-item-amount {
    font-size: 16px;
    font-weight: 800;
    color: #dd6e96;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.couple-bookkeeping-item-meta {
    margin-top: 8px;
    font-size: 11px;
    color: #a17a87;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.couple-bookkeeping-tag {
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 226, 235, 0.96) 0%, rgba(246, 236, 255, 0.96) 100%);
    color: #7f5d69;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.couple-bookkeeping-item-detail {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.65;
    color: #886974;
}

.couple-bookkeeping-item-pay-channel {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.55;
    color: rgba(125, 99, 115, 0.78);
    letter-spacing: 0.02em;
}

.couple-bookkeeping-item-time {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(128, 103, 114, 0.82);
}

html[data-appearance="dark"] .couple-bookkeeping-header::after {
    background: linear-gradient(90deg, rgba(255, 214, 228, 0), rgba(255, 214, 228, 0.3), rgba(255, 214, 228, 0));
}

html[data-appearance="dark"] .couple-bookkeeping-summary-card,
html[data-appearance="dark"] .couple-bookkeeping-summary-pill,
html[data-appearance="dark"] .couple-bookkeeping-item-main,
html[data-appearance="dark"] .couple-bookkeeping-empty {
    background: rgba(44, 38, 48, 0.9);
    border-color: rgba(255, 214, 228, 0.12);
    color: #f5f5f7;
}

html[data-appearance="dark"] .couple-bookkeeping-summary-total,
html[data-appearance="dark"] .couple-bookkeeping-title,
html[data-appearance="dark"] .couple-bookkeeping-item-title,
html[data-appearance="dark"] .couple-bookkeeping-empty-title {
    color: #ffe6f0;
}

html[data-appearance="dark"] .couple-bookkeeping-summary-label,
html[data-appearance="dark"] .couple-bookkeeping-item-meta,
html[data-appearance="dark"] .couple-bookkeeping-item-detail,
html[data-appearance="dark"] .couple-bookkeeping-item-pay-channel,
html[data-appearance="dark"] .couple-bookkeeping-item-time,
html[data-appearance="dark"] .couple-bookkeeping-empty-hint,
html[data-appearance="dark"] .couple-bookkeeping-delete-text,
html[data-appearance="dark"] .couple-bookkeeping-summary-pill {
    color: rgba(245, 232, 239, 0.74);
}

html[data-appearance="dark"] .couple-bookkeeping-summary-range-tabs button,
html[data-appearance="dark"] .couple-bookkeeping-period-btn,
html[data-appearance="dark"] .couple-bookkeeping-filters button {
    background: rgba(62, 55, 67, 0.84);
    color: rgba(245, 232, 239, 0.7);
    border-color: rgba(255, 214, 228, 0.12);
}

html[data-appearance="dark"] .couple-bookkeeping-summary-range-tabs button.active,
html[data-appearance="dark"] .couple-bookkeeping-filters button.active {
    background: linear-gradient(135deg, rgba(113, 72, 95, 0.9) 0%, rgba(92, 78, 132, 0.86) 100%);
    color: #fff4f8;
    border-color: rgba(255, 182, 211, 0.24);
}

html[data-appearance="dark"] .couple-bookkeeping-period-label {
    background: rgba(62, 55, 67, 0.5);
    border-color: rgba(255, 214, 228, 0.12);
    color: rgba(255, 240, 246, 0.88);
}

html[data-appearance="dark"] .couple-bookkeeping-back {
    background: rgba(60, 53, 66, 0.92);
    border-color: rgba(255, 214, 228, 0.12);
    color: #fbeaf1;
}

html[data-appearance="dark"] .couple-bookkeeping-tag {
    background: linear-gradient(135deg, rgba(104, 72, 92, 0.86) 0%, rgba(86, 78, 120, 0.86) 100%);
    color: #fff0f6;
}
