/* Presentation only. Keep the original player, IDs, preset values and handlers.
   Mobile children retain their existing layout and quick-action placement. */
.video-compact-setup { display: contents; }
.video-compact-heading { display: none; }

@media (min-width: 821px) {
  html.video-tool .video-page > #videoAnalysis {
    display: block;
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  html.video-tool #videoAnalysis.hidden { display: none; }
  html.video-tool .video-compact-setup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 14px 18px;
    padding: 24px;
    border: 1px solid rgba(111,155,255,.25);
    border-radius: 26px;
    background: #191f38;
  }
  html.video-tool .video-compact-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 2px;
  }
  html.video-tool .video-compact-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.25;
  }
  html.video-tool .video-compact-heading .video-eyebrow { margin-bottom: 6px; }
  html.video-tool .video-compact-setup > .video-preview-card {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    min-height: 0;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: #1e2846;
    box-shadow: none;
  }
  html.video-tool .video-compact-setup #videoPreview {
    width: 100%;
    height: 210px;
    max-height: 210px;
    object-fit: contain;
    border-radius: 12px;
  }
  html.video-tool .video-compact-setup .video-preview-notice {
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: .78rem;
    line-height: 1.4;
  }
  html.video-tool .video-compact-setup > .video-info-card {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: #1e2846;
    box-shadow: none;
  }
  html.video-tool .video-compact-setup .video-info-card .video-eyebrow { font-size: .65rem; }
  html.video-tool .video-compact-setup #videoName {
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
  }
  html.video-tool .video-compact-setup .video-stats-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  html.video-tool .video-compact-setup .video-stats-primary > div {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  html.video-tool .video-compact-setup .video-stats-primary span { font-size: .7rem; }
  html.video-tool .video-compact-setup .video-stats-primary strong { font-size: .85rem; }
  html.video-tool .video-compact-setup .video-more-details {
    margin-top: 10px;
    padding: 8px 10px;
    font-size: .78rem;
  }
  html.video-tool .video-compact-setup > .video-purpose-card {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: start;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  html.video-tool .video-compact-setup .video-choice-heading { display: none; }
  html.video-tool .video-compact-setup .video-auto-wrap { gap: 6px; margin: 0 0 10px; }
  html.video-tool .video-compact-setup #videoAuto { min-height: 48px; padding: 10px 14px; }
  html.video-tool .video-compact-setup #videoAuto > small { display: none; }
  html.video-tool .video-compact-setup .video-auto-reason {
    padding: 0 2px;
    background: transparent;
    color: #aeb9d6;
    font-size: .75rem;
    line-height: 1.4;
  }
  html.video-tool .video-compact-setup .video-manual-options { margin: 0; border-radius: 18px; }
  html.video-tool .video-compact-setup .video-manual-options summary { padding: 12px 14px; font-size: .8rem; }
  html.video-tool .video-compact-setup .video-purpose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }
  html.video-tool .video-compact-setup .video-purpose {
    min-height: 94px;
    padding: 12px;
    align-content: start;
    gap: 6px;
    border-radius: 14px;
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.25;
  }
  html.video-tool .video-compact-setup .video-purpose small { font-size: .72rem; line-height: 1.4; }
  html.video-tool .video-compact-setup .video-recommendation {
    gap: 8px;
    margin: 10px 0;
    padding: 10px 12px;
    font-size: .75rem;
    line-height: 1.4;
  }
  html.video-tool .video-compact-setup .video-primary-actions {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 8px;
    margin-top: 0;
  }
  html.video-tool .video-compact-setup .video-primary-actions > .btn {
    min-width: 0;
    min-height: 46px;
    padding: 10px;
    font-size: .78rem;
  }
  html.video-tool .video-compact-setup .video-local-note { margin-top: 8px; font-size: .72rem; }
  html.video-tool #videoAnalysis > :is(.video-progress, .video-result, .video-capacity) { margin-top: 14px; }
}
