/* Trouveur de moments forts. Toutes les règles sont préfixées #tx / .tx- : rien d'autre sur le site n'est touché. */
#tx{margin:16px 0;min-height:280px;color:var(--text,#111)}
#tx *{box-sizing:border-box}
#tx :is(button,input,a){font:inherit}
.tx-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;padding:20px;border:2px dashed var(--line,#bbb);border-radius:14px;text-align:center;cursor:pointer;background:var(--surface-2,#f6f6f6)}
.tx-drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tx-drop:focus-visible,.tx-drop.tx-over,.tx-drop:hover{border-color:var(--accent,#ff7a1a);outline:0}
.tx-drop:focus-visible{outline:3px solid var(--accent,#ff7a1a);outline-offset:2px}
.tx-drop strong{font-size:1.1rem}
.tx-drop span,#tx small{color:var(--mut,#666)}
#tx-file{margin:12px 0 0;word-break:break-all}
.tx-lbl{margin:14px 0 6px;font-weight:600}
.tx-seg{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.tx-seg button{min-height:44px;min-width:56px;padding:0 12px;border:1px solid var(--line,#ccc);border-radius:10px;background:var(--surface-2,#f4f4f4);color:var(--text,#111);cursor:pointer;font-weight:600}
.tx-seg button[aria-pressed=true]{background:var(--accent,#ff7a1a);color:var(--on-accent,#fff);border-color:transparent}
.tx-go,.tx-pri{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:0 18px;border:0;border-radius:12px;background:var(--accent,#ff7a1a);color:var(--on-accent,#fff);font-weight:700;cursor:pointer;text-decoration:none}
.tx-go:disabled{opacity:.6;cursor:default}
#tx-prog{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}
#tx-prog progress{flex:1;min-width:140px;height:12px}
.tx-ghost,.tx-acts button,.tx-list button{min-height:44px;padding:0 14px;border:1px solid var(--line,#ccc);border-radius:10px;background:var(--surface-2,#f4f4f4);color:var(--text,#111);cursor:pointer}
#tx-err{margin-top:8px;color:#b00020;font-weight:600}
#tx-err:empty{display:none}
#tx-out{margin-top:18px}
#tx-v{display:block;width:100%;max-height:60vh;border-radius:12px;background:#000}
#tx-tl{display:block;width:100%;height:64px;margin:10px 0;border-radius:8px}
.tx-list{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px}
.tx-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line,#ddd);border-radius:12px}
.tx-b{font-style:normal;font-size:.85rem;padding:2px 8px;border-radius:999px;border:1px solid var(--line,#ccc);margin:0 4px}
.tx-hi{background:var(--accent,#ff7a1a);color:var(--on-accent,#fff);border-color:transparent}
.tx-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:12px 0}
.tx-acts .tx-pri{width:auto}
.tx-note{color:var(--mut,#666);font-size:.95rem}
@media (max-width:420px){.tx-list li{flex-direction:column;align-items:stretch}}
.tx-f{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:12px}
.tx-f label{display:flex;flex-direction:column;gap:4px;font-weight:600}
.tx-f input,.tx-f select{min-height:44px;padding:0 12px;border:1px solid var(--line,#ccc);border-radius:10px;background:var(--surface-2,#f4f4f4);color:var(--text,#111)}
.tx-f input:focus-visible,.tx-f select:focus-visible{outline:3px solid var(--accent,#ff7a1a);outline-offset:2px}
.tx-blk{margin:18px 0}.tx-blk h3{margin:0 0 8px}
.tx-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line,#ddd);border-radius:12px;margin-bottom:8px}
.tx-row span{flex:1;overflow-wrap:anywhere}
.tx-row button{flex:none}
.tx-tags{overflow-wrap:anywhere;padding:10px 12px;border:1px solid var(--line,#ddd);border-radius:12px}
.tx-err{color:#b00020;font-weight:600;min-height:0}.tx-err:empty{display:none}
.tx-ghost{min-height:44px;padding:0 14px;border:1px solid var(--line,#ccc);border-radius:10px;background:var(--surface-2,#f4f4f4);color:var(--text,#111);cursor:pointer}
.tx-note{color:var(--mut,#666);font-size:.95rem}
@media (max-width:420px){.tx-row{flex-direction:column;align-items:stretch}}
.tx-wide{grid-column:1/-1}
.tx-wide small,.tx-k,.tx-len{color:var(--mut,#666);font-weight:400}
.tx-len{margin-left:6px}.tx-over{color:#b35c00}
.tx-tips{margin:14px 0;padding:10px 12px;border:1px solid var(--line,#ddd);border-radius:12px}
.tx-tips summary{cursor:pointer;font-weight:600;min-height:32px}
.tx-tips ul{margin:8px 0 0;padding-left:20px}
