/* 站内信附件拖拽上传 */
.aihfabs-msg-drop-root {
    position: relative;
}

.aihfabs-msg-drop-root.is-dragover::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 20;
    border: 2px dashed var(--themeone, #e94560);
    border-radius: 10px;
    background: rgba(233, 69, 96, 0.08);
    pointer-events: none;
}

.aihfabs-msg-drop-hint,
.aihfabs-msg-editor-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 0;
    padding: 10px 12px;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    background: #fafbfc;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.aihfabs-msg-editor-hint {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    margin: 0;
    pointer-events: none;
    border: 1px dashed #e2e6ea;
    background: rgba(255, 255, 255, 0.92);
}

.aihfabs-msg-editor-wrap:focus-within .aihfabs-msg-editor-hint,
.aihfabs-msg-editor-wrap.has-content .aihfabs-msg-editor-hint {
    opacity: 0;
}

.aihfabs-msg-drop-root.is-dragover .aihfabs-msg-drop-hint,
.aihfabs-msg-drop-root.is-dragover .aihfabs-msg-editor-hint {
    border-color: var(--themeone, #e94560);
    background: #fff5f7;
    color: var(--themeone, #e94560);
    opacity: 1;
}

.aihfabs-msg-attach-preview {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
}

.aihfabs-msg-attach-preview.is-visible {
    display: flex;
}

.aihfabs-msg-attach-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.aihfabs-msg-attach-thumb[hidden] {
    display: none !important;
}

.aihfabs-msg-attach-meta {
    flex: 1;
    min-width: 0;
}

.aihfabs-msg-attach-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    word-break: break-all;
}

.aihfabs-msg-attach-remove {
    border: 0;
    background: transparent;
    color: #adb5bd;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.aihfabs-msg-attach-remove:hover {
    color: var(--themeone, #e94560);
}

.aihfabs-message-compose-attach {
    margin-top: 8px;
}

.aihfabs-message-compose-attach .aihfabs-msg-drop-hint {
    margin-top: 0;
}

.aihfabs-msg-uploading .aihfabs-msg-drop-hint {
    opacity: 0.6;
}
