/* Media Styles - Compact Flat Design */
.mm-editor {
    background: var(--rs-white);
    border: 1px solid var(--rs-border-primary);
    border-radius: 0;
    padding: 8px;
}

.mm-editor:hover {
    border-color: var(--rs-theme-primary);
}

.mm-editor textarea {
    width: 100%;
    height: 80px;
    border: none;
    outline: none;
    resize: vertical;
    font-size: 14px;
    box-sizing: border-box;
    font-family: var(--rs-ff-body);
}

.mm-editor div {
    height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mm-editor img {
    width: 20px;
    height: 20px;
    padding: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.mm-editor img:hover {
    background: var(--rs-bg-secondary);
}

.mm-image img {
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
}

.mm-text {
    line-height: 1.6;
    color: var(--rs-title-primary);
}

.ui-mask {
    position: fixed;
    z-index: 20000;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
}

.ui-viewer {
    position: fixed;
    z-index: 20001;
    top: 0;
    width: 100%;
    height: 100%;
    color: var(--rs-white);
    display: none;
}

.ui-viewer div {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 20010;
    overflow-y: auto;
}

.ui-viewer div img {
    vertical-align: middle;
    max-width: 100%;
}
