
/* chatfox-editor-design-v2 */
[data-testid="profile-editor-page"] {
    color: #243f60;
    color-scheme: light;
    min-width: 0;
}
[data-testid="profile-editor-page"] .content-area {
    padding: 24px !important;
    min-width: 0;
}
[data-testid="profile-editor-page"] .max-w-4xl {
    max-width: 1120px !important;
    width: 100%;
    min-width: 0;
}
[data-testid="profile-editor-page"] .grid > * {
    min-width: 0;
}
[data-testid="profile-editor-page"] .cf-editor-general {
    background: #fff;
    border: 1px solid #d5e2f1;
    border-radius: 16px;
    padding: 20px 24px;
}
[data-testid="profile-editor-page"] .cf-editor-general-title {
    cursor: pointer;
    color: #294d76;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.5;
}
[data-testid="profile-editor-page"] .cf-editor-general[open]
.cf-editor-general-title {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2ebf5;
}
[data-testid="profile-editor-page"] .cf-editor-general > div + div {
    margin-top: 16px;
}
[data-testid="profile-editor-page"] .cf-editor-ua-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}
[data-testid="profile-editor-page"] .cf-editor-ua-tools button {
    background: #edf5ff !important;
    color: #22588e !important;
    -webkit-text-fill-color: #22588e !important;
    border: 1px solid #bed5f1 !important;
    border-radius: 10px !important;
    padding: 10px 15px !important;
    min-height: 42px;
    font-size: 14px !important;
    font-weight: 600;
    opacity: 1 !important;
    cursor: pointer;
}
[data-testid="profile-editor-page"] .cf-editor-ua-tools button:hover {
    background: #deedff !important;
}
[data-testid="profile-editor-page"] .cf-editor-ua-tools p {
    flex: 0 0 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.6;
}
[data-testid="profile-editor-page"] textarea {
    width: 100%;
    min-width: 0;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
}
[data-testid="profile-editor-page"] .cf-editor-platform {
    display: block;
    width: 100%;
    margin-top: 4px;
    min-height: 46px;
    padding: 10px 12px;
    background: #f8fbff;
    color: #243f60;
    border: 1px solid #cbdcf0;
    border-radius: 10px;
    font-size: 14px;
    color-scheme: light;
}
[data-testid="profile-editor-page"] [role="switch"] {
    background: #8194ac !important;
    border: 1px solid #70849d !important;
    opacity: 1 !important;
}
[data-testid="profile-editor-page"] [role="switch"][data-state="checked"] {
    background: #1686ed !important;
    border-color: #1686ed !important;
}
[data-testid="profile-editor-page"] [role="switch"] > span {
    background: #fff !important;
    box-shadow: 0 1px 4px #0003;
}
[data-testid="profile-editor-page"] :is(button,select,summary):focus-visible {
    outline: 2px solid #2689ed;
    outline-offset: 3px;
}

/* Меню Radix находятся вне контейнера редактора. */
body:has([data-testid="profile-editor-page"]) [role="listbox"] {
    background: #fff !important;
    color: #243f60 !important;
    border: 1px solid #ccdcef !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px #294d7626 !important;
}
body:has([data-testid="profile-editor-page"]) [role="option"] {
    color: #243f60 !important;
    background: #fff !important;
    min-height: 38px;
}
body:has([data-testid="profile-editor-page"])
[role="option"]:is([data-highlighted],[aria-selected="true"]) {
    background: #eaf3ff !important;
    color: #1469bd !important;
}
@media (max-width: 760px) {
    [data-testid="profile-editor-page"] .content-area {
        padding: 12px !important;
    }
    [data-testid="profile-editor-page"] .cf-editor-general {
        padding: 18px;
    }
    [data-testid="profile-editor-page"] .grid {
        grid-template-columns: minmax(0,1fr) !important;
    }
}
