.remove-hero {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #071f2d;
  color: #fff;
}
.remove-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(4,22,35,.98) 0%,rgba(4,22,35,.88) 40%,rgba(4,22,35,.08) 72%); }
.remove-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.remove-hero-content { position: relative; z-index: 1; padding-block: 62px; }
.remove-breadcrumbs { margin-bottom: 24px; color: #d7e8eb; font-size: 12px; font-weight: 800; }
.remove-breadcrumbs a { color: #fff; }
.remove-hero .eyebrow { color: var(--mint); }
.remove-hero h1 { max-width: 720px; margin: 7px 0 18px; font-size: clamp(48px,6vw,78px); line-height: 1.1; text-wrap: balance; }
.remove-hero p:not(.eyebrow) { max-width: 600px; margin: 0 0 28px; font-size: 17px; font-weight: 700; }
.remove-hero .button { background: var(--yellow); color: var(--ink); }

.remover-band { padding: 72px 0 82px; background: #eef5f6; }
.remover-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,430px); gap: 44px; align-items: end; margin-bottom: 30px; }
.remover-heading h2 { margin: 0; font-size: clamp(35px,4vw,50px); }
.remover-heading > p { margin: 0; color: var(--ink-soft); }
.remover-heading > p strong { color: #086652; }
.remover-shell { overflow: hidden; border: 1px solid #c7d7d8; border-radius: 6px; background: #fff; box-shadow: 0 18px 40px rgba(12,42,52,.09); }
.upload-stage[hidden],.editor[hidden],.solid-controls[hidden],.ai-controls[hidden],.progress-track[hidden],.tap-guide[hidden] { display: none !important; }
.upload-stage { min-height: 480px; display: grid; place-items: center; align-content: center; padding: 42px 20px; border: 3px dashed #a7c5c0; margin: 18px; background: #f7fbfa; text-align: center; transition: .18s ease; }
.upload-stage.dragover { border-color: #08745d; background: #e5fbf5; transform: scale(.995); }
.upload-stage h2 { margin: 18px 0 5px; font-size: 34px; }
.upload-stage p { margin: 0 0 22px; color: #63777c; font-weight: 800; }
.upload-stage small { margin-top: 17px; color: #6c7f84; font-weight: 800; }
.upload-icon { position: relative; width: 92px; height: 76px; border: 5px solid #0a3741; background: var(--mint); box-shadow: 8px 8px 0 #dce8e5; }
.upload-icon span { position: absolute; left: 50%; top: 13px; width: 24px; height: 32px; border-left: 7px solid #0a3741; transform: translateX(-50%); }
.upload-icon span::before { content: ""; position: absolute; left: -15px; top: -1px; width: 23px; height: 23px; border-left: 7px solid #0a3741; border-top: 7px solid #0a3741; transform: rotate(45deg); }
.upload-icon i { position: absolute; left: 15px; right: 15px; bottom: 12px; height: 7px; background: #0a3741; }
.primary-action,.copy-button,.download-button { min-height: 54px; padding: 12px 22px; border: 2px solid var(--ink); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; font-size: 15px; font-weight: 950; }
.primary-action { background: var(--yellow); }
.copy-button { background: var(--mint); }
.download-button { background: #fff; }
.primary-action:active,.copy-button:active,.download-button:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.primary-action:disabled,.copy-button:disabled,.download-button:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.paste-action { min-height: 42px; margin-top: 13px; padding: 8px 16px; border: 1px solid #8aa9a4; background: #fff; color: #0b5f4d; cursor: pointer; font-size: 11px; font-weight: 950; }
.paste-action:hover { background: #e6faf4; }
.upload-message { min-height: 18px; margin: 8px 0 0 !important; color: #a1251d !important; font-size: 10px; font-weight: 850; }

.editor { display: grid; grid-template-columns: 360px minmax(0,1fr); min-height: 680px; }
.control-panel { min-width: 0; padding: 20px; border-right: 1px solid #cbd9dc; background: #f9fbfb; }
.file-summary { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; gap: 11px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #d3dfe1; }
.file-thumb { width: 62px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid #b9c9cc; }
.file-thumb img { width: 100%; height: 100%; object-fit: contain; }
.file-summary div:nth-child(2) { min-width: 0; }
.file-summary strong,.file-summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-summary strong { font-size: 13px; }
.file-summary span { margin-top: 4px; color: #687b80; font-size: 10px; font-weight: 800; }
.file-summary button { padding: 8px 7px; border: 1px solid #aebfc2; background: #fff; color: #28464e; cursor: pointer; font-size: 10px; font-weight: 900; }
.mode-control { margin: 20px 0 0; padding: 0; border: 0; }
.mode-control legend { margin-bottom: 8px; color: #2f4b52; font-size: 12px; font-weight: 950; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #dfe9e8; }
.segmented-control button { min-height: 42px; border: 0; background: transparent; color: #50666c; cursor: pointer; font-size: 13px; font-weight: 950; }
.segmented-control button.active { background: #fff; color: #075f4b; box-shadow: 0 2px 8px rgba(11,45,52,.12); }
.mode-control > p { min-height: 45px; margin: 8px 0 0; color: #63757a; font-size: 10px; font-weight: 750; }
.solid-controls { margin-top: 17px; border-top: 1px solid #d4dfe1; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid #d4dfe1; }
.setting-row label,.range-setting b { display: block; color: #213e46; font-size: 12px; font-weight: 950; }
.setting-row small,.range-setting small { display: block; margin-top: 3px; color: #73858a; font-size: 9px; font-weight: 750; }
.color-setting input { width: 52px; height: 42px; padding: 3px; border: 1px solid #9fb4b7; background: #fff; cursor: pointer; }
.range-setting { display: block; padding: 17px 0; border-bottom: 1px solid #d4dfe1; }
.range-setting > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.range-setting output { min-width: 34px; padding: 4px 6px; background: #0b3d46; color: #fff; text-align: center; font-size: 11px; font-weight: 950; }
.range-setting input { width: 100%; margin: 13px 0 0; accent-color: #08745d; cursor: pointer; }
.ai-controls { margin-top: 17px; }
.ai-note { padding: 15px; border-left: 5px solid #e95f57; background: #fff2ea; }
.ai-note strong { color: #8d302b; font-size: 13px; }
.ai-note p { margin: 5px 0 0; color: #675b55; font-size: 10px; font-weight: 750; }
.ai-note a { display: inline-block; margin-top: 8px; color: #6a4a42; font-size: 9px; font-weight: 800; text-underline-offset: 2px; }
.process-button,.copy-button,.download-button { width: 100%; margin-top: 18px; }
.copy-button,.download-button { margin-top: 10px; }
.process-status { min-height: 34px; margin: 13px 0 0; color: #61757a; font-size: 10px; font-weight: 800; }
.process-status.error { color: #a1251d; }
.progress-track { height: 7px; overflow: hidden; background: #dce6e7; }
.progress-track span { display: block; width: 0; height: 100%; background: #09a783; transition: width .18s ease; }

.preview-panel { min-width: 0; display: flex; flex-direction: column; padding: clamp(20px,3.5vw,40px); background: #fff; }
.preview-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 17px; }
.preview-head p { margin: 0; color: #08745d; font-size: 10px; font-weight: 950; }
.preview-head h2 { margin: 2px 0 0; font-size: 28px; }
.preview-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: #e5ecec; }
.preview-toggle button { min-width: 70px; min-height: 36px; border: 0; background: transparent; color: #566b70; cursor: pointer; font-size: 10px; font-weight: 950; }
.preview-toggle button.active { background: #0b3d46; color: #fff; }
.preview-canvas { position: relative; flex: 1; min-height: 520px; display: grid; place-items: center; overflow: hidden; border: 1px solid #bfcfd1; cursor: crosshair; }
.preview-canvas img { display: block; width: 100%; height: 100%; max-height: 600px; object-fit: contain; }
.checkerboard { background-color: #fff; background-image: linear-gradient(45deg,#d8dfe0 25%,transparent 25%),linear-gradient(-45deg,#d8dfe0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d8dfe0 75%),linear-gradient(-45deg,transparent 75%,#d8dfe0 75%); background-size: 24px 24px; background-position: 0 0,0 12px,12px -12px,-12px 0; }
.tap-guide { position: absolute; left: 50%; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 11px; background: rgba(4,32,41,.88); color: #fff; font-size: 10px; font-weight: 900; text-align: center; transform: translateX(-50%); pointer-events: none; }
.preview-meta { display: flex; justify-content: space-between; gap: 18px; padding-top: 10px; color: #63777c; font-size: 10px; font-weight: 850; }

.remove-guide { display: grid; grid-template-columns: minmax(230px,.65fr) minmax(0,1.35fr); gap: 64px; align-items: start; }
.remove-guide h2 { margin-top: 5px; }
.remove-guide-points { border-top: 2px solid var(--ink); }
.remove-guide-points section { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.remove-guide-points section > span { display: grid; place-items: center; width: 42px; height: 34px; background: #0c725c; color: #fff; font-size: 10px; font-weight: 950; }
.remove-guide-points strong { color: #0b6753; }
.remove-guide-points p { margin: 4px 0 0; color: var(--ink-soft); }

@media (max-width: 900px) {
  .editor { grid-template-columns: 310px minmax(0,1fr); }
  .preview-canvas { min-height: 460px; }
}

@media (max-width: 760px) {
  .remove-hero { min-height: 510px; align-items: flex-end; }
  .remove-hero::after { background: linear-gradient(0deg,rgba(4,22,35,.98) 0%,rgba(4,22,35,.78) 58%,rgba(4,22,35,.08) 100%); }
  .remove-hero-image { object-position: 64% center; }
  .remove-hero-content { padding-block: 34px; }
  .remove-hero h1 { font-size: 42px; }
  .remove-hero p:not(.eyebrow) { max-width: 390px; font-size: 14px; }
  .remover-band { padding: 48px 0 56px; }
  .remover-heading { grid-template-columns: 1fr; gap: 12px; }
  .editor { display: flex; flex-direction: column; }
  .control-panel { border-right: 0; border-bottom: 1px solid #cbd9dc; }
  .preview-panel { padding: 20px 15px; }
  .preview-canvas { min-height: 390px; aspect-ratio: 1 / 1; }
  .remove-guide { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 520px) {
  .remove-hero { min-height: 485px; }
  .remove-hero h1 { font-size: 37px; }
  .upload-stage { min-height: 390px; margin: 10px; }
  .upload-stage h2 { font-size: 29px; }
  .control-panel { padding: 16px 14px 20px; }
  .preview-head { align-items: flex-start; flex-direction: column; gap: 11px; }
  .preview-toggle { width: 100%; }
  .preview-toggle button { min-width: 0; }
  .preview-canvas { min-height: 330px; }
  .remove-guide-points section { grid-template-columns: 42px minmax(0,1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .upload-stage,.progress-track span { transition: none; }
}
