:root {
  --bottom-bar-h: 54px;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(32, 32, 32);
  font-family: "Lucida Grande";
  font-size: 13px;
  overflow: hidden;
}

#topmenu {
  display: flex;
  width: 100%;
  height: 26px;
  background: linear-gradient(to bottom, rgb(51, 51, 51), rgb(25, 25, 25));
  color: white;
  border-bottom: 1px solid rgb(95, 95, 95);
}

#topmenu div {
  flex: 1;
  height: 26px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
}

#topmenu .selected {
  background: rgb(52, 84, 122);
}

#sourcelist,
#destinationlist {
  height: calc(100% - 27px);
  overflow-y: auto;
}

.source,
.destination {
  vertical-align: middle;
  box-sizing: border-box;
  height: 44px;
  padding: 4px 8px;
  line-height: 18px;
  border-bottom: 1px solid rgb(95, 95, 95);
  color: white;
}

.source.selected {
  background-color: rgb(36, 64, 100);
}

.source div,
.destination div {
  height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gray {
  color: rgb(153, 153, 153);
  font-size: 12px;
}

#layout {
  display: flex;
  height: calc(100% - var(--bottom-bar-h));
  width: 100%;
  overflow: hidden;
}

#left {
  width: 200px;
  height: 100%;
  border-right: 1px solid rgb(27, 27, 27);
  background-color: rgb(44, 44, 44);
  overflow-y: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease, width 0.3s ease;
  transform-origin: left;
}

#left.hidden {
  transform: translateX(-200px);
  width: 0;
}

#main {
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
  height: 100%;
  box-sizing: border-box;
  font-size: 0;
  padding: 10px 0 0 10px;
  transition: padding-left 0.3s ease;
}

body.menu-hidden #main {
  padding-left: 10px;
}

#viewers-container {
  height: calc(100% - 8px);
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
}

#viewers {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(
    var(--columns, 4),
    var(--viewer-cell-width, 200px)
  );
  grid-template-rows: repeat(
    var(--rows, 4),
    calc((var(--viewer-cell-width, 200px) * 9 / 16) + 25px)
  );
  gap: 8px;
  justify-content: center;
  align-content: center;
  box-sizing: border-box;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  padding-right: 10px;
}

.viewerwrap {
  margin-left: 5px;
  margin-right: 5px;
  width: var(--viewer-cell-width, 200px);
  min-width: 200px;
  max-width: 100vw;
  height: calc((var(--viewer-cell-width, 200px) * 9 / 16) + 25px);
  min-height: calc(200px * 9 / 16 + 25px);
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
  border: 2px solid rgb(32, 32, 32);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.viewerwrap.selected {
  border-color: rgb(24, 89, 251);
  box-shadow: 0 0 10px rgba(24, 89, 251, 0.5);
}

.viewerwrap.recording {
  border-color: rgb(232, 37, 25);
}

.viewerwrap.selected.recording {
  border-color: rgb(232, 37, 25);
  box-shadow: 0 0 12px rgba(232, 37, 25, 0.6);
  position: relative;
}

.viewerwrap.selected.recording::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: rgb(24, 89, 251);
  z-index: 10;
  border-radius: 5px 5px 0 0;
}

@keyframes pulse-blue {
  0% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
  }
}

.viewerwrap.selected.recording::before {
  animation: pulse-blue 2s infinite ease-in-out;
}

.viewerwrap.selected.recording .previewheader {
  background: linear-gradient(to right, rgb(44, 44, 44), rgb(70, 44, 44));
  box-shadow: inset 0 -1px 0 rgba(232, 37, 25, 0.3);
}

.viewerwrap .previewheader {
  flex-shrink: 0;
  height: 25px;
  background: rgb(44, 44, 44);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 14px;
  border-bottom: 1px solid rgb(27, 27, 27);
  position: relative;
}

.source-container {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin-right: 10px;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
}

.viewerwrap .canvaswrap {
  flex: 1 1 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
  min-height: 0;
  font-size: min(max(12px, 10%), 2.5vw, 2.5vh, 32px);
}

.timecode {
  position: absolute;
  top: 2%;
  left: 4px;

  height: 12%;
  width: auto;
  max-width: 80%;
  color: white;
  cursor: default;
  text-shadow: 1px 1px 1px #000;
  user-select: none;
  z-index: 10;
  padding: 0 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  display: flex;
  align-items: center;
  font-size: 1 vm;
}

.vuMeter {
  position: absolute;
  width: 4px;
  height: 72%;
  top: 18%;
  left: 4px;
  background: linear-gradient(
    to bottom,
    red,
    rgba(255, 153, 0, 0.5) 11%,
    rgba(0, 230, 0, 0.5) 20%
  );
  z-index: 5;
}

.vuMeter:nth-of-type(2) {
  left: 10px;
}

.vuMeter:nth-of-type(3) {
  left: 16px;
}

.vuMeter:nth-of-type(4) {
  left: 22px;
}

.vuMeter:nth-of-type(5) {
  right: 22px;
  left: auto;
}

.vuMeter:nth-of-type(6) {
  right: 16px;
  left: auto;
}

.vuMeter:nth-of-type(7) {
  right: 10px;
  left: auto;
}

.vuMeter:nth-of-type(8) {
  right: 4px;
  left: auto;
}

.vuMeterOverlay {
  width: 4px;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.previewheader {
  position: relative;
  height: 14px;
  line-height: 14px;
  display: flex;
  align-items: center;
}

.previewheader img.warning {
  width: 13px;
  height: 13px;
  margin-right: 4px;
  flex-shrink: 0;
}

.previewheader .sourceselect {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  height: 14px;
  border: none;
  color: white;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  font-size: 12px;
  text-overflow: ellipsis;
  padding-right: 10px;
  transition: color 0.2s ease;
}

.previewheader .sourceselect:hover {
  color: rgb(133, 198, 247);
}

.previewheader .sourceselect:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #fff;
}

.previewheader .sourceselect:-moz-focusring option {
  border: 0;
  outline: 0;
}

.destinationsLabel {
  flex-shrink: 0;
  position: relative;
  width: auto;
  max-width: 40%;
  min-width: 90px;
  color: #fff;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.2s ease;
  padding-right: 8px;
  box-sizing: border-box;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.destinationsLabel span:first-child {
  margin-right: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-block;
}

.destinationsLabel.has-badge {
  padding-right: 32px;
}

.destinationsLabel span:first-child {
  margin-right: 5px;
}

.destinationsLabel:hover {
  color: rgb(133, 198, 247);
}

.destinationsLabel:after {
  content: "▼";
  font-size: 8px;
  margin-left: 0px;
  vertical-align: middle;
  opacity: 0.7;
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
}

.destinationsLabel .count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  background: rgb(52, 84, 122);
  color: white;
  border-radius: 50%;
  font-size: 9px;
  padding: 0 2px;
  box-sizing: border-box;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.destinationsPopOver {
  position: fixed;
  visibility: hidden;
  z-index: 1000;
  width: 250px;
  border: 1px solid rgb(10, 10, 10);
  border-radius: 5px;
  background: rgb(48, 48, 48);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 12px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

.destinationsPopOver.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.destinationsPopOver::after {
  position: absolute;
  content: "";
  width: 12px;
  height: 12px;
  background: rgb(48, 48, 48);
  border-right: 1px solid rgb(10, 10, 10);
  border-bottom: 1px solid rgb(10, 10, 10);
  transform: rotate(45deg);
  box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.1);
}

.destinationsHeader {
  padding: 10px;
  background: rgb(60, 60, 60);
  border-bottom: 1px solid rgb(30, 30, 30);
  font-weight: bold;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px 4px 0 0;
}

.closePopover {
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
}

#viewerSettingsPopOver .closePopover {
  position: absolute;
  top: 8px;
  right: 8px;
}

.closePopover:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.destinationsList {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}

.destinationOption {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 0.15s;
  position: relative;
}

.destinationOption:hover {
  background: rgba(255, 255, 255, 0.05);
}

.destinationOption input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  background: rgb(32, 32, 32);
  border: 1px solid rgb(80, 80, 80);
  border-radius: 3px;
  margin-right: 8px;
  transition: all 0.2s;
}

.destinationOption:hover .checkbox-custom {
  border-color: rgb(100, 100, 100);
}

.destinationOption input[type="checkbox"]:checked + .checkbox-custom {
  background: rgb(52, 84, 122);
  border-color: rgb(72, 104, 142);
}

.destinationOption input[type="checkbox"]:checked + .checkbox-custom:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.destinationOption input[type="checkbox"]:disabled + .checkbox-custom {
  background: rgb(48, 48, 48);
  border-color: rgb(60, 60, 60);
  opacity: 0.6;
  cursor: not-allowed;
}

.destinationName {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.destinationsActions {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  border-top: 1px solid rgb(30, 30, 30);
  background: rgb(60, 60, 60);
  border-radius: 0 0 4px 4px;
}

.destinationsActions button,
.settingsActions button {
  margin-left: 6px;
  height: 24px;
  font-size: 11px;
  min-width: 60px;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.2s;
  color: rgb(234, 234, 234);
}

.destinationsActions button.primary,
.settingsActions button.primary {
  background: linear-gradient(to bottom, rgb(62, 94, 132), rgb(46, 74, 110));
  border-color: rgb(34, 64, 100);
  color: white;
}

.destinationsActions button.primary:hover,
.settingsActions button.primary:hover {
  background: linear-gradient(to bottom, rgb(72, 104, 142), rgb(56, 84, 120));
}

.destinationsActions button.secondary,
.settingsActions button.secondary {
  background: linear-gradient(to bottom, rgb(63, 63, 63), rgb(46, 46, 46));
  border-color: rgb(34, 34, 34);
  color: white;
}

.destinationsActions button.secondary:hover,
.settingsActions button.secondary:hover {
  background: linear-gradient(to bottom, rgb(73, 73, 73), rgb(56, 56, 56));
}

#bottom {
  box-sizing: content-box;
  width: 100%;
  height: var(--bottom-bar-h);
  border-top: 1px solid rgb(20, 20, 20);
  background: linear-gradient(to bottom, rgb(53, 53, 53), rgb(36, 36, 36));
  box-shadow: inset 0 1px 0 0 rgb(67, 67, 67);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#bottom div {
  display: inline-block;
}

#viewerCountControl {
  position: absolute;
  left: 10px;
  display: flex;
  align-items: center;
  color: white;
}

#viewerCountControl label {
  margin-right: 5px;
}

#viewerCountControl input {
  width: 60px;
  margin-right: 10px;
  text-align: center;
}

#viewerCountControl button {
  height: 20px;
  padding: 0 10px;
  border: 1px solid rgb(77, 77, 77);
  border-radius: 3px;
  background: linear-gradient(to bottom, rgb(53, 53, 53), rgb(36, 36, 36));
  color: rgb(234, 234, 234);
  cursor: pointer;
}

#bottom div#viewerSettingsControl {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  position: absolute;
  right: 16px;
  z-index: 100;
  background: none;
  box-shadow: none;
}

#bottom #viewerSettingsControl > button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px;
  height: 24px;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
  color: white;
  cursor: pointer;
}

#bottom #viewerSettingsControl > button:hover {
  opacity: 1;
  transform: scale(1.1);
}

#bottom #viewerSettingsControl > img {
  width: 20px;
  height: 20px;
}

#bottom #viewerSettingsControl #viewerSettingsPopOver button {
  all: unset;
  margin-left: 10px;
  padding: 5px 12px;
  border: 1px solid rgb(70, 70, 70);
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  height: auto;
  background: linear-gradient(to bottom, rgb(63, 63, 63), rgb(46, 46, 46));
  color: white;
  opacity: 1;
  transition: background-color 0.2s;
}

#bottom #viewerSettingsControl #viewerSettingsPopOver button.primary {
  background: linear-gradient(to bottom, rgb(62, 94, 132), rgb(46, 74, 110));
  color: white;
}

#bottom #viewerSettingsControl #viewerSettingsPopOver button.primary:hover {
  background: linear-gradient(to bottom, rgb(72, 104, 142), rgb(56, 84, 120));
}

#bottom #viewerSettingsControl #viewerSettingsPopOver button.secondary:hover {
  background: linear-gradient(to bottom, rgb(73, 73, 73), rgb(56, 56, 56));
}

#viewerSettingsControl {
  position: absolute;
  right: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: 100;
  gap: 14px;
}

#viewerSettingsControl button {
  all: unset;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
}

#viewerSettingsControl button:hover {
  opacity: 1;
  transform: scale(1.1);
}

#viewerSettingsControl img {
  width: 20px;
  height: 20px;
}

#viewerSettingsPopOver {
  display: none;
  visibility: hidden;
  position: absolute;
  right: 0;
  bottom: 54px;

  width: 220px;
  padding: 15px;
  background: rgb(43, 43, 43);
  border: 1px solid rgb(10, 10, 10);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 13px;
  z-index: 1000;
  box-sizing: border-box;
}

#viewerSettingsPopOver .closePopover {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 18px;
  line-height: 20px;
  width: 20px;
  height: 20px;
  text-align: center;
  cursor: pointer;
  color: #aaa;
  background: none;
  border: none;
  padding: 0;
  z-index: 2;
}

#viewerSettingsPopOver fieldset {
  border: none;
  margin: 0 0 15px 0;
  padding: 0;
  text-align: left;
}

#viewerSettingsPopOver .settingGroup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#viewerSettingsPopOver .settingGroup:first-child {
  padding-top: 8px;
}

#viewerSettingsPopOver label {
  color: #fff;
  font-size: 13px;
  margin-left: 8px;
}

#viewerSettingsPopOver input[type="number"] {
  width: 100px;
  text-align: center;
  height: 30px;
  padding: 6px 10px;
  border: 1px solid rgb(10, 10, 10);
  border-radius: 4px;
  background: rgb(32, 32, 32);
  color: white;
  font-size: 13px;
  box-sizing: border-box;
}

#viewerSettingsPopOver .settingsActions {
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}

#viewerSettingsPopOver button,
.destinationsActions button {
  float: right;
  margin-left: 10px;
  padding: 5px 12px;
  border: 1px solid rgb(70, 70, 70);
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  height: auto;
}

#viewerSettingsPopOver button.secondary,
.destinationsActions button.secondary {
  background: linear-gradient(to bottom, rgb(63, 63, 63), rgb(46, 46, 46));
  color: white;
}

#viewerSettingsPopOver button.primary,
.destinationsActions button.primary {
  background: linear-gradient(to bottom, rgb(62, 94, 132), rgb(46, 74, 110));
  color: white;
}

#viewerSettingsPopOver button:hover,
.destinationsActions button:hover {
  opacity: 0.9;
}

#gangRecording {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  height: auto;
}

#gangRecording * {
  vertical-align: middle;
  line-height: normal;
}

#gangRecording input {
  margin: 0 11px 0 0;
  height: 24px;
  width: 150px;
  padding: 0 8px;
  border: 1px solid rgb(70, 70, 70);
  border-radius: 3px;
  background: rgb(32, 32, 32);
  color: white;
  font-size: 12px;
  box-sizing: border-box;
  position: relative;
  top: 0;
}

#gangRecording input:focus {
  border-color: rgb(52, 84, 122);
  outline: none;
}

#gangRecording button {
  margin: 0 7px 0 0;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgb(70, 70, 70);
  border-radius: 3px;
  background: linear-gradient(to bottom, rgb(62, 94, 132), rgb(46, 74, 110));
  color: white;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  top: 0;
}

.stopButton,
.recordButton,
.pauseButton,
.timerButton {
  position: relative;
  margin: 0 8px;
  border: 2px solid rgb(174, 174, 174);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stopButton::after {
  position: absolute;
  content: "";
  bottom: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background: rgb(13, 56, 228);
}

.recordButton::after {
  position: absolute;
  content: "";
  bottom: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: rgb(232, 37, 25);
  border-radius: 50%;
}

.pauseButton::before,
.pauseButton::after {
  position: absolute;
  content: "";
  bottom: 8px;
  width: 4px;
  height: 16px;
  background: rgb(253, 126, 52);
}

.pauseButton::before {
  left: 10px;
}

.pauseButton::after {
  right: 10px;
}

.timerButton::before {
  position: absolute;
  content: "";
  top: 2px;
  left: 15px;
  width: 4px;
  height: 12px;
  background: rgb(24, 168, 27);
  border-radius: 1px;
}

.timerButton::after {
  position: absolute;
  content: "";
  bottom: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  background: rgb(24, 168, 27);
  border-radius: 50%;
}

.inactive.stopButton,
.inactive.recordButton,
.inactive.pauseButton,
.inactive.timerButton {
  border-color: rgb(75, 75, 75);
  cursor: default;
}

.inactive.stopButton::after {
  background: rgb(3, 25, 119);
}

.inactive.recordButton::after {
  background: rgb(121, 13, 7);
}

.inactive.pauseButton::before,
.inactive.pauseButton::after {
  background: rgb(146, 70, 25);
}

.inactive.timerButton::before,
.inactive.timerButton::after {
  background: rgb(75, 75, 75);
}

.timerButton.hasTimerSet {
  border-color: rgb(24, 168, 27);
}

.pauseButton.allPaused {
  border-color: rgb(253, 126, 52);
}

#timerPopOver {
  display: none;
  position: absolute;
  width: 220px;
  padding: 15px;
  background: rgb(43, 43, 43);
  border: 1px solid rgb(10, 10, 10);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 13px;
  z-index: 1000;
  box-sizing: border-box;
}

#timerPopOver::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  margin-left: -10px;
  width: 20px;
  height: 20px;
  background: rgb(43, 43, 43);
  border-right: 1px solid rgb(10, 10, 10);
  border-bottom: 1px solid rgb(10, 10, 10);
  transform: rotate(45deg);
}

#timerPopOver .closePopover {
  position: absolute;
  top: 8px;
  right: 8px;
}

#timerPopOver fieldset {
  border: none;
  margin: 0 0 15px 0;
  padding: 0;
  text-align: left;
}

#timerPopOver input[type="radio"] {
  margin-right: 8px;
  vertical-align: middle;
}

#timerPopOver label {
  display: inline-block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 13px;
}

#timerPopOver input[type="text"],
#timerPopOver input[type="datetime-local"] {
  display: block;
  width: 100%;
  margin: 5px 0 10px;
  padding: 6px 10px;
  border: 1px solid rgb(10, 10, 10);
  border-radius: 4px;
  background: rgb(32, 32, 32);
  color: white;
  font-size: 13px;
  box-sizing: border-box;
  height: 30px;
}

#timerPopOver button {
  float: right;
  margin-left: 10px;
  padding: 5px 12px;
  border: 1px solid rgb(70, 70, 70);
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  height: auto;
}

#timerPopOver button.cancel {
  background: linear-gradient(to bottom, rgb(63, 63, 63), rgb(46, 46, 46));
  color: white;
}

#timerPopOver button.apply {
  background: linear-gradient(to bottom, rgb(62, 94, 132), rgb(46, 74, 110));
  color: white;
}

#timerPopOver button:hover {
  opacity: 0.9;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgb(32, 32, 32);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgb(70, 70, 70);
  border-radius: 4px;
  border: 2px solid rgb(32, 32, 32);
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(90, 90, 90);
}

::-webkit-scrollbar-corner {
  background: rgb(32, 32, 32);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgb(70, 70, 70) rgb(32, 32, 32);
}

#sourcelist,
#destinationlist,
#main,
.destinationsList {
  scrollbar-width: thin;
  scrollbar-color: rgb(70, 70, 70) rgb(32, 32, 32);
}

#menuToggleControl {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  z-index: 100;
}

#menuToggleButton {
  all: unset;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background: transparent;
  border: none;
  box-shadow: none;
}

#menuToggleButton:hover {
  opacity: 1;
  transform: scale(1.1);
}

#menuToggleButton.menu-open svg path {
  fill: #007AFF;
  fill-opacity: 1;
}

#menuToggleButton img {
  width: 20px;
  height: 20px;
}

.settingsHeader {
  padding: 14px;
  background: rgb(60, 60, 60);
  border-bottom: 1px solid rgb(30, 30, 30);
  font-weight: bold;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px 4px 0 0;
  margin: -15px -15px 15px -15px;
  width: calc(100% + 30px);
  box-sizing: border-box;
}
