/* v42-root: immutable viewing start, compact timer scale and card layout. */

.timer-progress-copy {
  min-height: 15px;
  margin-bottom: 6px;
  color: #b8bbc4;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.timer-progress-actual {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.timer-progress-actual svg {
  flex: 0 0 auto;
}

.timer-progress-empty {
  width: 1px;
  height: 1px;
}

.timer-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.09);
}

.timer-progress-track > span {
  background: #9969ed;
}

.timer-progress-track.overflow > i {
  width: 11px;
  background: #ef5359;
}

.current-customer-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
}

.current-customer-row .current-customer {
  min-width: 0;
  margin: 0;
}

.current-recording-desktop {
  flex: 0 0 auto;
  margin: 0;
}

.current-recording-mobile {
  display: none;
}

.watch-time-visibility {
  grid-template-columns: minmax(0, 1fr);
}

html[data-theme="light"] .timer-progress-copy {
  color: #686e79;
}

html[data-theme="light"] .timer-progress-track {
  background: rgba(31, 35, 45, 0.12);
}

@media (min-width: 1041px) {
  .queue-desktop-side .timer-progress-copy {
    font-size: 14px;
    line-height: 1.35;
  }
}

@media (hover: hover) and (pointer: fine) {
  .timer-progress-block[data-tooltip] {
    position: relative;
  }

  .timer-progress-block[data-tooltip]::before,
  .timer-progress-block[data-tooltip]::after {
    position: absolute;
    left: 50%;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .timer-progress-block[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    width: max-content;
    max-width: min(320px, 80vw);
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    color: #ececf0;
    background: #20222a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
  }

  .timer-progress-block[data-tooltip]::after {
    content: "";
    bottom: calc(100% + 5px);
    width: 8px;
    height: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #20222a;
    transform: translate(-50%, 4px) rotate(45deg);
  }

  .timer-progress-block[data-tooltip]:hover::before,
  .timer-progress-block[data-tooltip]:hover::after {
    opacity: 1;
  }

  .timer-progress-block[data-tooltip]:hover::before {
    transform: translate(-50%, 0);
  }

  .timer-progress-block[data-tooltip]:hover::after {
    transform: translate(-50%, 0) rotate(45deg);
  }

  html[data-theme="light"] .timer-progress-block[data-tooltip]::before,
  html[data-theme="light"] .timer-progress-block[data-tooltip]::after {
    border-color: rgba(31, 35, 45, 0.14);
    color: #30343d;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 35, 45, 0.14);
  }
}

@media (max-width: 760px) {
  .timer-progress-copy {
    font-size: 11px;
  }

  .current-customer-row {
    display: block;
  }

  .current-recording-desktop {
    display: none;
  }

  .current-recording-mobile {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timer-progress-block[data-tooltip]::before,
  .timer-progress-block[data-tooltip]::after {
    transition: none;
  }
}
