.vk-chat {
    --vk-chat-green: #1f8f58;
    --vk-chat-blue: #2d74ad;
    --vk-chat-light-blue: #78bde8;
    --vk-chat-gray: #59625c;
    --vk-chat-orange: #e8942f;
    width: 100%;
    max-width: 900px;
    margin: 0;
    border: 1px solid #d5e1d2;
    border-radius: 8px;
    background: #fff;
    color: #151a16;
    --vk-chat-message-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-family: "Courgette", cursive;
    overflow: hidden;
}

#vk-auth-scope .vk-chat {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 !important;
}

.vk-chat button,
.vk-chat h2,
.vk-chat h3,
.vk-chat textarea,
.vk-chat input {
    font-family: inherit;
}

.vk-chat[hidden],
.vk-chat [hidden] {
    display: none !important;
}

.vk-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 14px 18px;
    border-bottom: 1px solid #dde6da;
}

.vk-chat__header-copy {
    width: 100%;
    min-width: 0;
}

.vk-chat__title--team {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 6px;
}

.vk-chat__team-greeting {
    white-space: nowrap;
}

.vk-chat__team {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.vk-chat__team-message {
    white-space: nowrap;
}

.vk-chat__team-member {
    display: inline-grid;
    justify-items: center;
    gap: 3px;
    flex: 0 0 auto;
    min-width: 44px;
    max-width: 58px;
}

.vk-chat__team-separator {
    align-self: center;
    white-space: nowrap;
}

.vk-chat__team-separator.is-comma {
    margin-left: -6px;
}

.vk-chat__team-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #e7f1e9;
    color: #356943;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 0 0 1px #cddccc;
    overflow: hidden;
}

.vk-chat__team-avatar img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 50%;
}

.vk-chat__team-name {
    display: block;
    width: 100%;
    color: #111111;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.vk-chat__title,
.vk-chat__conversation-header h3 {
    margin: 0;
    color: #111;
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.vk-chat__title {
    font-size: 20px;
}

.vk-chat__subtitle {
    margin: 4px 0 0;
    color: #5c655e;
    font-size: .9rem;
}

.vk-chat__staff-tabs {
    display: inline-flex;
    gap: 2px;
    margin-top: 10px;
    padding: 2px;
    border: 1px solid #d8dfd6;
    border-radius: 6px;
    background: #fff;
    font-family: "Courgette", cursive;
}

.vk-chat__staff-tabs button {
    min-width: 92px;
    padding: 6px 12px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-family: "Courgette", cursive !important;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
}

.vk-chat__staff-tabs button:hover,
.vk-chat__staff-tabs button:focus-visible,
.vk-chat__staff-tabs button.is-active {
    background: #b4bb6b;
    color: #111;
    box-shadow: none;
}

.vk-chat.is-broadcast-mode .vk-chat__rooms,
.vk-chat.is-broadcast-mode .vk-chat__placeholder,
.vk-chat.is-broadcast-mode .vk-chat__conversation,
.vk-chat.is-broadcast-mode .vk-chat__new-room {
    display: none !important;
}

.vk-broadcast__sidebar,
.vk-broadcast__main {
    box-sizing: border-box;
    min-width: 0;
    font-family: var(--vk-chat-message-font) !important;
    font-style: normal;
    letter-spacing: 0;
}

.vk-broadcast__main h3,
.vk-broadcast__main h4,
.vk-broadcast__main h5,
.vk-broadcast__main p,
.vk-broadcast__main label,
.vk-broadcast__main legend,
.vk-broadcast__main button,
.vk-broadcast__main input,
.vk-broadcast__main select,
.vk-broadcast__main textarea,
.vk-broadcast__poll-dialog,
.vk-broadcast__poll-dialog h3,
.vk-broadcast__poll-dialog label,
.vk-broadcast__poll-dialog legend,
.vk-broadcast__poll-dialog button,
.vk-broadcast__poll-dialog input,
.vk-broadcast__poll-dialog textarea,
.vk-broadcast__segment-dialog,
.vk-broadcast__segment-dialog h3,
.vk-broadcast__segment-dialog button,
.vk-broadcast__segment-dialog p,
.vk-broadcast__segment-dialog code {
    font-family: var(--vk-chat-message-font) !important;
    font-style: normal;
    letter-spacing: 0;
}

.vk-broadcast__sidebar {
    padding: 14px 10px;
    border-right: 1px solid #dde4dc;
}

.vk-broadcast__sidebar-header,
.vk-broadcast__main-header,
.vk-broadcast__section-title,
.vk-broadcast__audience-summary,
.vk-broadcast__submit-row,
.vk-broadcast__composer-actions,
.vk-broadcast__dialog-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vk-broadcast__sidebar-header {
    justify-content: space-between;
    margin-bottom: 10px;
}

.vk-broadcast__sidebar h3,
.vk-broadcast__main h3,
.vk-broadcast__main h4,
.vk-broadcast__main h5 {
    margin: 0;
    color: #111;
    font-family: var(--vk-chat-message-font);
    letter-spacing: 0;
}

.vk-broadcast__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

#vk-auth-scope button.vk-broadcast__list-item {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    min-height: 64px;
    margin: 0 !important;
    padding: 9px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e7e2 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111 !important;
    font-family: var(--vk-chat-message-font) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25;
    text-align: left;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

#vk-auth-scope button.vk-broadcast__list-item:last-child {
    border-bottom: 0 !important;
}

#vk-auth-scope button.vk-broadcast__list-item:hover,
#vk-auth-scope button.vk-broadcast__list-item:focus-visible {
    background: #f3f5f2 !important;
    color: #111 !important;
}

#vk-auth-scope button.vk-broadcast__list-item.is-active,
#vk-auth-scope button.vk-broadcast__list-item[aria-pressed="true"],
#vk-auth-scope button.vk-broadcast__list-item.is-active:hover,
#vk-auth-scope button.vk-broadcast__list-item.is-active:focus-visible,
#vk-auth-scope button.vk-broadcast__list-item[aria-pressed="true"]:hover,
#vk-auth-scope button.vk-broadcast__list-item[aria-pressed="true"]:focus-visible {
    background: #e9ece8 !important;
    color: #111 !important;
}

#vk-auth-scope button.vk-broadcast__list-item.is-draft {
    background: #f2f4df !important;
}

#vk-auth-scope button.vk-broadcast__list-item.is-draft:hover,
#vk-auth-scope button.vk-broadcast__list-item.is-draft:focus-visible {
    background: #e8eccb !important;
}

#vk-auth-scope button.vk-broadcast__list-item.is-draft.is-active,
#vk-auth-scope button.vk-broadcast__list-item.is-draft[aria-pressed="true"],
#vk-auth-scope button.vk-broadcast__list-item.is-draft.is-active:hover,
#vk-auth-scope button.vk-broadcast__list-item.is-draft[aria-pressed="true"]:hover {
    background: #dce2ae !important;
}

#vk-auth-scope button.vk-broadcast__list-item:focus-visible {
    outline: 2px solid #aeb9ad !important;
    outline-offset: 2px;
}

.vk-broadcast__list-top,
.vk-broadcast__list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vk-broadcast__list-top strong {
    min-width: 0;
    color: #111 !important;
    font-family: var(--vk-chat-message-font) !important;
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vk-broadcast__list-top time,
.vk-broadcast__list-meta {
    color: #5c655e !important;
    font-family: var(--vk-chat-message-font) !important;
    font-weight: 400 !important;
}

.vk-broadcast__list-top time {
    flex: 0 0 auto;
    font-size: .76rem;
}

.vk-broadcast__list-meta {
    margin-top: 3px;
    font-size: .86rem;
    line-height: 1.3;
}

.vk-broadcast__status {
    display: inline-flex;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: inherit !important;
    font: inherit;
    font-weight: 400;
}

.vk-broadcast__status.is-running,
.vk-broadcast__status.is-queued {
    background: transparent !important;
    color: inherit !important;
}

.vk-broadcast__status.is-completed {
    background: transparent !important;
    color: inherit !important;
}

.vk-broadcast__status.is-completed_errors,
.vk-broadcast__status.is-withdrawn {
    background: transparent !important;
    color: inherit !important;
}

.vk-broadcast__main {
    background: #f7f9f6;
}

.vk-broadcast__empty {
    display: grid;
    place-content: center;
    height: 100%;
    min-height: 420px;
    padding: 24px;
    color: #5c655e;
    text-align: center;
}

.vk-broadcast__empty strong {
    color: #202722;
    font-size: 18px;
}

.vk-broadcast__empty p,
.vk-broadcast__main-header p {
    margin: 4px 0 0;
    color: #667069;
    font-size: 13px;
}

.vk-broadcast__main-header {
    min-height: 58px;
    padding: 10px 16px;
    border-bottom: 1px solid #dde4dc;
    background: #fff;
}

.vk-broadcast__main-header .vk-broadcast__copy-action {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    margin: 0 0 0 auto;
    white-space: nowrap;
}

.vk-broadcast__header-name {
    display: grid;
    flex: 0 1 360px;
    gap: 3px;
    width: min(360px, 48%);
    margin-left: auto;
}

.vk-broadcast__header-name > span {
    color: #343b36;
    font-family: var(--vk-chat-message-font);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

#vk-auth-scope .vk-broadcast__header-name > input {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #bfc9bd;
    border-radius: 5px;
    background: #fff;
    color: #111;
    font-family: var(--vk-chat-message-font);
    font-size: 14px;
}

.vk-chat.is-broadcast-editor-open .vk-broadcast__main-header h3 {
    font-family: "Courgette", cursive !important;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

.vk-broadcast__editor-scroll,
.vk-broadcast__detail-scroll {
    box-sizing: border-box;
    padding: 14px;
}

.vk-broadcast__editor-scroll {
    height: auto;
    min-height: 0;
    overflow: visible;
}

.vk-broadcast__detail-scroll {
    height: calc(min(640px, 68vh) - 58px);
    min-height: 0;
    overflow-y: auto;
}

.vk-broadcast__section {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #dfe6dd;
    border-radius: 6px;
    background: #fff;
}

.vk-broadcast__channel-section {
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.vk-broadcast__channel-section.is-enabled {
    border-color: #a9c79d;
    background: #f0f8ed;
    box-shadow: inset 3px 0 0 #83ad74;
}

.vk-broadcast__section-title {
    margin-bottom: 12px;
}

.vk-chat.is-broadcast-editor-open .vk-broadcast__section-title h4 {
    font-family: "Courgette", cursive !important;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
}

.vk-broadcast__section-title > span {
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #b8bd6b;
    color: #111;
    font-family: "Courgette", cursive !important;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.vk-broadcast__section-title > strong {
    margin-left: auto;
    color: #536057;
    font-size: 13px;
}

.vk-broadcast__filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

.vk-broadcast__segment-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 34px;
    gap: 7px;
    align-items: end;
    min-width: 0;
}

.vk-broadcast__segment-filter > label {
    min-width: 0;
}

.vk-broadcast__segment-filter > .vk-broadcast__secondary {
    align-self: end;
    width: auto;
    white-space: nowrap;
}

.vk-broadcast__segment-filter > .vk-broadcast__inline-status {
    grid-column: 1 / -1;
}

#vk-auth-scope .vk-broadcast__segment-help {
    display: inline-grid !important;
    place-items: center;
    align-self: end;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #c9d2c7 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #4f5952 !important;
    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer;
}

#vk-auth-scope .vk-broadcast__segment-help:hover,
#vk-auth-scope .vk-broadcast__segment-help:focus-visible {
    border-color: #b4bb6b !important;
    background: #b4bb6b !important;
    color: #111 !important;
    outline: 0;
}

.vk-broadcast__form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.vk-broadcast__filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    min-width: 0;
}

.vk-broadcast__filter-row > button {
    align-self: end;
}

.vk-broadcast__filter-context {
    align-self: end;
    padding: 0 2px 9px;
    color: #59635b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
}

.vk-broadcast__filters label,
.vk-broadcast__form-grid label,
.vk-broadcast__channel-fields label,
.vk-broadcast__channel-field,
.vk-broadcast__poll-form > label {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: #303832;
    font-size: 12px;
    font-weight: 650;
}

.vk-broadcast__filters label.is-wide,
.vk-broadcast__form-grid label.is-wide {
    grid-column: 1 / -1;
}

.vk-broadcast__communication-types {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.vk-broadcast__communication-types > legend {
    margin: 0 0 6px;
    padding: 0;
    color: #303832;
    font-size: 12px;
    font-weight: 650;
}

.vk-broadcast__communication-options {
    overflow: hidden;
    border: 1px solid #d9e0d6;
    border-radius: 7px;
    background: #fff;
}

.vk-broadcast__communication-option {
    display: grid;
    grid-template-columns: minmax(210px, .8fr) minmax(0, 1.6fr);
    gap: 18px;
    align-items: start;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e9e2;
}

.vk-broadcast__communication-option:last-child {
    border-bottom: 0;
}

.vk-broadcast__form-grid .vk-broadcast__communication-option > label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: #18201a;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

#vk-auth-scope .vk-broadcast__communication-option input[type="radio"] {
    flex: 0 0 18px;
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: #7a263a;
    box-shadow: none !important;
}

.vk-broadcast__communication-option > p {
    margin: 0;
    color: #59635b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.42;
}

.vk-broadcast__communication-types > .vk-broadcast__hint {
    margin: 7px 0 0;
}

.vk-broadcast__filter-override {
    margin: 6px 0 10px;
    color: #59635b;
    font-size: 12px;
}

.vk-broadcast__filter-override > label {
    display: flex;
    gap: 6px;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

#vk-auth-scope .vk-broadcast__filter-override input[type="checkbox"] {
    flex: 0 0 15px;
    width: 15px;
    min-height: 15px;
    height: 15px;
    margin: 0;
    padding: 0;
    accent-color: #6f7f58;
}

.vk-broadcast__filter-override-warning {
    display: none;
    margin: 6px 0 0 21px;
    color: #8a2c2c;
    font-size: 12px;
    line-height: 1.4;
}

.vk-broadcast__filter-override:has(input[type="checkbox"]:checked) .vk-broadcast__filter-override-warning {
    display: block;
}

.vk-broadcast__filter-override.is-active {
    margin: 0 0 16px;
    padding: 7px 9px;
    border: 1px solid #d9ddd9;
    border-radius: 5px;
    background: #f6f7f6;
}

.vk-broadcast__main input,
.vk-broadcast__main select,
.vk-broadcast__main textarea,
.vk-broadcast__poll-dialog input,
.vk-broadcast__poll-dialog textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #ccd6c9;
    border-radius: 5px;
    background: #fff;
    color: #111;
    font-family: var(--vk-chat-message-font) !important;
    font-size: 14px !important;
    line-height: 1.35;
    box-shadow: none !important;
}

.vk-broadcast__main input::placeholder,
.vk-broadcast__main textarea::placeholder,
.vk-broadcast__poll-dialog input::placeholder,
.vk-broadcast__poll-dialog textarea::placeholder {
    font-size: 14px;
}

.vk-broadcast__main textarea,
.vk-broadcast__poll-dialog textarea {
    resize: vertical;
}

.vk-broadcast__secondary {
    min-height: 40px;
    padding: 7px 14px;
    border: 1px solid #00000080 !important;
    border-radius: 6px !important;
    background: #00000080 !important;
    color: #fff !important;
    font-family: "Courgette", cursive !important;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 1.2;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

.vk-broadcast__secondary:hover,
.vk-broadcast__secondary:focus-visible {
    border-color: #b4bb6b !important;
    background: #b4bb6b !important;
    color: #111 !important;
}

.vk-broadcast__secondary:disabled {
    opacity: .55;
    cursor: default;
}

.vk-broadcast__danger button {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #c9d2c7;
    border-radius: 5px;
    background: #fff;
    color: #242a26;
    font-family: var(--vk-chat-message-font) !important;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.vk-broadcast__filters > button {
    align-self: end;
}

.vk-broadcast__audience-summary {
    justify-content: space-between;
    margin: 12px 0 6px;
}

.vk-broadcast__audience {
    max-height: 300px;
    border: 1px solid #dfe5dd;
    border-radius: 5px;
    overflow: auto;
}

.vk-broadcast__selected-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -4px 0 8px;
}

.vk-broadcast__selected-actions .vk-broadcast__secondary {
    min-height: 36px;
    padding-block: 5px;
}

.vk-broadcast__selected {
    max-height: 340px;
    border: 1px solid #dfe5dd;
    border-radius: 5px;
    overflow: auto;
}

.vk-broadcast__customer-table {
    width: 100%;
    min-width: 940px;
    border: 0;
    border-collapse: collapse;
    background: #fff;
    color: #242a26;
    font-family: var(--vk-chat-message-font);
    font-size: 14px;
    line-height: 1.3;
    table-layout: auto;
}

.vk-broadcast__customer-table th,
.vk-broadcast__customer-table td {
    padding: 7px 9px;
    border-bottom: 1px solid #e4e9e3;
    vertical-align: middle;
    text-align: left;
    white-space: nowrap;
}

.vk-broadcast__customer-table thead th {
    position: sticky;
    z-index: 1;
    top: 0;
    background: #f1f3ef;
    color: #303731;
    font-weight: 700;
}

.vk-broadcast__customer-table .vk-broadcast__sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: inherit;
    gap: 4px;
    min-height: 24px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: #303731 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    box-shadow: none !important;
    cursor: pointer;
    white-space: nowrap;
}

.vk-broadcast__customer-table .is-number .vk-broadcast__sort-button {
    margin-left: auto;
}

.vk-broadcast__customer-table .vk-broadcast__sort-button:hover,
.vk-broadcast__customer-table .vk-broadcast__sort-button:focus-visible {
    color: #7b8238 !important;
}

.vk-broadcast__sort-arrow {
    color: #7b8238;
    font-family: var(--vk-chat-message-font);
    font-size: 16px;
    line-height: 1;
}

.vk-broadcast__customer-table tbody tr:nth-child(even) {
    background: #f8f9f7;
}

.vk-broadcast__customer-table tbody tr:hover {
    background: #eef1e6;
}

.vk-broadcast__customer-table .is-check {
    box-sizing: border-box;
    width: 42px;
    min-width: 42px;
    text-align: center;
}

.vk-broadcast__customer-table .is-check input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    vertical-align: middle;
}

.vk-broadcast__customer-table .is-customer {
    min-width: 230px;
    white-space: normal;
}

.vk-broadcast__customer-table .is-number {
    text-align: right;
}

.vk-broadcast__customer-table strong,
.vk-broadcast__customer-table small,
.vk-broadcast__recipient-table strong,
.vk-broadcast__recipient-table small {
    display: block;
}

.vk-broadcast__customer-table small,
.vk-broadcast__recipient-table small {
    color: #6a736d;
    font-size: 14px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.vk-broadcast__customer-table .vk-broadcast__table-empty {
    padding: 18px;
    color: #68716b;
    text-align: center;
}

.vk-broadcast__draft-remove,
.vk-broadcast__dialog-header button {
    border: 0;
    background: transparent;
    color: #59625c;
    font-size: 19px;
    cursor: pointer;
}

.vk-broadcast__hint,
.vk-broadcast__draft-empty {
    margin: 4px 0 10px;
    color: #677169;
    font-size: 12px;
}

.vk-broadcast__draft {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-height: 90px;
    max-height: 300px;
    padding: 12px;
    background: #eeeae1;
    overflow-y: auto;
}

.vk-broadcast__draft-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.vk-broadcast__draft-bubble {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: fit-content;
    max-width: min(82%, 560px);
    margin: 0 !important;
    padding: 6px 8px 5px;
    border: 0 !important;
    border-radius: 7px !important;
    outline: 0;
    background: #d9fdd3 !important;
    color: #111;
    font-family: var(--vk-chat-message-font) !important;
    text-align: left;
    box-shadow: 0 1px 1px rgba(11, 20, 26, .13) !important;
    appearance: none;
    cursor: pointer;
}

.vk-broadcast__draft-bubble:focus-visible {
    outline: 3px solid rgba(31, 143, 88, .35);
    outline-offset: 2px;
}

.vk-broadcast__draft-bubble.is-image {
    padding: 4px 4px 5px;
    cursor: default;
}

.vk-broadcast__draft-bubble .vk-chat__message-body p::after {
    display: none;
}

.vk-broadcast__draft-media {
    max-width: min(100%, 340px) !important;
    cursor: default !important;
}

.vk-broadcast__draft-media img {
    object-fit: contain;
}

.vk-broadcast__poll-preview {
    width: min(320px, 100%);
    margin: 0;
}

.vk-broadcast__draft-bubble .vk-chat__poll-option {
    cursor: inherit;
}

#vk-auth-scope button.vk-broadcast__draft-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #59625c !important;
    font-family: var(--vk-chat-message-font) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    box-shadow: none !important;
    appearance: none;
}

#vk-auth-scope button.vk-broadcast__draft-remove:hover,
#vk-auth-scope button.vk-broadcast__draft-remove:focus-visible {
    background: rgba(11, 20, 26, .08) !important;
    color: #303731 !important;
}

.vk-broadcast__composer {
    padding: 10px;
    border: 1px solid #e0e6de;
    border-top: 0;
    background: #fff;
}

.vk-broadcast__emoji {
    display: flex;
    gap: 4px;
    margin-bottom: 7px;
    overflow-x: auto;
}

.vk-broadcast__emoji button {
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 19px;
    cursor: pointer;
}

.vk-broadcast__composer-actions {
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

#vk-auth-scope button.vk-broadcast__icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: #4b5450 !important;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

#vk-auth-scope button.vk-broadcast__icon-button:hover,
#vk-auth-scope button.vk-broadcast__icon-button:focus-visible {
    background: #e8eee7 !important;
}

.vk-broadcast__icon-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.vk-broadcast__composer-actions > .vk-broadcast__secondary,
.vk-broadcast__composer-actions > .vk-broadcast__add-text {
    box-sizing: border-box;
    width: auto !important;
    min-height: 40px !important;
    height: 40px;
    margin: 0 !important;
    padding: 7px 14px !important;
}

.vk-broadcast__add-text {
    width: auto;
    margin: 0;
    padding: 7px 12px;
}

.vk-broadcast__inline-status,
.vk-broadcast__submit-row > [data-broadcast-submit-status],
.vk-broadcast__dialog-error {
    display: block;
    margin-top: 6px;
    color: #9b2929;
    font-size: 12px;
}

.vk-broadcast__submit-row > [data-broadcast-save-status] {
    margin-right: auto;
    color: #5c655e;
    font-family: var(--vk-chat-message-font);
    font-size: 12px;
}

.vk-broadcast__submit-row > [data-broadcast-save-status].is-error {
    color: #9b2929;
}

.vk-broadcast__effects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.vk-broadcast__channel-fields {
    display: grid;
    gap: 10px;
}

.vk-broadcast__email-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.vk-broadcast__email-tools > span {
    color: #5c655e;
    font-size: 12px;
    line-height: 1.4;
}

.vk-broadcast__email-tools code {
    font-size: 11px;
}

.vk-broadcast__channel-field {
    margin-top: 10px;
}

.vk-broadcast__effects fieldset,
.vk-broadcast__poll-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid #dfe6dd;
    border-radius: 5px;
}

.vk-broadcast__effects legend,
.vk-broadcast__poll-form legend {
    padding: 0 4px;
    color: #202722;
    font-size: 13px;
    font-weight: 700;
}

.vk-broadcast__rewards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 8px;
}

.vk-broadcast__channel-section[data-broadcast-channel-section="reward"] .vk-broadcast__rewards {
    grid-template-columns: repeat(2, minmax(0, 145px));
    justify-content: start;
    gap: 8px 12px;
    max-width: 302px;
}

.vk-broadcast__reward-field {
    display: grid;
    gap: 3px;
    width: 145px;
    min-width: 0;
}

.vk-broadcast__reward-field.is-credit {
    grid-column: 1;
}

.vk-broadcast__reward-label {
    display: flex;
    gap: 4px;
    align-items: center;
    color: #465048;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.vk-broadcast__reward-symbol {
    font-size: 12px;
    line-height: 1;
}

#vk-auth-scope .vk-broadcast__reward-field input[data-broadcast-reward] {
    width: 145px;
    max-width: 145px;
}

.vk-broadcast__submit-row {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    position: sticky;
    bottom: -14px;
    z-index: 2;
    margin: 0 -14px -14px;
    padding: 10px 14px;
    border-top: 1px solid #dfe6dd;
    background: rgba(255, 255, 255, .96);
}

.vk-broadcast__submit-row .vk-chat__primary {
    width: auto;
    margin: 0;
}

.vk-broadcast__submit-row .vk-broadcast__secondary {
    width: auto;
    margin: 0;
}

.vk-chat [data-broadcast-new],
.vk-broadcast__main .vk-chat__primary,
.vk-broadcast__poll-dialog .vk-chat__primary,
.vk-chat.is-broadcast-editor-open .vk-broadcast__main-header .vk-chat__back {
    border-color: #00000080 !important;
    background: #00000080 !important;
    color: #fff !important;
    font-family: "Courgette", cursive !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
}

.vk-broadcast__main button,
.vk-broadcast__poll-dialog button {
    font-family: "Courgette", cursive !important;
    font-size: 18px !important;
    font-weight: 400;
}

.vk-broadcast__main .vk-broadcast__draft-bubble {
    font-family: var(--vk-chat-message-font) !important;
    font-size: 13px !important;
}

.vk-chat [data-broadcast-new]:hover,
.vk-chat [data-broadcast-new]:focus-visible,
.vk-broadcast__main .vk-chat__primary:hover,
.vk-broadcast__main .vk-chat__primary:focus-visible,
.vk-broadcast__poll-dialog .vk-chat__primary:hover,
.vk-broadcast__poll-dialog .vk-chat__primary:focus-visible,
.vk-chat.is-broadcast-editor-open .vk-broadcast__main-header .vk-chat__back:hover,
.vk-chat.is-broadcast-editor-open .vk-broadcast__main-header .vk-chat__back:focus-visible {
    border-color: #b4bb6b !important;
    background: #b4bb6b !important;
    color: #111 !important;
}

.vk-chat.is-broadcast-editor-open .vk-broadcast__main-header .vk-chat__back {
    display: inline-flex !important;
}

.vk-broadcast__poll-dialog,
.vk-broadcast__segment-dialog {
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100vh - 30px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .25);
    font-family: var(--vk-chat-message-font);
}

.vk-broadcast__poll-dialog::backdrop,
.vk-broadcast__segment-dialog::backdrop {
    background: rgba(0, 0, 0, .38);
}

.vk-broadcast__segment-help-content {
    display: grid;
    gap: 11px;
    padding: 18px;
    color: #303832;
    font-size: 13px;
    line-height: 1.5;
}

.vk-broadcast__segment-help-content p {
    margin: 0;
}

.vk-broadcast__segment-help-content code {
    padding: 1px 4px;
    border-radius: 3px;
    background: #eef1ec;
    color: #354039;
    font-family: Consolas, monospace !important;
    font-size: 12px;
}

.vk-broadcast__poll-form {
    display: grid;
    gap: 13px;
    max-height: calc(100vh - 30px);
    padding: 18px;
    overflow-y: auto;
}

.vk-broadcast__dialog-header h3 {
    font-size: 18px;
}

.vk-broadcast__poll-options {
    display: grid;
    gap: 7px;
    max-height: 220px;
    overflow-y: auto;
}

.vk-broadcast__poll-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px 34px;
    gap: 4px;
}

#vk-auth-scope .vk-broadcast__poll-option button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #c9d2c7 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #111 !important;
    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

#vk-auth-scope .vk-broadcast__poll-option button:hover,
#vk-auth-scope .vk-broadcast__poll-option button:focus-visible {
    border-color: #b4bb6b !important;
    background: #b4bb6b !important;
    color: #fff !important;
    outline: 0 !important;
}

.vk-broadcast__toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.vk-broadcast__channel-toggle {
    width: auto;
    margin-left: auto;
    gap: 8px;
    color: #4e5850;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
}

.vk-broadcast__toggle input[type="checkbox"] {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0 !important;
    border: 1px solid #b9c0b7;
    border-radius: 999px;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}

.vk-broadcast__toggle input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #747b75;
    transition: transform .16s ease, background-color .16s ease;
}

.vk-broadcast__toggle input[type="checkbox"]:checked,
.vk-broadcast__toggle input[type="checkbox"]:hover {
    border-color: #b4bb6b;
    background: #b4bb6b;
}

.vk-broadcast__toggle input[type="checkbox"]:checked::before {
    background: #fff;
    transform: translateX(20px);
}

.vk-broadcast__toggle input[type="checkbox"]:hover::before {
    background: #fff;
}

.vk-broadcast__toggle input[type="checkbox"]:focus-visible {
    outline: 2px solid #6d733d;
    outline-offset: 2px;
}

.vk-broadcast__poll-end {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.vk-broadcast__metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.vk-broadcast__metrics > div {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid #dfe6dd;
    border-radius: 5px;
    background: #fff;
    text-align: center;
}

.vk-broadcast__metrics span,
.vk-broadcast__metrics small {
    color: #687169;
    font-size: 11px;
}

.vk-broadcast__metrics strong {
    color: #111;
    font-size: 18px;
}

[data-broadcast-detail] .vk-broadcast__main-header h3 {
    font-family: "Courgette", cursive !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.25;
}

[data-broadcast-detail] .vk-broadcast__detail-scroll {
    font-size: 13px;
    line-height: 1.4;
}

[data-broadcast-detail] .vk-broadcast__section > h4 {
    margin: 0 0 8px;
    font-family: "Courgette", cursive !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.25;
}

[data-broadcast-detail] .vk-broadcast__section > p,
[data-broadcast-detail] .vk-broadcast__detail-item,
[data-broadcast-detail] .vk-broadcast__recipient-table {
    font-size: 13px !important;
    line-height: 1.4;
}

.vk-broadcast__detail-content {
    display: grid;
    gap: 7px;
}

.vk-broadcast__detail-item {
    padding: 9px 11px;
    border-radius: 6px;
    background: #d7fdd0;
}

.vk-broadcast__detail-item p {
    margin: 0;
    font-size: inherit !important;
}

.vk-broadcast__detail-item.is-poll {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.vk-broadcast__detail-item.is-poll > strong,
.vk-broadcast__detail-item.is-poll > span {
    display: block;
    flex: 0 0 100%;
}

.vk-broadcast__detail-item.is-poll > strong {
    font-size: 14px;
}

.vk-broadcast__detail-item.is-poll > span {
    color: #58645c;
    font-size: 12px;
}

.vk-broadcast__detail-item.is-poll > i {
    display: inline-flex;
    padding: 3px 7px;
    border: 1px solid #a9cba5;
    border-radius: 5px;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-style: normal;
}

.vk-broadcast__poll-stats,
.vk-broadcast__recipient-table {
    display: grid;
    gap: 1px;
}

.vk-broadcast__poll-stats > div,
.vk-broadcast__recipient-table > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px;
    background: #f4f6f3;
}

.vk-broadcast__poll-stats > div {
    padding: 6px 8px;
    font-size: 13px;
}

.vk-broadcast__poll-stats > div strong {
    font-size: 14px;
}

.vk-broadcast__recipient-table {
    max-height: 260px;
    overflow-y: auto;
}

.vk-broadcast__danger {
    border-color: #e4caca;
}

.vk-broadcast__danger > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vk-broadcast__danger button:last-child {
    border-color: #b94747;
    color: #9c2828;
}

.vk-chat__subtitle--customer {
    color: #111 !important;
    font-size: 16px;
}

.vk-chat__subtitle--customer span {
    display: block;
}

.vk-chat__privacy {
    margin: 0;
    padding: 11px 18px 13px;
    border-top: 1px solid #e1e9df;
    background: #f7faf7;
    color: #111111;
    font-size: 14px;
    line-height: 1.45;
}

.vk-chat .vk-chat__privacy,
.vk-chat .vk-chat__privacy strong {
    color: #111111;
    font-weight: 400 !important;
}

.vk-chat__count,
.vk-chat__room-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--vk-chat-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.vk-chat__status,
.vk-chat__empty {
    margin: 0;
    padding: 16px 18px;
    color: #55705a;
    font-size: .95rem;
}

.vk-chat__diagnostics {
    display: block;
    margin: 0 18px 12px;
    padding: 9px 10px;
    border: 1px solid #d5b7b7;
    border-radius: 6px;
    background: #fff7f7;
    color: #742424;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}

.vk-chat__status.is-error,
.vk-chat__inline-status.is-error {
    color: #a42424;
}

.vk-chat__workspace {
    min-width: 0;
}

.vk-chat[data-chat-view="conversation"] .vk-chat__rooms,
.vk-chat[data-chat-view="new-room"] .vk-chat__rooms {
    display: none;
}

.vk-chat__rooms,
.vk-chat__conversation,
.vk-chat__new-room {
    padding: 14px 18px 18px;
}

.vk-chat__rooms {
    font-family: var(--vk-chat-message-font);
}

.vk-chat__rooms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.vk-chat__rooms-header h3 {
    margin: 0;
    color: #111;
    font-family: var(--vk-chat-message-font);
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: 0;
}

.vk-chat__room-search {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    margin: 0 0 8px !important;
    padding: 8px 12px !important;
    border: 1px solid #dde4dc !important;
    border-radius: 6px !important;
    outline: 0;
    background: #f4f6f3 !important;
    color: #111 !important;
    font-family: var(--vk-chat-message-font) !important;
    font-size: 14px !important;
    box-shadow: none !important;
    appearance: none;
}

.vk-chat__room-search:focus {
    border-color: #aeb9ad !important;
    background: #fff !important;
}

.vk-chat__placeholder {
    display: none;
}

.vk-chat__primary,
.vk-chat__send,
.vk-chat__primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #b8bd6b !important;
    border-radius: 8px !important;
    background: #b8bd6b !important;
    color: #111 !important;
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

.vk-chat__primary {
    width: 100%;
    margin-bottom: 10px;
}

.vk-chat__new-room-button {
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 7px 12px;
    font-family: var(--vk-chat-message-font) !important;
    font-size: 13px;
}

.vk-chat__primary:hover,
.vk-chat__send:hover,
.vk-chat__primary-link:hover {
    border-color: #9fa455 !important;
    background: #aeb45f !important;
    color: #111 !important;
}

.vk-chat__send:disabled,
.vk-chat__accept-ai:disabled {
    opacity: .55;
    cursor: default;
}

.vk-chat__room-list {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.vk-chat__room-row {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    border-bottom: 1px solid #e3e7e2;
}

.vk-chat__room-row:last-child {
    border-bottom: 0;
}

.vk-chat__room {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 70px;
    padding: 9px 10px;
    border: 0;
    border-bottom: 0;
    background: transparent;
    color: inherit;
    font-family: var(--vk-chat-message-font) !important;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

#vk-auth-scope button.vk-chat__room {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 8px 9px !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #111 !important;
    font-family: var(--vk-chat-message-font) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
    box-shadow: none !important;
    transform: none !important;
    appearance: none !important;
}

#vk-auth-scope .vk-chat__room-row:hover > button.vk-chat__room,
#vk-auth-scope button.vk-chat__room:hover {
    background: #f3f5f2 !important;
}

#vk-auth-scope button.vk-chat__room.is-active {
    background: #e9ece8 !important;
}

#vk-auth-scope .vk-chat__room-delete {
    position: absolute;
    z-index: 2;
    top: 5px;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 6px !important;
    border: 0 !important;
    border-radius: 4px !important;
    outline: 0 !important;
    background: #f3f5f2 !important;
    color: #4b545a !important;
    box-shadow: none !important;
    opacity: 0;
    visibility: hidden;
    appearance: none;
    cursor: pointer;
    transition: opacity 100ms ease, background-color 100ms ease, color 100ms ease;
}

#vk-auth-scope .vk-chat__room-delete svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#vk-auth-scope .vk-chat__room-row:hover > .vk-chat__room-delete,
#vk-auth-scope .vk-chat__room-delete:focus-visible {
    opacity: 1;
    visibility: visible;
}

#vk-auth-scope .vk-chat__room-delete:hover,
#vk-auth-scope .vk-chat__room-delete:focus-visible {
    background: #e7ebe6 !important;
    color: #8f2525 !important;
}

#vk-auth-scope .vk-chat__room-row.is-deleting {
    opacity: .55;
}

#vk-auth-scope .vk-chat__room-row.is-deleting .vk-chat__room-delete {
    opacity: 1;
    visibility: visible;
    cursor: wait;
}

@media (hover: none) {
    #vk-auth-scope .vk-chat__room-delete {
        opacity: 1;
        visibility: visible;
    }
}

.vk-chat__room-avatar {
    position: relative;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--vk-chat-presence-color, var(--vk-chat-gray)) 14%, white);
    color: var(--vk-chat-presence-color, var(--vk-chat-gray));
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.vk-chat__room-avatar.is-online {
    --vk-chat-presence-color: var(--vk-chat-green);
    border: 2px solid var(--vk-chat-presence-color);
}

.vk-chat__room-avatar.is-offline {
    --vk-chat-presence-color: #747b76;
    border: 2px solid var(--vk-chat-presence-color);
}

.vk-chat__room-avatar.is-neutral {
    --vk-chat-presence-color: var(--vk-chat-gray);
    background: #edf1ee;
}

.vk-chat__room-avatar > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.vk-chat__room-avatar.is-online > img,
.vk-chat__room-avatar.is-offline > img {
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
}

.vk-chat__state-dot {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--vk-chat-gray);
}

.vk-chat__state-dot.is-customer-waiting {
    background: var(--vk-chat-orange);
}

.vk-chat__state-dot.is-ai-waiting {
    background: var(--vk-chat-blue);
}

.vk-chat__state-dot.is-ai-accepted {
    background: var(--vk-chat-light-blue);
}

.vk-chat__room-content {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    width: 0;
}

.vk-chat__room-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.vk-chat__room-top strong,
.vk-chat__preview {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vk-chat__room-top strong {
    color: #111 !important;
    font-family: var(--vk-chat-message-font) !important;
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.25;
    text-decoration: none !important;
}

.vk-chat__room.is-unread .vk-chat__room-top strong {
    font-weight: 750;
}

.vk-chat__room-top time,
.vk-chat__message-meta time {
    flex: 0 0 auto;
    color: #68726a;
    font-size: .76rem;
}

.vk-chat__room-top time {
    color: #66716a !important;
    font-family: var(--vk-chat-message-font) !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.vk-chat__preview {
    margin-top: 3px;
    color: #5c655e;
    font-family: var(--vk-chat-message-font);
    font-size: .86rem;
    line-height: 1.3;
    text-decoration: none !important;
}

.vk-chat__conversation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.vk-chat__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #c9d5c6 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #28452f !important;
    font-size: 26px;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

.vk-chat__messages-stage {
    position: relative;
    display: flex;
    min-height: 160px;
    max-height: 52vh;
    background: #efeae2;
    overflow: hidden;
}

.vk-chat__messages {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    min-height: 0;
    padding: 10px 8px 14px;
    background: #efeae2;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.vk-chat__messages-stage.is-typing .vk-chat__messages {
    padding-bottom: 58px;
}

.vk-chat__message-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0 !important;
}

.vk-chat__message-row.is-own {
    justify-content: flex-end;
}

.vk-chat__message-row.is-other {
    justify-content: flex-start;
}

.vk-chat__typing-row {
    padding-left: 42px;
}

.vk-chat__typing-layer {
    position: absolute;
    z-index: 4;
    right: 8px;
    bottom: 8px;
    left: 8px;
    pointer-events: none;
}

.vk-chat__typing-layer[hidden] {
    display: none;
}

.vk-chat__message-cluster {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: min(82%, 560px);
}

.vk-chat__message-cluster.is-own {
    align-items: flex-end;
}

.vk-chat__message-cluster.is-other {
    align-items: flex-start;
}

.vk-chat__avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin-top: 1px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--vk-chat-sender-color) 14%, white);
    color: var(--vk-chat-sender-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
}

.vk-chat__avatar img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 50%;
}

.vk-chat__message {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 !important;
    padding: 6px 8px 5px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(11, 20, 26, .13);
}

#vk-auth-scope .vk-chat__message-delete,
.vk-chat--home .vk-chat__message-delete {
    position: absolute;
    z-index: 2;
    top: 2px;
    right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    padding: 5px !important;
    border: 0 !important;
    border-radius: 4px !important;
    outline: 0 !important;
    background: transparent !important;
    color: #4b545a !important;
    box-shadow: none !important;
    opacity: 0;
    visibility: hidden;
    appearance: none;
    cursor: pointer;
    transition: opacity 100ms ease, background-color 100ms ease;
}

#vk-auth-scope .vk-chat__message-delete svg,
.vk-chat--home .vk-chat__message-delete svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#vk-auth-scope .vk-chat__message.has-delete:hover > .vk-chat__message-delete,
#vk-auth-scope .vk-chat__message-delete:focus-visible,
.vk-chat--home .vk-chat__message.has-delete:hover > .vk-chat__message-delete,
.vk-chat--home .vk-chat__message-delete:focus-visible {
    opacity: 1;
    visibility: visible;
}

#vk-auth-scope .vk-chat__message-delete:hover,
#vk-auth-scope .vk-chat__message-delete:focus-visible,
.vk-chat--home .vk-chat__message-delete:hover,
.vk-chat--home .vk-chat__message-delete:focus-visible {
    background: rgba(11, 20, 26, .08) !important;
}

#vk-auth-scope .vk-chat__message-delete:disabled,
.vk-chat--home .vk-chat__message-delete:disabled {
    cursor: wait;
    opacity: .45;
}

.vk-chat__message.has-delete .vk-chat__message-body {
    padding-right: 22px;
}

.vk-chat__message.is-deleted .vk-chat__message-body p {
    color: #65706a;
    font-style: italic;
}

#vk-auth-scope .vk-chat__reaction-trigger,
.vk-chat--home .vk-chat__reaction-trigger {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 38px;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #4b545a !important;
    font-family: "Segoe UI Symbol", sans-serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 38px !important;
    text-indent: 0 !important;
    box-shadow: none !important;
    opacity: 0;
    visibility: hidden;
    appearance: none;
    pointer-events: none;
    transform: none !important;
    transition: opacity 100ms ease;
    cursor: pointer;
}

#vk-auth-scope .vk-chat__reaction-trigger:focus-visible,
.vk-chat--home .vk-chat__reaction-trigger:focus-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    #vk-auth-scope .vk-chat__message-row.is-other:hover > .vk-chat__reaction-trigger,
    .vk-chat--home .vk-chat__message-row.is-other:hover > .vk-chat__reaction-trigger {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (hover: none), (pointer: coarse) {
    #vk-auth-scope .vk-chat__reaction-trigger,
    .vk-chat--home .vk-chat__reaction-trigger {
        display: none;
    }
}

.vk-chat__message-reactions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: -3px;
    padding: 0 3px;
}

.vk-chat__message-cluster.is-own .vk-chat__message-reactions {
    justify-content: flex-end;
}

.vk-chat__message-reaction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 31px !important;
    max-width: none !important;
    min-height: 29px !important;
    max-height: 29px !important;
    margin: 0 !important;
    padding: 1px 7px !important;
    border: 1px solid #d0d7d0 !important;
    border-radius: 15px !important;
    background: #fff !important;
    color: #111b21 !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 25px !important;
    box-shadow: 0 1px 1px rgba(11, 20, 26, .08) !important;
    appearance: none;
    cursor: pointer;
}

.vk-chat__message-reaction.is-own {
    border-color: var(--vk-chat-green) !important;
    background: #f0f8f2 !important;
}

.vk-chat__reaction-picker {
    position: fixed;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 2px;
    max-width: calc(100vw - 16px);
    padding: 5px;
    border: 1px solid #dbe2da;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(11, 20, 26, .22);
}

.vk-chat__reaction-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
    font-size: 22px !important;
    line-height: 38px !important;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

.vk-chat__reaction-option:hover,
.vk-chat__reaction-option:focus-visible,
.vk-chat__reaction-option.is-selected {
    background: #e7f4ea !important;
    outline: 0 !important;
}

.vk-chat__message.is-own {
    background: #d9fdd3;
}

.vk-chat__message.is-ai {
    background: #e7f3ff;
}

.vk-chat__typing .vk-chat__message-body {
    min-width: 0;
}

.vk-chat__typing .vk-chat__message-body p,
.vk-chat--home .vk-chat__typing .vk-chat__message-body p {
    color: #4b545a;
    font-family: var(--vk-chat-message-font) !important;
    font-style: italic !important;
}

.vk-chat__typing .vk-chat__message-body p::after {
    display: none;
}

.vk-chat__message.is-other:not(.is-ai)::before {
    position: absolute;
    top: 0;
    left: -7px;
    width: 0;
    height: 0;
    border-top: 8px solid #fff;
    border-left: 8px solid transparent;
    content: "";
}

.vk-chat__message.is-own::after {
    position: absolute;
    top: 0;
    right: -7px;
    width: 0;
    height: 0;
    border-top: 8px solid #d9fdd3;
    border-right: 8px solid transparent;
    content: "";
}

.vk-chat__message-sender {
    display: block;
    margin: 0 0 2px !important;
    overflow: hidden;
    color: var(--vk-chat-sender-color);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vk-chat__poll {
    display: grid;
    gap: 7px;
    width: min(320px, 64vw);
    margin: 3px 0 6px;
    font-family: var(--vk-chat-message-font);
}

.vk-chat__poll-question {
    color: #111;
    font-size: 16px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.vk-chat__poll-hint {
    color: #58645c;
    font-size: 12px;
}

.vk-chat__poll-reward {
    color: #4f5831;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.vk-chat__poll-options {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.vk-chat__poll-option {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 1 var(--vk-chat-poll-option-width, 88px);
    box-sizing: border-box;
    width: min(100%, var(--vk-chat-poll-option-width, 88px)) !important;
    max-width: 100%;
    min-height: 40px;
    margin: 0 !important;
    padding: 5px 12px !important;
    border: 2px solid #b7b7b7 !important;
    border-radius: 10px !important;
    outline: 0;
    background: #fff !important;
    color: #111 !important;
    font-family: "Courgette", cursive !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.25;
    text-align: center;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

.vk-chat__poll-option.is-selected {
    border-color: #b4bb6b !important;
    background: #b4bb6b !important;
    color: #111 !important;
}

.vk-chat__poll-option:focus-visible {
    outline: 2px solid #6d733d;
    outline-offset: 2px;
}

.vk-chat__poll-option:disabled {
    cursor: default;
    opacity: 1;
}

.vk-chat__poll-option strong {
    min-width: 0;
    color: inherit;
    font: inherit;
    overflow-wrap: anywhere;
}

.vk-chat__poll-confirmation {
    min-height: 1.35em;
    margin: 1px 0 0 !important;
    color: #4f5831;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.vk-chat__poll-confirmation.is-empty {
    visibility: hidden;
}

.vk-chat__message-body {
    position: relative;
    min-width: 58px;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px;
    line-height: 1.35;
}

.vk-chat__message-body p {
    display: inline;
    margin: 0 !important;
    padding: 0 !important;
    color: #111;
    font-family: var(--vk-chat-message-font);
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.vk-chat__message-body a {
    color: #0563c1;
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.vk-chat__message-body a:hover,
.vk-chat__message-body a:focus-visible {
    color: #034f9d;
}

.vk-chat__message-body p::after {
    display: inline-block;
    width: var(--vk-chat-time-space, 48px);
    height: 1px;
    content: "";
}

.vk-chat__message-meta {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.vk-chat__message-body time {
    margin: 0 !important;
    padding: 0 !important;
    color: #667781;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.vk-chat__message-receipt {
    font-family: "Segoe UI Symbol", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    opacity: .82;
    white-space: nowrap;
}

.vk-chat__message-receipt.is-delivered {
    color: #53bdeb;
}

.vk-chat__message-receipt.is-sent {
    color: #7d858c;
}

.vk-chat__message-receipt.is-read {
    color: #53bdeb;
}

#vk-auth-scope .vk-chat__message-media,
.vk-chat--home .vk-chat__message-media {
    position: relative;
    display: block;
    width: min(var(--vk-chat-media-width, 280px), 62vw) !important;
    max-width: 100% !important;
    max-height: 420px !important;
    min-height: 120px;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 5px !important;
    outline: 0 !important;
    background: #dfe4df !important;
    color: #455149 !important;
    box-shadow: none !important;
    overflow: hidden;
    appearance: none;
    -webkit-touch-callout: none;
    user-select: none;
    cursor: zoom-in;
}

#vk-auth-scope .vk-chat__message-media:focus-visible,
.vk-chat--home .vk-chat__message-media:focus-visible {
    outline: 3px solid rgba(31, 143, 88, .35) !important;
    outline-offset: 2px !important;
}

.vk-chat__message-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 120ms ease;
}

.vk-chat__message-media img.is-loading {
    opacity: 0;
}

.vk-chat__message-media-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #4f5952;
    font-size: 13px;
    text-align: center;
}

#vk-auth-scope .vk-chat__message-media.is-error,
.vk-chat--home .vk-chat__message-media.is-error {
    cursor: default;
}

.vk-chat__message:has(.vk-chat__message-media) {
    padding: 4px 4px 5px;
}

.vk-chat__message:has(.vk-chat__message-media) .vk-chat__message-sender,
.vk-chat__message:has(.vk-chat__message-media) .vk-chat__message-body {
    margin-left: 4px !important;
    margin-right: 4px !important;
}

.vk-chat__message-body.is-media-only {
    min-height: 15px;
}

.vk-chat__image-viewer {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 24px;
    background: rgba(10, 14, 12, .92);
}

.vk-chat__image-viewer > img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vk-chat__image-viewer-close,
.vk-chat__image-viewer-download {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border: 0 !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
    font-family: inherit;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none !important;
}

.vk-chat__image-viewer-close {
    right: 12px;
    width: 36px;
    padding: 0 !important;
    font-size: 28px !important;
    cursor: pointer;
}

.vk-chat__image-viewer-download {
    right: 58px;
    padding: 0 12px;
    font-size: 14px;
}

.vk-chat__accept-ai {
    align-self: flex-start;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--vk-chat-blue) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #245f8e !important;
    font: inherit;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

.vk-chat__composer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e2e8e0;
}

.vk-chat__composer.is-dragging {
    outline: 2px solid var(--vk-chat-green);
    outline-offset: 4px;
}

.vk-chat__attachment-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 7px;
    border: 1px solid #d7dfd5;
    border-radius: 6px;
    background: #f6f8f5;
}

.vk-chat__attachment-preview img {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: #e2e7e1;
    object-fit: cover;
}

.vk-chat__attachment-details {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.vk-chat__attachment-details strong,
.vk-chat__attachment-details span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vk-chat__attachment-details strong {
    color: #1f2721;
    font-size: 14px;
    font-weight: 650;
}

.vk-chat__attachment-details span {
    margin-top: 3px;
    color: #68726a;
    font-size: 12px;
}

#vk-auth-scope .vk-chat__attachment-remove,
#vk-auth-scope .vk-chat__attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 5px !important;
    outline: 0 !important;
    background: transparent !important;
    color: #4b5450 !important;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

#vk-auth-scope .vk-chat__attachment-remove {
    flex-basis: 32px;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    font-size: 24px !important;
    line-height: 32px !important;
}

#vk-auth-scope .vk-chat__attach:hover,
#vk-auth-scope .vk-chat__attach:focus-visible,
#vk-auth-scope .vk-chat__attachment-remove:hover,
#vk-auth-scope .vk-chat__attachment-remove:focus-visible {
    background: #e8eee7 !important;
}

.vk-chat__attach svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.vk-chat__composer-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.vk-chat__emoji {
    display: flex;
    gap: 0;
    padding: 3px 5px;
    border-radius: 6px;
    background: #f2f5f1;
    overflow-x: auto;
}

.vk-chat__emoji-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
    font-size: 22px !important;
    font-style: normal !important;
    line-height: 38px !important;
    text-indent: 0 !important;
    transform: none !important;
    zoom: 1 !important;
    cursor: pointer;
}

.vk-chat__composer textarea {
    box-sizing: border-box;
    flex: 1 1 auto;
    width: auto;
    height: 40px;
    min-height: 40px;
    max-height: 120px;
    margin: 0 !important;
    resize: none;
    overflow-y: hidden;
    padding: 8px 12px !important;
    border: 1px solid #c9d5c6;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-family: var(--vk-chat-message-font);
    font-size: 16px !important;
    line-height: 22px !important;
    vertical-align: top;
}

.vk-chat__composer textarea:focus {
    border-color: var(--vk-chat-green);
    outline: 2px solid rgba(31, 143, 88, .18);
    outline-offset: 0;
}

.vk-chat__composer-row .vk-chat__send {
    flex: 0 0 auto;
    min-height: 40px;
}

.vk-chat__inline-status {
    display: block;
    color: #55705a;
    font-size: .84rem;
}

.vk-chat__inline-status:empty {
    display: none;
}

.vk-chat--login {
    padding: 18px;
}

.vk-chat--login p {
    margin: 8px 0 14px;
}

.vk-chat--home {
    max-width: 520px;
}

.vk-chat--home .vk-chat__header {
    align-items: flex-start;
    min-height: 0;
    padding: 12px 14px 10px;
}

.vk-chat--home .vk-chat__header-copy {
    text-align: center;
}

.vk-chat--home .vk-chat__title {
    font-size: 18px;
}

.vk-chat--home .vk-chat__title--team {
    justify-content: center;
    column-gap: 8px;
    row-gap: 4px;
}

.vk-chat--home .vk-chat__team {
    justify-content: center;
}

.vk-chat--home .vk-chat__team-message {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
}

.vk-chat--home .vk-chat__subtitle--customer {
    font-size: 14px;
    line-height: 1.35;
}

.vk-chat--home .vk-chat__team-name {
    font-size: 12px;
}

.vk-chat--home .vk-chat__status {
    padding: 9px 14px 0;
    font-family: var(--vk-chat-message-font);
    font-size: 13px;
}

.vk-chat--home .vk-chat__diagnostics {
    margin: 9px 14px 0;
}

.vk-chat__home-composer {
    padding: 0 14px;
}

.vk-chat--home .vk-chat__composer {
    padding-top: 10px;
}

.vk-chat--home .vk-chat__emoji-button {
    flex-basis: 34px;
    width: 34px;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px;
    min-height: 34px !important;
    max-height: 34px !important;
    font-size: 20px !important;
    line-height: 34px !important;
}

.vk-chat--home .vk-chat__attach,
.vk-chat--home .vk-chat__attachment-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 5px !important;
    outline: 0 !important;
    background: transparent !important;
    color: #4b5450 !important;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

.vk-chat--home .vk-chat__attachment-remove {
    flex-basis: 32px;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    font-size: 24px !important;
    line-height: 32px !important;
}

.vk-chat--home .vk-chat__attach:hover,
.vk-chat--home .vk-chat__attach:focus-visible,
.vk-chat--home .vk-chat__attachment-remove:hover,
.vk-chat--home .vk-chat__attachment-remove:focus-visible {
    background: #e8eee7 !important;
}

.vk-chat__home-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px 14px;
}

.vk-chat--home .vk-chat__primary-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 38px;
    padding: 7px 12px;
    border-color: #00000080 !important;
    background: #00000080 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 400 !important;
}

.vk-chat--home .vk-chat__primary-link.has-unread {
    border-color: #cc3366 !important;
    box-shadow: 0 0 0 2px rgba(204, 51, 102, .16) !important;
}

.vk-chat__home-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: #cc3366;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
}

.vk-chat__home-unread[hidden] {
    display: none !important;
}

.vk-chat--home .vk-chat__primary-link:hover,
.vk-chat--home .vk-chat__primary-link:focus-visible {
    border-color: #b4bb6b !important;
    background: #b4bb6b !important;
    color: #111 !important;
}

.vk-chat__anonymous-note {
    margin: 0;
    color: #4b5450;
    font-family: "Courgette", cursive !important;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

.vk-chat__anonymous-note a {
    color: #cc3366 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 400;
    text-decoration: none;
}

.vk-chat__anonymous-note a:hover,
.vk-chat__anonymous-note a:focus-visible {
    color: #cc3366 !important;
    text-decoration: underline;
}

@media (max-width: 420px) {
    .vk-chat--home .vk-chat__header,
    .vk-chat__home-composer,
    .vk-chat__home-actions {
        padding-right: 10px;
        padding-left: 10px;
    }

    .vk-chat--home .vk-chat__composer-row {
        gap: 6px;
    }

    .vk-chat--home .vk-chat__composer-row .vk-chat__send {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (min-width: 1100px) {
    .vk-chat__workspace {
        display: grid;
        grid-template-columns: 276px minmax(0, 1fr);
        min-height: 520px;
    }

    .vk-chat[data-chat-view] .vk-chat__rooms {
        display: flex;
    }

    .vk-chat__rooms {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        min-width: 0;
        height: min(640px, 68vh);
        min-height: 520px;
        padding: 12px 8px 0;
        border-right: 1px solid #dde4dc;
        overflow: hidden;
    }

    .vk-broadcast__sidebar {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        height: min(640px, 68vh);
        min-height: 520px;
        overflow: hidden;
    }

    .vk-broadcast__list {
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .vk-broadcast__main {
        display: block;
        grid-column: 2;
        grid-row: 1;
        height: min(640px, 68vh);
        min-height: 520px;
    }

    .vk-chat.is-broadcast-mode.is-broadcast-editor-open .vk-chat__workspace {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .vk-chat.is-broadcast-mode.is-broadcast-editor-open .vk-broadcast__main {
        grid-column: 1 / -1;
        height: auto;
        min-height: 0;
    }

    .vk-chat__room-list {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .vk-chat__placeholder,
    .vk-chat__conversation,
    .vk-chat__new-room {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        height: min(640px, 68vh);
        min-height: 520px;
    }

    .vk-chat__placeholder {
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: #f7f9f6;
        color: #5c655e;
        font-family: var(--vk-chat-message-font);
        text-align: center;
    }

    .vk-chat__placeholder:not([hidden]) {
        display: flex;
    }

    .vk-chat__placeholder strong {
        display: block;
        color: #202722;
        font-size: 18px;
    }

    .vk-chat__placeholder p {
        margin: 5px 0 0;
        font-size: 14px;
    }

    .vk-chat__conversation,
    .vk-chat__new-room {
        flex-direction: column;
        padding: 0;
    }

    .vk-chat__conversation:not([hidden]),
    .vk-chat__new-room:not([hidden]) {
        display: flex;
    }

    .vk-chat__conversation-header {
        flex: 0 0 auto;
        min-height: 58px;
        margin: 0;
        padding: 10px 16px;
        border-bottom: 1px solid #dde4dc;
    }

    .vk-chat__back {
        display: none;
    }

    .vk-chat__messages-stage {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }

    .vk-chat__messages {
        padding: 14px 12px 18px;
    }

    .vk-chat__conversation > .vk-chat__composer,
    .vk-chat__new-room > .vk-chat__composer {
        flex: 0 0 auto;
        padding: 10px 12px 12px;
        background: #fff;
    }

    .vk-chat__new-room > .vk-chat__composer {
        flex: 1 1 auto;
        justify-content: flex-start;
    }
}

.vk-chat.is-broadcast-editor-open > .vk-chat__header,
.vk-chat.is-broadcast-editor-open .vk-broadcast__sidebar {
    display: none !important;
}

.vk-chat.is-broadcast-editor-open .vk-broadcast__main {
    width: 100%;
}

@media (max-width: 1099px) {
    .vk-broadcast__sidebar {
        border-right: 0;
        border-bottom: 1px solid #dde4dc;
    }

    .vk-broadcast__main {
        min-height: 500px;
    }

    .vk-broadcast__detail-scroll {
        height: auto;
        max-height: 70vh;
    }
}

@media (max-width: 700px) {
    .vk-broadcast__main-header {
        flex-wrap: wrap;
    }

    .vk-broadcast__header-name {
        flex-basis: calc(100% - 52px);
        width: calc(100% - 52px);
        margin-left: 52px;
    }

    .vk-broadcast__filter-row,
    .vk-broadcast__segment-filter,
    .vk-broadcast__form-grid,
    .vk-broadcast__effects,
    .vk-broadcast__metrics {
        grid-template-columns: 1fr;
    }

    .vk-broadcast__segment-filter > .vk-broadcast__segment-help {
        grid-column: 1;
    }

    .vk-broadcast__communication-option {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .vk-broadcast__communication-option > p {
        padding-left: 27px;
    }

    .vk-broadcast__draft-row {
        max-width: 94%;
    }

    .vk-broadcast__composer-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .vk-chat__header {
        gap: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .vk-chat__team {
        gap: 5px;
    }

    .vk-chat__team-member {
        min-width: 38px;
        max-width: 48px;
    }

    .vk-chat__team-avatar {
        width: 36px;
        height: 36px;
    }

    .vk-chat__privacy {
        padding-right: 12px;
        padding-left: 12px;
    }

    .vk-chat__header,
    .vk-chat__rooms,
    .vk-chat__conversation,
    .vk-chat__new-room {
        padding-left: 12px;
        padding-right: 12px;
    }

    .vk-chat__message-cluster {
        max-width: calc(100% - 50px);
    }

    #vk-auth-scope .vk-chat__message-media {
        width: min(var(--vk-chat-media-width, 280px), 66vw) !important;
        max-height: 360px !important;
    }

    .vk-chat__image-viewer {
        padding: 52px 10px 10px;
    }

    .vk-chat__room-top {
        gap: 7px;
    }
}

.vk-chat--home .vk-chat__conversation--home {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 10px 14px 0;
}

.vk-chat--home .vk-chat__conversation--home:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.vk-chat--home .vk-chat__conversation--home .vk-chat__messages-stage {
    min-height: 150px;
    max-height: 320px;
}

.vk-chat--home .vk-chat__conversation--home .vk-chat__messages {
    padding: 10px 8px 14px;
}

.vk-chat--home .vk-chat__messages-stage.is-typing .vk-chat__messages {
    padding-bottom: 58px;
}

.vk-chat--home .vk-chat__conversation--home > .vk-chat__composer {
    flex: 0 0 auto;
    padding: 10px 0 0;
    background: #fff;
}

@media (max-width: 600px) {
    .vk-chat--home .vk-chat__message-media {
        width: min(var(--vk-chat-media-width, 280px), 66vw) !important;
        max-height: 360px !important;
    }
}
