/* TesseraX — sons.css: aba "Sons" do painel da palavra e folha de recorte. Prefixo sn2-. */

/* ---------- aba Sons ---------- */
.sn2-pane { display: flex; flex-direction: column; min-width: 0; }
.sn2-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ln); }
.sn2-list[hidden] { display: none; }
.sn2-it { display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; align-items: center; column-gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--ln); }
.sn2-pl { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--pop-sf, var(--sf)); color: var(--tx); cursor: pointer; }
.sn2-pl svg { width: 15px; height: 15px; } .sn2-pl svg path { fill: currentColor; }
.sn2-pl.on { background: var(--ac); color: var(--on-ac3, #fff); }
.sn2-tx { min-width: 0; }
.sn2-t { font: 500 15px/1.35 var(--f-ui); color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn2-s { margin-top: 2px; font: 400 12.5px/1.3 var(--f-ui); color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn2-rm { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--mu); cursor: pointer; }
.sn2-rm:active { background: var(--tx-hover, rgba(128, 128, 128, .12)); }
.sn2-rm:disabled { opacity: .4; }
.sn2-none { margin: 14px 0 0; font: 400 14px/1.4 var(--f-ui); color: var(--mu); }
.sn2-gl { margin: 18px 0 8px; }
.sn2-ops { display: flex; flex-direction: column; gap: 8px; }
.sn2-op { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--l2); border-radius: 14px; background: transparent; color: var(--tx); font: 500 15px/1.3 var(--f-ui); text-align: start; cursor: pointer; }
.sn2-op:active { background: var(--tx-hover, rgba(128, 128, 128, .12)); }
.sn2-op > svg:last-child { margin-inline-start: auto; flex: none; color: var(--mu); }
.sn2-ot { display: flex; flex-direction: column; min-width: 0; }
.sn2-ot small { font: 400 12.5px/1.3 var(--f-ui); color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp2-play.sn2-hb.on { background: var(--ac); color: var(--on-ac3, #fff); }

/* ---------- folha de recorte ---------- */
.sn2-layer { z-index: 85; }
.asheet.sn2-sheet { max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; }
.sn2-cut { display: flex; flex-direction: column; gap: 12px; padding: 2px 6px 4px; min-width: 0; }
.sn2-sent { margin: 0; font: 400 19px/1.55 var(--f-ui); color: var(--tx); text-wrap: pretty; overflow-wrap: anywhere; }
.sn2-sent.txt-zh { font-size: 22px; }
.sn2-sent.txt-ar { font-size: 22px; line-height: 1.9; }
.sn2-w { padding: 0 3px; border-radius: 5px; background: color-mix(in srgb, var(--ac) 26%, transparent); color: inherit; }
.sn2-file { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 15px/1.3 var(--f-ui); color: var(--mu); min-width: 0; }
.sn2-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn2-wave { position: relative; height: 104px; border-radius: 14px; background: var(--sf); touch-action: none; user-select: none; -webkit-user-select: none; }
.sn2-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 14px; }
.sn2-wave:not([data-st="ok"]) .sn2-cv, .sn2-wave:not([data-st="ok"]) .sn2-hd { visibility: hidden; }
.sn2-hd { position: absolute; top: 0; bottom: 0; width: 36px; display: flex; align-items: stretch; touch-action: none; cursor: ew-resize; z-index: 2; outline: none; }
.sn2-hd.a { margin-left: -36px; justify-content: flex-end; }
.sn2-hd.b { margin-left: 0; justify-content: flex-start; }
.sn2-hd i { position: relative; display: block; width: 3px; background: var(--ac); }
.sn2-hd i::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 3px var(--sf); }
.sn2-hd.a i::after { right: -6.5px; }
.sn2-hd.b i::after { left: -6.5px; }
.sn2-hd.on i::after, .sn2-hd:focus-visible i::after { box-shadow: 0 0 0 3px var(--sf), 0 0 0 5px color-mix(in srgb, var(--ac) 45%, transparent); }
.sn2-ph { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--tx); opacity: .75; pointer-events: none; z-index: 1; }
.sn2-ph[hidden] { display: none; }
.sn2-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font: 500 14px/1.3 var(--f-ui); color: var(--mu); }
.sn2-load[hidden] { display: none; }
.sn2-load .bar { width: 55%; }
.sn2-err { display: flex; flex-direction: column; gap: 8px; }
.sn2-err[hidden] { display: none; }
.sn2-err p { margin: 0; font: 400 14px/1.4 var(--f-ui); color: var(--mu); }
.sn2-err .xbtn { margin-top: 0; min-height: 44px; }
.sn2-dur { display: flex; align-items: baseline; justify-content: space-between; font: 600 13px/1.3 var(--f-ui); color: var(--mu); }
.sn2-v { font: 600 15px/1.3 var(--f-ui); color: var(--tx); font-variant-numeric: tabular-nums; margin-inline-start: 4px; }
.sn2-fine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sn2-fg { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--l2); border-radius: 14px; }
.sn2-fl { font: 600 13px/1.3 var(--f-ui); color: var(--mu); white-space: nowrap; }
.sn2-fb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sn2-nb { min-height: 44px; min-width: 0; padding: 0; border: 1px solid var(--l2); border-radius: 10px; background: transparent; color: var(--tx); font: 600 14px/1 var(--f-ui); font-variant-numeric: tabular-nums; cursor: pointer; }
.sn2-nb:active { background: var(--tx-hover, rgba(128, 128, 128, .12)); }
.sn2-nb:disabled { opacity: .4; }
.sn2-acts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 10px; }
.sn2-acts .xbtn { margin-top: 0; min-height: 50px; padding: 0 8px; gap: 6px; min-width: 0; font-size: 15px; }
.sn2-acts .xbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn2-acts .xbtn:disabled { opacity: .45; }
.sn2-acts .xbtn.on { border-color: var(--ac); }
@media (min-width: 900px) { .sn2-cut { padding: 4px 10px 8px; } }
