/* === 签到任务弹窗 — 匹配网站暗色主题 + 青色主色 === */
.checkin-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.checkin-overlay.active {
    display: flex;
}

.checkin-modal {
    background: rgba(9, 9, 11, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 216, 255, 0.15);
    border-radius: 16px;
    width: 520px;
    max-width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 216, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    color: #e5e7eb;
    animation: checkinModalIn 0.25s ease;
}
@keyframes checkinModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 滚动条样式 */
.checkin-modal::-webkit-scrollbar { width: 6px; }
.checkin-modal::-webkit-scrollbar-track { background: transparent; }
.checkin-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.checkin-header {
    padding: 22px 24px 14px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.checkin-header h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkin-header p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}
.checkin-close {
    position: absolute;
    top: 18px; right: 18px;
    background: none; border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
}
.checkin-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.checkin-body {
    padding: 20px 24px 24px;
}

/* === 签到统计条 === */
.checkin-stats-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}
.checkin-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}
.checkin-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #00D8FF;
    line-height: 1.2;
}
.checkin-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* === 7 天签到日历 === */
.checkin-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}
.checkin-day {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 4px 8px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.checkin-day-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 4px;
}
.checkin-day-reward {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}
.checkin-day-reward small {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.7;
}

/* 已签到 */
.checkin-day.done {
    background: rgba(0, 216, 255, 0.08);
    border-color: rgba(0, 216, 255, 0.25);
}
.checkin-day.done .checkin-day-reward {
    color: #00D8FF;
}
.checkin-day.done::after {
    content: '✓';
    position: absolute;
    top: 3px; right: 5px;
    font-size: 10px;
    color: #00D8FF;
    font-weight: 700;
}

/* 今日 */
.checkin-day.today {
    border-color: #00D8FF;
    background: rgba(0, 216, 255, 0.12);
    box-shadow: 0 0 12px rgba(0, 216, 255, 0.2);
}
.checkin-day.today .checkin-day-label {
    color: #00D8FF;
    font-weight: 600;
}
.checkin-day.today .checkin-day-reward {
    color: #00D8FF;
}

/* 今日已签到 */
.checkin-day.today-done {
    background: rgba(0, 216, 255, 0.15);
    border-color: #00D8FF;
}
.checkin-day.today-done .checkin-day-reward {
    color: #00D8FF;
}
.checkin-day.today-done::after {
    content: '✓';
    position: absolute;
    top: 3px; right: 5px;
    font-size: 10px;
    color: #00D8FF;
    font-weight: 700;
}

/* 第 7 天（大奖）特殊样式 */
.checkin-day.bonus .checkin-day-reward {
    color: #FFD66E;
}
.checkin-day.bonus.done .checkin-day-reward,
.checkin-day.bonus.today .checkin-day-reward,
.checkin-day.bonus.today-done .checkin-day-reward {
    color: #FFD66E;
}

/* 签到按钮 */
.checkin-action {
    text-align: center;
    margin-bottom: 8px;
}
.btn-checkin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    background: linear-gradient(135deg, #00D8FF 0%, #00B8E6 100%);
    color: #000;
    box-shadow: 0 4px 16px rgba(0, 216, 255, 0.3);
}
.btn-checkin:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 216, 255, 0.4);
}
.btn-checkin:active:not(:disabled) {
    transform: translateY(0);
}
.btn-checkin:disabled {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
    cursor: default;
}
.checkin-result-msg {
    margin-top: 10px;
    font-size: 13px;
    color: #10b981;
    display: none;
}
.checkin-result-msg.show {
    display: block;
    animation: checkinResultIn 0.3s ease;
}
@keyframes checkinResultIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 任务中心 === */
.checkin-section-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 22px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkin-section-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: #00D8FF;
    border-radius: 2px;
}

.checkin-task-group {
    margin-bottom: 16px;
}
.checkin-task-group-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkin-task {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}
.checkin-task:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.checkin-task.completed {
    background: rgba(0, 216, 255, 0.04);
    border-color: rgba(0, 216, 255, 0.12);
}

.checkin-task-info {
    flex: 1;
    min-width: 0;
}
.checkin-task-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkin-task-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
    margin-bottom: 6px;
}
.checkin-task-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkin-task-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    max-width: 120px;
}
.checkin-task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00D8FF, #667eea);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.checkin-task-progress-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.checkin-task-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.checkin-task-reward {
    font-size: 13px;
    font-weight: 600;
    color: #FFD66E;
    white-space: nowrap;
}
.btn-claim {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    background: #00D8FF;
    color: #000;
    white-space: nowrap;
}
.btn-claim:hover:not(:disabled) {
    background: #33E1FF;
    box-shadow: 0 0 10px rgba(0, 216, 255, 0.4);
}
.btn-claim:disabled {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
    cursor: default;
}
.checkin-task-claimed {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

/* 任务完成图标 */
.checkin-task-check {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.checkin-task.completed .checkin-task-check {
    display: flex;
}

/* Toast 提示 */
.checkin-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(9, 9, 11, 0.95);
    border: 1px solid rgba(0, 216, 255, 0.3);
    color: #00D8FF;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}
.checkin-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.checkin-toast.error {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* 加载状态 */
.checkin-loading {
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
}

/* 未登录提示 */
.checkin-login-prompt {
    text-align: center;
    padding: 40px 24px;
}
.checkin-login-prompt p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    font-size: 14px;
}
.checkin-login-prompt button {
    padding: 10px 28px;
    border-radius: 8px;
    background: #00D8FF;
    color: #000;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 520px) {
    .checkin-modal {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    .checkin-calendar {
        gap: 4px;
    }
    .checkin-day {
        padding: 8px 2px 6px;
        min-height: 56px;
    }
    .checkin-day-reward {
        font-size: 11px;
    }
    .checkin-stats-bar {
        gap: 8px;
    }
    .checkin-stat {
        padding: 8px 6px;
    }
    .checkin-stat-value {
        font-size: 16px;
    }
}

/* === 个人中心导航栏签到按钮 === */
.nav-checkin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0, 216, 255, 0.12) 0%, rgba(0, 216, 255, 0.06) 100%);
    border: 1px solid rgba(0, 216, 255, 0.25);
    border-radius: 8px;
    color: #00D8FF;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.nav-checkin-btn:hover {
    background: linear-gradient(135deg, rgba(0, 216, 255, 0.2) 0%, rgba(0, 216, 255, 0.1) 100%);
    border-color: rgba(0, 216, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 216, 255, 0.2);
}
.nav-checkin-btn svg {
    flex-shrink: 0;
}
.checkin-dot {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 7px;
    height: 7px;
    background: #FF6B6B;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 107, 107, 0.6);
    animation: checkinDotPulse 2s ease-in-out infinite;
    display: none;
}
.checkin-dot.show {
    display: block;
}
@keyframes checkinDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ============================================================================
   浅色模式覆盖 (body.theme-light)
   ============================================================================ */

body.theme-light .checkin-overlay { background: rgba(0, 0, 0, 0.25); }

body.theme-light .checkin-modal {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}
body.theme-light .checkin-modal::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); }

body.theme-light .checkin-header { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
body.theme-light .checkin-header h3 { color: #1a1a2e; }
body.theme-light .checkin-header p { color: rgba(0, 0, 0, 0.45); }

body.theme-light .checkin-close { color: rgba(0, 0, 0, 0.4); }
body.theme-light .checkin-close:hover {
    color: #1a1a2e;
    background: rgba(0, 0, 0, 0.06);
}

body.theme-light .checkin-stat {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.theme-light .checkin-stat-value { color: #6366f1; }
body.theme-light .checkin-stat-label { color: rgba(0, 0, 0, 0.4); }

body.theme-light .checkin-day {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.theme-light .checkin-day-label { color: rgba(0, 0, 0, 0.4); }
body.theme-light .checkin-day-reward { color: rgba(0, 0, 0, 0.6); }

body.theme-light .checkin-day.done {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}
body.theme-light .checkin-day.done .checkin-day-reward { color: #6366f1; }
body.theme-light .checkin-day.done::after { color: #6366f1; }

body.theme-light .checkin-day.today {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}
body.theme-light .checkin-day.today .checkin-day-label { color: #6366f1; }
body.theme-light .checkin-day.today .checkin-day-reward { color: #6366f1; }

body.theme-light .checkin-day.today-done {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}
body.theme-light .checkin-day.today-done .checkin-day-reward { color: #6366f1; }
body.theme-light .checkin-day.today-done::after { color: #6366f1; }

body.theme-light .checkin-day.bonus .checkin-day-reward { color: #d97706; }
body.theme-light .checkin-day.bonus.done .checkin-day-reward,
body.theme-light .checkin-day.bonus.today .checkin-day-reward,
body.theme-light .checkin-day.bonus.today-done .checkin-day-reward { color: #d97706; }

body.theme-light .btn-checkin {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
body.theme-light .btn-checkin:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
body.theme-light .btn-checkin:disabled {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.3);
}

body.theme-light .checkin-section-title { color: rgba(0, 0, 0, 0.7); }
body.theme-light .checkin-section-title::before { background: #6366f1; }

body.theme-light .checkin-task-group-label { color: rgba(0, 0, 0, 0.4); }

body.theme-light .checkin-task {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.theme-light .checkin-task:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}
body.theme-light .checkin-task.completed {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.12);
}

body.theme-light .checkin-task-title { color: #1a1a2e; }
body.theme-light .checkin-task-desc { color: rgba(0, 0, 0, 0.4); }
body.theme-light .checkin-task-progress-bar { background: rgba(0, 0, 0, 0.06); }
body.theme-light .checkin-task-progress-fill {
    background: linear-gradient(90deg, #6366f1, #818cf8);
}
body.theme-light .checkin-task-progress-text { color: rgba(0, 0, 0, 0.4); }

body.theme-light .checkin-task-reward { color: #d97706; }

body.theme-light .btn-claim {
    background: #6366f1;
    color: #fff;
}
body.theme-light .btn-claim:hover:not(:disabled) {
    background: #4f46e5;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}
body.theme-light .btn-claim:disabled {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.3);
}
body.theme-light .checkin-task-claimed { color: rgba(0, 0, 0, 0.25); }

body.theme-light .checkin-toast {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #6366f1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
body.theme-light .checkin-toast.error {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

body.theme-light .checkin-loading { color: rgba(0, 0, 0, 0.35); }

body.theme-light .checkin-login-prompt p { color: rgba(0, 0, 0, 0.5); }
body.theme-light .checkin-login-prompt button {
    background: #6366f1;
    color: #fff;
}

body.theme-light .nav-checkin-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #6366f1;
}
body.theme-light .nav-checkin-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

/* Fanxing daily check-in refresh */
.checkin-overlay { background: radial-gradient(circle at 50% 35%, rgba(165, 99, 24, .16), transparent 37%), rgba(4, 5, 11, .78); backdrop-filter: blur(15px); }
.checkin-overlay::before { content: none; display: none; }
.checkin-modal { position: relative; width: min(820px, calc(100vw - 30px)); max-height: min(760px, calc(100vh - 30px)); overflow: auto; border: 1px solid rgba(255, 185, 55, .3); border-radius: 26px; background: linear-gradient(145deg, rgba(37, 27, 28, .98), rgba(10, 9, 18, .99) 62%, rgba(26, 15, 44, .98)); box-shadow: 0 30px 100px rgba(0, 0, 0, .62), 0 0 70px rgba(255, 167, 42, .13), 0 0 100px rgba(117, 71, 204, .1); }
.checkin-header { display: flex; align-items: center; gap: 12px; padding: 23px 28px 19px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(90deg, rgba(255, 188, 54, .1), transparent 56%); }
.checkin-title-wrap { display: flex; align-items: center; gap: 12px; }
.checkin-title-wrap h3 { margin: 0 0 3px; color: #ffe39a; font-size: 21px; letter-spacing: -.02em; }
.checkin-title-wrap p { margin: 0; color: rgba(255, 241, 210, .58); font-size: 12px; }
.checkin-title-icon { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 199, 47, .8); border-radius: 50%; color: #ffd33f; background: rgba(255, 181, 34, .1); box-shadow: 0 0 24px rgba(255, 186, 39, .22), inset 0 0 15px rgba(255, 186, 39, .12); animation: checkinIconGlow 2.4s ease-in-out infinite; }
.checkin-title-icon::before { content: ''; position: absolute; inset: -5px; border-radius: inherit; background: conic-gradient(from 0deg, transparent 0 35%, rgba(255, 210, 77, .95) 48%, transparent 61% 100%); opacity: .75; filter: drop-shadow(0 0 5px rgba(255, 190, 43, .55)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0); animation: checkinIconOrbit 3.2s linear infinite; }
.checkin-title-icon::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(255, 220, 118, .18); animation: checkinIconPulse 1.8s ease-out infinite; }
.checkin-title-icon svg { position: relative; z-index: 1; transform-origin: 50% 50%; animation: checkinClockTick 1s steps(2, jump-none) infinite; }
@keyframes checkinIconOrbit { to { transform: rotate(360deg); } }
@keyframes checkinIconGlow { 0%, 100% { box-shadow: 0 0 15px rgba(255, 186, 39, .18), inset 0 0 12px rgba(255, 186, 39, .09); } 50% { box-shadow: 0 0 30px rgba(255, 186, 39, .42), 0 0 52px rgba(255, 146, 25, .12), inset 0 0 18px rgba(255, 209, 82, .17); } }
@keyframes checkinIconPulse { 0% { transform: scale(.82); opacity: .7; } 75%, 100% { transform: scale(1.28); opacity: 0; } }
@keyframes checkinClockTick { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.checkin-close { margin-left: auto; color: rgba(255,255,255,.65); }
.checkin-body { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(245px, .72fr); gap: 18px; padding: 22px 28px 26px; }
.checkin-main-column { min-width: 0; }
.checkin-stats-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 0; padding: 0; background: none; border: 0; }
.checkin-stat { display: flex; align-items: center; gap: 11px; padding: 14px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); }
.checkin-stat-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; font-size: 22px; color: #ff7189; background: rgba(251, 113, 133, .1); box-shadow: 0 0 18px rgba(251,113,133,.2); }
.is-total .checkin-stat-icon { color: #ffd249; background: rgba(255, 191, 42, .1); box-shadow: 0 0 18px rgba(255,191,42,.2); }
.checkin-stat-value { color: #fff8ec; font-size: 24px; font-weight: 800; line-height: 1; }
.checkin-stat-value small { margin-left: 4px; color: rgba(255,255,255,.58); font-size: 12px; font-weight: 600; }
.checkin-stat-label { margin-top: 5px; color: rgba(255,255,255,.5); font-size: 11px; }
.checkin-next-reward { margin: 15px 0 12px; padding: 10px 13px; border: 1px solid rgba(255, 181, 34, .42); border-radius: 11px; background: rgba(154, 89, 13, .13); color: rgba(255,238,192,.78); font-size: 12px; }
.checkin-next-reward span { margin-right: 5px; color: #ffd144; }
.checkin-next-reward strong, .checkin-next-reward b { color: #ffd144; }
.checkin-cycle-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 0 18px; }
.checkin-cycle-row.is-long { grid-template-columns: repeat(5, minmax(0, 1fr)); max-height: 205px; overflow-y: auto; padding: 2px 4px 5px 0; scrollbar-width: thin; scrollbar-color: rgba(255,197,60,.45) transparent; }
.checkin-cycle-card { display: grid; gap: 5px; min-height: 57px; place-items: center; padding: 8px 2px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: rgba(255,255,255,.48); background: rgba(255,255,255,.035); font-size: 10px; transition: transform .22s, border-color .22s, background .22s, box-shadow .22s; }
.checkin-cycle-card:hover { transform: translateY(-2px); }
.checkin-cycle-day { font-size: 10px; white-space: nowrap; }
.checkin-cycle-card strong { color: rgba(255,255,255,.65); font-size: 11px; }
.checkin-cycle-card.is-done { border-color: rgba(255,185,40,.52); color: #ffd65a; background: rgba(255,179,37,.12); box-shadow: inset 0 0 14px rgba(255,179,37,.08); }
.checkin-cycle-card.is-done strong { color: #ffd65a; }
.checkin-cycle-card.is-current { border-color: #ffd249; color: #ffe48d; box-shadow: 0 0 18px rgba(255,194,42,.22); }
.checkin-cycle-card.is-milestone { border-color: rgba(196, 116, 255, .4); background: linear-gradient(145deg, rgba(112, 55, 153, .16), rgba(255, 174, 31, .08)); }
.checkin-cycle-card.is-milestone strong { color: #ffd65a; }
.checkin-cycle-card.is-current::after { content: '今日'; padding: 1px 5px; border-radius: 5px; color: #1f1604; background: #ffd249; font-size: 8px; font-weight: 800; }
.checkin-action { margin: 0; text-align: center; }
.btn-checkin { width: 100%; min-height: 49px; border: 1px solid rgba(13, 215, 135, .58); border-radius: 14px; color: #9af7d2; background: linear-gradient(100deg, rgba(7, 89, 66, .85), rgba(12, 66, 59, .82)); box-shadow: 0 0 26px rgba(8, 199, 131, .14), inset 0 0 18px rgba(26, 211, 145, .08); font-size: 16px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn-checkin:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(8, 199, 131, .25); }
.btn-checkin em { margin-left: 8px; padding: 3px 8px; border-radius: 7px; color: #a3f8d7; background: rgba(16,185,129,.24); font-size: 12px; font-style: normal; }
.btn-checkin.is-complete { color: #54e3af; background: rgba(5, 87, 63, .55); cursor: default; }
.checkin-result-msg { margin-top: 8px; color: rgba(255,255,255,.55); font-size: 11px; }
.checkin-reminder { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.035); }
.checkin-reminder-icon { color: #ffd149; font-size: 20px; }
.checkin-reminder strong, .checkin-reminder small { display: block; }
.checkin-reminder strong { color: rgba(255,255,255,.85); font-size: 12px; }
.checkin-reminder small { margin-top: 3px; color: rgba(255,255,255,.42); font-size: 10px; }
.checkin-switch { margin-left: auto; position: relative; width: 37px; height: 20px; }
.checkin-switch input { opacity: 0; width: 0; height: 0; }
.checkin-switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.15); cursor: pointer; transition: .2s; }
.checkin-switch i::after { content: ''; position: absolute; width: 16px; height: 16px; top: 2px; left: 2px; border-radius: 50%; background: #ddd; transition: .2s; }
.checkin-switch input:checked + i { background: #bb8b20; }
.checkin-switch input:checked + i::after { transform: translateX(17px); background: #ffe071; }
.checkin-summary { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 15px; border: 1px solid rgba(255,181,34,.23); border-radius: 13px; background: rgba(147,83,17,.1); text-align: center; }
.checkin-summary span { height: 24px; background: rgba(255,255,255,.18); }
.checkin-summary small, .checkin-summary strong { display: block; }
.checkin-summary small { color: rgba(255,255,255,.43); font-size: 10px; }
.checkin-summary strong { margin-top: 3px; color: #ffd65a; font-size: 14px; }
.checkin-calendar-panel { align-self: start; padding: 17px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.035); }
.checkin-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.checkin-calendar-head strong { color: rgba(255,255,255,.83); font-size: 14px; }
.checkin-calendar-head span { color: rgba(255,255,255,.43); font-size: 9px; white-space: nowrap; }
.checkin-calendar-head i { display: inline-block; width: 6px; height: 6px; margin: 0 3px 1px 6px; border-radius: 50%; background: #46e6b0; }
.checkin-calendar-head i:nth-child(2) { background: #ffd13e; }
.checkin-calendar-head i:nth-child(3) { background: #ce87ff; }
.checkin-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px 4px; }
.checkin-weekday { color: rgba(255,255,255,.4); font-size: 10px; text-align: center; }
.checkin-month-day { position: relative; display: grid; min-height: 28px; place-items: center; border: 1px solid transparent; border-radius: 8px; color: rgba(255,255,255,.5); font-size: 11px; }
.checkin-month-day.is-checked { color: #9deecf; background: rgba(16,185,129,.12); }
.checkin-month-day.is-checked b { position: absolute; right: 3px; bottom: 1px; color: #41dfa7; font-size: 8px; }
.checkin-month-day.is-today { border-color: #ffd13e; color: #ffe58b; box-shadow: 0 0 13px rgba(255,202,55,.18); }
.checkin-month-day.is-empty { visibility: hidden; }
.checkin-calendar-legend { display: flex; gap: 11px; margin-top: 16px; color: rgba(255,255,255,.4); font-size: 9px; }
.checkin-calendar-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: #46e6b0; }
.checkin-calendar-legend .legend-today { border: 1px solid #ffd13e; background: transparent; }
.checkin-empty { padding: 15px; color: rgba(255,255,255,.38); font-size: 12px; text-align: center; }
.checkin-tasks-details { margin-top: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.025); overflow: hidden; }
.checkin-tasks-details summary { display: flex; align-items: center; gap: 10px; padding: 13px 14px; color: rgba(255,255,255,.82); cursor: pointer; list-style: none; }
.checkin-tasks-details summary::-webkit-details-marker { display: none; }
.checkin-tasks-details summary::before { content: '✦'; color: #ffd149; }
.checkin-tasks-details summary span { color: rgba(255,255,255,.4); font-size: 10px; }
.checkin-tasks-details summary b { margin-left: auto; color: #ffd149; font-size: 10px; font-weight: 600; }
.checkin-tasks-details[open] summary { border-bottom: 1px solid rgba(255,255,255,.08); }
.checkin-tasks-content { padding: 0 12px 12px; }
.checkin-section-title { margin: 20px 0 9px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 700; }
.checkin-task-group { margin-top: 10px; }
.checkin-task-group-label { color: rgba(255,255,255,.48); font-size: 11px; }
.checkin-task { border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.035); }
.checkin-task-reward { color: #ffd35a; }
.btn-claim { border-color: rgba(255,190,50,.5); color: #ffd35a; background: rgba(255,174,27,.12); }
@media (max-width: 700px) { .checkin-body { grid-template-columns: 1fr; padding: 18px; } .checkin-calendar-panel { order: -1; } .checkin-cycle-row { gap: 3px; } .checkin-header { padding: 18px; } }

/* Theme contract: dark = deep blue, light = crisp purple. */
body.chat-shell .checkin-overlay { background: rgba(2, 7, 19, .76); backdrop-filter: blur(15px); }
body.chat-shell .checkin-overlay::before { content: none; display: none; background: none; }
body.chat-shell .checkin-modal { border-color: rgba(70, 151, 255, .42); background: linear-gradient(145deg, rgba(8, 25, 51, .99), rgba(6, 15, 34, .995) 58%, rgba(13, 21, 49, .99)); box-shadow: 0 30px 100px rgba(0, 0, 0, .68), 0 0 62px rgba(37, 124, 255, .18); color: #eaf4ff; }
body.chat-shell .checkin-header { border-bottom-color: rgba(112, 177, 255, .16); background: linear-gradient(90deg, rgba(30, 117, 255, .18), rgba(31, 88, 190, .05) 60%, transparent); }
body.chat-shell .checkin-title-wrap h3 { color: #e7f3ff; }
body.chat-shell .checkin-title-wrap p { color: rgba(199, 224, 255, .62); }
body.chat-shell .checkin-title-icon { border-color: rgba(80, 178, 255, .9); color: #73c7ff; background: rgba(24, 131, 255, .14); animation-name: checkinIconGlowBlue; }
body.chat-shell .checkin-title-icon::before { background: conic-gradient(from 0deg, transparent 0 35%, rgba(82, 194, 255, .98) 48%, transparent 61% 100%); filter: drop-shadow(0 0 6px rgba(46, 155, 255, .72)); }
body.chat-shell .checkin-title-icon::after { border-color: rgba(94, 192, 255, .35); }
@keyframes checkinIconGlowBlue { 0%, 100% { box-shadow: 0 0 15px rgba(42, 146, 255, .22), inset 0 0 12px rgba(61, 171, 255, .1); } 50% { box-shadow: 0 0 30px rgba(42, 146, 255, .5), 0 0 52px rgba(37, 99, 235, .2), inset 0 0 18px rgba(91, 192, 255, .2); } }
body.chat-shell .checkin-close { color: rgba(210, 229, 255, .68); }
body.chat-shell .checkin-close:hover { color: #fff; background: rgba(80, 160, 255, .14); }
body.chat-shell .checkin-stat { border-color: rgba(106, 170, 255, .17); background: linear-gradient(135deg, rgba(47, 120, 225, .13), rgba(18, 48, 94, .12)); }
body.chat-shell .checkin-stat-icon { color: #65b9ff; background: rgba(42, 132, 255, .14); box-shadow: 0 0 18px rgba(32, 137, 255, .2); }
body.chat-shell .is-total .checkin-stat-icon { color: #97a9ff; background: rgba(102, 96, 255, .13); box-shadow: 0 0 18px rgba(85, 101, 255, .2); }
body.chat-shell .checkin-stat-value { color: #f3f8ff; }
body.chat-shell .checkin-stat-value small, body.chat-shell .checkin-stat-label { color: rgba(198, 220, 250, .58); }
body.chat-shell .checkin-next-reward { border-color: rgba(73, 159, 255, .38); background: rgba(24, 91, 179, .18); color: rgba(213, 233, 255, .82); }
body.chat-shell .checkin-next-reward span, body.chat-shell .checkin-next-reward strong, body.chat-shell .checkin-next-reward b { color: #73c7ff; }
body.chat-shell .checkin-cycle-row.is-long { scrollbar-color: rgba(83, 160, 255, .48) transparent; }
body.chat-shell .checkin-cycle-card { border-color: rgba(116, 171, 241, .16); color: rgba(201, 221, 248, .56); background: rgba(32, 72, 125, .12); }
body.chat-shell .checkin-cycle-card strong { color: rgba(218, 233, 252, .72); }
body.chat-shell .checkin-cycle-card.is-current { border-color: #52b7ff; color: #9cd7ff; background: rgba(28, 124, 225, .2); box-shadow: 0 0 20px rgba(44, 145, 255, .28); }
body.chat-shell .checkin-cycle-card.is-current::after { color: #06172b; background: #69c4ff; }
body.chat-shell .checkin-cycle-card.is-done { border-color: rgba(69, 181, 255, .48); color: #84d3ff; background: rgba(30, 133, 218, .16); box-shadow: inset 0 0 14px rgba(38, 153, 255, .1); }
body.chat-shell .checkin-cycle-card.is-done strong { color: #8dd7ff; }
body.chat-shell .checkin-cycle-card.is-milestone { border-color: rgba(130, 126, 255, .48); background: linear-gradient(145deg, rgba(66, 75, 183, .22), rgba(26, 106, 188, .13)); }
body.chat-shell .checkin-cycle-card.is-milestone strong { color: #adb7ff; }
body.chat-shell .btn-checkin { border-color: rgba(68, 171, 255, .62); color: #e5f4ff; background: linear-gradient(100deg, rgba(12, 100, 197, .94), rgba(35, 86, 190, .91)); box-shadow: 0 0 27px rgba(42, 142, 255, .22), inset 0 0 18px rgba(114, 197, 255, .09); }
body.chat-shell .btn-checkin:not(:disabled):hover { box-shadow: 0 9px 32px rgba(37, 136, 255, .32); }
body.chat-shell .btn-checkin em { color: #d9efff; background: rgba(116, 202, 255, .2); }
body.chat-shell .checkin-result-msg { color: rgba(194, 218, 248, .58); }
body.chat-shell .checkin-reminder, body.chat-shell .checkin-calendar-panel { border-color: rgba(107, 169, 245, .16); background: rgba(26, 62, 111, .12); }
body.chat-shell .checkin-reminder-icon { color: #65bdff; }
body.chat-shell .checkin-reminder strong, body.chat-shell .checkin-calendar-head strong { color: rgba(235, 245, 255, .9); }
body.chat-shell .checkin-reminder small, body.chat-shell .checkin-calendar-head span, body.chat-shell .checkin-weekday, body.chat-shell .checkin-calendar-legend { color: rgba(190, 215, 247, .5); }
body.chat-shell .checkin-switch input:checked + i { background: #277bd1; }
body.chat-shell .checkin-switch input:checked + i::after { background: #9bd8ff; }
body.chat-shell .checkin-summary { border-color: rgba(70, 154, 255, .28); background: rgba(22, 82, 155, .14); }
body.chat-shell .checkin-summary small { color: rgba(193, 218, 250, .5); }
body.chat-shell .checkin-summary strong { color: #79c8ff; }
body.chat-shell .checkin-month-day { color: rgba(202, 222, 248, .55); }
body.chat-shell .checkin-month-day.is-today { border-color: #5bbaff; color: #b9e4ff; box-shadow: 0 0 13px rgba(60, 159, 255, .25); }
body.chat-shell .checkin-calendar-head i:nth-child(2) { background: #64c3ff; }
body.chat-shell .checkin-calendar-head i:nth-child(3) { background: #9f9bff; }
body.chat-shell .checkin-calendar-legend .legend-today { border-color: #64c3ff; }

body.chat-shell.theme-light .checkin-overlay { background: rgba(39, 28, 69, .24); }
body.chat-shell.theme-light .checkin-modal { border-color: rgba(115, 71, 200, .34); background: linear-gradient(145deg, rgba(253, 251, 255, .99), rgba(246, 241, 255, .995) 60%, rgba(239, 232, 255, .99)); box-shadow: 0 30px 90px rgba(69, 42, 119, .24), 0 0 54px rgba(120, 81, 196, .13); color: #2f2445; }
body.chat-shell.theme-light .checkin-header { border-bottom-color: rgba(102, 70, 155, .14); background: linear-gradient(90deg, rgba(139, 92, 246, .14), rgba(168, 85, 247, .04) 62%, transparent); }
body.chat-shell.theme-light .checkin-title-wrap h3 { color: #3b2263; }
body.chat-shell.theme-light .checkin-title-wrap p { color: #75658e; }
body.chat-shell.theme-light .checkin-title-icon { border-color: rgba(124, 76, 210, .78); color: #7545cc; background: rgba(126, 75, 211, .1); animation-name: checkinIconGlowPurple; }
body.chat-shell.theme-light .checkin-title-icon::before { background: conic-gradient(from 0deg, transparent 0 35%, rgba(135, 79, 224, .92) 48%, transparent 61% 100%); filter: drop-shadow(0 0 5px rgba(116, 71, 190, .45)); }
body.chat-shell.theme-light .checkin-title-icon::after { border-color: rgba(117, 69, 204, .28); }
@keyframes checkinIconGlowPurple { 0%, 100% { box-shadow: 0 0 12px rgba(112, 69, 190, .16), inset 0 0 10px rgba(123, 77, 204, .08); } 50% { box-shadow: 0 0 26px rgba(121, 75, 205, .34), 0 0 45px rgba(160, 104, 230, .12), inset 0 0 16px rgba(134, 83, 218, .14); } }
body.chat-shell.theme-light .checkin-close { color: #796b8f; }
body.chat-shell.theme-light .checkin-close:hover { color: #472a73; background: rgba(117, 76, 183, .1); }
body.chat-shell.theme-light .checkin-stat { border-color: rgba(112, 81, 160, .16); background: rgba(255, 255, 255, .72); box-shadow: 0 6px 18px rgba(74, 46, 116, .06); }
body.chat-shell.theme-light .checkin-stat-icon, body.chat-shell.theme-light .is-total .checkin-stat-icon { color: #7545c7; background: rgba(126, 78, 207, .1); box-shadow: none; }
body.chat-shell.theme-light .checkin-stat-value { color: #382451; }
body.chat-shell.theme-light .checkin-stat-value small, body.chat-shell.theme-light .checkin-stat-label { color: #786a8d; }
body.chat-shell.theme-light .checkin-next-reward { border-color: rgba(123, 75, 198, .28); background: rgba(128, 78, 205, .08); color: #5a4275; }
body.chat-shell.theme-light .checkin-next-reward span, body.chat-shell.theme-light .checkin-next-reward strong, body.chat-shell.theme-light .checkin-next-reward b { color: #7241c0; }
body.chat-shell.theme-light .checkin-cycle-row.is-long { scrollbar-color: rgba(119, 76, 184, .42) transparent; }
body.chat-shell.theme-light .checkin-cycle-card { border-color: rgba(108, 79, 151, .15); color: #756985; background: rgba(255, 255, 255, .7); }
body.chat-shell.theme-light .checkin-cycle-card strong { color: #554469; }
body.chat-shell.theme-light .checkin-cycle-card.is-current { border-color: #7c4bd1; color: #562a91; background: rgba(132, 77, 219, .1); box-shadow: 0 0 18px rgba(112, 65, 190, .18); }
body.chat-shell.theme-light .checkin-cycle-card.is-current::after { color: #fff; background: #7845ca; }
body.chat-shell.theme-light .checkin-cycle-card.is-done { border-color: rgba(112, 67, 190, .38); color: #6334a7; background: rgba(132, 78, 214, .08); }
body.chat-shell.theme-light .checkin-cycle-card.is-done strong, body.chat-shell.theme-light .checkin-cycle-card.is-milestone strong { color: #6d38b5; }
body.chat-shell.theme-light .checkin-cycle-card.is-milestone { border-color: rgba(126, 68, 213, .38); background: linear-gradient(145deg, rgba(145, 87, 227, .12), rgba(240, 229, 255, .8)); }
body.chat-shell.theme-light .btn-checkin { border-color: #8050d0; color: #fff; background: linear-gradient(100deg, #7545c9, #9861df); box-shadow: 0 9px 25px rgba(112, 65, 187, .22); }
body.chat-shell.theme-light .btn-checkin em { color: #fff; background: rgba(255,255,255,.18); }
body.chat-shell.theme-light .checkin-result-msg { color: #746585; }
body.chat-shell.theme-light .checkin-reminder, body.chat-shell.theme-light .checkin-calendar-panel { border-color: rgba(110, 77, 159, .16); background: rgba(255, 255, 255, .64); }
body.chat-shell.theme-light .checkin-reminder-icon { color: #7545c7; }
body.chat-shell.theme-light .checkin-reminder strong, body.chat-shell.theme-light .checkin-calendar-head strong { color: #3e2e54; }
body.chat-shell.theme-light .checkin-reminder small, body.chat-shell.theme-light .checkin-calendar-head span, body.chat-shell.theme-light .checkin-weekday, body.chat-shell.theme-light .checkin-calendar-legend { color: #7c6f8c; }
body.chat-shell.theme-light .checkin-switch input:checked + i { background: #7b4bc7; }
body.chat-shell.theme-light .checkin-switch input:checked + i::after { background: #fff; }
body.chat-shell.theme-light .checkin-summary { border-color: rgba(116, 70, 189, .22); background: rgba(124, 75, 199, .07); }
body.chat-shell.theme-light .checkin-summary span { background: rgba(81, 51, 126, .16); }
body.chat-shell.theme-light .checkin-summary small { color: #796b8b; }
body.chat-shell.theme-light .checkin-summary strong { color: #6334ab; }
body.chat-shell.theme-light .checkin-month-day { color: #776b86; }
body.chat-shell.theme-light .checkin-month-day.is-checked { color: #5d329b; background: rgba(124, 73, 199, .1); }
body.chat-shell.theme-light .checkin-month-day.is-checked b { color: #6f3eb4; }
body.chat-shell.theme-light .checkin-month-day.is-today { border-color: #7d4aca; color: #4f267f; box-shadow: 0 0 12px rgba(115, 68, 190, .16); }
body.chat-shell.theme-light .checkin-calendar-head i:nth-child(2) { background: #7d4aca; }
body.chat-shell.theme-light .checkin-calendar-head i:nth-child(3) { background: #b067df; }
body.chat-shell.theme-light .checkin-calendar-legend .legend-today { border-color: #7d4aca; }

/* Balanced semantic accents: theme color frames the dialog, states keep their own color. */
body.chat-shell .checkin-title-icon {
    border-color: rgba(255, 196, 45, .92);
    color: #ffd044;
    background: rgba(255, 184, 28, .1);
    animation-name: checkinIconGlowGold;
}
body.chat-shell .checkin-title-icon::before {
    background: conic-gradient(from 0deg, transparent 0 35%, rgba(255, 210, 75, .98) 48%, transparent 61% 100%);
    filter: drop-shadow(0 0 6px rgba(255, 187, 35, .65));
}
body.chat-shell .checkin-title-icon::after { border-color: rgba(255, 216, 104, .3); }
@keyframes checkinIconGlowGold {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 190, 38, .2), inset 0 0 12px rgba(255, 205, 70, .1); }
    50% { box-shadow: 0 0 30px rgba(255, 190, 38, .46), 0 0 48px rgba(255, 139, 26, .14), inset 0 0 18px rgba(255, 218, 99, .18); }
}

/* Dark mode: blue atmosphere with coral, gold and emerald functional accents. */
body.chat-shell .checkin-stat:first-child .checkin-stat-icon {
    color: #ff758b;
    background: rgba(244, 82, 112, .12);
    box-shadow: 0 0 18px rgba(244, 82, 112, .2);
}
body.chat-shell .is-total .checkin-stat-icon {
    color: #ffd34d;
    background: rgba(255, 190, 35, .11);
    box-shadow: 0 0 18px rgba(255, 190, 35, .2);
}
body.chat-shell .checkin-next-reward {
    border-color: rgba(255, 182, 35, .4);
    background: rgba(142, 85, 16, .16);
    color: rgba(255, 237, 195, .82);
}
body.chat-shell .checkin-next-reward span,
body.chat-shell .checkin-next-reward strong,
body.chat-shell .checkin-next-reward b { color: #ffd044; }
body.chat-shell .checkin-cycle-card.is-current {
    border-color: #f4c432;
    color: #ffe38a;
    background: rgba(180, 118, 16, .15);
    box-shadow: 0 0 20px rgba(255, 195, 40, .2);
}
body.chat-shell .checkin-cycle-card.is-current::after { color: #201605; background: #ffd044; }
body.chat-shell .checkin-cycle-card.is-done {
    border-color: rgba(39, 201, 139, .42);
    color: #6de0b5;
    background: rgba(16, 145, 101, .13);
}
body.chat-shell .checkin-cycle-card.is-done strong { color: #78e8bd; }
body.chat-shell .checkin-cycle-card.is-milestone {
    border-color: rgba(180, 128, 255, .42);
    background: linear-gradient(145deg, rgba(97, 59, 157, .2), rgba(156, 97, 13, .09));
}
body.chat-shell .checkin-cycle-card.is-milestone strong { color: #ffd45a; }
body.chat-shell .btn-checkin {
    border-color: rgba(23, 210, 142, .62);
    color: #a0f5d5;
    background: linear-gradient(100deg, rgba(5, 111, 78, .95), rgba(7, 82, 70, .92));
    box-shadow: 0 0 27px rgba(12, 201, 136, .18), inset 0 0 18px rgba(91, 235, 184, .08);
}
body.chat-shell .btn-checkin:not(:disabled):hover { box-shadow: 0 9px 32px rgba(12, 201, 136, .28); }
body.chat-shell .btn-checkin em { color: #a8f7da; background: rgba(16, 185, 129, .22); }
body.chat-shell .checkin-reminder-icon { color: #ffd044; }
body.chat-shell .checkin-switch input:checked + i { background: #b88920; }
body.chat-shell .checkin-switch input:checked + i::after { background: #ffe174; }
body.chat-shell .checkin-summary {
    border-color: rgba(255, 182, 35, .25);
    background: linear-gradient(105deg, rgba(132, 79, 14, .12), rgba(87, 48, 123, .1));
}
body.chat-shell .checkin-summary strong { color: #ffd45a; }
body.chat-shell .checkin-month-day.is-checked { color: #91ebc9; background: rgba(16, 185, 129, .12); }
body.chat-shell .checkin-month-day.is-checked b { color: #42dda6; }
body.chat-shell .checkin-month-day.is-today { border-color: #f5c633; color: #ffe696; box-shadow: 0 0 13px rgba(255, 200, 49, .2); }
body.chat-shell .checkin-calendar-head i:nth-child(2) { background: #ffd13e; }
body.chat-shell .checkin-calendar-head i:nth-child(3) { background: #c582f0; }
body.chat-shell .checkin-calendar-legend .legend-today { border-color: #ffd13e; }

/* Light mode: purple atmosphere, while rewards and actions stay easy to scan. */
body.chat-shell.theme-light .checkin-title-icon {
    border-color: rgba(126, 74, 211, .82);
    color: #7846ca;
    background: rgba(129, 78, 211, .1);
    animation-name: checkinIconGlowPurple;
}
body.chat-shell.theme-light .checkin-title-icon::before {
    background: conic-gradient(from 0deg, transparent 0 35%, rgba(139, 82, 224, .94) 48%, transparent 61% 100%);
    filter: drop-shadow(0 0 5px rgba(115, 69, 190, .42));
}
body.chat-shell.theme-light .checkin-stat:first-child .checkin-stat-icon {
    color: #e64f70;
    background: rgba(235, 75, 106, .1);
    box-shadow: 0 0 16px rgba(235, 75, 106, .12);
}
body.chat-shell.theme-light .is-total .checkin-stat-icon {
    color: #c88a00;
    background: rgba(236, 164, 12, .11);
    box-shadow: 0 0 16px rgba(226, 155, 8, .12);
}
body.chat-shell.theme-light .checkin-next-reward {
    border-color: rgba(211, 142, 7, .35);
    background: rgba(255, 190, 42, .1);
    color: #664a12;
}
body.chat-shell.theme-light .checkin-next-reward span,
body.chat-shell.theme-light .checkin-next-reward strong,
body.chat-shell.theme-light .checkin-next-reward b { color: #a96f00; }
body.chat-shell.theme-light .checkin-cycle-card.is-done {
    border-color: rgba(16, 157, 108, .32);
    color: #087a53;
    background: rgba(22, 178, 120, .08);
}
body.chat-shell.theme-light .checkin-cycle-card.is-done strong { color: #087a53; }
body.chat-shell.theme-light .checkin-cycle-card.is-current {
    border-color: #8a55d1;
    color: #5b2b91;
    background: rgba(139, 83, 210, .1);
    box-shadow: 0 0 18px rgba(119, 68, 190, .16);
}
body.chat-shell.theme-light .checkin-cycle-card.is-current::after { color: #fff; background: #7b49c5; }
body.chat-shell.theme-light .checkin-cycle-card.is-milestone {
    border-color: rgba(210, 145, 14, .34);
    background: linear-gradient(145deg, rgba(151, 92, 219, .1), rgba(255, 195, 52, .12));
}
body.chat-shell.theme-light .checkin-cycle-card.is-milestone strong { color: #a46b00; }
body.chat-shell.theme-light .btn-checkin {
    border-color: #05966a;
    color: #fff;
    background: linear-gradient(100deg, #07956b, #087c68);
    box-shadow: 0 9px 25px rgba(6, 139, 98, .2);
}
body.chat-shell.theme-light .btn-checkin:not(:disabled):hover { box-shadow: 0 10px 28px rgba(6, 139, 98, .28); }
body.chat-shell.theme-light .btn-checkin em { color: #fff; background: rgba(255, 255, 255, .2); }
body.chat-shell.theme-light .checkin-reminder-icon { color: #b77b00; }
body.chat-shell.theme-light .checkin-switch input:checked + i { background: #d39a17; }
body.chat-shell.theme-light .checkin-switch input:checked + i::after { background: #fff8cf; }
body.chat-shell.theme-light .checkin-summary {
    border-color: rgba(207, 139, 12, .26);
    background: linear-gradient(105deg, rgba(255, 190, 45, .09), rgba(139, 85, 210, .07));
}
body.chat-shell.theme-light .checkin-summary strong { color: #9c6700; }
body.chat-shell.theme-light .checkin-month-day.is-checked { color: #087d57; background: rgba(18, 174, 118, .1); }
body.chat-shell.theme-light .checkin-month-day.is-checked b { color: #079c6b; }
body.chat-shell.theme-light .checkin-month-day.is-today { border-color: #8050c9; color: #4e267e; box-shadow: 0 0 12px rgba(112, 66, 184, .16); }
body.chat-shell.theme-light .checkin-calendar-head i:nth-child(2) { background: #d99b17; }
body.chat-shell.theme-light .checkin-calendar-head i:nth-child(3) { background: #a95cda; }
body.chat-shell.theme-light .checkin-calendar-legend .legend-today { border-color: #8050c9; }

/* Restrained semantic palette: brand for structure, green for done, gold for value. */
body.chat-shell .checkin-title-icon {
    border-color: rgba(80, 178, 255, .9);
    color: #73c7ff;
    background: rgba(24, 131, 255, .14);
    animation-name: checkinIconGlowBlue;
}
body.chat-shell .checkin-title-icon::before {
    background: conic-gradient(from 0deg, transparent 0 35%, rgba(82, 194, 255, .98) 48%, transparent 61% 100%);
    filter: drop-shadow(0 0 6px rgba(46, 155, 255, .72));
}
body.chat-shell .checkin-title-icon::after { border-color: rgba(94, 192, 255, .35); }
body.chat-shell .checkin-stat:first-child .checkin-stat-icon,
body.chat-shell .checkin-stat.is-total .checkin-stat-icon {
    color: #73bdff;
    background: rgba(45, 132, 244, .13);
    box-shadow: 0 0 18px rgba(35, 132, 244, .16);
}
body.chat-shell .checkin-stat.is-total .checkin-stat-icon {
    color: #a9aeff;
    background: rgba(105, 101, 232, .12);
}
body.chat-shell .checkin-next-reward {
    border-color: rgba(78, 155, 244, .27);
    color: rgba(211, 229, 252, .82);
    background: rgba(31, 86, 157, .14);
}
body.chat-shell .checkin-next-reward span,
body.chat-shell .checkin-next-reward strong { color: #8bcaff; }
body.chat-shell .checkin-next-reward b { color: #f2c75b; }
body.chat-shell .checkin-cycle-card.is-milestone {
    border-color: rgba(108, 142, 211, .24);
    background: rgba(44, 67, 119, .16);
}
body.chat-shell .checkin-cycle-card.is-milestone strong { color: #f0c85f; }
body.chat-shell .checkin-cycle-card.is-current {
    border-color: #52b7ff;
    color: #9cd7ff;
    background: rgba(28, 124, 225, .2);
    box-shadow: 0 0 20px rgba(44, 145, 255, .24);
}
body.chat-shell .checkin-cycle-card.is-current::after { color: #06172b; background: #69c4ff; }
body.chat-shell .checkin-cycle-card.is-done {
    border-color: rgba(39, 201, 139, .38);
    color: #6de0b5;
    background: rgba(16, 145, 101, .11);
    box-shadow: none;
}
body.chat-shell .checkin-cycle-card.is-done strong { color: #78e8bd; }
body.chat-shell .checkin-cycle-card.is-done.is-milestone strong { color: #f0c85f; }
body.chat-shell .btn-checkin {
    border-color: rgba(68, 171, 255, .58);
    color: #e5f4ff;
    background: linear-gradient(100deg, #1169bd, #3155ad);
    box-shadow: 0 8px 26px rgba(42, 142, 255, .2), inset 0 0 18px rgba(114, 197, 255, .08);
}
body.chat-shell .btn-checkin:not(:disabled):hover { box-shadow: 0 10px 30px rgba(37, 136, 255, .3); }
body.chat-shell .btn-checkin em { color: #e4f4ff; background: rgba(130, 201, 255, .18); }
body.chat-shell .btn-checkin.is-complete {
    border-color: rgba(23, 210, 142, .48);
    color: #a0f5d5;
    background: linear-gradient(100deg, rgba(5, 111, 78, .88), rgba(7, 82, 70, .86));
    box-shadow: 0 8px 24px rgba(12, 201, 136, .12);
}
body.chat-shell .btn-checkin.is-complete em { color: #a8f7da; background: rgba(16, 185, 129, .18); }
body.chat-shell .checkin-reminder-icon { color: #72bfff; }
body.chat-shell .checkin-switch input:checked + i { background: #347dcc; }
body.chat-shell .checkin-switch input:checked + i::after { background: #d9efff; }
body.chat-shell .checkin-summary {
    border-color: rgba(79, 153, 239, .2);
    background: rgba(31, 78, 141, .11);
}
body.chat-shell .checkin-summary strong { color: #89c8ff; }
body.chat-shell .checkin-summary div:first-child strong { color: #f0c85f; }
body.chat-shell .checkin-month-day.is-today {
    border-color: #5bbaff;
    color: #b9e4ff;
    box-shadow: 0 0 13px rgba(60, 159, 255, .22);
}
body.chat-shell .checkin-calendar-head i:nth-child(1) { background: #42dda6; }
body.chat-shell .checkin-calendar-head i:nth-child(2) { background: #64c3ff; }
body.chat-shell .checkin-calendar-head i:nth-child(3) { background: #e8bf55; }
body.chat-shell .checkin-calendar-legend .legend-today { border-color: #64c3ff; }

body.chat-shell.theme-light .checkin-title-icon {
    border-color: rgba(126, 74, 211, .82);
    color: #7846ca;
    background: rgba(129, 78, 211, .1);
    animation-name: checkinIconGlowPurple;
}
body.chat-shell.theme-light .checkin-title-icon::before {
    background: conic-gradient(from 0deg, transparent 0 35%, rgba(139, 82, 224, .94) 48%, transparent 61% 100%);
    filter: drop-shadow(0 0 5px rgba(115, 69, 190, .42));
}
body.chat-shell.theme-light .checkin-stat:first-child .checkin-stat-icon,
body.chat-shell.theme-light .checkin-stat.is-total .checkin-stat-icon {
    color: #7545c7;
    background: rgba(126, 78, 207, .1);
    box-shadow: none;
}
body.chat-shell.theme-light .checkin-stat.is-total .checkin-stat-icon {
    color: #5968bd;
    background: rgba(91, 104, 191, .09);
}
body.chat-shell.theme-light .checkin-next-reward {
    border-color: rgba(123, 75, 198, .2);
    color: #5a4275;
    background: rgba(128, 78, 205, .06);
}
body.chat-shell.theme-light .checkin-next-reward span,
body.chat-shell.theme-light .checkin-next-reward strong { color: #7241c0; }
body.chat-shell.theme-light .checkin-next-reward b { color: #9c6700; }
body.chat-shell.theme-light .checkin-cycle-card.is-milestone {
    border-color: rgba(119, 83, 174, .2);
    background: rgba(245, 241, 251, .9);
}
body.chat-shell.theme-light .checkin-cycle-card.is-milestone strong { color: #9a6805; }
body.chat-shell.theme-light .checkin-cycle-card.is-current {
    border-color: #8a55d1;
    color: #5b2b91;
    background: rgba(139, 83, 210, .1);
    box-shadow: 0 0 18px rgba(119, 68, 190, .16);
}
body.chat-shell.theme-light .checkin-cycle-card.is-current::after { color: #fff; background: #7b49c5; }
body.chat-shell.theme-light .checkin-cycle-card.is-done {
    border-color: rgba(16, 157, 108, .32);
    color: #087a53;
    background: rgba(22, 178, 120, .08);
    box-shadow: none;
}
body.chat-shell.theme-light .checkin-cycle-card.is-done strong { color: #087a53; }
body.chat-shell.theme-light .checkin-cycle-card.is-done.is-milestone strong { color: #966200; }
body.chat-shell.theme-light .btn-checkin {
    border-color: #8050d0;
    color: #fff;
    background: linear-gradient(100deg, #7545c9, #9060d7);
    box-shadow: 0 9px 25px rgba(112, 65, 187, .2);
}
body.chat-shell.theme-light .btn-checkin:not(:disabled):hover { box-shadow: 0 10px 28px rgba(112, 65, 187, .28); }
body.chat-shell.theme-light .btn-checkin em { color: #fff; background: rgba(255, 255, 255, .18); }
body.chat-shell.theme-light .btn-checkin.is-complete {
    border-color: #0b936b;
    color: #fff;
    background: linear-gradient(100deg, #0b936b, #087866);
    box-shadow: 0 8px 23px rgba(6, 139, 98, .17);
}
body.chat-shell.theme-light .btn-checkin.is-complete em { color: #fff; background: rgba(255, 255, 255, .19); }
body.chat-shell.theme-light .checkin-reminder-icon { color: #7545c7; }
body.chat-shell.theme-light .checkin-switch input:checked + i { background: #7b4bc7; }
body.chat-shell.theme-light .checkin-switch input:checked + i::after { background: #fff; }
body.chat-shell.theme-light .checkin-summary {
    border-color: rgba(116, 70, 189, .17);
    background: rgba(124, 75, 199, .055);
}
body.chat-shell.theme-light .checkin-summary strong { color: #6334ab; }
body.chat-shell.theme-light .checkin-summary div:first-child strong { color: #966200; }
body.chat-shell.theme-light .checkin-month-day.is-today {
    border-color: #8050c9;
    color: #4e267e;
    box-shadow: 0 0 12px rgba(112, 66, 184, .16);
}
body.chat-shell.theme-light .checkin-calendar-head i:nth-child(1) { background: #079c6b; }
body.chat-shell.theme-light .checkin-calendar-head i:nth-child(2) { background: #8050c9; }
body.chat-shell.theme-light .checkin-calendar-head i:nth-child(3) { background: #bd8510; }
body.chat-shell.theme-light .checkin-calendar-legend .legend-today { border-color: #8050c9; }
