/* Clean completed-photo state: result first, controls on demand. */

.photo-workbench.is-result-state .photo-workbench__output {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(123, 249, 200, .28);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(123, 249, 200, .09), transparent 42%),
    linear-gradient(180deg, rgba(18, 53, 67, .72), rgba(10, 28, 48, .74));
  box-shadow: 0 14px 36px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255,255,255,.04);
}

.photo-workbench.is-result-state .photo-workbench__output-copy {
  min-width: 0;
}

.photo-workbench.is-result-state .photo-workbench__output-copy strong {
  display: block;
  margin-bottom: .38rem;
  color: #7bf9c8;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.25;
}

.photo-workbench.is-result-state .photo-result-metrics {
  display: block;
  margin-bottom: .2rem;
  color: #f2f6ff;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
}

.photo-workbench.is-result-state .photo-result-filename {
  display: block;
  overflow-wrap: anywhere;
  color: #9faccc;
  font-size: .74rem;
  line-height: 1.4;
}

.photo-workbench.is-result-state .photo-workbench__output-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .58rem;
  max-width: 540px;
}

.photo-workbench.is-result-state .photo-workbench__output-actions .btn {
  min-height: 44px;
  white-space: nowrap;
}

.photo-workbench.is-result-state .photo-workbench__output-actions .photo-result-workspace-link {
  flex: 0 0 100%;
  min-height: auto;
  padding: .18rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #a9b7d2;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  justify-content: flex-end;
  opacity: .82;
}

.photo-workbench.is-result-state .photo-workbench__output-actions .photo-result-workspace-link:hover,
.photo-workbench.is-result-state .photo-workbench__output-actions .photo-result-workspace-link:focus-visible {
  transform: none;
  background: transparent;
  color: #d3dcf0;
  opacity: 1;
}

.photo-workbench.is-result-state .photo-workbench__status {
  margin: .72rem 0 0;
  color: #9faccc;
  text-align: left;
}

.photo-workbench.is-result-state .photo-workbench__tabs {
  margin-top: .1rem;
}

.photo-workbench.is-result-state .photo-workbench__tabs > button {
  min-height: 64px;
  background: rgba(20, 32, 67, .38);
  box-shadow: none;
}

.photo-workbench.is-result-state .photo-workbench__tabs > button.is-active {
  border-color: rgba(111, 155, 255, .17);
  background: rgba(20, 32, 67, .38);
  box-shadow: none;
}

/* The result-state compression button already explains itself in its title. */
.photo-workbench.is-result-state [data-photo-tool="compress"] strong {
  font-size: .84rem;
  line-height: 1.12;
}

.photo-workbench.is-result-state [data-photo-tool="compress"] small {
  display: none;
}

.photo-workbench.is-result-state #options.hidden,
.photo-workbench.is-result-state #options {
  display: none !important;
}

.photo-workbench.is-result-state .photo-quick-panel.hidden {
  display: none !important;
}

.photo-workbench.is-adjusting-compression .photo-workbench__output {
  opacity: .82;
}

.photo-workbench.is-adjusting-compression .photo-workbench__status {
  color: #b9c6e3;
}

@media (max-width: 760px) {
  .photo-workbench.is-result-state .photo-workbench__output {
    grid-template-columns: 1fr;
    padding: .9rem;
  }

  .photo-workbench.is-result-state .photo-workbench__output-actions {
    justify-content: stretch;
    max-width: none;
  }

  .photo-workbench.is-result-state .photo-workbench__output-actions .btn {
    flex: 1 1 145px;
  }

  .photo-workbench.is-result-state .photo-workbench__output-actions .photo-result-workspace-link {
    flex-basis: 100%;
    justify-content: flex-start;
    padding-top: .25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-workbench.is-result-state .photo-workbench__output {
    transition: none !important;
  }
}
