/* Final component roles: loaded after legacy styles. */
html:root body .vmesta-track-player .vmesta-track-play,html:root body #global-music-panel#global-music-panel > #global-music-play {background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;opacity:1;}
html:root body #global-music-panel#global-music-panel > #global-music-play :is(svg,path),html:root body .vmesta-track-player .vmesta-track-play :is(svg,path) {color:var(--theme-on-accent)!important;fill:currentColor!important;stroke:none!important;}
html:root body #global-music-panel#global-music-panel :is(#global-music-volume,#global-music-next,#global-music-previous,.global-music-inline-close),html:root body .vmesta-track-player .vmesta-track-tools button {background:var(--theme-surface-control)!important;color:var(--theme-accent)!important;}
html:root body #global-music-panel#global-music-panel :is(#global-music-volume,#global-music-next,#global-music-previous,.global-music-inline-close) :is(svg,path),html:root body .vmesta-track-player .vmesta-track-tools button :is(svg,path) {color:var(--theme-accent)!important;}
html:root:is(.adaptive-theme,:not(.adaptive-theme)):is(.theme-monet-active,:not(.theme-monet-active)) body .vmesta-track-player.vmesta-track-player {background:var(--theme-surface-nested)!important;background-image:none!important;}
html:root body.messages-route #messages-root#messages-root .messenger-conversation:not(.is-room-chat) .messenger-message.is-incoming .messenger-bubble:not(.is-video-note-only):not(.is-video-note-reply):not(.is-sticker-only):not(.is-sticker-reply) {--message-shape-fill:var(--theme-surface-nested)!important;background:var(--message-shape-fill)!important;}
html:root body.messages-route #messages-root#messages-root .messenger-conversation:not(.is-room-chat) .messenger-message.is-outgoing .messenger-bubble:not(.is-video-note-only):not(.is-video-note-reply):not(.is-sticker-only):not(.is-sticker-reply) {--message-shape-fill:color-mix(in srgb,var(--theme-accent) 24%,var(--theme-surface-nested))!important;background:var(--message-shape-fill)!important;}
html:root body.messages-route #messages-root#messages-root .messenger-conversation:not(.is-room-chat) .messenger-bubble .messenger-bubble-tail-fill {fill:var(--message-shape-fill)!important;}
html:root body>#vmesta-section-boot#vmesta-section-boot {background:var(--theme-bg-primary)!important;color:var(--theme-text-primary)!important;--boot-block:color-mix(in srgb,var(--theme-accent) 15%,var(--theme-surface-control));--boot-card:var(--theme-surface-nested);}
html:root body #vmesta-section-boot :is(.vmesta-boot-top,.vmesta-boot-side,.vmesta-boot-view) {background:var(--theme-surface-panel)!important;}
html:root body #vmesta-section-boot .vmesta-boot-brand {color:var(--theme-accent)!important;}
html:root {--skeleton-base:var(--theme-surface-control)!important;--skeleton-highlight:var(--theme-surface-active)!important;}
html:root body :is(.vmesta-profile-tabs-skeleton>i,.vmesta-mobile-profile-skeleton-name,.vmesta-mobile-profile-skeleton-meta i) {background:var(--skeleton-base)!important;}

/* v331: component sizing and fixed semantic colors. */
html:root body :is(#global-music-panel#global-music-panel,.vmesta-track-player) .vmesta-track-play {background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;}
html:root body :is(#global-music-panel#global-music-panel,.vmesta-track-player) .vmesta-track-play :is(svg,path) {color:var(--theme-on-accent)!important;fill:currentColor!important;stroke:none!important;}
html:root body :is(#global-music-panel#global-music-panel,.vmesta-track-player) .vmesta-track-tools button {background:var(--theme-surface-control)!important;color:var(--theme-accent)!important;}
html:root body :is(#global-music-panel#global-music-panel,.vmesta-track-player) .vmesta-track-tools button :is(svg,path) {color:var(--theme-accent)!important;}
html:root body #messages-root#messages-root .messenger-voice-note-top {display:grid!important;grid-template-columns:minmax(0,1fr) 28px!important;gap:6px!important;width:100%!important;min-width:0!important;}
html:root body #messages-root#messages-root .messenger-voice-note-top .messenger-voice-wave {width:auto!important;min-width:0!important;max-width:100%!important;grid-column:1!important;}
html:root body #messages-root#messages-root .messenger-voice-speed {position:static!important;grid-column:2!important;transform:none!important;margin:0!important;}
html:root body #messages-root#messages-root .messenger-voice-note-main {min-width:0!important;max-width:100%!important;}
html:root body #messages-root#messages-root .messenger-voice-transcript {box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:10px 12px!important;}
html:root body #messages-root#messages-root .messenger-voice-transcript p {min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;white-space:normal!important;margin:0!important;font-size:13px!important;line-height:1.5!important;}
html:root body #vmesta-image-editor#vmesta-image-editor :is(.vmesta-image-editor-dialog,.vmesta-image-editor-head,footer) {background:var(--theme-surface-panel)!important;color:var(--theme-text-primary)!important;}
html:root body #vmesta-image-editor#vmesta-image-editor :is(.vmesta-image-editor-stage-wrap,.vmesta-image-editor-stage) {background:var(--theme-bg-primary)!important;}
html:root body #vmesta-image-editor#vmesta-image-editor :is(.vmesta-image-editor-tools,.vmesta-image-editor-actions,.vmesta-image-editor-tool-settings,.vmesta-image-editor-palette) {background:var(--theme-surface-nested)!important;color:var(--theme-text-primary)!important;}
html:root body #vmesta-image-editor#vmesta-image-editor button:not([data-editor-color]):not(.vmesta-image-editor-color) {background:var(--theme-surface-control)!important;color:var(--theme-text-primary)!important;}
html:root body #vmesta-image-editor#vmesta-image-editor button:is(.is-active,.is-primary,[data-editor-action="save"]) {background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;}
html:root body #vmesta-image-editor#vmesta-image-editor .vmesta-image-editor-hint {min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;}
html:root body #vmesta-image-editor#vmesta-image-editor .vmesta-image-editor-crop::after {max-width:calc(100% - 16px)!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;line-height:1.4!important;}
html:root body :is(#vmesta-service-icons#vmesta-service-icons,.access-role-marker,.profile-avatar-role-badge,.settings-profile-rank-btn,.access-role-popover-icon) {color:var(--fixed-access-role-color,#2583ff)!important;}
html:root body :is(#vmesta-service-icons#vmesta-service-icons,.access-role-marker,.profile-avatar-role-badge,.settings-profile-rank-btn,.access-role-popover-icon) :is(svg,svg *) {color:var(--fixed-access-role-color,#2583ff)!important;}
html:root body :is(.verification-mark,.profile-avatar-verification-badge,.verification-own-mark,.cover-account-verification-mark,.messenger-room-verification-badge) {color:#2583ff!important;animation:vmesta-service-medal-pulse 3.2s ease-in-out infinite!important;}
@keyframes vmesta-service-medal-pulse {0%,100%{filter:drop-shadow(0 0 1px #2583ff44)}50%{filter:drop-shadow(0 0 5px #2583ff99)}}
@media(prefers-reduced-motion:reduce){html:root body :is(.verification-mark,.profile-avatar-verification-badge,.verification-own-mark,.cover-account-verification-mark,.messenger-room-verification-badge){animation:none!important;}}
