/* Isolated styles; never change other upload tools or their billing controls. */
.tool-card .tool-upload.qh-wm22-source-hidden { display: none !important; }
.tool-card .qh-wm22-preview[hidden] { display: none !important; }
.tool-card .qh-wm22-preview {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #b4c9ed;
  border-radius: 14px;
  background: #f5f8ff;
  color: #183456;
  text-align: left;
}
.qh-wm22-preview .qh-wm22-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.qh-wm22-preview .qh-wm22-details { flex: 1 1 180px; min-width: 0; }
.qh-wm22-preview .qh-wm22-title { display: block; font-size: 15px; line-height: 1.5; color: #103564; }
.qh-wm22-preview .qh-wm22-name { margin-top: 3px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.qh-wm22-preview .qh-wm22-meta { margin-top: 2px; font-size: 12px; line-height: 1.6; color: #526887; }
.qh-wm22-preview .qh-wm22-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qh-wm22-preview .qh-wm22-actions button {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 36px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #b8cbee;
  border-radius: 8px;
  background: #fff;
  color: #22569a;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}
.qh-wm22-preview .qh-wm22-actions button:hover { background: #eaf2ff; }
.qh-wm22-preview .qh-wm22-actions button:focus-visible { outline: 3px solid #3297ed; outline-offset: 2px; }
.qh-wm22-preview .qh-wm22-stage { overflow: hidden; border-radius: 10px; background: #09172c; }
.qh-wm22-preview .qh-wm22-video {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 160px;
  max-height: 440px;
  object-fit: contain;
  background: #09172c;
}
.qh-wm22-preview .qh-wm22-status {
  margin: 10px 0 0;
  color: #526887;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.qh-wm22-preview[data-state="error"] .qh-wm22-status { color: #9b3d16; }
@media (max-width: 520px) {
  .tool-card .qh-wm22-preview { padding: 12px; }
  .qh-wm22-preview .qh-wm22-head { gap: 10px; }
  .qh-wm22-preview .qh-wm22-actions button { min-height: 40px; }
  .qh-wm22-preview .qh-wm22-video { max-height: 380px; }
}
