/* Module-scoped styles. Prefix every class with the module id. */

.push__steps {
  display: flex;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.push__step {
  flex: 1 1 0;
  min-width: 96px;
}

.push__step-btn {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 100%;
  padding: var(--s-2) var(--s-3);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
  text-align: left;
}

.push__step-btn:disabled {
  cursor: default;
}

.push__step-btn:not(:disabled):hover {
  background: var(--surface-2);
}

.push__step-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.push__step--current .push__step-btn {
  border-color: var(--brand);
  color: var(--text);
  background: var(--brand-soft);
}

.push__step--done .push__step-btn {
  color: var(--text);
}

.push__step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  font-size: var(--fs-xs);
}

.push__step--current .push__step-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text);
}

.push__step--done .push__step-dot {
  background: var(--success);
  border-color: var(--success);
  color: var(--bg);
}

.push__panel {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-width: 0;
}

.push__panel-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
}

.push__panel-hint {
  margin: calc(var(--s-2) * -1) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.push__source-list {
  max-height: 420px;
  overflow-y: auto;
}

.push__sources {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.push__source-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.push__source {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  width: 100%;
  padding: var(--s-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.push__source:hover {
  border-color: var(--border-strong);
}

.push__source:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.push__source--selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.push__source-text {
  font-size: var(--fs-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.push__source-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: var(--fs-xs);
}

.push__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-10) var(--s-4);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  cursor: pointer;
}

.push__drop:hover,
.push__drop:focus-within {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.push__drop:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.push__drop-icon {
  color: var(--text-muted);
}

.push__drop-title {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text);
}

.push__drop-hint {
  max-width: 420px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.push__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-10) var(--s-4);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.push__crop {
  max-height: 420px;
  overflow: hidden;
  background: var(--bg);
  border-radius: var(--r-md);
}

.push__crop-img {
  display: block;
  max-width: 100%;
}

.push__crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.push__cover-done {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.push__cover-frame {
  aspect-ratio: 3 / 2;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.push__cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.push__cover-info {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.push__review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--s-5);
  align-items: start;
}

.push__facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  margin: 0;
  font-size: var(--fs-sm);
}

.push__facts dt {
  color: var(--text-muted);
}

.push__facts dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.push__content-preview {
  white-space: pre-wrap;
}

.push__done {
  align-items: center;
  text-align: center;
  padding: var(--s-10) var(--s-5);
}

.push__done-icon {
  color: var(--success);
}

.push__nav-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
}

.push__nav-row--end {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .push__review {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .push__step-label {
    display: none;
  }

  .push__step-btn {
    justify-content: center;
  }

  .push__step--current .push__step-label {
    display: inline;
  }

  .push__steps {
    flex-wrap: nowrap;
  }

  .push__step {
    min-width: 0;
  }

  .push__step--current {
    flex: 2 1 0;
  }

  .push__panel {
    padding: var(--s-4);
  }
}
