.cw-photo-dialog .cw-video-editor {
  display: grid;
  gap: 12px;
  padding: 6px 0 12px;
}

.cw-photo-dialog .cw-video-editor[hidden],
.cw-photo-dialog[data-media-tab="video"] :is(.cw-photo-stage, .cw-thumbnails, .cw-photo-operations, .cw-photo-edit-controls, .cw-upload-actions, .cw-file-hint, .cw-photo-description, .cw-editor-note) {
  display: none !important;
}

.cw-photo-dialog .cw-video-editor video {
  display: block;
  width: 100%;
  max-height: min(43dvh, 360px);
  border-radius: 8px;
  background: #111827;
}

.cw-photo-dialog .cw-video-editor video[hidden] { display: none; }

.cw-photo-dialog .cw-video-description,
.cw-photo-dialog .cw-video-state,
.cw-photo-dialog .cw-video-finish,
.cw-photo-dialog .cw-video-sample-status,
.cw-photo-dialog .cw-video-format {
  margin: 0;
  color: #3d506c;
  font-size: 13px;
  line-height: 1.4;
}

.cw-photo-dialog .cw-video-state {
  color: #162b48;
  font-weight: 600;
}

.cw-photo-dialog .cw-video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cw-photo-dialog .cw-video-sound {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.cw-photo-dialog .cw-video-sound[hidden],
.cw-photo-dialog .cw-video-sound [hidden] { display: none; }

.cw-photo-dialog .cw-video-sound label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #162b48;
  font-size: 14px;
  font-weight: 600;
}

.cw-photo-dialog .cw-video-sound input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #28466e;
}

.cw-photo-dialog .cw-video-sample-status {
  flex-basis: 100%;
  color: #9f262b;
}

.cw-photo-dialog .cw-video-actions button,
.cw-photo-dialog .cw-video-sample {
  padding: 8px 12px;
  border: 1px solid #cbd8ea;
  border-radius: 8px;
  background: #f4f7fb;
  color: #162b48;
  font-weight: 650;
}

.cw-photo-dialog .cw-video-actions .cw-danger {
  border-color: #efd6d8;
  background: #fff5f5;
  color: #9f262b;
}

.cw-photo-dialog .cw-video-actions button:hover:not(:disabled),
.cw-photo-dialog .cw-video-sample:hover:not(:disabled) {
  border-color: #778ca9;
}

.cw-photo-dialog .cw-video-actions button,
.cw-photo-dialog .cw-video-sample,
.cw-photo-dialog[data-media-tab] .cw-editor-tabs button {
  min-height: 44px;
}

@media (max-width: 390px) {
  .cw-photo-dialog[data-media-tab] .cw-editor-tabs button {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.team-card-actions:has(> [data-team-video]) {
  container-type: inline-size;
  flex-wrap: wrap;
}

.team-card-actions > [data-team-video] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  color: #173b57;
  background: #edf5fa;
  border-color: #d2e3ef;
  font-weight: 650;
  text-align: center;
}

.team-card-actions > [data-team-video] svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.team-card-actions > [data-team-video]:hover {
  background: #e1eef6;
  border-color: #9ebbd0;
}

.cw-photo-dialog .cw-video-actions [data-video-choose]:not(:disabled) {
  color: #fff;
  background: #234d68;
  border-color: #234d68;
}

.cw-photo-dialog .cw-video-actions [data-video-choose]:not(:disabled):hover {
  background: #173b57;
  border-color: #173b57;
}

@container (max-width: 238px) {
  .team-card-actions > [data-team-video] { flex-basis: 100%; }
}

.team-variant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}

.team-variant-label {
  flex-basis: 100%;
  color: #304a62;
  font-size: 12px;
  font-weight: 600;
}

.team-variant-actions button {
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #cadbe7;
  border-radius: 8px;
  background: #f1f7fb;
  color: #173b57;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.team-variant-actions button:focus-visible { outline: 2px solid #173b57; outline-offset: 2px; }
.team-variant-target ~ .team-card-actions :is([data-team-edit], [data-team-video]) { display: none; }
.team-variant-dialog [data-media-status]:empty { display: none; }
.team-variant-dialog [data-media-form] fieldset { display: grid; gap: 12px; padding: 0; margin: 0; border: 0; }
.team-variant-dialog [data-media-form] legend { margin: 0 0 12px; font-weight: 600; }
.team-variant-dialog .team-variant-units { display: grid; gap: 10px; }
.team-variant-dialog .team-variant-unit { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 6px 10px; }
.team-variant-dialog .team-variant-unit h3 { grid-column: 1 / -1; font-size: 13px; margin: 0; }
.team-variant-dialog .team-variant-warning { color: #89431b; font-size: 13px; margin: 0 0 12px; }
.team-variant-dialog [data-media-guard] { margin-top: 10px; }
.cw-photo-dialog .cw-media-target { color: #304a62; font-size: 13px; font-weight: 600; }

@media (max-width: 390px) {
  .team-variant-actions button { flex: 1 1 auto; }
}
