.image-opt-tool .image-opt-editor {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.image-opt-tool .image-opt-editor[hidden] {
  display: none;
}

.image-opt-tool .image-opt-settings {
  border: 1px solid var(--border, #dbe3ef);
  border-radius: 16px;
  padding: 1rem;
  background: var(--surface, #fff);
}

.image-opt-tool .image-opt-settings {
  display: grid;
  gap: 0.9rem;
}

.image-opt-tool .image-opt-settings:disabled {
  opacity: 0.58;
}

.image-opt-tool .image-opt-field {
  display: grid;
  gap: 0.4rem;
  font-weight: 650;
}

.image-opt-tool .image-opt-field select,
.image-opt-tool .image-opt-field input[type="number"] {
  min-height: 44px;
}

.image-opt-tool .image-opt-range,
.image-opt-tool .image-opt-number,
.image-opt-tool .image-opt-row-main,
.image-opt-tool .image-opt-row-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.image-opt-tool .image-opt-range input {
  flex: 1;
}

.image-opt-tool .image-opt-number input {
  min-width: 0;
  width: 100%;
}

.image-opt-tool .image-opt-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.image-opt-tool .image-opt-check input {
  margin-top: 0.2rem;
}

.image-opt-tool .image-opt-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2f7;
}

.image-opt-tool .image-opt-file-copy {
  min-width: 0;
}

.image-opt-tool .image-opt-file-name {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.image-opt-tool .image-opt-file-meta,
.image-opt-tool .image-opt-file-result {
  margin: 0.2rem 0 0;
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
}

.image-opt-tool .image-opt-status-error {
  color: #b42318;
}

.image-opt-tool .image-opt-status-success {
  color: #067647;
}

.image-opt-tool button:focus-visible,
.image-opt-tool input:focus-visible,
.image-opt-tool select:focus-visible,
.image-opt-tool [role="button"]:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.image-opt-tool .image-opt-guide h2:not(:first-child) {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .image-opt-tool .image-opt-row-actions {
    justify-content: flex-start;
  }
}
