/* Base64: two panes with a direction arrow between them (turns when you edit the other side). */
.b64-panes { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: stretch }
.pane { display: flex; flex-direction: column; min-width: 0 }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line) }
.pane .wb-area { flex: 1; min-height: 260px }
.pane-foot { padding: 8px 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); min-height: 36px }
#pane-code { background: color-mix(in srgb, var(--soft) 45%, transparent) }
.b64-dir { display: grid; place-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--muted) }
.b64-dir svg { width: 32px; height: 32px; padding: 5px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease); color: var(--ink) }
.b64-dir.decode svg { transform: rotate(180deg) }
@media (max-width: 760px) {
  .b64-panes { grid-template-columns: 1fr }
  .b64-dir { height: 40px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
  .b64-dir svg { transform: rotate(90deg) } .b64-dir.decode svg { transform: rotate(270deg) }
  .pane .wb-area { min-height: 120px; height: 120px }
}
.b64-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 12px 18px; border-top: 1px solid var(--line) }
.b64-filebox { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto }
.b64-filebox small { color: var(--muted) }
.b64-file { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--soft) }
.b64-file p { margin: 0; flex: 1; min-width: 200px; font-size: .92rem }
.b64-file img { max-width: 120px; max-height: 90px; border-radius: 8px; border: 1px solid var(--line); background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 12px 12px }
.b64.drag { outline: 3px dashed var(--focus); outline-offset: 4px }
.bullets li strong { color: var(--ink) }
