.tool-shell{max-width:1120px}.script-section{border-top:1px solid #e0e5ee;margin-top:28px;padding-top:28px}#scriptText{width:100%;min-height:180px;border:1px solid #d1d9e8;border-radius:14px;padding:18px;font:inherit;font-size:15px;line-height:1.7;resize:vertical;color:#172840;background:#fbfcff}.script-toolbar{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:#77849b;font-size:13px}.script-toolbar label{cursor:pointer}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.settings-grid label{display:flex;flex-direction:column;gap:9px;font-size:13px;color:#43536e;font-weight:650}.settings-grid input:not([type=checkbox]),.settings-grid select{width:100%;min-width:0;border:1px solid #d1d9e8;border-radius:10px;padding:12px;background:#fff;color:#172840;font:inherit;font-size:15px}.settings-grid small{font-weight:400;color:#77849b}.settings-grid .check-option{flex-direction:row;align-items:center;font-weight:500}.check-option input,.review-consent input{accent-color:#7351eb;width:17px;height:17px}.cue-row{grid-template-columns:145px minmax(0,1fr);padding:15px 8px}.cue-timing{display:flex;flex-direction:column;gap:8px}.cue-timing label{display:flex;align-items:center;gap:5px;font-size:11px;color:#516477}.cue-timing input{width:85px;min-width:0;border:1px solid #c9dcd4;border-radius:6px;padding:5px;font:inherit}.needs-review{border-left:3px solid #d69b3f}.review-note{font-size:12px;color:#79511f;line-height:1.5;margin:8px 0}.review-consent{display:flex;gap:10px;align-items:center;font-size:13px;line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}button:disabled{opacity:.55;cursor:not-allowed}[hidden]{display:none!important}@media(max-width:760px){.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.settings-grid{grid-template-columns:1fr}.cue-row{grid-template-columns:1fr}.cue-timing{flex-direction:row;flex-wrap:wrap}.cue-timing input{width:80px}}

#applySettings{background:#6b48e6;color:white;padding:13px 20px;border-color:#6b48e6}.process.regenerate{background:#fff;color:#655b80;border:1px solid #d6ccec;box-shadow:none;padding:11px 20px;min-height:44px;font-size:13px;width:auto}

/* Transform animation stays smooth without inventing processing percentages. */
.progress-track{height:8px;background:#e9e3f6;border-radius:999px;overflow:hidden;position:relative;margin-top:14px;isolation:isolate}
.progress-fill{display:block;width:100%;height:100%;background:linear-gradient(90deg,#9576f5,#6342dc);transform:scaleX(0);transform-origin:left center;transition:transform .6s cubic-bezier(.22,.61,.36,1);border-radius:inherit}
.progress-pulse{display:none;position:absolute;inset:0 auto 0 0;width:35%;border-radius:inherit;background:linear-gradient(90deg,#b19bf8,#6c48e7);animation:script-progress-travel 1.7s ease-in-out infinite}
.progress-track.indeterminate .progress-fill{visibility:hidden;transition:none;transform:scaleX(0)!important}.progress-track.indeterminate .progress-pulse{display:block}
#working[hidden] .progress-pulse{animation:none}
@keyframes script-progress-travel{from{transform:translateX(-110%)}to{transform:translateX(300%)}}
@media(prefers-reduced-motion:reduce){.progress-fill{transition:none}.progress-pulse{animation:none;left:32.5%;opacity:.7}}

.script-review{margin-top:22px;padding:20px;border:1px solid #edcd93;border-radius:14px;background:#fffaf0;color:#584729}.script-review h3{margin:0 0 8px;font-size:17px}#scriptReviewSummary{font-size:14px;line-height:1.5}.script-highlights{max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:white;padding:16px;border:1px solid #efdfbf;border-radius:10px;line-height:2;font-size:15px}.unmatched-word{display:inline;border:0;border-bottom:2px solid #b9760a;border-radius:3px;background:#ffe1a1;color:#593700;font:inherit;line-height:inherit;white-space:pre-wrap;padding:1px 2px;text-align:left;cursor:pointer}.unmatched-word:hover{background:#ffd17a}.unmatched-list{max-height:230px;overflow:auto;margin-top:12px}.unmatched-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #eedfc5}.unmatched-edit{flex:1;min-width:0;text-align:left;border:0;background:none;color:#71501d;font:inherit;font-size:13px;overflow-wrap:anywhere;cursor:pointer}.unmatched-row .change-file{flex-shrink:0;font-size:12px;padding:8px 12px}@media(max-width:480px){.script-review{padding:13px}.unmatched-row{align-items:flex-start;flex-direction:column}}

.review-script-label{font-weight:650;font-size:13px}.speech-comparison{flex:1;min-width:0;display:grid;grid-template-columns:125px minmax(0,1fr);gap:8px 12px;font-size:13px}.speech-comparison strong{font-size:12px;color:#6a5b42}.speech-comparison .unmatched-edit{padding:0;line-height:1.6}.recognized-words{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:#243a50}.recognized-context{grid-column:1/-1;margin:0;color:#7c776e;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.unmatched-row{align-items:flex-start}.unmatched-list{max-height:360px}@media(max-width:560px){.speech-comparison{grid-template-columns:1fr;gap:5px}.unmatched-row{flex-direction:column}.recognized-context{margin-top:5px}}

.mismatch-key{border-bottom:2px solid #b9760a;background:#ffe1a1;color:#593700;border-radius:3px;padding:2px 4px}[data-audio-listen][aria-pressed=true]{background:#ede6ff;color:#5935c0;border-color:#a98af2}.unmatched-row [data-audio-listen]{min-width:138px}
