.viewer-toolbar,
.explorer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.viewer-frame,
.viewer-video,
.viewer-image {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: #05070d;
}

.viewer-frame {
    min-height: 70vh;
}

.viewer-image {
    display: block;
    max-height: 70vh;
    object-fit: contain;
}

.audio-player {
    width: 100%;
}

.viewer-title,
.section-title,
.chat-message strong {
    display: block;
    margin-bottom: 6px;
}

.markdown-output {
    line-height: 1.65;
    word-break: break-word;
}

.markdown-output pre {
    overflow: auto;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.28);
}

.markdown-output code,
.textviewer-output {
    font-family: "Fira Code", Consolas, Monaco, "Courier New", monospace;
}

.text-viewer-card {
    padding: 0;
    overflow: hidden;
}

.textviewer-output {
    margin: 0;
    padding: 18px;
    min-height: 260px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #e7eeff;
    background: transparent;
}
