/* Encounter Garden — original gallery art, paper, botanical lines and editorial type.
   Final shared layer for every public, member and administration page. */
body.community-gallery {
    --ca-bg: #f8f5ed;
    --ca-surface: #fffdf8;
    --ca-surface-soft: #eef0e5;
    --ca-sidebar: #e8ebdf;
    --ca-sidebar-deep: #d8dfcb;
    --ca-primary: #315443;
    --ca-primary-strong: #263f35;
    --ca-text: #263f35;
    --ca-text-muted: #59675c;
    --ca-border: #d9d8c9;
    --ca-info: #65583e;
    --ca-success: #315443;
    --ca-warning: #795f2e;
    --ca-danger: #923e37;
    --gallery-paper: #f8f5ed;
    --gallery-white: #fffdf8;
    --gallery-ink: #263f35;
    --gallery-muted: #59675c;
    --gallery-line: #d9d8c9;
    --gallery-green: #315443;
    --gallery-clay: #9a4f3d;
    --gallery-sage: #e8eddf;
    --gallery-art: url('/assets/images/community/art/encounter-garden-v1.webp');
    --community-text: var(--gallery-ink);
    --community-muted: var(--gallery-muted);
    --community-line: var(--gallery-line);
    --community-surface: var(--gallery-white);
    --community-surface-strong: var(--gallery-white);
    --community-cyan: var(--gallery-green);
    --community-lilac: var(--gallery-clay);
    --community-coral: var(--gallery-clay);
    --community-gold: #795f2e;
    --community-shadow: 0 8px 25px #263f3508;
    --friends-ink: var(--gallery-ink);
    --friends-muted: var(--gallery-muted);
    --friends-blue: var(--gallery-green);
    --friends-blue-dark: var(--gallery-green);
    --friends-pink: var(--gallery-clay);
    --friends-line: var(--gallery-line);
    --ir-text: var(--gallery-ink);
    --ir-navy: var(--gallery-ink);
    --ir-muted: var(--gallery-muted);
    --ir-blue: var(--gallery-green);
    --ir-blue-dark: var(--gallery-green);
    --ir-coral: var(--gallery-clay);
    --ir-line: var(--gallery-line);
    --cr-navy: var(--gallery-ink);
    --cr-muted: var(--gallery-muted);
    --cr-blue: var(--gallery-green);
    --cr-blue-dark: var(--gallery-green);
    --cr-border: var(--gallery-line);
    --cr-surface: var(--gallery-white);
    --dating-ink: var(--gallery-ink);
    --dating-muted: var(--gallery-muted);
    --dating-line: var(--gallery-line);
    color: var(--gallery-ink) !important;
    background: var(--gallery-paper) !important;
    font-family: 'Microsoft JhengHei', 'Noto Sans TC', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color-scheme: light;
}
body.community-gallery *, body.community-gallery *::before, body.community-gallery *::after { box-sizing: border-box; }
body.community-gallery :is(h1,h2,h3) { color: var(--gallery-ink) !important; text-shadow: none !important; }
body.community-gallery :is(h1,h2,h3) { -webkit-text-fill-color: var(--gallery-ink) !important; background-image: none !important; filter: none !important; }
body.community-gallery :is(h1,h2,h3) { -webkit-text-stroke: 0 !important; }
body.community-gallery :is(h1,h2) { font-family: 'Noto Serif TC','PMingLiU',serif; font-weight: 600; letter-spacing: .045em; line-height: 1.5; }
body.community-gallery h1 { font-size: clamp(28px,3vw,44px); }
body.community-gallery :is(h1,h2,h3) { white-space: normal !important; overflow-wrap: anywhere; }
body.community-gallery main :is(p,small,time,label,legend,dt,li) { color: var(--gallery-muted) !important; }
body.community-gallery main :is(span,strong,b) { color: inherit; }
body.community-gallery main :is(.community-service-meta,.community-admin-page-eyebrow,.community-admin-range-current,.community-admin-breadcrumb,.community-admin-pagination,.community-admin-pagination span,.community-admin-card small,.ir-prose,.ir-list-section > p,.ir-category,.ir-rank,.discussion-author,.discussion-meta,.discussion-topic-meta,.ux-char-count) { color: var(--gallery-muted) !important; }
body.community-gallery main .btn { background: var(--gallery-white) !important; color: var(--gallery-green) !important; border: 1px solid #9ba895; }
body.community-gallery main .btn-danger { background: #923e37 !important; color: #fffdf8 !important; border-color: #923e37; }
body.community-gallery main .btn-primary { background: var(--gallery-green) !important; color: #fffdf8 !important; }
body.community-gallery main .community-admin-range-apply { background: var(--gallery-green) !important; color: #fffdf8 !important; }
body.community-gallery main button { min-height: 44px; }
body.community-gallery main button > :is(span,strong) { color: inherit !important; }
body.community-site.community-gallery .discussion-sidebar nav a > span { color: #923e37 !important; }
body.community-site.community-gallery :is(.discussion-report summary,.discussion-report button,.ux-report-form summary,.ux-report-form button) { color: #923e37 !important; }
body.community-site.community-gallery .message-board-report summary { color: #923e37 !important; }
body.community-gallery a { text-underline-offset: 5px; }
body.community-gallery :is(button,input,select,textarea) { font-family: inherit; }
body.community-gallery :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {
    color: var(--gallery-ink) !important; background: var(--gallery-white) !important;
    border-color: #a7b1a1 !important; border-radius: 6px; font-size: 16px !important; min-height: 44px;
}
body.community-gallery ::placeholder { color: #637163 !important; opacity: 1; }
body.community-gallery :focus-visible { outline: 3px solid #9a4f3d !important; outline-offset: 4px; }
body.community-site.community-gallery .community-header { background: #fffdf8f5 !important; border-bottom: 1px solid var(--gallery-line); box-shadow: none; }
body.community-site.community-gallery .community-header__inner { max-width: 1320px; padding-block: 15px; }
body.community-site.community-gallery .community-nav__links > a { color: var(--gallery-ink) !important; font-size: 15px; text-shadow: none; }
body.community-site.community-gallery .community-nav__links > a.is-active { background: var(--gallery-sage) !important; }
body.community-site.community-gallery :is(.community-menu-toggle,.community-header__login,.community-nav__member-login) { color: var(--gallery-ink); }
body.community-site.community-gallery .community-main { padding-bottom: 40px; background: transparent !important; }
body.community-site.community-gallery :is(.friends-page,.cr-page,.ir-page,.friends-grid,.cr-layout,.cr-room-list,.cr-member-list,.cr-recommend-list) { background: transparent !important; }
body.community-site.community-gallery :is(.friends-person,.friends-empty,.friends-list,.friends-online-list,.friends-activity-list,.cr-empty-mini,.cr-compose-login,.cr-compose-login-gate,.cr-compose-wrap,.cr-room-card,.cr-pinned-message) { background: var(--gallery-white) !important; color: var(--gallery-ink) !important; border-color: var(--gallery-line) !important; box-shadow: none !important; }
body.community-site.community-gallery :is(.friends-person,.friends-empty,.cr-empty-mini,.cr-rules,.cr-compose-login) :is(p,span,small,a,strong,li) { color: var(--gallery-muted) !important; font-size: 14px !important; }
body.community-site.community-gallery :is(.friends-btn,.cr-button,.ir-button,.ir-card-action,.ir-follow) { min-height: 44px !important; }
body.community-site.community-gallery :is(.cr-reaction,.cr-filter-tabs button,.cr-chat-tabs button,.cr-panel__close) { color: var(--gallery-green) !important; background: var(--gallery-sage) !important; }
body.community-site.community-gallery .cr-composer { background: var(--gallery-white) !important; border-color: var(--gallery-line); }
body.community-site.community-gallery .cr-hero__copy { flex: 1 1 auto; }
body.community-site.community-gallery .cr-hero { display: block !important; }
body.community-site.community-gallery .cr-hero .cr-hero__copy { width: 100% !important; max-width: 650px; }
body.community-site.community-gallery .cr-hero .cr-hero__stats { display: flex; flex-wrap: wrap; gap: 14px; width: auto; }
body.community-site.community-gallery .cr-hero .cr-hero__stats span { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; }
body.community-site.community-gallery .friends-empty { min-height: 100px; padding: 18px; }
body.community-site.community-gallery :is(.friends-person h3,.ir-room-card h3) { font-size: 18px !important; }
body.community-site.community-gallery :is(.friends-panel h2,.cr-panel h2,.cr-chat-header h2) { font-size: 20px !important; }
body.community-site.community-gallery .friends-person__body small { font-size: 14px !important; }
body.community-site.community-gallery .friends-tag-grid span { font-size: 15px !important; }
body.community-site.community-gallery .friends-stats span { font-size: 14px !important; }
body.community-site.community-gallery .friends-stats strong { font-size: 26px !important; }
body.community-site.community-gallery .cr-hero__stats span { background: var(--gallery-sage) !important; border-radius: 5px; }
body.community-site.community-gallery .cr-hero__stats strong { color: var(--gallery-green) !important; }
body.community-site.community-gallery :is(.friends-btn--primary,.friends-login-notice > a,.friends-stats__manage,.cr-btn--primary) { background: var(--gallery-green) !important; color: #fffdf8 !important; border-color: var(--gallery-green) !important; }
body.community-site.community-gallery :is(.friends-cta,.cr-cta) { background: var(--gallery-sage) !important; color: var(--gallery-ink) !important; border: 1px solid var(--gallery-line) !important; box-shadow: none !important; }
body.community-site.community-gallery :is(.friends-cta,.cr-cta)::before,body.community-site.community-gallery :is(.friends-cta,.cr-cta)::after { display: none; }
body.community-site.community-gallery :is(.friends-cta,.cr-cta) img { display: none; }
body.community-site.community-gallery :is(.friends-cta,.cr-cta) :is(p,span) { color: var(--gallery-muted) !important; }
body.community-site.community-gallery :is(.friends-cta,.cr-cta) a { background: var(--gallery-green) !important; color: #fffdf8 !important; border: 0; }
body.community-site.community-gallery :is(.friends-panel__header,.ir-section-heading,.cr-panel__heading) img { filter: grayscale(1) sepia(.4); width: 28px; height: 28px; object-fit: contain; }
body.community-site.community-gallery :is(.discussion-shell,.dating-shell,.ux-shell,.message-board-page-shell,.community-page-shell,.ir-page,.ir-form-shell,.ir-detail-shell,.friends-shell,.cr-page,.cw-shell) { max-width: 1280px; }
body.community-site.community-gallery :is(.discussion-intro,.dating-intro,.ux-intro,.message-board-page-header,.community-page-header-v3,.ir-page-title,.cr-create-hero,.cr-members-hero,.friends-subhero) {
    padding: 28px 30px; margin-bottom: 24px; border: 1px solid var(--gallery-line); border-radius: 3px;
    background: linear-gradient(90deg,#f8f5ed 35%,#f8f5edbb 65%,#f8f5ed00),var(--gallery-art) right center / cover no-repeat !important;
    color: var(--gallery-ink) !important; box-shadow: none !important;
}
body.community-site.community-gallery :is(.discussion-intro,.dating-intro,.ux-intro) h1 { margin-block: 8px; }
body.community-site.community-gallery :is(.discussion-caption,.dating-eyebrow,.gallery-eyebrow,.friends-eyebrow,.ir-eyebrow,.cr-eyebrow,.message-board-eyebrow) { color: var(--gallery-muted) !important; font-size: 13px !important; letter-spacing: .1em; }
body.community-site.community-gallery .discussion-editorial { position: relative; padding: 28px 22px; background: var(--gallery-art) 65% bottom / auto 440px no-repeat,var(--gallery-white) !important; border: 1px solid var(--gallery-line); border-radius: 2px; }
body.community-site.community-gallery .discussion-editorial__art { visibility: hidden; height: 150px; }
body.community-site.community-gallery .discussion-editorial > a { background: #fffdf8e8; }
body.community-site.community-gallery :is(.dating-intro-art,.friends-hero__orbit,.ir-hero__mosaic,.cr-hero__orb,.cr-hero__mascot,.cr-hero__speech) { display: none; }
body.community-site.community-gallery :is(.ir-hero,.friends-hero,.cr-hero) {
    min-height: 0 !important; height: auto !important; padding: 38px 36px !important; margin: 24px auto 30px;
    width: calc(100% - 40px); max-width: 1280px; border-radius: 3px !important; border: 1px solid var(--gallery-line);
    background: linear-gradient(90deg,#f8f5ed 35%,#f8f5edbd 65%,#f8f5ed00),var(--gallery-art) right center / cover no-repeat !important;
    color: var(--gallery-ink) !important; box-shadow: none !important; overflow: hidden;
}
body.community-site.community-gallery :is(.ir-hero,.friends-hero,.cr-hero)::before,
body.community-site.community-gallery :is(.ir-hero,.friends-hero,.cr-hero)::after { display: none; }
body.community-site.community-gallery :is(.ir-hero__content,.friends-hero__copy,.cr-hero__copy) { position: relative; text-align: left; padding: 0; margin: 0; max-width: 650px; width: 100%; }
body.community-site.community-gallery .friends-hero__inner { min-height: 0; padding: 0; display: block; }
body.community-site.community-gallery :is(.ir-hero,.friends-hero,.friends-subhero,.cr-hero,.cr-create-hero,.cr-members-hero) :is(p,span) { color: var(--gallery-muted) !important; text-shadow: none !important; font-size: 15px; }
body.community-site.community-gallery :is(.ir-panel,.ir-side-panel,.ir-detail-card,.friends-panel,.friends-stats,.friends-login-notice,.friends-status,.cr-panel,.cr-chat-panel,.cr-room-card,.cr-members-directory,.cr-create-form,.community-panel,.community-form-panel,.community-auth-card,.community-service-card,.community-service-profile,.cw-library-card,.cw-library-empty,.dating-card,.dating-empty,.dating-welcome,.ux-form) {
    background: var(--gallery-white) !important; color: var(--gallery-ink) !important;
    border: 1px solid var(--gallery-line) !important; border-radius: 8px !important; box-shadow: 0 8px 25px #263f3508 !important;
}
body.community-site.community-gallery :is(.friends-panel__header,.cr-panel__heading,.cr-chat-header,.ir-section-heading,.ir-room-card__body,.ir-featured-card__body,.friends-stats > div,.cr-member-row,.cr-room-card,.cr-message__meta,.cr-message__bubble,.community-service-card,.community-service-profile,.cw-library-card__body) {
    color: var(--gallery-ink) !important; background-color: var(--gallery-white) !important; background-image: none !important; border-color: var(--gallery-line) !important;
}
body.community-site.community-gallery :is(.ir-room-card,.ir-featured-card) { border: 1px solid var(--gallery-line) !important; border-radius: 8px !important; background: var(--gallery-white) !important; box-shadow: none !important; }
body.community-site.community-gallery :is(.ir-room-card,.ir-featured-card,.friends-panel,.cr-panel) :is(p,small,time,span:not(.ir-room-card__badge)) { color: var(--gallery-muted); }
body.community-site.community-gallery :is(.friends-panel,.cr-panel,.ir-panel,.ir-side-panel,.cw-library-card) p { font-size: 16px !important; }
body.community-site.community-gallery :is(.friends-panel,.cr-panel,.ir-panel,.ir-side-panel) :is(small,time) { font-size: 14px !important; }
body.community-site.community-gallery :is(.friends-panel,.friends-stats,.cr-panel,.cr-message,.ir-panel,.ir-side-panel) a { color: var(--gallery-green) !important; }
body.community-site.community-gallery :is(.friends-card,.friends-request-card,.friends-online-card,.friends-activity-item,.friends-match-card) { background: var(--gallery-white) !important; border-color: var(--gallery-line) !important; color: var(--gallery-ink) !important; }
body.community-site.community-gallery :is(.friends-stats,.friends-panel,.friends-tag-grid) strong { color: var(--gallery-ink) !important; }
body.community-site.community-gallery :is(.ir-tag,.ir-pill,.friends-tag,.cr-filter-tabs a,.cr-room-count) { background: var(--gallery-sage) !important; color: var(--gallery-green) !important; border-color: var(--gallery-line) !important; font-size: 14px !important; }
body.community-site.community-gallery :is(.ir-pill,.ir-sort a,.cr-tabs a) { min-height: 44px; display: inline-flex; align-items: center; }
body.community-site.community-gallery :is(.ir-pill.is-active,.ir-sort .is-active,.cr-tabs .is-active) { background: var(--gallery-green) !important; color: var(--gallery-white) !important; }
body.community-site.community-gallery :is(.message-board-button,.community-button-primary,.ir-button--primary,.ir-button--coral,.ir-search button,.ir-card-action,.friends-hero__actions a:first-child,.friends-request-button,.cr-button--primary,.cr-compose-form button[type=submit],.dating-button,.ux-primary) {
    background: var(--gallery-green) !important; color: #fffdf8 !important; border-color: var(--gallery-green) !important; box-shadow: none !important; text-shadow: none !important; border-radius: 6px !important;
}
body.community-site.community-gallery :is(.ir-button,.friends-panel button,.cr-panel button,.cr-compose-form button,.community-button,.cw-button) { font-size: 15px !important; min-height: 44px; }
body.community-site.community-gallery .cr-message__bubble { font-size: 16px !important; line-height: 1.8; border-radius: 12px 12px 12px 3px; padding: 14px 18px; }
body.community-site.community-gallery .cr-message.is-own .cr-message__bubble { background: var(--gallery-sage) !important; }
body.community-site.community-gallery .cr-message__meta { font-size: 14px !important; background: transparent !important; }
body.community-site.community-gallery :is(.cr-compose,.cr-compose-form,.cr-chat-header,.cr-message-stream) { background: var(--gallery-white) !important; border-color: var(--gallery-line) !important; }
body.community-site.community-gallery :is(.community-service-level,.cr-level,.friends-level,.community-service-stats) { display: none; }
body.community-site.community-gallery .community-service-profile { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 36px; padding: 36px; }
body.community-site.community-gallery .community-service-profile__portrait { padding: 0; }
body.community-site.community-gallery .community-service-profile__portrait img { width: 160px; height: 160px; object-fit: cover; border-radius: 50% 50% 5px 5px; }
body.community-site.community-gallery .community-service-profile__content h1 { margin-top: 0; }
body.community-site.community-gallery .gallery-avatar-options { border: 1px solid var(--gallery-line); padding: 18px; border-radius: 8px; display: flex; gap: 20px; flex-wrap: wrap; }
body.community-site.community-gallery .gallery-avatar-options label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
body.community-site.community-gallery .gallery-avatar-options img { width: 70px; height: 70px; object-fit: contain; border-radius: 50%; }
body.community-site.community-gallery .gallery-avatar-options input { width: 20px; height: 20px; accent-color: var(--gallery-green); }
body.community-site.community-gallery .gallery-retired { margin-block: 40px; padding: 42px; border: 1px solid var(--gallery-line); background: linear-gradient(#fffdf8cc,#fffdf8ed),var(--gallery-art) center / cover; }
body.community-site.community-gallery .cw-subpage-hero { background: var(--gallery-sage) !important; color: var(--gallery-ink) !important; }
body.community-site.community-gallery .cw-subpage-hero :is(a,p,span) { color: var(--gallery-ink) !important; }
body.community-site.community-gallery .cw-library-card__body time { color: var(--gallery-muted); }
body.community-site.community-gallery .cw-library-card .cw-button--primary { background: var(--gallery-green) !important; color: #fffdf8 !important; border-color: var(--gallery-green); box-shadow: none; }
/* Account pages keep one quiet piece of art and readable real HTML labels. */
body.community-site.community-gallery .community-auth-shell:has(.community-narrow) { display: block; max-width: 820px; width: calc(100% - 32px); }
body.community-gallery.community-member-auth-page .community-auth-promo {
    color: var(--gallery-ink) !important; background: var(--gallery-art) 72% center / cover no-repeat !important;
    border: 1px solid var(--gallery-line); border-radius: 120px 120px 8px 8px; overflow: hidden;
}
body.community-gallery.community-member-auth-page :is(.community-auth-orbit-scene,.community-auth-motion-toggle) { display: none; }
body.community-gallery.community-member-auth-page .community-auth-promo-copy { padding: 28px; position: relative; background: #f8f5edd9; border-top: 1px solid var(--gallery-line); }
body.community-gallery.community-member-auth-page .community-auth-promo-copy :is(p,span) { color: var(--gallery-muted) !important; }
body.community-gallery.community-member-auth-page .community-auth-promo-copy h2 { color: var(--gallery-ink) !important; }
body.community-gallery.community-member-auth-page .community-auth-card { background: var(--gallery-white) !important; border: 1px solid var(--gallery-line) !important; border-radius: 8px; box-shadow: 0 8px 30px #263f3508 !important; }
body.community-gallery.community-member-auth-page .community-auth-submit { background: var(--gallery-green) !important; color: #fffdf8 !important; box-shadow: none; }
body.community-gallery.community-member-auth-page .member-auth-hero,
body.community-gallery.community-member-auth-page .member-login-hero,
body.community-gallery.community-member-auth-page .member-register-hero { background: var(--gallery-art) right center / cover no-repeat !important; }
body.community-gallery.community-member-auth-page :is(.member-auth-cta,.member-auth-card,.member-auth-panel,.member-login-card,.member-register-card) { background: var(--gallery-white) !important; color: var(--gallery-ink) !important; border-color: var(--gallery-line); box-shadow: none; }
body.community-gallery.community-member-auth-page .member-auth-cta { margin-top: 25px; border-top: 1px solid var(--gallery-line); }
body.community-gallery.community-member-auth-page .member-auth-cta__copy > img { display: none; }
body.community-gallery.community-member-auth-page .member-auth-cta__inner { padding-block: 25px; }
body.community-gallery.community-member-auth-page :is(.member-auth-cta__button,.member-auth-submit) { background: var(--gallery-green) !important; color: #fffdf8 !important; }
/* Compact, consistent footer: safety stays available without burying mobile content. */
body.community-site.community-gallery .community-footer-v5 { margin-top: 25px; background: #eeeede !important; color: var(--gallery-ink) !important; border-top: 1px solid var(--gallery-line); padding: 28px 24px 20px !important; }
body.community-site.community-gallery .community-footer-v5__inner { max-width: 1280px; margin: auto; display: flex; gap: 30px; align-items: center; justify-content: space-between; padding: 0; }
body.community-site.community-gallery .community-footer-v5__brand { max-width: 420px; }
body.community-site.community-gallery .community-footer-v5__brand img { width: 180px; height: auto; }
body.community-site.community-gallery .community-footer-v5__brand p { font-size: 14px; color: var(--gallery-muted) !important; margin: 8px 0 0; }
body.community-site.community-gallery .gallery-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; }
body.community-site.community-gallery .gallery-footer-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--gallery-ink) !important; font-size: 14px; }
body.community-site.community-gallery .gallery-footer-safety { max-width: 1280px; margin: 16px auto 0; border-top: 1px solid #d0d4c3; font-size: 14px; padding-top: 8px; }
body.community-site.community-gallery .gallery-footer-safety summary { min-height: 44px; cursor: pointer; display: list-item; padding-top: 9px; }
body.community-site.community-gallery .gallery-footer-safety p { max-width: 900px; color: var(--gallery-muted); }
body.community-site.community-gallery .gallery-footer-safety a { color: var(--gallery-green); }
body.community-site.community-gallery .community-footer-v5__copyright { margin: 12px 0 0; color: var(--gallery-muted) !important; font-size: 12px; }
body.community-site.community-gallery .ux-bottom-nav { background: #fffdf8f5; border-color: var(--gallery-line); }
/* The administration is a calm curator's desk; dense records retain horizontal table scrolling. */
body.community-gallery.community-admin-shell { --admin-bg:var(--gallery-paper); --admin-ink:var(--gallery-ink); --admin-muted:var(--gallery-muted); font-size: 16px; }
body.community-gallery.community-admin-shell :is(.community-admin-main,.community-admin-content) { background: var(--gallery-paper); }
body.community-gallery.community-admin-shell :is(.community-admin-main,.community-admin-content,.admin-community,.admin-community-panel,.admin-community-grid > *) { min-width: 0; max-width: 100%; }
body.community-gallery.community-admin-shell :is(.admin-community-table-wrap,.community-admin-table-wrap,.dating-admin-table) { min-width: 0; max-width: 100%; overflow-x: auto; }
body.community-gallery.community-admin-shell .community-admin-sidebar { background: #e8ebdf !important; border-right: 1px solid var(--gallery-line); color: var(--gallery-ink) !important; }
body.community-gallery.community-admin-shell .community-admin-sidebar :is(a,button,span,strong,small) { color: var(--gallery-ink) !important; text-shadow: none; }
body.community-gallery.community-admin-shell .community-admin-sidebar a.is-active { background: #d8dfcb !important; border-left-color: #315443 !important; }
body.community-gallery.community-admin-shell .community-admin-topbar { background: #fffdf8f5 !important; border-bottom: 1px solid var(--gallery-line); box-shadow: none; }
body.community-gallery.community-admin-shell :is(.community-admin-card,.community-admin-panel,.admin-community-panel,.admin-community-card,.dating-admin-counts section) { background: var(--gallery-white) !important; border-color: var(--gallery-line) !important; border-radius: 8px; box-shadow: none; }
body.community-gallery.community-admin-shell :is(.community-admin-page-heading,.community-admin-heading,.admin-community-heading,.dating-admin > header) { padding: 24px; border-left: 3px solid #a98b4a; background: linear-gradient(90deg,#f8f5ed 40%,#f8f5edbb),var(--gallery-art) right center / cover; }
body.community-gallery.community-admin-shell .community-admin-dashboard-hero { background: linear-gradient(90deg,#f8f5ed 40%,#f8f5edbb),var(--gallery-art) right center / cover !important; color: var(--gallery-ink) !important; border: 1px solid var(--gallery-line); }
body.community-gallery.community-admin-shell .community-admin-dashboard-hero :is(p,span) { color: var(--gallery-muted) !important; }
body.community-gallery.community-admin-shell .community-admin-dashboard-hero::before { display: none; }
body.community-gallery.community-admin-shell .community-admin-sidebar__art { background: var(--gallery-art) right bottom / cover; opacity: .65; }
body.community-gallery.community-admin-shell .community-admin-sidebar img:not(.community-admin-brand img) { filter: brightness(.25) sepia(.6); }
body.community-gallery.community-admin-shell .admin-community-grid--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.community-gallery.community-admin-shell .admin-community { grid-template-columns: minmax(0,1fr); }
body.community-gallery.community-admin-shell :is(.btn-primary,.community-admin-button--primary) { background: var(--gallery-green) !important; color: #fffdf8 !important; border-color: var(--gallery-green) !important; }
body.community-gallery.community-admin-shell :is(th,td) { border-color: var(--gallery-line); }
body.community-gallery.community-admin-shell th { background: var(--gallery-sage); color: var(--gallery-ink); }
body.community-gallery.community-admin-shell :is(button,.btn) { min-height: 44px; }
body.community-gallery.community-admin-login-page { background: var(--gallery-art) right center / cover fixed !important; min-height: 100vh; }
body.community-gallery.community-admin-login-page .community-admin-login { max-width: 620px; margin: auto; padding: 38px 20px; }
body.community-gallery.community-admin-login-page .community-admin-login__card { display: block; width: 100%; min-height: 0; padding: 34px; background: #fffdf8f5 !important; border: 1px solid var(--gallery-line); border-radius: 8px; filter: none; box-shadow: 0 15px 45px #263f3515; }
body.community-gallery.community-admin-login-page .community-admin-login__brand { position: static; margin: 0 auto 24px; width: 220px; }
body.community-gallery.community-admin-login-page .community-admin-login__brand { transform: none !important; inset: auto; }
body.community-gallery.community-admin-login-page .community-admin-login__brand img { width: 100%; max-width: 100%; height: auto; }
body.community-gallery.community-admin-login-page .community-admin-login__form-wrap > p,body.community-gallery.community-admin-login-page .community-admin-login__form label { color: var(--gallery-muted); }
body.community-gallery.community-admin-login-page :is(.community-admin-login__mascots,.community-admin-login__guide) { display: none; }
body.community-gallery.community-admin-login-page .community-admin-login__form-wrap { width: auto; max-width: none; margin: 0; padding: 0; }
body.community-gallery.community-admin-login-page .community-admin-login__title { width: auto; height: auto; margin: 0 0 12px; font-size: 30px; }
body.community-gallery.community-admin-login-page .community-admin-login__submit { background: var(--gallery-green); color: #fffdf8; border-radius: 6px; min-height: 48px; }
body.community-gallery.community-admin-login-page :is(.community-admin-login__submit,.community-admin-login__back) { background-image: none !important; display: flex; align-items: center; justify-content: center; }
body.community-gallery.community-admin-login-page :is(.community-admin-login__submit,.community-admin-login__back) span { position: static; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; color: inherit; font-size: 16px; }
body.community-gallery.community-admin-login-page .community-admin-login__back { color: var(--gallery-green); border: 1px solid var(--gallery-line); border-radius: 6px; }
body.community-gallery.community-admin-login-page .community-admin-login__security { background: var(--gallery-sage); color: var(--gallery-muted); font-size: 14px; }
body.community-gallery.community-admin-login-page .community-admin-login__captcha-row button { width: 44px; height: 44px; background: var(--gallery-sage); }
/* Feature-specific final accents, including old component selectors. */
body.community-site.community-gallery .friends-page::before,body.community-site.community-gallery .friends-page::after { display: none; }
body.community-site.community-gallery :is(.friends-stats,.friends-tag-grid,.friends-panel__header,.ir-section-heading,.cr-panel__heading) img,
body.community-site.community-gallery .friends-interest__mascot { display: none; }
body.community-site.community-gallery .friends-panel .friends-btn--primary,body.community-site.community-gallery .friends-stats .friends-stats__manage { color: #fffdf8 !important; }
body.community-site.community-gallery .friends-interest__footer .friends-btn { background: var(--gallery-green) !important; color: #fffdf8 !important; border-color: var(--gallery-green) !important; }
body.community-site.community-gallery .friends-hero__copy .friends-eyebrow { background: var(--gallery-sage); }
body.community-site.community-gallery .cr-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px; border-radius: 8px; }
body.community-site.community-gallery .cr-cta > div { flex: 1; min-width: 0; }
body.community-site.community-gallery .cr-cta .cr-cta__button { flex: 0 0 auto; padding: 12px 20px; width: auto; box-shadow: none; }
body.community-site.community-gallery .cr-cta nav { display: flex; flex-wrap: wrap; gap: 12px; }
body.community-site.community-gallery .cr-cta nav a { color: var(--gallery-green) !important; background: transparent !important; }
body.community-site.community-gallery :is(.cr-room-filters a,.cr-chat-tabs a) { color: var(--gallery-green); background: var(--gallery-sage); border-color: var(--gallery-line); min-height: 44px; }
body.community-site.community-gallery :is(.cr-room-filters a.is-active,.cr-chat-tabs a.is-active,.cr-button--accent,.cr-button--violet) { color: #fffdf8 !important; background: var(--gallery-green) !important; }
body.community-site.community-gallery :is(.cr-button--accent,.cr-button--violet) span { color: inherit !important; }
body.community-site.community-gallery .cr-button span { color: inherit !important; }
body.community-site.community-gallery .cr-chat-header .cr-button--soft { background: var(--gallery-sage) !important; color: var(--gallery-green) !important; }
body.community-site.community-gallery .cr-create-form legend > span { background: var(--gallery-sage); color: var(--gallery-green) !important; }
body.community-site.community-gallery .friends-hero h1 > span { color: var(--gallery-clay) !important; opacity: 1; }
body.community-site.community-gallery .friends-hero h1 > span { background: transparent !important; -webkit-text-fill-color: var(--gallery-clay) !important; filter: none; }
body.community-site.community-gallery .cr-chat-header .cr-icon-button { color: var(--gallery-green) !important; background: var(--gallery-sage) !important; border-color: var(--gallery-line); }
body.community-site.community-gallery .cr-chat-header .cr-icon-button span { color: var(--gallery-green) !important; }
body.community-site.community-gallery .ir-featured-card__image > span { background: var(--gallery-clay) !important; color: #fffdf8 !important; }
body.community-site.community-gallery .cr-cta .cr-cta__button span { color: #fffdf8 !important; }
body.community-site.community-gallery .topic-form-hero { background: linear-gradient(90deg,#f8f5edef,#f8f5edda),var(--gallery-art) right center / cover !important; border-color: var(--gallery-line) !important; }
body.community-site.community-gallery :is(.ir-button--primary,.ir-button--coral) span { color: #fffdf8 !important; }
body.community-site.community-gallery :is(.ir-featured-card__badge,.ir-room-card__badge) { background: var(--gallery-clay) !important; color: #fffdf8 !important; }
@media (max-width: 780px) {
    body.community-gallery { font-size: 16px; }
    body.community-site.community-gallery :is(.discussion-intro,.dating-intro,.ux-intro,.message-board-page-header,.community-page-header-v3,.ir-page-title,.cr-create-hero,.cr-members-hero,.friends-subhero) { padding: 22px 20px; background: linear-gradient(90deg,#f8f5eded,#f8f5edcc),var(--gallery-art) right center / cover no-repeat !important; }
    body.community-site.community-gallery :is(.ir-hero,.friends-hero,.cr-hero) { padding: 26px 22px !important; width: calc(100% - 28px); background: linear-gradient(90deg,#f8f5edef,#f8f5edbb),var(--gallery-art) right center / cover no-repeat !important; }
    body.community-site.community-gallery :is(.ir-hero,.friends-hero,.cr-hero) h1 { font-size: 30px !important; }
    body.community-site.community-gallery .friends-hero__inner { width: 100%; }
    body.community-site.community-gallery .ir-hero__content > span { font-size: 14px !important; }
    body.community-site.community-gallery .community-service-profile { grid-template-columns: 90px minmax(0,1fr); gap: 18px; padding: 22px 18px; align-items: start; }
    body.community-site.community-gallery .community-service-profile__portrait img { width: 90px; height: 90px; }
    body.community-site.community-gallery .community-service-profile__content h1 { font-size: 27px; }
    body.community-site.community-gallery .community-service-profile__portrait > span { font-size: 12px; }
    body.community-site.community-gallery .gallery-retired { margin: 24px 14px; padding: 26px 22px; }
    body.community-site.community-gallery .community-footer-v5__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    body.community-site.community-gallery .gallery-footer-nav { justify-content: flex-start; gap: 0 18px; }
    body.community-gallery.community-admin-login-page .community-admin-login__card { padding: 25px 20px; }
    body.community-gallery.community-admin-shell .admin-community-grid--two { grid-template-columns: minmax(0,1fr); }
    body.community-site.community-gallery .cr-cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    body.community-gallery *,body.community-gallery *::before,body.community-gallery *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
