/* Audio Scripts Library — isolated styles, preserving original Hub */
.scripts-entry{background:linear-gradient(125deg,#f4f1fc,#fbfaff)!important;border:1px solid #cfc0e8!important;min-height:230px}
.scripts-entry:hover{background:linear-gradient(125deg,#eee8fb,#faf7ff)!important}
.script-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#e6daf8;color:#634b91}
.resource-pill{background:#f1e9fa;border-color:#d9caed;color:#69548f}
.scripts-card-detail{font-weight:740;font-size:10px;color:#7965a1;padding-top:12px}
.scripts-card-detail span{font-size:15px;vertical-align:middle;margin-right:5px}
.scripts-shell{padding-bottom:10px}
.script-intro{margin-bottom:18px}
.script-topline{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.script-topline h2{margin:0 0 6px;font-size:25px;letter-spacing:-.65px}
.script-topline p{margin:0;max-width:690px;color:#75819b;font-size:13px;line-height:1.6}
.script-summary{padding:10px 14px;border-radius:11px;background:#f2eef8;color:#66528a;font-size:11px;font-weight:760;white-space:nowrap}
.script-panel{border:1px solid #e7e4ef;border-radius:16px;padding:18px 18px 16px;background:#fff}
.script-group-label{font-size:10px;letter-spacing:1.4px;font-weight:850;text-transform:uppercase;color:#807097;margin-bottom:11px}
.script-tests{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.script-test{border:1px solid #dfd9eb;border-radius:9px;background:#faf8fd;min-width:105px;padding:11px 13px;text-align:left}
.script-test strong{display:block;font-size:13px;color:#453965}
.script-test small{display:block;font-size:10px;color:#89809e;margin-top:4px}
.script-test.selected{border-color:#8a72bc;background:#ece5fa;box-shadow:0 0 0 1px #bba8dd inset}
.script-test:disabled{opacity:.54;cursor:not-allowed}
.script-tabs{display:flex;gap:7px;flex-wrap:wrap;padding:7px;border:1px solid #e8e3f0;background:#f8f6fc;border-radius:12px;margin-bottom:20px}
.script-tab{border:1px solid transparent;background:transparent;padding:12px 13px;border-radius:8px;color:#756c88;font-weight:770;font-size:12px;flex:1 1 auto;white-space:nowrap}
.script-tab[aria-selected="true"]{background:#fff;border-color:#ded5ee;box-shadow:0 3px 9px #26203b12;color:#514075}
.script-tab:not([disabled]):hover{color:#514075;background:#fff}
.script-tab[disabled]{opacity:.46;cursor:not-allowed}
.script-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 15px}
.script-section-title{font-size:20px;letter-spacing:-.3px;font-weight:800;margin:0 0 3px;color:#322d50}
.script-section-info{font-size:12px;color:#8790a5;margin:0}
.script-search{width:265px;max-width:100%;border:1px solid #dcdde9;border-radius:9px;background:#fff;color:#38405d;padding:11px 12px;font-size:12px;outline:none}
.script-search:focus{border-color:#8267ae;box-shadow:0 0 0 3px #8267ae17}
.script-table-wrap{overflow-x:auto;border:1px solid #e4e3ed;border-radius:13px}
.script-table{width:100%;table-layout:fixed;border-collapse:collapse;background:#fff}
.script-table thead{background:#f1eff8}
.script-table th{text-align:left;padding:13px 16px;text-transform:uppercase;font-size:10px;letter-spacing:1.25px;color:#685b86;font-weight:820}
.script-table th:first-child{width:31%;min-width:220px;border-right:1px solid #e7e2ed}
.script-table td{vertical-align:top;border-top:1px solid #eceaf1;padding:19px 16px}
.script-table tbody tr:nth-child(even){background:#fcfbfe}
.script-table tbody tr:hover{background:#faf8ff}
.script-table td:first-child{border-right:1px solid #eceaf1}
.script-ordinal{font-size:11px;font-weight:800;color:#8b6cbb;letter-spacing:.7px;display:block;margin-bottom:7px}
.script-audio-name{font-size:15px;font-weight:780;color:#332d51;line-height:1.35;margin:0 0 12px}
.script-audio{display:block;width:100%;max-width:300px;height:42px}
.script-transcript{font-size:13px;line-height:1.8;color:#404962;overflow-wrap:anywhere}
.script-transcript p{margin:0 0 11px}
.script-transcript p:last-child{margin-bottom:0}
.script-speaker{font-weight:850;color:#5b4782;margin-right:5px}
.script-no-match{font-size:13px;color:#7c8297;padding:28px 16px;text-align:center}
.script-notice{font-size:11px;line-height:1.6;color:#8a8a9e;margin:18px 0 0}
@media(max-width:720px){.script-panel{padding:12px}.script-table,.script-table tbody,.script-table tr,.script-table td{display:block;width:100%}.script-table thead{display:none}.script-table tbody tr{border-bottom:1px solid #e6e3ed}.script-table td{border:0!important;padding:13px 16px}.script-table td:first-child{padding-bottom:7px}.script-table td:last-child{padding-top:5px;padding-bottom:20px}.script-audio{max-width:100%}.script-tab{flex:1 1 40%}.script-search{width:100%}.script-controls{align-items:stretch}.script-section-title{font-size:18px}.script-test{flex:1 1 25%}}


/* Audio Scripts Library - Safari-safe, always-visible custom playback UI */
.script-player{display:block;width:100%;max-width:320px;min-width:0;background:#f8f6fc;border:1px solid #e6dff1;border-radius:12px;padding:10px 11px 9px;color:#493865}
.script-native-audio{display:none!important}
.script-player-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.script-player-play,.script-player-replay{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;min-height:34px;font-size:12px;line-height:1.2;font-weight:800;white-space:nowrap;transition:background .12s}
.script-player-play{border:1px solid #665094;background:#665094;color:#fff;min-width:88px;padding:8px 11px}
.script-player-play:hover,.script-player-play.is-playing{background:#493876;color:#fff}
.script-player-replay{border:1px solid #d7cbe9;background:#fff;color:#68538e;padding:8px 10px}
.script-player-replay:hover{background:#efe7f8}
.script-player-play:focus-visible,.script-player-replay:focus-visible,.script-player-seek:focus-visible,.script-player-speed:focus-visible{outline:3px solid #bc87cc;outline-offset:2px}
.script-player-time{margin-left:auto;font-size:11px;font-weight:750;color:#685c81;font-variant-numeric:tabular-nums;white-space:nowrap}
.script-player-timeline{margin-top:10px;display:flex;align-items:center;min-height:15px}
.script-player-seek{display:block;appearance:none;-webkit-appearance:none;height:6px;margin:0;width:100%;border:none;border-radius:20px;cursor:pointer;background:linear-gradient(to right,#7960af var(--script-progress,0%),#ddd8e8 var(--script-progress,0%));accent-color:#765aab}
.script-player-seek:disabled{cursor:default;opacity:.65}
.script-player-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:15px;height:15px;border-radius:50%;border:2px solid #fff;background:#7457a8;box-shadow:0 1px 5px #46345f38}
.script-player-seek::-moz-range-thumb{width:12px;height:12px;border-radius:50%;border:2px solid #fff;background:#7457a8;box-shadow:0 1px 5px #46345f38}
.script-player-bottom{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:8px}
.script-player-state{color:#867c9a;font-size:10px;line-height:1.3}
.script-speed-label{font-size:10px;font-weight:750;color:#817395;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.script-player-speed{border:1px solid #ddd4ec;border-radius:6px;background:#fff;color:#63517f;padding:3px 6px;font-size:11px;font-weight:700;min-width:59px}
@media(max-width:800px){.script-player{max-width:100%}}
@media(max-width:420px){.script-player-time{width:100%;margin:1px 0 0}.script-player-actions{gap:7px}}

/* Expandable written answer key, scoped only to Audio Scripts Library. */
.script-answer-details{border:1px solid #e5dcf1;border-radius:11px;margin-top:18px;background:#faf8fe;overflow:hidden}
.script-answer-summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:12px 15px;font-size:12px;font-weight:800;color:#5f4b8d;user-select:none;list-style:none}
.script-answer-summary::-webkit-details-marker{display:none}
.script-answer-summary:focus-visible{outline:3px solid #ae80ce;outline-offset:-3px}
.script-answer-arrow{font-size:16px;transition:transform .2s}
.script-answer-details[open] .script-answer-arrow{transform:rotate(180deg)}
.script-answer-box{padding:4px 15px 13px;background:#fff;border-top:1px solid #e6e0ee}
.script-answer-item{padding:11px 0}
.script-answer-item+.script-answer-item{border-top:1px solid #ede8f3;margin-top:6px;padding-top:17px}
.script-answer-question{font-size:12px;line-height:1.55;font-weight:750;color:#39405d;margin-bottom:7px}
.script-answer-correct{display:flex;gap:9px;align-items:flex-start;color:#287352;font-size:12px;line-height:1.55}
.script-answer-letter{flex:0 0 26px;height:26px;display:grid;place-items:center;border-radius:7px;background:#e4f5eb;font-weight:850;color:#1e7850}

/* PT2 review caveat: user-provided transcriptions vs original prepared scripts */
.script-verification-note { font-size: 12px; color: #7c5570; background: #f9f1f7; border: 1px solid #e6cfdf; border-radius: 8px; padding: 9px 11px; margin-top: 12px; line-height: 1.45; }
