/* The secondary hero actions share the original button's height. */
.hero-secondary-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
}
.hero-compact-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 24px;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #d0e4f0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.hero-compact-action:hover { color: #e5faff; background: #174159; }
.hero-compact-action .icon { width: 15px; height: 15px; }
.service-video-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.service-video-dialog .modal-head { align-items: center; gap: 16px; padding: 18px 20px 14px; }
.service-video-dialog .modal-body { padding: 0 20px 20px; }
.service-video-dialog .service-video-close {
  display: inline-flex;
  gap: 6px;
  flex: none;
  width: auto;
  height: 40px;
  padding: 8px 10px;
  font-size: 12px;
}
.service-video-stage { position: relative; width: 100%; max-width: 620px; margin: 0 auto; }
.service-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  min-height: 44px;
  padding: 10px 16px;
  white-space: nowrap;
}
.service-video-play:hover { transform: translate(-50%, -50%); }
.service-video-play:disabled { opacity: .65; cursor: wait; }
.service-video-player {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(350px, 42dvh);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #061d2d;
  border-radius: 6px;
}
.service-video-note { margin-top: 12px; font-size: 11px; line-height: 1.6; color: #647a89; }
.service-video-state { margin-top: 12px; padding-left: 10px; border-left: 3px solid #21b9df; font-size: 12px; line-height: 1.6; color: #325e72; }
.service-video-connections { margin-top: 14px; }
.service-video-connections>p { margin-bottom: 8px; font-size: 12px; color: #486574; }
.service-video-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.service-video-chapter {
  min-width: 0;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #c6dbe7;
  border-radius: 5px;
  background: #f4f9fc;
  color: #2e5a70;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: left;
}
.service-video-chapter .icon { width: 20px; height: 20px; flex: none; }
.service-video-chapter>span { display: grid; gap: 3px; }
.service-video-chapter strong { font-size: 13px; font-weight: 600; }
.service-video-chapter small { font-size: 10px; opacity: .8; }
.service-video-guide { margin-top: 13px; padding: 12px 14px; background: #f4f8fb; border: 1px solid #e1eaf0; border-radius: 6px; }
.service-video-guide ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: connection-step; }
.service-video-guide li { display: grid; grid-template-columns: 19px minmax(0,1fr); gap: 7px; counter-increment: connection-step; font-size: 12px; line-height: 1.6; color: #35566a; }
.service-video-guide li:before { content: counter(connection-step); display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #dceff6; color: #176d8b; font-size: 10px; font-weight: 600; }
.service-video-guide>p { margin-top: 9px; color: #6e8594; font-size: 11px; line-height: 1.5; }
.service-video-chapter:hover { background: #e5f4f9; border-color: #21b9df; }
.service-video-chapter:focus-visible { outline: 3px solid #21b9df; outline-offset: 2px; }
.service-video-chapter[aria-current="true"] { background: #0d334a; color: #fff; border-color: #21b9df; }
.service-video-chapter:disabled { opacity: .6; cursor: wait; }
.service-video-summary { margin-top: 10px; font-size: 12px; line-height: 1.6; color: #486574; }
.service-video-summary summary { cursor: pointer; font-weight: 600; }
.service-video-summary p { margin-top: 10px; }
@media (max-width: 600px) {
  .hero-secondary-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; }
  .hero-compact-action { min-height: 32px; }
  .service-video-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .service-video-dialog .modal-head { padding: 14px 12px 12px; gap: 10px; }
  .service-video-dialog .modal-head h2 { font-size: 18px; }
  .service-video-dialog .modal-head p { font-size: 11px; }
  .service-video-dialog .modal-body { padding: 0 12px 14px; }
  .service-video-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .service-video-chapter { padding: 8px 4px; gap: 4px; flex-direction: column; text-align: center; }
  .service-video-chapter strong { font-size: 12px; }
  .service-video-chapter small { font-size: 9px; }
  .service-video-chapter .icon { width: 17px; height: 17px; }
  .service-video-guide { padding: 11px 12px; }
  .service-video-guide ol { grid-template-columns: 1fr; gap: 7px; }
  .service-video-player { max-height: none; }
}
