#pageSelect {
    width: auto;
}

.composer.model_content_textarea {
    font-size: 13px;
    position: relative;
    z-index: 1;
}
/* Standalone composers and editing posts may not have a page block. */
.composer.model_content_textarea:has(.ui_actions_menu_wrap.shown),
.post.editing:has(.ui_actions_menu_wrap.shown) {
    z-index: var(--content-overlay-z-index, 6);
}
.composer.model_content_textarea:has(.idd_popup, .selector_container.selector_focused, .tippy-box[data-theme~="emoji"]),
.post.editing:has(.idd_popup, .selector_container.selector_focused, .tippy-box[data-theme~="emoji"]) {
    z-index: calc(var(--content-overlay-z-index, 6) + 1);
}

.post_field_user_link {
    display: block;
    height: 0;
    position: absolute;
    float: none;
    left: 20px;
    top: 12px;
}
.post_field_user_image {
    width: 28px;
    height: 28px;
    position: absolute;
    transition: none;
}

.composer.model_content_textarea textarea,
.composer.model_content_textarea .content-editable {
    position: relative;
    margin-left: 48px;
    vertical-align: top;
    overflow: hidden;
    width: calc(100% - 48px);
    min-height: 52px;
    max-height: 52px;
    padding: 16px 20px 16px 12px;
    font-size: 13px;
    color: inherit;
    background-color: transparent;
    border: 0;
    line-height: 1.462;
    word-wrap: break-word;
    resize: none;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color--secondary) var(--page-background-color);
}
.has_emoji_picker.composer.model_content_textarea textarea,
.has_emoji_picker.composer.model_content_textarea .content-editable {
	padding: 16px 37px 16px 12px;
}

.composer.model_content_textarea textarea::-webkit-scrollbar,
.composer.model_content_textarea .content-editable::-webkit-scrollbar {
    width: 4px;
}

.composer.model_content_textarea textarea.small-textarea:not(.expanded-textarea),
.composer.model_content_textarea .content-editable.small-textarea:not(.expanded-textarea) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 120px;
}

.composer.model_content_textarea.shown textarea {
    min-height: 80px;
    max-height: 200px;
}
/* !important and the #write id beat upstream's
   #write.expanded-textarea .content-editable { min-height: 52px !important } */
#write.composer.model_content_textarea.shown .content-editable {
    min-height: 80px !important;
    max-height: 200px;
    overflow-y: auto;
}

.composer.model_content_textarea:not(.shown) .post-buttons {
    display: block !important;
    overflow: hidden;
    height: 0;
}

.composer.model_content_textarea
    :is(
        .post-horizontal:not(:empty),
        .post-vertical:not(:empty),
        .post-has-geo:not(:empty),
        .post-source:not(:empty),
        .post-has-poll:not(:empty),
        .post-has-geo.appended-geo
    ) {
    padding: 0 20px 0;
    margin: 0 0 10px;
}
.composer.model_content_textarea .post-horizontal:not(:empty) + .post-vertical:not(:empty) {
    margin-top: 10px;
}
.composer.model_content_textarea :is(.post-vertical, .post-source, .post-repost):not(:empty),
.post-buttons :is(.post-vertical, .post-source, .post-repost):not(:empty) {
    margin-top: 10px;
    margin-bottom: 10px;
}
.vertical-attachment.upload-item {
    gap: 10px;
}
.vertical-attachment:first-of-type {
    margin-top: 0;
}
.vertical-attachment .audioEntry {
    min-height: unset;
}
.vertical-attachment .audioEntry .audioEntryWrapper {
    height: unset;
}
.module_body .post-horizontal:not(:empty) {
    padding: 10px 0;
}
:is(.post-buttons, .post-vertical) .vertical-attachment .vertical-attachment-content {
    padding: 0;
    max-height: unset;
}
.attachment_note .attachment_note_text,
.post-upload,
.post-has-poll,
.post-has-note,
.post-source {
    color: var(--text-color--tertiary);
    margin-left: 0;
}
.vertical-attachment-remove {
    margin: auto 0;
}
.module_body .audioEntry,
.attachments_m .audioEntry {
    margin: 0 -8px;
    width: calc(100% + 16px);
}
.audioEntry .audioEntryWrapper,
.vertical-attachment .audioEntry .audioEntryWrapper {
    padding: 8px 10px;
    gap: 10px;
    border-radius: var(--page-border-radius);
}
.audioEntry .mini_timer {
    white-space: nowrap;
}

.post-attach-menu {
    position: relative;
    z-index: 6;
}
#wallAttachmentMenu {
    display: flex !important;
    opacity: 1;
    background: none;
    box-shadow: none;
    border: 0;
    min-width: unset;
    position: static;
    margin: 0;
    align-items: center;
    z-index: 6;
    flex: 1 1 0;
}

.composer.model_content_textarea #wallAttachmentMenu img {
    width: 20px;
    height: 20px;
}

.composer.model_content_textarea div[style^="float"]:has(.menu_toggler_vkify) {
    float: none;
    flex-direction: row-reverse;
    justify-content: left;
    margin-top: 6px;
}

.post-bottom-buttons {
    float: right;
    display: flex;
    align-items: center;
    gap: 10px;
}
.composer.model_content_textarea.has_emoji_picker .textareas {
	position: static;
}

.composer.model_content_textarea.has_emoji_picker .emoji_picker_entrypoint {
	display: none;
}
.composer.model_content_textarea.has_emoji_picker.shown .emoji_picker_entrypoint {
	cursor: pointer;
	position: absolute;
	right: 20px;
	top: 15px;
    display: block;
}
.edit-menu-textarea {
    position: relative;
}
.edit-menu-textarea .emoji_picker_entrypoint {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    display: block;
}
.edit-menu-textarea textarea,
.edit-menu-textarea .content-editable {
    padding-right: 28px;
    box-sizing: border-box;
}
.post_settings {
    opacity: 0.7;
}
.post_settings .common_icon {
    background-position: 0 -60px;
}

.post-opts-trigger {
    padding: 0 10px;
    margin-left: 10px;
    border-left: 1px solid var(--border-color);
}
.composer.model_content_textarea .post-opts-trigger {
    margin-left: 6px;
    display: none;
}
.composer.model_content_textarea.shown .post-opts-trigger {
    display: block;
}

.post-opts {
    margin: 5px 0 0;
}
.post-opts.ui_actions_menu {
    margin: 0;
}

.post-opts.ui_actions_menu {
    max-width: 400px;
}

.post-opts .checkbox > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#wallAttachmentMenu > a:hover {
    background: none;
}

.composer.model_content_textarea:not(.shown) #wallAttachmentMenu {
    top: 0;
    right: 0;
    z-index: 2;
    position: absolute;
    padding: 15px 20px;
}

.composer.model_content_textarea:not(.shown) #wallAttachmentMenu a:not(#__photoAttachment, #__videoAttachment, #__audioAttachment),
.composer.model_content_textarea #wallAttachmentMenu .header,
.composer.model_content_textarea .menu_toggler_vkify {
    display: none;
}

.post-attach-menu__trigger::after {
    margin: 2px 0 0;
}

.post-source #remove_source_button,
.post-replyto #remove_reply_button,
#small_remove_button,
.medadd_poll .page_media_x {
    background: var(--input-placeholder-color);
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M10.7%202.7a1%201%200%200%200-1.4-1.4L6%204.6%202.7%201.3a1%201%200%201%200-1.4%201.4L4.6%206%201.3%209.3a1%201%200%200%200%201.4%201.4L6%207.4l3.3%203.3a1%201%200%200%200%201.4-1.4L7.4%206l3.3-3.3z%22%2F%3E%3C%2Fsvg%3E") center / 10px 10px no-repeat;
    mask: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M10.7%202.7a1%201%200%200%200-1.4-1.4L6%204.6%202.7%201.3a1%201%200%201%200-1.4%201.4L4.6%206%201.3%209.3a1%201%200%200%200%201.4%201.4L6%207.4l3.3%203.3a1%201%200%200%200%201.4-1.4L7.4%206l3.3-3.3z%22%2F%3E%3C%2Fsvg%3E") center / 10px 10px no-repeat;
    width: 16px;
    height: 16px;
    margin: 0 0 0 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}
.post-source #remove_source_button:hover,
.post-replyto #remove_reply_button:hover,
#small_remove_button:hover {
    opacity: 1;
}

#wallAttachmentMenu > a {
    padding: 0;
    align-items: center;
    gap: 0;
    max-width: 130px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.post-attach-menu:not(.post-attach-menu--inline) .post-attach-menu__trigger {
    color: var(--link-color);
    opacity: .5;
}
.post-attach-menu:not(.post-attach-menu--inline) .post-attach-menu__trigger:hover,
.post-attach-menu:not(.post-attach-menu--inline) .post-attach-menu__trigger.shown {
    opacity: .75;
}
.post-attach-menu:not(.post-attach-menu--inline) .post-attach-menu__trigger {
    background: url(../icons/chats.png) no-repeat 0 -55px;
    height: 22px;
    display: inline-block;
    line-height: 22px;
    padding: 0 6px 0 5px;
    opacity: .7;
    cursor: pointer;
}
.post-attach-menu:not(.post-attach-menu--inline) .post-attach-menu__trigger:hover,
.post-attach-menu:not(.post-attach-menu--inline) .shown .post-attach-menu__trigger {
    opacity: 1;
}

.post-bottom-acts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    clear: both;
}
.reply .post-bottom-acts {
    padding-top: 5px;
}
.composer.model_content_textarea.shown .post-bottom-acts {
    background-color: var(--page-header-background-color);
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--page-border-radius) var(--page-border-radius);
}
.post-attach-menu__icon {
    width: 22px;
    height: 22px;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    color: var(--post-attach-icon-color);
}
.post-attach-menu__icon svg {
    display: block;
}
.attach_source .post-attach-menu__icon {
    background: url(../icons/post_icon.png) no-repeat 0% -327px;
}
body:not(.body_im) .post-upload::before,
body:not(.body_im) .post-has-poll::before,
body:not(.body_im) .post-has-note::before,
body:not(.body_im) .attachment_note::before,
body:not(.body_im) .post-has-geo.appended-geo::before,
body:not(.body_im) .post-geo::before {
    width: 22px;
    height: 22px;
    opacity: 0.7;
    content: "";
    display: inline-block;
    margin-left: 0;
    margin-right: 4px;
    background-color: var(--post-attach-icon-color);
    -webkit-mask-image: var(--post-icon-mask);
    mask-image: var(--post-icon-mask);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
body:not(.body_im) .post-has-note::before,
body:not(.body_im) .attachment_note::before {
    --post-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2214%22%20viewBox%3D%220%200%2012%2014%22%3E%3Cpath%20transform%3D%22translate(-6%20-5)%22%20%20fill-rule%3D%22nonzero%22%20d%3D%22M8%205%20v%203.999024%20l%201.5%20-2%20l%201.5%202%20v%20-3.999024%20h%205.504455%20c%200.825967%200%201.495545%200.675249%201.495545%201.498246%20v%2010.501754%20H%207.500347%20c%20-0.271347%200%20-0.500347%200.223858%20-0.500347%200.5%20c%200%200.268067%200.224013%200.5%200.500347%200.5%20H%2018%20v%200.501733%20c%200%200.275185%20-0.229001%200.498267%20-0.500347%200.498267%20H%207.495545%20C%206.669578%2019%206%2018.324751%206%2017.501755%20v%20-11.003509%20c%200%20-0.827458%200.679554%20-1.498246%201.495545%20-1.498246%20H%208%22%2F%3E%3C%2Fsvg%3E");
}
body:not(.body_im) .post-has-poll::before {
    --post-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%3E%3Cpath%20transform%3D%22translate(-5.5%20-5.5)%22%20%20fill-rule%3D%22nonzero%22%20d%3D%22M11.461457%205.5%20h%201.077086%20c%200.33432%200%200.455552%200.03481%200.577774%200.100175%20c%200.122222%200.065365%200.218143%200.161286%200.283508%200.283508%20c%200.065365%200.122222%200.100175%200.243454%200.100175%200.577774%20v%2011.077086%20c%200%200.33432%20-0.03481%200.455552%20-0.100175%200.577774%20c%20-0.065365%200.122222%20-0.161286%200.218143%20-0.283508%200.283508%20c%20-0.122222%200.065365%20-0.243454%200.100175%20-0.577774%200.100175%20H%2011.461457%20c%20-0.33432%200%20-0.455552%20-0.03481%20-0.577774%20-0.100175%20c%20-0.122222%20-0.065365%20-0.218143%20-0.161286%20-0.283508%20-0.283508%20C%2010.53481%2017.994095%2010.5%2017.872863%2010.5%2017.538543%20v%20-11.077086%20c%200%20-0.33432%200.03481%20-0.455552%200.100175%20-0.577774%20s%200.161286%20-0.218143%200.283508%20-0.283508%20C%2011.005905%205.53481%2011.127137%205.5%2011.461457%205.5%20m-5%206.98435%20h%201.077086%20c%200.33432%200%200.455552%200.03481%200.577774%200.100175%20c%200.122222%200.065365%200.218143%200.161286%200.283508%200.283508%20C%208.46519%2012.990255%208.5%2013.111488%208.5%2013.445807%20v%204.077086%20c%200%200.33432%20-0.03481%200.455552%20-0.100175%200.577774%20s%20-0.161286%200.218143%20-0.283508%200.283508%20c%20-0.122222%200.065365%20-0.243455%200.100175%20-0.577774%200.100175%20h%20-1.077086%20c%20-0.33432%200%20-0.455552%20-0.03481%20-0.577774%20-0.100175%20c%20-0.122222%20-0.065365%20-0.218143%20-0.161286%20-0.283508%20-0.283508%20C%205.53481%2017.978445%205.5%2017.857213%205.5%2017.522893%20v%20-4.077086%20c%200%20-0.334319%200.03481%20-0.455552%200.100175%20-0.577774%20s%200.161286%20-0.218143%200.283508%20-0.283508%20c%200.122222%20-0.065365%200.243455%20-0.100175%200.577774%20-0.100175%20M16.461457%208.5%20h%201.077086%20c%200.33432%200%200.455552%200.03481%200.577774%200.100175%20c%200.122222%200.065365%200.218143%200.161286%200.283508%200.283508%20c%200.065365%200.122222%200.100175%200.243454%200.100175%200.577774%20v%208.077086%20c%200%200.33432%20-0.03481%200.455552%20-0.100175%200.577774%20c%20-0.065365%200.122222%20-0.161286%200.218143%20-0.283508%200.283508%20c%20-0.122222%200.065365%20-0.243454%200.100175%20-0.577774%200.100175%20h%20-1.077086%20c%20-0.334319%200%20-0.455552%20-0.03481%20-0.577774%20-0.100175%20c%20-0.122222%20-0.065365%20-0.218143%20-0.161286%20-0.283508%20-0.283508%20C%2015.53481%2017.994095%2015.5%2017.872863%2015.5%2017.538543%20v%20-8.077086%20c%200%20-0.33432%200.03481%20-0.455552%200.100175%20-0.577774%20c%200.065365%20-0.122222%200.161286%20-0.218143%200.283508%20-0.283508%20c%200.122222%20-0.065365%200.243455%20-0.100175%200.577774%20-0.100175%22%2F%3E%3C%2Fsvg%3E");
}
body:not(.body_im) .post-has-geo.appended-geo::before,
body:not(.body_im) .post-geo::before {
    --post-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2213%22%20height%3D%2217%22%20viewBox%3D%220%200%2013%2017%22%3E%3Cpath%20%20fill-rule%3D%22evenodd%22%20d%3D%22M15%2C18.08%20C15%2C20.8%2018.1603687%2C24.8%2020.0917051%2C27.04%20C21.3207374%2C28.32%2021.6718895%2C28.32%2022.9009218%2C27.04%20C24.8322582%2C24.8%2027.9926269%2C20.64%2027.9926269%2C18.08%20C28.1682029%2C14.4%2025.925415%2C11%2021.6718895%2C11%20C17.050293%2C11%2015%2C14.4%2015%2C18.08%20Z%20M21.5%2C20%20C20.0294118%2C20%2019%2C18.8235294%2019%2C17.5%20C19%2C16.0294118%2020.1764706%2C15%2021.5%2C15%20C22.8235294%2C15%2024%2C16.1764706%2024%2C17.5%20C24%2C18.8235294%2022.8235294%2C20%2021.5%2C20%20L21.5%2C20%20Z%22%20transform%3D%22translate(-15%20-11)%22%2F%3E%3C%2Fsvg%3E");
}
body:not(.body_im) .post-upload::before {
    --post-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2215%22%20viewBox%3D%220%200%2012%2015%22%3E%3Cpath%20transform%3D%22translate(-3%20-949)%22%20%20fill-rule%3D%22nonzero%22%20d%3D%22M5%20953c0-2.209139%201.790861-4%204-4s4%201.790861%204%204h.7180574c.4457594%200%20.6074025.04641281.7703655.13356635.1629629.08715355.2908572.21504784.3780107.3780108.0871536.16296296.1335664.32460608.1335664.77036545v8.4361148c0%20.4457594-.0464128.6074025-.1335664.7703655-.0871535.1629629-.2150478.2908572-.3780107.3780107-.162963.0871536-.3246061.1335664-.7703655.1335664H4.2819426c-.44575937%200-.60740249-.0464128-.77036545-.1335664-.16296297-.0871535-.29085725-.2150478-.3780108-.3780107C3.04641281%20963.3254599%203%20963.1638168%203%20962.7180574v-8.4361148c0-.44575937.0464128-.60740249.13356635-.77036545s.21504783-.29085725.3780108-.3780108C3.6745401%20953.04641281%203.83618323%20953%204.2819426%20953H5zM6.25%20953h5.5c0-1.51878306-1.23121694-2.75-2.75-2.75s-2.75%201.23121694-2.75%202.75z%22%2F%3E%3C%2Fsvg%3E");
}
.ui_actions_menu .post-attach-menu__icon {
    vertical-align: center;
}
.post-attach-menu > a:hover .post-attach-menu__icon,
.post_settings:hover,
.post_settings.shown {
    opacity: 1;
}

.post-upload,
.post-has-poll,
.post-has-note,
.post-has-geo.appended-geo {
    align-items: center;
    color: var(--text-color--tertiary);
    font-weight: 400;
}
.post-has-poll[style="display: block;"],
.composer.model_content_textarea
    :is(.post-vertical:not(:empty), .post-has-geo:not(:empty), .post-source:not(:empty), .post-has-geo.appended-geo) {
    display: flex !important;
}
.composer.model_content_textarea .post-horizontal:not(:empty) {
    display: block !important;
}
