:root {
  --error: #d1425f;
}

.subtitle {
  color: var(--pico-muted-color);
  margin-top: 0;
}

.results {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.results figure {
  flex: 1 1 260px;
  margin: 0;
}

.results img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--pico-muted-border-color);
  background: #fff;
}

.download-link {
  display: inline-block;
  margin-top: 0.5rem;
}

.error {
  color: var(--error);
}

.refine {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 12px;
}

.refine h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.undo-button {
  margin-bottom: 0.75rem;
}

.modifier-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

.modifier-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0;
  font-weight: normal;
}

.modifier-option input[type="checkbox"] {
  margin: 0;
}

/* htmx's own indicator convention: elements with this class are hidden
   until an in-flight request references them via hx-indicator. */
.htmx-indicator {
  opacity: 0;
  transition: opacity 150ms ease-in;
}
.htmx-request.htmx-indicator,
.htmx-request .htmx-indicator {
  opacity: 1;
}

[x-cloak] {
  display: none !important;
}
