.pix-editor {
    width: 100%;
    min-height: 88px;
    padding: 10px;
    outline: none;
    line-height: 1.8;
    white-space: pre-wrap;
}

.pix-editor::selection,
.pix-editor *::selection {
    background: rgba(93, 99, 255, .18);
    color: inherit;
}

.pix-editor-source {
    display: none;
}

.pix-editor:empty:before {
    content: attr(data-placeholder);
    color: #9aa0c3;
}

.mo-content-form {
    position: relative;
}

.pix-editor-toolbar {
    position: absolute;
    z-index: 35;
    display: flex;
    transform: translateX(-50%);
    max-width: calc(100% - 16px);
    border: 1px solid #e5e8ff;
    border-radius: 10px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 14px 34px rgba(54, 61, 120, .18);
    backdrop-filter: blur(10px);
}

.pix-editor-toolbar.is-hidden {
    display: none;
}

.pix-editor-toolbar-main {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    padding: 5px;
}

.pix-editor-toolbar-main button,
.pix-editor-popover button {
    border: 0;
    background: transparent;
    color: #24284d;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.pix-editor-toolbar-main button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 15px;
    line-height: 1;
    padding: 0 !important;
    box-sizing: border-box;
}

.pix-editor-toolbar-main button:hover {
    background: #f0f2ff;
}

.pix-editor-toolbar-main button.is-active {
    background: #e8edff;
    color: #3152ff;
}

.pix-editor-toolbar-main [data-panel="style"].has-style {
    background: var(--rt-current-bg, #f0f2ff);
    color: var(--rt-current-color, #24284d);
}

.pix-editor-toolbar-main [data-panel="style"].has-style i {
    color: var(--rt-current-color, #24284d);
}

.pix-editor-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 214px;
    padding: 12px;
    transform: translateX(-50%);
    border: 1px solid #e6e9ff;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(54, 61, 120, .18);
}

.pix-editor-popover.is-hidden {
    display: none;
}

.pix-editor-popover > span {
    display: block;
    margin: 8px 0;
    color: #8186ad;
    font-size: 13px;
}

.pix-editor-popover > span:first-child {
    margin-top: 0;
}

.pix-editor-color-grid {
    display: grid;
    grid-template-columns: repeat(5, 28px);
    gap: 8px;
}

.pix-editor-color-swatch {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 1px solid #e1e4f4 !important;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
    padding: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box;
}

.pix-editor-color-swatch[data-action="color"] {
    background: #fff !important;
    font-size: 16px;
    font-weight: 700;
}

.pix-editor-color-swatch[data-action="color"]::before {
    content: "A";
}

.pix-editor-color-swatch.is-active {
    outline: 2px solid #5d63ff;
    outline-offset: 2px;
}

.pix-editor-color-swatch.rt-color-default,
.pix-editor-color-swatch.rt-bg-default {
    background: linear-gradient(135deg, transparent 0 47%, #c9cedf 48% 52%, transparent 53% 100%);
}

.pix-editor-color-swatch.rt-color-default { color: #24284d; }
.pix-editor-color-swatch.rt-color-gray { color: #697089; }
.pix-editor-color-swatch.rt-color-blue { color: #3152ff; }
.pix-editor-color-swatch.rt-color-sky { color: #008ecf; }
.pix-editor-color-swatch.rt-color-green { color: #1f9a62; }
.pix-editor-color-swatch.rt-color-yellow { color: #b88600; }
.pix-editor-color-swatch.rt-color-orange { color: #d66812; }
.pix-editor-color-swatch.rt-color-red { color: #dc3545; }
.pix-editor-color-swatch.rt-color-pink { color: #d63384; }
.pix-editor-color-swatch.rt-color-purple { color: #7b3fe4; }

.pix-editor-color-swatch.rt-bg-gray { background: #eef0f5; }
.pix-editor-color-swatch.rt-bg-blue { background: #e8edff; }
.pix-editor-color-swatch.rt-bg-sky { background: #e3f5ff; }
.pix-editor-color-swatch.rt-bg-green { background: #e7f7ee; }
.pix-editor-color-swatch.rt-bg-yellow { background: #fff5cf; }
.pix-editor-color-swatch.rt-bg-orange { background: #fff0df; }
.pix-editor-color-swatch.rt-bg-red { background: #ffe8eb; }
.pix-editor-color-swatch.rt-bg-pink { background: #ffeaf5; }
.pix-editor-color-swatch.rt-bg-purple { background: #f1e8ff; }

.pix-editor-link-popover {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 8px;
    min-width: 300px;
}

.pix-editor-style-popover {
    min-width: 196px;
}

.pix-editor-style-reset {
    width: 100%;
    margin-top: 12px;
    border: 1px solid #dfe4ff !important;
    border-radius: 7px;
    background: #fff !important;
    color: #5b618e !important;
    font-size: 13px;
    line-height: 1;
    padding: 9px 12px;
}

.pix-editor-style-reset:hover {
    background: #f6f7ff !important;
}

.pix-editor-link-popover input {
    min-width: 0;
    border: 1px solid #dfe4ff;
    border-radius: 7px;
    background: #f8f9ff;
    font-size: 13px;
    outline: none;
    padding: 8px 10px;
}

.pix-editor-link-popover button {
    border-radius: 7px;
    background: #5d63ff;
    color: #fff;
    padding: 0 12px;
}

.pix-editor-topic {
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
    padding: 1px 7px;
    border: 1px solid rgba(91, 103, 255, .18);
    border-radius: 999px;
    background: #e9e9ff;
    color: #3152ff;
    font-size: 14px;
    line-height: 1.6;
}

.mos-content .pix-editor-topic {
    font-size: 14px;
}

.pix-editor-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 2px;
    padding: 1px 7px;
    border: 1px solid rgba(38, 166, 154, .2);
    border-radius: 999px;
    background: #e9fbf8;
    color: #168779;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: baseline;
}

.pix-editor-link i {
    font-size: 14px;
}

.pix-editor a.mo-inner-link,
.mos-content a.mo-inner-link {
    display: inline;
    color: #3152ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.pix-editor a.mo-inner-link i,
.mos-content a.mo-inner-link i {
    vertical-align: -1px;
}

.rt-inline-code {
    border-radius: 4px;
    background: #e8ebf5;
    color: #c24154;
    padding: 1px 5px;
}

.rt-color-default { color: inherit; }
.rt-color-gray { color: #697089; }
.rt-color-blue { color: #3152ff; }
.rt-color-sky { color: #008ecf; }
.rt-color-green { color: #1f9a62; }
.rt-color-yellow { color: #b88600; }
.rt-color-orange { color: #d66812; }
.rt-color-red { color: #dc3545; }
.rt-color-pink { color: #d63384; }
.rt-color-purple { color: #7b3fe4; }

.rt-bg-default { background: transparent; }
.rt-bg-gray { background: #eef0f5; }
.rt-bg-blue { background: #e8edff; }
.rt-bg-sky { background: #e3f5ff; }
.rt-bg-green { background: #e7f7ee; }
.rt-bg-yellow { background: #fff5cf; }
.rt-bg-orange { background: #fff0df; }
.rt-bg-red { background: #ffe8eb; }
.rt-bg-pink { background: #ffeaf5; }
.rt-bg-purple { background: #f1e8ff; }

.pix-editor-emoji {
    width: 24px;
    height: 24px;
    display: inline-block;
    margin: 0 2px;
    vertical-align: -6px;
}

.pix-editor-suggest {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% - 8px);
    z-index: 20;
    overflow: hidden;
    border: 1px solid #e7ebff;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 46px rgba(69, 80, 150, .16);
    backdrop-filter: blur(10px);
}

.pix-editor-suggest.is-hidden {
    display: none;
}

.pix-editor-suggest-item {
    width: 100%;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #202342;
    cursor: pointer;
    padding: 10px 12px;
    text-align: left;
    line-height: normal;
    appearance: none;
    -webkit-appearance: none;
}

.pix-editor-suggest-item:hover {
    background: #f5f7ff;
}

.pix-editor-suggest-item i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef1ff;
    color: #3152ff;
}

.pix-editor-suggest-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pix-editor-suggest-item small {
    color: #9aa0c3;
    font-size: 12px;
}

.pix-editor-suggest-empty,
.pix-editor-suggest-loading {
    padding: 12px 14px;
    color: #8f96c4;
    font-size: 13px;
}

.mo-tool-nav .left-tool {
    align-items: center;
    gap: 0;
}

.mo-tool-nav .left-tool > a.mo-btn {
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pix-moment-attach-trigger {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    box-sizing: border-box;
    margin-right: 8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #7b76be;
    cursor: pointer;
    font-size: 17px;
    line-height: 30px;
    transition: color .18s ease, background .18s ease, transform .18s ease;
    appearance: none;
    -webkit-appearance: none;
    vertical-align: middle;
}

.pix-moment-attach-trigger i {
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pix-moment-attach-trigger:hover,
.pix-moment-attach-trigger.is-active {
    background: linear-gradient(135deg, #eef1ff 0%, #f7f4ff 100%);
    color: #092dff;
    box-shadow: inset 0 0 0 1px rgba(49, 82, 255, .08);
}

.pix-moment-attach-trigger:active {
    transform: scale(.94);
}

.pix-moment-attach-trigger.disabled {
    color: #7b76be73;
    cursor: default;
}

.pix-moment-attach-trigger.disabled:hover {
    background: transparent;
    color: #7b76be73;
}

.pix-moment2-panel {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #eceeff;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(91, 96, 160, .08);
}

.pix-moment2-panel.is-collapsed {
    display: none;
}

.pix-moment2-panel.is-open {
    display: block;
    animation: pixMomentPanelIn .22s ease both;
}

@keyframes pixMomentPanelIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pix-moment2-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #eef0ff;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbfbff 0%, #f6f7ff 100%);
}

.pix-moment2-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #eef1ff;
    color: #3152ff;
}

.pix-moment2-copy {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pix-moment2-copy span {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #202342;
    font-size: 14px;
    line-height: 1.35;
}

.pix-moment2-copy small {
    min-width: 0;
    overflow: visible;
    white-space: normal;
    color: #969cc0;
    font-size: 12px;
    line-height: 1.6;
}

.pix-moment2-close {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #f2f4ff;
    color: #7b82b8;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.pix-moment2-close:hover {
    background: #e9ecff;
    color: #3152ff;
}

.pix-moment2-panel.has-items .pix-moment2-close {
    display: none;
}

.pix-moment2-panel[data-active-kind="image"] .pix-moment2-copy span:after,
.pix-moment2-panel[data-active-kind="video"] .pix-moment2-copy span:after,
.pix-moment2-panel[data-active-kind="file"] .pix-moment2-copy span:after {
    display: inline-flex;
    align-items: center;
    height: 20px;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef1ff;
    color: #3152ff;
    font-size: 12px;
}

.pix-moment2-panel[data-active-kind="image"] .pix-moment2-copy span:after {
    content: "图片";
}

.pix-moment2-panel[data-active-kind="video"] .pix-moment2-copy span:after {
    content: "视频";
}

.pix-moment2-panel[data-active-kind="file"] .pix-moment2-copy span:after {
    content: "文件";
}

.pix-uploader {
    width: 100%;
}

.pix-uploader-drop {
    position: relative;
    padding: 18px;
    border: 1px dashed #d8dcff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8f7ff 0%, #fff 62%, #eef4ff 100%);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.pix-uploader-drop.is-dragover {
    border-color: #3152ff;
    background: #f1f4ff;
    transform: translateY(-1px);
}

.pix-uploader-input {
    display: none;
}

.pix-uploader-drop-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7780ba;
    font-size: 14px;
}

.pix-uploader-drop-main i {
    color: #3152ff;
    font-size: 22px;
}

.pix-uploader-tools {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.pix-uploader-tools button {
    border: 1px solid #e2e5ff;
    background: #fff;
    color: #6572b5;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    line-height: normal;
    cursor: pointer;
}

.pix-uploader-tools button:hover {
    border-color: #3152ff;
    color: #3152ff;
}

.pix-uploader-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 7px 8px 7px 12px;
    border: 1px solid #e0e5ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 28px rgba(76, 88, 160, .08);
}

.pix-uploader-inline-form.is-hidden {
    display: none;
}

.pix-uploader-inline-form > i {
    flex: 0 0 auto;
    color: #3152ff;
    font-size: 18px;
}

.pix-uploader-inline-form input {
    min-width: 0;
    height: 34px;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    color: #202342;
    font-size: 13px;
}

.pix-uploader-inline-form input::placeholder {
    color: #a2a9ce;
}

.pix-uploader-inline-submit,
.pix-uploader-inline-cancel {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    cursor: pointer;
    line-height: normal;
    appearance: none;
    -webkit-appearance: none;
}

.pix-uploader-inline-submit {
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #3152ff;
    color: #fff;
    font-size: 13px;
}

.pix-uploader-inline-submit:hover {
    background: #2444ef;
    color: #fff;
}

.pix-uploader-inline-cancel {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: #f3f5ff;
    color: #8b93c2;
    font-size: 16px;
}

.pix-uploader-inline-cancel:hover {
    color: #3152ff;
}

.pix-moment2-panel[data-active-kind="video"] .pix-uploader-external,
.pix-moment2-panel[data-active-kind="file"] .pix-uploader-external,
.pix-moment2-panel[data-active-kind="card"] .pix-uploader-external,
.pix-moment2-panel:not([data-active-kind="video"]) .pix-uploader-bili,
.pix-moment2-panel[data-active-kind="image"] .pix-uploader-card,
.pix-moment2-panel[data-active-kind="video"] .pix-uploader-card,
.pix-moment2-panel[data-active-kind="file"] .pix-uploader-card,
.pix-moment2-panel[data-active-kind="card"] .pix-uploader-library {
    display: none;
}

.pix-uploader-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.pix-uploader-list.is-sorting {
    user-select: none;
}

.pix-uploader-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #eceeff;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(119, 128, 186, .08);
    transition: opacity .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pix-uploader-item[draggable="true"] {
    cursor: grab;
    touch-action: pan-y;
}

.pix-uploader-item.is-dragging,
.pix-uploader-item.is-touch-dragging {
    opacity: .48;
    transform: scale(.98);
}

.pix-uploader-item.is-sort-target {
    border-color: #3152ff;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(49, 82, 255, .16);
}

.pix-uploader-item.is-sort-target:before {
    content: "";
    position: absolute;
    inset: 6px;
    z-index: 4;
    pointer-events: none;
    border: 2px dashed rgba(49, 82, 255, .45);
    border-radius: 12px;
    background: rgba(233, 233, 255, .42);
    animation: pixUploaderSortPulse .9s ease-in-out infinite alternate;
}

.pix-uploader-item.is-sort-target:after {
    content: "\ea4c";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    pointer-events: none;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: #3152ff;
    color: #fff;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: remixicon;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(49, 82, 255, .22);
}

@keyframes pixUploaderSortPulse {
    from {
        opacity: .72;
        transform: scale(.985);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pix-uploader-preview {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f6ff;
}

.pix-uploader-preview img,
.pix-uploader-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pix-uploader-item:has(video),
.pix-uploader-item.is-kind-video,
.pix-uploader-item.is-kind-card {
    grid-column: 1 / -1;
}

.pix-uploader-item:has(video) .pix-uploader-preview,
.pix-uploader-item.is-kind-video .pix-uploader-preview {
    aspect-ratio: auto;
    background: #111827;
}

.pix-uploader-item.is-source-bili .pix-uploader-preview {
    aspect-ratio: 16 / 9;
}

.pix-uploader-item.is-kind-card .pix-uploader-preview {
    aspect-ratio: auto;
    background: transparent;
}

.pix-uploader-item:has(video) .pix-uploader-preview video {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.pix-uploader-video-info {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: #111827;
    color: #fff;
    pointer-events: none;
}

.pix-uploader-video-info span,
.pix-uploader-video-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pix-uploader-video-info span {
    font-size: 13px;
}

.pix-uploader-video-info small {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.pix-uploader-bili-card {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #ff6f9f 0%, #ff8bbd 45%, #758cff 100%);
    color: #fff;
    text-align: center;
}

.pix-uploader-bili-card img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(36, 40, 77, .18);
}

.pix-uploader-bili-card i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
    font-size: 28px;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.pix-uploader-bili-card span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.pix-uploader-bili-card small {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
}

.pix-uploader-card-preview {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 48px 12px 12px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #fff 0%, #f7f8ff 100%);
}

.pix-uploader-card-preview img {
    width: 96px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.pix-uploader-card-preview > i {
    width: 96px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef1ff;
    color: #3152ff;
    font-size: 28px;
}

.pix-uploader-card-preview div {
    min-width: 0;
}

.pix-uploader-card-preview span {
    display: -webkit-box;
    overflow: hidden;
    color: #202342;
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pix-uploader-card-preview small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 6px;
    color: #8f96c4;
    font-size: 12px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pix-uploader-file {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: #6572b5;
    text-align: center;
    font-size: 12px;
}

.pix-uploader-file i {
    font-size: 28px;
    color: #3152ff;
}

.pix-uploader-file span,
.pix-uploader-file small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pix-uploader-file small {
    color: #9aa0c3;
    font-size: 11px;
}

.pix-uploader-preview-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #3152ff;
    cursor: pointer;
    padding: 0;
    font-size: 17px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(.94);
    box-shadow: 0 10px 24px rgba(17, 24, 39, .18);
    transition: transform .18s ease, opacity .18s ease, background .18s ease, color .18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.pix-uploader-item:hover .pix-uploader-preview-btn,
.pix-uploader-item:focus-within .pix-uploader-preview-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.pix-uploader-preview-btn:hover {
    background: #fff;
    color: #1238ff;
    transform: translateY(0) scale(1.06);
}

.pix-uploader-preview-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pix-uploader-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 8px;
    font-size: 12px;
    color: #7c82ad;
}

.pix-uploader-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pix-uploader-remove {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #f0f2ff;
    color: #6970ad;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.pix-uploader-remove:hover {
    background: #ffedf0;
    color: #ff4d68;
}

.pix-uploader-remove-floating {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, .94);
    color: #7d84b8;
    box-shadow: 0 10px 24px rgba(31, 38, 86, .12);
}

.pix-uploader-remove-floating:hover {
    background: #fff0f3;
    color: #ff4d68;
    transform: scale(1.04);
}

.pix-uploader-item.is-removing {
    cursor: default;
    opacity: .78;
}

.pix-uploader-item.is-removing .pix-uploader-preview,
.pix-uploader-item.is-removing .pix-uploader-meta {
    filter: grayscale(.25);
}

.pix-uploader-removing {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: rgba(19, 24, 48, .58);
    color: #fff;
    backdrop-filter: blur(6px);
}

.pix-uploader-removing span {
    min-width: 96px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    padding: 5px 12px;
    font-size: 13px;
    text-align: center;
}

.pix-uploader-undo {
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #3152ff;
    cursor: pointer;
    padding: 6px 14px;
    font-size: 12px;
    line-height: normal;
}

.pix-uploader-undo:hover {
    background: #eef1ff;
}

.pix-uploader-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    height: 3px;
    overflow: hidden;
    border-radius: 0;
    background: rgba(49, 82, 255, .1);
}

.pix-uploader-progress span {
    display: block;
    height: 100%;
    transform-origin: left center;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, #3152ff, #7fa0ff);
    transition: width .2s ease;
}

.pix-uploader-error {
    padding: 0 8px 8px;
    color: #ff4d68;
    font-size: 12px;
}

.img-box-drop.is-pix-comment-upload {
    width: min(420px, calc(100vw - 34px));
    padding: 14px;
    border: 1px solid #eef0ff;
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(54, 61, 120, .16);
}

.pix-comment-uploader.pix-uploader {
    max-width: none;
}

.pix-comment-uploader .pix-uploader-drop {
    min-height: 76px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcff, #f7f8ff);
}

.pix-comment-uploader .pix-uploader-drop-main {
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.pix-comment-uploader .pix-uploader-drop-main i {
    font-size: 22px;
}

.pix-comment-uploader .pix-uploader-tools {
    margin-top: 10px;
    justify-content: center;
}

.pix-comment-uploader .pix-uploader-tools button {
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.pix-comment-uploader .pix-uploader-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.pix-comment-uploader .pix-uploader-item {
    overflow: hidden;
    border-radius: 10px;
}

.pix-comment-uploader .pix-uploader-meta {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    padding: 0;
    pointer-events: none;
}

.pix-comment-uploader .pix-uploader-meta span,
.pix-comment-uploader .pix-uploader-preview-btn {
    display: none;
}

.pix-comment-uploader .pix-uploader-remove {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, .94);
    color: #4d558f;
    opacity: .92;
    pointer-events: auto;
    transform: none;
    box-shadow: 0 8px 18px rgba(22, 29, 65, .14);
}

.pix-comment-uploader .pix-uploader-remove:hover {
    background: #ffedf0;
    color: #ff4d68;
}

.com-img-btn.has-uploaded-image {
    position: relative;
    color: #3152ff;
    background: #eef2ff;
}

.pix-comment-image-badge {
    position: absolute;
    right: -4px;
    top: -5px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ff4d68;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.pix-media-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(14, 18, 34, .38);
    backdrop-filter: blur(8px);
}

.jconfirm.pix-media-confirm {
    z-index: 100002 !important;
}

.pix-media-panel {
    position: relative;
    width: min(820px, 100%);
    height: min(880px, 90vh);
    min-height: min(800px, 90vh);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(22, 29, 65, .2);
}

.pix-media-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eef0ff;
    color: #202342;
    font-size: 16px;
}

.pix-media-head button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: #f2f4ff;
    color: #6572b5;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.pix-media-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px 0;
    color: #8a91bd;
    font-size: 12px;
}

.pix-media-summary span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pix-media-summary strong {
    color: #3152ff;
    font-size: 13px;
    font-weight: 500;
}

.pix-media-summary em {
    color: #a1a7ca;
    font-style: normal;
}

.pix-media-bulkbar {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 12px 18px 0;
    padding: 10px 12px;
    border: 1px solid #e9ecff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    color: #7c84b7;
    font-size: 12px;
}

.pix-media-bulkbar.is-active {
    display: flex;
}

.pix-media-bulkbar.is-loading {
    pointer-events: none;
    opacity: .62;
}

.pix-media-bulkbar span {
    margin-right: auto;
}

.pix-media-bulkbar strong {
    color: #3152ff;
    font-weight: 500;
}

.pix-media-bulkbar button {
    border: 1px solid #e2e5ff;
    border-radius: 999px;
    background: #fff;
    color: #6572b5;
    cursor: pointer;
    padding: 6px 12px;
    font-size: 12px;
    line-height: normal;
}

.pix-media-bulkbar button:hover {
    border-color: #3152ff;
    color: #3152ff;
}

.pix-media-bulk-insert {
    border-color: #dce3ff !important;
    background: #eef2ff !important;
    color: #3152ff !important;
}

.pix-media-bulk-insert:hover {
    border-color: #3152ff !important;
}

.pix-media-bulk-delete {
    border-color: #ffd6de !important;
    color: #ff4d68 !important;
}

.pix-media-bulk-delete:hover {
    background: #ffedf0 !important;
    border-color: #ff8ca0 !important;
}

.pix-media-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

.pix-media-search {
    min-width: 220px;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #e6e9ff;
    border-radius: 999px;
    background: #f8f9ff;
    color: #8188ba;
}

.pix-media-search input {
    width: 100%;
    height: 34px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #202342;
    font-size: 13px;
}

.pix-media-sort {
    position: relative;
    flex: 0 0 auto;
}

.pix-media-sort-toggle {
    min-height: 36px;
    min-width: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    border: 1px solid #e6e9ff;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    color: #8a91bd;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 12px;
    line-height: normal;
    box-shadow: 0 8px 20px rgba(72, 82, 170, .06);
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.pix-media-sort-toggle i,
.pix-media-sort-toggle em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3152ff;
    font-style: normal;
    line-height: 1;
}

.pix-media-sort-toggle span {
    flex: 0 0 auto;
    color: #6572b5;
}

.pix-media-sort-toggle:hover,
.pix-media-sort.is-open .pix-media-sort-toggle {
    border-color: #3152ff;
    color: #3152ff;
    box-shadow: 0 12px 26px rgba(49, 82, 255, .1);
}

.pix-media-sort.is-open .pix-media-sort-toggle em {
    transform: rotate(180deg);
}

.pix-media-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    min-width: 128px;
    display: none;
    padding: 6px;
    border: 1px solid #e9ecff;
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 42px rgba(24, 31, 74, .14);
    backdrop-filter: blur(10px);
}

.pix-media-sort.is-open .pix-media-sort-menu {
    display: block;
    animation: pixMediaSortIn .16s ease both;
}

.pix-media-sort-menu button {
    width: 100%;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    border: 0;
    outline: 0;
    border-radius: 10px;
    background: transparent;
    color: #6572b5;
    cursor: pointer;
    padding: 8px 10px;
    font-size: 12px;
    line-height: normal;
    text-align: left;
}

.pix-media-sort-menu button:last-child {
    margin-bottom: 0;
}

.pix-media-sort-menu button:hover,
.pix-media-sort-menu button.is-active {
    background: #eef1ff;
    color: #3152ff;
}

.pix-media-sort-menu button.is-active:after {
    content: "\ea10";
    font-family: remixicon;
    font-size: 14px;
}

@keyframes pixMediaSortIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pix-media-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.pix-media-tabs button,
.pix-media-foot button {
    border: 1px solid #e2e5ff;
    background: #fff;
    color: #6572b5;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    line-height: normal;
}

.pix-media-tabs button:hover,
.pix-media-tabs button.is-active,
.pix-media-foot button:hover:not(:disabled) {
    border-color: #3152ff;
    background: #eef1ff;
    color: #3152ff;
}

.pix-media-foot button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.pix-media-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    align-content: start;
    align-items: start;
    grid-auto-rows: max-content;
    gap: 12px;
    height: auto;
    min-height: 360px;
    overflow: auto;
    padding: 18px;
}

.pix-media-item {
    --pix-media-name-height: 42px;
    position: relative;
    overflow: hidden;
    align-self: start;
    border: 1px solid #eceeff;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    color: #6572b5;
}

.pix-media-item:hover {
    border-color: #3152ff;
}

.pix-media-item.is-selected {
    border-color: #3152ff;
    box-shadow: 0 0 0 2px rgba(49, 82, 255, .08);
}

.pix-media-check {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 3;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #3152ff;
    cursor: pointer;
    padding: 0;
    font-size: 17px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px) scale(.96);
    box-shadow: 0 8px 20px rgba(17, 24, 39, .12);
    transition: transform .18s ease, opacity .18s ease, background .18s ease, color .18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.pix-media-item:hover .pix-media-check,
.pix-media-item:focus-within .pix-media-check,
.pix-media-item.is-selected .pix-media-check {
    opacity: .96;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.pix-media-check:hover {
    background: #eef1ff;
}

.pix-media-used {
    position: absolute;
    left: 8px;
    bottom: calc(var(--pix-media-name-height) + 8px);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    height: 24px;
    box-sizing: border-box;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .72);
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: normal;
    backdrop-filter: blur(8px);
}

.pix-media-select {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pix-media-actions {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 4;
}

.pix-media-actions-toggle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #6572b5;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px) scale(.96);
    box-shadow: 0 8px 20px rgba(17, 24, 39, .12);
    transition: transform .18s ease, opacity .18s ease, background .18s ease, color .18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.pix-media-item:hover .pix-media-actions-toggle,
.pix-media-item:focus-within .pix-media-actions-toggle,
.pix-media-item.is-actions-open .pix-media-actions-toggle {
    opacity: .96;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.pix-media-actions-toggle i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pix-media-actions-toggle:hover,
.pix-media-item.is-actions-open .pix-media-actions-toggle {
    background: #eef1ff;
    color: #3152ff;
}

.pix-media-actions-menu {
    position: absolute;
    right: 0;
    top: 38px;
    z-index: 5;
    min-width: 118px;
    padding: 6px;
    border: 1px solid #e7eaff;
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 14px 34px rgba(17, 24, 39, .16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px) scale(.98);
    transform-origin: top right;
    transition: opacity .16s ease, transform .16s ease;
}

.pix-media-item.is-actions-open .pix-media-actions-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.pix-media-actions-menu button {
    width: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-sizing: border-box;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6572b5;
    cursor: pointer;
    padding: 0 9px;
    font-size: 12px;
    line-height: 1;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.pix-media-actions-menu button i {
    width: 16px;
    display: inline-flex;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

.pix-media-actions-menu button:hover {
    background: #f4f6ff;
    color: #3152ff;
}

.pix-media-actions-menu .pix-media-delete {
    color: #ff4d68;
}

.pix-media-actions-menu .pix-media-delete:hover {
    background: #ffedf0;
    color: #ff2f55;
}

.pix-media-actions-menu .pix-media-delete:disabled {
    color: #b8bfdc;
    cursor: not-allowed;
}

.pix-media-actions-menu .pix-media-delete:disabled:hover {
    background: transparent;
    color: #b8bfdc;
}

.pix-media-item.is-deleting {
    pointer-events: none;
    opacity: .56;
}

.pix-media-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #f5f6ff;
}

.pix-media-video-cover {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111827;
}

.pix-media-video-cover:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(10, 14, 28, .14);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.pix-media-item:hover .pix-media-video-cover:after,
.pix-media-item:focus-within .pix-media-video-cover:after {
    opacity: 1;
}

.pix-media-video-cover img,
.pix-media-video-cover video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pix-media-placeholder-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: #f5f6ff;
    color: #3152ff;
}

.pix-media-item > span {
    height: var(--pix-media-name-height);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.pix-media-item small {
    display: block;
    padding: 0 8px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #9aa0c3;
    font-size: 11px;
}

.pix-media-empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    text-align: center;
    color: #9aa0c3;
}

.pix-media-loading {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.pix-media-loading i {
    width: 28px;
    height: 28px;
    display: block;
    box-sizing: border-box;
    border: 3px solid #e6e9ff;
    border-top-color: #3152ff;
    border-radius: 50%;
    animation: pix-media-spin .78s linear infinite;
}

.pix-media-loading span {
    font-size: 13px;
}

@keyframes pix-media-spin {
    to {
        transform: rotate(360deg);
    }
}

.pix-media-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px 20px;
    border-top: 1px solid #eef0ff;
    background: #fff;
    color: #8d94c0;
    font-size: 12px;
}

.pix-media-foot.is-hidden {
    display: none;
}

.pix-media-detail {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 6;
    width: 380px;
    max-width: min(380px, 88vw);
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
    padding: 18px;
    border-left: 1px solid #eef0ff;
    background: rgba(255, 255, 255, .98);
    box-shadow: -24px 0 60px rgba(30, 39, 92, .14);
    transform: translateX(105%);
    transition: transform .22s ease;
    backdrop-filter: blur(10px);
}

.pix-media-detail.is-active {
    transform: translateX(0);
}

.pix-media-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pix-media-detail-head small {
    display: block;
    margin-bottom: 4px;
    color: #8e96c6;
    font-size: 12px;
}

.pix-media-detail-head strong {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #202342;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pix-media-detail-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: #f4f6ff;
    color: #7480bd;
    cursor: pointer;
    padding: 0;
    font-size: 20px;
    line-height: normal;
    appearance: none;
    -webkit-appearance: none;
}

.pix-media-detail-cover {
    min-height: 176px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 16px;
    background: #f5f6ff;
    color: #3152ff;
    font-size: 42px;
}

.pix-media-detail-cover img {
    width: 100%;
    height: 100%;
    min-height: 176px;
    display: block;
    object-fit: cover;
}

.pix-media-detail-video {
    position: relative;
    width: 100%;
}

.pix-media-detail-video i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #3152ff;
    font-size: 24px;
    transform: translate(-50%, -50%);
    box-shadow: 0 14px 32px rgba(17, 24, 39, .18);
}

.pix-media-detail dl {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
}

.pix-media-detail dl div {
    padding: 10px 12px;
    border: 1px solid #eef0ff;
    border-radius: 12px;
    background: #fafbff;
}

.pix-media-detail dt {
    margin-bottom: 5px;
    color: #9aa0c3;
    font-size: 12px;
}

.pix-media-detail dd {
    margin: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #3f497e;
    font-size: 13px;
    line-height: 1.45;
}

.pix-media-download {
    width: 100%;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #3152ff;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: normal;
}

.pix-media-download:hover {
    color: #fff;
    background: #2444ef;
}

.pix-media-video-modal,
.pix-media-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(14, 18, 34, .58);
    backdrop-filter: blur(8px);
}

.pix-media-video-panel,
.pix-media-preview-panel {
    position: relative;
    width: min(820px, 96vw);
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.pix-media-video-panel video,
.pix-media-preview-panel video {
    width: 100%;
    max-height: 72vh;
    display: block;
    background: #000;
}

.pix-media-preview-panel.is-image {
    background: rgba(15, 23, 42, .96);
}

.pix-media-preview-body {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.pix-media-preview-image {
    max-width: 100%;
    max-height: 74vh;
    display: block;
    object-fit: contain;
}

.pix-media-preview-frame {
    width: 100%;
    height: min(72vh, 720px);
    display: block;
    border: 0;
    background: #fff;
}

.pix-media-preview-fallback {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 34px;
    color: rgba(255, 255, 255, .86);
    text-align: center;
}

.pix-media-preview-fallback i {
    font-size: 46px;
    color: #8fa2ff;
}

.pix-media-preview-fallback strong {
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.pix-media-preview-fallback p {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    line-height: 1.7;
}

.pix-media-video-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #202342;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.pix-media-video-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
}

.pix-media-video-title span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pix-media-video-title a {
    flex: 0 0 auto;
    color: #9fb0ff;
    text-decoration: none;
}

.pix-media-video-title a:hover {
    color: #fff;
}

@media (hover: none) {
    .pix-media-check,
    .pix-media-actions-toggle,
    .pix-uploader-preview-btn {
        opacity: .92;
        pointer-events: auto;
        transform: none;
    }

    .pix-media-video-cover:after {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .pix-media-panel {
        width: 100%;
        height: min(780px, 90vh);
        min-height: 0;
    }

    .pix-moment-attach-trigger {
        margin-right: 6px;
    }

    .pix-moment2-head {
        align-items: flex-start;
    }

    .pix-moment2-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .pix-moment2-copy small {
        white-space: normal;
    }

    .pix-uploader-inline-form {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .pix-uploader-inline-form input {
        flex-basis: calc(100% - 28px);
    }

    .pix-uploader-inline-submit {
        flex: 1 1 auto;
    }

    .pix-uploader-list,
    .pix-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pix-media-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .pix-media-grid {
        height: auto;
        min-height: 0;
    }

    .pix-media-tabs {
        flex-wrap: wrap;
    }

    .pix-media-detail {
        width: 100%;
        max-width: 100%;
    }
}
