.transit-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 27, 73, 0.98), rgba(13, 44, 103, 0.92)),
    var(--navy);
}

.transit-hero::before {
  position: absolute;
  inset: auto -12% -24% 34%;
  height: 55%;
  content: "";
  background: rgba(245, 155, 25, 0.16);
  transform: skewY(-8deg);
}

.transit-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.82fr);
  gap: 48px;
  align-items: center;
  min-height: 720px;
  padding: 78px 0 96px;
}

.transit-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--white);
  font-size: 3.325rem;
  font-weight: 900;
  line-height: 1.03;
}

.transit-hero-copy p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.transit-hero-visual {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.transit-hero-visual img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.3));
}

.transit-hero-points {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 28px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  list-style: none;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.transit-hero-points li {
  display: flex;
  align-items: center;
  color: #fff;
}

.transit-hero-points li::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 210, 4, 0.7);
}

.transit-playback-button {
  position: absolute;
  z-index: 2;
  width: 87px;
  height: 87px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.transit-playback-button--bus {
  left: 31%;
  top: 63%;
}

.transit-playback-button--train {
  left: 76%;
  top: 63%;
}

.transit-playback-button__icon {
  width: 69px;
  height: 69px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent url("/images/layout/angeltrax-playback-button-gold.png") center / 350% auto no-repeat;
  box-shadow: 0 0 28px rgba(255, 210, 4, 0.42), 0 14px 34px rgba(0, 0, 0, 0.52);
  transition: filter 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.transit-playback-button:hover .transit-playback-button__icon {
  filter: brightness(1.12) saturate(1.08);
  box-shadow: 0 0 36px rgba(255, 210, 4, 0.62), 0 10px 24px rgba(0, 0, 0, 0.48);
  transform: scale(1.08);
}

.rail-nine-channel .sync-video-modal__dialog:not(.is-single-view) {
  width: min(1200px, 94vw, 90vh);
}

.rail-nine-channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.rail-nine-channel .sync-video-frame--empty {
  display: grid;
  place-items: center;
  min-height: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 210, 4, 0.04)),
    #111113;
}

.rail-nine-channel .sync-video-placeholder {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transit-playback-button:focus-visible {
  outline: 3px solid #ffd27c;
  outline-offset: 2px;
}

.transit-proof-band {
  color: var(--white);
  background: var(--navy);
  border-top: 4px solid var(--orange);
}

.transit-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.transit-proof-grid div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 18px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.transit-proof-grid div:first-child {
  border-left: 0;
}

.transit-proof-grid strong {
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.transit-proof-grid span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.outcomes-section,
.proof-section {
  background: var(--soft);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.outcome-grid article {
  min-height: 312px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(8, 28, 72, 0.06);
}

.outcome-grid h3,
.testimonial-grid h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.16;
}

.outcome-grid p,
.testimonial-grid p {
  color: var(--muted);
}

.outcome-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-weight: 900;
}

.outcome-icon.amber {
  background: var(--orange);
}

.outcome-icon.green {
  background: var(--green);
}

.outcome-icon.blue {
  background: var(--blue);
}

.transit-platform-section,
.software-section {
  background: var(--white);
}

.transit-platform-layout,
.wireless-layout,
.software-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}

.transit-platform-media,
.software-media {
  min-height: 480px;
  position: relative;
  display: grid;
  align-items: center;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(244, 247, 251, 0.94), rgba(255, 255, 255, 0.82)),
    var(--soft);
  box-shadow: var(--shadow);
}

.recorders-img {
  width: 82%;
  justify-self: end;
  filter: drop-shadow(0 18px 22px rgba(6, 27, 73, 0.16));
}

.cameras-img {
  width: 76%;
  position: absolute;
  left: 22px;
  bottom: 24px;
  filter: drop-shadow(0 14px 20px rgba(6, 27, 73, 0.14));
}

.wireless-section {
  color: var(--white);
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 68%, #173f83 100%);
}

.wireless-section h2,
.wireless-section p {
  color: var(--white);
}

.wireless-section p {
  color: rgba(255, 255, 255, 0.8);
}

.wireless-board {
  min-height: 420px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

body.theme-black main .transit-platform-section .transit-platform-media,
body.theme-black main .software-section .software-media,
body.theme-black main .wireless-section .wireless-board {
  background: #050505;
}

body.theme-black main .wireless-section .wireless-grid strong {
  color: var(--white);
}

body.theme-black main .wireless-section .wireless-grid span {
  color: var(--dark-copy);
}

.wireless-node.main {
  min-height: 84px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 900;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.wireless-line {
  width: 3px;
  height: 42px;
  margin: 0 auto;
  background: var(--orange);
}

.wireless-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wireless-grid div {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.wireless-grid strong,
.software-list strong {
  color: var(--navy);
  line-height: 1.16;
}

.wireless-grid span,
.software-list span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.software-media img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(6, 27, 73, 0.16));
}

.software-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.software-list div {
  min-height: 94px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(8, 28, 72, 0.06);
}

.software-list strong,
.software-list span {
  display: block;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-grid article {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(8, 28, 72, 0.08);
}

.testimonial-grid article::before {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  content: "Customer proof";
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.testimonial-grid strong {
  display: block;
  color: var(--navy);
  line-height: 1.16;
}

.testimonial-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.transit-cta {
  background: var(--white);
}

body.sync-video-modal-open {
  overflow: hidden;
}

.sync-video-modal[hidden] {
  display: none;
}

.sync-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 4vh 3vw;
}

.sync-video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(5px);
}

.sync-video-modal__dialog {
  position: relative;
  width: min(1200px, 94vw);
  height: 92vh;
  height: 92dvh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(255, 210, 4, 0.58);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #18181b 0%, #050505 72%);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 210, 4, 0.14),
    0 0 44px rgba(255, 210, 4, 0.13);
}

.sync-video-modal__dialog:not(.is-single-view) {
  width: min(1200px, 94vw, 90vh);
  width: min(1200px, 94vw, 90dvh);
  overflow-y: auto;
}

.sync-video-modal__dialog:fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  border: 0;
  border-radius: 0;
}

.sync-video-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 16px;
}

.sync-video-modal__header h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.sync-video-modal__brand img {
  width: clamp(150px, 16vw, 190px);
  height: auto;
  display: block;
}

.sync-video-modal__header p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.sync-video-modal__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  margin: 0 24px 14px;
  color: #ededed;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #303034;
  background: #151517;
}

.sync-video-modal__status.is-error {
  color: #ffe0a8;
  background: rgba(245, 155, 25, 0.12);
}

.sync-video-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: sync-video-spin 0.8s linear infinite;
}

@keyframes sync-video-spin {
  to { transform: rotate(360deg); }
}

.sync-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  padding: 0 24px;
  overflow-y: auto;
}

.sync-video-grid:not(.is-single-view) {
  flex: 0 0 auto;
  grid-template-rows: repeat(2, auto);
  overflow: visible;
}

.sync-view-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 24px 14px;
}

.sync-view-selector__label {
  margin-right: 2px;
  color: #c9c9cc;
  font-size: 0.84rem;
  font-weight: 800;
}

.sync-view-button {
  min-height: 36px;
  padding: 7px 12px;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  border: 1px solid #444449;
  border-radius: 5px;
  background: #1b1b1e;
  cursor: pointer;
}

.sync-view-button:hover,
.sync-view-button:focus-visible {
  border-color: var(--orange);
}

.sync-view-button:focus-visible {
  outline: 3px solid #ffd27c;
  outline-offset: 2px;
}

.sync-view-button.is-active,
.sync-view-button[aria-pressed="true"] {
  color: #050505;
  border-color: #ffd204;
  background: #ffd204;
  box-shadow: 0 0 18px rgba(255, 210, 4, 0.24);
}

.sync-view-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.sync-video-grid.is-single-view {
  grid-template-columns: 1fr;
}

.sync-video-grid.is-single-view .sync-video-panel {
  width: 100%;
}

.sync-video-grid.is-single-view .sync-video-frame {
  min-height: min(58vh, 620px);
  cursor: zoom-out;
}

.sync-video-panel {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #353539;
  border-radius: 6px;
  background: #050505;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.sync-video-grid:not(.is-single-view) .sync-video-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.sync-video-panel[hidden] {
  display: none !important;
}

.sync-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.sync-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.sync-video-grid:not(.is-single-view) .sync-video-frame {
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
}

.sync-video-grid:not(.is-single-view) .sync-video-panel figcaption {
  display: none;
}

.sync-video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  color: #fff0d3;
  text-align: center;
  background: #261515;
}

.sync-video-error[hidden] {
  display: none;
}

.sync-video-placeholder {
  margin: 0;
  padding: 20px;
  color: #9cabc6;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.sync-video-frame--empty {
  cursor: default !important;
  background: #101012;
}

.sync-video-panel figcaption {
  padding: 7px 11px;
  color: #ededed;
  font-size: 0.82rem;
  font-weight: 800;
  border-top: 1px solid #2e2e32;
  background: #151517;
}

.sync-video-controls {
  display: grid;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255, 210, 4, 0.32);
  background: #0b0b0d;
}

.sync-video-controls__buttons,
.sync-video-controls__options,
.sync-video-timeline {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sync-video-controls__buttons {
  flex-wrap: wrap;
}

.sync-video-controls__options {
  flex-wrap: wrap;
}

.sync-video-controls__options > label {
  color: #c9c9cc;
  font-size: 0.84rem;
  font-weight: 800;
}

.sync-video-audio-note {
  margin: 0;
  padding: 10px 12px;
  color: #dedee1;
  font-size: 0.82rem;
  line-height: 1.45;
  border-left: 3px solid #ffd204;
  border-radius: 4px;
  background: #161618;
}

.sync-video-audio-note strong {
  color: #ffd204;
}

.sync-control,
.sync-select {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--white);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  border: 1px solid #444449;
  border-radius: 5px;
  background: #1b1b1e;
  cursor: pointer;
}

.sync-control svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.sync-control--primary {
  color: #050505;
  border-color: #ffd204;
  background: #ffd204;
  box-shadow: 0 0 18px rgba(255, 210, 4, 0.2);
}

.sync-snapshot-control {
  color: #ffd204;
  border-color: rgba(255, 210, 4, 0.62);
}

.sync-view-selector .sync-snapshot-control {
  min-height: 36px;
  margin-left: 4px;
  padding: 7px 12px;
}

.sync-snapshot-toolbar {
  justify-content: flex-end;
}

.sync-control:hover:not(:disabled),
.sync-select:hover:not(:disabled) {
  border-color: #ffd204;
  background: #252529;
}

.sync-control:focus-visible,
.sync-select:focus-visible,
.sync-video-timeline input:focus-visible {
  outline: 3px solid #ffd27c;
  outline-offset: 3px;
}

.sync-control:disabled,
.sync-select:disabled,
.sync-video-timeline input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.sync-control[data-sync-mute][aria-pressed="true"] {
  color: #050505;
  border-color: #ffd204;
  background: #ffd204;
}

.sync-video-modal__close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
}

.sync-video-modal__close svg {
  width: 24px;
  height: 24px;
}

.sync-video-timeline span {
  min-width: 42px;
  color: #ededed;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  text-align: center;
}

.sync-video-timeline input {
  width: 100%;
  accent-color: var(--orange);
  cursor: pointer;
}

.sync-select {
  color-scheme: dark;
  padding-right: 26px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1080px) {
  .transit-hero-inner,
  .transit-platform-layout,
  .wireless-layout,
  .software-layout {
    grid-template-columns: 1fr;
  }

  .transit-hero-copy h1 {
    font-size: 2.8rem;
  }

  .transit-proof-grid,
  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transit-proof-grid div:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .transit-hero-inner {
    min-height: auto;
    padding: 56px 0 66px;
  }

  .transit-hero-copy h1 {
    font-size: 2.1rem;
  }

  .transit-hero-visual {
    min-height: 360px;
    padding: 18px;
  }

  .transit-playback-button {
    width: 69px;
    height: 69px;
  }

  .transit-playback-button--bus {
    left: 30%;
    top: 64%;
  }

  .transit-playback-button--train {
    left: 76%;
    top: 64%;
  }

  .transit-playback-button__icon {
    width: 56px;
    height: 56px;
    font-size: 1.55rem;
  }

  .transit-hero-points {
    top: 18px;
    left: 18px;
    gap: 9px;
  }

  .transit-proof-grid,
  .outcome-grid,
  .wireless-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .transit-proof-grid div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .transit-proof-grid div:first-child {
    border-top: 0;
  }

  .transit-platform-media,
  .software-media {
    min-height: 380px;
  }

  .sync-video-modal {
    padding: 3vh 3vw;
  }

  .sync-video-modal__header {
    padding: 16px;
  }

  .sync-video-modal__header p {
    font-size: 0.88rem;
  }

  .sync-video-modal__status {
    margin: 0 16px 12px;
  }

  .sync-view-selector {
    margin: 0 16px 12px;
  }

  .sync-video-grid.is-single-view {
    grid-template-columns: 1fr;
  }

  .sync-video-grid {
    padding-inline: 16px;
  }

  .sync-video-grid.is-single-view .sync-video-frame {
    min-height: 0;
  }

  .sync-video-controls {
    padding: 14px 16px 16px;
  }

  .sync-video-controls__buttons .sync-control {
    width: auto;
    flex: 1 1 110px;
  }

  .sync-video-controls__options .sync-control {
    width: auto;
  }
}

/* Recommended transit camera configuration */
.transit-config-trigger {
  font: inherit;
  cursor: pointer;
}

.transit-video-config-action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.transit-config-modal .transit-config-modal__dialog,
.transit-config-modal .transit-config-modal__dialog:not(.is-single-view) {
  width: min(1480px, 96vw);
  height: auto;
  max-height: 94vh;
  max-height: 94dvh;
  overflow-y: auto;
}

.transit-config-modal__header {
  position: sticky;
  z-index: 5;
  top: 0;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(12px);
}

.transit-config-modal__header .eyebrow,
.transit-config-intro .eyebrow {
  margin: 0 0 6px;
  color: var(--orange);
}

.transit-config-modal__body {
  padding: 4px 24px 28px;
}

.transit-config-panel {
  display: grid;
  gap: 18px;
}

.transit-config-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.transit-config-intro h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.transit-config-intro p:not(.eyebrow) {
  max-width: 850px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.transit-config-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  gap: 8px;
  margin: 0;
}

.transit-config-counts div {
  min-width: 104px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #111114;
}

.transit-config-counts dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.transit-config-counts dd {
  margin: 2px 0 0;
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 900;
}

.transit-config-toolbar {
  display: grid;
  grid-template-columns: auto minmax(300px, 430px) minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
}

.transit-config-toolbar label {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
}

.transit-config-toolbar select {
  min-height: 44px;
  width: 100%;
  padding: 9px 38px 9px 12px;
  color: var(--white);
  font: inherit;
  border: 1px solid rgba(255, 210, 4, 0.58);
  border-radius: 6px;
  background: #111114;
}

.transit-config-toolbar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.transit-config-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1730 / 581;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background:
    radial-gradient(circle at center, rgba(27, 116, 255, 0.12), transparent 60%),
    linear-gradient(145deg, #151517, #08080a);
}

.transit-config-stage svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.transit-coverage {
  fill: rgba(33, 126, 255, 0.24);
  stroke: #46a0ff;
  stroke-width: 4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, stroke-width 180ms ease;
}

.transit-coverage--directional {
  fill: rgba(33, 126, 255, 0.2);
  stroke: #2f8cff;
}

.transit-coverage--exterior {
  fill: url(#transit-exterior-fill-fade);
  stroke: none;
}

.transit-exterior-fade__start {
  stop-color: var(--orange);
  stop-opacity: 0.48;
}

.transit-exterior-fade__middle {
  stop-color: var(--orange);
  stop-opacity: 0.48;
}

.transit-exterior-fade__end {
  stop-color: var(--orange);
  stop-opacity: 0;
}

.transit-exterior-line-fade__start {
  stop-color: var(--orange);
  stop-opacity: 1;
}

.transit-exterior-line-fade__middle {
  stop-color: var(--orange);
  stop-opacity: 1;
}

.transit-exterior-line-fade__end {
  stop-color: var(--orange);
  stop-opacity: 0;
}

.transit-exterior-edge {
  fill: none;
  stroke: url(#transit-exterior-line-fade);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, stroke-width 180ms ease;
}

.transit-exterior-edge.is-visible {
  opacity: 1;
}

.transit-exterior-edge.is-selected {
  stroke-width: 6;
}

.transit-coverage.is-visible {
  opacity: 0.55;
}

.transit-coverage.is-selected {
  opacity: 0.82;
  stroke-width: 6;
}

.transit-coverage-true {
  fill: rgba(255, 45, 45, 0.12);
  stroke: #ff4141;
  stroke-width: 4;
  stroke-dasharray: 11 7;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.transit-coverage-true.is-visible {
  opacity: 0.84;
}

.transit-camera-markers g {
  color: #2f8cff;
  cursor: ew-resize;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity 180ms ease, filter 160ms ease;
}

.transit-camera-markers g.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.transit-camera-markers g.is-selected,
.transit-camera-markers g.is-dragging {
  filter: drop-shadow(0 0 8px currentColor);
}

.transit-camera-markers g.is-dragging {
  cursor: grabbing;
}

.transit-camera-markers circle {
  fill: #090a0b;
  stroke: currentColor;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.transit-camera-markers text {
  fill: #fff;
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  user-select: none;
}

.transit-camera-markers .transit-camera-marker--exterior {
  color: var(--orange);
}

.transit-camera-hover-preview {
  position: fixed;
  top: auto;
  right: 16px;
  bottom: auto;
  z-index: 1200;
  width: min(620px, calc(100vw - 32px));
  max-height: var(--transit-preview-max-height, 42vh);
  overflow: hidden;
  border: 2px solid var(--orange);
  border-radius: 12px;
  background: #08090c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 210, 4, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: center right;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.transit-camera-hover-preview--top {
  top: 16px;
  transform-origin: top right;
}

.transit-camera-hover-preview--bottom {
  bottom: 16px;
  transform-origin: bottom right;
}

.transit-camera-hover-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.transit-camera-hover-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(var(--transit-preview-max-height, 42vh) - 52px);
  object-fit: contain;
  background: #000;
}

.transit-camera-hover-preview p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 18px;
  margin: 0;
  padding: 10px 14px 11px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.transit-camera-hover-preview strong {
  color: #fff;
}

.transit-config-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.transit-config-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.transit-config-legend__swatch {
  display: inline-block;
  width: 22px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 20%, transparent);
}

.transit-config-legend__swatch--blue {
  color: #46a0ff;
}

.transit-config-legend__swatch--yellow {
  color: var(--orange);
}

.transit-config-legend__swatch--red {
  color: #ff4141;
}

.transit-config-detail {
  margin: 0;
  padding: 13px 15px;
  color: rgba(255, 255, 255, 0.76);
  border-left: 4px solid #2f8cff;
  background: rgba(255, 255, 255, 0.045);
}

.transit-config-detail strong {
  color: var(--white);
}

@media (max-width: 900px) {
  .transit-config-intro {
    grid-template-columns: 1fr;
  }

  .transit-config-counts {
    justify-self: stretch;
  }

  .transit-config-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .transit-config-toolbar p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .transit-config-modal__body {
    padding: 4px 14px 20px;
  }

  .transit-config-modal__header {
    padding-inline: 14px;
  }

  .transit-config-intro {
    gap: 16px;
  }

  .transit-config-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .transit-config-counts div {
    min-width: 0;
    padding-inline: 8px;
  }

  .transit-config-toolbar {
    grid-template-columns: 1fr;
  }

  .transit-config-toolbar p {
    grid-column: auto;
  }

  .transit-config-stage {
    min-height: 260px;
    aspect-ratio: auto;
  }

  .transit-video-config-action .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transit-coverage,
  .transit-coverage-true,
  .transit-exterior-edge,
  .transit-camera-markers g {
    transition: none;
  }
}

@media (min-width: 721px) {
  .sync-video-modal__dialog:not(.is-single-view) .sync-video-controls {
    grid-template-columns: auto minmax(200px, 1fr) auto;
    align-items: center;
    gap: 7px 12px;
    padding: 8px 18px 10px;
  }

  .sync-video-modal__dialog:not(.is-single-view) .sync-video-controls__buttons,
  .sync-video-modal__dialog:not(.is-single-view) .sync-video-controls__options {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .sync-video-modal__dialog:not(.is-single-view) .sync-control,
  .sync-video-modal__dialog:not(.is-single-view) .sync-select {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  .sync-video-modal__dialog:not(.is-single-view) .sync-control svg {
    width: 14px;
    height: 14px;
  }

  .sync-video-modal__dialog:not(.is-single-view) .sync-video-timeline {
    min-width: 200px;
    gap: 6px;
  }

  .sync-video-modal__dialog:not(.is-single-view) .sync-video-audio-note {
    grid-column: 1 / -1;
    padding: 4px 8px;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .sync-video-modal__dialog.is-single-view {
    width: min(1200px, 94vw, calc(170vh - 426px));
    max-height: 96vh;
  }

  .sync-video-modal__dialog.is-single-view .sync-video-modal__header {
    padding: 14px 18px 10px;
  }

  .sync-video-modal__dialog.is-single-view .sync-video-modal__header p {
    margin-top: 4px;
    font-size: 0.84rem;
  }

  .sync-video-modal__dialog.is-single-view .sync-view-selector {
    margin: 0 18px 8px;
  }

  .sync-video-modal__dialog.is-single-view .sync-video-grid {
    flex: 0 1 auto;
    min-height: 0;
    grid-template-rows: auto;
    padding: 0 18px;
  }

  .sync-video-modal__dialog.is-single-view .sync-video-panel {
    height: auto;
    display: block;
  }

  .sync-video-modal__dialog.is-single-view .sync-video-frame {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .sync-video-modal__dialog.is-single-view .sync-video-controls {
    grid-template-columns: auto minmax(240px, 1fr) auto;
    align-items: center;
    gap: 7px 12px;
    padding: 8px 18px 10px;
  }

  .sync-video-modal__dialog.is-single-view .sync-video-controls__buttons,
  .sync-video-modal__dialog.is-single-view .sync-video-controls__options {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .sync-video-modal__dialog.is-single-view .sync-control,
  .sync-video-modal__dialog.is-single-view .sync-select {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  .sync-video-modal__dialog.is-single-view .sync-control svg {
    width: 14px;
    height: 14px;
  }

  .sync-video-modal__dialog.is-single-view .sync-video-timeline {
    min-width: 240px;
    gap: 6px;
  }

  .sync-video-modal__dialog.is-single-view .sync-video-audio-note {
    grid-column: 1 / -1;
    padding: 4px 8px;
    font-size: 0.7rem;
    line-height: 1.25;
  }
}

/* Keep every player element inside the browser viewport in fullscreen mode. */
.sync-video-modal__dialog:fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  overflow: hidden;
}

.sync-video-modal__dialog:fullscreen .sync-video-modal__header,
.sync-video-modal__dialog:fullscreen .sync-video-modal__status,
.sync-video-modal__dialog:fullscreen .sync-view-selector,
.sync-video-modal__dialog:fullscreen .sync-video-controls {
  flex: 0 0 auto;
}

.sync-video-modal__dialog:fullscreen .sync-video-grid {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.sync-video-modal__dialog:fullscreen:not(.is-single-view) .sync-video-grid {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.sync-video-modal__dialog:fullscreen:not(.is-single-view) .sync-video-panel {
  min-height: 0;
  height: 100%;
}

.sync-video-modal__dialog:fullscreen:not(.is-single-view) .sync-video-frame {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}

.sync-video-modal__dialog:fullscreen.is-single-view .sync-video-grid {
  grid-template-rows: minmax(0, 1fr);
}

.sync-video-modal__dialog:fullscreen.is-single-view .sync-video-panel,
.sync-video-modal__dialog:fullscreen.is-single-view .sync-video-frame {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}

.sync-video-modal__dialog.is-single-channel .sync-video-frame {
  cursor: zoom-in;
}

.sync-video-modal__dialog:fullscreen.is-single-channel .sync-video-frame {
  cursor: zoom-out;
}

/* Match the established nine-channel player: three columns by three rows. */
.rail-nine-channel .sync-video-modal__dialog:not(.is-single-view) {
  width: min(1500px, 96vw);
  height: 94vh;
  height: 94dvh;
  max-height: 94vh;
  max-height: 94dvh;
  overflow: hidden;
}

.rail-nine-channel .rail-nine-channel-grid:not(.is-single-view) {
  flex: 1 1 0;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.rail-nine-channel .rail-nine-channel-grid:not(.is-single-view) .sync-video-panel,
.rail-nine-channel .rail-nine-channel-grid:not(.is-single-view) .sync-video-frame {
  min-height: 0;
  height: 100%;
}

.rail-nine-channel .rail-nine-channel-grid:not(.is-single-view) .sync-video-frame {
  aspect-ratio: auto;
}

.rail-nine-channel .sync-video-modal__header {
  padding: 12px 18px 8px;
}

.rail-nine-channel .sync-video-modal__header p {
  margin-top: 3px;
  font-size: 0.78rem;
}

.rail-nine-channel .sync-view-selector {
  margin: 0 18px 8px;
}

.rail-nine-channel .sync-view-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.rail-nine-channel .sync-video-modal__dialog:fullscreen:not(.is-single-view) .rail-nine-channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .rail-nine-channel .sync-video-modal__dialog:not(.is-single-view) {
    width: 98vw;
    height: 94dvh;
  }

  .rail-nine-channel .rail-nine-channel-grid:not(.is-single-view) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding-inline: 8px;
  }
}
