/* These two media workspaces use the whole desktop content canvas, then keep
   deliberate 32px side gutters through their own max-width below. */
body.zmt-image-cleanup-page {
  background:
    radial-gradient(circle at 8% 18%, rgba(14, 165, 233, 0.09), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(249, 115, 22, 0.075), transparent 25%),
    #f4f8fc;
}

.zmt-ic-desktop-notice { display: none; }

body.zmt-image-cleanup-page main.container,
body.zmt-image-cleanup-page .content-wrap,
body.zmt-image-cleanup-page .content-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.zmt-image-cleanup-page article.page-article,
body.zmt-image-cleanup-page article.page-article > .wp-posts-content {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.zmt-image-cleanup {
  --ic-ink: #142033;
  --ic-muted: #617087;
  --ic-soft: #f3f8fc;
  --ic-line: rgba(20, 32, 51, 0.1);
  --ic-teal: #0ea5e9;
  --ic-teal-dark: #0369a1;
  --ic-teal-soft: #e7f7ff;
  --ic-coral: #f97316;
  --ic-coral-soft: #fff2e8;
  --ic-gold: #d97706;
  --ic-error: #e43d52;
  --ic-card-shadow: 0 0 0 1px rgba(20, 32, 51, 0.055), 0 2px 5px -2px rgba(20, 32, 51, 0.08), 0 20px 48px rgba(32, 78, 121, 0.08);
  --ic-float-shadow: 0 2px 6px rgba(20, 32, 51, 0.09), 0 18px 52px rgba(32, 78, 121, 0.14);
  width: min(1640px, calc(100% - clamp(40px, 5vw, 96px)));
  margin: 34px auto 84px;
  color: var(--ic-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.zmt-image-cleanup *,
.zmt-image-cleanup *::before,
.zmt-image-cleanup *::after { box-sizing: border-box; }
.zmt-image-cleanup [hidden] { display: none !important; }
.zmt-image-cleanup h1,
.zmt-image-cleanup h2,
.zmt-image-cleanup h3 { text-wrap: balance; }
.zmt-image-cleanup p { text-wrap: pretty; }
.zmt-image-cleanup button,
.zmt-image-cleanup input,
.zmt-image-cleanup output { font: inherit; }
.zmt-image-cleanup button,
.zmt-image-cleanup label,
.zmt-image-cleanup input { -webkit-tap-highlight-color: transparent; }
.zmt-image-cleanup button:focus-visible,
.zmt-image-cleanup input:focus-visible,
.zmt-image-cleanup label[tabindex]:focus-visible,
.zmt-image-cleanup summary:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.3);
  outline-offset: 3px;
}

.zmt-ic-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  padding: 42px 46px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 72% 14%, rgba(14, 165, 233, 0.13), transparent 28%),
    radial-gradient(circle at 96% 88%, rgba(249, 115, 22, 0.1), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f6fbff 56%, #fff8f2 100%);
  box-shadow: var(--ic-card-shadow);
}

.zmt-ic-hero::before,
.zmt-ic-hero::after {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}
.zmt-ic-hero::before {
  right: 210px;
  bottom: -98px;
  width: 230px;
  height: 230px;
  background: rgba(14, 165, 233, 0.1);
}
.zmt-ic-hero::after {
  top: -70px;
  right: 105px;
  width: 150px;
  height: 150px;
  background: rgba(249, 115, 22, 0.095);
}
.zmt-ic-hero-copy,
.zmt-ic-service-card { position: relative; z-index: 1; }
.zmt-ic-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--ic-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.zmt-ic-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.1vw, 52px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}
.zmt-ic-hero-copy > p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--ic-muted);
  font-size: 16px;
  line-height: 1.72;
}
.zmt-ic-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.zmt-ic-platforms li {
  min-height: 28px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #39506a;
  background: #edf7ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.zmt-ic-platforms li:nth-child(2n) { color: #9a4d08; background: #fff3e8; }
.zmt-ic-platforms li:nth-child(3n) { color: #087b6d; background: #eafaf6; }

.zmt-ic-service-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.1), 0 14px 34px rgba(32, 78, 121, 0.09);
  backdrop-filter: blur(12px);
}
.zmt-ic-service-state,
.zmt-ic-quota { display: flex; align-items: center; }
.zmt-ic-service-state { gap: 10px; }
.zmt-ic-status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #aeb8bc;
  box-shadow: 0 0 0 4px rgba(119, 133, 140, 0.1);
  transition-property: background-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}
.zmt-ic-status-dot.is-ready { background: var(--ic-teal); box-shadow: 0 0 0 4px rgba(15, 143, 131, 0.13); }
.zmt-ic-status-dot.is-warning { background: #d79735; box-shadow: 0 0 0 4px rgba(215, 151, 53, 0.14); }
.zmt-ic-status-dot.is-error { background: var(--ic-error); box-shadow: 0 0 0 4px rgba(173, 62, 55, 0.13); }
.zmt-ic-service-state div { min-width: 0; display: grid; }
.zmt-ic-service-card small { color: var(--ic-muted); font-size: 11px; font-weight: 800; }
.zmt-ic-service-state strong { margin-top: 1px; font-size: 14px; font-weight: 900; }
.zmt-ic-quota {
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--ic-line);
}
.zmt-ic-quota > strong {
  margin-left: auto;
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.zmt-ic-quota > strong i { margin: 0 4px; color: #a5afb3; font-size: 13px; font-style: normal; font-weight: 700; }
.zmt-ic-quota > span { color: var(--ic-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.zmt-ic-service-card > p { margin: 10px 0 0; color: var(--ic-muted); font-size: 11px; line-height: 1.5; }

.zmt-ic-steps {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  margin: 18px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}
.zmt-ic-steps li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  color: #718198;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(20, 32, 51, 0.08);
  font-size: 12px;
  font-weight: 800;
}
.zmt-ic-steps li:not(:last-child)::after { content: none; }
.zmt-ic-steps b {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8edec;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  transition-property: color, background-color, transform;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}
.zmt-ic-steps li.is-active { color: #064f78; background: #fff; box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25), 0 5px 14px rgba(14, 165, 233, 0.12); }
.zmt-ic-steps li.is-active b { color: #fff; background: linear-gradient(135deg, #22c1f1, #1478f2); transform: scale(1.04); }
.zmt-ic-steps li.is-complete { color: var(--ic-teal-dark); }
.zmt-ic-steps li.is-complete b { color: transparent; background: var(--ic-teal-soft); }
.zmt-ic-steps li.is-complete b::after { position: absolute; color: var(--ic-teal-dark); content: "✓"; }

.zmt-ic-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 440px);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.zmt-ic-editor-card,
.zmt-ic-submit-card,
.zmt-ic-progress-card,
.zmt-ic-result-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--ic-card-shadow);
}
.zmt-ic-editor-card { min-width: 0; overflow: hidden; }
.zmt-ic-upload { padding: 12px; }
.zmt-image-cleanup input.zmt-ic-file-input {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}
.zmt-ic-dropzone {
  display: flex;
  min-height: 620px;
  padding: 48px 28px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1.5px dashed rgba(14, 165, 233, 0.42);
  border-radius: 16px;
  color: var(--ic-ink);
  background:
    radial-gradient(circle at 50% 22%, rgba(14, 165, 233, 0.1), transparent 31%),
    linear-gradient(145deg, #fbfdff, #f3faff);
  cursor: pointer;
  text-align: center;
  transition-property: background-color, border-color, box-shadow, transform;
  transition-duration: 170ms;
  transition-timing-function: ease-out;
}
.zmt-ic-dropzone:hover,
.zmt-ic-dropzone.is-dragging {
  border-color: var(--ic-teal);
  background: var(--ic-teal-soft);
  box-shadow: inset 0 0 0 3px rgba(14, 165, 233, 0.08);
}
.zmt-ic-dropzone:active { box-shadow: inset 0 0 0 4px rgba(15, 143, 131, 0.1); }
.zmt-ic-upload-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
  border-radius: 15px;
  color: var(--ic-teal);
  background: #fff;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.15), inset 0 0 0 1px rgba(14, 165, 233, 0.15);
}
.zmt-ic-upload-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zmt-ic-dropzone strong { font-size: 21px; line-height: 1.25; font-weight: 930; }
.zmt-ic-dropzone > span:not(.zmt-ic-upload-icon) { margin-top: 8px; color: var(--ic-muted); font-size: 13px; line-height: 1.6; }
.zmt-ic-dropzone em {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 20px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #22c1f1, #1478f2);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  box-shadow: 0 9px 20px rgba(20, 120, 242, 0.22);
}

.zmt-ic-editor-heading {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 15px;
  box-shadow: inset 0 -1px 0 rgba(25, 39, 45, 0.08);
}
.zmt-ic-editor-heading > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 1px 9px; align-items: baseline; }
.zmt-ic-editor-heading span { color: var(--ic-teal-dark); font-size: 11px; font-weight: 900; }
.zmt-ic-editor-heading strong { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.zmt-ic-editor-heading small { grid-column: 2; color: var(--ic-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.zmt-ic-text-button {
  min-width: 76px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--ic-teal-dark);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  transition-property: color, background-color, transform;
  transition-duration: 140ms;
  transition-timing-function: ease-out;
}
.zmt-ic-text-button:hover { background: var(--ic-teal-soft); }
.zmt-ic-text-button:active { transform: scale(0.96); }

.zmt-ic-toolbar {
  display: grid;
  min-height: 104px;
  grid-template-columns: auto minmax(170px, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 12px;
  padding: 9px 12px;
  background: #f8faf9;
  box-shadow: inset 0 -1px 0 rgba(25, 39, 45, 0.075);
}
.zmt-ic-toolbar > .zmt-ic-tool-group:first-child { grid-column: 1; grid-row: 1; }
.zmt-ic-tool-group { display: flex; gap: 4px; align-items: center; }
.zmt-ic-tool,
.zmt-ic-icon-button {
  position: relative;
  display: inline-flex;
  min-width: 44px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: #56646b;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  flex: 0 0 auto;
  transition-property: color, background-color, box-shadow, transform;
  transition-duration: 140ms;
  transition-timing-function: ease-out;
}
.zmt-ic-tool svg,
.zmt-ic-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zmt-ic-tool:hover,
.zmt-ic-icon-button:hover:not(:disabled) { color: var(--ic-ink); background: #edf2f0; }
.zmt-ic-tool.is-active { color: var(--ic-teal-dark); background: #fff; box-shadow: 0 1px 3px rgba(22, 35, 41, 0.09), inset 0 0 0 1px rgba(15, 143, 131, 0.15); }
.zmt-ic-tool:active,
.zmt-ic-icon-button:active:not(:disabled) { transform: scale(0.96); }
.zmt-ic-icon-button:disabled { opacity: 0.37; cursor: not-allowed; }
.zmt-ic-brush-size { display: grid; grid-column: 2; grid-row: 1; grid-template-columns: auto minmax(70px, 1fr) 48px; min-width: 190px; gap: 7px; align-items: center; color: var(--ic-muted); font-size: 11px; font-weight: 800; }
.zmt-ic-brush-size input { width: 100%; accent-color: var(--ic-teal); cursor: pointer; }
.zmt-ic-brush-size output { text-align: right; color: #58666c; font-size: 11px; font-variant-numeric: tabular-nums; }
.zmt-ic-history-tools { grid-column: 3; grid-row: 1; margin-left: 0; }
.zmt-ic-zoom-tools {
  display: inline-flex;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: end;
  min-height: 40px;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: #eef3f1;
  box-shadow: inset 0 0 0 1px rgba(25, 39, 45, 0.055);
}
.zmt-ic-zoom-tools .zmt-ic-icon-button { min-width: 38px; padding: 0 8px; }
.zmt-ic-zoom-tools output {
  width: 48px;
  color: #4f5d64;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.zmt-ic-zoom-tools .zmt-ic-fit-button { min-width: 48px; font-size: 11px; }

.zmt-ic-canvas-scroll {
  display: block;
  min-height: 600px;
  max-height: 820px;
  overflow: auto;
  padding: 18px;
  background-color: #e8eceb;
  background-image: linear-gradient(45deg, rgba(0,0,0,.035) 25%, transparent 25%), linear-gradient(-45deg, rgba(0,0,0,.035) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(0,0,0,.035) 75%), linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.035) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}
.zmt-ic-canvas-stage {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  aspect-ratio: var(--zmt-ic-aspect, 4 / 3);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 16px 42px rgba(21, 32, 37, 0.18);
  user-select: none;
  transition: opacity 150ms ease-out;
}
.zmt-ic-canvas-stage.is-pan-ready canvas:last-of-type { cursor: grab; }
.zmt-ic-canvas-stage.is-panning canvas:last-of-type { cursor: grabbing; }
.zmt-ic-canvas-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.zmt-ic-canvas-stage canvas:first-child { object-fit: contain; }
.zmt-ic-canvas-stage canvas:last-of-type { z-index: 2; cursor: crosshair; touch-action: none; }
.zmt-image-cleanup.is-submitting .zmt-ic-canvas-stage canvas:last-of-type { cursor: progress; pointer-events: none; }
.zmt-image-cleanup.is-submitting .zmt-ic-canvas-stage { opacity: .88; }
.zmt-image-cleanup :disabled { cursor: not-allowed; }
.zmt-ic-brush-cursor {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 0 1px rgba(25, 39, 45, 0.62), 0 2px 8px rgba(25, 39, 45, 0.22);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.25);
  filter: blur(4px);
  transition-property: opacity, transform, filter, border-radius;
  transition-duration: 110ms;
  transition-timing-function: ease-out;
}
.zmt-ic-brush-cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
.zmt-ic-brush-cursor.is-eraser { border-radius: 4px; }
.zmt-ic-editor-hint { display: flex; margin: 0; padding: 12px 16px; align-items: center; justify-content: space-between; gap: 18px; color: var(--ic-muted); background: #fbfcfc; font-size: 12px; line-height: 1.55; box-shadow: inset 0 1px 0 rgba(25, 39, 45, 0.07); }
.zmt-ic-shortcuts { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #748087; font-size: 10px; white-space: nowrap; }
.zmt-ic-shortcuts kbd { min-width: 22px; padding: 2px 5px; border-radius: 5px; color: #46545a; background: #fff; box-shadow: 0 0 0 1px rgba(25, 39, 45, 0.09), 0 1px 2px rgba(25, 39, 45, 0.06); font: 800 10px/1.5 inherit; text-align: center; }
.zmt-ic-quick-regions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 12px 12px; }
.zmt-ic-quick-regions > span { margin-right: 3px; color: var(--ic-muted); font-size: 11px; font-weight: 800; }
.zmt-ic-quick-regions button {
  min-width: 43px;
  min-height: 40px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  color: #55636a;
  background: #f0f4f3;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  transition-property: color, background-color, transform;
  transition-duration: 130ms;
  transition-timing-function: ease-out;
}
.zmt-ic-quick-regions button:hover { color: var(--ic-teal-dark); background: var(--ic-teal-soft); }
.zmt-ic-quick-regions button:active { transform: scale(0.96); }

.zmt-ic-submit-card { position: sticky; top: 88px; padding: 26px; }
.zmt-ic-submit-card header > span,
.zmt-ic-result-heading > div > span { color: var(--ic-teal); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; }
.zmt-ic-submit-card h2 { margin: 5px 0 0; font-size: 21px; line-height: 1.3; font-weight: 930; letter-spacing: -0.02em; }
.zmt-ic-submit-card header p { margin: 8px 0 0; color: var(--ic-muted); font-size: 12px; line-height: 1.6; }
.zmt-ic-readiness { display: grid; gap: 7px; margin-top: 17px; }
.zmt-ic-readiness > span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 1px 9px;
  min-height: 55px;
  align-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3faff, #f8f7ff);
  box-shadow: inset 0 0 0 1px rgba(20, 32, 51, 0.06);
}
.zmt-ic-readiness i {
  display: inline-flex;
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #22c1f1, #1478f2);
  box-shadow: 0 5px 12px rgba(20, 120, 242, 0.18);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.zmt-ic-readiness > span:nth-child(2) i { background: linear-gradient(135deg, #8b5cf6, #6059e8); }
.zmt-ic-readiness > span:nth-child(3) i { background: linear-gradient(135deg, #fb923c, #f97316); }
.zmt-ic-readiness b { align-self: end; font-size: 12px; font-weight: 900; }
.zmt-ic-readiness small { grid-column: 2; color: var(--ic-muted); font-size: 10px; line-height: 1.35; }

.zmt-ic-rights-panel {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 14px;
  background: #f8f9fd;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 51, 0.065);
}
.zmt-ic-rights-panel summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: #4f5d70;
  cursor: pointer;
  list-style: none;
}
.zmt-ic-rights-panel summary::-webkit-details-marker { display: none; }
.zmt-ic-rights-panel summary > span { display: grid; min-width: 0; }
.zmt-ic-rights-panel summary b { font-size: 12px; font-weight: 900; }
.zmt-ic-rights-panel summary small { margin-top: 2px; color: #d05b10; font-size: 10px; font-weight: 800; }
.zmt-ic-rights-panel summary > i {
  display: inline-flex;
  min-width: 42px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ic-teal-dark);
  background: #e9f7ff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.zmt-ic-rights-panel[open] summary { box-shadow: inset 0 -1px 0 var(--ic-line); }
.zmt-ic-rights-panel[open] summary > i { font-size: 0; }
.zmt-ic-rights-panel[open] summary > i::after { content: "收起"; font-size: 10px; }
.zmt-ic-rights-panel.is-ready summary small { color: #087b6d; }
.zmt-ic-rights-content { padding: 14px; }
.zmt-ic-authorization { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; border: 0; }
.zmt-ic-authorization legend { margin-bottom: 7px; color: #4f5d64; font-size: 11px; font-weight: 900; }
.zmt-ic-authorization label {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  min-height: 88px;
  padding: 11px 9px;
  border-radius: 12px;
  background: #f7fafe;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 51, 0.065);
  cursor: pointer;
  transition-property: background-color, box-shadow;
  transition-duration: 140ms;
  transition-timing-function: ease-out;
}
.zmt-ic-authorization label:hover { background: #eff8ff; }
.zmt-ic-authorization label:has(input:checked) { background: var(--ic-teal-soft); box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.48), 0 7px 16px rgba(14, 165, 233, 0.08); }
.zmt-ic-authorization input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ic-teal); }
.zmt-ic-authorization label > span { display: grid; }
.zmt-ic-authorization b { font-size: 12px; font-weight: 900; }
.zmt-ic-authorization small { margin-top: 1px; color: var(--ic-muted); font-size: 11px; line-height: 1.4; }
.zmt-ic-check { display: grid; grid-template-columns: 17px 1fr; gap: 8px; min-height: 40px; margin-top: 8px; align-items: center; color: #536168; font-size: 11px; line-height: 1.5; cursor: pointer; }
.zmt-ic-check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--ic-teal); }
.zmt-ic-rights-processing { margin-top: 8px; padding: 11px 12px; border-radius: 10px; background: #f1f5f8; }
.zmt-ic-rights-processing b { color: #506070; font-size: 11px; font-weight: 900; }
.zmt-ic-rights-processing p { margin: 4px 0 0; color: var(--ic-muted); font-size: 10px; line-height: 1.55; }

.zmt-ic-primary-button,
.zmt-ic-secondary-button,
.zmt-ic-danger-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition-property: color, background-color, box-shadow, transform, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.zmt-ic-submit-card > .zmt-ic-primary-button { width: 100%; margin-top: 16px; }
.zmt-ic-primary-button { color: #fff; background: linear-gradient(135deg, #19bdf0 0%, #1478f2 58%, #6059e8 100%); box-shadow: 0 10px 24px rgba(20, 120, 242, 0.27); }
.zmt-ic-primary-button:hover:not(:disabled) { background: linear-gradient(135deg, #0eb4e8 0%, #0969db 58%, #5149d6 100%); box-shadow: 0 14px 30px rgba(20, 120, 242, 0.33); }
.zmt-ic-primary-button:active:not(:disabled),
.zmt-ic-secondary-button:active:not(:disabled),
.zmt-ic-danger-button:active:not(:disabled) { transform: scale(0.96); }
.zmt-ic-primary-button:disabled { color: #8b98ab; background: #e7edf4; opacity: 1; cursor: not-allowed; box-shadow: none; }
.zmt-ic-secondary-button { color: #506067; background: #eef2f1; box-shadow: inset 0 0 0 1px rgba(25, 39, 45, 0.06); }
.zmt-ic-secondary-button:hover { color: var(--ic-ink); background: #e5ebea; }
.zmt-ic-danger-button { color: #b42318; background: #fff3f1; box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.09), 0 5px 14px rgba(180, 35, 24, 0.06); }
.zmt-ic-danger-button:hover:not(:disabled) { color: #8f1710; background: #ffe7e3; box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.13), 0 8px 18px rgba(180, 35, 24, 0.09); }
.zmt-ic-danger-button.is-confirming { color: #fff; background: #c52a20; box-shadow: 0 9px 22px rgba(180, 35, 24, 0.24); }
.zmt-ic-danger-button:disabled { color: #a6a0a0; background: #f2eeee; cursor: wait; box-shadow: none; }
.zmt-ic-button-icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.zmt-ic-button-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.zmt-ic-primary-button.is-loading .zmt-ic-button-icon { animation: zmt-ic-spark 1.2s ease-in-out infinite; }
.zmt-ic-submit-note { margin: 9px 0 0; color: var(--ic-muted); font-size: 11px; line-height: 1.45; text-align: center; }

.zmt-ic-progress-card { margin-top: 16px; padding: 18px 20px; }
.zmt-ic-progress-copy { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.zmt-ic-spinner { width: 34px; height: 34px; border: 3px solid rgba(15, 143, 131, 0.14); border-top-color: var(--ic-teal); border-radius: 50%; animation: zmt-ic-spin 900ms linear infinite; }
.zmt-ic-progress-copy > div { min-width: 0; }
.zmt-ic-progress-copy strong { display: block; font-size: 14px; font-weight: 920; }
.zmt-ic-progress-copy p { margin: 2px 0 0; color: var(--ic-muted); font-size: 12px; line-height: 1.45; }
.zmt-ic-progress-copy > b { color: var(--ic-teal-dark); font-size: 16px; font-weight: 950; font-variant-numeric: tabular-nums; }
.zmt-ic-progress-track { height: 6px; margin-top: 13px; overflow: hidden; border-radius: 3px; background: #e9eeec; }
.zmt-ic-progress-track span { display: block; width: var(--zmt-ic-progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c1f1, #1478f2, #f97316); transition-property: width; transition-duration: 320ms; transition-timing-function: ease-out; }

.zmt-ic-result-card { margin-top: 16px; overflow: hidden; transition-property: opacity, transform; transition-duration: 150ms; transition-timing-function: ease-out; }
.zmt-ic-result-card.is-clearing { opacity: 0.5; transform: translateY(-6px); pointer-events: none; }
.zmt-ic-result-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 17px 19px; }
.zmt-ic-result-heading h2 { margin: 3px 0 0; font-size: 22px; line-height: 1.3; font-weight: 930; letter-spacing: -0.02em; }
.zmt-ic-result-heading p { margin: 4px 0 0; color: var(--ic-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.zmt-ic-result-actions { display: flex; gap: 7px; }
.zmt-ic-result-actions button { min-width: 108px; padding: 0 14px; }
.zmt-ic-compare { position: relative; width: 100%; min-height: 560px; overflow: hidden; background: #252e32; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.zmt-ic-compare > img,
.zmt-ic-before-clip,
.zmt-ic-before-clip img { display: block; width: 100%; height: 100%; min-height: 560px; object-fit: contain; }
.zmt-ic-before-clip { position: absolute; inset: 0 auto 0 0; width: var(--zmt-ic-compare); overflow: hidden; }
.zmt-ic-before-clip img { width: var(--zmt-ic-compare-width, 100vw); max-width: none; object-position: left center; }
.zmt-ic-compare > img,
.zmt-ic-before-clip img { outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; }
.zmt-ic-compare-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--zmt-ic-compare); width: 2px; background: rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 0 14px rgba(0,0,0,.2); transform: translateX(-1px); pointer-events: none; }
.zmt-ic-compare-handle i { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.22); transform: translate(-50%, -50%); }
.zmt-ic-compare-handle i::before { position: absolute; inset: 0; display: grid; place-items: center; color: #3d4b51; content: "↔"; font-size: 17px; font-style: normal; font-weight: 900; }
.zmt-ic-compare > input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.zmt-ic-compare-label { position: absolute; z-index: 2; top: 13px; padding: 5px 8px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.58); font-size: 11px; font-weight: 850; backdrop-filter: blur(6px); }
.zmt-ic-compare-label.is-before { left: 13px; }
.zmt-ic-compare-label.is-after { right: 13px; }
.zmt-ic-compare.is-result-only .zmt-ic-before-clip,
.zmt-ic-compare.is-result-only .zmt-ic-compare-handle,
.zmt-ic-compare.is-result-only .zmt-ic-compare-label,
.zmt-ic-compare.is-result-only > input { display: none; }
.zmt-ic-compare.is-result-only { cursor: default; }
.zmt-ic-result-expiry { margin: 0; padding: 12px 18px; color: #755b32; background: #fff9ed; font-size: 11px; line-height: 1.5; text-align: center; }

.zmt-ic-toast {
  position: fixed;
  z-index: 2147483000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 14px;
  border-radius: 9px;
  color: #fff;
  background: #29363b;
  box-shadow: var(--ic-float-shadow);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  animation: zmt-ic-toast-in 180ms ease-out both;
}
.zmt-ic-toast.is-error { background: var(--ic-error); }
.zmt-ic-toast.is-success { background: var(--ic-teal-dark); }

@keyframes zmt-ic-spin { to { transform: rotate(360deg); } }
@keyframes zmt-ic-spark { 50% { opacity: .55; transform: scale(.84) rotate(12deg); } }
@keyframes zmt-ic-toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); filter: blur(4px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }

/* Compact desktop: keep the editor wide and turn the tall rail into a shallow
   confirmation deck. This is still the desktop experience; mobile stays off. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .zmt-ic-hero { grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; padding: 34px; }
  .zmt-ic-workspace { grid-template-columns: 1fr; }
  .zmt-ic-submit-card {
    position: static;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px 16px;
    align-items: start;
  }
  .zmt-ic-submit-card > header { grid-column: 1 / 5; }
  .zmt-ic-submit-card > .zmt-ic-readiness { grid-column: 5 / 9; margin-top: 0; }
  .zmt-ic-submit-card > .zmt-ic-rights-panel { grid-column: 9 / 13; margin-top: 0; }
  .zmt-ic-rights-panel .zmt-ic-authorization { grid-template-columns: 1fr; }
  .zmt-ic-rights-panel .zmt-ic-authorization label { min-height: 58px; }
  .zmt-ic-submit-card > .zmt-ic-primary-button { grid-column: 9 / 13; align-self: center; margin-top: 0; }
  .zmt-ic-submit-card > .zmt-ic-submit-note { grid-column: 9 / 13; margin-top: -6px; }
}

@media (max-width: 1023px) {
  .zmt-image-cleanup { display: none !important; }
  .zmt-ic-desktop-notice {
    display: flex;
    width: min(620px, calc(100% - 32px));
    min-height: 280px;
    margin: 34px auto 64px;
    padding: 34px;
    align-items: flex-start;
    gap: 20px;
    border-radius: 24px;
    color: #182329;
    background: linear-gradient(145deg, #fff, #f2faf7);
    box-shadow: var(--ic-card-shadow, 0 18px 44px rgba(22, 35, 41, 0.1));
    -webkit-font-smoothing: antialiased;
  }
  .zmt-ic-desktop-notice-icon { display: inline-flex; width: 58px; height: 58px; flex: 0 0 58px; align-items: center; justify-content: center; border-radius: 17px; color: #0f8f83; background: #e8f7f4; }
  .zmt-ic-desktop-notice-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .zmt-ic-desktop-notice > div { min-width: 0; }
  .zmt-ic-desktop-notice > div > span { color: #08766d; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
  .zmt-ic-desktop-notice h1 { margin: 7px 0 0; font-size: 25px; line-height: 1.22; font-weight: 950; letter-spacing: -.03em; text-wrap: balance; }
  .zmt-ic-desktop-notice p { margin: 11px 0 0; color: #68767d; font-size: 14px; line-height: 1.7; text-wrap: pretty; }
  .zmt-ic-desktop-notice a { display: inline-flex; min-height: 44px; margin-top: 20px; padding: 0 17px; align-items: center; justify-content: center; border-radius: 10px; color: #fff; background: #0f8f83; box-shadow: 0 8px 18px rgba(15, 143, 131, .2); font-size: 13px; font-weight: 900; text-decoration: none; transition-property: background-color, box-shadow, transform; transition-duration: 150ms; transition-timing-function: ease-out; }
  .zmt-ic-desktop-notice a:hover { background: #08766d; box-shadow: 0 11px 24px rgba(15, 143, 131, .25); }
  .zmt-ic-desktop-notice a:active { transform: scale(.96); }
}

@media (max-width: 920px) {
  .zmt-ic-hero { grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; padding: 23px; }
  .zmt-ic-workspace { grid-template-columns: 1fr; }
  .zmt-ic-submit-card { position: static; }
  .zmt-ic-submit-card header { max-width: 680px; }
  .zmt-ic-authorization { grid-template-columns: repeat(3, 1fr); }
  .zmt-ic-submit-card > .zmt-ic-primary-button { max-width: 360px; }
}

@media (max-width: 680px) {
  .zmt-image-cleanup { width: min(100% - 18px, 1560px); margin-top: 10px; margin-bottom: 38px; }
  .zmt-ic-hero { grid-template-columns: 1fr; padding: 20px 17px; border-radius: 14px; }
  .zmt-ic-hero::before { right: -80px; }
  .zmt-ic-hero::after { right: 40px; }
  .zmt-ic-hero h1 { font-size: 30px; }
  .zmt-ic-hero-copy > p { font-size: 13px; }
  .zmt-ic-service-card { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
  .zmt-ic-quota { margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid var(--ic-line); }
  .zmt-ic-quota > small,
  .zmt-ic-quota > span { display: none; }
  .zmt-ic-service-card > p { grid-column: 1 / -1; margin: 0; }
  .zmt-ic-steps { margin: 12px auto; }
  .zmt-ic-steps li { gap: 5px; font-size: 11px; }
  .zmt-ic-steps li:not(:last-child)::after { right: -11%; width: 22%; }
  .zmt-ic-editor-card,
  .zmt-ic-submit-card,
  .zmt-ic-progress-card,
  .zmt-ic-result-card { border-radius: 12px; }
  .zmt-ic-upload { padding: 9px; }
  .zmt-ic-dropzone { min-height: 390px; padding: 28px 16px; border-radius: 9px; }
  .zmt-ic-toolbar { align-items: stretch; flex-wrap: wrap; padding: 7px; }
  .zmt-ic-toolbar > .zmt-ic-tool-group:first-child { width: 100%; }
  .zmt-ic-tool { flex: 1; min-height: 43px; }
  .zmt-ic-brush-size { min-width: 0; flex: 1 1 calc(100% - 110px); }
  .zmt-ic-history-tools { flex: 0 0 auto; }
  .zmt-ic-icon-button span { display: none; }
  .zmt-ic-canvas-scroll { min-height: 300px; max-height: 72vh; padding: 9px; }
  .zmt-ic-canvas-stage { border-radius: 5px; }
  .zmt-ic-editor-hint { font-size: 11px; }
  .zmt-ic-quick-regions { padding: 8px; }
  .zmt-ic-quick-regions > span { width: 100%; }
  .zmt-ic-quick-regions button { flex: 1; min-height: 40px; }
  .zmt-ic-submit-card { padding: 15px; }
  .zmt-ic-authorization { grid-template-columns: 1fr; }
  .zmt-ic-submit-card > .zmt-ic-primary-button { max-width: none; }
  .zmt-ic-result-heading { align-items: stretch; flex-direction: column; padding: 15px; }
  .zmt-ic-result-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .zmt-ic-result-actions button { min-width: 0; }
  .zmt-ic-compare,
  .zmt-ic-compare > img,
  .zmt-ic-before-clip,
  .zmt-ic-before-clip img { min-height: 260px; }
}

@media (pointer: coarse) {
  .zmt-ic-tool,
  .zmt-ic-icon-button,
  .zmt-ic-quick-regions button,
  .zmt-ic-text-button { min-height: 44px; }
  .zmt-ic-brush-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .zmt-image-cleanup *,
  .zmt-image-cleanup *::before,
  .zmt-image-cleanup *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
