@charset "UTF-8";

/* Account and community surfaces share the homepage palette and typography. */
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.friend-widgets,.activity-rating-card,.profile-completeness-card,.site-notifications-page) {
    --co-cyan:var(--portal-accent);
    --co-ink:var(--portal-text);
    --co-muted:var(--portal-muted);
    --co-line:var(--portal-border);
    color:var(--portal-text);
    font-family:var(--font);
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.friend-widgets,.activity-rating-card,.profile-completeness-card,.site-notifications-page) :is(h1,h2,h3,h4,button,input,select,textarea,summary,label) {
    font-family:var(--font);
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.friend-widgets,.activity-rating-card,.profile-completeness-card,.site-notifications-page) :is(h1,h2,h3,h4) {
    color:var(--portal-text);
    font-weight:700;
    letter-spacing:-.035em;
}
body.portal-page.portal-community-theme .pa-account-heading h1 {
    font-family:var(--font);
    font-size:clamp(29px,3.2vw,43px);
    line-height:1.12;
    font-weight:750;
}
body.portal-page.portal-community-theme :is(.pa-account-heading p,.community-page-heading p,.community-account-intro p,.community-profile-title p,.community-sidebar p,.community-muted,.pa-help,.pa-password-recovery p) {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme :is(.pa-account,.community) .eyebrow {
    color:var(--portal-muted);
    font-size:10px;
    letter-spacing:.14em;
    font-weight:700;
}
body.portal-page.portal-community-theme :is(.pa-account,.community) .accent-dot {
    color:var(--portal-accent);
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.friend-widgets,.profile-photo-page,.activity-rating-card,.profile-completeness-card,.site-notifications-page) :focus-visible {
    outline:2px solid var(--portal-accent);
    outline-offset:3px;
}

/* Neutral cards and dividers, including account data and nested panels. */
body.portal-page.portal-community-theme :is(.pa-profile-card,.pa-account-sidebar,.pa-account-panel,.community-card,.community-post,.community-profile-head,.friend-widget,.friend-directory,.activity-rating-card,.profile-completeness-card,.profile-photo-info,.site-notifications-all,.site-notification-card) {
    background:var(--portal-panel)!important;
    color:var(--portal-text)!important;
    border-color:var(--portal-border)!important;
    border-radius:14px;
    box-shadow:none;
}
body.portal-page.portal-community-theme .pa-account-sidebar {
    padding:24px 20px;
}
body.portal-page.portal-community-theme :is(.pa-account-panel,.community-card) {
    padding:24px;
}
body.portal-page.portal-community-theme .community-profile-head {
    padding:28px;
}
body.portal-page.portal-community-theme .community-profile-head::after {
    display:none;
}
body.portal-page.portal-community-theme :is(.pa-panel-heading,.community-post-head,.community-chat-head) {
    background:transparent!important;
    color:var(--portal-text)!important;
    border-color:var(--portal-border)!important;
}
body.portal-page.portal-community-theme :is(.pa-sidebar-details,.pa-sidebar-catalog,.pa-account-links,.pa-password-recovery,.community-tabs,.community-post-reactions,.community-conversation-row,.community-search-results>div,.community-settings fieldset,.friend-tabs,.friend-more,.friend-card,.profile-album-settings form+form,.profile-photo-move,.profile-photo-actions,.activity-rating-details,.activity-rating-explanation,.site-notifications-item,.site-notifications-panel>header,.site-notifications-more,.site-notifications-read,.pa-privacy-field,.community-video-seo-heading,.community-photo-dialog-discussion) {
    border-color:var(--portal-border)!important;
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.friend-widgets,.activity-rating-card,.site-notifications-page) hr {
    height:0;
    border:0;
    border-top:1px solid var(--portal-border);
    opacity:1;
}
body.portal-page.portal-community-theme :is(.pa-profile-card h2,.pa-account-panel h2,.community-empty h2,.community-empty h3,.friend-widget h2,.friend-directory-empty h2,.activity-rating-head h2) {
    font-family:var(--font);
    color:var(--portal-text);
    font-weight:700;
}
body.portal-page.portal-community-theme :is(.pa-account-panel h2,.community-account-intro h2) {
    font-size:21px;
    line-height:1.3;
}
body.portal-page.portal-community-theme :is(.pa-account-panel>p,.pa-panel-heading p,.community-empty p,.friend-directory-empty p,.friend-empty,.friend-state,.profile-album-description,.profile-album small,.profile-photo-author small,.profile-photo-avatar-choice small,.activity-rating-head p,.activity-rating-explanation,.activity-rating-metrics dt,.site-notifications-item p,.site-notifications-item time,.site-notifications-status) {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme :is(.pa-sidebar-details>summary,.pa-sidebar-catalog,.pa-account-links>a,.community-link,.community-text-button,.community-back,.profile-photo-breadcrumb a,.profile-photo-upload>summary,.profile-photo-editor>summary,.profile-album-create>summary,.profile-album-settings>summary,.friend-more,.activity-rating-details summary,.site-notifications-item-title,.site-notifications-more) {
    color:var(--portal-accent);
}
body.portal-page.portal-community-theme :is(.pa-account-data dd,.community-profile-title .community-bio,.community-post-head strong,.community-post-body,.community-post-author>span,.friend-name>a,.friend-name>strong,.activity-rating-score strong,.activity-rating-metrics dd,.site-notifications-panel h2,.site-notifications-item-title) {
    color:var(--portal-text);
    font-family:var(--font);
}
body.portal-page.portal-community-theme :is(.pa-account-data dt,.community-post-date,.community-conversation small,.community-search-results small,.community-message footer,.community-post-views,.friend-name>small,.profile-photo-breadcrumb,.profile-photo-caption,.community-video-field-count,.community-video-description p,.site-notifications-read) {
    color:var(--portal-muted);
    font-family:var(--font);
}
body.portal-page.portal-community-theme .pa-account-data {
    margin:18px 0;
}
body.portal-page.portal-community-theme .pa-account-data>div+div {
    border-top:1px solid var(--portal-border);
    padding-top:12px;
    margin-top:12px;
}
body.portal-page.portal-community-theme .pa-account-data dd {
    font-weight:500;
    line-height:1.7;
}

/* Navigation and badges use warm accents without blue-tinted backgrounds. */
body.portal-page.portal-community-theme .pa-account-nav {
    background:transparent!important;
    border-color:var(--portal-border)!important;
}
body.portal-page.portal-community-theme :is(.pa-account-nav>a,.community-tabs a,.friend-tabs>a) {
    color:#b8bdc6!important;
    border-color:transparent!important;
    border-radius:8px;
    background:transparent!important;
    font-family:var(--font);
    font-weight:600;
}
body.portal-page.portal-community-theme :is(.pa-account-nav>a,.community-tabs a,.friend-tabs>a):hover {
    color:var(--portal-text)!important;
    background:var(--portal-raised)!important;
}
body.portal-page.portal-community-theme :is(.pa-account-nav>a[aria-current="page"],.community-tabs a[aria-current="page"],.friend-tabs>a[aria-current="page"]) {
    background:#f5a53b14!important;
    color:var(--portal-accent)!important;
    border-color:#f5a53b40!important;
}
body.portal-page.portal-community-theme :is(.pa-account-nav .pa-nav-icon,.pa-community-account .pa-nav-icon,.pa-account-nav .icon) {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme .pa-account-nav>a[aria-current="page"] :is(.pa-nav-icon,.icon) {
    color:var(--portal-accent);
}
body.portal-page.portal-community-theme :is(.pa-group,.community-group,.community-unread,.friend-incoming,.activity-rating-level,.profile-photo-badge,.site-notifications-badge) {
    color:var(--portal-accent)!important;
    background:#f5a53b14!important;
    border-color:#f5a53b40!important;
    border-radius:8px;
    font-family:var(--font);
    box-shadow:none;
}
body.portal-page.portal-community-theme .pa-unverified {
    background:#f5a53b14;
    color:var(--portal-accent);
    border-radius:8px;
}
body.portal-page.portal-community-theme :is(.pa-panel-icon,.activity-rating-symbol,.friend-add,.community-avatar,.friend-avatar,.profile-album-cover) {
    color:var(--portal-accent)!important;
    background:var(--portal-raised)!important;
    border-color:var(--portal-border)!important;
    box-shadow:none;
    font-family:var(--font);
}
body.portal-page.portal-community-theme .pa-panel-icon {
    border:1px solid var(--portal-border);
    border-radius:10px;
}
body.portal-page.portal-community-theme :is(.community-avatar,.friend-avatar,.avatar-menu-trigger) {
    border-radius:10px;
}
body.portal-page.portal-community-theme .friend-presence {
    color:var(--portal-muted);
    font-family:var(--font);
}
body.portal-page.portal-community-theme .friend-presence[data-presence-state="online"] {
    color:#88c4a3;
}
body.portal-page.portal-community-theme .friend-presence[data-presence-state="online"] i {
    background:#7bbd95;
    box-shadow:0 0 0 3px #7bbd9518;
}
body.portal-page.portal-community-theme :is(.friend-widget h2 span,.community-album p,.community-copy-feedback) {
    color:var(--portal-accent);
}

/* Form fields match the homepage's restrained controls. */
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),textarea,select) {
    color:var(--portal-text)!important;
    background-color:var(--portal-bg)!important;
    border-color:var(--portal-border)!important;
    border-radius:10px;
    font-family:var(--font);
    font-weight:400;
    box-shadow:none;
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) :is(input,textarea)::placeholder {
    color:#808793;
    opacity:1;
    font-weight:400;
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) :is(input,textarea,select):focus {
    border-color:var(--portal-accent)!important;
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) :is(input,textarea,select)[aria-invalid="true"] {
    border-color:#d68078!important;
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) :is(input,textarea):autofill {
    color:var(--portal-text)!important;
    background-color:var(--portal-bg)!important;
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) :is(input,textarea):-webkit-autofill {
    -webkit-text-fill-color:var(--portal-text);
    caret-color:var(--portal-text);
    box-shadow:0 0 0 1000px var(--portal-bg) inset;
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) :is(input[type="checkbox"],input[type="radio"],input[type="range"],progress) {
    accent-color:var(--portal-accent);
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) :is(label,legend,.pa-field>label,.profile-photo-effects>legend) {
    color:#c9cdd4;
    font-family:var(--font);
    font-weight:600;
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) select {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5a53b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 13px center;
    appearance:none;
    padding-right:38px;
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) input[type="file"] {
    color:var(--portal-muted);
    border-color:var(--portal-border);
    background:var(--portal-bg);
    border-radius:10px;
    font-family:var(--font);
}
body.portal-page.portal-community-theme :is(.pa-account,.community,.friend-directory,.profile-photo-page) input[type="file"]::file-selector-button {
    border:0;
    border-right:1px solid var(--portal-border);
    background:var(--portal-raised);
    color:var(--portal-text);
    border-radius:0;
    padding:10px 12px;
    margin-right:12px;
    font:inherit;
}
body.portal-page.portal-community-theme :is(.pa-account,.community) :is(.button,.pa-vk-button,.pa-yandex-button,.pa-mobile-menu-toggle) {
    border-radius:8px;
    font-family:var(--font);
    font-weight:600;
    box-shadow:none;
}
body.portal-page.portal-community-theme :is(.pa-account,.community) :is(.button-primary,.pa-submit) {
    color:#15171b!important;
    background:var(--portal-accent)!important;
    border-color:var(--portal-accent)!important;
}
body.portal-page.portal-community-theme :is(.pa-account,.community) :is(.button-primary,.pa-submit):hover {
    background:var(--portal-accent-hover)!important;
    border-color:var(--portal-accent-hover)!important;
    box-shadow:none;
}
body.portal-page.portal-community-theme :is(.pa-account,.community) :is(.button-outline,.pa-vk-button,.pa-yandex-button,.pa-mobile-menu-toggle) {
    background:var(--portal-raised)!important;
    color:var(--portal-text)!important;
    border-color:var(--portal-border)!important;
}
body.portal-page.portal-community-theme .pa-account-heading .pa-account-logout {
    color:var(--portal-text)!important;
    -webkit-text-fill-color:currentColor;
    background:var(--portal-raised)!important;
    font-family:var(--font);
    font-weight:600;
}
body.portal-page.portal-community-theme :is(.pa-account,.community) :is(.button-outline,.pa-vk-button,.pa-yandex-button,.pa-mobile-menu-toggle):hover {
    background:#2b3038!important;
    border-color:#464b55!important;
}
body.portal-page.portal-community-theme .pa-password-toggle {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme .pa-password-toggle:hover,
body.portal-page.portal-community-theme .pa-password-toggle[aria-pressed="true"] {
    color:var(--portal-accent);
    background:var(--portal-raised);
}
body.portal-page.portal-community-theme :is(.pa-vk-unavailable,.pa-yandex-unavailable) {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme :is(.pa-vk-unavailable,.pa-yandex-unavailable) :is(.pa-vk-mark,.pa-yandex-mark) {
    background:var(--portal-raised);
    color:var(--portal-muted);
}

/* Privacy settings and account progress retain meaningful status colors. */
body.portal-page.portal-community-theme :is(.pa-privacy-intro,.pa-privacy-note,.profile-completeness-tip,.community-video-search-privacy) {
    background:var(--portal-raised)!important;
    color:#b7bdc7!important;
    border-color:var(--portal-border)!important;
    border-radius:10px;
}
body.portal-page.portal-community-theme .pa-privacy-intro>.icon {
    color:var(--portal-accent);
}
body.portal-page.portal-community-theme .pa-privacy-field label {
    color:var(--portal-text);
}
body.portal-page.portal-community-theme :is(.pa-privacy-field p,.pa-privacy-save p,.pa-privacy-note) {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme .pa-privacy .pa-privacy-control select {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5a53b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    color:var(--portal-text);
    font-family:var(--font);
    font-weight:400;
}
body.portal-page.portal-community-theme .pa-privacy .pa-privacy-control select:focus-visible {
    outline:2px solid var(--portal-accent);
    border-color:var(--portal-accent);
}
body.portal-page.portal-community-theme :is(.pa-verified,.pa-notice-success) {
    color:#8bc8a7;
}
body.portal-page.portal-community-theme :is(.pa-error,.community-form-error) {
    color:#ed9b94;
}
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.community-chat-delete,.community-post-delete,.community-order-remove,.profile-photo-delete>summary,.profile-album-delete,.avatar-menu-danger) {
    color:#ed9b94;
}
body.portal-page.portal-community-theme .profile-completeness-card :is(h2,strong) {
    color:var(--portal-text);
    font-family:var(--font);
}
body.portal-page.portal-community-theme .profile-completeness-card :is(p,small) {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme .profile-completeness-card a {
    color:var(--portal-accent);
}
body.portal-page.portal-community-theme .profile-completeness-head>strong {
    color:var(--portal-accent);
}
body.portal-page.portal-community-theme .profile-completeness-list>a {
    color:#b7bdc7;
    background:var(--portal-raised);
    border-color:var(--portal-border);
    border-radius:8px;
}
body.portal-page.portal-community-theme .profile-completeness-list>a:hover {
    color:var(--portal-text);
    background:#2b3038;
    border-color:#464b55;
}
body.portal-page.portal-community-theme .profile-completeness-list .is-complete {
    color:#8bc8a7;
}
body.portal-page.portal-community-theme .profile-completeness-list small {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme .profile-completeness-list>a:focus-visible {
    outline-color:var(--portal-accent);
}
body.portal-page.portal-community-theme .community .profile-completeness-progress,
body.portal-page.portal-community-theme .profile-completeness-progress {
    background:var(--portal-raised);
    accent-color:var(--portal-accent);
}
body.portal-page.portal-community-theme .profile-completeness-progress::-webkit-progress-bar {
    background:var(--portal-raised);
}
body.portal-page.portal-community-theme .profile-completeness-progress::-webkit-progress-value {
    background:var(--portal-accent);
}
body.portal-page.portal-community-theme .profile-completeness-progress::-moz-progress-bar {
    background:var(--portal-accent);
}
body.portal-page.portal-community-theme .activity-rating-card {
    --rating-line:var(--portal-border);
    --rating-accent:var(--portal-accent);
}
body.portal-page.portal-community-theme .activity-rating-stars svg {
    fill:#424751;
}
body.portal-page.portal-community-theme .activity-rating-stars svg.is-earned {
    fill:var(--portal-accent);
}
body.portal-page.portal-community-theme :is(.activity-rating-head p,.activity-rating-score span,.activity-rating-level,.activity-rating-metrics dt) {
    font-family:var(--font);
}
body.portal-page.portal-community-theme .activity-rating-score span {
    color:var(--portal-muted);
}

/* Friends, photo albums and menus. Photos themselves are left untouched. */
body.portal-page.portal-community-theme .friend-button {
    border-radius:8px;
    color:var(--portal-text);
    border-color:var(--portal-border);
    background:var(--portal-raised);
    font-family:var(--font);
    font-weight:600;
}
body.portal-page.portal-community-theme .friend-button:hover {
    color:var(--portal-accent);
    background:#2b3038;
    border-color:#464b55;
}
body.portal-page.portal-community-theme .friend-button-primary {
    background:var(--portal-accent);
    border-color:var(--portal-accent);
    color:#15171b;
}
body.portal-page.portal-community-theme .friend-button-primary:hover {
    background:var(--portal-accent-hover);
    border-color:var(--portal-accent-hover);
    color:#15171b;
}
body.portal-page.portal-community-theme .friend-button-quiet {
    color:var(--portal-muted);
    background:transparent;
}
body.portal-page.portal-community-theme .friend-card-compact .friend-button-quiet.friend-icon-action {
    background:var(--portal-raised);
    color:var(--portal-muted);
    border-color:var(--portal-border);
    border-radius:8px;
}
body.portal-page.portal-community-theme .friend-card-compact .friend-button-quiet.friend-icon-action:hover {
    color:var(--portal-accent);
    border-color:#464b55;
    background:#2b3038;
}
body.portal-page.portal-community-theme :is(.friend-directory-empty>.icon,.friend-name>a:hover) {
    color:var(--portal-accent);
}
body.portal-page.portal-community-theme :is(.profile-album,.profile-photo-tile,.profile-upload-card,.community-order-item,.profile-photo-delete form,.profile-album-settings,.profile-photo-effects) {
    border-color:var(--portal-border);
    border-radius:10px;
    background:var(--portal-panel);
    color:var(--portal-text);
}
body.portal-page.portal-community-theme :is(.profile-album:hover,.profile-album[aria-current="page"],.community-order-item.is-drop-target) {
    border-color:var(--portal-accent);
    background:var(--portal-raised);
}
body.portal-page.portal-community-theme :is(.profile-album p,.profile-photo-delete p,.profile-album-description,.profile-photo-rotate>span,.community-order-name) {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme :is(.profile-photo-stage,.profile-photo-preview,.community-photo-dialog-stage,.community-photo-preview,.community-wall-cover-preview,.community-order-preview) {
    background:var(--portal-bg)!important;
    border-color:var(--portal-border)!important;
    border-radius:10px;
}
body.portal-page.portal-community-theme :is(.profile-photo-effect-options label>span,.community-video-format label,.community-attach,.community-order-actions>button,.community-order-replace) {
    background:var(--portal-raised)!important;
    color:#b7bdc7!important;
    border-color:var(--portal-border)!important;
    border-radius:8px;
}
body.portal-page.portal-community-theme :is(.profile-photo-effect-options input:checked+span,.community-video-format label:has(input:checked),.community-video-sources button[aria-selected="true"]) {
    color:var(--portal-accent)!important;
    background:#f5a53b14!important;
    border-color:#f5a53b40!important;
}
body.portal-page.portal-community-theme :is(.community-photo-edit,.community-photo-compose-edit,.profile-upload-remove,.community-video-expand) {
    background:var(--portal-raised);
    color:var(--portal-text);
    border-color:var(--portal-border);
    border-radius:8px;
}
body.portal-page.portal-community-theme :is(.avatar-menu-panel,.avatar-delete-dialog,.community-post-menu-panel,.community-video-options,.community-video-sources,.community-photo-dialog,.friend-manage>form,.community-wall-cover,.community-video-search-preview) {
    background:var(--portal-panel)!important;
    color:var(--portal-text)!important;
    border-color:var(--portal-border)!important;
    border-radius:14px;
    box-shadow:0 16px 44px #0005;
}
body.portal-page.portal-community-theme :is(.avatar-menu-panel>a,.avatar-menu-panel>button,.avatar-menu-vk-refresh>button,.community-post-menu-panel>a,.community-post-menu-panel>button,.community-post-menu-panel>form>button,.community-post-editor>summary,.community-video-sources button) {
    color:#c9cdd4;
    background:transparent;
    border-color:var(--portal-border);
    border-radius:8px;
    font-family:var(--font);
}
body.portal-page.portal-community-theme :is(.avatar-menu-panel>a,.avatar-menu-panel>button,.avatar-menu-vk-refresh>button,.community-post-menu-panel>a,.community-post-menu-panel>button,.community-post-menu-panel>form>button,.community-post-editor>summary,.community-video-sources button):hover {
    color:var(--portal-accent);
    background:var(--portal-raised);
}
body.portal-page.portal-community-theme :is(.avatar-menu-panel .avatar-menu-danger,.avatar-menu-panel .avatar-menu-danger svg,.community-post-menu .community-post-delete) {
    color:#ed9b94;
}
body.portal-page.portal-community-theme :is(.avatar-delete-dialog h2,.community-video-search-preview strong,.community-video-search-site) {
    color:var(--portal-text);
    font-family:var(--font);
}
body.portal-page.portal-community-theme :is(.avatar-delete-dialog p,.avatar-menu-hint,.community-video-search-url,.community-video-search-preview p) {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme :is(.community-photo-dialog-close,.community-photo-dialog-arrow,.community-post-menu>summary,.community-post-action) {
    background:var(--portal-raised)!important;
    color:#b7bdc7!important;
    border-color:var(--portal-border)!important;
    border-radius:8px;
}
body.portal-page.portal-community-theme :is(.community-post-action:hover,.community-post-action[aria-expanded="true"],.community-post-menu>summary:hover,.community-post-menu[open]>summary) {
    color:var(--portal-accent)!important;
    background:#f5a53b14!important;
    border-color:#f5a53b40!important;
}
body.portal-page.portal-community-theme .community-photo-dialog::backdrop,
body.portal-page.portal-community-theme .avatar-delete-dialog::backdrop {
    background:#080a0de0;
}

/* Wall comments and their rich editor inherit the same neutral chrome. */
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.pb-comments,.cm-thread-heading,.cm-sort,.cm-editor-note) {
    color:var(--portal-muted);
    border-color:var(--portal-border);
    font-family:var(--font);
}
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.cm-item,.cm-empty,.cm-login,.cm-compose,.cm-compose-reply,.cm-delete form,.cm-edit>form,.cm-rich-compact .pc-visual-wrap) {
    background:var(--portal-panel)!important;
    color:#c9cdd4!important;
    border-color:var(--portal-border)!important;
    border-radius:10px;
    box-shadow:none;
}
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.cm-thread-heading h2,.cm-compose-heading h3,.cm-empty h2,.cm-empty h3,.cm-login h3,.cm-author a) {
    color:var(--portal-text);
    font-family:var(--font);
    font-weight:700;
}
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.cm-date,.cm-parent,.cm-empty p,.cm-login p,.cm-readonly,.cm-compose-heading p,.cm-editor-note,.cm-count,.cm-edit-footer p,.cm-compose-footer p) {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.cm-body,.pc-visual-input) {
    color:#c9cdd4;
}
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.cm-text-button,.cm-edit>summary,.cm-parent a,.cm-body a,.cm-author a:hover) {
    color:var(--portal-accent);
}
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.cm-avatar,.cm-reply-hint,.cm-body blockquote) {
    color:#b7bdc7!important;
    background:var(--portal-raised)!important;
    border-color:var(--portal-border)!important;
    border-radius:8px;
}
body.portal-page.portal-community-theme :is(.community,.pa-account) .cm-own {
    background:#f5a53b14!important;
    border-color:#f5a53b40!important;
    color:var(--portal-accent)!important;
}
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.cm-send-button,.cm-send-button:hover) {
    color:#15171b;
    background:var(--portal-accent);
    border-color:var(--portal-accent);
    border-radius:8px;
}
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.cm-delete>summary,.cm-delete-button) {
    color:#ed9b94;
}
body.portal-page.portal-community-theme :is(.community,.pa-account) .cm-status-approved {
    color:#8bc8a7;
}
body.portal-page.portal-community-theme :is(.community,.pa-account) .cm-status-rejected {
    color:#ed9b94;
}

/* Notifications: keep unread state distinct without light cyan rows. */
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.pc-editor-switch,.pc-rich-toolbar) {
    background:var(--portal-raised);
    color:var(--portal-text);
    border-color:var(--portal-border);
}
body.portal-page.portal-community-theme :is(.community,.pa-account) :is(.pc-editor-switch button,.pc-rich-toolbar button) {
    color:#b7bdc7;
    background:var(--portal-panel);
    border-color:var(--portal-border);
    border-radius:6px;
    font-family:var(--font);
}
body.portal-page.portal-community-theme :is(.community,.pa-account) .pc-editor-switch button[aria-pressed="true"] {
    color:var(--portal-accent);
    background:#f5a53b14;
    border-color:#f5a53b40;
}
body.portal-page.portal-community-theme :is(.community,.pa-account) .pc-visual-input {
    background:var(--portal-bg);
    color:var(--portal-text);
    font-family:var(--font);
}

/* Photo editor chrome is themed independently from the authored canvas. */
body.portal-page.portal-community-theme .pe-dialog {
    --pe-ink:var(--portal-text);
    --pe-muted:var(--portal-muted);
    --pe-line:var(--portal-border);
    --pe-accent:var(--portal-accent);
    color:var(--portal-text);
    background:var(--portal-panel);
    border-color:var(--portal-border);
    border-radius:14px;
    font-family:var(--font);
}
body.portal-page.portal-community-theme .pe-dialog :is(h2,h3,button,input,select,textarea,.pe-dimensions) {
    font-family:var(--font);
}
body.portal-page.portal-community-theme .pe-dialog :is(h2,h3) {
    color:var(--portal-text);
    font-weight:700;
}
body.portal-page.portal-community-theme .pe-dialog :is(.pe-header,.pe-sidebar,.pe-footer,.pe-filter-toolbar) {
    background:var(--portal-panel);
    border-color:var(--portal-border);
}
body.portal-page.portal-community-theme .pe-dialog :is(.pe-preview,.pe-viewport,.pe-filter-preview-frame) {
    background:var(--portal-bg);
    border-color:var(--portal-border);
}
body.portal-page.portal-community-theme .pe-dialog :is(button,.pe-filter-search,.pe-active-filter,.pe-filter-card,.pe-field input,.pe-field select,.pe-field textarea,.pe-panel .pe-filter-empty,.pe-header .pe-icon-button,.pe-header .pe-dimensions,.pe-filter-preview-badge,.pe-dialog .pe-download) {
    color:var(--portal-text);
    background:var(--portal-raised);
    border-color:var(--portal-border);
    border-radius:8px;
}
body.portal-page.portal-community-theme .pe-dialog button:hover:not(:disabled) {
    background:#2b3038;
    border-color:#464b55;
}
body.portal-page.portal-community-theme .pe-dialog :is(.pe-tabs button[aria-selected="true"],button[aria-pressed="true"],.pe-filter-card.is-active,.pe-filter-card:has(.pe-filter-choice[aria-pressed="true"]),.pe-auto) {
    color:var(--portal-accent);
    background:#f5a53b14;
    border-color:#f5a53b40;
}
body.portal-page.portal-community-theme .pe-dialog :is(.pe-filter-search input,.pe-filters .pe-filter-choice) {
    background:transparent;
    color:var(--portal-text);
}
body.portal-page.portal-community-theme .pe-dialog :is(.pe-active-filter strong,.pe-active-filter>output,.pe-filter-strength output,.pe-count) {
    color:var(--portal-accent);
}
body.portal-page.portal-community-theme .pe-dialog :is(.pe-range output,.pe-active-filter small,.pe-filter-description,.pe-filter-strength>span,.pe-filter-search>svg) {
    color:var(--portal-muted);
}
body.portal-page.portal-community-theme .pe-dialog :is(.pe-count,.pe-filter-check) {
    background:var(--portal-raised);
}
body.portal-page.portal-community-theme .pe-dialog .pe-save,
body.portal-page.portal-community-theme .pe-dialog .pe-save:hover:not(:disabled) {
    color:#15171b;
    background:var(--portal-accent);
    border-color:var(--portal-accent);
}
body.portal-page.portal-community-theme .pe-dialog .pe-danger,
body.portal-page.portal-community-theme .pe-dialog .pe-status.is-error {
    color:#ed9b94;
    background:transparent;
}
body.portal-page.portal-community-theme .pe-dialog :focus-visible {
    outline-color:var(--portal-accent);
}
body.portal-page.portal-community-theme .pe-dialog::backdrop {
    background:#080a0de0;
}

body.portal-page.portal-community-theme :is(.site-notifications-all,.site-notifications-page .site-notifications-item,.site-notifications-panel,.site-notifications-panel>header) {
    background:var(--portal-panel)!important;
    color:var(--portal-text)!important;
    border-color:var(--portal-border)!important;
}
body.portal-page.portal-community-theme :is(.site-notifications-page,.site-notifications-panel) .site-notifications-item.is-unread {
    background:#f5a53b0b;
    border-color:var(--portal-border);
}
body.portal-page.portal-community-theme :is(.site-notifications-page,.site-notifications-panel) :is(.site-notifications-item-title:hover,.site-notifications-read,.site-notifications-more) {
    color:var(--portal-accent);
}

@media(max-width:700px) {
    body.portal-page.portal-community-theme .pa-community-account .pa-account-sidebar {
        padding:18px;
        border-radius:14px;
    }
    body.portal-page.portal-community-theme .pa-community-account .avatar-menu-trigger {
        border-radius:10px;
    }
    body.portal-page.portal-community-theme :is(.pa-account-panel,.community-card,.friend-widget,.friend-directory) {
        padding:18px;
        border-radius:14px;
    }
    body.portal-page.portal-community-theme .community-profile-head {
        padding:22px 18px;
        border-radius:14px;
    }
    body.portal-page.portal-community-theme .pa-account-heading h1 {
        font-size:28px;
    }
}

/* Explicit avatar chrome avoids the legacy light background at rounded corners. */
body.portal-page.portal-community-theme .avatar-menu-trigger {
    background:var(--portal-raised)!important;
    border-radius:10px;
}
body.portal-page.portal-community-theme .avatar-menu-widget--profile .avatar-menu-trigger {
    border-radius:10px;
}
body.portal-page.portal-community-theme .avatar-menu-hint {
    background:linear-gradient(transparent,#111316ed);
    color:var(--portal-text);
    font-family:var(--font);
    font-weight:600;
}
body.portal-page.portal-community-theme :is(.avatar-story-add,.community-story-add) {
    color:#15171b!important;
    background:var(--portal-accent)!important;
    border-color:var(--portal-panel)!important;
    box-shadow:0 3px 9px #0004;
}
body.portal-page.portal-community-theme .community-link {
    color:var(--portal-accent)!important;
    font-family:var(--font);
    font-weight:600;
}
body.portal-page.portal-community-theme :is(.community-back,.pa-sidebar-catalog) {
    color:var(--portal-accent)!important;
}
body.portal-page.portal-community-theme .avatar-menu-panel svg {
    color:var(--portal-accent);
}
body.portal-page.portal-community-theme .avatar-menu-panel .avatar-menu-danger svg {
    color:#ed9b94;
}
body.portal-page.portal-community-theme .community-photo-discuss {
    background:var(--portal-raised);
    color:var(--portal-accent)!important;
    box-shadow:0 2px 10px #0004;
}
