/* ── Base64 输入/输出区 ── */
.b64-editor-wrap {
    margin-bottom: 1rem;
}

.b64-textarea,
.b64-output {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    resize: vertical;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
}

.b64-textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

.b64-output {
    background: #f8f9fb;
}

/* ── 结果区 ── */
.b64-result {
    margin-top: 1.5rem;
}

.b64-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.b64-result-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.b64-result-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.b64-result-status.success {
    color: #059669;
    background: #d1fae5;
}

.b64-result-status.error {
    color: #dc2626;
    background: #fee2e2;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .b64-textarea,
    .b64-output {
        font-size: 0.82rem;
    }
}