:root{font-family:Inter,system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#19283a;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8db9fb;outline-offset:2px}.hidden{display:none!important}.layout{display:flex;min-height:100vh}.sidebar{width:252px;flex:none;background:#142439;color:#d7e2ef;padding:33px 17px;display:flex;flex-direction:column;gap:32px}.brand{color:#fff;display:flex;align-items:center;text-decoration:none;font-size:24px;font-weight:800;letter-spacing:-.8px;gap:12px;padding:0 10px}.brand-icon{width:41px;height:41px;background:#5d8ee6;border-radius:13px;color:#fff;display:grid;place-items:center;font-size:26px}.brand small{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:#9baec6;display:block;margin-top:-3px}.nav-caption{font-size:11px;font-weight:700;letter-spacing:1.8px;color:#8397b1;margin:16px 12px 0}.providers{display:grid;gap:7px}.provider{background:transparent;color:#e0e8f3;border:1px solid transparent;width:100%;display:flex;align-items:center;text-align:left;gap:10px;padding:12px 11px;border-radius:12px}.provider:hover{background:#213652}.provider.active{background:#2d4769;border-color:#46668c}.provider-symbol{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;font-weight:800;font-size:14px}.pt{background:#d8e8fe;color:#3366b7}.yt{background:#ffe2e4;color:#d93030}.file{background:#d8f3ea;color:#087957}.provider-hint{margin-left:auto;color:#acc0d7;font-size:10px;white-space:nowrap}.aside-bottom{margin-top:auto;font-size:11px;color:#c0cfdf;padding:12px;border-top:1px solid #34465e}.aside-bottom small{display:block;margin:7px 0 0 14px;color:#8c9eb5}.dev-dot{display:inline-block;width:8px;height:8px;background:#54d49c;border-radius:50%;margin-right:5px}.main-wrap{min-width:0;flex:1;padding:0 45px;max-width:1620px;margin:auto}.topbar{padding:49px 0 28px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.eyebrow,.step{color:#5b80b3;font-weight:800;letter-spacing:2px;font-size:11px}.topbar h1{margin:9px 0 6px;letter-spacing:-1px;font-size:clamp(24px,2.3vw,35px)}.lead{color:#6c7a90;margin:0;font-size:14px}.lang-switch{display:flex;align-items:center;gap:10px;white-space:nowrap;color:#5d6a7d;font-size:12px}.lang-switch select{padding:7px 10px;border:1px solid #d5dee9;background:#fff;border-radius:9px;color:#263b56}.workspace{display:grid;grid-template-columns:minmax(310px,.93fr) minmax(350px,1.07fr);align-items:start;gap:21px}.panel{background:#fff;border:1px solid #e2e9f2;border-radius:17px;box-shadow:0 7px 35px #23334e08;min-height:460px;padding:25px}.panel-heading{display:flex;align-items:start;justify-content:space-between;gap:10px;padding-bottom:18px;border-bottom:1px solid #eaf0f6}.panel-heading h2{font-size:19px;margin:5px 0 0}.tag{border:1px solid #d6e4f3;border-radius:100px;background:#f0f6ff;padding:6px 10px;color:#4772aa;font-size:11px;font-weight:700;white-space:nowrap}.provider-area{padding:23px 0 0}.provider-area label{display:block;color:#34465c;font-size:13px;font-weight:700;margin:0 0 9px}.provider-area label:not(:first-child){margin-top:24px}.input-action{display:flex;align-items:stretch;gap:9px}.input-action input,.input-action select{min-width:0;flex:1}.provider-area input[type=url],.provider-area input[type=file],textarea,.input-action select,#searchCue{border:1px solid #dce5ef;background:#fbfcfe;border-radius:9px;color:#26384e;padding:12px;font-size:13px}.provider-area input[type=file]{width:100%}.provider-area textarea{resize:vertical;min-height:130px;width:100%;line-height:1.6}button.primary{background:#426fca;color:#fff;border:1px solid #426fca;border-radius:9px;padding:10px 15px;font-weight:700;font-size:12px;white-space:nowrap}button.primary:hover{background:#325cac}button.secondary{background:#f6f9fe;color:#31598a;border:1px solid #d7e3f3;border-radius:9px;padding:10px 11px;font-weight:700;font-size:12px;white-space:nowrap}button.secondary:not(:disabled):hover{background:#e9f1ff}.help{font-size:12px;color:#5b687b;line-height:1.7;margin:12px 0 0}.notice{background:#f5f8ff;border:1px solid #dce7fa;border-left:3px solid #527ed3;padding:13px;font-size:12px;line-height:1.9;color:#526985;border-radius:8px}.paste-button{margin-top:12px}.status{margin-top:20px;padding:12px 13px;background:#f3f7fc;border-radius:9px;color:#4c6c90;font-size:12px;line-height:1.6}.status.error{color:#b1253b;background:#fff1f3}.status.ok{color:#126747;background:#effbf5}.status.warning{color:#7a4a00;background:#fff6e0}.result-actions{display:flex;gap:7px;flex-wrap:wrap;padding:23px 0 14px}.result-actions input{flex:1;min-width:150px}.muted{font-size:12px;line-height:1.6;color:#5b687b;margin:0 0 12px}.cues{display:flex;flex-direction:column;gap:9px;overflow-y:auto;max-height:600px;min-height:290px}.cue{padding:12px 14px;background:#f7f9fd;border:1px solid #edf1f7;border-radius:11px;line-height:1.7}.cue-time{font-size:11px;color:#5082c3;font-weight:800;letter-spacing:.2px;font-variant-numeric:tabular-nums}.cue-text{font-size:13px;color:#263b53;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:3px}.empty{margin:auto;text-align:center;color:#5b687b;font-size:13px}.empty-mark{font-size:45px;font-family:Georgia,serif;opacity:.5}footer{display:flex;justify-content:space-between;gap:20px;padding:27px 4px;color:#5b687b;font-size:11px}.video-holder iframe{border:0;width:100%;aspect-ratio:16/9;border-radius:12px}@media(max-width:1100px){.workspace{grid-template-columns:1fr}.panel{min-height:0}.main-wrap{padding:0 24px}}@media(max-width:700px){.layout{display:block}.sidebar{width:auto;gap:11px;padding:12px 14px}.brand{font-size:20px}.brand-icon{width:33px;height:33px}.brand small,.nav-caption,.aside-bottom,.provider-hint{display:none!important}.providers{display:flex;overflow:auto;gap:6px}.provider{width:auto;flex:none;padding:9px;font-size:12px}.main-wrap{padding:0 12px}.topbar{padding:24px 5px 18px;display:block}.topbar h1{font-size:26px}.lang-switch{margin-top:15px}.workspace{gap:12px}.panel{padding:17px}.input-action{flex-wrap:wrap}.input-action>button{width:100%}.input-action input,.input-action select{width:100%}footer{display:block;line-height:1.8}.result-actions input{flex-basis:100%}}
.provider[data-provider="wiki"] .provider-symbol { background: #e7edf5; color: #374d68; }
.provider[data-provider="ted"] .provider-symbol { background: #ffe2e4; color: #ad2635; }
.provider[data-provider="generic"] .provider-symbol { background: #ddf4ec; color: #106e57; }
.provider[data-provider="jw"] .provider-symbol { background: #e3e4fb; color: #4945a6; }

.embedded-tool .layout { min-height: 0; }
.embedded-tool .main-wrap { width: 100%; max-width: none; padding: 0 12px 16px; }
.embedded-tool .topbar { padding-top: 16px; }
.embedded-tool .workspace { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); }
.embedded-tool .cues { max-height: 360px; }
@media (max-width: 740px) {
  .embedded-tool .workspace { grid-template-columns: 1fr; }
  .embedded-tool .cues { min-height: 140px; max-height: 240px; }
}
