.base64-card-preview{min-width:0}.base64-card-stage{min-width:0;color:var(--term-tone-ink);font-variant-numeric:tabular-nums;gap:8px;display:grid}.base64-card-head{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.base64-card-title{color:var(--term-tone-ink);font-size:13.5px;font-weight:700;line-height:1.4}.base64-card-badge{background:var(--term-tone-soft);color:var(--term-tone-accent);font-family:var(--font-mono);white-space:nowrap;border-radius:999px;flex-shrink:0;padding:2px 8px;font-size:12px;font-weight:650}.base64-card-row{background:var(--term-tone-stage);border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 8px;min-width:0;padding:8px 11px;display:flex;box-shadow:inset 0 1px #ffffff8c}html[data-lg-theme=dark] .base64-card-row{box-shadow:inset 0 1px #ffffff14}.base64-card-row.is-encoded{background:var(--term-tone-soft)}.base64-card-label{color:var(--term-tone-accent);white-space:nowrap;font-size:12px;font-weight:700}.base64-card-code{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%;color:var(--term-tone-ink);font-family:var(--font-mono);font-size:11.5px;font-weight:600;overflow:hidden}.base64-card-chips{flex-wrap:wrap;align-items:center;gap:5px;display:inline-flex}.base64-card-chip{background:var(--term-tone-stage);color:var(--term-tone-ink);font-family:var(--font-mono);white-space:nowrap;border-radius:6px;padding:2px 8px;font-size:11.5px;font-weight:650}.base64-card-chip.is-warn{background:var(--warn-wash);color:var(--warn-ink)}.base64-card-chip.is-pass{background:var(--pass-wash);color:var(--pass-ink)}.term-interactive-demo.base64-demo{background:var(--term-tone-bg);-webkit-backdrop-filter:blur(14px)saturate(175%);box-shadow:var(--lg-rim), var(--lg-elevation-sm);color:var(--term-tone-ink);font-variant-numeric:tabular-nums;border:0;border-radius:22px;gap:16px;padding:clamp(16px,3vw,24px);display:grid}.term-interactive-demo.base64-demo button{background:var(--term-tone-stage);min-height:38px;box-shadow:var(--lg-rim), 0 1px 4px #0f172a0f;color:var(--term-tone-ink);cursor:pointer;transition:background-color .16s ease, color .16s ease, transform .15s var(--lg-spring), box-shadow .16s ease;border:0;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:650}.term-interactive-demo.base64-demo button:hover:not(:disabled):not([aria-pressed=true]){background:var(--term-tone-soft);color:var(--term-tone-ink)}.term-interactive-demo.base64-demo button:active{transform:scale(.96)}.term-interactive-demo.base64-demo button:focus-visible{outline:2px solid var(--term-tone-accent);outline-offset:2px}.base64-demo-topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.base64-preset-group,.base64-mode-group{background:var(--term-tone-stage);border-radius:16px;flex-wrap:wrap;gap:6px;padding:4px;display:flex}.term-interactive-demo.base64-demo .base64-seg-btn{min-height:34px;box-shadow:none;background:0 0;border-radius:12px;padding:6px 12px;font-size:12.5px}.term-interactive-demo.base64-demo .base64-seg-btn[aria-pressed=true]{background:var(--term-tone-accent);color:var(--term-tone-accent-ink);box-shadow:inset 0 1px #ffffff47,0 3px 10px #0f172a29}.base64-status-pill{white-space:nowrap;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:700}.base64-status-pill.is-valid{background:var(--pass-wash);color:var(--pass-ink)}.base64-status-pill.is-warn{background:var(--warn-wash);color:var(--warn-ink)}.base64-status-pill.is-error{background:var(--fail-wash);color:var(--fail-ink)}.base64-pipeline{background:var(--term-tone-stage);border-radius:14px;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:10px 14px;list-style:none;display:flex;box-shadow:inset 0 1px 2px #0f172a0a}.base64-pipe-step{background:var(--term-tone-soft);color:var(--term-tone-muted);border-radius:999px;align-items:center;gap:7px;padding:4px 10px 4px 6px;font-size:12.5px;font-weight:650;display:inline-flex}.base64-pipe-dot{background:var(--term-tone-stage);width:20px;height:20px;font-family:var(--font-mono);border-radius:50%;justify-content:center;align-items:center;font-size:11px;font-weight:700;display:inline-flex}.base64-pipe-step.is-done{background:var(--pass-wash);color:var(--pass-ink)}.base64-pipe-step.is-fail{background:var(--fail-wash);color:var(--fail-ink)}.base64-pipe-arrow{color:var(--term-tone-muted);opacity:.65;font-size:13px}.base64-workbench{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:start;gap:16px;display:grid}.base64-pane{background:var(--term-tone-stage);border:0;border-radius:18px;gap:12px;min-width:0;padding:16px;display:grid;box-shadow:inset 0 1px 2px #0f172a0a,0 1px #ffffffa6}html[data-lg-theme=dark] .base64-pane{box-shadow:inset 0 1px #ffffff14,inset 0 1px 3px #00000059}.base64-pane-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;display:flex}.base64-pane-head strong{color:var(--term-tone-ink);font-size:14px;font-weight:700}.base64-pane-head small{color:var(--term-tone-muted);font-size:12px}.base64-field-label{color:var(--term-tone-muted);font-size:12.5px;line-height:1.45}.term-interactive-demo.base64-demo .base64-textarea{background:var(--term-tone-bg);width:100%;color:var(--term-tone-ink);font-family:var(--font-mono);resize:vertical;box-sizing:border-box;border:0;border-radius:14px;padding:11px 12px;font-size:12.5px;line-height:1.6;box-shadow:inset 0 1px 3px #0f172a0f}.term-interactive-demo.base64-demo .base64-textarea:focus-visible{outline:2px solid var(--term-tone-accent);outline-offset:2px}.base64-action-row{flex-wrap:wrap;gap:8px;display:flex}.term-interactive-demo.base64-demo .base64-btn-primary{background:var(--term-tone-accent);color:var(--term-tone-accent-ink);box-shadow:inset 0 1px #ffffff47,0 3px 10px #0f172a29}.term-interactive-demo.base64-demo .base64-btn-primary:hover:not(:disabled):not([aria-pressed=true]){filter:brightness(1.06);background:var(--term-tone-accent);color:var(--term-tone-accent-ink)}.term-interactive-demo.base64-demo .base64-btn-ghost{background:var(--term-tone-soft);box-shadow:none}.base64-groups{background:var(--term-tone-bg);border-radius:14px;gap:7px;padding:11px 12px;display:grid}.base64-group-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;display:flex}.base64-group-bytes,.base64-group-chars{flex-wrap:wrap;gap:4px;display:inline-flex}.base64-byte-chip,.base64-char-chip{font-family:var(--font-mono);border-radius:6px;padding:2px 7px;font-size:11.5px;font-weight:650}.base64-byte-chip{background:var(--term-tone-stage);color:var(--term-tone-muted)}.base64-char-chip{background:var(--term-tone-soft);color:var(--term-tone-accent)}.base64-char-chip.is-pad{background:var(--warn-wash);color:var(--warn-ink)}.base64-group-arrow{color:var(--term-tone-muted);font-size:12px;font-weight:700}.base64-groups-more{color:var(--term-tone-muted);margin:2px 0 0;font-size:11.5px}.base64-output-box{background:var(--term-tone-bg);color:var(--term-tone-ink);font-family:var(--font-mono);white-space:pre-wrap;word-break:break-all;border-radius:14px;margin:0;padding:12px 13px;font-size:12px;line-height:1.58;overflow-x:auto}.base64-output-box.is-decoded{background:var(--pass-wash);word-break:break-word}.base64-decoded-head{color:var(--pass-ink);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;margin-bottom:8px;font-family:inherit;font-size:12.5px;display:flex}.base64-decoded-head span{background:var(--term-tone-stage);border-radius:999px;padding:2px 8px;font-size:11px;font-weight:650}.base64-decoded-text{font-family:var(--font-mono);color:var(--term-tone-ink);white-space:pre-wrap;margin:0;font-size:13px}.base64-svg-live{align-items:center;gap:12px;font-family:inherit;display:flex}.base64-svg-live img{border-radius:12px;flex-shrink:0;box-shadow:0 6px 14px -6px #0f172a40}.base64-svg-meta{gap:4px;min-width:0;display:grid}.base64-svg-meta strong{color:var(--pass-ink);font-size:13px}.base64-svg-meta code{font-family:var(--font-mono);color:var(--term-tone-muted);word-break:break-all;font-size:11.5px}.base64-meter{background:var(--term-tone-bg);border-radius:14px;gap:8px;padding:12px 13px;display:grid}.base64-meter-row{color:var(--term-tone-muted);flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;font-size:12px;display:flex}.base64-meter-row strong.is-valid{color:var(--pass-ink)}.base64-meter-row strong.is-warn{color:var(--warn-ink)}.base64-meter-row strong.is-error{color:var(--fail-ink)}.base64-dual-bars{gap:6px;display:grid}.base64-mini-bar{color:var(--term-tone-muted);grid-template-columns:48px minmax(0,1fr);align-items:center;gap:8px;font-size:11.5px;display:grid}.base64-bar-track{background:var(--term-tone-soft);border-radius:999px;height:10px;position:relative;overflow:hidden}.base64-bar-fill{border-radius:999px;height:100%;transition:width .18s}.base64-bar-fill.is-valid{background:var(--pass-ink)}.base64-bar-fill.is-warn{background:var(--warn-ink)}.base64-bar-fill.is-error{background:var(--fail-ink)}.base64-bar-limit{background:var(--term-tone-ink);opacity:.45;width:2px;position:absolute;top:0;bottom:0;left:50%}.base64-bar-caption{color:var(--term-tone-muted);flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:11.5px;display:flex}.base64-alert-box{background:var(--fail-wash);color:var(--term-tone-ink);border-radius:14px;gap:8px;padding:13px 14px;display:grid}.base64-alert-box strong{color:var(--fail-ink);font-size:13px}.base64-alert-box p{color:var(--term-tone-ink);margin:0;font-size:12.5px;line-height:1.55}.term-interactive-demo.base64-demo .base64-btn-recover{background:var(--fail-ink);width:fit-content;min-height:36px;color:var(--term-tone-stage);padding:6px 14px;font-size:12.5px}.term-interactive-demo.base64-demo .base64-btn-recover:hover:not(:disabled):not([aria-pressed=true]){filter:brightness(1.08);background:var(--fail-ink);color:var(--term-tone-stage)}.base64-demo-status{background:var(--term-tone-stage);color:var(--term-tone-muted);border-radius:12px;margin:0;padding:11px 14px;font-size:13px;line-height:1.55}.base64-demo-status strong{color:var(--term-tone-ink)}.base64-lead{margin:0 0 12px;line-height:1.65}@media (max-width:760px){.base64-workbench{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.term-interactive-demo.base64-demo *{transition:none!important;animation:none!important}}
