/* /sync-subtitles/ — page-scoped only. Nothing here is loaded by other pages. */
.quick-answer{margin:0 0 18px;padding:14px 18px;background:#eef3e3;border:1px solid #d7e0c4;border-radius:12px;font-size:15px;line-height:1.6;color:#31503c}
.quick-answer strong{color:#1d4433}

.sync-tool{border:1px solid #d3ddcf;border-radius:16px;background:#fff;box-shadow:0 12px 32px rgba(24,56,37,.055);overflow:hidden}
.sync-top{display:grid;grid-template-columns:1.05fr 1fr;gap:0}
.sync-pane{padding:22px 24px}
.sync-pane + .sync-pane{border-left:1px solid #e2e8db;background:#f9fbf5}
.sync-pane h2{font-size:15px;margin:0 0 12px}
.sync-pane label{display:block;font-size:11px;letter-spacing:1.2px;text-transform:uppercase;font-weight:700;color:#5f7566;margin:14px 0 5px}
.sync-pane input[type=file],.sync-pane input[type=text],.sync-pane select{width:100%;font:14px/1.4 inherit;padding:9px 10px;border:1px solid #cfd9c7;border-radius:8px;background:#fff;color:#17372f}
video{display:block;width:100%;max-height:260px;margin-top:14px;border-radius:10px;background:#101613}
.hint{font-size:12.5px;color:#5a6b5f;margin:8px 0 0}

.cue-list{margin-top:6px;max-height:300px;overflow:auto;border:1px solid #e2e8db;border-radius:10px;background:#fff}
.cue{padding:9px 11px;border-bottom:1px solid #edf1e7}
.cue:last-child{border-bottom:0}
.cue-head{font-variant-numeric:tabular-nums;font-size:12.5px;font-weight:650;color:#31503c}
.cue-text{margin:3px 0 0;font-size:12.5px;color:#4c6153;white-space:pre-wrap}
.pick{margin-top:6px;min-height:36px;padding:6px 11px;font-size:12.5px}

.sync-bottom{padding:20px 24px 24px;border-top:1px solid #e2e8db}
.sync-bottom h2{font-size:15px;margin:0 0 10px}
.sync-bottom h2 .hint{font-weight:400;letter-spacing:0;text-transform:none;margin:0 0 0 8px}
.anchor{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 0;border-top:1px solid #edf1e7;font-variant-numeric:tabular-nums;font-size:13px;color:#31503c}
.anchor .secondary{min-height:34px;padding:5px 10px;font-size:12px}
#solution{margin:12px 0;padding:10px 13px;border-radius:9px;background:#eef3e3;border:1px solid #d7e0c4;font-size:13.5px;color:#2f4d39}
#solution.error{background:#f8ebe7;border-color:#e6cfc7;color:#8f3f2c}
.manual{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin:4px 0 14px}
.apply-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}
#shift-note{font-size:12.5px;color:#5a6b5f;margin:10px 0 0}
#status{font-size:13px;color:#3a4a40;margin:8px 0 0}
#status.error{color:#8f3f2c}
#output-panel{margin:22px 0 0;padding:18px 20px;border:1px solid #d5ddce;border-radius:12px;background:#fff}
#output{max-height:300px;overflow:auto;margin:0;padding:13px 14px;border-radius:9px;background:#171b18;color:#dcedb8;font:12.5px/1.5 Consolas,monospace}
.download{display:inline-block;margin-top:12px;padding:11px 16px;border-radius:9px;background:#214e39;color:#f3f8ec;font-size:13.5px;font-weight:650;text-decoration:none}
.download.disabled{opacity:.45;pointer-events:none}

.measured{margin:26px 0 0}
.measured h2{font-size:19px;margin:0 0 8px}
.measured p{font-size:13.5px;line-height:1.6;color:#4c6153;margin:0 0 12px}
.table-scroll{overflow-x:auto;border:1px solid #d5ddce;border-radius:10px;background:#fff}
.measured table{border-collapse:collapse;width:100%;min-width:720px;font-size:12.5px}
.measured caption{caption-side:top;text-align:left;padding:10px 12px;font-size:12px;color:#5a6b5f}
.measured th,.measured td{border-bottom:1px solid #e6ebe0;padding:8px 10px;text-align:left;vertical-align:top}
.measured th{background:#f2f5ea;font-weight:650;color:#31503c}
.measured td{font-variant-numeric:tabular-nums}
.boundaries{margin:22px 0 0}
.boundaries h2{font-size:19px;margin:0 0 8px}
.boundaries ul{margin:0;padding-left:20px}
.boundaries li{font-size:13.5px;line-height:1.65;color:#4c6153;margin:0 0 7px}
.boundaries strong{color:#31503c}

@media(max-width:760px){
  .sync-top{grid-template-columns:1fr}
  .sync-pane + .sync-pane{border-left:0;border-top:1px solid #e2e8db}
  .manual{grid-template-columns:1fr}
  .apply-row{grid-template-columns:1fr}
}

/* Custom file pickers: the native control prints locale-specific text in a
   non-English browser, so the visible control is ours and the input is hidden. */
.picker{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:2px 0 0}
.picker input.native-file{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.picker .choose{flex:none;min-height:40px;padding:0 16px;background:#dcedb8;color:#214e39;border:0;border-radius:8px;font:650 13.5px/1 inherit;cursor:pointer}
.picker .file-name{font-size:12.5px;color:#5a6b5f;overflow-wrap:anywhere}
.picker .file-name.selected{color:#214e39;font-weight:600}
