.wm-upload { display: grid; position: relative; justify-items: center; align-content: center; gap: 6px;
  text-align: center; min-height: 116px; padding: 24px; margin-top: 24px; min-width: 0;
  border: 1px dashed #9ab8aa; border-radius: 12px; background: #f5f8f4; }
.wm-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.wm-upload:hover { background: var(--brand-soft); border-color: var(--brand); }
.wm-upload .file-drop-title { font-size: 16px; font-weight: 650; }
.wm-workspace { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 24px;
  align-items: start; margin-top: 16px; }
.wm-workspace:has(.wm-review[hidden]) { grid-template-columns: minmax(0, 640px); justify-content: center; }
.wm-review[hidden] { display: none; }
.wm-settings, .wm-review { padding: clamp(16px, 2.5vw, 28px); min-width: 0; gap: 0; }
.wm-settings h2, .wm-review h2 { font: 650 22px/1.3 var(--ui); margin: 0 0 20px; }
.wm-settings fieldset { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }
.wm-settings label, .wm-override { display: grid; gap: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.wm-settings input, .wm-settings select, .wm-override select { width: 100%; min-width: 0; min-height: 44px; }
.wm-settings input[type="color"] { padding: 5px; }
.watermark-site button:not(.primary) { background: var(--surface); color: var(--brand); border-color: var(--line); }
.watermark-site .wm-job-select { background: transparent; border-color: transparent; padding: 4px; }
.wm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wm-hint { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; }
.wm-template { border-top: 1px solid var(--line); padding-top: 16px; }
.wm-template summary { cursor: pointer; min-height: 44px; color: var(--brand); font-weight: 650; }
.wm-settings .wm-check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.wm-check input { width: 18px; min-height: 18px; flex-shrink: 0; }
.wm-template-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-template-actions button { font-size: 13px; }
.wm-stage { display: grid; place-items: center; min-height: 220px; border-radius: 8px; overflow: hidden; background: #e5eae4; }
.wm-stage canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 440px; }
.wm-stage [hidden] { display: none; }
.wm-stage p { color: var(--muted); padding: 20px; text-align: center; }
.wm-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; margin-top: 20px; }
.wm-job { padding: 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.wm-job[aria-current="true"] { border-color: var(--brand); background: var(--brand-soft); }
.wm-job-select { display: block; width: 100%; text-align: start; overflow-wrap: anywhere; white-space: normal; }
.wm-job-state { font-size: 13px; color: var(--muted); margin: 8px 0; overflow-wrap: anywhere; }
.wm-job-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-job-actions button { font-size: 13px; min-height: 40px; }
.wm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 52px; }
.wm-guide { max-width: 800px; }
.wm-guide li { margin-block: 16px; }
@media (max-width: 779px) {
  .wm-workspace { grid-template-columns: 1fr; gap: 16px; }
  .wm-review { order: -1; }
  .wm-stage { min-height: 150px; }
  .wm-stage canvas { max-height: 280px; }
  .wm-actions > button { flex: 1 1 44%; }
}
