/* ============================================================
   upload-page.css — standalone /upload/ editor workspace
   Scoped under body.upload-page (lang=en). Hides all marketing
   sections and the dark result panel, promotes the editor to the
   whole page, and pins the left/right compare slider on the canvas.
   ============================================================ */

/* ---- 1. hide chrome we don't want on a pure workspace --------------- */
body.upload-page .rb-announce,
body.upload-page .rb-hero h1,
body.upload-page .rb-hero .rb-free,
body.upload-page .rb-hero .rb-hero-sub,
body.upload-page .rb-hero .rb-upload .rb-drop-hint,
body.upload-page .rb-hero .rb-tries,
body.upload-page .rb-section,
body.upload-page .rb-cta,
body.upload-page .scenes,
body.upload-page #more,
body.upload-page .feature-split,
body.upload-page .site-footer .footer-bottom { display: none !important; }

/* The whole dark result panel (bg buttons / scenery / edge tuning /
   two-tier download bar) is gone on the workspace page. */
body.upload-page #resultPanel { display: none !important; }

/* ---- 2. slim top bar + compact hero upload dropzone ----------------- */
body.upload-page .rb-hero {
  padding: 22px 20px 10px;
  max-width: 1100px;
  margin: 0 auto;
}
body.upload-page .rb-hero .rb-upload {
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(20, 34, 64, .07);
}
body.upload-page .rb-hero .dropzone {
  min-height: 92px;
  border-radius: 12px;
  font-size: 17px;
}
body.upload-page .rb-hero .rb-upload .status { margin: 8px 0 0; font-size: 12.5px; }
body.upload-page #progress { max-width: 420px; margin: 8px auto 0; }

/* ---- 3. promote the editor to fill the page ------------------------- */
body.upload-page #editorSection {
  display: block !important;
  padding: 6px 20px 26px;
  width: min(1500px, calc(100vw - 40px));
  max-width: none;
  /* 与 en-editor.css 保持一致：用负 margin 居中，避免 transform 留下右侧幽灵布局盒 */
  margin-left: calc(50% - min(50vw - 20px, 750px));
}
body.upload-page #editorSection[hidden] { display: block !important; }

/* Before any image is imported, the editor shows its own dropzone; keep it
   compact and light so the page reads as one continuous workspace. */
body.upload-page .ed-statusbar { min-height: 30px; }

/* Tighten overall shell on the workspace */
body.upload-page .editor-shell { border-radius: 18px; }
body.upload-page .ed-footer-note { max-width: 1100px; margin: 0 auto; }

/* ---- 5. responsive --------------------------------------------------- */
@media (max-width: 720px) {
  body.upload-page .rb-hero { padding: 14px 12px 6px; }
  body.upload-page #editorSection {
    width: calc(100vw - 20px);
    /* 元素宽度一半 = 50vw-10px，margin-left 必须同步，否则右侧溢出 8px */
    margin-left: calc(50% - (50vw - 10px));
    padding: 4px 10px 20px;
  }
}
