.media-launch {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.media-launch a {
  color: inherit;
}
.media-panel {
  scroll-margin-top: 16px;
}
.media-panel form {
  display: grid;
  gap: 10px;
}
.media-panel .media-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.media-panel .media-full {
  grid-column: 1/-1;
}
.media-panel [hidden] {
  display: none !important;
}
.media-panel[hidden],
#gallery [hidden] {
  display: none !important;
}
.media-preview {
  padding: 14px;
  border: 1px dashed #afbed0;
  border-radius: 16px;
  background: #f7f9fc;
  overflow-wrap: anywhere;
}
.media-preview img,
.media-preview video,
.work-review img,
.work-review video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.media-hint {
  font-size: 14px;
  color: #52647d;
}
.media-state {
  border-radius: 99px;
  background: #e9edf8;
  padding: 4px 9px;
  font-size: 13px;
}
.media-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.media-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.media-tile {
  border: 1px solid #dce3ed;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 5px 20px #16375a0a;
}
.media-tile h3 {
  margin: 10px 0;
  font-size: 20px;
}
.media-tile .tile-copy {
  padding: 16px;
  overflow-wrap: anywhere;
}
.media-cover {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8eefb, #f5e9de);
  overflow: hidden;
  padding: 20px;
  position: relative;
}
.media-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-cover:has(img) {
  padding: 0;
}
.media-quote {
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 800;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-tile button {
  width: 100%;
  border-radius: 0;
}
.media-detail {
  width: min(740px, 94vw);
  max-height: 90dvh;
  border: 0;
  border-radius: 22px;
  padding: 20px;
  color: #172033;
  overflow: auto;
}
.media-detail::backdrop {
  background: #0a1728aa;
}
.media-detail img,
.media-detail video {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
}
.media-detail pre {
  white-space: pre-wrap;
  font: inherit;
  overflow-wrap: anywhere;
}
.work-review {
  padding: 18px;
  border: 1px solid #dce3ed;
  border-radius: 18px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.work-review button {
  margin: 5px;
}
.media-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.media-panel progress {
  width: 100%;
}
.media-panel input[type="checkbox"] {
  width: auto;
}
.media-empty {
  padding: 24px;
  text-align: center;
  color: #52647d;
}
.media-detail .media-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 1;
}
.media-status-list {
  padding-left: 18px;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .media-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .media-feed,
  .media-filter,
  .media-panel .media-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .media-panel .media-full {
    grid-column: auto;
  }
  .media-detail {
    padding: 15px;
  }
  .media-cover {
    aspect-ratio: 4/3;
  }
  .media-quote {
    font-size: 25px;
  }
}
