/* Image prep. Site design system throughout; only the drop zone, the
   controls row and the per photo cards are new. */

.ip-drop {
  margin-block: var(--s-6) var(--s-5);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  background: var(--bg-1);
  border: 2px dashed var(--line-control);
  border-radius: var(--r-card);
}

.ip-drop--over {
  background: var(--bg-2);
  border-color: var(--accent);
}

.ip-drop__text {
  max-width: none;
  margin-block-end: var(--s-4);
  color: var(--text-1);
}

/* The real input is clipped, not removed, so it still takes focus and the
   ring lands on the label the visitor can actually see. */
.ip-drop__button {
  cursor: pointer;
}

.ip-drop__input:focus-visible + .ip-drop__button {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.ip-drop__formats {
  max-width: none;
  margin-block-start: var(--s-3);
  color: var(--text-2);
  font-size: var(--t-sm);
}

/* --------------------------------------------------------- the controls */

.ip-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
  margin-block-end: var(--s-5);
  padding: var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.ip-controls__legend {
  float: left;
  width: 100%;
  margin: 0;
  padding: 0 0 var(--s-3);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
}

.ip-presets {
  margin: 0;
  padding: 0;
  border: 0;
}

.ip-presets .c-check {
  clear: both;
}

.ip-presets .c-check + .c-check {
  margin-block-start: var(--s-3);
}

.ip-quality .c-field {
  clear: both;
}

.ip-quality__value {
  font-family: var(--font-mono);
  color: var(--accent);
}

.ip-quality__slider {
  width: 100%;
  min-height: 44px;
  accent-color: var(--accent);
}

.ip-quality .c-check {
  margin-block-start: var(--s-4);
}

/* ---------------------------------------------------------- the results */

.ip-status:empty,
.ip-results:empty {
  display: none;
}

.ip-status {
  margin-block-end: var(--s-4);
  color: var(--text-2);
  font-size: var(--t-sm);
}

.ip-file {
  margin-block-end: var(--s-5);
  padding: var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.ip-file__head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}

.ip-file__thumb {
  flex: 0 0 auto;
  width: 72px;
  min-height: 1px;
}

.ip-file__thumb img {
  display: block;
  width: 72px;
  height: auto;
  border-radius: var(--r-control);
}

.ip-file__words {
  min-width: 0;
  flex: 1 1 auto;
}

.ip-file__name {
  color: var(--text-1);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ip-file__meta {
  margin-block-start: var(--s-1);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--t-sm);
}

.ip-file__note:empty {
  display: none;
}

.ip-file__note {
  margin-block-start: var(--s-3);
  color: var(--text-2);
  font-size: var(--t-sm);
}

.ip-file__note--bad {
  color: var(--fail);
}

.ip-table {
  margin-block-start: var(--s-4);
}

.ip-table td,
.ip-table tbody th {
  white-space: nowrap;
  vertical-align: middle;
}

.ip-table tbody th {
  text-align: left;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-weight: 500;
}

.ip-file .c-table-wrap {
  margin-block-start: var(--s-4);
  background: var(--bg-0);
}

/* ------------------------------------------------------------ the total */

.ip-total {
  margin-block: var(--s-5);
  padding: var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-card);
}

.ip-total__line {
  font-size: var(--t-lg);
  color: var(--text-1);
}

.ip-total__note {
  margin-block-start: var(--s-2);
  color: var(--text-2);
  font-size: var(--t-sm);
}

.ip-total__actions {
  margin-block-start: var(--s-4);
}

.ip-privacy {
  margin-block: var(--s-5);
  color: var(--text-1);
  font-weight: 600;
}

@media (max-width: 480px) {
  .ip-file__head {
    flex-wrap: wrap;
  }
}
