:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#253c34;background:#f5f7f3;--green:#155843;--line:#dce4dc;--muted:#718176;--red:#a1423c;--radius:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:10px;background:white;color:inherit;cursor:pointer;touch-action:manipulation}button:hover{background:#edf3ed}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #88bba3;outline-offset:2px}.primary{background:var(--green);color:white;border-color:var(--green);font-weight:650}.primary:hover{background:#104d39}.danger{color:var(--red)}.textButton{border:0;background:transparent;color:var(--green);padding:7px 8px;min-height:36px}.iconButton{font-size:21px;padding:5px 12px;min-width:44px}.appHeader{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px max(24px,calc((100vw - 1500px)/2));background:white;border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:inherit;display:flex;align-items:center;gap:12px}.brand b{font-size:18px;display:block}.brand small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.brandIcon{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:42px;height:42px;border-radius:12px;background:var(--green)}.brandIcon i{width:3px;border-radius:3px;background:#dbebd8;height:12px}.brandIcon i:nth-child(2),.brandIcon i:nth-child(4){height:22px}.brandIcon i:nth-child(3){height:30px}.headerTools{display:flex;align-items:center;gap:10px}.connection{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px}.connection:before{content:"";width:6px;height:6px;border-radius:50%;background:#78a88e}.connection.offline{color:#996b1b}.connection.offline:before{background:#c58c2e}.identityButton{font-size:12px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.intro,.stats,.pipelineCard,.work,.exportSection,footer{max-width:1500px;margin-left:auto;margin-right:auto}.intro{padding:32px 28px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#66806e;font-weight:700;margin:0 0 9px}.intro h1{font-size:27px;letter-spacing:-.7px;margin:0 0 9px;font-weight:650}.intro p:not(.eyebrow){font-size:13px;color:var(--muted);margin:0;line-height:1.6}.intro .primary{white-space:nowrap;min-height:46px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:0 28px 18px}.stat{text-align:left;padding:17px 19px;min-height:115px;border-radius:14px;display:flex;flex-direction:column;gap:4px}.stat span{font-size:12px;color:#617468}.stat b{font-size:29px;line-height:1.2;letter-spacing:-.5px}.stat small{font-size:10px;color:var(--muted)}.approvedStat{background:#edf5ef;border-color:#c9ddcc}.approvedStat:hover{background:#e6f0e8}.pipelineCard{margin:0 28px 20px;padding:14px 17px;border:1px solid var(--line);background:#fcfdfb;border-radius:12px;max-width:1444px}.pipelineTop{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12px}.pipelineTop strong{font-weight:600}.pipelineTop .textButton{margin-left:auto;font-size:11px}.liveDot{height:6px;width:6px;background:#6b9b7d;border-radius:50%}.muted{color:var(--muted)}.progress{height:4px;border-radius:4px;background:#e3eae2;margin:10px 0;overflow:hidden}.progress span{display:block;height:100%;background:#77a989;transition:width .4s}.pipelineBottom{display:flex;justify-content:space-between;gap:12px;font-size:10px;line-height:1.5;color:var(--muted)}.work{padding:0 28px;display:grid;grid-template-columns:minmax(300px,35%) minmax(0,1fr);gap:20px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panelHeading{padding:18px 18px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panelHeading h2{font-size:16px;margin:0 0 4px}.panelHeading p{font-size:11px;color:var(--muted);margin:0}.tabs{display:flex;gap:4px;padding:0 14px 12px;overflow-x:auto;scrollbar-width:none}.tabs button{border:0;background:transparent;white-space:nowrap;font-size:11px;padding:8px 10px;min-height:36px}.tabs button.active{background:#e7f1e9;color:var(--green);font-weight:650}.tabs span{font-size:10px}.filters{padding:0 16px 14px;display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--line)}input,select,textarea{border:1px solid var(--line);border-radius:9px;padding:10px;background:white;color:inherit;min-height:44px;max-width:100%}.filters select{flex:1;min-width:0;font-size:11px}.filters input{width:100%;font-size:12px}.queue{max-height:680px;overflow-y:auto;overscroll-behavior:contain}.clip{padding:15px 17px;border-bottom:1px solid #edf1ea;cursor:pointer}.clip:hover{background:#f7faf5}.clip.selected{background:#edf5ef;box-shadow:inset 3px 0 var(--green)}.clipTop{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:10px;margin-bottom:7px}.clipEpisode{direction:rtl;text-align:right;color:#52695c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:74%}.preview{direction:rtl;text-align:right;line-height:1.8;font-size:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}.preview mark{background:#dcefe1;color:#236346;border-radius:3px}.clipMeta{font-size:10px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px;color:var(--muted)}.tag{font-size:10px;border-radius:5px;padding:4px 7px;display:inline-block;background:#edf0ea;color:#68796c;white-space:nowrap}.tag.approved{background:#deefe3;color:#27643e}.tag.rejected{background:#fae8e5;color:#a0443d}.tag.draft,.tag.warning{background:#fff1d8;color:#966a1b}.pager{padding:12px 16px;display:flex;justify-content:space-between;align-items:center;font-size:11px}.pager button{min-width:44px;padding:5px 12px}.libraryHelp{font-size:10px;line-height:1.6;color:var(--muted);padding:0 16px 15px;margin:0}.empty{padding:45px 20px;color:var(--muted);text-align:center;font-size:13px;line-height:1.7}.detailEmpty{padding:115px 20px}.emptyIcon{display:block;font-size:42px;color:#abc2ad;margin-bottom:16px}.empty h2{font-size:20px;letter-spacing:-.5px;color:#52675a}.detailHeader{padding:18px 22px;border-bottom:1px solid var(--line)}.detailHeaderTop{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:var(--muted)}.backButton{display:none}.detailHeader h2{font-size:17px;line-height:1.7;text-align:right;direction:rtl;margin:9px 0 0;overflow-wrap:anywhere}.saveStatus{font-size:11px;color:#527a60}.saveStatus.pending{color:#986b1e}.saveStatus.error{color:var(--red)}.detailBody{padding:18px 22px}.audioCard{padding:14px;border-radius:12px;background:#f4f7f1;border:1px solid #e5ece2}.stepLabel{font-size:10px;font-weight:700;letter-spacing:.7px;color:#67806c;margin-bottom:10px}.audioCard audio{width:100%;height:45px}.audioTools{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px;align-items:center}.audioTools button{font-size:11px;flex:1;min-width:70px}.audioTools select{font-size:11px;min-height:38px;padding:6px;max-width:85px}.rangeLabel{font-size:10px;color:var(--muted);margin-top:10px}.notice{padding:12px 14px;border-radius:9px;background:#fff7e7;color:#856226;font-size:12px;line-height:1.6;margin:14px 0}.notice.conflict{background:#fff0ed;color:#913f38}.notice.approved{background:#eaf5ec;color:#36684a}.notice button{margin-top:8px;font-size:11px}.field{margin-top:22px}.fieldHeading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.fieldHeading h3{font-size:14px;margin:0}.fieldHeading .muted{font-size:10px}.modeTabs{display:flex;gap:3px}.modeTabs button{font-size:10px;padding:6px 9px;min-height:34px;border-color:transparent;background:#f4f7f1}.modeTabs button.active{background:#e3efe5;color:var(--green);font-weight:650}.arabic{direction:rtl;text-align:right;line-height:2;unicode-bidi:plaintext;font-size:20px}.correction{width:100%;min-height:175px;resize:vertical;padding:15px;line-height:1.9;font-size:20px}.wordCloud{padding:12px 10px;border:1px solid var(--line);border-radius:11px;direction:rtl;text-align:right;line-height:2.25;min-height:115px}.word{display:inline;border:0;background:transparent;padding:4px 3px;min-height:0;font-size:20px;border-radius:5px;line-height:2.25}.word.changed{background:#dff0e4;color:#22623f}.word.disputed{border-bottom:2px dotted #c59836}.word:hover{background:#edf3ec}.helpText{font-size:11px;color:var(--muted);line-height:1.7;margin-top:8px}.diffSummary{margin-top:12px}.diffHeading{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);margin-bottom:8px}.changeRow{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:5px;font-size:15px;direction:ltr}.wrongWord{color:#9e4942;background:#fbece8;text-decoration:line-through;padding:3px 7px;border-radius:5px;direction:rtl}.fixedWord{color:#226741;background:#e1f1e6;padding:3px 7px;border-radius:5px;direction:rtl;min-height:30px;font-size:15px;border:0}.changeArrow{color:#9baa9e;font-size:12px}.sourceText{padding:12px 14px;background:#f5f7f3;border-radius:9px;margin-top:10px;font-size:17px}.checks{margin-top:22px;border:1px solid #dbe9db;border-radius:11px;background:#f4f9f2;padding:13px}.checks .stepLabel{margin-bottom:8px}.checkboxLine{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.6;margin:9px 0}.checkboxLine input{min-height:0;margin-top:4px;width:18px;height:18px;flex-shrink:0;accent-color:var(--green)}.checkboxLine small{color:var(--muted);display:block;font-size:10px}.notes{width:100%;font-size:12px}.actionbar{position:sticky;bottom:0;background:#fffffff5;border-top:1px solid var(--line);padding:14px 22px;display:grid;grid-template-columns:minmax(125px,1fr) auto auto;gap:8px;z-index:3;backdrop-filter:blur(8px)}.actionbar button{font-size:12px;min-height:46px}.actionbar .primary{font-size:13px}.actionInfo{padding:0 22px 14px;font-size:10px;color:var(--muted);background:white}.secondaryActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.secondaryActions button{font-size:11px}.trim{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-top:12px}.trim label{font-size:11px;flex:1;min-width:90px}.trim input{display:block;width:100%;margin-top:5px;font-size:13px}.trim .textButton{flex:0}.boundaryTools{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}.boundaryTools button{font-size:11px;flex:1}.contextCut{display:flex;align-items:end;gap:8px;margin-top:12px}.contextCut label{font-size:11px;flex:1}.contextCut input{width:100%;display:block;margin-top:4px}.contextCut button{min-width:44px;font-size:17px}.contextAudio{width:100%;margin-top:10px}.historyItem{padding:10px 0;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.historyItem button{font-size:10px;margin-top:5px;min-height:32px}.exportSection{padding:20px 28px 0}.exportSection>details{border:1px solid var(--line);background:#fbfdfa;border-radius:12px;padding:17px 19px;font-size:12px}.exportContent{margin-top:12px}.exportTools{display:flex;flex-wrap:wrap;gap:8px}.exportTools button{font-size:11px}.exportContent p{line-height:1.7;color:var(--muted)}details{margin-top:14px}summary{cursor:pointer;font-size:11px;color:#5a7662;line-height:1.6;padding:3px 0}footer{padding:20px 28px 28px;color:var(--muted);font-size:10px;line-height:1.7}footer .textButton{font-size:10px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:min(90vw,550px);z-index:30;padding:13px 18px;color:white;background:#253c34;border-radius:11px;box-shadow:0 5px 30px #0002;font-size:12px;line-height:1.5}.toast.error{background:#98443d}.srOnly{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}dialog{border:1px solid var(--line);border-radius:18px;max-width:510px;width:calc(100% - 30px);padding:0;color:inherit;max-height:85dvh;overflow-y:auto;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#18342666;backdrop-filter:blur(3px)}.modalHeader{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.modalHeader h2{font-size:18px;margin:0}#modalBody{padding:20px;font-size:13px;line-height:1.7}#modalBody input,#modalBody textarea{width:100%;margin-top:6px}#modalBody .primary{margin-top:14px;width:100%}.reasonGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.reasonGrid button{font-size:12px}.reasonGrid button.active{background:#fbeae7;border-color:#dda29b;color:var(--red)}.modalDescription{color:var(--muted);font-size:12px;margin-top:0}.episodeProgress{padding:12px 0;border-bottom:1px solid var(--line)}.episodeProgress strong{font-size:13px;display:block;text-align:right;direction:rtl}.episodeProgress small{color:var(--muted);display:block;margin-top:5px}.authScreen{position:fixed;inset:0;background:#f5f7f3;z-index:50;display:flex;align-items:center;justify-content:center;padding:20px}.authCard{max-width:430px;width:100%;background:white;border:1px solid var(--line);border-radius:20px;padding:35px}.authCard h1{font-size:23px;letter-spacing:-.5px;margin-top:22px}.authCard p{font-size:13px;color:var(--muted);line-height:1.7}.authCard label{font-size:12px;display:block;margin-top:20px}.authCard input{display:block;width:100%;margin:7px 0 12px}.authCard button{width:100%}#loginError{color:var(--red)}.recoveryItem{margin-bottom:14px;padding:12px;background:#f5f7f1;border-radius:9px;overflow-wrap:anywhere}.recoveryItem .arabic{font-size:15px}.conflictCompare{max-height:130px;overflow:auto;background:#fff9f6;padding:10px;border-radius:8px;white-space:pre-wrap;font-size:15px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;max-height:220px;overflow:auto}@media(min-width:1500px){.pipelineCard{margin-left:auto;margin-right:auto}}@media(max-width:1000px){.work{grid-template-columns:minmax(280px,38%) minmax(0,1fr)}.detailBody,.detailHeader{padding-left:17px;padding-right:17px}.actionbar{padding-left:17px;padding-right:17px}.intro h1{font-size:24px}.stats{gap:10px}.stat{padding:15px}}@media(max-width:700px){.appHeader{padding:12px 14px;gap:8px;position:sticky;top:0;z-index:6}.brandIcon{min-width:34px;height:36px;border-radius:10px}.brand{gap:8px}.brand b{font-size:15px}.brand small{font-size:9px}.headerTools{gap:6px}.connection{display:none}.identityButton{max-width:105px;font-size:10px;min-height:38px;padding:7px 9px}.headerTools .iconButton{min-height:38px;min-width:36px;padding:4px 8px;font-size:18px}.intro{padding:22px 15px 18px;display:block}.intro h1{font-size:23px;line-height:1.25}.intro p:not(.eyebrow){font-size:12px}.intro .primary{margin-top:15px;width:100%;text-align:center}.stats{padding:0 15px 15px;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat{padding:13px;min-height:102px}.stat b{font-size:26px}.stat span{font-size:11px}.stat small{font-size:9px}.pipelineCard{margin:0 15px 15px;padding:12px}.pipelineTop{font-size:10px;gap:6px}.pipelineTop .textButton{font-size:10px;min-height:28px;padding:4px;margin-left:0}.pipelineBottom{display:block;font-size:9px}.pipelineBottom>span{display:block;margin-top:4px}.work{display:block;padding:0 15px}.detailPanel{display:none}.queue{max-height:none;overflow:visible}.queuePanel{overflow:hidden}.panelHeading{padding:16px}.tabs{gap:1px;padding-left:9px;padding-right:9px}.tabs button{font-size:10px;padding:8px 9px}.filters select{font-size:12px}.filters input{font-size:16px}.clip{padding:16px}.clipTop{font-size:11px}.preview{font-size:18px;line-height:1.9}.clipMeta{font-size:11px}.clip .tag{font-size:9px}.exportSection{padding:15px 15px 0}footer{padding:15px;font-size:9px}.reviewing .intro,.reviewing .stats,.reviewing .pipelineCard,.reviewing .queuePanel,.reviewing .exportSection,.reviewing footer{display:none}.reviewing .detailPanel{display:block;border:0;border-radius:0}.reviewing .work{padding:0}.reviewing{background:white}.reviewing .brand small{display:none}.detailHeader{padding:12px 16px 14px}.backButton{display:inline-block;min-height:38px;padding:6px 10px;font-size:12px}.detailHeader h2{font-size:16px;margin-top:6px}.detailBody{padding:15px 16px 20px}.audioCard{padding:12px}.audioTools button{font-size:12px;min-height:44px}.arabic,.correction,.word{font-size:21px}.wordCloud{padding:13px 8px;line-height:2.35}.word{line-height:2.35;padding:6px 4px}.correction{font-size:20px;min-height:210px}.field{margin-top:20px}.checks{padding:12px}.checkboxLine{font-size:13px;gap:10px;margin:12px 0}.checkboxLine input{height:20px;width:20px}.checkboxLine small{font-size:10px}.actionbar{position:sticky;bottom:0;padding:12px 12px max(12px,env(safe-area-inset-bottom));grid-template-columns:minmax(145px,1fr) auto auto;gap:6px}.actionbar button{font-size:11px;padding:11px 12px;min-height:48px}.actionbar .primary{font-size:12px}.actionInfo{padding:0 16px 13px}.actionInfo .saveStatus{font-size:11px}.detailPanel{overflow:visible}.modalHeader{padding:15px 17px}#modalBody{padding:17px}dialog{width:calc(100% - 20px);max-height:88dvh}.trim input,.contextCut input,#modalBody input,#modalBody textarea{font-size:16px}.toast{bottom:82px;font-size:12px}.exportTools{display:grid;grid-template-columns:1fr}.reasonGrid button{min-height:50px}.authCard{padding:28px}.helpText{font-size:11px;line-height:1.75}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Audio-follow captions use gold; green remains reserved for text corrections. */
.captionCard{margin-top:15px;border:1px solid #d8dfc6;border-radius:12px;padding:12px;background:linear-gradient(135deg,#fffdf1,#edf5ec)}
.captionHeading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.captionHeading label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650;min-height:36px;cursor:pointer}
.captionHeading input{min-height:0;width:18px;height:18px;accent-color:var(--green);margin:0}
.captionHeading small{display:inline;color:#728172;font-size:10px;font-weight:400;margin-left:4px}
.captionHeading button{font-size:11px;white-space:nowrap;padding:5px 7px;min-height:36px}
.liveCaption{font-size:22px;line-height:1.9;min-height:76px;padding:7px 0;text-align:center;overflow-wrap:anywhere;unicode-bidi:plaintext}
.captionWord{display:inline;border:0;background:transparent;font-size:inherit;line-height:1.8;padding:4px 6px;min-height:44px;border-radius:7px;transition:background .12s,color .12s,box-shadow .12s}
.captionWord.spoken{color:#718172}
.captionWord.speaking,.word.speaking{background:linear-gradient(125deg,#ffec9a,#ffcf62)!important;color:#263b2d!important;box-shadow:0 0 0 2px #e7bd58,0 3px 15px #e4b63438;text-decoration:none;position:relative;z-index:1}
.word.spoken:not(.changed){color:#718172}.word.speaking.changed{box-shadow:0 0 0 2px #e7bd58,inset 0 -3px #327e51}
.captionProgress{height:3px;border-radius:3px;background:#dfe5d7;overflow:hidden;margin:6px 0}
.captionProgress span{display:block;height:100%;background:linear-gradient(90deg,#79a482,#d7ac35);width:0}
.captionStatus{font-size:10px;line-height:1.6;color:#68795e;margin:6px 0 0;min-height:16px}
.captionStatus .textButton{font-size:10px;min-height:24px;padding:2px 5px}
.wordCloud{max-height:310px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:25px}
@media(max-width:700px){.captionCard{padding:10px;margin-top:12px}.captionHeading small{display:none}.liveCaption{font-size:23px;min-height:88px}.wordCloud{max-height:290px}.captionStatus{font-size:10px}}

.captionActions{display:flex;align-items:center;gap:2px;flex-wrap:wrap;justify-content:flex-end}.captionHeading label{flex-shrink:0}
.wordTapActions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px}.wordTapActions span{font-size:10px;color:var(--muted);margin-right:3px}.wordTapActions button{min-height:38px;font-size:11px;padding:7px 10px;background:#f6f8f3}.wordTapActions button.active{background:#e1ede4;color:var(--green);border-color:#aac9b4;font-weight:650}
@media(max-width:700px){.captionHeading button{font-size:10px;padding:5px 4px}.wordTapActions button{min-height:44px;font-size:12px}.wordTapActions span{display:none}}
