/* Base64 encoder / decoder - two-pane text encode/decode plus a file -> data URI panel.
   Reuses base .btn-outline / .seg; colors come from theme tokens only. */

.b64-toolbar { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 16px; }
.b64-control { display: flex; align-items: center; gap: 10px; }
.b64-control-label { font-size: 14px; color: var(--muted); font-weight: 600; }

.b64-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .b64-panes { grid-template-columns: 1fr; } }

.b64-pane { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.b64-pane-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.b64-pane-label { font-size: 14px; color: var(--muted); font-weight: 600; }

.b64-area {
    width: 100%; box-sizing: border-box; min-height: 200px; resize: vertical;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 14px; line-height: 1.5; padding: 12px;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px;
    white-space: pre-wrap; word-break: break-all; overflow: auto;
}
.b64-area:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.b64-output { background: var(--bg); }

.b64-error { margin: 14px 0 0; }
.b64-actions { margin: 16px 0 0; }

.b64-file { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.b64-file-title { font-size: 18px; margin: 0 0 4px; }
.b64-file-intro { color: var(--muted); max-width: 60ch; margin: 0 0 16px; font-size: 14px; }

.b64-drop {
    border: 1px dashed var(--border-strong); border-radius: 12px;
    padding: 20px; margin-bottom: 16px; text-align: center;
    transition: border-color .15s, background .15s;
}
.b64-drop.is-drag { border-color: var(--accent); background: var(--surface); }
.b64-filelabel { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex-wrap: wrap; justify-content: center; }
.b64-dnd { color: var(--muted); font-size: 14px; }
.b64-filename { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.b64-filename:empty { display: none; }
