/* Shared converter presentation. Scoped so the video compressor keeps its own layout. */
html body.image-converter-page .converter-route-switch,
html body.video-converter-mode .converter-route-switch{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;
  width:min(100%,480px);margin:0 0 24px;padding:4px;
  border:1px solid rgba(120,167,219,.25);border-radius:14px;
  background:rgba(9,27,49,.8);box-shadow:none
}
html body.image-converter-page .converter-route-switch .video-route-label,
html body.video-converter-mode .converter-route-switch .video-route-label,
html body.image-converter-page .converter-route-switch small,
html body.video-converter-mode .converter-route-switch small{display:none}
html body.image-converter-page .converter-route-switch .video-route-option,
html body.video-converter-mode .converter-route-switch .video-route-option{
  min-width:0;min-height:44px;padding:8px 10px;border-radius:10px;text-align:center;
  color:#bdd0e7;white-space:nowrap
}
html body.image-converter-page .converter-route-switch b,
html body.video-converter-mode .converter-route-switch b{font-size:.85rem}
html body.image-converter-page .converter-route-switch .video-route-option::before,
html body.video-converter-mode .converter-route-switch .video-route-option::before{
  inset:auto 22% 3px;width:56%;height:2px
}
html body.image-converter-page .converter-route-switch .is-active,
html body.video-converter-mode .converter-route-switch .is-active{
  color:#fff;border-color:rgba(117,245,228,.36);background:rgba(39,120,255,.2);box-shadow:none
}
html body.image-converter-page .convert-shell,
html body.video-converter-mode .cloud-beta-page{width:min(980px,calc(100% - 36px));margin:0 auto}
html body.image-converter-page .convert-shell{padding-top:48px}
html body.video-converter-mode .workspace-section{padding-top:48px}
html body.video-converter-mode .workspace-section>.section-heading{margin-bottom:0}
html body.image-converter-page .image-workspace-card,
html body.video-converter-mode .encoder-card{border-radius:22px}
html body.image-converter-page .image-workspace-heading h2{margin:0;color:#071830;font-size:1.65rem;line-height:1.15;letter-spacing:-.045em}
html body.image-converter-page #pdfFile{display:none!important}
html body.pdf-converter-page .pdf-image-card{padding:20px 24px}
html body.pdf-converter-page .pdf-image-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:16px;align-items:start}
html body.pdf-converter-page .pdf-drop{min-height:280px;padding:24px 18px}
html body.pdf-converter-page .pdf-drop.is-dragging{border-color:#2778ff;background:#edf5ff}
html body.pdf-converter-page .pdf-drop h3{font-size:1.3rem}
html body.pdf-converter-page .pdf-options{display:grid;gap:12px;min-width:0;padding:18px;border:1px solid #dbe7f4;border-radius:18px;background:#f8fbff;color:#10213d;color-scheme:light}
html body.pdf-converter-page .pdf-options-title{margin:0;color:#18304f;font-size:.82rem;font-weight:900}
html body.pdf-converter-page .pdf-field{display:grid;gap:6px;min-width:0}
html body.pdf-converter-page .pdf-field label{color:#203a5d;font-size:.78rem;font-weight:900}
html body.pdf-converter-page .pdf-field select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #bcd1eb;border-radius:12px;background:#fff;color:#10213d;font:inherit;font-size:.88rem}
html body.pdf-converter-page .pdf-field select:disabled{opacity:1;color:#6a7c95;background:#eef3f9;cursor:not-allowed}
html body.pdf-converter-page .pdf-plan{padding:12px;border:1px solid #cde9df;border-radius:12px;background:#effcf7}
html body.pdf-converter-page .pdf-plan strong{display:block;color:#087357;font-size:.88rem}
html body.pdf-converter-page .pdf-plan p{margin:6px 0 0;color:#49657e;font-size:.82rem;line-height:1.5}
html body.pdf-converter-page .pdf-warning{margin:0;color:#607590;font-size:.78rem;line-height:1.5}
html body.pdf-converter-page .pdf-actions,
html body.pdf-converter-page .pdf-result-actions{display:flex;gap:10px;flex-wrap:wrap}
html body.pdf-converter-page .pdf-actions .btn{flex:1 1 130px;min-height:48px}
html body.pdf-converter-page .btn:disabled{opacity:.46;cursor:not-allowed;box-shadow:none}
html body.pdf-converter-page .pdf-preview,
html body.pdf-converter-page .pdf-result{margin-top:18px;padding:16px;border:1px solid #dbe7f4;border-radius:18px;background:#f7faff;color:#10213d}
html body.pdf-converter-page .pdf-preview img,
html body.pdf-converter-page .pdf-result img{display:block;max-width:100%;max-height:520px;margin:12px auto;border-radius:10px;background:#fff}
html body.pdf-converter-page .pdf-preview-meta{display:flex;flex-wrap:wrap;gap:8px 16px;color:#607590;font-size:.85rem;overflow-wrap:anywhere}
html body.pdf-converter-page .pdf-result h3{margin:0;color:#10213d}
html body.pdf-converter-page .pdf-result p{color:#49657e;line-height:1.5}
html body.pdf-converter-page .pdf-result-actions .btn{flex:1 1 180px}
html body.pdf-converter-page .pdf-progress{margin-top:16px}
html body.pdf-converter-page .pdf-progress-track{height:9px;overflow:hidden;border-radius:999px;background:#e8f0fa}
html body.pdf-converter-page .pdf-progress-bar{width:0;height:100%;background:linear-gradient(90deg,#2778ff,#42cdb4);transition:width .18s ease}
html body.pdf-converter-page .pdf-progress p{color:#294768;text-align:center}
@media(max-width:820px){
  html body.image-converter-page .image-workspace-grid,
  html body.pdf-converter-page .pdf-image-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  html body.image-converter-page .convert-shell,
  html body.video-converter-mode .cloud-beta-page{width:calc(100% - 20px)}
  html body.image-converter-page .convert-shell{padding-top:18px}
  html body.video-converter-mode .workspace-section{padding-top:18px}
  html body.image-converter-page .converter-route-switch,
  html body.video-converter-mode .converter-route-switch{width:100%;margin-bottom:16px}
  html body.image-converter-page .converter-route-switch b,
  html body.video-converter-mode .converter-route-switch b{font-size:.78rem}
  html body.pdf-converter-page .pdf-image-card{padding:14px;border-radius:22px}
  html body.pdf-converter-page .pdf-drop{min-height:220px}
  html body.pdf-converter-page .pdf-options{padding:14px}
  html body.pdf-converter-page .image-workspace-heading{flex-wrap:wrap;gap:10px}
  html body.pdf-converter-page .image-workspace-heading h2{font-size:1.45rem}
  html body.pdf-converter-page .pdf-field select{font-size:16px}
}
