@keyframes sv-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.sv-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(9, 9, 11, 0.42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.sv-dialog {
  --sv-aspect: 1.4545;
  --sv-header-h: 52px;
  --sv-footer-h: 58px;
  --sv-chrome: 132px;
  --sv-stage-h: calc(94vh - var(--sv-chrome));
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(760px, var(--sv-stage-h) * var(--sv-aspect) + 32px, 94vw);
  max-width: 94vw;
  box-sizing: border-box;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 30px 80px rgba(9, 9, 11, 0.35), 0 4px 16px rgba(9, 9, 11, 0.12);
  transition: width 0.3s ease;
  font-size: 14px;
  line-height: 1.4;
}
.sv-dialog:fullscreen {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #0b0d12;
}
.sv-dialog:fullscreen .sv-stage {
  position: absolute;
  inset: 0;
  height: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  transition: top 0.25s ease, bottom 0.25s ease;
}
.sv-dialog:fullscreen .sv-header,
.sv-dialog:fullscreen .sv-footer {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 18px rgba(9, 9, 11, 0.3);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.sv-dialog:fullscreen .sv-header {
  top: 0;
  border-bottom: 0;
  transform: translateY(-100%);
}
.sv-dialog:fullscreen .sv-footer {
  bottom: 0;
  transform: translateY(100%);
}
.sv-dialog:fullscreen .sv-struggling {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 70px;
  z-index: 4;
}
.sv-dialog:fullscreen.sv-chrome-visible .sv-stage {
  top: var(--sv-header-h);
  bottom: var(--sv-footer-h);
}
.sv-dialog:fullscreen.sv-chrome-visible .sv-header,
.sv-dialog:fullscreen.sv-chrome-visible .sv-footer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sv-dialog:fullscreen.sv-idle {
  cursor: none;
}

.sv-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--sv-header-h);
  padding: 0 8px 0 16px;
  border-bottom: 1px solid #e4e4e7;
}

.sv-identity {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.sv-reg {
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.sv-instance {
  margin-left: 8px;
  font-weight: 500;
  color: #71717a;
}

.sv-serial {
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: #71717a;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sv-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: default;
}
.sv-state .sv-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.sv-state.sv-state-live {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
.sv-state.sv-state-live .sv-state-dot {
  animation: sv-pulse 1.6s ease-in-out infinite;
}
.sv-state.sv-state-paused {
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
}
.sv-state.sv-state-connecting, .sv-state.sv-state-ended {
  color: #71717a;
  background: #f4f4f5;
}

.sv-notice {
  font-size: 12px;
  color: #d97706;
}

.sv-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.sv-badge-wrap {
  position: relative;
}

.sv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px 0 8px;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  background: #ffffff;
  color: #09090b;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.sv-badge svg {
  width: 16px;
  height: 16px;
  color: #71717a;
}
.sv-badge:hover {
  background: #f4f4f5;
}

.sv-flyout {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 6;
  min-width: 200px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 20px 50px rgba(9, 9, 11, 0.22), 0 2px 8px rgba(9, 9, 11, 0.08);
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.sv-flyout-title {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
}

.sv-viewer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sv-viewer-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.sv-viewer-since {
  color: #71717a;
  font-variant-numeric: tabular-nums;
}

.sv-flyout-text {
  color: #09090b;
  font-variant-numeric: tabular-nums;
}

.sv-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  font-size: 14px;
  cursor: pointer;
}
.sv-close:hover {
  background: #f4f4f5;
  color: #09090b;
}

.sv-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--sv-stage-h);
  margin: 16px 16px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0b0d12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sv-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sv-canvas.sv-canvas-empty {
  display: none;
}

.sv-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sv-overlay.sv-overlay-dim {
  background: rgba(9, 9, 11, 0.55);
}

.sv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  padding: 22px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(9, 9, 11, 0.82);
  color: #f4f4f5;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.sv-card-icon {
  width: 48px;
  height: 48px;
  color: #9ca3af;
}
.sv-card-icon.sv-card-icon-amber {
  color: #fbbf24;
}

.sv-card-title {
  font-size: 15px;
  font-weight: 600;
}

.sv-card-text {
  font-size: 13px;
  line-height: 1.5;
  color: #a1a1aa;
}

.sv-dots {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.sv-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: sv-pulse 1.6s ease-in-out infinite;
}
.sv-dots span:nth-child(2) {
  animation-delay: 0.3s;
}
.sv-dots span:nth-child(3) {
  animation-delay: 0.6s;
}

.sv-struggling {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
  font-size: 13px;
}

.sv-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--sv-footer-h);
  padding: 0 14px;
}

.sv-quality-wrap {
  position: relative;
}

.sv-quality {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 32px;
  white-space: nowrap;
  padding: 0 12px 0 10px;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  background: #ffffff;
  color: #09090b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.sv-quality:hover {
  background: #f4f4f5;
}

.sv-quality-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71717a;
  box-shadow: 0 0 0 3px rgba(113, 113, 122, 0.15);
}

.sv-quality-good .sv-quality-dot {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.sv-quality-degraded .sv-quality-dot {
  background: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.sv-quality-poor .sv-quality-dot {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.sv-quality-paused .sv-quality-dot {
  background: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.sv-quality-label {
  font-weight: 600;
}

.sv-quality-detail {
  min-width: 0;
  overflow: hidden;
  color: #71717a;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}

.sv-stats {
  position: absolute;
  left: 0;
  bottom: 44px;
  z-index: 5;
  width: 380px;
  box-sizing: border-box;
  padding: 16px 18px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 20px 50px rgba(9, 9, 11, 0.22), 0 2px 8px rgba(9, 9, 11, 0.08);
  text-align: left;
}

.sv-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sv-stats-title {
  font-size: 15px;
  font-weight: 600;
}

.sv-stats-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #71717a;
}

.sv-stats-caption {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
}

.sv-spark {
  display: block;
  width: 100%;
  height: 60px;
  border-bottom: 1px solid #e4e4e7;
}
.sv-spark rect {
  fill: #a7f3d0;
}
.sv-spark .sv-spark-last {
  fill: #16a34a;
}

.sv-stats-rows {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0 12px;
  margin: 10px 0 0;
  font-size: 13px;
}
.sv-stats-rows dt,
.sv-stats-rows dd {
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid #e4e4e7;
}
.sv-stats-rows dt {
  color: #71717a;
}
.sv-stats-rows dd {
  font-variant-numeric: tabular-nums;
}

.sv-stats-foot {
  margin-top: 10px;
  font-size: 12px;
  color: #71717a;
}

.sv-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.sv-segmented {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #f4f4f5;
}
.sv-segmented button {
  height: 28px;
  padding: 0 12px;
  border: 1px solid transparent;
  white-space: nowrap;
  border-radius: 6px;
  background: transparent;
  color: #09090b;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sv-segmented button.sv-active {
  background: #28a745;
  color: #fff;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.15);
}

.sv-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  white-space: nowrap;
  padding: 0 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #ffffff;
  color: #09090b;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sv-button svg {
  width: 16px;
  height: 16px;
}
.sv-button:hover {
  background: #f4f4f5;
}
.sv-button.sv-button-inverse {
  height: 28px;
  border-color: rgba(153, 27, 27, 0.3);
  background: #fff;
  color: #991b1b;
}

.sv-dialog button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .sv-dialog,
  .sv-dialog:fullscreen .sv-stage,
  .sv-dialog:fullscreen .sv-header,
  .sv-dialog:fullscreen .sv-footer {
    transition: none;
  }
  .sv-state .sv-state-dot,
  .sv-dots span {
    animation: none;
  }
}
@media (max-width: 800px) {
  .sv-dialog {
    width: 100%;
    max-width: 100%;
  }
  .sv-serial,
  .sv-quality-detail {
    display: none;
  }
}
.sv-dialog .sv-retry {
  margin-top: 14px;
}

/*# sourceMappingURL=screenViewer.css.map */
