
*{box-sizing:border-box}
:root{--bg:#fff;--ink:#101828;--muted:#667085;--line:#e4e7ec;--brand:#111827;--shadow:0 24px 80px rgba(16,24,40,.08)}
body{margin:0;background:#fff;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:inherit}.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.topbar-inner{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:14px 0;display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo{font-weight:900;letter-spacing:-.03em;text-decoration:none}.topbar nav{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-weight:700;font-size:13px}.topbar nav a{text-decoration:none}
.page{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:42px 0 72px}.hero{padding:26px 0 18px}.kicker{display:inline-flex;padding:7px 11px;border-radius:999px;background:#eef2ff;color:#344054;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
h1{font-size:clamp(52px,8vw,96px);line-height:.94;letter-spacing:-.075em;margin:18px 0 12px}.lead{max-width:1040px;color:var(--muted);font-size:20px;margin:0}
.panel,.service-card,.result,.export-box,.url-panel,.progress-panel,.status,.cards article{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow)}
.panel{padding:28px;margin-top:22px}.panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.panel-header h2{font-size:28px;margin:0 0 6px}.panel-header p{margin:0;color:var(--muted)}.version{padding:8px 10px;background:#eef2ff;border-radius:999px;font-size:13px;white-space:nowrap}
.service-switcher{margin:0 0 18px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fbfcff}.service-switcher-title{font-weight:900;margin-bottom:10px}.service-switcher-links{display:flex;flex-wrap:wrap;gap:8px}.service-switcher-links a{display:inline-flex;padding:8px 11px;border-radius:999px;background:#fff;border:1px solid var(--line);text-decoration:none;font-weight:800;font-size:13px}.service-switcher-links a.active{background:#111827;color:#fff;border-color:#111827}
.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 18px}.service-card{box-shadow:none;text-align:left;padding:14px;min-height:106px;text-decoration:none}.service-card strong{display:block;margin-bottom:5px}.service-card span{color:var(--muted);font-size:13px;line-height:1.45}.service-card.active{border-color:#111827;box-shadow:0 10px 28px rgba(16,24,40,.08)}
.upload-form{display:grid;gap:16px}.dropzone{border:2px dashed #cbd5e1;border-radius:22px;padding:34px;background:#fbfcff;text-align:center;cursor:pointer}.dropzone.drag-over{border-color:#111827;background:#f1f5f9}.dropzone input{display:none}.drop-title,.drop-subtitle{display:block}.drop-title{font-size:18px;font-weight:900}.drop-subtitle{margin-top:6px;color:var(--muted);font-weight:700}
button{border:0;border-radius:14px;padding:13px 18px;font-weight:900;cursor:pointer;text-decoration:none;background:#111827;color:#fff}button:disabled{opacity:.45;cursor:not-allowed}.url-divider{display:flex;align-items:center;gap:12px;margin:22px 0;color:#667085;font-weight:900}.url-divider:before,.url-divider:after{content:"";height:1px;background:#e4e7ec;flex:1}
.url-panel{box-shadow:none;border-radius:22px;padding:18px;background:#fbfcff}.url-panel h3{margin:0 0 6px;font-size:20px}.url-panel p{margin:0 0 12px;color:var(--muted)}.url-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.url-form input{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 14px;font:inherit}.url-note{font-size:13px}
.notice{padding:14px 16px;border:1px solid #facc15;background:#fffbeb;color:#713f12;border-radius:16px}.selected-file.file-list{display:block!important;text-align:left;border-radius:18px;padding:12px 14px;background:#eef2ff;color:#111827;font-weight:700;max-width:100%;margin-top:14px}.selected-file.file-list .file-list-summary{margin-bottom:8px;font-weight:900}.selected-file.file-list ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}.selected-file.file-list li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:8px;padding:7px 9px;border-radius:12px;background:rgba(255,255,255,.62);line-height:1.35}.file-index,.file-size{color:#475467;white-space:nowrap;font-weight:700}.file-name{word-break:break-word;overflow-wrap:anywhere}
.progress-panel{margin-top:18px;padding:18px;border-radius:20px}.progress-topline{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}#progressPercent{font-weight:900}.progress-track{height:12px;border-radius:999px;background:#eef2f7;border:1px solid #e4e7ec;overflow:hidden}.progress-bar{height:100%;width:0%;background:#111827;border-radius:999px;transition:width .22s}.progress-meta{display:flex;justify-content:space-between;gap:12px;margin-top:10px;color:var(--muted);font-size:14px;flex-wrap:wrap}
.steps{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:12px}.steps li{display:flex;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fbfcff;opacity:.56}.steps li.active,.steps li.done{opacity:1}.steps li.done{background:#f6fef9}.dot{width:14px;height:14px;border-radius:999px;background:#cbd5e1;margin-top:4px;flex:0 0 auto}.steps li.active .dot{background:#111827;animation:pulseDot 1s infinite ease-in-out}.steps li.done .dot{background:#16a34a}.steps strong{display:block;margin-bottom:3px}.steps small{color:var(--muted)}@keyframes pulseDot{0%,100%{transform:scale(1);opacity:.65}50%{transform:scale(1.25);opacity:1}}
.status{margin-top:18px;padding:14px 16px;border-radius:16px;background:#f9fafb;color:var(--muted);box-shadow:none}.result{margin-top:22px;border-radius:22px;overflow:hidden;background:white}.result-header{padding:14px 16px;display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line)}.result-header h3{margin:0}.download-actions{display:flex;gap:8px;flex-wrap:wrap}.download-actions button{padding:9px 12px;border-radius:12px;background:#fff;color:#101828;border:1px solid var(--line)}
pre,textarea.output{margin:0;padding:18px;white-space:pre-wrap;word-break:break-word;line-height:1.6;color:#111827;width:100%;min-height:240px;border:0;font:inherit;background:#fff}.export-box{margin-top:18px;padding:16px;border-radius:22px;background:#f8fbff;border-color:#c7d7fe}.export-box.green{background:#f0fdf4;border-color:#86efac}.export-box h3{margin:0 0 12px}.export-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.export-actions button{background:#fff;color:#101828;border:1px solid var(--line)}
.cards{margin-top:22px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.cards article{padding:20px}.cards h3{margin:0 0 8px}.cards p{margin:0;color:var(--muted)}
@media(max-width:900px){.service-grid,.cards{grid-template-columns:1fr 1fr}.url-form{grid-template-columns:1fr}.panel-header,.result-header{flex-direction:column}.topbar-inner{display:block}.topbar nav{margin-top:8px}}
@media(max-width:640px){.service-grid,.cards{grid-template-columns:1fr}h1{font-size:48px}}


.youtube-preview{
  margin-top:14px;
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  gap:14px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#ffffff;
}
.youtube-preview[hidden]{display:none!important}
.youtube-preview img{
  width:160px;
  height:90px;
  object-fit:cover;
  border-radius:12px;
  background:#eef2f7;
}
.preview-label{
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  background:#eef2ff;
  color:#344054;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:6px;
}
.youtube-preview h4{
  margin:0 0 4px;
  font-size:17px;
  line-height:1.3;
}
.youtube-preview p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
@media(max-width:640px){
  .youtube-preview{grid-template-columns:1fr}
  .youtube-preview img{width:100%;height:auto}
}


.manual-panel{
  margin-top:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fbfcff;
}
.manual-panel h3{
  margin:0 0 6px;
  font-size:20px;
}
.manual-panel p{
  margin:0 0 12px;
  color:var(--muted);
}
.manual-transcript{
  width:100%;
  min-height:220px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  font:inherit;
  line-height:1.6;
  resize:vertical;
  background:#fff;
}
.manual-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.manual-actions button:nth-child(2){
  background:#fff;
  color:#101828;
  border:1px solid var(--line);
}


.oauth-panel,
.caption-file-panel{
  margin-top:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fbfcff;
}
.oauth-panel h3,
.caption-file-panel h3{
  margin:0 0 6px;
  font-size:20px;
}
.oauth-panel p,
.caption-file-panel p{
  margin:0 0 12px;
  color:var(--muted);
}
.oauth-actions,
.caption-file-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.oauth-actions button:nth-child(2),
.oauth-actions button:nth-child(3),
.caption-file-actions button{
  background:#fff;
  color:#101828;
  border:1px solid var(--line);
}
.oauth-status{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
}
.caption-file-panel input[type="file"]{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:#fff;
}


.extension-panel{
  margin-top:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fbfcff;
}
.extension-panel h3{margin:0 0 6px;font-size:20px;}
.extension-panel p{margin:0 0 12px;color:var(--muted);}
.extension-actions{display:flex;flex-wrap:wrap;gap:8px;}
.extension-status{margin-top:10px;padding:10px 12px;border-radius:14px;background:#fff;border:1px solid var(--line);color:var(--muted);font-size:14px;}
.extension-status.success{color:#027a48;background:#ecfdf3;border-color:#86efac;}
.extension-status.error{color:#b42318;background:#fff5f5;border-color:#fecaca;}
