.bmc-tsv{--surface:#fff;--surface-muted:#f4f6fb;--border:#e2e8f0;--text-main:#0f172a;--text-muted:#64748b;--primary:#2563eb;--primary-dark:#1d4ed8;}
.tx-tool{margin-bottom:2rem;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 1px 3px rgba(0,0,0,0.06);overflow:hidden;}
.tx-bar{display:flex;flex-direction:column;gap:0.75rem;padding:1rem;background:var(--surface-muted);border-bottom:1px solid var(--border);}
.tx-actions{display:flex;flex-wrap:wrap;gap:0.5rem;align-items:center;}
.tx-btn{padding:0.5rem 1rem;font-size:0.875rem;font-weight:500;line-height:1.25;border-radius:8px;border:1px solid transparent;cursor:pointer;transition:background-color 0.2s,border-color 0.2s,color 0.2s;-webkit-tap-highlight-color:transparent;}
.tx-btn-primary{background:var(--primary);color:#fff;border-color:var(--primary);}
.tx-btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark);}
.tx-btn-primary:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(0,0,0,0.15);}
.tx-btn-outline{background:transparent;color:var(--text-main);border-color:var(--border);}
.tx-btn-outline:hover{background:var(--surface-muted);}
.tx-btn-ghost{background:transparent;color:var(--text-muted);}
.tx-btn-ghost:hover{background:var(--surface);color:var(--text-main);}
.tx-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(0,0,0,0.12);}
.tx-status{font-size:0.8125rem;color:var(--text-muted);margin:0;min-height:1.25rem;}
.tx-status.is-ok{color:var(--primary);}
.tx-status.is-err{color:#b91c1c;}
.tx-opts-wrap{padding:0.75rem 1rem;border-bottom:1px solid var(--border);background:var(--surface);}
.tx-opts{display:flex;flex-wrap:wrap;align-items:center;gap:0.75rem 1.25rem;}
.tx-opt{display:inline-flex;align-items:center;gap:0.5rem;font-size:0.8125rem;color:var(--text-muted);cursor:pointer;user-select:none;}
.tx-opt input[type="checkbox"]{width:1rem;height:1rem;accent-color:var(--primary);cursor:pointer;}
.tx-opt-field{display:inline-flex;align-items:center;gap:0.5rem;}
.tx-opt-field label{font-size:0.8125rem;color:var(--text-muted);white-space:nowrap;}
.tx-opt-field input[type="text"]{width:6rem;max-width:100%;padding:0.375rem 0.5rem;font-size:0.8125rem;color:var(--text-main);background:var(--surface-muted);border:1px solid var(--border);border-radius:6px;}
.tx-opt-field input:focus{outline:none;border-color:var(--primary);}
.tx-grid{display:flex;flex-direction:column;gap:0;min-height:320px;}
.tx-pane{display:flex;flex-direction:column;gap:0.375rem;padding:1rem;min-height:0;flex:1;}
.tx-pane:first-child{border-bottom:1px solid var(--border);}
.tx-label{font-size:0.8125rem;font-weight:600;letter-spacing:0.02em;color:var(--text-muted);}
.tx-area{width:100%;min-height:180px;padding:0.75rem 1rem;font-size:0.875rem;line-height:1.5;font-family:ui-monospace,monospace;color:var(--text-main);background:var(--surface-muted);border:1px solid var(--border);border-radius:8px;resize:vertical;transition:border-color 0.2s,box-shadow 0.2s;}
.tx-area::placeholder{color:var(--text-muted);opacity:0.9;}
.tx-area:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 2px rgba(0,0,0,0.08);}
.tx-area-in{min-height:200px;}
.tx-area-out{background:var(--surface);cursor:default;min-height:160px;}
@media (min-width:768px){.tx-bar{flex-direction:row;align-items:center;justify-content:space-between;padding:1rem 1.25rem;}
.tx-status{order:0;margin-right:auto;margin-left:0;}
.tx-actions{order:1;}
.tx-grid{flex-direction:row;min-height:400px;}
.tx-pane{min-height:360px;padding:1.25rem;}
.tx-pane:first-child{border-bottom:none;border-right:1px solid var(--border);}
.tx-area-in,.tx-area-out{min-height:0;flex:1;}
.tx-opts-wrap{padding:0.75rem 1.25rem;}
.tx-opts{gap:1rem 1.5rem;}}
