/* Списки сообществ и компактные секции редактора профиля. Все правила ограничены своим компонентом. */
@layer vmesta-component-contract {
/* Активная категория видна заливкой, цветом подписи и нижней линией. */
html:root body #messages-root#messages-root#messages-root .messenger-type-tabs > button {position:relative!important;min-height:38px!important;border-radius:13px!important;background:var(--theme-surface-control)!important;color:var(--theme-text-secondary)!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;}
html:root body #messages-root#messages-root#messages-root .messenger-type-tabs > button.is-active {background:var(--theme-surface-active,color-mix(in srgb,var(--theme-accent) 18%,var(--theme-surface-panel)))!important;color:var(--theme-accent,var(--color-dynamic))!important;box-shadow:inset 0 -3px 0 var(--theme-accent,var(--color-dynamic))!important;}
html:root body #messages-root#messages-root#messages-root .messenger-type-tabs > button.is-active :is(span,b,svg) {color:inherit!important;}
/* Свои и публичные сообщества повторяют компактную карточку раздела выбора обоев. */
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424 {margin:0 0 12px!important;padding:0!important;border:0!important;background:transparent!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424 > summary {display:flex!important;align-items:center!important;gap:10px!important;min-height:56px!important;padding:10px 12px!important;box-sizing:border-box!important;border-radius:17px!important;background:var(--theme-surface-nested)!important;list-style:none!important;cursor:pointer!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424 > summary::-webkit-details-marker {display:none!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424 > summary > span:first-child {display:grid!important;gap:3px!important;flex:1!important;min-width:0!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424 > summary strong {font-size:13px!important;font-weight:750!important;line-height:1.25!important;color:var(--theme-text-primary)!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424 > summary small {font-size:11px!important;line-height:1.3!important;color:var(--theme-text-secondary)!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424 > summary em {display:grid!important;place-items:center!important;flex:none!important;min-width:28px!important;height:26px!important;padding:0 6px!important;box-sizing:border-box!important;border-radius:10px!important;font-size:11px!important;font-style:normal!important;font-weight:700!important;background:var(--theme-surface-control)!important;color:var(--theme-accent,var(--color-dynamic))!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424 > summary > .messenger-icon {flex:none!important;width:16px!important;height:16px!important;color:var(--theme-accent,var(--color-dynamic))!important;transition:transform .18s ease!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424 > summary em .messenger-icon {width:14px!important;height:14px!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424[open] > summary > .messenger-icon {transform:rotate(180deg)!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection-body424 {padding:6px 0 0!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection-body424 > p {margin:0!important;padding:12px!important;font-size:12px!important;line-height:1.5!important;color:var(--theme-text-secondary)!important;}
html:root body #messages-root#messages-root#messages-root .messenger-room-collection424 > summary:focus-visible {outline:2px solid var(--theme-accent)!important;outline-offset:2px!important;}
/* Одинаковые компактные шапки контраста и блоков профиля в обоих местах открытия редактора. */
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) :is(.theme-background-contrast,.profile-layout-theme-settings) {padding:0!important;margin:0 0 12px!important;border-radius:16px!important;}
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) :is(.theme-background-contrast,.profile-layout-accordion) > summary {display:grid!important;grid-template-columns:18px minmax(0,1fr) 26px!important;align-items:center!important;gap:10px!important;padding:10px 13px!important;min-height:54px!important;box-sizing:border-box!important;list-style:none!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;}
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) :is(.theme-contrast-heading,.profile-layout-accordion > summary > span:not(.profile-layout-chevron)) {display:grid!important;gap:3px!important;}
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) :is(.theme-contrast-heading,.profile-layout-accordion > summary) strong {font-size:13px!important;line-height:1.25!important;font-weight:700!important;}
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) :is(.theme-contrast-heading,.profile-layout-accordion > summary) small {font-size:10px!important;line-height:1.2!important;letter-spacing:.04em!important;}
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) :is(.theme-contrast-eye,.profile-layout-icon424) {width:18px!important;height:18px!important;color:var(--theme-accent,var(--color-dynamic))!important;}
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) :is(.theme-contrast-chevron,.profile-layout-chevron) {display:grid!important;place-items:center!important;width:26px!important;height:26px!important;border-radius:9px!important;background:transparent!important;}
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) :is(.theme-contrast-chevron,.profile-layout-chevron) svg {width:15px!important;height:15px!important;}
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) .profile-layout-accordion-content {padding:6px 12px 12px!important;gap:7px!important;}
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) .profile-layout-accordion-content > button {padding:9px 11px!important;min-height:38px!important;font-size:12px!important;gap:9px!important;}
html:root body :is(#settings-modal#settings-modal#settings-modal,#cover-theme-catalog-mount#cover-theme-catalog-mount#cover-theme-catalog-mount) .profile-layout-accordion-content > button > svg {width:18px!important;height:18px!important;}
}

@layer vmesta-component-contract {
/* Закрытие и сохранение находятся в шапке: прежний нижний контейнер не занимает место. */
html:root body #messages-root#messages-root#messages-root .messenger-room-settings-modal > section > form.messenger-room-settings-form > footer {display:none!important;}
}
