#tools .section-top h1 { flex: 1; min-width: 0; }
.tools-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  min-height: 32px;
  color: var(--home-accent, #7043d7);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 5px;
}
.tools-video-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.tools-video-link svg { width: 17px; height: 17px; }
.video-intro-dialog {
  width: min(920px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 18px;
  border: 1px solid var(--line, #dce5ee);
  border-radius: 14px;
  color: var(--ink, #1d2948);
  background: #fff;
  overflow: auto;
}
.video-intro-dialog::backdrop { background: #142039b8; }
.video-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.video-dialog-header h2 { margin: 0; font-size: 20px; }
.video-dialog-close { min-width: 44px; min-height: 44px; border-radius: 6px; background: #f0edf9; color: #5730b0; }
.video-intro-dialog.portrait-video { width: min(520px, calc(100vw - 24px)); }
.video-intro-dialog video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 190px); background: #000; object-fit: contain; }
.video-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; }
.video-dialog-footer p { color: var(--muted, #526073); }
.video-direct-link { margin-left: auto; color: var(--home-accent, #7043d7); white-space: nowrap; }
@media (max-width: 560px) {
  .tools-video-link { gap: 4px; font-size: 12px; }
  #tools .section-top { gap: 9px; }
  .video-intro-dialog { padding: 12px; }
  .video-dialog-header h2 { font-size: 17px; }
  .video-dialog-footer { flex-wrap: wrap; }
}
