/* Application-level palette override for the signed Rain release. */
body[data-theme="rain"] {
    --rain-primary: #1c64f2;
    --rain-primary-dark: #164fc4;
    --rain-primary-soft: #eaf1ff;
    --md-primary: #1c64f2;
    --md-primary-container: #eaf1ff;
    --md-on-primary: #fff;
    --md-on-primary-container: #164fc4;
    --md-secondary: #f7b924;
    --primary-green: #1c64f2;
    --primary-color: #1c64f2;
    --color-primary: #1c64f2;
    --brand-500: #1c64f2;
    --brand-600: #164fc4;
    --brand-100: #eaf1ff;
    --catalog-primary: #1c64f2;
    --catalog-primary-dark: #164fc4;
    --catalog-primary-soft: #eaf1ff;
    --bs-primary: #1c64f2;
    --bs-primary-rgb: 28, 100, 242;
    --bs-link-color: #1c64f2;
    --bs-link-color-rgb: 28, 100, 242;
    --bs-link-hover-color: #164fc4;
    --bs-link-hover-color-rgb: 22, 79, 196;
    --bs-pagination-active-bg: #1c64f2;
    --bs-pagination-active-border-color: #1c64f2;
    --bs-focus-ring-color: rgba(28, 100, 242, .25);
}

body[data-theme="rain"] .home-page {
    --rain-primary: #1c64f2;
    --rain-primary-dark: #164fc4;
    --rain-primary-soft: #eaf1ff;
}

body[data-theme="rain"] :is(.btn-primary, .bg-primary, .progress-bar, .page-item.active .page-link,
    .nav-pills .nav-link.active, .list-group-item.active, .dropdown-item.active,
    .form-check-input:checked) {
    --bs-btn-bg: #1c64f2;
    --bs-btn-border-color: #1c64f2;
    --bs-btn-hover-bg: #164fc4;
    --bs-btn-hover-border-color: #164fc4;
    --bs-btn-active-bg: #164fc4;
    --bs-btn-active-border-color: #164fc4;
    background-color: #1c64f2 !important;
    border-color: #1c64f2 !important;
}

body[data-theme="rain"] :is(.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
    .page-item.active .page-link, .nav-pills .nav-link.active, .list-group-item.active,
    .dropdown-item.active) {
    background-color: #164fc4 !important;
    border-color: #164fc4 !important;
}

body[data-theme="rain"] :is(.text-primary, .link-primary, .btn-link,
    a:not(.btn):hover, .form-check-input:checked) {
    color: #1c64f2 !important;
}

body[data-theme="rain"] :is(.border-primary, .form-control:focus, .form-select:focus,
    .form-check-input:checked, .btn-outline-primary) {
    border-color: #1c64f2 !important;
}

body[data-theme="rain"] .form-check-input:checked,
body[data-theme="rain"] .swal2-container .swal2-styled.swal2-confirm {
    background-color: #1c64f2 !important;
}

body[data-theme="rain"] .btn-outline-primary {
    --bs-btn-color: #1c64f2;
    --bs-btn-border-color: #1c64f2;
    --bs-btn-hover-bg: #1c64f2;
    --bs-btn-hover-border-color: #1c64f2;
    --bs-btn-active-bg: #164fc4;
    --bs-btn-active-border-color: #164fc4;
}

body[data-theme="rain"] :is(.nav-links a.active, .mobile-nav-item.active span,
    .mobile-nav-item.active svg, .mobile-nav-item.active i) {
    color: #1c64f2 !important;
    stroke: currentColor !important;
}

body[data-theme="rain"] :is(.nav-links a.active, .mobile-nav-item.active .nav-icon-indicator) {
    background-color: #eaf1ff !important;
}

body[data-theme="rain"] .ai-tab-icon,
body[data-theme="rain"] .ai-icon-blue,
body[data-theme="rain"] .catalog-ai-overview__button {
    color: #1c64f2 !important;
    stroke: currentColor !important;
}

body[data-theme="rain"] .catalog-ai-overview__button {
    color: #fff !important;
    background-color: #1c64f2 !important;
    border-color: #1c64f2 !important;
}

body[data-theme="rain"] :is(.catalog-ai-overview__button:hover,
    .catalog-ai-overview__button:active, .catalog-ai-overview__button:focus-visible) {
    color: #fff !important;
    background-color: #164fc4 !important;
    border-color: #164fc4 !important;
}

body[data-theme="rain"] #homeBannerDots > button.is-active,
body[data-theme="rain"] .carousel-indicators > [data-bs-target],
body[data-theme="rain"] .home-banner-dots button.is-active {
    background-color: #1c64f2 !important;
}

body[data-theme="rain"] .home-search-heading > span,
body[data-theme="rain"] .home-stat-card > span {
    color: #1c64f2 !important;
    background: #eaf1ff !important;
}

/* Rain mobile news and agenda detail hero. The desktop detail layout is unchanged. */
body[data-theme="rain"] .rain-news-mobile-hero {
    display: none;
}

body[data-theme="rain"] .rain-related-news {
    display: none;
}

@media (max-width: 767.98px) {
    body[data-theme="rain"] .news-detail-page {
        margin: 0 -10px;
        padding: 0 0 calc(24px + env(safe-area-inset-bottom));
        background: #fafafa;
        color: #303640;
    }

    body[data-theme="rain"] .rain-news-mobile-hero {
        position: relative;
        display: flex;
        min-height: 404px;
        align-items: stretch;
        overflow: hidden;
        isolation: isolate;
        color: #fff;
        background: linear-gradient(145deg, var(--rain-primary-dark, #164fc4), var(--rain-primary, #1c64f2));
    }

    body[data-theme="rain"] .rain-news-mobile-hero::after {
        position: absolute;
        z-index: -1;
        background: linear-gradient(180deg, rgba(9, 25, 49, .75) 0%, rgba(9, 25, 49, .72) 56%, rgba(9, 25, 49, .92) 100%);
        content: "";
        inset: 0;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__image {
        position: absolute;
        z-index: -2;
        width: 100%;
        height: 100%;
        inset: 0;
        object-fit: cover;
        object-position: center;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__content {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        /* The site header is fixed above the hero, so offset hero content below it. */
        padding: calc(76px + env(safe-area-inset-top)) 20px 24px;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__back {
        display: inline-flex;
        width: max-content;
        align-items: center;
        gap: 8px;
        margin: 0 0 38px;
        color: #fff;
        font-size: .94rem;
        font-weight: 700;
        text-decoration: none;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__back svg {
        width: 19px;
        height: 19px;
    }

    body[data-theme="rain"] .rain-news-mobile-hero h1 {
        margin: 0 0 28px;
        color: #fff;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(1.55rem, 6.2vw, 2rem);
        font-weight: 700;
        line-height: 1.28;
        letter-spacing: -.02em;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__meta {
        display: grid;
        gap: 8px;
        margin-bottom: 20px;
        font-size: .88rem;
        font-weight: 600;
        line-height: 1.4;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__meta span {
        display: flex;
        align-items: flex-start;
        gap: 9px;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__meta svg {
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
        margin-top: 1px;
        color: #d5e4ff;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin: 2px 0 20px;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__stats span {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 2px;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__stats span > svg {
        grid-row: 1 / 3;
        width: 30px;
        height: 30px;
        padding: 6px;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 50%;
        color: #fff;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__stats strong {
        color: #fff;
        font-size: .92rem;
        line-height: 1.2;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__stats small {
        color: rgba(255, 255, 255, .82);
        font-size: .72rem;
        line-height: 1.25;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__share {
        display: flex;
        width: 100%;
        min-height: 44px;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;
        padding: 0 16px;
        border: 0;
        border-radius: 9px;
        color: #fff;
        background: var(--rain-primary, #1c64f2);
        font-size: .91rem;
        font-weight: 750;
        text-decoration: none;
    }

    body[data-theme="rain"] .rain-news-mobile-hero__share svg {
        width: 19px;
        height: 19px;
    }

    body[data-theme="rain"] .news-detail-shell > .news-detail-header {
        display: none;
    }

    body[data-theme="rain"] .news-detail-layout {
        display: block;
        margin: 0;
    }

    body[data-theme="rain"] .news-article-card {
        padding: 28px 20px 30px;
        border: 0;
        border-radius: 0;
        background: #fafafa;
        box-shadow: none;
    }

    body[data-theme="rain"] .news-article-header {
        display: none;
    }

    body[data-theme="rain"] .news-article-cover {
        margin: 0 0 26px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body[data-theme="rain"] .news-article-cover img {
        width: 100%;
        max-height: none;
        aspect-ratio: 1.48;
        border-radius: 0;
        object-fit: cover;
    }

    body[data-theme="rain"] .news-article-content {
        max-width: none;
        color: #414141;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.08rem;
        line-height: 1.58;
    }

    body[data-theme="rain"] .news-article-content * {
        font-family: Georgia, "Times New Roman", serif !important;
    }

    body[data-theme="rain"] .news-article-content p:first-child::first-letter {
        font-weight: 700;
    }

    body[data-theme="rain"] .news-detail-sidebar {
        display: block;
        margin: 0;
        padding: 0 14px;
    }

    body[data-theme="rain"] .news-detail-sidebar .news-side-card:not(.news-share-card) {
        display: none;
    }

    body[data-theme="rain"] .news-share-card {
        margin: 8px 0 0;
        padding: 18px 10px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body[data-theme="rain"] .news-share-card .news-side-heading {
        margin-bottom: 14px;
    }

    body[data-theme="rain"] .news-share-card .news-side-heading > span {
        display: inline-flex;
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        align-items: center;
        justify-content: center;
        border-radius: 15px;
        color: var(--rain-primary, #1c64f2);
        background: var(--rain-primary-soft, #eaf1ff);
    }

    body[data-theme="rain"] .news-share-card .news-side-heading > span svg {
        width: 24px;
        height: 24px;
    }

    body[data-theme="rain"] .news-share-card .news-side-heading h2 {
        color: #172b43;
        font-size: 1.25rem;
        font-weight: 750;
    }

    body[data-theme="rain"] .news-share-card .news-side-heading p {
        display: block;
        margin-top: 3px;
        color: #64748b;
        font-size: .92rem;
    }

    body[data-theme="rain"] .news-share-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    body[data-theme="rain"] .news-share-actions button {
        display: flex;
        min-width: 0;
        min-height: 82px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 8px 3px;
        border: 1px solid #d6e2ef;
        border-radius: 12px;
        color: var(--rain-primary-dark, #164fc4);
        background: #fff;
        font-size: .78rem;
        font-weight: 650;
        line-height: 1.15;
        white-space: nowrap;
    }

    body[data-theme="rain"] .news-share-actions button:focus-visible {
        outline: 3px solid rgba(28, 100, 242, .28);
        outline-offset: 2px;
    }

    body[data-theme="rain"] .news-share-actions button > span:last-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body[data-theme="rain"] .news-share-actions button > svg {
        display: block;
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        color: var(--rain-primary, #1c64f2);
    }

    body[data-theme="rain"] .news-share-actions button[data-news-share="whatsapp"] > svg {
        color: #079653;
    }

    body[data-theme="rain"] .rain-related-news {
        display: block;
        margin: 34px 0 0;
        padding-top: 4px;
    }

    body[data-theme="rain"] .rain-related-news > h3 {
        position: relative;
        margin: 0 0 18px;
        padding: 0 0 12px;
        border-bottom: 1px solid #e3e7ec;
        color: #092e59;
        font-family: inherit;
        font-size: .9rem;
        font-weight: 750;
        line-height: 1.3;
    }

    body[data-theme="rain"] .rain-related-news > h3::after {
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 108px;
        height: 3px;
        background: var(--rain-primary, #1c64f2);
        content: "";
    }

    body[data-theme="rain"] .rain-related-news__list {
        display: grid;
        gap: 18px;
    }

    body[data-theme="rain"] .rain-related-news__item {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        min-width: 0;
    }

    body[data-theme="rain"] .rain-related-news__thumb {
        display: block;
        width: 72px;
        height: 72px;
        overflow: hidden;
        border-radius: 9px;
        background: #e8edf3;
    }

    body[data-theme="rain"] .rain-related-news__thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body[data-theme="rain"] .rain-related-news__item h4 {
        display: -webkit-box;
        overflow: hidden;
        margin: 0 0 7px;
        color: #082f5c;
        font-family: inherit;
        font-size: .96rem;
        font-weight: 600;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body[data-theme="rain"] .rain-related-news__item h4 a {
        color: inherit;
        text-decoration: none;
    }

    body[data-theme="rain"] .rain-related-news__item p {
        overflow: hidden;
        margin: 0;
        color: #666;
        font-family: inherit;
        font-size: .72rem;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

body[data-theme="rain"] .home-search-panel form > button {
    color: #fff !important;
    background: #1c64f2 !important;
}

body[data-theme="rain"] .home-section-header a {
    color: #1c64f2 !important;
}

body[data-theme="rain"] .home-contact-cta,
body[data-theme="rain"] .home-sk-contact {
    background: linear-gradient(130deg, #164fc4, #1c64f2 62%, #4c8bff) !important;
}

body[data-theme="rain"] .home-contact-mark {
    color: #1c64f2 !important;
}

body[data-theme="rain"] .home-page .home-library-summary-section a.home-statistics-link:is(:hover, :focus, :focus-visible, :active),
body[data-theme="rain"] :is(a.profil-btn-primary, a.profil-wa-btn, a.profil-page-back):is(:hover, :focus, :focus-visible, :active) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body[data-theme="rain"] .home-page .home-library-summary-section a.home-statistics-link:is(:hover, :focus, :focus-visible, :active) {
    background-color: #164fc4 !important;
    border-color: #164fc4 !important;
}

body[data-theme="rain"] .home-banner-copy .home-banner-cta-btn {
    color: #243047 !important;
    background: #f7b924 !important;
    border-color: #f7b924 !important;
}

body[data-theme="rain"] .home-banner-copy .home-banner-cta-btn:hover,
body[data-theme="rain"] .home-banner-copy .home-banner-cta-btn:focus-visible,
body[data-theme="rain"] .home-banner-copy .home-banner-cta-btn:active {
    color: #243047 !important;
    background: #e4a817 !important;
    border-color: #e4a817 !important;
}

body[data-theme="rain"] .main-footer {
    color: #164fc4 !important;
}

body[data-theme="rain"] .main-footer :is(.footer-section, .footer-section h4,
    .footer-section p, .footer-section li, .footer-section a, .footer-contact i,
    .footer-bottom, .footer-bottom > p, .footer-bottom a) {
    color: #164fc4 !important;
}

body[data-theme="rain"] .main-footer .footer-section h4::after {
    background: #1c64f2 !important;
}

body[data-theme="rain"] .footer-social-links a {
    color: #164fc4 !important;
    background: #eaf1ff !important;
    border-color: #d3e1ff !important;
}

body[data-theme="rain"] .footer-social-links a:hover,
body[data-theme="rain"] .footer-social-links a:focus-visible {
    color: #243047 !important;
    background: #f7b924 !important;
    border-color: #f7b924 !important;
}

body[data-theme="rain"] .member-statistics-page {
    --member-blue: #1c64f2;
    --member-blue-dark: #164fc4;
    --member-blue-soft: #eaf1ff;
    --member-chart-secondary: #f7b924;
    --member-chart-tertiary: #eaf1ff;
    --member-chart-primary-soft: rgba(28, 100, 242, .12);
}

body[data-theme="rain"] .catalog-statistics-page {
    --statistics-physical-chart-color: #1c64f2;
    --statistics-digital-chart-color: #f7b924;
}

body[data-theme="rain"] .home-contact-cta {
    --contact-cta-start: #1c64f2;
    --contact-cta-end: #4c8bff;
}

/* Match Rain shortcuts to the exact Finexy shortcut palette. */
body[data-theme="rain"] .rain-shortcut--1 { --icon-color: #0ea5e9; --icon-bg: #e0f2fe; }
body[data-theme="rain"] .rain-shortcut--2 { --icon-color: #10b981; --icon-bg: #d1fae5; }
body[data-theme="rain"] .rain-shortcut--3 { --icon-color: #f59e0b; --icon-bg: #fef3c7; }
body[data-theme="rain"] .rain-shortcut--4 { --icon-color: #d946ef; --icon-bg: #fae8ff; }
body[data-theme="rain"] .rain-shortcut--5 { --icon-color: #f43f5e; --icon-bg: #ffe4e6; }
body[data-theme="rain"] .rain-shortcut--6 { --icon-color: #8b5cf6; --icon-bg: #ede9fe; }
body[data-theme="rain"] .rain-shortcut--7 { --icon-color: #3b82f6; --icon-bg: #dbeafe; }
body[data-theme="rain"] .rain-shortcut--8 { --icon-color: #ec4899; --icon-bg: #fce7f3; }
body[data-theme="rain"] .rain-shortcut--9 { --icon-color: #14b8a6; --icon-bg: #ccfbf1; }
body[data-theme="rain"] .rain-shortcut--10 { --icon-color: #f97316; --icon-bg: #ffedd5; }
body[data-theme="rain"] .rain-shortcut--11 { --icon-color: #ef4444; --icon-bg: #fee2e2; }
body[data-theme="rain"] .rain-shortcut--12 { --icon-color: #84cc16; --icon-bg: #ecfccb; }
body[data-theme="rain"] .rain-shortcut--more { --icon-color: #64748b; --icon-bg: #f1f5f9; }

@media (max-width: 768px) {
    body[data-theme="rain"] .mobile-bottom-nav > .mobile-nav-item--featured .nav-icon-indicator {
        background: #1c64f2 !important;
        box-shadow: 0 6px 16px rgba(28, 100, 242, .28);
    }
}

/* OPAC member portal */
body[data-theme="rain"] :is(.member-portal-page, .member-donations-container, .member-suggestions-container) {
    --color-primary: #1c64f2 !important;
    --color-primary-light: #eaf1ff !important;
    --color-primary-dark: #164fc4 !important;
    --primary-color: #1c64f2 !important;
    --member-blue: #1c64f2 !important;
    --member-blue-dark: #164fc4 !important;
    --member-blue-soft: #eaf1ff !important;
    --member-chart-secondary: #f7b924 !important;
    --md-secondary: #f7b924 !important;
}
body[data-theme="rain"] :is(.member-portal-page, .member-donations-container, .member-suggestions-container) :is(
    .member-portal-icon, .stat-icon, .app-header .header-icon-wrapper, .header-icon-box,
    .empty-icon-circle, .member-nav a.active, .member-mobile-bottom-nav a.active,
    .custom-tabs, .custom-tabs .nav-link:hover, .reservation-booking-code--active,
    .ticket-message--member, .member-portal-page .member-reservations-card .custom-tabs
) {
    color: #164fc4 !important;
    background-color: #eaf1ff !important;
    border-color: #d3e1ff !important;
}
body[data-theme="rain"] :is(.member-portal-page, .member-donations-container, .member-suggestions-container) :is(
    .member-nav a:hover, .btn-link, .wishlist-title:hover, .reservation-title:hover,
    .ticket-rsv, .notification-detail-link
) {
    color: #1c64f2 !important;
}
body[data-theme="rain"] :is(.member-portal-page, .member-donations-container, .member-suggestions-container) :is(
    .btn-app-action, .digital-card-show-button, .helpdesk-btn, .btn-submit-donation,
    .reservation-empty-action, .custom-tabs .nav-link.active, .mobile-reservation-tabs button.active,
    .reservation-timeline li.active .timeline-step,
    .reservation-timeline li.active::before, .timeline-item.active .timeline-dot,
    .reservation-detail-timeline-item.is-current .reservation-detail-timeline-dot,
    .reservation-event-timeline-item.is-current .reservation-event-timeline-marker,
    .notification-page-link.active, .page-item.active .notification-page-link
) {
    color: #fff !important;
    background: #1c64f2 !important;
    border-color: #1c64f2 !important;
}
body[data-theme="rain"] :is(.member-portal-page, .member-donations-container, .member-suggestions-container) :is(
    .btn-app-action:hover, .digital-card-show-button:hover, .helpdesk-btn:hover,
    .btn-submit-donation:hover, .reservation-empty-action:hover,
    .custom-tabs .nav-link.active:hover, .mobile-reservation-tabs button.active:hover, .btn-renew:hover:not(:disabled)
) {
    color: #fff !important;
    background: #164fc4 !important;
    border-color: #164fc4 !important;
}
body[data-theme="rain"] :is(.member-portal-page, .member-donations-container, .member-suggestions-container) :is(
    .btn-renew, .reservation-info-alert, .profile-form-control:focus,
    .form-control:focus, .form-select:focus
) {
    color: #164fc4 !important;
    background-color: #eaf1ff !important;
    border-color: #a8c4ff !important;
}
body[data-theme="rain"] .member-portal-page :is(.digital-member-card, .digital-loan-countdown-banner.premium-card) {
    background: linear-gradient(135deg, #164fc4 0%, #1c64f2 100%) !important;
}
body[data-theme="rain"] .member-portal-page .notification-item.is-unread {
    border-left-color: #1c64f2 !important;
}
body[data-theme="rain"] .member-portal-page .notification-new-badge {
    color: #263238 !important;
    background: #f7b924 !important;
}


/* Rain frontend sage palette overrides; limited to Rain and shared public theme styles. */
body[data-theme="rain"] {
    --gt-primary:  #1c64f2 !important;
    --gt-primary-dark:  #164fc4 !important;
    --gt-primary-soft:  #eaf1ff !important;
    --gt-primary-hover:  #164fc4 !important;
}

    body[data-theme="rain"] .home-contact-cta {
    --contact-cta-start:  #164fc4 !important; --contact-cta-end:  #4c8bff !important;
}

    body[data-theme="rain"] .home-contact-action,
    body[data-theme="rain"] .home-contact-action:hover,
    body[data-theme="rain"] .home-contact-action:focus-visible,
    body[data-theme="rain"] .home-contact-action strong,
    body[data-theme="rain"] .home-book-list--portrait .home-book-card h3 a,
    body[data-theme="rain"] .catalog-detail-page {
    color: #17243b !important;
}

    body[data-theme="rain"] .home-library-about::before,
    body[data-theme="rain"] .home-banner-dots button.is-active,
    body[data-theme="rain"] .home-search-panel form>button,
    body[data-theme="rain"] .catalog-reserve-button,
    body[data-theme="rain"] .catalog-review-notice p+.btn,
    body[data-theme="rain"] .catalog-review-notice .btn,
    body[data-theme="rain"] .member-donations-container .reservation-empty-action,
    body[data-theme="rain"] .member-suggestions-container .reservation-empty-action,
    body[data-theme="rain"] .btn-renew:hover:not(:disabled),
    body[data-theme="rain"] .member-nav a.active,
    body[data-theme="rain"] .reservation-timeline li.active::before,
    body[data-theme="rain"] .custom-tabs .nav-link.active,
    body[data-theme="rain"] .reservation-detail-timeline-item.is-current .reservation-detail-timeline-dot,
    body[data-theme="rain"] .digital-card-show-button,
    body[data-theme="rain"] .wv-legend-desktop .wv-legend-dot,
    body[data-theme="rain"] .wv-page-item:nth-child(1) .wv-page-rank,
    body[data-theme="rain"] .wv-page-item:nth-child(2) .wv-page-rank,
    body[data-theme="rain"] .main-footer .footer-section h4::after {
    background: #1c64f2 !important;
}

    body[data-theme="rain"] .catalog-ai-overview__heading .catalog-ai-overview__button,
    body[data-theme="rain"] .catalog-ai-overview__heading .catalog-ai-overview__button:visited,
    body[data-theme="rain"] .rain-share-option:hover,
    body[data-theme="rain"] .rain-share-option:focus,
    body[data-theme="rain"] .opac-statistics-nav a[aria-current="page"],
    body[data-theme="rain"] .opac-statistics-nav a.active {
    background: #1c64f2 !important; border-color: #1c64f2 !important; color: #ffffff !important;
}

    body[data-theme="rain"] .opac-statistics-nav a[aria-current="page"] svg,
    body[data-theme="rain"] .opac-statistics-nav a.active svg {
    color: #ffffff !important; stroke: #ffffff !important;
}

    body[data-theme="rain"] .opac-statistics-nav a[aria-current="page"]:hover,
    body[data-theme="rain"] .opac-statistics-nav a.active:hover {
    background: #164fc4 !important; border-color: #164fc4 !important; color: #ffffff !important;
}

    body[data-theme="rain"] .opac-statistics-nav a[aria-current="page"]:hover svg,
    body[data-theme="rain"] .opac-statistics-nav a.active:hover svg {
    color: #ffffff !important; stroke: #ffffff !important;
}

    body[data-theme="rain"] .catalog-ai-overview__heading .catalog-ai-overview__button:hover,
    body[data-theme="rain"] .catalog-ai-overview__heading .catalog-ai-overview__button:active,
    body[data-theme="rain"] .catalog-ai-overview__heading .catalog-ai-overview__button:focus-visible,
    body[data-theme="rain"] .footer-social-links a:hover,
    body[data-theme="rain"] .footer-social-links a:focus-visible {
    background: #164fc4 !important; border-color: #164fc4 !important;
}

    body[data-theme="rain"] .member-portal-page .member-reservations-card .custom-tabs {
    border-color: #eaf1ff !important; background: #eaf1ff !important;
}

    body[data-theme="rain"] .member-portal-page .member-reservations-card .custom-tabs .nav-link,
    body[data-theme="rain"] .catalog-detail-back,
    body[data-theme="rain"] .catalog-detail-id,
    body[data-theme="rain"] .custom-tabs .nav-link:hover {
    background: #eaf1ff !important; color: #164fc4 !important;
}

    body[data-theme="rain"] .member-portal-page .member-reservations-card .custom-tabs .nav-link:hover,
    body[data-theme="rain"] .member-portal-page .mobile-reservation-tabs button:not(.active):hover {
    border-color: #d3e1ff !important; background: #d3e1ff !important; color: #123f7c !important;
}

    body[data-theme="rain"] .member-portal-page .member-reservations-card .custom-tabs .nav-link.active {
    border-color: #1c64f2 !important; background: #1c64f2 !important; color: #fff !important; box-shadow: 0 4px 10px rgba(28, 100, 242, .2) !important;
}

    body[data-theme="rain"] .member-portal-page .mobile-reservation-tabs button {
    border-color: #eaf1ff !important; background: #eaf1ff !important; color: #164fc4 !important;
}

    body[data-theme="rain"] .member-portal-page .mobile-reservation-tabs button.active {
    border-color: #1c64f2 !important; background: #1c64f2 !important; color: #fff !important; box-shadow: 0 4px 12px rgba(28, 100, 242, .2) !important;
}

    body[data-theme="rain"] .member-portal-page .member-reservations-card #aktif .empty-icon-circle,
    body[data-theme="rain"] .member-portal-page .member-reservations-card #mobile-reservations-active .empty-icon-circle,
    body[data-theme="rain"] .member-portal-page .mobile-reservation-pane .empty-icon-circle,
    body[data-theme="rain"] .home-section-header a,
    body[data-theme="rain"] .ai-header-icon,
    body[data-theme="rain"] .catalog-cover-action,
    body[data-theme="rain"] .catalog-primary-info dt svg,
    body[data-theme="rain"] .catalog-technical-grid dt svg,
    body[data-theme="rain"] .catalog-section-block h3 svg,
    body[data-theme="rain"] .member-mobile-bottom-nav a.active,
    body[data-theme="rain"] .custom-tabs .nav-link,
    body[data-theme="rain"] .ticket-rsv,
    body[data-theme="rain"] .visit-presets a,
    body[data-theme="rain"] .visit-data summary,
    body[data-theme="rain"] :is(.text-primary,.link-primary,a:not(.btn):hover,.form-check-input:checked),
    body[data-theme="rain"] :is(.text-primary,.link-primary,.btn-link),
    body[data-theme="rain"] :is(.nav-links a.active,.mobile-nav-item.active span,.mobile-nav-item.active svg,.mobile-nav-item.active i),
    body[data-theme="rain"] .ai-tab-icon,
    body[data-theme="rain"] .ai-icon-blue,
    body[data-theme="rain"] [style*="color: #3b82f6"] {
    color: #1c64f2 !important;
}

    body[data-theme="rain"] .member-portal-page .reservation-empty-action {
    background: #1c64f2 !important; box-shadow: 0 4px 12px rgba(28, 100, 242, .24) !important;
}

    body[data-theme="rain"] .gt-checkin-banner {
    background: linear-gradient(135deg,#eaf1ff 0%,#eaf1ff 100%) !important; border: 1px solid #d3e1ff !important;
}

    body[data-theme="rain"] .gt-summary-box {
    background: linear-gradient(135deg,#eaf1ff 0%,#f1f5f9 100%) !important; border: 1px solid #d3e1ff !important;
}

    body[data-theme="rain"] .guest-location-page {
    --guest-blue:  #1c64f2 !important; --guest-blue-dark:  #164fc4 !important; --guest-blue-soft:  #eaf1ff !important;
}

    body[data-theme="rain"] .member-registration-page {
    --registration-blue:  #1c64f2 !important; --registration-blue-dark:  #164fc4 !important; --registration-blue-soft:  #eaf1ff !important;
}

    body[data-theme="rain"] .home-page {
    --rain-primary:  #1c64f2 !important; --rain-primary-dark:  #164fc4 !important; --rain-primary-soft:  #eaf1ff !important; --home-border:  #d3e1ff !important; --home-text:  #17243b !important; --home-muted:  #64748b !important;
}

    body[data-theme="rain"] .home-search-panel,
    body[data-theme="rain"] .home-section,
    body[data-theme="rain"] .home-library-summary-section {
    box-shadow: 0 3px 12px rgba(28, 100, 242, .06) !important;
}

    body[data-theme="rain"] .home-statistics-link,
    body[data-theme="rain"] .member-statistics-back {
    border: 1px solid #d3e1ff !important;
}

    body[data-theme="rain"] .home-shortcut-list-modal>a>span {
    color: var(--icon-color, var(--rain-primary, #1c64f2)) !important; background: var(--icon-bg, #eaf1ff) !important;
}

    body[data-theme="rain"] .home-search-heading>span,
    body[data-theme="rain"] .home-stat-card>span,
    body[data-theme="rain"] .member-donations-container .empty-icon-circle,
    body[data-theme="rain"] .member-suggestions-container .empty-icon-circle,
    body[data-theme="rain"] .wv-kpi-desktop span,
    body[data-theme="rain"] .wv-page-rank {
    background: #eaf1ff !important; color: #1c64f2 !important;
}

    body[data-theme="rain"] .home-shortcut-list>a svg,
    body[data-theme="rain"] .home-shortcut-list>button svg,
    body[data-theme="rain"] .home-shortcut-list .shortcut-more-btn svg,
    body[data-theme="rain"] .home-shortcut-list-modal>a svg {
    color: var(--icon-color, #1c64f2) !important;
}

    body[data-theme="rain"] .home-contact-cta {
    background: linear-gradient(130deg,#164fc4,#1c64f2 62%,#4c8bff) !important; border: 1px solid rgba(28, 100, 242, .18) !important; box-shadow: 0 10px 28px rgba(28, 100, 242, .14) !important;
}

    body[data-theme="rain"] .home-contact-mark,
    body[data-theme="rain"] .home-contact-action>span {
    color: #164fc4 !important; background: #eaf1ff !important;
}

    body[data-theme="rain"] .home-contact-eyebrow {
    color: #eaf1ff !important;
}

    body[data-theme="rain"] .home-news-feature-card,
    body[data-theme="rain"] .home-news-next-card,
    body[data-theme="rain"] .home-book-list--portrait .home-book-card {
    box-shadow: 0 5px 16px rgba(28, 100, 242, .06) !important;
}

    body[data-theme="rain"] .home-news-next-thumb,
    body[data-theme="rain"] .home-book-list--portrait .home-book-cover,
    body[data-theme="rain"] .mobile-nav-item.active .nav-icon-indicator,
    body[data-theme="rain"] .ticket-message--member,
    body[data-theme="rain"] .visit-table-wrap thead th {
    background: #eaf1ff !important;
}

    body[data-theme="rain"] .home-most-borrowed-section .home-book-list--portrait .home-book-loan-count {
    background: rgba(28, 100, 242, .9) !important;
}

    body[data-theme="rain"] .home-sk-book-card,
    body[data-theme="rain"] .home-sk-news-card,
    body[data-theme="rain"] .news-search-field input:focus,
    body[data-theme="rain"] .survey-choice:has(input:checked),
    body[data-theme="rain"] .survey-text-answer textarea:focus {
    border-color: #d3e1ff !important;
}

    body[data-theme="rain"] .home-sk-contact {
    background: linear-gradient(130deg,#164fc4,#1c64f2 62%,#4c8bff) !important;
}

    body[data-theme="rain"] .home-sk-summary {
    border: 1px solid #d3e1ff !important; box-shadow: 0 3px 12px rgba(28, 100, 242, .06) !important;
}

    body[data-theme="rain"] .news-detail-page,
    body[data-theme="rain"] .news-list-page {
    --news-blue:  #1c64f2 !important; --news-blue-dark:  #164fc4 !important; --news-blue-soft:  #eaf1ff !important;
}

    body[data-theme="rain"] .ai-header h1,
    body[data-theme="rain"] .catalog-title-block h2,
    body[data-theme="rain"] .catalog-primary-info dt svg,
    body[data-theme="rain"] .rain-detail-hero__availability,
    body[data-theme="rain"] .catalog-primary-info dd,
    body[data-theme="rain"] .catalog-technical-grid dd,
    body[data-theme="rain"] .mobile-nav-item.active span,
    body[data-theme="rain"] .reservation-timeline li.active .timeline-label,
    body[data-theme="rain"] .btn-read-digital,
    body[data-theme="rain"] .btn-read-digital:hover,
    body[data-theme="rain"] .visit-insight strong,
    body[data-theme="rain"] .visit-coverage strong,
    body[data-theme="rain"] .opac-statistics-nav a,
    body[data-theme="rain"] .main-footer,
    body[data-theme="rain"] .main-footer .footer-section,
    body[data-theme="rain"] .main-footer .footer-section h4,
    body[data-theme="rain"] .main-footer .footer-section p,
    body[data-theme="rain"] .main-footer .footer-section li,
    body[data-theme="rain"] .main-footer .footer-section a,
    body[data-theme="rain"] .main-footer .footer-contact i,
    body[data-theme="rain"] .main-footer .footer-bottom,
    body[data-theme="rain"] .main-footer .footer-bottom>p,
    body[data-theme="rain"] .main-footer .footer-bottom a {
    color: #164fc4 !important;
}

    body[data-theme="rain"] .progress-bar,
    body[data-theme="rain"] .btn-next,
    body[data-theme="rain"] .btn-submit {
    background: var(--opac-blue, #1c64f2) !important;
}

    body[data-theme="rain"] .option-label.selected {
    background: #eaf1ff !important; border-color: #1c64f2 !important; color: #164fc4 !important;
}

    body[data-theme="rain"] .btn-next:hover,
    body[data-theme="rain"] .btn-submit:hover,
    body[data-theme="rain"] .catalog-reserve-button:hover:not(:disabled),
    body[data-theme="rain"] .btn-app-action:hover,
    body[data-theme="rain"] .visit-filter button:hover {
    background: #164fc4 !important;
}

    body[data-theme="rain"] .catalog-browse-page {
    --browse-blue:  #1c64f2 !important; --browse-blue-dark:  #164fc4 !important; --browse-blue-soft:  #eaf1ff !important;
}

    body[data-theme="rain"] .catalog-detail-page {
    --detail-blue:  #1c64f2 !important; --detail-blue-dark:  #164fc4 !important; --detail-blue-soft:  #eaf1ff !important;
}

    body[data-theme="rain"] .rain-detail-hero {
    background: linear-gradient(145deg,#164fc4 0%,#1c64f2 58%,#4c8bff 100%) !important;
}

    body[data-theme="rain"] .rain-detail-hero::after {
    background: linear-gradient(180deg,rgba(18, 63, 124, .54),rgba(28, 100, 242, .9) 54%,#164fc4 100%) !important;
}

    body[data-theme="rain"] .rain-detail-hero::after {
    background: linear-gradient(180deg,rgba(18, 63, 124, .42),rgba(28, 100, 242, .62) 54%,rgba(28, 100, 242, .78) 100%) !important;
}

    body[data-theme="rain"] .opac-catalog-page {
    --opac-blue:  #1c64f2 !important; --opac-blue-dark:  #164fc4 !important; --opac-blue-soft:  #eaf1ff !important;
}

/* OPAC Collection Scroll Snap Tabs (Koleksi Terbaru / Sering Dipinjam) */
body[data-theme="rain"] .opac-results-header--tabs {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
}
body[data-theme="rain"] .opac-tab-scroll-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 0 !important;
}
body[data-theme="rain"] .opac-tab-scroll-wrap::-webkit-scrollbar {
    display: none !important;
}
body[data-theme="rain"] #opac-koleksi-tab {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}
body[data-theme="rain"] #opac-koleksi-tab .nav-item {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
}
body[data-theme="rain"] #opac-koleksi-tab .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 18px !important;
    border-radius: 9999px !important;
    font-size: 0.82rem !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    color: #334155 !important;
    background: #f1f5f9 !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
body[data-theme="rain"] #opac-koleksi-tab .nav-link i,
body[data-theme="rain"] #opac-koleksi-tab .nav-link svg {
    width: 15px !important;
    height: 15px !important;
    stroke-width: 2.2 !important;
    color: #475569 !important;
    stroke: #475569 !important;
    flex-shrink: 0 !important;
}
body[data-theme="rain"] #opac-koleksi-tab .nav-link:hover:not(.active) {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}
body[data-theme="rain"] #opac-koleksi-tab .nav-link:hover:not(.active) i,
body[data-theme="rain"] #opac-koleksi-tab .nav-link:hover:not(.active) svg {
    color: #1e293b !important;
    stroke: #1e293b !important;
}
body[data-theme="rain"] #opac-koleksi-tab .nav-link.active {
    background-color: var(--opac-blue, #1c64f2) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(28, 100, 242, 0.25) !important;
    border-color: transparent !important;
}
body[data-theme="rain"] #opac-koleksi-tab .nav-link.active i,
body[data-theme="rain"] #opac-koleksi-tab .nav-link.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}
body[data-theme="rain"] .opac-results-subbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
}
body[data-theme="rain"] .opac-results-subbar .opac-results-count {
    margin: 0 !important;
    color: var(--opac-muted, #64748b) !important;
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
}
body[data-theme="rain"] .opac-results-subbar .opac-results-browse,
body[data-theme="rain"] .opac-results-header > a.opac-results-browse,
body[data-theme="rain"] .opac-results-header > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--opac-blue, #1c64f2) !important;
    font-size: 0.78rem !important;
    font-weight: 750 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
body[data-theme="rain"] .opac-results-subbar .opac-results-browse svg,
body[data-theme="rain"] .opac-results-header > a.opac-results-browse svg,
body[data-theme="rain"] .opac-results-header > a svg {
    width: 15px !important;
    height: 15px !important;
    color: var(--opac-blue, #1c64f2) !important;
    stroke: var(--opac-blue, #1c64f2) !important;
}
body[data-theme="rain"] .opac-results-subbar .opac-results-browse:hover,
body[data-theme="rain"] .opac-results-header > a.opac-results-browse:hover,
body[data-theme="rain"] .opac-results-header > a:hover {
    color: var(--opac-blue-dark, #164fc4) !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    body[data-theme="rain"] .opac-results-header--tabs {
        gap: 8px !important;
    }
    body[data-theme="rain"] .opac-tab-scroll-wrap {
        margin: 0 -14px !important;
        padding: 2px 14px 4px !important;
        width: calc(100% + 28px) !important;
    }
    body[data-theme="rain"] #opac-koleksi-tab {
        gap: 8px !important;
    }
    body[data-theme="rain"] #opac-koleksi-tab .nav-link {
        padding: 7px 16px !important;
        font-size: 0.78rem !important;
        gap: 6px !important;
    }
    body[data-theme="rain"] .opac-results-subbar {
        padding-top: 2px !important;
    }
    body[data-theme="rain"] .opac-results-subbar .opac-results-count {
        font-size: 0.74rem !important;
    }
    body[data-theme="rain"] .opac-results-subbar .opac-results-browse {
        font-size: 0.76rem !important;
    }
}

    body[data-theme="rain"] .mobile-nav-item.active i,
    body[data-theme="rain"] .mobile-nav-item.active svg {
    color: #164fc4 !important; stroke: #164fc4 !important;
}

    body[data-theme="rain"] .member-donations-container .btn-submit-donation,
    body[data-theme="rain"] .member-suggestions-container .btn-submit-donation,
    body[data-theme="rain"] .opac-search-statistics .search-chart-legend-dot--title-7,
    body[data-theme="rain"] .opac-search-statistics .search-chart-legend-dot--subject-8,
    body[data-theme="rain"] .form-check-input:checked,
    body[data-theme="rain"] .swal2-container .swal2-styled.swal2-confirm,
    body[data-theme="rain"] #homeBannerDots>button.is-active,
    body[data-theme="rain"] .carousel-indicators>[data-bs-target] {
    background-color: #1c64f2 !important;
}

    body[data-theme="rain"] .member-donations-container .btn-submit-donation:hover,
    body[data-theme="rain"] .member-suggestions-container .btn-submit-donation:hover,
    body[data-theme="rain"] .catalog-ai-overview__button:focus-visible {
    background-color: #164fc4 !important;
}

    body[data-theme="rain"] .member-portal-icon,
    body[data-theme="rain"] .member-nav a.active {
    background-color: var(--color-primary-light, #eaf1ff) !important; color: var(--color-primary, #1c64f2) !important;
}

    body[data-theme="rain"] .member-avatar {
    border: 2px solid var(--color-primary-light, #eaf1ff) !important;
}

    body[data-theme="rain"] .member-nav a:hover,
    body[data-theme="rain"] .btn-link {
    color: var(--color-primary, #1c64f2) !important;
}

    body[data-theme="rain"] .stat-icon {
    background: var(--color-primary-light, #eaf1ff) !important; color: var(--color-primary, #1c64f2) !important;
}

    body[data-theme="rain"] .btn-renew {
    background: #eaf1ff !important; color: #1c64f2 !important; border: 1px solid #d3e1ff !important;
}

    body[data-theme="rain"] .app-header .header-icon-wrapper {
    background: linear-gradient(135deg,#eaf1ff 0%,#eaf1ff 100%) !important;
}

    body[data-theme="rain"] .app-header .header-icon-wrapper i,
    body[data-theme="rain"] .wishlist-title:hover,
    body[data-theme="rain"] .reservation-title:hover {
    color: var(--primary-color, #1c64f2) !important;
}

    body[data-theme="rain"] .btn-app-action {
    background: var(--primary-color, #1c64f2) !important;
}

    body[data-theme="rain"] .digital-member-card,
    body[data-theme="rain"] .digital-loan-countdown-banner.premium-card {
    background: linear-gradient(135deg,#164fc4 0%,#1c64f2 100%) !important;
}

    body[data-theme="rain"] .helpdesk-btn {
    background: linear-gradient(135deg,#1c64f2,#164fc4) !important;
}

    body[data-theme="rain"] .reservation-timeline li.active .timeline-step {
    background: #1c64f2 !important; border-color: #d3e1ff !important;
}

    body[data-theme="rain"] .custom-tabs {
    border: 1px solid #eaf1ff !important; background: #eaf1ff !important;
}

    body[data-theme="rain"] .timeline-item.active .timeline-dot,
    body[data-theme="rain"] .page-item.active .notification-page-link,
    body[data-theme="rain"] .reservation-event-timeline-item.is-current .reservation-event-timeline-marker {
    border-color: #1c64f2 !important; background: #1c64f2 !important;
}

    body[data-theme="rain"] .header-icon-box {
    background-color: #eaf1ff !important; color: #1c64f2 !important;
}

    body[data-theme="rain"] .reservation-info-alert {
    color: #164fc4 !important; border: 1px solid #eaf1ff !important;
}

    body[data-theme="rain"] .reservation-booking-code--active {
    color: #1c64f2 !important; border: 1px solid #eaf1ff !important; background: #eaf1ff !important;
}

    body[data-theme="rain"] .notification-item.is-unread {
    border-left-color: #1c64f2 !important;
}

    body[data-theme="rain"] .profile-form-control:focus,
    body[data-theme="rain"] .opac-statistics-nav a:hover {
    border-color: #1c64f2 !important;
}

    body[data-theme="rain"] .dlcb-label {
    color: #d3e1ff !important;
}

    body[data-theme="rain"] .member-statistics-page {
    --member-blue:  #1c64f2 !important; --member-blue-dark:  #164fc4 !important; --member-blue-soft:  #eaf1ff !important; --member-border:  #d3e1ff !important;
}

    body[data-theme="rain"] .member-statistics-print,
    body[data-theme="rain"] .member-export-actions button {
    border: 1px solid #a8c4ff !important;
}

    body[data-theme="rain"] .member-panel {
    box-shadow: 0 3px 12px rgba(28, 100, 242, .04) !important;
}

    body[data-theme="rain"] .visit-filter button {
    border: 1px solid #1c64f2 !important; background: #1c64f2 !important;
}

    body[data-theme="rain"] .wv-page-item:nth-child(3) .wv-page-rank {
    background: #6f9eff !important;
}

    body[data-theme="rain"] .wv-page-progress::-webkit-progress-value,
    body[data-theme="rain"] .wv-page-progress::-moz-progress-bar {
    background: linear-gradient(90deg,#1c64f2,#6f9eff) !important;
}

    body[data-theme="rain"] .catalog-statistics-page {
    --statistics-physical-chart-color:  #164fc4 !important; --statistics-digital-chart-color:  #aec9ff !important; --statistics-blue:  #1c64f2 !important; --statistics-blue-dark:  #164fc4 !important; --statistics-blue-soft:  #eaf1ff !important;
}

    body[data-theme="rain"] .tpbis-date-field label svg,
    body[data-theme="rain"] .tpbis-date-field label [data-lucide],
    body[data-theme="rain"] .tpbis-kpi-score.is-good {
    color: var(--statistics-blue, #1c64f2) !important;
}

    body[data-theme="rain"] .tpbis-date-field input[type="date"]:focus,
    body[data-theme="rain"] .tpbis-limit-select:focus {
    border-color: var(--statistics-blue, #1c64f2) !important;
}

    body[data-theme="rain"] .tpbis-date-submit {
    border: 1px solid var(--statistics-blue, #1c64f2) !important; background: var(--statistics-blue, #1c64f2) !important;
}

    body[data-theme="rain"] .tpbis-date-submit:hover {
    background: var(--statistics-blue-dark, #164fc4) !important; border-color: var(--statistics-blue-dark, #164fc4) !important;
}

    body[data-theme="rain"] .tpbis-preset-btn:hover,
    body[data-theme="rain"] .tpbis-date-presets button:hover {
    color: var(--statistics-blue, #1c64f2) !important; background: var(--statistics-blue-soft, #eaf1ff) !important; border-color: #d3e1ff !important;
}

    body[data-theme="rain"] .tpbis-period-badge,
    body[data-theme="rain"] #tpbisPeriod {
    color: var(--statistics-blue, #1c64f2) !important; background: var(--statistics-blue-soft, #eaf1ff) !important; border: 1px solid #eaf1ff !important;
}

    body[data-theme="rain"] .tpbis-library-summary-icon {
    background: var(--statistics-blue-soft, #eaf1ff) !important; color: var(--statistics-blue, #1c64f2) !important;
}

    body[data-theme="rain"] .tpbis-pagination-button:hover:not(:disabled) {
    border-color: var(--statistics-blue, #1c64f2) !important; color: var(--statistics-blue, #1c64f2) !important; background: var(--statistics-blue-soft, #eaf1ff) !important;
}

    body[data-theme="rain"] .tpbis-pagination-button.is-active {
    background: var(--statistics-blue, #1c64f2) !important; border-color: var(--statistics-blue, #1c64f2) !important;
}

    body[data-theme="rain"] .self-service-page {
    --self-blue:  #1c64f2 !important; --self-blue-dark:  #164fc4 !important; --self-blue-soft:  #eaf1ff !important;
}

    body[data-theme="rain"] .self-service-empty>svg {
    color: #6f9eff !important;
}

    body[data-theme="rain"] .wcag-fab {
    background-color: var(--rain-primary, #1c64f2) !important;
}

    body[data-theme="rain"] .survey-detail-page,
    body[data-theme="rain"] .survey-list-page {
    --survey-blue:  #1c64f2 !important; --survey-blue-dark:  #164fc4 !important; --survey-blue-soft:  #eaf1ff !important;
}

    body[data-theme="rain"] {
    --rain-primary:  #1c64f2 !important; --rain-primary-dark:  #164fc4 !important; --rain-primary-soft:  #eaf1ff !important; --rain-border:  #d3e1ff !important; --rain-text:  #17243b !important; --rain-muted:  #64748b !important; --md-primary:  #1c64f2 !important; --md-primary-container:  #eaf1ff !important; --md-on-primary-container:  #164fc4 !important; --md-secondary:  #6f9eff !important;
}

    body[data-theme="rain"] {
    --md-primary:  #1c64f2 !important; --md-primary-container:  #eaf1ff !important; --md-on-primary-container:  #164fc4 !important; --md-secondary:  #6f9eff !important; --primary-green:  #1c64f2 !important; --brand-500:  #1c64f2 !important; --brand-600:  #164fc4 !important; --brand-100:  #eaf1ff !important; --bs-primary:  #1c64f2 !important; --bs-link-color:  #1c64f2 !important; --bs-link-hover-color:  #164fc4 !important; --bs-pagination-active-bg:  #1c64f2 !important; --bs-pagination-active-border-color:  #1c64f2 !important;
}

    body[data-theme="rain"] :is(.btn-primary,.bg-primary,.progress-bar,.page-item.active .page-link) {
    --bs-btn-bg:  #1c64f2 !important; --bs-btn-border-color:  #1c64f2 !important; --bs-btn-hover-bg:  #164fc4 !important; --bs-btn-hover-border-color:  #164fc4 !important; --bs-btn-active-bg:  #164fc4 !important; --bs-btn-active-border-color:  #164fc4 !important; background-color: #1c64f2 !important; border-color: #1c64f2 !important;
}

    body[data-theme="rain"] :is(.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.page-item.active .page-link),
    body[data-theme="rain"] .home-page .home-library-summary-section a.home-statistics-link:is(:hover,:focus,:focus-visible,:active),
    body[data-theme="rain"] .catalog-ai-overview__button:hover,
    body[data-theme="rain"] .catalog-ai-overview__button:active {
    background-color: #164fc4 !important; border-color: #164fc4 !important;
}

    body[data-theme="rain"] .home-page .home-library-summary-section a.home-statistics-link:is(:hover,:focus,:focus-visible,:active),
    body[data-theme="rain"] :is(a.profil-btn-primary,a.profil-wa-btn,a.profil-page-back):is(:hover,:focus,:focus-visible,:active) {
    color: #fff !important; -webkit-text-fill-color: #fff !important;
}

    body[data-theme="rain"] :is(.border-primary,.form-control:focus,.form-select:focus,.form-check-input:checked) {
    border-color: #6f9eff !important;
}

    body[data-theme="rain"] :is(.nav-pills .nav-link.active,.list-group-item.active,.dropdown-item.active),
    body[data-theme="rain"] :is(.bg-primary,.progress-bar,.page-item.active .page-link,.nav-pills .nav-link.active),
    body[data-theme="rain"] .catalog-ai-overview__button {
    background-color: #1c64f2 !important; border-color: #1c64f2 !important;
}

    body[data-theme="rain"] {
    --bs-primary:  #1c64f2 !important; --bs-link-color:  #1c64f2 !important; --bs-link-hover-color:  #164fc4 !important; --primary-green:  #1c64f2 !important; --primary-color:  #1c64f2 !important; --color-primary:  #1c64f2 !important; --brand-500:  #1c64f2 !important; --brand-600:  #164fc4 !important; --brand-100:  #eaf1ff !important; --catalog-primary:  #1c64f2 !important; --catalog-primary-dark:  #164fc4 !important; --catalog-primary-soft:  #eaf1ff !important;
}

    body[data-theme="rain"] .btn-primary {
    --bs-btn-bg:  #1c64f2 !important; --bs-btn-border-color:  #1c64f2 !important; --bs-btn-hover-bg:  #164fc4 !important; --bs-btn-hover-border-color:  #164fc4 !important; --bs-btn-active-bg:  #164fc4 !important; --bs-btn-active-border-color:  #164fc4 !important;
}

    body[data-theme="rain"] .btn-outline-primary {
    --bs-btn-color:  #1c64f2 !important; --bs-btn-border-color:  #6f9eff !important; --bs-btn-hover-bg:  #1c64f2 !important; --bs-btn-hover-border-color:  #1c64f2 !important; --bs-btn-active-bg:  #164fc4 !important; --bs-btn-active-border-color:  #164fc4 !important;
}

    body[data-theme="rain"] :is(.nav-links a.active,.mobile-nav-item.active .nav-icon-indicator) {
    background-color: #eaf1ff !important;
}

    body[data-theme="rain"] .btn-ai[style*="#3b82f6"] {
    color: #1c64f2 !important; border-color: #1c64f2 !important;
}

    body[data-theme="rain"] .main-footer .footer-bottom {
    border-top-color: rgba(28, 100, 242, 0.18) !important;
}

    body[data-theme="rain"] .catalog-ai-overview__copy {
    color: #164fc4 !important; border-color: #d3e1ff !important;
}

    body[data-theme="rain"] .catalog-ai-overview__copy:hover,
    body[data-theme="rain"] .catalog-ai-overview__copy:focus-visible {
    color: #164fc4 !important; background-color: #eaf1ff !important; border-color: #a8c4ff !important;
}

    body[data-theme="rain"] .catalog-statistics-page {
    --statistics-physical-chart-color:  #164fc4 !important; --statistics-digital-chart-color:  #aec9ff !important;
}

    body[data-theme="rain"] .member-statistics-page {
    --member-blue:  #1c64f2 !important; --member-blue-dark:  #164fc4 !important; --member-blue-soft:  #eaf1ff !important; --member-chart-secondary:  #aec9ff !important;
}

    body[data-theme="rain"] .footer-social-links a {
    color: #164fc4 !important; background: #eaf1ff !important; border: 1px solid #d3e1ff !important;
}

    body[data-theme="rain"] .mobile-features-fab {
    background-color: #164fc4 !important; box-shadow: 0 4px 12px rgba(28, 100, 242, .28) !important;
}

    body[data-theme="rain"] .mobile-bottom-nav>.mobile-nav-item--featured .nav-icon-indicator {
    background: var(--rain-primary, #1c64f2) !important;
}


/* Keep the requested accent and the Finexy shortcut colors after the broad palette overrides. */
body[data-theme="rain"] { --md-secondary: #f7b924 !important; }
body[data-theme="rain"] .member-statistics-page { --member-chart-secondary: #f7b924 !important; }
body[data-theme="rain"] .catalog-statistics-page { --statistics-digital-chart-color: #f7b924 !important; }
body[data-theme="rain"] .home-contact-cta { --contact-cta-start: #1c64f2 !important; --contact-cta-end: #4c8bff !important; }

/* Keep the Home news and library profile cards on the Rain blue palette. */
body[data-theme="rain"] .home-library-summary-section {
    background: #fff !important;
    border-color: #d3e1ff !important;
}
body[data-theme="rain"] .home-library-profile {
    background: linear-gradient(135deg, #eaf1ff 0%, #f4f7ff 100%) !important;
    border-color: #d3e1ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85) !important;
}
body[data-theme="rain"] .home-library-npp {
    background: #fff !important;
    border-color: #d3e1ff !important;
}
body[data-theme="rain"] .home-library-npp > span {
    color: #164fc4 !important;
    background: #eaf1ff !important;
}
body[data-theme="rain"] .home-library-about::before {
    color: #164fc4 !important;
    background: #1c64f2 !important;
}
@media (max-width: 767.98px) {
    body[data-theme="rain"] :is(
        .home-search-panel,
        .home-section,
        .home-services-section,
        .home-stats-section,
        .home-library-summary-section,
        .home-catalog-section,
        .home-most-borrowed-section,
        .home-news-section
    ) {
        box-shadow: none !important;
    }
    body[data-theme="rain"] .home-library-summary-section {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
    body[data-theme="rain"] .home-library-profile {
        background: linear-gradient(135deg, rgba(234, 241, 255, .78) 0%, rgba(244, 247, 255, .72) 100%) !important;
        border-color: rgba(211, 225, 255, .82) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65) !important;
    }
}
body[data-theme="rain"] .home-news-section {
    background: #fff !important;
    border-color: #d3e1ff !important;
}
@media (max-width: 767.98px) {
    body[data-theme="rain"] :is(.home-catalog-section, .home-most-borrowed-section) {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
    body[data-theme="rain"] .home-news-section {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
}
body[data-theme="rain"] .home-news-feature-card,
body[data-theme="rain"] .home-news-next-card {
    background: #fff !important;
    border-color: #d3e1ff !important;
    box-shadow: 0 5px 16px rgba(28, 100, 242, .08) !important;
}
body[data-theme="rain"] .home-news-feature-image {
    background: #14213d !important;
}
body[data-theme="rain"] .home-news-feature-date {
    background: #164fc4 !important;
}
body[data-theme="rain"] .home-news-category,
body[data-theme="rain"] .home-news-read-more {
    color: #eaf1ff !important;
}
body[data-theme="rain"] .home-news-next-thumb {
    background: #eaf1ff !important;
}
body[data-theme="rain"] .home-news-next-date {
    color: #64748b !important;
}
body[data-theme="rain"] .home-news-next-link,
body[data-theme="rain"] .home-news-next-card h3 a:hover {
    color: #164fc4 !important;
}

@media (max-width: 768px) {
    body[data-theme="rain"] .mobile-features-fab {
        color: #263238 !important;
        background-color: #f7b924 !important;
        box-shadow: 0 4px 14px rgba(176, 127, 0, .34) !important;
    }
    body[data-theme="rain"] .mobile-features-fab:hover,
    body[data-theme="rain"] .mobile-features-fab:focus-visible {
        color: #263238 !important;
        background-color: #e6a900 !important;
    }
}

/* ===== Rain Theme Statistics & Charts Overrides (Harmonized with Rain Blue Theme) ===== */
body[data-theme="rain"] :is(#yearChart, #languageChart) {
    filter: none !important;
}

body[data-theme="rain"] .wv-kpi-total span {
    background: #eaf1ff !important;
    color: #1c64f2 !important;
}

body[data-theme="rain"] .member-trend-kpis strong.is-positive {
    color: #1c64f2 !important;
}

body[data-theme="rain"] .tpbis-status-badge {
    background: #eaf1ff !important;
    color: #1c64f2 !important;
    border-color: #c8dbef !important;
}

body[data-theme="rain"] .tpbis-kpi-score.is-excellent {
    color: #1c64f2 !important;
}

body[data-theme="rain"] .statistics-toast--success {
    border-left-color: #1c64f2 !important;
}

body[data-theme="rain"] .member-summary-list svg {
    color: #1c64f2 !important;
}

body[data-theme="rain"] .member-statistics-page {
    --member-blue: #1c64f2 !important;
    --member-blue-dark: #164fc4 !important;
    --member-blue-soft: #eaf1ff !important;
    --member-border: #d3e1ff !important;
    --member-chart-secondary: #60a5fa !important;
    --member-chart-tertiary: #aec9ff !important;
    --member-chart-primary-soft: rgba(28, 100, 242, .12) !important;
}

body[data-theme="rain"] .catalog-statistics-page {
    --statistics-blue: #1c64f2 !important;
    --statistics-blue-dark: #164fc4 !important;
    --statistics-blue-soft: #eaf1ff !important;
    --statistics-border: #d3e1ff !important;
    --statistics-physical-chart-color: #1c64f2 !important;
    --statistics-digital-chart-color: #60a5fa !important;
}

/* ===== Rain Theme Member QR & Barcode Modal ===== */
body[data-theme="rain"] .member-qr-overlay {
    position: fixed !important;
    z-index: 99999 !important;
    inset: 0 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(2px) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

body[data-theme="rain"] .member-qr-overlay.is-visible {
    display: flex !important;
    visibility: visible !important;
}

body[data-theme="rain"] .member-qr-overlay.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body[data-theme="rain"] .member-qr-modal {
    width: min(100% - 2rem, 440px) !important;
    padding: 1.5rem !important;
    border-radius: 1rem !important;
    background: #fff !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    transform: scale(0.9) !important;
    transition: transform 0.3s ease !important;
}

body[data-theme="rain"] .member-qr-modal.is-open {
    transform: scale(1) !important;
}

body[data-theme="rain"] .member-qr-modal h4 {
    margin: 0 0 1.25rem !important;
    color: #1f2937 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

body[data-theme="rain"] .member-code-switcher {
    display: inline-flex !important;
    gap: 0.25rem !important;
    margin: -0.25rem 0 1rem !important;
    padding: 0.25rem !important;
    border-radius: 0.65rem !important;
    background: #f3f4f6 !important;
}

body[data-theme="rain"] .member-code-switcher button {
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    color: #4b5563 !important;
    border: 0 !important;
    border-radius: 0.45rem !important;
    background: transparent !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

body[data-theme="rain"] .member-code-switcher button.is-active {
    color: #fff !important;
    background: #1c64f2 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

body[data-theme="rain"] .member-code-display {
    display: flex !important;
    min-height: 250px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem !important;
    background: #fafafa !important;
    border: 1px dashed #e5e7eb !important;
    border-radius: 0.75rem !important;
}

body[data-theme="rain"] .member-code-display [hidden] {
    display: none !important;
}

body[data-theme="rain"] .member-qr-modal-image {
    display: block !important;
    width: 230px !important;
    height: 230px !important;
    margin: 0 auto !important;
}

body[data-theme="rain"] .member-qr-modal-image canvas,
body[data-theme="rain"] .member-dashboard-qr canvas {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}

body[data-theme="rain"] .member-dashboard-qr canvas {
    width: 60px !important;
    height: 60px !important;
}

body[data-theme="rain"] .member-dashboard-qr canvas ~ img,
body[data-theme="rain"] .member-qr-modal-image canvas ~ img,
body[data-theme="rain"] .member-dashboard-qr img:not([src]),
body[data-theme="rain"] .member-qr-modal-image img:not([src]),
body[data-theme="rain"] .member-dashboard-qr img[src=""],
body[data-theme="rain"] .member-qr-modal-image img[src=""],
body[data-theme="rain"] .member-dashboard-qr img[style*="none"],
body[data-theme="rain"] .member-qr-modal-image img[style*="none"] {
    display: none !important;
}

body[data-theme="rain"] .member-barcode-modal-image {
    display: block !important;
    box-sizing: content-box !important;
    width: auto !important;
    max-width: calc(100% - 48px) !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 16px !important;
    background: #fff !important;
    image-rendering: pixelated !important;
}

body[data-theme="rain"] .member-barcode-unavailable {
    color: #6b7280 !important;
    font-size: 0.9rem !important;
    padding: 2rem 1rem !important;
}

body[data-theme="rain"] .member-qr-modal p {
    margin: 1.25rem 0 0 !important;
    color: #1f2937 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
}

body[data-theme="rain"] .member-qr-modal-close {
    margin-top: 1.5rem !important;
    padding: 0.5rem 1.75rem !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    background: #f9fafb !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

body[data-theme="rain"] .member-qr-modal-close:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
}

body[data-theme="rain"] .dmc-qr--clickable {
    cursor: pointer !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.15s ease !important;
}

body[data-theme="rain"] .dmc-qr--clickable:hover,
body[data-theme="rain"] .dmc-qr--clickable:focus-visible {
    transform: scale(1.06) !important;
}

body[data-theme="rain"] .dmc-qr--clickable:active {
    transform: scale(0.96) !important;
}

/* ===== Rain Theme Header Alignment (Left-aligned Logo Header) ===== */
@media (max-width: 768px) {
    body[data-theme="rain"] .main-header .header-inner {
        position: relative !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    body[data-theme="rain"] .main-header .logo-section {
        position: static !important;
        left: auto !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: left !important;
    }

    body[data-theme="rain"] .main-header .logo-text {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        text-align: left !important;
    }

    body[data-theme="rain"] .main-header .logo-text h1 {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        text-align: left !important;
        margin: 0 !important;
    }

    body[data-theme="rain"] .main-header .opac-header-cart {
        position: relative !important;
        right: auto !important;
        margin-left: 12px !important;
        flex-shrink: 0 !important;
    }
}

/* Enforce visible spacing between the OPAC AI action buttons on Rain. */
body[data-theme="rain"] #tab-ide-usaha .ai-usaha-result-actions,
body[data-theme="rain"] #tab-ide-usaha .ai-usaha-result-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 18px !important;
    row-gap: 16px !important;
    gap: 16px 18px !important;
    width: min(100%, 660px) !important;
    margin: 32px auto 0 !important;
}

body[data-theme="rain"] #tab-ide-usaha .ai-usaha-result-actions .btn-ai,
body[data-theme="rain"] #tab-ide-usaha .ai-usaha-result-links .btn-ai {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 52px !important;
    margin: 0 !important;
}

body[data-theme="rain"] #tab-ide-usaha .ai-usaha-btn-back {
    margin-left: 0 !important;
}

body[data-theme="rain"] #tab-ide-usaha .ai-usaha-result-actions {
    margin-bottom: 18px !important;
}

body[data-theme="rain"] #tab-ide-usaha .ai-usaha-result-links {
    margin-top: 18px !important;
}

body[data-theme="rain"] #tab-mood-baca .ai-bottom-actions {
    gap: 16px !important;
}

@media (max-width: 575.98px) {
    body[data-theme="rain"] #tab-ide-usaha .ai-usaha-result-actions,
    body[data-theme="rain"] #tab-ide-usaha .ai-usaha-result-links {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
}

/* Mood Bacaan results: prevent the friend card and actions from overlapping on mobile. */
body[data-theme="rain"] #tab-mood-baca .mood-result-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr) !important;
    align-items: start !important;
    gap: 24px !important;
}
body[data-theme="rain"] #tab-mood-baca .mood-result-grid > * { min-width: 0 !important; }
body[data-theme="rain"] #tab-mood-baca .mood-result-side { display: flex !important; flex-direction: column !important; gap: 22px !important; }
body[data-theme="rain"] #tab-mood-baca .playlist-card { box-sizing: border-box !important; width: 100% !important; height: auto !important; min-height: 120px !important; }
body[data-theme="rain"] #tab-mood-baca .ai-friend-container {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px !important;
    border: 1px solid #d3e1ff !important;
    border-radius: 16px !important;
    background: #f4f7ff !important;
    box-shadow: none !important;
}
body[data-theme="rain"] #tab-mood-baca .ai-friend-title { display: flex !important; align-items: center !important; gap: 10px !important; margin: 0 0 10px !important; }
body[data-theme="rain"] #tab-mood-baca .ai-friend-desc { margin: 0 !important; color: #475569 !important; line-height: 1.6 !important; overflow-wrap: anywhere !important; }
body[data-theme="rain"] #tab-mood-baca .ai-empty-state { grid-column: 1 / -1 !important; margin: 0 !important; }

@media (max-width: 768px) {
    body[data-theme="rain"] #tab-mood-baca .mood-result-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
    body[data-theme="rain"] #tab-mood-baca .mood-result-side { gap: 18px !important; }
    body[data-theme="rain"] #tab-mood-baca .ai-bottom-actions {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: min(100%, 360px) !important;
        margin: 24px auto 0 !important;
        gap: 12px !important;
    }
    body[data-theme="rain"] #tab-mood-baca .ai-bottom-actions .btn-ai { position: static !important; transform: none !important; }
}
