/* 小菱相遇館 v4. Content, picture and controls are independent layout regions. */
body.community-gallery { --art-picture-height:260px; --gallery-action:#315443; --gallery-on-action:#fffdf8; --gallery-link:#285b4c; --gallery-danger:#923e37; --gallery-focus:#754659; --gallery-secondary:#59675c; }
body.community-gallery .community-art-host[data-art-format] { display:grid!important; grid-template-columns:minmax(0,1.06fr) minmax(230px,.94fr); align-items:center; gap:26px; min-height:0!important; padding:26px!important; overflow:visible!important; background:var(--gallery-white)!important; color:var(--gallery-ink)!important; }
body.community-gallery .community-art-host::before,body.community-gallery .community-art-host::after { display:none!important; }
body.community-gallery .community-art-heading .friends-shell { min-width:0; width:100%; min-height:0; padding:0; }
body.community-gallery .community-art-heading .friends-shell nav { flex-wrap:wrap; }
body.community-gallery .community-art-heading .friends-eyebrow { background:none; padding:0; }
body.community-gallery .community-art-host > :is(h1,h2,p,div):not(.community-page-art) { max-width:none!important; width:auto!important; }
body.community-gallery .community-art-heading { min-width:0; align-self:center; width:auto!important; max-width:none!important; }
body.community-gallery .community-art-heading > div { width:auto; max-width:none; }
body.community-gallery .community-art-heading :is(h1,h2) { max-width:none; overflow-wrap:anywhere; font-size:clamp(28px,3vw,40px)!important; line-height:1.4!important; letter-spacing:.025em!important; margin:8px 0 14px; text-wrap:balance; }
body.community-gallery .community-art-heading p { font-size:16px!important; line-height:1.8!important; max-width:38em; margin:8px 0; }
body.community-gallery .community-art-heading :is(.discussion-caption,.dating-eyebrow,.message-board-eyebrow,.ir-eyebrow,.cr-eyebrow,.friends-eyebrow,.community-admin-page-eyebrow) { font-size:14px!important; line-height:1.7!important; letter-spacing:.08em; }
body.community-gallery .community-service-mark { display:none; }
body.community-gallery .community-art-host > .community-page-art { position:relative!important; inset:auto!important; z-index:auto; display:grid; grid-template-columns:1fr; grid-template-areas:"picture" "controls"; gap:12px; height:auto!important; min-height:0; width:100%!important; max-width:none; margin:0!important; overflow:visible; border:0; background:transparent; }
body.community-gallery .community-page-art { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); grid-template-areas:"caption picture" "controls controls"; gap:18px 24px; height:auto!important; min-height:0; padding:22px; overflow:visible; border-radius:3px; }
body.community-gallery .community-page-art__picture,
body.community-gallery .community-art-host > .community-page-art > .community-page-art__picture { grid-area:picture; position:relative!important; inset:auto!important; width:100%!important; height:var(--art-picture-height); min-width:0; overflow:hidden; border:0!important; background:var(--gallery-sage); border-radius:2px; pointer-events:none; }
body.community-gallery .community-page-art__picture::after { display:none!important; }
body.community-gallery .community-page-art__caption { grid-area:caption; width:auto!important; height:auto; min-width:0; padding:12px 0!important; align-self:center; justify-content:center; }
body.community-gallery .community-page-art__chapter { font-size:14px!important; line-height:1.7; letter-spacing:.08em; }
body.community-gallery .community-page-art__title { font-size:clamp(25px,2.8vw,34px)!important; line-height:1.45; overflow-wrap:anywhere; }
body.community-gallery .community-page-art__copy { display:block; font-size:15px!important; line-height:1.8; }
body.community-gallery .community-art-host .community-page-art__caption { display:none; }
body.community-gallery .community-page-art .art-material { inset:0!important; opacity:.13!important; }
body.community-gallery .community-page-art .page-art-svg { width:100%; height:100%; overflow:hidden; }
body.community-gallery .art-controls { grid-area:controls; position:relative!important; inset:auto!important; z-index:auto; display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:7px; max-width:none; min-width:0; padding:0; margin:0; }
body.community-gallery:not(.art-ready) .art-controls { display:none!important; }
body.community-gallery .community-page-art__toggle,
body.community-gallery .community-page-art__toggle span { font-size:15px!important; line-height:1.4!important; }
body.community-gallery .community-page-art__toggle { min-width:0!important; min-height:44px; padding:9px 10px; white-space:normal; border-color:var(--gallery-line)!important; }
body.community-gallery select[data-art-mode] { width:auto!important; min-width:78px; min-height:44px; height:auto; padding:9px 7px; font-size:15px!important; line-height:1.4; }
body.community-gallery .art-mode-label { margin:0; }
body.community-gallery .art-controls .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }
body.community-gallery :is(.community-page-art__toggle,select[data-art-mode]):focus-visible { outline:3px solid var(--gallery-focus); outline-offset:3px; }
/* Formats express different tasks, while navigation and controls stay familiar. */
body.community-gallery .community-art-host[data-art-format="folio"] { border-top:3px double var(--gallery-line); border-bottom:1px solid var(--gallery-line); }
body.community-gallery .community-art-host[data-art-format="gallery"] { grid-template-columns:minmax(0,.9fr) minmax(230px,1.1fr); border-left:3px solid var(--gallery-clay); }
body.community-gallery .community-art-host[data-art-format="atlas"] { border-block:3px double var(--gallery-line); }
body.community-gallery .community-art-host[data-art-format="diptych"] { border-radius:3px 24px 3px 3px!important; gap:32px; }
body.community-gallery .community-art-host[data-art-format="poster"] { border-bottom:4px solid var(--gallery-clay); }
body.community-gallery .community-art-host[data-art-format="correspondence"] { border-top:2px solid var(--gallery-clay); --art-picture-height:210px; }
body.community-gallery .community-art-host:is([data-art-format="studio"],[data-art-format="ledger"],[data-art-format="quiet"]) { --art-picture-height:165px; }
body.community-admin-shell .community-art-host { grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr); --art-picture-height:145px; }
body.community-admin-shell .community-art-heading h1 { font-size:30px!important; }
body.community-admin-shell .community-art-heading p { font-size:15px!important; }
body.community-gallery .community-art-heading :is(.ir-hero__actions,.friends-hero__actions,.friends-subnav,.cr-hero__stats,.community-admin-page-header-meta) { display:flex; flex-wrap:wrap; gap:8px 12px; max-width:none; }
body.community-gallery .community-art-heading :is(a,button) { min-height:44px; align-content:center; }
body.community-gallery .community-auth-welcome .community-art-heading .community-auth-avatar { display:none; }
body.community-gallery .community-auth-welcome .community-art-heading p { font-size:15px!important; }
body.community-gallery .community-art-heading :is(.cr-hero__stats strong,.friends-stats strong) { font-size:18px!important; line-height:1.5; }
/* Practical typography: essential labels do not use small decorative type. */
body.community-gallery :is(.discussion-row__meta,.discussion-meta,.dating-photo-caption,.ux-state,.community-admin-range-current,.community-admin-breadcrumb,.ir-category,.cr-message__time) { font-size:14px!important; line-height:1.7; }
body.community-gallery :is(.ir-pagination,.discussion-pagination,.community-admin-pagination,.ux-bottom-nav,.dating-nav,.commerce-nav) :is(a,button) { font-size:15px!important; }
body.community-gallery :is(.topic-content,.discussion-article-body,.community-service-prose,.dating-answer) { font-size:18px!important; line-height:1.85; }
body.community-gallery .community-art-heading :is(span,time,small) { line-height:1.7; }
body.community-gallery .discussion-aside::after { position:relative; display:block; inset:auto; height:190px; margin-top:18px; }
body.community-gallery .discussion-aside > * { position:relative; z-index:1; }
body.community-gallery .community-back-top { color:var(--gallery-on-action)!important; background:var(--gallery-action)!important; border-color:var(--gallery-line); }
body.community-gallery :is(.ir-pagination,.discussion-pagination,.community-admin-pagination) :is(a,button):is(.is-current,[aria-current="page"]) { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery :is(.ux-bottom-nav,.community-nav__links,.dating-nav,.discussion-sort) :is(a,button):is(.is-active,.is-current,[aria-current="page"]) { background:var(--gallery-sage)!important; color:var(--gallery-ink)!important; box-shadow:inset 0 -2px var(--gallery-green); }
body.community-gallery .ux-bottom-nav :is(a,span,strong) { color:var(--gallery-ink)!important; }
body.community-gallery .ux-bottom-nav { padding-bottom:max(7px,env(safe-area-inset-bottom)); }
/* Labels inherit their surrounding type size with a readable lower bound. */
body.community-gallery :is(header,main,footer) :is(p,label,legend,small,time,a,button,summary,td,th,span) { font-size:max(14px,1em)!important; }
body.community-gallery .community-art-heading :is(h1,h2) span { font-size:inherit!important; }
body.community-gallery :is(header,main,footer) :is(strong,b,.dating-eyebrow) { font-size:max(14px,1em)!important; }
body.community-gallery .community-art-heading .community-admin-dashboard-hero__meta { font-size:14px; }
body.community-gallery main .dating-person .dating-eyebrow { font-size:14px!important; }
/* Each night series has its own light and pigments. Text surfaces remain calm. */
body.community-gallery[data-art-scheme="night"][data-art-theme] { --gallery-paper:#14291f; --gallery-white:#20372b; --gallery-sage:#2b4636; --gallery-ink:#f2eee4; --gallery-muted:#bdc9bc; --gallery-secondary:#bdc9bc; --gallery-line:#76927d; --gallery-green:#b8d1bc; --gallery-action:#b8d1bc; --gallery-on-action:#14291f; --gallery-link:#d4dfbf; --gallery-danger:#ffdada; --gallery-focus:#f0c3d1; --gallery-clay:#daa38d; --ca-bg:var(--gallery-paper); --ca-surface:var(--gallery-white); --ca-surface-soft:var(--gallery-sage); --ca-text:var(--gallery-ink); --ca-text-muted:var(--gallery-muted); --ca-border:var(--gallery-line); --ca-primary:var(--gallery-action); --ca-primary-strong:var(--gallery-action); --ca-danger:var(--gallery-danger); color-scheme:dark; }
body.community-gallery[data-art-scheme="night"][data-art-theme]:is([data-art-theme="technology"],[data-art-theme="buying"]) { --gallery-paper:#172430; --gallery-white:#233747; --gallery-sage:#304b60; --gallery-ink:#f2f0e8; --gallery-muted:#b7c7d6; --gallery-line:#849dac; --gallery-green:#95bcd7; --gallery-action:#95bcd7; --gallery-on-action:#172430; --gallery-link:#c3dcf2; --gallery-clay:#d5bba1; }
body.community-gallery[data-art-scheme="night"][data-art-theme][data-art-theme="people"] { --gallery-paper:#281f28; --gallery-white:#3a2a37; --gallery-sage:#503b49; --gallery-ink:#f5edeb; --gallery-muted:#d1b9c4; --gallery-line:#aa899a; --gallery-green:#d7a1b5; --gallery-action:#d7a1b5; --gallery-on-action:#281f28; --gallery-link:#f0c3d1; --gallery-clay:#d7a88d; }
body.community-gallery[data-art-scheme="night"][data-art-theme]:is([data-art-theme="reading"],[data-art-theme="resale"],[data-art-theme="rooms"],[data-art-theme="information"],[data-art-theme="archive"]) { --gallery-paper:#29241e; --gallery-white:#3b3228; --gallery-sage:#514334; --gallery-ink:#f4eee3; --gallery-muted:#c9bdae; --gallery-line:#ac9578; --gallery-green:#d4b38b; --gallery-action:#d4b38b; --gallery-on-action:#29241e; --gallery-link:#f2d5af; --gallery-clay:#d4a18c; }
body.community-gallery[data-art-scheme="night"][data-art-theme][data-art-theme="gaming"] { --gallery-paper:#242133; --gallery-white:#343047; --gallery-sage:#454058; --gallery-ink:#f3eef6; --gallery-muted:#c9c0dc; --gallery-line:#998da8; --gallery-green:#c9b5dc; --gallery-action:#c9b5dc; --gallery-on-action:#242133; --gallery-link:#e5d5ee; }
body.community-gallery[data-art-scheme="night"][data-art-theme][data-art-theme="chat"] { --gallery-paper:#182d2e; --gallery-white:#203d40; --gallery-sage:#2b5254; --gallery-ink:#f1f2e9; --gallery-muted:#bfceca; --gallery-line:#7faaa4; --gallery-green:#afcfca; --gallery-action:#afcfca; --gallery-on-action:#182d2e; --gallery-link:#d0e6d7; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .community-page-art__picture { background:var(--gallery-sage)!important; --paint-ink:var(--gallery-ink); --paint-accent:var(--gallery-action); --paint-soft:var(--gallery-sage); --paint-paper:var(--gallery-white); --paint-clay:var(--gallery-clay); --paint-gold:#cfb37a; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .page-art-svg { filter:none!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.community-header,.community-nav,.community-nav__links,.community-admin-header,.community-admin-topbar,.community-admin-sidebar,.message-board-header,.community-footer-v5,.gallery-footer,.ux-bottom-nav,.commerce-intro,.commerce-nav,.topic-reading-card,.discussion-guide-note) { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .commerce-nav a { background:var(--gallery-sage)!important; color:var(--gallery-link)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .commerce-nav a.is-active { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.community-admin-work-card__state,.community-admin-ranking-index) { background:var(--gallery-sage)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.community-admin-logout,.community-admin-user button,.community-admin-login__submit) { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(header,footer,.community-admin-sidebar,.ux-bottom-nav) :is(a,button,span,strong,summary) { color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.community-menu-toggle,.community-header__login,.community-header__logout,.community-nav__member-login,.community-nav__logout,.community-auth-tab,.community-admin-menu-toggle) { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .community-menu-toggle span { color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(p,small,time,label,legend,dt,li,.text-muted,.discussion-row__meta,.discussion-row__meta span) { color:var(--gallery-muted)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(h1,h2,h3,h4,strong,b,th,td,summary) { color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(a,.discussion-author) { color:var(--gallery-link)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.discussion-aside,.friends-empty,.friends-person,.friends-panel,.friends-list,.friends-online-list,.friends-activity-list,.cr-room-card,.cr-message,.cr-panel,.cr-empty-mini,.cr-compose-wrap,.cr-compose-login,.cr-compose-login-gate,.cr-composer,.cr-rules,.ir-panel,.ir-side-panel,.ir-room-card,.ir-featured-card,.community-service-card,.community-service-form,.community-service-prose,.community-admin-card,.community-admin-notice,.community-admin-alert,.community-admin-degraded,.community-admin-content,.community-admin-table,.art-admin-work,.dating-person,.dating-person__body,.dating-empty,.dating-welcome,.dating-filter,.dating-person-detail,.dating-chat-panel,.dating-chat-messages,.dating-message,.topic-detail-card,.topic-reading-card,.topic-form-card,.topic-market-rules,.message-board-post,.message-board-form,.community-auth-card,.community-auth-panel) { background-color:var(--gallery-white)!important; background-image:none!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.community-auth-tabs,.auth-input-wrap,.auth-input,.form-control,input,textarea,select) { background-color:var(--gallery-white)!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.community-page-art__toggle,.art-exhibition button,.art-exhibition select) { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] ::placeholder { color:var(--gallery-muted)!important; opacity:1; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.btn-primary,.community-auth-submit,.dating-button,.discussion-primary,.ux-primary,.cr-btn--primary,.friends-btn--primary,.message-board-button,.topic-button--primary,.topic-product-card__cta,.community-admin-range-apply,.ir-btn-primary) { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; border-color:var(--gallery-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.btn-primary,.community-auth-submit,.dating-button,.discussion-primary,.ux-primary,.cr-btn--primary,.friends-btn--primary,.message-board-button,.topic-button--primary,.topic-product-card__cta) :is(span,strong) { color:inherit!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.text-danger,.field-validation-error,.validation-summary-errors,.art-admin-error,.community-admin-error) { color:#ffdada!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .btn-danger { background:#74382f!important; color:#fff4ed!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.ux-bottom-nav,.community-nav__links,.dating-nav,.discussion-sort) :is(a,button):is(.is-active,.is-current,[aria-current="page"]) { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.ir-pagination,.discussion-pagination,.community-admin-pagination) :is(a,button):is(.is-current,[aria-current="page"]) { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .community-back-top { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
/* Motion belongs to the painted subjects. Each gesture has a different timeline. */
body.art-ready .page-art-svg .paint-motion { transform-box:fill-box; transform-origin:center; animation-play-state:var(--scene-art-play,running)!important; }
body.art-ready .paint-unfurl { animation:paint-unfurl calc(9s * var(--art-pace,1)) ease-in-out infinite; transform-origin:bottom center; }
body.art-ready .paint-bloom { animation:paint-bloom calc(11s * var(--art-pace,1)) ease-in-out infinite; }
body.art-ready .paint-refraction { animation:paint-refraction calc(8s * var(--art-pace,1)) ease-in-out infinite; }
body.art-ready .paint-fold { animation:paint-fold calc(12s * var(--art-pace,1)) ease-in-out infinite; }
body.art-ready .paint-ink { animation:paint-ink calc(14s * var(--art-pace,1)) ease-in-out infinite; }
body.art-ready .paint-loom { animation:paint-loom calc(10s * var(--art-pace,1)) ease-in-out infinite; }
body.art-ready .paint-stamp { animation:paint-stamp calc(13s * var(--art-pace,1)) ease-in-out infinite; }
body.art-ready .paint-orbit { animation:paint-orbit calc(16s * var(--art-pace,1)) ease-in-out infinite; }
body.art-ready .paint-window { animation:paint-window calc(10s * var(--art-pace,1)) ease-in-out infinite; }
body.art-ready .community-page-art[data-art-behavior="intro"] .paint-motion { animation-duration:calc(3.4s * var(--art-pace,1)); animation-iteration-count:1; animation-fill-mode:both; }
body.art-ready .community-page-art[data-art-behavior="intro"] .page-art-svg { animation:art-intro-finish calc(3.4s * var(--art-pace,1)) linear both; animation-play-state:var(--scene-art-play,running)!important; }
body.art-ready .community-page-art[data-art-behavior="calm"] .paint-motion { animation-duration:calc(19s * var(--art-pace,1)); }
body.art-ready .community-page-art:is([data-art-motion="still"],[data-art-display="still"]) :is(.page-art-svg,.paint-motion),body:not(.art-ready) :is(.page-art-svg,.paint-motion) { animation:none!important; }
body.art-ready .art-exhibition-canvas .page-art-svg .paint-motion { animation-play-state:var(--exhibition-play,paused)!important; }
@keyframes paint-unfurl { 0%,100%{rotate:calc(-3deg * var(--art-intensity,1));scale:1;}45%{rotate:calc(4deg * var(--art-intensity,1));scale:calc(1 + .045 * var(--art-intensity,1));} }
@keyframes paint-bloom { 0%,100%{rotate:calc(-2deg * var(--art-intensity,1));scale:1;}50%{rotate:calc(3deg * var(--art-intensity,1));scale:calc(1 + .09 * var(--art-intensity,1));} }
@keyframes paint-refraction { 0%,100%{translate:calc(-18px * var(--art-intensity,1)) 0;opacity:.5;}50%{translate:calc(20px * var(--art-intensity,1)) calc(-9px * var(--art-intensity,1));opacity:.95;} }
@keyframes paint-fold { 0%,100%{rotate:0deg;translate:0 0;}45%{rotate:calc(-3deg * var(--art-intensity,1));translate:0 calc(-10px * var(--art-intensity,1));} }
@keyframes paint-ink { 0%,100%{translate:calc(-17px * var(--art-intensity,1)) 0;scale:1;}50%{translate:calc(18px * var(--art-intensity,1)) calc(6px * var(--art-intensity,1));scale:calc(1 + .035 * var(--art-intensity,1));} }
@keyframes paint-loom { 0%,100%{scale:1;opacity:.72;}50%{scale:calc(1 + .07 * var(--art-intensity,1));opacity:1;} }
@keyframes paint-stamp { 0%,100%{scale:1;rotate:0deg;}45%{scale:calc(1 + .08 * var(--art-intensity,1));rotate:calc(-4deg * var(--art-intensity,1));} }
@keyframes paint-orbit { 0%,100%{rotate:calc(-6deg * var(--art-intensity,1));}50%{rotate:calc(6deg * var(--art-intensity,1));} }
@keyframes paint-window { 0%,100%{translate:calc(-20px * var(--art-intensity,1)) 0;opacity:.38;}50%{translate:calc(24px * var(--art-intensity,1)) calc(9px * var(--art-intensity,1));opacity:.75;} }
@keyframes art-intro-finish { from{outline-color:transparent;}to{outline-color:transparent;} }
@media(max-width:1000px) {
 body.community-gallery .community-art-host[data-art-format] { gap:18px; grid-template-columns:minmax(0,1fr) minmax(210px,.9fr); padding:22px!important; }
 body.community-gallery .community-art-heading h1 { font-size:31px!important; }
}
@media(max-width:700px) {
 body.community-gallery { --art-picture-height:205px; }
 body.community-gallery .community-art-host[data-art-format],
 body.community-gallery .community-art-host:is([data-art-format="folio"],[data-art-format="gallery"],[data-art-format="atlas"],[data-art-format="diptych"],[data-art-format="poster"],[data-art-format="correspondence"],[data-art-format="studio"],[data-art-format="ledger"],[data-art-format="quiet"]) { grid-template-columns:minmax(0,1fr); gap:16px; padding:18px!important; }
 body.community-gallery .community-art-heading :is(h1,h2) { font-size:28px!important; line-height:1.45!important; margin:6px 0 10px; }
 body.community-gallery .community-art-heading p { font-size:16px!important; line-height:1.75!important; margin:7px 0; }
 body.community-gallery .community-art-heading > :is(div,p,h1,h2) { width:auto!important; max-width:none!important; }
 body.community-gallery .community-page-art { width:calc(100% - 28px); grid-template-columns:1fr; grid-template-areas:"caption" "picture" "controls"; padding:17px; gap:14px; }
 body.community-gallery .community-page-art__caption { padding:0!important; }
 body.community-gallery .community-art-host > .community-page-art { width:100%!important; padding:0; }
 body.community-gallery .art-controls { justify-content:flex-start; gap:7px; }
 body.community-gallery .community-page-art__toggle { padding:9px 8px; }
 body.community-gallery .community-art-host:is([data-art-format="studio"],[data-art-format="ledger"],[data-art-format="quiet"]) { --art-picture-height:125px; }
 body.community-gallery .community-art-host[data-art-format="correspondence"] { --art-picture-height:135px; }
 body.community-admin-shell .community-art-host { --art-picture-height:115px; }
 body.community-admin-shell .community-art-heading h1 { font-size:26px!important; }
 body[data-art-theme="account"] .community-art-host { --art-picture-height:125px; }
 body.community-gallery :is(.topic-content,.discussion-article-body,.community-service-prose,.dating-answer) { font-size:17px!important; }
 body.community-gallery .community-art-heading .ir-hero__content { width:100%; }
}
@media(prefers-reduced-motion:reduce) { body.art-ready :is(.page-art-svg,.paint-motion,.page-art-svg path) { animation:none!important; } }
/* The exhibition has its own canvas; the page grid does not constrain it. */
body.community-gallery .art-exhibition-canvas .community-page-art__picture { position:absolute!important; inset:0!important; height:100%!important; width:100%!important; }
body.community-gallery .art-exhibition-subtitle { font-size:14px; }
/* Complete semantic surfaces for the older forum, commerce and room components. */
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.discussion-feed,.discussion-row,.discussion-secondary,.discussion-sort,.commerce-surface,.commerce-content,.commerce-boundary,.commerce-tabs,.commerce-tabs a,.message-board-board-links a,.dating-reasons span,.dating-button--secondary,.ir-search,.ir-search-field,.ir-sort a,.ir-tag-cloud,.ir-category,.ir-carousel-controls button,.ir-button--ghost,.friends-search-form,.friends-settings-form,.friends-check,.community-admin-login__card) { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(button,.btn) { background-color:var(--gallery-white)!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(.btn-primary,.community-auth-submit,.dating-button:not(.dating-button--secondary),.discussion-primary,.ux-primary,.cr-btn--primary,.friends-btn--primary,.message-board-button,.topic-button--primary,.topic-product-card__cta,.community-admin-range-apply,.ir-btn-primary,.ir-button--coral,.ir-card-action,.ir-pill.is-active,.ir-sort a.is-active,.community-admin-button--primary,.community-admin-login__submit) { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; border-color:var(--gallery-action)!important; -webkit-text-fill-color:var(--gallery-on-action); }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(.community-auth-submit,.dating-button,.ir-button--coral,.friends-btn--primary,.message-board-button,.ir-card-action) :is(span,strong) { color:inherit!important; -webkit-text-fill-color:inherit; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .friends-subhero nav a[aria-current="page"] { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .ir-room-card__badge span { background:var(--gallery-sage)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.auth-input-icon,.auth-show-password,.auth-password-toggle,.community-service-breadcrumb span) { color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .community-admin-logout button { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] footer .community-back-top { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] header .community-menu-toggle { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.commerce-section-tabs,.commerce-section-tabs a,.friends-filter,.friends-privacy label,.ir-tags,.ir-featured-card__image span,.discussion-mobile-boards a,.dating-tags span) { background:var(--gallery-sage)!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(.commerce-list-meta span,.message-board-page-breadcrumb span,.ir-featured-card__image span) { color:var(--gallery-muted)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .ir-toolbar { background:var(--gallery-white)!important; border-color:var(--gallery-line)!important; }
/* Reading, evidence, notices and tools have explicit night surfaces. */
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(article,form,aside),
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.dating-notice,.dating-icebreaker,.message-board-replies,.discussion-reply,.discussion-composer,.message-board-reply-form,.topic-product-cards,.topic-product-card,.topic-report summary,.topic-replies,.topics-panel,.discussion-commerce-card,.commerce-card-product,.commerce-card-products li,.community-circle-nav a,.social-compose-tools,.message-board-safety,.message-board-safety__links a,.admin-community-table-wrap,.community-admin-pagination,.admin-community-setting-form,.admin-community-room-card,.community-schema-summary,.community-schema-meta > div,.community-service-profile__content,.ir-list-section,.ir-form,.topic-form-section__heading span,.dating-interest-options label,.message-board-pagination :is(a,span),.cr-report-room summary,.cr-message__type,.cr-chat-tabs a,.cw-health,.community-admin-setting-risk) { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(div,span,dd,code,.message-board-post__content,.topic-detail-content,.discussion-row__category,.topic-breadcrumbs,.ux-draft-controls,.dating-review-details,.dating-pagination,.dating-admin-counts section) { color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .community-admin-topbar__actions .community-admin-view-site { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .discussion-sidebar :is(span,i) { color:var(--gallery-muted)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(.topic-detail-header__meta a,.topics-follow-button,.topic-action-button,.topic-login-cta,.dating-interest-options label,.community-circle-nav a,.discussion-quote,.discussion-quote a) { background:var(--gallery-sage)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main .topics-panel__heading small { background:var(--gallery-sage)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(.cr-button--primary,.cr-button--accent,.cr-cta__button,.cw-button--primary,.friends-btn--match,.friends-stats__manage,.friends-hero__actions a:first-child,.friends-login-notice a,.friends-cta a,.ir-button--primary,.topic-kicker-buying-guide,.community-button-primary) { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(.cr-button--primary,.cr-button--accent,.cr-cta__button,.cw-button--primary,.friends-btn--match,.friends-stats__manage,.friends-hero__actions a:first-child,.friends-login-notice a,.friends-cta a,.ir-button--primary,.community-button-primary,.dating-button,.ir-button--coral,.ir-card-action,.message-board-button,.community-auth-submit) :is(span,strong) { color:inherit!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main .cr-live-status { color:var(--gallery-muted)!important; }
body.community-gallery[data-art-theme] main :is(dt,dd,code,.gallery-eyebrow,.message-board-eyebrow,.discussion-caption,.dating-eyebrow,.cr-live-status) { font-size:max(14px,1em)!important; }
body.community-gallery[data-art-theme] main .community-form-panel { background:var(--gallery-white)!important; background-image:none!important; }
body.community-gallery main .topic-delete-button { color:var(--gallery-danger)!important; background:var(--gallery-white)!important; }
/* Full names and descriptions wrap; table wrappers retain deliberate horizontal scrolling. */
body.community-gallery :is(.community-admin-topbar__title strong,.community-admin-account strong,.community-admin-pending-item strong,.community-admin-ranking-item strong,.cr-chat-header p,.cr-chat-header h2,.cr-room-item strong,.cr-room-item small,.ir-room-card h3,.ir-room-card p,.ir-featured-card h3,.ir-featured-card p,.ir-person-row strong,.friends-online-list strong) { white-space:normal!important; text-overflow:clip; overflow:visible!important; overflow-wrap:anywhere; }
body.community-gallery :is(.cr-chat-tabs,.topic-detail-actions,.discussion-article-actions,.message-board-post__actions,.topic-reply header,.topic-reply__meta,.community-admin-range-form,.community-admin-dashboard-toolbar) { flex-wrap:wrap; min-width:0; max-width:100%; }
body.community-gallery .cr-chat-tabs { gap:5px 12px; }
body.community-gallery .cr-chat-tabs a { white-space:normal; margin:0; }
body.community-gallery :is(.discussion-feed,.topic-replies,.message-board-post,.community-service-profile) { overflow:visible; }
body.community-gallery :is(.topic-reply,.topic-reply p,.topic-reply header,.community-service-profile__content,.ux-public-work) { min-width:0; overflow-wrap:anywhere; }
body.community-gallery :is(.community-admin-range-form input,.community-admin-range-form select,.art-admin-form select,.art-admin-form input,.ir-toolbar input) { min-width:0; max-width:100%; }
body.community-gallery .community-admin-topbar__title { flex:1; min-width:0; }
body.community-gallery .community-admin-menu-toggle span { background:var(--gallery-ink)!important; }
body.community-gallery .community-admin-menu-button { background:var(--gallery-white)!important; }
body.community-gallery .community-admin-menu-button span { background:var(--gallery-ink)!important; }
body.community-gallery[data-art-theme] main .community-button:not(.community-button-primary) { background:var(--gallery-white)!important; color:var(--gallery-link)!important; }
body.community-gallery[data-art-theme] main .cr-panel__heading span { font-size:max(14px,1em)!important; }
body.community-gallery .community-admin-action-item { grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-width:0; overflow-wrap:anywhere; }
body.community-gallery .community-admin-action-item > * { min-width:0; }
body.community-gallery .community-admin-action-item :is(strong,small,span,time) { white-space:normal; overflow-wrap:anywhere; }
body.community-gallery :is(.ir-online-list,.ir-side-panel,.ir-list-section) :is(a,strong,small,p) { white-space:normal!important; text-overflow:clip!important; overflow:visible!important; overflow-wrap:anywhere; min-width:0; }
body.community-gallery .art-controls { scroll-margin-block:100px; }
body.community-gallery .art-connection-left { translate:calc(14px * var(--art-connection,0)) 0; transition:translate .5s ease; }
body.community-gallery .art-connection-right { translate:calc(-14px * var(--art-connection,0)) 0; transition:translate .5s ease; }
body.community-gallery[data-art-scheme="night"][data-art-theme] :is(.discussion-sidebar a.is-active,.topic-product-card__role,.topic-form-section > header > span,.community-circle-nav span,.message-board-alert,.admin-community-status,.cr-members-directory b,.cr-room-filters a,.social-guide > section,.discussion-editorial,.discussion-editorial a) { background:var(--gallery-sage)!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(.friends-tag-grid button,.ir-form-actions a.ir-button) { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .community-admin-login__submit span { color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .topic-form-card > header > span { background:var(--gallery-sage)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main .community-admin-login__submit span { color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(.community-schema-feature > header > span,.friends-tag-grid label,.message-board-safety a) { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main .friends-tag-grid label span { color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main .friends-tag-grid label:has(input:checked) { background:var(--gallery-sage)!important; border-color:var(--gallery-link)!important; }
body.community-gallery :is(.cr-members-grid strong,.cr-member-row strong,.cr-message__meta strong) { white-space:normal!important; overflow:visible!important; text-overflow:clip; overflow-wrap:anywhere; min-width:0; }
body.community-gallery .cr-members-grid article > div { min-width:0; }
body.community-gallery .cr-message__meta { flex-wrap:wrap; }
body.community-gallery .message-board-page-breadcrumb { display:flex; flex-wrap:wrap; padding-inline:0; overflow-wrap:anywhere; min-width:0; }
body.community-gallery .message-board-page-breadcrumb > * { min-width:0; }
body.community-gallery .community-art-heading { overflow-wrap:anywhere; }
body.community-gallery .community-art-heading :is(small,code,a) { white-space:normal; overflow-wrap:anywhere; }
body.community-gallery .community-service-shell { grid-template-columns:minmax(0,1fr); }
body.community-gallery .community-service-shell > * { min-width:0; max-width:100%; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .discussion-sidebar a[aria-current="page"] { background:var(--gallery-sage)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .discussion-sidebar a[aria-current="page"] span { color:var(--gallery-ink)!important; }
body.community-gallery[data-art-theme] .cr-panel h3 { font-size:max(14px,1em)!important; }
body.community-gallery[data-art-theme] .ux-bottom-nav { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; }
body.community-gallery[data-art-theme] .ux-bottom-nav :is(a,span,strong) { color:var(--gallery-ink)!important; font-size:max(14px,1em); overflow-wrap:anywhere; min-width:0; }
body.community-gallery[data-art-theme] .ux-bottom-nav [data-ux-unread] { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .community-admin-sidebar a.is-active { background:var(--gallery-sage)!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] .community-admin-sidebar a.is-active span { color:var(--gallery-ink)!important; }
body.community-gallery[data-art-theme] .community-admin-sidebar :is(a,span,strong,summary) { font-size:max(14px,1em); }
body.community-gallery[data-art-theme] :is(.auth-skip-link,.community-skip-link,.community-admin-skip-link) { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; border:1px solid var(--gallery-line); }
body.community-gallery .community-admin-sidebar :is(.community-admin-nav-link,.community-admin-nav-group__toggle) { min-height:44px; height:auto; min-width:0; }
body.community-gallery .community-admin-sidebar :is(.community-admin-nav-link,.community-admin-nav-group__toggle) span { min-width:0; white-space:normal; overflow-wrap:anywhere; }
/* Populated public states: pagination, online people and the anonymous writing chooser. */
body.community-gallery[data-art-scheme="night"][data-art-theme] main .ir-pagination a { background:var(--gallery-white)!important; color:var(--gallery-link)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-theme] main .ir-room-card__badge { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-theme] main .friends-avatar > span { width:auto; height:auto; min-width:40px; min-height:24px; padding:2px 6px; border:1px solid var(--gallery-line); border-radius:999px; overflow:visible; white-space:nowrap; line-height:1.4; background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main :is(span.ir-room-card__badge,.friends-avatar > span) { background:var(--gallery-action)!important; color:var(--gallery-on-action)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main .ux-choices > a { background:var(--gallery-white)!important; color:var(--gallery-ink)!important; border-color:var(--gallery-line)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main .ux-choices > a :is(h2,strong,span) { color:var(--gallery-ink)!important; }
body.community-gallery[data-art-scheme="night"][data-art-theme] main .ux-choices > a p { color:var(--gallery-muted)!important; }
body.community-gallery .ir-panel--featured { min-width:0; grid-template-columns:minmax(0,1fr); }
body.community-gallery .ir-featured { width:100%; min-width:0; max-width:100%; }
body.community-gallery .ir-panel--featured .ir-section-heading { min-width:0; max-width:100%; flex-wrap:wrap; }
body.community-gallery :is(.ir-hosts strong,.ir-topics a,.ir-room-card__body p,.ir-featured-card__body p) { display:block; white-space:normal!important; -webkit-line-clamp:unset; max-height:none; text-overflow:clip; overflow:visible!important; overflow-wrap:anywhere; }
body.community-gallery .commerce-section-tabs { display:flex; flex-wrap:wrap; }
body.community-gallery .commerce-section-tabs a { min-width:0; white-space:normal; overflow-wrap:anywhere; }
@media(max-width:700px) {
 body.community-gallery .ir-discovery { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; }
 body.community-gallery .ir-search { min-width:0; width:100%; max-width:100%; }
 body.community-gallery .ir-search input { width:100%; min-width:0; }
 body.community-gallery .ir-primary-actions { display:flex; flex-wrap:wrap; min-width:0; }
 body.community-gallery .ir-primary-actions a { white-space:normal; min-width:0; }
 body.community-gallery .community-admin-topbar__actions { flex-wrap:wrap; min-width:0; max-width:100%; }
 body.community-gallery .community-admin-topbar__title { overflow-wrap:anywhere; }
 body.community-gallery .commerce-section-tabs a { flex:1 1 140px; }
 body.community-gallery :is(.community-page-header-v3,.community-page-shell,.community-art-heading) { min-width:0; }
}
@media(max-width:700px) {
 body.community-gallery .community-admin-topbar { flex-wrap:wrap; height:auto; }
 body.community-gallery .community-admin-range-form { display:grid; grid-template-columns:minmax(0,1fr); width:100%; }
 body.community-gallery .community-admin-range-current { white-space:normal; }
 body.community-gallery :is(.ir-room-card,.ir-featured-card,.ir-toolbar,.ir-form,.community-admin-card,.art-admin-form,.community-art-host,.community-art-heading,.community-main) { min-width:0; max-width:100%; }
 body.community-gallery :is(.topic-detail-actions a,.message-board-post__actions a,.topic-report summary,.message-board-post .discussion-entry summary) { white-space:normal; overflow-wrap:anywhere; }
 body.community-gallery .topic-reply header { display:flex; flex-wrap:wrap; }
 body.community-gallery :is(.cr-chat-header p,.ir-side-panel p,.ir-rank-list p,.friends-online-list small) { white-space:normal!important; overflow:visible!important; overflow-wrap:anywhere; }
}
