.sfs-pad-wrap {
  width: 100%;
  max-width: 620px;
  margin: 6px 0 2px;
}

.sfs-canvas {
  display: block;
  width: 100%;
  height: 190px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  cursor: crosshair;
  touch-action: none;
  box-sizing: border-box;
}

.sfs-canvas:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.sfs-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  margin-top: 8px;
  padding-bottom: 2px;
}

.sfs-clear {
  min-height: 36px;
  padding: 6px 14px;
  color: #1f2937;
  background: #f3f4f6;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  cursor: pointer;
}

.sfs-clear:hover {
  background: #e5e7eb;
}

.sfs-clear:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.sfs-status {
  font-size: 14px;
}

.sfs-status.is-uploading {
  color: #4b5563;
}

.sfs-status.is-saved {
  color: #166534;
}

.sfs-status.is-error {
  color: #b91c1c;
}

.sfs-existing {
  margin-bottom: 8px;
}

.sfs-existing span {
  display: block;
  margin-bottom: 5px;
  color: #4b5563;
  font-size: 13px;
}

.sfs-existing img {
  display: block;
  max-width: 220px;
  max-height: 90px;
  padding: 4px;
  background: #fff;
  border: 1px solid #d1d5db;
}

.sfs-editor-preview {
  min-height: 100px;
  padding: 36px 16px;
  color: #6b7280;
  text-align: center;
  background: #fff;
  border: 1px dashed #9ca3af;
}

.sfs-submit-disabled {
  cursor: wait !important;
  opacity: 0.65;
}

@media (max-width: 480px) {
  .sfs-canvas {
    height: 170px;
  }
}
