.tx-actions{position:fixed;z-index:10010;display:flex;gap:4px;align-items:center;flex-wrap:wrap;max-width:calc(100vw - 24px);padding:5px;background:var(--surface,#fff);border:1px solid var(--border);border-radius:9px;box-shadow:0 4px 18px #0002;font:inherit}
.tx-actions[hidden],.tx-undo[hidden]{display:none}
.tx-actions button,.tx-undo button{font:inherit;font-size:12px;border:0;border-radius:6px;padding:6px 9px;cursor:pointer;color:var(--primary);background:var(--surface-alt,#eff5f3);white-space:nowrap}
.tx-actions button[data-action=delete]{color:var(--danger,#b53b3b);background:#fff1f0}
.tx-actions span{font-size:12px;padding:4px 7px;color:var(--muted)}
.tx-edit-dialog{width:min(540px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid var(--border);border-radius:12px;padding:20px;background:var(--surface,#fff);color:var(--text);font:inherit;box-shadow:0 10px 50px #0003}
.tx-edit-dialog::backdrop{background:#142d2940}
.tx-edit-dialog,.tx-edit-dialog *{box-sizing:border-box}
.tx-edit-dialog{margin:auto}
.tx-edit-dialog[data-action=edit]{width:min(720px,calc(100vw - 32px))}
.tx-edit-comparison{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:start}
.tx-edit-side{min-width:0}
.tx-edit-label{display:block;font-size:13px;font-weight:650;margin-bottom:8px;color:var(--text)}
.tx-edit-arrow{align-self:center;color:var(--primary,#143e39);font-size:24px}
.tx-edit-dialog .tx-edit-comparison pre,.tx-edit-dialog .tx-edit-comparison textarea{margin:0;min-height:160px;max-height:280px;font:inherit;font-size:14px;line-height:1.7}
.tx-edit-dialog[data-action=delete] .tx-edit-comparison{grid-template-columns:minmax(0,1fr)}
.tx-edit-dialog[data-action=delete] .tx-edit-comparison pre{min-height:0}
@media(max-width:560px){.tx-edit-comparison{grid-template-columns:minmax(0,1fr);gap:8px}.tx-edit-arrow{justify-self:center;transform:rotate(90deg);line-height:1}.tx-edit-dialog .tx-edit-comparison pre,.tx-edit-dialog .tx-edit-comparison textarea{min-height:100px;max-height:180px}}
.tx-edit-dialog [hidden]{display:none}
.tx-edit-dialog h3{margin:0 0 12px;font-size:17px}.tx-edit-dialog p{font-size:12px;line-height:1.6;color:var(--muted)}
.tx-edit-dialog textarea{display:block;width:100%;min-height:160px;resize:vertical;padding:10px;border:1px solid var(--border);border-radius:7px;font:inherit;font-size:14px;line-height:1.7;background:var(--surface,#fff);color:var(--text)}
.tx-edit-dialog pre{max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--surface-alt,#f2f6f5);border-radius:7px;font:inherit;font-size:13px;line-height:1.7}
.tx-dialog-buttons{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}.tx-dialog-buttons button{width:auto}
.tx-edit-error{color:var(--danger,#b53b3b)!important;white-space:pre-wrap}.tx-undo{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;margin:7px 0;color:var(--muted)}
.tx-editor-hint{font-size:11px;color:var(--muted);line-height:1.6;margin:7px 0}.tx-interim{color:var(--muted)}
.tx-recovery-search{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}.tx-recovery-search input{flex:1;min-width:160px}
#transcript-recovery-card[hidden]{display:none}
.tx-recovery-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}.tx-recovery-row>div{min-width:0;overflow-wrap:anywhere}.tx-recovery-row p{font-size:11px;line-height:1.7;color:var(--muted);margin:4px 0 0}.tx-recovery-row button{flex-shrink:0;font-size:12px}
