/* Smart subtitle import, matching and review */
.smart-intro{margin-top:70px;display:grid;grid-template-columns:1fr .9fr;gap:42px;align-items:center;padding:36px 40px;border:1px solid #34364e;border-radius:24px;background:radial-gradient(ellipse at 100% 0%,#4c367340,transparent 70%),linear-gradient(125deg,#151827,#111723);overflow:hidden}
.smart-intro-copy h2{font-size:clamp(26px,3.3vw,39px);letter-spacing:-1px;line-height:1.4;margin:11px 0 15px}
.smart-intro-copy h2 em{font-style:normal;color:#b9a9ff}
.smart-intro-copy p{line-height:1.85;font-size:13px;color:#a2a5bd;max-width:580px;margin:0 0 17px}
.smart-intro-benefits{display:flex;gap:10px 16px;flex-wrap:wrap;color:#a5dfd3;font-size:11px}
.smart-inline-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:236px;padding:26px;background:#18192b9c;border:1.5px dashed #71659c;border-radius:16px;color:#eeebff;text-align:center;transition:border-color .2s,background .2s,transform .2s}
.smart-inline-drop:hover,.smart-inline-drop.smart-drag-over{border-color:#bca9ff;background:#25213e;transform:translateY(-2px)}
.smart-inline-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;color:#d0c4ff;font-size:31px;background:#383052;border:1px solid #66588d;margin-bottom:4px}
.smart-inline-drop strong{font-size:17px}
.smart-inline-drop>span:nth-of-type(2){font-size:12px;color:#a5a5bf}
.smart-inline-cta{display:flex;gap:12px;align-items:center;padding:9px 17px;background:#ad9bfd;color:#161126;border-radius:8px;font-size:12px;font-weight:750;margin-top:8px}
.smart-inline-cta b{font-size:15px}
.smart-inline-formats{color:#767a9c;font-size:10px;letter-spacing:1px;font-family:Outfit,Heebo,sans-serif}
.smart-dialog{width:min(1000px,calc(100vw - 28px));max-height:min(95vh,1010px);padding:0;background:#101422;border:1px solid #534a77;border-radius:23px;color:#f5f3ff;box-shadow:0 35px 110px #03020bd9;overflow-y:auto;overscroll-behavior:contain}
.smart-dialog::backdrop{background:#030410d8;backdrop-filter:blur(9px)}
.smart-dialog-shell{min-height:380px}
.smart-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 30px;background:radial-gradient(ellipse at 15% 0%,#62509b44,transparent 62%),#171729;border-bottom:1px solid #33334b}
.smart-dialog-brand{display:flex;align-items:center;gap:14px;min-width:0}
.smart-sparkle{flex-shrink:0;width:51px;height:51px;display:grid;place-items:center;background:linear-gradient(135deg,#aa99fe,#6459be);border-radius:14px;font-size:30px;color:#fff;box-shadow:0 12px 26px #4f419d53}
.smart-overline{font:700 10px Outfit,Heebo,sans-serif;color:#a99bf5;letter-spacing:1.8px}
.smart-dialog-top h2{font:800 clamp(17px,2.3vw,24px)/1.45 Heebo,sans-serif;letter-spacing:-.3px;margin:4px 0 0}
.smart-close{display:grid;place-items:center;width:39px;height:39px;flex-shrink:0;border:1px solid #45445d;border-radius:10px;background:#25263c;color:#e5e3f2}
.smart-close:hover{background:#3b3653}
.smart-progress{display:flex;gap:14px;align-items:center;padding:19px 30px;border-bottom:1px solid #242b3b;font-size:11px;color:#8e94ac}
.smart-progress span{display:flex;gap:8px;align-items:center;white-space:nowrap}
.smart-progress span b{height:24px;width:24px;display:grid;place-items:center;background:#26293c;border:1px solid #41425b;border-radius:50%;font:700 12px Outfit,sans-serif;color:#a6aabd}
.smart-progress span.active{color:#e1d9ff}
.smart-progress span.active b{background:#615498;border-color:#a38bfb;color:white}
.smart-progress span.completed{color:#8adfce}
.smart-progress span.completed b{border-color:#519b8c;background:#204c49;color:#b3f1e0}
.smart-progress i{height:1px;flex:1;min-width:10px;background:#373a51}
.smart-step{padding:28px 30px 32px}
.smart-step[hidden]{display:none!important}
.smart-stage-intro{text-align:center;margin:8px auto 24px;max-width:650px}
.smart-stage-intro h3,.smart-review-top h3,#smartDoneStep h3{font-size:25px;font-weight:800;letter-spacing:-.5px;margin:0 0 7px}
.smart-stage-intro p,.smart-review-top p{line-height:1.8;color:#a2a7bd;font-size:13px;margin:0}
.smart-dropzone{min-height:225px;border:1.5px dashed #7467ae;background:radial-gradient(ellipse at 50% 0%,#37305a80,transparent 75%),#14182a;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;padding:25px;transition:background .2s,border-color .2s}
.smart-dropzone:hover,.smart-dropzone.smart-drag-over{background:#29253f;border-color:#b3a1ff}
.smart-dropzone:focus-visible{outline:2px solid #b3a1ff;outline-offset:3px}
.smart-drop-emblem{height:57px;width:57px;display:grid;place-items:center;background:#43385f;border:1px solid #7767a9;color:#d7cafa;border-radius:15px;font-size:35px;margin-bottom:5px}
.smart-dropzone strong{font-size:19px}
.smart-dropzone small{font-size:12px;color:#a3a7bc}
.smart-drop-hint{font:700 10px Outfit,sans-serif;color:#a398c9;letter-spacing:1px;margin-top:5px}
.smart-pick-actions{display:flex;gap:10px;align-items:center;justify-content:center;margin:16px 0}
.smart-picker-primary,.smart-picker-secondary,.smart-secondary-action{border-radius:10px;padding:11px 18px;font-size:13px;font-weight:700;min-height:43px;border:1px solid #676081;background:#373454;color:#e5dfff}
.smart-picker-primary:hover,.smart-picker-secondary:hover,.smart-secondary-action:hover{background:#514674}
.smart-picker-secondary,.smart-secondary-action{background:#181c2d;border-color:#393d52;color:#b8b8d0}
.smart-selected-info{display:flex;align-items:center;gap:11px;max-width:690px;margin:16px auto;padding:13px 15px;background:#172d31;border:1px solid #43746f;border-radius:12px}
.smart-selected-info[hidden]{display:none}
.smart-selected-icon{height:35px;width:35px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:#1e5750;color:#8ce2cb;font-size:18px}
.smart-selected-info>div{display:flex;flex-direction:column;min-width:0;gap:2px;flex:1}
.smart-selected-info strong{font-size:13px;color:#cbf2e7}
.smart-selected-info small{font-size:11px;color:#96b7b5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.smart-selected-size{font:700 12px Outfit,sans-serif;color:#b6e5d7}
.smart-status{margin:12px auto 8px;min-height:17px;color:#ffb7b7;font-size:12px;line-height:1.6;text-align:center}
.smart-status-success{color:#91dbce}
.smart-main-button{border:0;background:linear-gradient(110deg,#bdadff,#a08bf3);color:#17122b;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:16px;min-height:50px;border-radius:11px;padding:13px 20px;width:100%;box-shadow:0 10px 25px #6c5baf27;transition:transform .2s,box-shadow .2s}
.smart-main-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 30px #8070c359}
.smart-main-button:disabled{opacity:.5;cursor:not-allowed}
.smart-footnote{color:#777e97;text-align:center;margin:13px auto 8px;font-size:11px;line-height:1.8}
.smart-manual-link{display:block;margin:10px auto 0;background:transparent;border:0;color:#a99cde;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.smart-manual-link:hover{color:#e5ddff}
.smart-review-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:19px;border-bottom:1px solid #2d3145}
.smart-review-top h3{font-size:23px}
.smart-summary-chip{white-space:nowrap;background:#263650;color:#d4d3ff;border:1px solid #454b6b;padding:8px 13px;border-radius:9px;font-size:12px}
.smart-warnings{margin:18px 0;padding:13px 17px;background:#3e2b2b55;border:1px solid #8f585b70;border-radius:11px;color:#ffcbca;font-size:12px;line-height:1.65}
.smart-warnings[hidden]{display:none}
.smart-warnings strong{display:block;margin-bottom:5px}
.smart-warnings ul{margin:0;padding-inline-start:20px}
.smart-groups{display:flex;flex-direction:column;gap:18px;padding-top:18px}
.smart-group{border:1px solid #3d4059;border-radius:15px;background:#15192a;overflow:hidden}
.smart-group-heading{display:flex;align-items:center;gap:13px;padding:15px 18px;border-bottom:1px solid #31364b;background:#1d2034}
.smart-group-poster{height:66px;width:47px;flex-shrink:0;border:1px solid #585073;border-radius:6px;display:grid;place-items:center;background:linear-gradient(140deg,#66539c,#26395b);color:#d5c8ff;font:700 19px Outfit,sans-serif;overflow:hidden}
.smart-group-poster img{width:100%;height:100%;object-fit:cover}
.smart-group-heading-copy{flex:1;min-width:0}
.smart-group-overline{font:650 10px Outfit,Heebo,sans-serif;color:#a6a4c4;letter-spacing:.5px}
.smart-group-heading-copy h4{margin:3px 0 5px;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smart-group-found{color:#8edec4;font-size:11px}
.smart-group-attention{color:#f3ba90;font-size:11px}
.smart-group-meta{display:grid;grid-template-columns:.75fr 2.2fr 1.1fr .65fr;gap:11px;padding:18px 18px 8px;align-items:start}
.smart-group-meta label{font-size:11px;color:#9ea3bb;min-width:0;display:flex;flex-direction:column;gap:5px}
.smart-group-meta input,.smart-group-meta select,.smart-group-tools input,.smart-group-tools select{width:100%;background:#0e1322;border:1px solid #42465f;height:41px;padding:0 11px;border-radius:9px;color:#eae6fb;font-size:12px;outline:0}
.smart-group-meta input:focus,.smart-group-meta select:focus,.smart-group-tools input:focus,.smart-group-tools select:focus{border-color:#ab99fb}
.smart-group-meta input[dir=ltr]{font:12px Outfit,sans-serif;text-align:left}
.smart-group-meta label small{font-size:10px;color:#7d839c}
.smart-match-candidates{display:flex;gap:7px;flex-wrap:wrap;padding:7px 18px 17px}
.smart-candidate{display:flex;align-items:center;gap:6px;background:#222438;border:1px solid #383b54;border-radius:8px;padding:7px 9px;color:#e1dcf4;font-size:11px;max-width:100%;text-align:right}
.smart-candidate:hover{border-color:#a190ed;background:#393251}
.smart-candidate-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:165px;font-weight:650}
.smart-candidate small{color:#8d91ab;font:10px Outfit,Heebo,sans-serif;white-space:nowrap}
.smart-candidate b{color:#7fe5bf}
.smart-group-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 18px;background:#121827;border-top:1px solid #2a3044;border-bottom:1px solid #2a3044}
.smart-group-tools>strong{font-size:13px}
.smart-group-tools>span{font-size:11px;color:#848ca4;margin-inline-end:auto}
.smart-group-tools label{display:flex;gap:6px;align-items:center;font-size:10px;color:#afb4c8}
.smart-group-tools select{width:150px;height:33px;font-size:11px}
.smart-group-tools input{width:70px;height:33px;text-align:center}
.smart-group-tools button{border:1px solid #555279;background:#282843;color:#d8d0f5;border-radius:8px;padding:6px 12px;font-size:11px}
.smart-file-list{max-height:460px;overflow:auto;overscroll-behavior:contain}
.smart-file-row{display:flex;align-items:center;gap:13px;padding:13px 18px;border-bottom:1px solid #2b2f43}
.smart-file-row:last-child{border-bottom:0}
.smart-file-row:hover{background:#1a1e2e}
.smart-file-include{display:flex;align-items:center;justify-content:center;flex-shrink:0}
.smart-file-include input{width:17px;height:17px;accent-color:#a894f4;cursor:pointer}
.smart-file-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.smart-file-name>b{font:600 12px/1.4 Outfit,Heebo,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.smart-file-name>small{font:10px Outfit,Heebo,sans-serif;color:#8793ab}
.smart-file-release{display:flex;gap:8px;align-items:center;color:#838ba5;font-size:10px;max-width:100%}
.smart-file-release input{font:11px Outfit,Heebo,sans-serif;flex:1;min-width:0;max-width:230px;border:1px solid transparent;background:#15192a;color:#aeb0c3;padding:3px 6px;border-radius:5px;outline:0}
.smart-file-release input:focus{border-color:#685f90;background:#212136}
.smart-file-fields{display:flex;gap:8px;flex-shrink:0;align-items:center}
.smart-file-fields label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#9298b1}
.smart-file-fields input,.smart-file-fields select{background:#101525;border:1px solid #41445c;color:#e8e3ff;border-radius:7px;height:36px;outline:0;padding:0 9px;font:12px Outfit,Heebo,sans-serif}
.smart-file-fields input{width:64px;text-align:center}
.smart-file-fields select{width:120px;font-family:Heebo,sans-serif}
.smart-file-fields input:focus,.smart-file-fields select:focus{border-color:#a79bea}
.smart-review-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:21px}
.smart-review-footer .smart-main-button{width:auto;min-width:250px}
.smart-review-footer .smart-secondary-action{flex-shrink:0}
#smartDoneStep{text-align:center;padding-top:60px;padding-bottom:62px}
.smart-complete-mark{height:89px;width:89px;margin:0 auto 22px;display:grid;place-items:center;border:1px solid #65ad9f;border-radius:25px;background:linear-gradient(140deg,#315952,#234140);color:#8aebcb;font-size:51px;box-shadow:0 14px 45px #397a6622}
#smartDoneStep h3{font-size:27px}
#smartDoneStep>p{font-size:14px;color:#a3adbd;line-height:1.95;max-width:550px;margin:9px auto 29px}
.smart-done-actions{display:flex;flex-direction:column;max-width:330px;gap:10px;margin:auto}
.smart-done-actions .smart-secondary-action{width:100%}
@media(max-width:830px){.smart-intro{grid-template-columns:1fr;padding:30px;gap:18px}.smart-inline-drop{min-height:205px}.smart-group-meta{grid-template-columns:1fr 2fr;gap:12px}.smart-file-row{flex-wrap:wrap}.smart-file-name{flex-basis:calc(100% - 40px)}.smart-file-fields{margin-inline-start:29px;flex:1}}
@media(max-width:580px){.smart-intro{margin-top:52px;padding:22px 18px;gap:13px}.smart-intro-copy h2{font-size:27px}.smart-intro-copy p{font-size:12px}.smart-intro-benefits{font-size:10px;gap:9px}.smart-inline-drop{min-height:188px}.smart-dialog{width:calc(100vw - 10px);max-height:97vh;border-radius:14px}.smart-dialog-top{padding:16px 13px}.smart-sparkle{width:39px;height:39px;font-size:23px;border-radius:11px}.smart-dialog-top h2{font-size:16px}.smart-overline{font-size:9px}.smart-progress{gap:6px;padding:13px 10px;font-size:9px}.smart-progress span{gap:4px}.smart-progress span b{width:20px;height:20px;font-size:10px}.smart-progress i{min-width:4px}.smart-step{padding:22px 12px}.smart-stage-intro h3{font-size:21px}.smart-stage-intro p{font-size:12px}.smart-dropzone{min-height:195px;padding:12px}.smart-dropzone strong{font-size:15px}.smart-dropzone small{font-size:11px}.smart-picker-primary,.smart-picker-secondary{padding:10px 11px;font-size:11px}.smart-review-top{align-items:start;gap:10px}.smart-review-top h3{font-size:20px}.smart-review-top p{font-size:11px}.smart-summary-chip{font-size:10px;padding:6px}.smart-group-heading{padding:11px}.smart-group-meta{padding:13px 10px;grid-template-columns:1fr 1fr}.smart-group-meta label{font-size:10px}.smart-match-candidates{padding:7px 10px 14px}.smart-candidate{padding:6px 7px}.smart-candidate-title{max-width:130px}.smart-group-tools{padding:10px;gap:8px}.smart-group-tools>span{margin-inline-end:10px}.smart-group-tools label{font-size:10px}.smart-file-row{padding:12px 9px;gap:9px}.smart-file-fields{margin-inline-start:26px;gap:6px}.smart-file-fields select{width:107px}.smart-file-name>b{font-size:11px}.smart-review-footer{flex-direction:column-reverse}.smart-review-footer .smart-main-button,.smart-review-footer .smart-secondary-action{width:100%}.smart-footnote{font-size:10px}}
@media(prefers-reduced-motion:reduce){.smart-inline-drop,.smart-main-button{transition:none}}

/* Explicit filename/episode conflicts must be visible before publishing. */
.smart-file-repair{display:block;align-self:flex-start;margin-top:6px;padding:5px 9px;border-radius:7px;background:#443127;color:#ffd5a8;border:1px solid #9f714d;font-size:11px;line-height:1.5;text-align:right;cursor:pointer}
.smart-file-repair:hover{background:#68452e;color:#fff}
