@charset "UTF-8";
.header {
  width: 100%;
  height: 66px;
  box-shadow: 0px 1px 0px 0px #1d2029;
  background: #030303;
  padding-right: 16px;
  display: flex;
  align-items: center;
  position: relative;
}
.header__logo {
  height: 100%;
  width: 93px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1px 0px 0px 0px #1d2029;
}
.header__logo > img {
  width: 45px;
  height: 39px;
}
.header__forecast {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 34px 0 24px;
  box-shadow: 1px 0px 0px 0px #1d2029;
}
.header__temp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #30333b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header__temp > svg {
  height: 33.94px;
  margin: auto;
  display: block;
  transform: rotate(-45deg);
}
.header__temp > svg path {
  stroke-linecap: round;
  stroke-width: 7;
}
.header__temp > svg path.grey {
  stroke: #4c4e51;
}
.header__temp > svg path.purple {
  stroke: #bfbfbf;
  stroke-dasharray: 197.25476;
  stroke-dashoffset: calc(198 - var(--temp) * 3);
}
.header__temp > div {
  position: absolute;
  display: flex;
  align-items: center;
  transform: rotate(calc(90deg + var(--temp) * 4deg));
}
.header__temp > div > div:first-child {
  width: 25.5px;
  height: 1px;
}
.header__temp > div > div:last-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e9e9e9;
}
.header__temp > span {
  position: absolute;
  bottom: -1px;
  right: -5px;
  width: 19px;
  height: 16px;
  background: white;
  border-radius: 100px;
  border: 1px solid #03060c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 11px;
  line-height: 17px;
  color: #03060c;
}
.header__temp > p {
  position: absolute;
  width: 18px;
  height: 18px;
}
.header__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.header__info > p {
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: 0%;
  color: rgba(251, 251, 251, 0.8);
}
.header__info > div {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header__info > div > div {
  width: 3px;
  height: 3px;
  background: #757a8d;
  border-radius: 50%;
}
.header__info > div > span {
  font-weight: 400;
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 0%;
  color: #7D7F86;
}
.header__construction {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-left: 8px;
  padding-right: 12px;
  background: rgba(255, 255, 255, 0.0784313725);
  border-radius: 100px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.header__construction > p {
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.8);
}
.header__construction > img {
  width: 18px;
  height: 18px;
}
.header__tabs {
  height: 36px;
  margin-left: auto;
  background: rgba(205, 205, 206, 0.0784313725);
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  border-radius: 100px;
  padding: 4px;
  display: flex;
  align-items: center;
  margin-right: 12px;
  color: rgba(205, 205, 206, 0.6);
  position: relative;
}
.header__tabs > span {
  position: absolute;
  top: 3px;
  left: 0;
  height: 28px;
  border-radius: 100px;
  background: rgba(205, 205, 206, 0.1215686275);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  /* Width snaps instantly — animating it freezes mid-transition while
     Leaflet initializes on the main thread (2D mode click). */
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
  will-change: transform;
}
.header__tabs.is-ready > span {
  opacity: 1;
}
.header__tabs > button {
  position: relative;
  z-index: 1;
  height: 28px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}
#dashboard .header__tabs > button.active {
  color: #ffffff;
}
.header__tabs > button {
  /* BIM is shipped behind a disabled flag for now — visible in the
     tab strip so users see what's coming, but inert. The native
     `disabled` attribute already blocks click dispatch (the
     delegated handler in dashboard.ts never fires), this rule
     just communicates the state visually. */
}
.header__tabs > button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.header__icons {
  display: flex;
  margin-right: 12px;
}
.header__icons > img {
  display: inline-block;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.header__icons > img:hover {
  background: rgba(255, 255, 255, 0.1098039216);
}
.header__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 16px;
}
.header__user > div:first-child {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(225deg, #606673 0%, #1c1f27 100%);
  font-weight: 500;
  font-size: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header__user > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.header__user > div:last-child > p {
  font-size: 14px;
  line-height: 14px;
  color: white;
}
.header__user > div:last-child > span {
  font-size: 12px;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.7215686275);
}

.sidebar {
  width: 46px;
  position: absolute;
  left: 0;
  top: 67px;
  height: calc(100dvh - 66px);
  background: #030303;
  box-shadow: 1px 0px 0px 0px #1d2029;
  padding-bottom: 6px;
  display: flex;
  flex-direction: column;
}
.sidebar > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sidebar > ul > li {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
}
.sidebar > ul > li.active {
  background: rgba(255, 255, 255, 0.1019607843);
}
.sidebar > ul > li svg {
  display: block;
  color: rgba(205, 205, 206, 0.6);
  transition: color 0.15s ease;
}
.sidebar > ul > li.active svg {
  color: #fbfbfb;
}
.sidebar > ul:first-of-type {
  margin-top: 130px;
}
.sidebar > ul:nth-of-type(2) {
  flex-grow: 1;
}
.sidebar__divider {
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3215686275);
  border-radius: 100px;
  margin: 20px auto;
}

.mainTabs {
  position: absolute;
  z-index: 2;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(0deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8));
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  backdrop-filter: blur(50px);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
}
.mainTabs > span {
  position: absolute;
  top: 4px;
  left: 0;
  height: 28px;
  border-radius: 6px;
  background: rgba(205, 205, 206, 0.1215686275);
  backdrop-filter: blur(50px);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
  will-change: transform;
}
.mainTabs.is-ready > span {
  opacity: 1;
}
#dashboard .mainTabs > button {
  position: relative;
  z-index: 1;
  height: 28px;
  border-radius: 6px;
  padding: 0 32px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(205, 205, 206, 0.5411764706);
  white-space: nowrap;
}
#dashboard .mainTabs > button.active {
  color: #fbfbfb;
}
.mainTabs button[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.dashboard__block {
  background: linear-gradient(0deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8));
  border: 1px solid #212121;
  backdrop-filter: blur(100px);
  border-radius: 8px;
  min-height: -moz-fit-content;
  min-height: fit-content;
}
.dashboard__left {
  position: absolute;
  left: 62px;
  top: 82px;
  width: 340px;
  height: calc(100dvh - 98px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scrollbar-width: none;
}
.dashboard__right {
  position: absolute;
  top: 82px;
  right: 16px;
  width: 340px;
  height: calc(100dvh - 98px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scrollbar-width: none;
}

.dashLayers {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dashLayers > h2 {
  font-weight: 500;
  font-size: 17px;
  line-height: 18px;
  color: #fbfbfb;
  margin: 12px 0 14px 10px;
}
.dashLayers__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1019607843);
}
.dashLayers__main {
  padding: 16px 10px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dashLayers__main::-webkit-scrollbar {
  width: 4px;
}
.dashLayers__main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.dashLayers__count {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 6%;
  text-transform: uppercase;
  color: rgba(251, 251, 251, 0.8117647059);
}
.dashLayers__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.dashLayers__list-item {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 150ms ease;
}
.dashLayers__list-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.dashLayers__list-item.disabled:hover {
  background: transparent;
}
.dashLayers__list-item.disabled > label,
.dashLayers__list-item.disabled > .count {
  cursor: not-allowed;
}
.dashLayers__list-item > label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}
.dashLayers__list-item > label > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dashLayers__list-item > label > .box {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: background 150ms ease, border-color 150ms ease;
}
.dashLayers__list-item > label > .text {
  flex: 1;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #fbfbfb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashLayers__list-item > label > input:checked + .box {
  background: #117be5;
  border-color: rgba(255, 255, 255, 0.08);
}
.dashLayers__list-item > label > input:checked + .box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 7" fill="none"><path d="M1 3.5l2.8 2.5L9 1" stroke="white" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 6px;
}
.dashLayers__list-item > .count {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.6);
  text-align: right;
  flex: 0 0 auto;
  padding-left: 8px;
}

.dashResident > h2 {
  font-weight: 500;
  font-size: 17px;
  line-height: 18px;
  color: #FBFBFB;
  margin: 12px 10px 8px 10px;
}
.dashResident > p {
  font-size: 14px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.7215686275);
  margin: 0 10px 14px 10px;
}
.dashResident__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1019607843);
  margin-bottom: 14px;
}
.dashResident__grid {
  padding: 0 10px 12px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dashResident__grid > div {
  background: rgba(251, 251, 251, 0.0392156863);
  border-radius: 4px;
  padding: 10px;
}
.dashResident__grid > div:last-of-type > p:nth-of-type(2) {
  color: #79BF41;
}
.dashResident__grid > div > span {
  display: inline-block;
  font-size: 13px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.7215686275);
  margin-bottom: 16px;
}
.dashResident__grid > div > p {
  font-weight: 600;
  font-size: 22px;
  line-height: 26px;
  margin-bottom: 8px;
}
.dashResident__grid > div > p:nth-of-type(2) {
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.8);
  margin-bottom: 0;
}
.dashResident__grid > div > div {
  display: flex;
  align-items: center;
}
.dashResident__grid > div > div > p {
  font-size: 14px;
  line-height: 16px;
  color: #79BF41;
}

.dashStages > h2 {
  font-weight: 500;
  font-size: 17px;
  line-height: 18px;
  color: #FBFBFB;
  margin: 12px 10px 0 10px;
}
.dashStages__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1019607843);
  margin: 14px 0;
}
.dashStages > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 14px 16px 14px;
}
.dashStages > ul > li > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dashStages > ul > li > div > p {
  font-size: 14px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.8);
}
.dashStages > ul > li > div > span {
  font-size: 14px;
  line-height: 16px;
  color: white;
}
.dashStages > ul > li > ul {
  list-style: none;
  display: flex;
  gap: 3px;
}
.dashStages > ul > li > ul > li {
  width: 100%;
  height: 4px;
  background: var(--color);
}
.dashStages > ul > li > ul > li:first-of-type {
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
}
.dashStages > ul > li > ul > li:last-of-type {
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
}

.dashPlanfact > h2 {
  font-weight: 500;
  font-size: 17px;
  line-height: 18px;
  color: #FBFBFB;
  margin: 12px 10px 0 10px;
}
.dashPlanfact__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1019607843);
  margin: 14px 0;
}
.dashPlanfact__legends {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 10px 24px;
}
.dashPlanfact__legends > li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashPlanfact__legends > li > div {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--color);
}
.dashPlanfact__legends > li > p {
  font-size: 14px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.8);
}
.dashPlanfact__graph {
  display: flex;
  gap: 8px;
  height: 160px;
  padding: 0 14px 0 14px;
}
.dashPlanfact__graph > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dashPlanfact__graph > ul > li {
  font-size: 12px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.8);
}
.dashPlanfact__graph > div {
  width: 100%;
  height: 100%;
  position: relative;
}
.dashPlanfact__graph > div > hr {
  position: absolute;
  width: 100%;
  height: 1px;
  border: none;
  outline: none;
  background: #393B41;
}
.dashPlanfact__graph > div > hr:first-of-type {
  top: 0;
}
.dashPlanfact__graph > div > hr:nth-of-type(2) {
  top: 33.3%;
}
.dashPlanfact__graph > div > hr:nth-of-type(3) {
  top: 66.6%;
}
.dashPlanfact__graph > div > hr:nth-of-type(4) {
  bottom: 0px;
}
.dashPlanfact__graph > div > ul {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: end;
}
.dashPlanfact__graph > div > ul > li {
  width: 100%;
  display: grid;
  align-items: end;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.dashPlanfact__graph > div > ul > li > div {
  height: calc(var(--height) * 1px);
  background: var(--color);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.dashPlanfact__month {
  margin: 8px 14px 12px 45px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashPlanfact__month > li {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.8);
}

.dashResources > h2 {
  font-weight: 500;
  font-size: 17px;
  line-height: 18px;
  color: #FBFBFB;
  padding: 12px 10px 0 10px;
}
.dashResources__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1019607843);
  margin: 14px 0;
}
.dashResources__main {
  list-style: none;
  background: rgba(251, 251, 251, 0.0392156863);
  padding: 10px;
  margin: 0 10px 14px 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dashResources__main > li {
  height: 16px;
  display: flex;
  align-items: center;
}
.dashResources__main > li > img {
  width: 16px;
  height: 16px;
}
.dashResources__main > li > p {
  margin-left: 6px;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.8);
}
.dashResources__main > li > span {
  margin-left: auto;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  color: white;
}

.dashEmployee {
  padding: 12px 10px;
}
.dashEmployee__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dashEmployee__header > img {
  padding-left: 6px;
}
.dashEmployee__header > p {
  font-size: 14px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.5411764706);
  flex-grow: 1;
}
.dashEmployee__header > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashEmployee__header > ul > li {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.0196078431);
  border: 1px solid rgba(255, 255, 255, 0.1215686275);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashEmployee__header > ul > li > img {
  width: 16px;
  height: 16px;
}
.dashEmployee__tabs {
  height: 28px;
  padding: 2px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 14px;
  line-height: 16px;
  background: rgba(142, 142, 147, 0.0784313725);
  color: #a2a2a2;
}
.dashEmployee__tabs > div {
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashEmployee__tabs > div.active {
  background: rgba(255, 255, 255, 0.1215686275);
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.3215686275);
  color: #ffffff;
}
.dashEmployee__live {
  height: 186px;
  position: relative;
  background: url("./img/live-video-poster.png") center/cover no-repeat;
  display: flex;
  gap: 4px;
  margin-bottom: 11px;
}
.dashEmployee__live > div:first-of-type {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(90.37% 90.37% at 50% 50%, rgba(0, 0, 0, 0) 0%, #000000 100%);
}
.dashEmployee__live > div:nth-of-type(2) {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dashEmployee__live > div:nth-of-type(2) > p {
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 2%;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8980392157);
}
.dashEmployee__live > div:last-of-type {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 3px;
  color: rgba(255, 255, 255, 0.8);
}
.dashEmployee__live > div:last-of-type > span {
  border: 0.75px solid rgba(255, 255, 255, 0.8);
  height: 8px;
  width: 0;
}
.dashEmployee__live-badge {
  width: 10px;
  height: 10px;
  background: rgba(255, 0, 0, 0.1607843137);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashEmployee__live-badge > div {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff0000;
}
.dashEmployee__employee {
  height: 60px;
  background: rgba(255, 255, 255, 0.0392156863);
  border: 1px solid rgba(255, 255, 255, 0.0588235294);
  border-radius: 4px;
  padding: 0 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dashEmployee__employee > img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
}
.dashEmployee__employee-fullname {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}
.dashEmployee__employee-fullname > p {
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  color: #fbfbfb;
}
.dashEmployee__employee-fullname > span {
  font-size: 13px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.6);
}
.dashEmployee__employee-call {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.0588235294);
  border: 1px solid rgba(255, 255, 255, 0.0784313725);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashEmployee__helmet {
  height: 36px;
  background: rgba(255, 255, 255, 0.0392156863);
  border: 1px solid rgba(255, 255, 255, 0.0588235294);
  padding: 0 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.dashEmployee__helmet > img {
  width: 16px;
  height: 10px;
  margin-right: 10px;
}
.dashEmployee__helmet > p {
  font-size: 13px;
  line-height: 25px;
  color: #fbfbfb;
}
.dashEmployee__helmet > p:first-of-type {
  flex-grow: 1;
}
.dashEmployee__helmet-battery {
  display: flex;
  align-items: center;
}
.dashEmployee__helmet-battery > div:first-of-type {
  margin-left: 8px;
  height: 13px;
  width: 25px;
  border-radius: 4.3px;
  border: 1px solid #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashEmployee__helmet-battery > div:first-of-type > div {
  width: 21px;
  height: 9px;
  background: #46dd38;
  border-radius: 2.5px;
}
.dashEmployee__helmet-battery > div:nth-of-type(2) {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  clip-path: inset(0 0 0 50%);
}
.dashEmployee__location {
  height: 36px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.0392156863);
  border: 1px solid rgba(255, 255, 255, 0.0588235294);
  padding-left: 10px;
  padding-right: 7px;
  display: flex;
  align-items: center;
}
.dashEmployee__location > img {
  width: 16px;
  height: 16px;
  margin-right: 10px;
}
.dashEmployee__location > p {
  font-size: 13px;
  line-height: 16px;
  color: #fbfbfb;
  flex-grow: 1;
}
.dashEmployee__location > div {
  background: rgba(255, 255, 255, 0.0588235294);
  border-radius: 100px;
  padding: 0 8px;
  height: 24px;
  font-size: 13px;
  color: #fbfbfb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 1s ease;
}
.dashEmployee__location > div:hover {
  background: rgba(255, 255, 255, 0.1215686275);
}

.eventLog {
  height: calc(100dvh - 66px - 16px - 449px - 16px - 16px);
  min-height: 468px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.eventLog__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 14px 10px;
}
.eventLog__header > img {
  width: 18px;
  height: 18px;
}
.eventLog__header > h2 {
  font-weight: 500;
  font-size: 17px;
  line-height: 18px;
  color: #fbfbfb;
}
.eventLog__divider {
  width: 100%;
  height: 1px;
  background: #212121;
  margin-bottom: 14px;
}
.eventLog__content {
  padding: 0 10px 6px 10px;
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
}
.eventLog__content::-webkit-scrollbar {
  width: 4px;
}
.eventLog__content::-webkit-scrollbar-track {
  background: transparent;
}
.eventLog__content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}
.eventLog__content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}
.eventLog__content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
.eventLog__content > p {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 6%;
  text-transform: uppercase;
  color: #fbfbfb;
  margin-bottom: 14px;
}
.eventLog__content > p:last-of-type {
  margin-top: 20px;
}
.eventLog__content > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eventLog__content > ul > li {
  border-radius: 4px;
  padding: 8px 10px 8px 12px;
  border-left: 3px solid #f19e33;
  background: rgba(255, 255, 255, 0.0392156863);
}
.eventLog__content > ul > li > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.eventLog__content > ul > li > div > p {
  font-size: 14px;
  line-height: 16px;
  color: #fbfbfb;
  flex-grow: 1;
}
.eventLog__content > ul > li > div > span {
  font-size: 14px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.8);
}
.eventLog__content > ul > li > div {
  margin-bottom: 12px;
}
.eventLog__content > ul > li > p {
  font-size: 14px;
  line-height: 20px;
  color: #fbfbfb;
}
.eventLog__button {
  height: 36px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.0392156863);
  border: 1px solid rgba(255, 255, 255, 0.0588235294);
  transition: all 0.3s ease;
  margin: 16px 10px 12px 10px;
  font-size: 14px;
  line-height: 16px;
  color: #fbfbfb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.eventLog__button:hover {
  background: rgba(255, 255, 255, 0.0784313725);
}

.dashToolbar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 372px;
  height: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dashToolbar > ul, .dashToolbar > .dashZoom {
  list-style: none;
  background: linear-gradient(0deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8));
  border: 1px solid rgba(251, 251, 251, 0.0392156863);
  backdrop-filter: blur(50px);
  padding: 3px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.dashToolbar > ul > li, .dashToolbar > ul > button, .dashToolbar > .dashZoom > li, .dashToolbar > .dashZoom > button {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.dashToolbar > ul > li > div, .dashToolbar > ul > button > div, .dashToolbar > .dashZoom > li > div, .dashToolbar > .dashZoom > button > div {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.dashToolbar > ul > li .ripple, .dashToolbar > ul > button .ripple, .dashToolbar > .dashZoom > li .ripple, .dashToolbar > .dashZoom > button .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(251, 251, 251, 0.35);
  transform: scale(0);
  animation: ripple-expand 0.5s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}
.dashToolbar > ul > li .dashTooltip, .dashToolbar > ul > button .dashTooltip, .dashToolbar > .dashZoom > li .dashTooltip, .dashToolbar > .dashZoom > button .dashTooltip {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  color: #fbfbfb;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  background: linear-gradient(0deg, rgba(24, 24, 25, 0.95), rgba(24, 24, 25, 0.95));
  border: 1px solid rgba(251, 251, 251, 0.0392156863);
  backdrop-filter: blur(50px);
  z-index: 10;
}
.dashToolbar > ul > li:hover .dashTooltip, .dashToolbar > ul > button:hover .dashTooltip, .dashToolbar > .dashZoom > li:hover .dashTooltip, .dashToolbar > .dashZoom > button:hover .dashTooltip {
  opacity: 1;
  visibility: visible;
}
.dashToolbar > ul > li.active, .dashToolbar > ul > button.active, .dashToolbar > .dashZoom > li.active, .dashToolbar > .dashZoom > button.active {
  background: rgba(251, 251, 251, 0.1215686275);
}
.dashToolbar > ul > li:hover, .dashToolbar > ul > button:hover, .dashToolbar > .dashZoom > li:hover, .dashToolbar > .dashZoom > button:hover {
  background: rgba(251, 251, 251, 0.1215686275);
}
.dashToolbar > ul > li svg, .dashToolbar > ul > button svg, .dashToolbar > .dashZoom > li svg, .dashToolbar > .dashZoom > button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}
.dashToolbar > ul > li svg [stroke], .dashToolbar > ul > button svg [stroke], .dashToolbar > .dashZoom > li svg [stroke], .dashToolbar > .dashZoom > button svg [stroke] {
  stroke-opacity: 0.54;
}
.dashToolbar > ul > li svg [fill]:not([fill=none]), .dashToolbar > ul > button svg [fill]:not([fill=none]), .dashToolbar > .dashZoom > li svg [fill]:not([fill=none]), .dashToolbar > .dashZoom > button svg [fill]:not([fill=none]) {
  fill-opacity: 0.54;
}
.dashToolbar > ul > li.active svg [stroke], .dashToolbar > ul > button.active svg [stroke], .dashToolbar > .dashZoom > li.active svg [stroke], .dashToolbar > .dashZoom > button.active svg [stroke] {
  stroke-opacity: 1;
}
.dashToolbar > ul > li.active svg [fill]:not([fill=none]), .dashToolbar > ul > button.active svg [fill]:not([fill=none]), .dashToolbar > .dashZoom > li.active svg [fill]:not([fill=none]), .dashToolbar > .dashZoom > button.active svg [fill]:not([fill=none]) {
  fill-opacity: 1;
}

@keyframes ripple-expand {
  0% {
    transform: scale(0);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.dashCompass {
  width: 80px;
  height: 80px;
  position: absolute;
  right: 372px;
  bottom: 16px;
  border-radius: 8px;
  z-index: 2;
  background: linear-gradient(0deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2)), linear-gradient(0deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8));
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  backdrop-filter: blur(50px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashCompass > svg {
  width: 76px;
  height: 76px;
}

.compass-2d-north {
  display: none;
}

body.mode-2d .dashCompass {
  display: flex;
}
body.mode-2d #compass-dial,
body.mode-2d .compass-3d-arrow {
  display: none;
}
body.mode-2d .compass-2d-north {
  display: block;
}

.infraMonitoring > h2 {
  font-weight: 500;
  font-size: 17px;
  line-height: 18px;
  color: #fbfbfb;
  margin: 12px 10px 14px 10px;
}
.infraMonitoring__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1019607843);
  margin-bottom: 16px;
}
.infraMonitoring__content {
  height: 13.0625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 2.125rem;
}
.infraMonitoring__content img {
  position: absolute;
  top: 1.5rem;
  left: 4.6875rem;
}
.infraMonitoring__polygon {
  width: 11.25rem;
  height: 11.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.infraMonitoring__polygon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 0.5rem rgba(255, 255, 255, 0.1));
}
.infraMonitoring__polygon svg polygon {
  fill: none;
  stroke: rgba(251, 251, 251, 0.3);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.infraMonitoring__polygon svg polygon:nth-of-type(2) {
  transform: translateX(39px) translateY(41px);
  scale: 0.73;
}
.infraMonitoring__polygon svg polygon:nth-of-type(3) {
  transform: translateX(110px) translateY(121px);
  scale: 0.48;
}
.infraMonitoring__polygon svg polygon:nth-of-type(4) {
  transform: translateX(340px) translateY(370px);
  scale: 0.23;
}
.infraMonitoring__polygon svg polygon.data {
  fill: rgba(33, 173, 56, 0.1);
  stroke: #54de2a;
  stroke-width: 2;
  scale: 0;
  filter: drop-shadow(0 0 0.375rem rgba(84, 222, 42, 0.3254901961));
  transform-origin: center;
  transform-box: fill-box;
  animation: scaling 3s ease forwards;
  animation-delay: 1.5s;
}
.infraMonitoring__polygon svg line {
  stroke: rgba(251, 251, 251, 0.15);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.infraMonitoring__text > p {
  position: absolute;
  font-size: 0.75rem;
  line-height: 0.875rem;
  letter-spacing: 0%;
  color: rgba(251, 251, 251, 0.8);
}
.infraMonitoring__text > p:first-of-type {
  top: 0;
  right: 9.0625rem;
}
.infraMonitoring__text > p:nth-of-type(2) {
  top: 5.025rem;
  right: 2.075rem;
}
.infraMonitoring__text > p:nth-of-type(3) {
  bottom: 0;
  right: 3.25rem;
}
.infraMonitoring__text > p:nth-of-type(4) {
  bottom: 0;
  left: 1.6875rem;
}
.infraMonitoring__text > p:nth-of-type(5) {
  top: 5.025rem;
  left: 1.3125rem;
}
.infraMonitoring__list {
  list-style: none;
  padding: 0 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.infraMonitoring__list > li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.infraMonitoring__list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.infraMonitoring__list-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.infraMonitoring__list-left > p {
  font-size: 14px;
  line-height: 16px;
  color: #fbfbfb;
}
.infraMonitoring__list-left > span {
  font-size: 12px;
  line-height: 14px;
  color: rgba(251, 251, 251, 0.7215686275);
}
.infraMonitoring__list-right {
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  color: white;
}
.infraMonitoring__list-scale {
  width: 100%;
  height: 4px;
  border-radius: 1px;
  background: rgba(251, 251, 251, 0.2392156863);
  position: relative;
}
.infraMonitoring__list-scale > div {
  height: 4px;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color);
  width: calc(var(--width) * 1px);
}
.infraMonitoring > button {
  margin-top: 16px;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.0588235294);
  background: rgba(255, 255, 255, 0.0392156863);
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0%;
  color: #fbfbfb;
  transition: all 0.3s ease;
  cursor: pointer;
}
.infraMonitoring > button:hover {
  background: rgba(255, 255, 255, 0.0784313725);
}

@keyframes scaling {
  0% {
    scale: 0;
  }
  100% {
    scale: 1;
  }
}
@keyframes fill-scale-width {
  0% {
    width: 0;
  }
  100% {
    width: var(--width, 0);
  }
}
/* -------------------- page shells (dashboard / cctv) -------------------- */
body.page-cctv .dashboard-chrome,
body.page-cctv #dash-map,
body.page-cctv .map-base-switch,
body.page-cctv .dashTooltip {
  display: none !important;
}
body.page-cctv {
  /* 3D canvas stays in layout (resize observers) but is not painted. */
}
body.page-cctv #application-canvas {
  visibility: hidden;
  pointer-events: none;
}
body.page-cctv #ui,
body.page-cctv #poster {
  visibility: hidden;
  pointer-events: none;
}

#cctv-page {
  display: none;
  position: absolute;
  left: 46px;
  top: 66px;
  right: 0;
  bottom: 0;
  pointer-events: auto;
  overflow: auto;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
#cctv-page::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
#cctv-page::-webkit-scrollbar-track {
  background: transparent;
}
#cctv-page::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}
#cctv-page::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}
#cctv-page::-webkit-scrollbar-corner {
  background: transparent;
}

body.page-cctv #cctv-page {
  display: block;
}

.cctv-page__inner {
  padding: 32px 16px 0 16px;
}

.cctvHeader {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}
.cctvHeader__tabs {
  width: -moz-fit-content;
  width: fit-content;
  height: 38px;
  background: rgba(205, 205, 206, 0.0784313725);
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  padding: 3px;
  border-radius: 6px;
  display: flex;
}
.cctvHeader__tabs > div {
  width: 200px;
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: rgba(205, 205, 206, 0.6);
}
.cctvHeader__tabs > div.active {
  color: #fbfbfb;
  background: rgba(205, 205, 206, 0.0901960784);
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.3215686275);
}
.cctvHeader__online {
  height: 30px;
  margin-left: auto;
  display: flex;
  align-items: center;
}
.cctvHeader__online[hidden] {
  display: none !important;
}
.cctvHeader__online {
  background: rgba(205, 205, 206, 0.1215686275);
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  padding: 0 14px 0 10px;
  border-radius: 6px;
  margin-right: 12px;
}
.cctvHeader__online > div {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color);
  margin-right: 7px;
}
.cctvHeader__online > p {
  font-size: 14px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.8);
}
.cctvHeader__online-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 16px;
}
.cctvHeader__online[hidden] + .cctvHeader__grid {
  margin-left: auto;
}
.cctvHeader__grid {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(205, 205, 206, 0.1215686275);
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  padding: 0 10px 0 6px;
  border-radius: 6px;
}
.cctvHeader__grid > img {
  width: 17px;
  height: 17px;
}
.cctvHeader__grid > p {
  height: 18px;
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.cctvCameras[hidden],
.cctvDetections[hidden] {
  display: none !important;
}

.cctvCameras {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.cctvCameras > li {
  position: relative;
}
.cctvCameras > li:nth-of-type(6) > div:last-of-type {
  cursor: auto;
}
.cctvCameras > li:nth-of-type(7) > div:last-of-type {
  cursor: auto;
}
.cctvCameras__img {
  border-radius: 4px;
  overflow: hidden;
}
.cctvCameras__img > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.cctvCameras__img > video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.cctvCameras__img > div {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.0784313725);
}
.cctvCameras__info {
  height: 24px;
  padding: 0 12px 0 8px;
  background: linear-gradient(0deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8));
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  backdrop-filter: blur(50px);
  position: absolute;
  top: 6px;
  left: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}
.cctvCameras__info > div {
  width: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cctvCameras__info > div > div:first-of-type {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #F30000;
  scale: 0;
  opacity: 1;
  animation: livePointBg 0.7s ease infinite;
  position: absolute;
}
.cctvCameras__info > div > div:last-of-type {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F30000;
  position: absolute;
  animation: livePoint 0.7s ease infinite;
}
.cctvCameras__info > p {
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.cctvCameras__info > p:first-of-type {
  margin-left: 8px;
  margin-right: 12px;
}
.cctvCameras__info > p:nth-of-type(2) {
  margin-right: 12px;
}
.cctvCameras__expand {
  position: absolute;
  width: 28px;
  height: 28px;
  background: linear-gradient(0deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2)), linear-gradient(0deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8));
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  backdrop-filter: blur(50px);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 12px;
  right: 12px;
  z-index: 1;
  cursor: pointer;
}

@keyframes livePointBg {
  0% {
    scale: 0;
    opacity: 1;
  }
  90% {
    scale: 1;
    opacity: 0.25;
  }
  100% {
    opacity: 0;
    scale: 1;
  }
}
@keyframes livePoint {
  0% {
    scale: 1;
  }
  90% {
    scale: 1.1;
  }
  100% {
    scale: 1;
  }
}
.cctvCamera {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  animation: cctvCameraShow 0.25s ease-out both;
}
.cctvCamera__inner {
  position: absolute;
  z-index: 3;
  left: 148px;
  right: 148px;
  top: 85px;
  bottom: 85px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 15, 0.0784313725);
  animation: cctvCameraInnerShow 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.cctvCamera__media {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
}
.cctvCamera__info {
  height: 24px;
  padding: 0 12px 0 8px;
  background: linear-gradient(0deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8));
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  backdrop-filter: blur(50px);
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}
.cctvCamera__info > div {
  width: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cctvCamera__info > div > div:first-of-type {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #F30000;
  scale: 0;
  opacity: 1;
  animation: livePointBg 0.7s ease infinite;
  position: absolute;
}
.cctvCamera__info > div > div:last-of-type {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F30000;
  position: absolute;
  animation: livePoint 0.7s ease infinite;
}
.cctvCamera__info > p {
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.cctvCamera__info > p:first-of-type {
  margin-left: 8px;
  margin-right: 12px;
}
.cctvCamera__info > p:nth-of-type(2) {
  margin-right: 12px;
}
.cctvCamera__shrink {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(0deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2)), linear-gradient(0deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8));
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  backdrop-filter: blur(50px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes cctvCameraShow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cctvCameraInnerShow {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.cctvDetections > h2 {
  font-weight: 500;
  font-size: 16px;
  line-height: 18px;
  color: #FBFBFB;
  margin-bottom: 14px;
}
.cctvDetections__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.cctvDetections__left {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  height: 100%;
  max-height: calc(100dvh - 152px - 66px);
  overflow-y: auto;
  scrollbar-width: none;
}
.cctvDetections__left > li {
  position: relative;
  height: 230px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.0784313725);
  border: 1px solid rgba(0, 0, 15, 0.0784313725);
}
.cctvDetections__left > li > img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}
.cctvDetections__left > li > div:first-of-type {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: linear-gradient(0deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2)), linear-gradient(0deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8));
  border: 1px solid rgba(205, 205, 206, 0.0392156863);
  backdrop-filter: blur(50px);
}
.cctvDetections__left > li > div:nth-of-type(2) {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cctvDetections__left > li > div:nth-of-type(2) > span {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--background);
  backdrop-filter: blur(50px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cctvDetections__right {
  list-style: none;
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 66px - 134px - 16px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.0784313725);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: none;
}
.cctvDetections__right > li {
  border-left: 3px solid var(--border-color);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.0588235294);
  padding: 8px 10px 8px 9px;
}
.cctvDetections__right > li > div {
  display: flex;
  align-items: center;
}
.cctvDetections__right > li > div:first-of-type {
  margin-bottom: 10px;
}
.cctvDetections__right > li > div:first-of-type > div {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--bg);
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cctvDetections__right > li > div:first-of-type > div > img {
  width: 14px;
  height: 14px;
}
.cctvDetections__right > li > div:first-of-type > div > p {
  font-size: 14px;
  line-height: 16px;
  color: #FBFBFB;
}
.cctvDetections__right > li > div:last-of-type > div {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 27px;
  border: 1px solid rgba(251, 251, 251, 0.3019607843);
  padding: 6px 11px 6px 7px;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.8);
  transition: all 0.3s ease;
  cursor: pointer;
}
.cctvDetections__right > li > div:last-of-type > div:hover {
  background: rgba(251, 251, 251, 0.0588235294);
}
.cctvDetections__right > li > div:last-of-type > span {
  font-size: 12px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.8);
}
.cctvDetections__right > li > div:last-of-type > span:first-of-type {
  margin-left: 14px;
  margin-right: 6px;
}
.cctvDetections__right > li > div:last-of-type > span:last-of-type {
  margin-left: 6px;
}
.cctvDetections__right > li > p {
  display: inline-block;
  font-size: 14px;
  line-height: 20px;
  color: rgba(251, 251, 251, 0.8);
  margin-bottom: 14px;
}

/* ============================================================
   Smart City qTwin — Dashboard chrome
   Implements Figma node 29:364 (Главная страница)
   ============================================================ */
.dash-toolbar .group, .dash-timeline, .dash-events, .dash-live {
  background: rgba(18, 18, 19, 0.72);
  border: 1px solid rgba(205, 205, 206, 0.04);
  border-radius: 8px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #fbfbfb;
}

/* hide legacy supersplat chrome when dashboard is active */
.dashboard-active #controlsWrap,
.dashboard-active #supersplatBranding,
.dashboard-active #settingsPanel,
.dashboard-active #infoPanel {
  display: none !important;
}

#dashboard {
  position: fixed;
  inset: 0;
  pointer-events: none;
  font-family: "Roboto", "Inter", system-ui, sans-serif;
  color: #fbfbfb;
  z-index: 10;
  font-size: 14px;
  line-height: 1.4;
}
#dashboard * {
  box-sizing: border-box;
}
#dashboard button {
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

#dashboard > * {
  pointer-events: auto;
}

/* center splat/lidar/mesh tab bar (inside dashboard, below header) */
.dash-scene-tabs {
  position: absolute;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 4px;
  background: linear-gradient(90deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8)), linear-gradient(90deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2));
  border: 1px solid rgba(205, 205, 206, 0.04);
  border-radius: 8px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 11;
  /* inherited by inactive buttons (since #dashboard button { color: inherit }) */
  color: rgba(205, 205, 206, 0.54);
}
.dash-scene-tabs button {
  position: relative;
  padding: 6px 32px;
  border-radius: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  transition: color 150ms ease, background 150ms ease;
}
.dash-scene-tabs button:hover:not(.active), #dashboard .dash-scene-tabs button:hover:not(.active) {
  color: #fbfbfb;
  background: rgba(255, 255, 255, 0.04);
}
.dash-scene-tabs button.active, #dashboard .dash-scene-tabs button.active {
  background: rgba(205, 205, 206, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #fbfbfb;
  box-shadow: none;
}

/* -------------------- left icon sidebar (Figma 104:890) -------------------- */
.dash-sidebar {
  position: absolute;
  left: 0;
  top: 66px;
  bottom: 0;
  width: 46px;
  background: #030303;
  box-shadow: inset -1px 0 0 #1d2029;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0 24px;
  gap: 20px;
  /* inherited by inactive buttons (since #dashboard button { color: inherit }) */
  color: rgba(205, 205, 206, 0.55);
}
.dash-sidebar .sb-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-sidebar .sb-divider {
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.dash-sidebar .sb-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 150ms ease, color 150ms ease;
}
.dash-sidebar .sb-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fbfbfb;
}
.dash-sidebar .sb-btn.active, #dashboard .dash-sidebar .sb-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fbfbfb;
}

/* -------------------- right column wrapper -------------------- */
.dash-right {
  position: absolute;
  right: 16px;
  top: 82px;
  bottom: 100px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.dash-right > * {
  pointer-events: auto;
}

/* -------------------- left-column events card (Figma 120:846 — duplicate stream) -------------------- */
.dash-events-left {
  position: absolute;
  /* sits below the layers panel (top:82 + height:255 + gap:16 = 353) and
       extends all the way down to the viewport edge — the timeline sits in
       a separate horizontal row to its right (not below it) per Figma. */
  left: 62px;
  top: 353px;
  bottom: 16px;
  width: 340px;
}

/* -------------------- viewport compass (Figma 124:1159) -------------------- */
.dash-compass {
  position: absolute;
  right: 372px;
  bottom: 112px;
  width: 80px;
  height: 80px;
  pointer-events: none;
}
.dash-compass svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* -------------------- live card -------------------- */
.dash-live {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-live .live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}
.dash-live .live-head .back {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
}
.dash-live .live-head .icons {
  display: flex;
  gap: 8px;
}
.dash-live .live-head .icons .ic {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cdcdce;
  background: rgba(255, 255, 255, 0.04);
}
.dash-live .live-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 2px;
}
.dash-live .live-tabs button {
  flex: 1;
  height: 24px;
  font-size: 12px;
  color: #cdcdce;
  border-radius: 4px;
}
.dash-live .live-tabs button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fbfbfb;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.32);
}
.dash-live .live-video {
  position: relative;
  height: 187px;
  border-radius: 4px;
  overflow: hidden;
  /* Camera-feed still exported from Figma 32:400. Centered and cropped
         to the 320x187 tile via background-size:cover. */
  background: url("./img/live-video-poster.png") center/cover no-repeat, #0c1218;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px;
  font-size: 10px;
  color: #fbfbfb;
}
.dash-live .live-video .live-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ee2f2f;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.2px;
  font-weight: 500;
}
.dash-live .live-video .live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.dash-live .live-video .live-time {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.86);
}
.dash-live .live-video .live-time .sep {
  width: 1px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
}
.dash-live .live-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}
.dash-live .live-person .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* Headshot exported from Figma 31:1847; fallback gradient shows
           if the asset ever 404s. */
  background: url("./img/live-person-avatar.png") center/cover no-repeat, linear-gradient(135deg, #5b6373, #2b3142);
}
.dash-live .live-person .info {
  flex: 1;
  line-height: 1.3;
}
.dash-live .live-person .name {
  font-size: 14px;
  color: #fbfbfb;
}
.dash-live .live-person .role {
  font-size: 12px;
  color: #7d7f86;
}
.dash-live .live-person .call-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #21ad38;
}
.dash-live .live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}
.dash-live .live-row .label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fbfbfb;
}
.dash-live .live-row .battery {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.dash-live .live-row .battery .bar {
  position: relative;
  width: 24px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
}
.dash-live .live-row .battery .bar::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  width: calc(100% - 4px);
  background: #46dd38;
  border-radius: 1.5px;
}
.dash-live .live-row .battery .bar::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 0 1.5px 1.5px 0;
}
.dash-live .live-row .track-btn {
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  color: #fbfbfb;
}

/* -------------------- event log card -------------------- */
.dash-events {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.dash-events .events-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(205, 205, 206, 0.06);
  font-size: 14px;
  color: #fbfbfb;
}
.dash-events .events-head .star {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #117be5;
}
.dash-events .events-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dash-events .events-body::-webkit-scrollbar {
  width: 4px;
}
.dash-events .events-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.dash-events .events-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-events .events-section .section-title {
  font-size: 12px;
  color: #7d7f86;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-events .events-section .section-title .dot {
  width: 3px;
  height: 3px;
  background: #d9d9d9;
  border-radius: 50%;
}
.dash-events .alert {
  position: relative;
  padding: 10px 10px 10px 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.dash-events .alert::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #117be5;
}
.dash-events .alert.red::before {
  background: #eb4545;
}
.dash-events .alert.orange::before {
  background: #f19e33;
}
.dash-events .alert.green::before {
  background: #21ad38;
}
.dash-events .alert.blue::before {
  background: #117be5;
}
.dash-events .alert .alert-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #fbfbfb;
}
.dash-events .alert .alert-head .title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.dash-events .alert .alert-head .time {
  color: rgba(251, 251, 251, 0.8);
  font-size: 12px;
}
.dash-events .alert .alert-body {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 18px;
}
.dash-events .events-footer {
  padding: 10px;
  border-top: 1px solid rgba(205, 205, 206, 0.06);
}
.dash-events .events-footer button {
  width: 100%;
  height: 36px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #fbfbfb;
  font-size: 13px;
  transition: background 150ms ease;
}
.dash-events .events-footer button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* -------------------- bottom timeline scrubber -------------------- */
/* ================================================================
   Compare split overlay — Figma 203:1792
   A thin vertical line spanning the canvas area with a draggable
   chevron handle. Hidden by default; shown only when both compare
   dates are picked AND we're on the 3D Mesh tab. Drag updates `left`
   inline; dashboard.ts broadcasts the fraction on `qtwin:split`.
   ================================================================ */
.compare-split {
  position: absolute;
  /* Sit below header (66px) and above the timeline (80px) + 16 gap. */
  top: 66px;
  bottom: 96px;
  /* JS sets left as a % (5..95). 50% is the initial center. */
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  /* Hidden by default — body class flips display below. */
  display: none;
  pointer-events: none;
  /* Below the rest of #dashboard's chrome but above the canvas. */
  z-index: 1;
}

/* Visible on the 3D page (mode-3d) with compare mode engaged (both dates
   picked) in any of the three scene tabs — splat, lidar, mesh. Each tab
   has its own per-date assets and a shader-clip discard, so the wipe
   handle is meaningful across all three. */
body.compare-active.mode-3d.scene-splat .compare-split,
body.compare-active.mode-3d.scene-lidar .compare-split,
body.compare-active.mode-3d.scene-mesh .compare-split {
  display: block;
}

.compare-split::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #117be5;
  transform: translateX(-50%);
}

.compare-split-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 26px;
  border-radius: 4px;
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  pointer-events: auto;
  cursor: ew-resize;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: none;
  transition: color 120ms ease, background-color 120ms ease;
}
.compare-split-handle:hover, .compare-split-handle.dragging, .compare-split-handle:focus-visible {
  color: #fff;
  background: rgba(8, 10, 14, 0.95);
}

/* ================================================================
   Compare panel — Figma 203:1743
   Sits centered above the timeline. Two date chips with a swap button.
   Used on both the 3D and 2D pages.
   ================================================================ */
.dash-compare {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 110px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.dash-compare .compare-pill {
  pointer-events: auto;
  height: 36px;
  padding: 5px 5px 5px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8)), linear-gradient(90deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2));
  border: 1px solid rgba(205, 205, 206, 0.04);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  gap: 12px;
  /* Flow color down to the swap button — `#dashboard button { color: inherit }`
       (1,0,1) beats `.dash-compare .compare-swap` (0,2,0), so we set color here
       and let the button inherit. Other child texts override with their own. */
  color: rgba(251, 251, 251, 0.6);
  z-index: 2;
}

.dash-compare .compare-label {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.6);
  white-space: nowrap;
}

.dash-compare .compare-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* `.compare-chip` is a <button>, so `#dashboard button { background: transparent;
   border: 0 }` (1,0,1) would normally win over a plain `.dash-compare .compare-chip`
   rule (0,2,0). Bump specificity by prefixing `#dashboard` so the chip keeps its
   subtle white fill + border per Figma 196:1635. */
.dash-compare .compare-chip,
#dashboard .dash-compare .compare-chip {
  height: 26px;
  padding: 0 12px 0 4px;
  border-radius: 4px;
  background: rgba(251, 251, 251, 0.04);
  border: 1px solid rgba(251, 251, 251, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.dash-compare .compare-chip .dot,
#dashboard .dash-compare .compare-chip .dot {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dash-compare .compare-chip .dot::after,
#dashboard .dash-compare .compare-chip .dot::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d7f86;
}
.dash-compare .compare-chip .chip-text,
#dashboard .dash-compare .compare-chip .chip-text {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.8);
  white-space: nowrap;
}
.dash-compare .compare-chip.primary .dot::after,
#dashboard .dash-compare .compare-chip.primary .dot::after {
  background: #117be5;
}
.dash-compare .compare-chip.secondary .dot::after,
#dashboard .dash-compare .compare-chip.secondary .dot::after {
  background: #f19e33;
}

.dash-compare .compare-swap {
  width: 14px;
  height: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  /* color inherited from .compare-pill — see comment there. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease;
}
.dash-compare .compare-swap:hover {
  color: rgba(251, 251, 251, 0.9);
}

/* Close button — Figma 199:2086. Hidden by default; revealed only when the
   pill carries .compare-active (set by JS when both dates are picked). The
   right padding bumps from 5px → 8px in that state per Figma 199:2555. */
.dash-compare .compare-close {
  display: none;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease;
}
.dash-compare .compare-close:hover {
  color: rgba(251, 251, 251, 0.9);
}

.dash-compare .compare-pill.compare-active {
  padding-right: 8px;
}
.dash-compare .compare-pill.compare-active .compare-close {
  display: inline-flex;
}

/* ================================================================
   Compare calendar popover — Figma 196:1238
   Opens above the active chip when the user clicks it. The selected
   day takes the chip's slot color (blue for primary, orange for
   secondary). Only AVAILABLE_DATES (see dashboard.ts) are clickable;
   other days render at 0.3 opacity per Figma.
   ================================================================ */
.dash-compare .compare-calendar {
  position: absolute;
  /* JS sets `left` to center the 250px popover on the active chip. */
  bottom: calc(100% + 8px);
  width: 250px;
  background: linear-gradient(90deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8)), linear-gradient(90deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2));
  border: 1px solid rgba(205, 205, 206, 0.04);
  border-radius: 8px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #fbfbfb;
  pointer-events: auto;
  z-index: 1;
}
.dash-compare .compare-calendar[hidden] {
  display: none;
}

.dash-compare .cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

/* `#dashboard button { background: transparent; border: 0; }` (1,0,1)
   would erase our hover background — bump specificity for nav + day buttons. */
.dash-compare .cal-nav,
#dashboard .dash-compare .cal-nav {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 4px;
  color: rgba(251, 251, 251, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.dash-compare .cal-nav:hover,
#dashboard .dash-compare .cal-nav:hover {
  background: rgba(251, 251, 251, 0.08);
}

.dash-compare .cal-month-label {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  color: #fbfbfb;
}

.dash-compare .cal-body {
  padding: 0 10px 10px;
}

.dash-compare .cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  opacity: 0.7;
}
.dash-compare .cal-weekdays > span {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 12px;
  color: #fbfbfb;
  text-align: center;
  padding: 9px 0;
}

.dash-compare .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.dash-compare .cal-day,
#dashboard .dash-compare .cal-day {
  width: 100%;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 12px;
  color: #fbfbfb;
}
.dash-compare .cal-day .num,
#dashboard .dash-compare .cal-day .num {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.dash-compare .cal-day,
#dashboard .dash-compare .cal-day {
  /* Days outside the visible month or without data — faded + not clickable. */
}
.dash-compare .cal-day.other, .dash-compare .cal-day.unavailable,
#dashboard .dash-compare .cal-day.other,
#dashboard .dash-compare .cal-day.unavailable {
  opacity: 0.3;
  cursor: default;
}
.dash-compare .cal-day,
#dashboard .dash-compare .cal-day {
  /* Available days get a hover ring to invite a click. */
}
.dash-compare .cal-day.available:not(.selected):hover .num,
#dashboard .dash-compare .cal-day.available:not(.selected):hover .num {
  background: rgba(251, 251, 251, 0.08);
}
.dash-compare .cal-day,
#dashboard .dash-compare .cal-day {
  /* Selected day — colored disc per slot. */
}
.dash-compare .cal-day.selected.primary .num,
#dashboard .dash-compare .cal-day.selected.primary .num {
  background: #117be5;
  color: #fff;
}
.dash-compare .cal-day.selected.secondary .num,
#dashboard .dash-compare .cal-day.selected.secondary .num {
  background: #f19e33;
  color: #fff;
}

.dash-timeline {
  width: -moz-fit-content;
  width: fit-content;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  height: 80px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-timeline .thumbs {
  flex: 1;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.dash-timeline .left-arrow {
  height: 100%;
  width: 16px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  background: rgba(251, 251, 251, 0.0588235294);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-timeline .right-arrow {
  height: 100%;
  width: 16px;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  background: rgba(251, 251, 251, 0.0588235294);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-timeline .right-arrow > svg {
  transform: rotate(180deg);
}

#dashboard .dash-timeline .thumb {
  /* `#dashboard button { background: transparent; border: 0 }` (1,0,1) would
       wipe the thumb background — bump specificity here so the still image
       and the slot-coloured outline both survive. */
  position: relative;
  flex: 0 0 120px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  background: url("./img/timeline-thumb.png") center/cover no-repeat, #303030;
}
#dashboard .dash-timeline .thumb.primary {
  outline: 2px solid #117be5;
  outline-offset: -1px;
}
#dashboard .dash-timeline .thumb.secondary {
  outline: 2px solid #f19e33;
  outline-offset: -1px;
}
#dashboard .dash-timeline .thumb {
  /* If primary and secondary land on the same thumb (rare — user picked the
       same date as the primary via the secondary calendar) primary wins, as
       the timeline always represents the current view. */
}
#dashboard .dash-timeline .thumb.primary.secondary {
  outline-color: #117be5;
}
#dashboard .dash-timeline .thumb {
  /* A thumb whose date is currently held as secondary is locked — promoting
       it to primary would create a same-date "compare". Communicate it via
       the cursor; the orange outline already marks it as the compare slot. */
}
#dashboard .dash-timeline .thumb:disabled {
  cursor: not-allowed;
}
#dashboard .dash-timeline .thumb .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  background: rgba(0, 0, 0, 0.8);
  color: #fbfbfb;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 4px 4px;
}

/* -------------------- right edge floating toolbar -------------------- */
.dash-toolbar {
  position: absolute;
  right: 372px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-toolbar .group {
  padding: 3px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash-toolbar .tool {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbfbfb;
  cursor: pointer;
  transition: background 150ms ease;
}
.dash-toolbar .tool:hover {
  background: rgba(255, 255, 255, 0.08);
}
.dash-toolbar .tool.active {
  background: rgba(255, 255, 255, 0.12);
}
.dash-toolbar .tool svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

/* responsive: narrow viewports collapse some panels */
@media (max-width: 1280px) {
  .dash-toolbar {
    display: none;
  }
  .dash-compass {
    display: none;
  }
}
@media (max-width: 1100px) {
  .dash-layers,
  .dash-right,
  .dash-events-left {
    display: none;
  }
  .dash-sidebar {
    display: none;
  }
  /* With the columns collapsed, let the timeline span the full width. */
  .dash-timeline {
    left: 16px;
    right: 16px;
  }
  /* Re-anchor compare panel to match the full-width timeline. */
  .dash-compare {
    left: 16px;
    right: 16px;
  }
}
/* ================================================================
   2D / карта mode — Leaflet OSM map
   ================================================================ */
#dash-map {
  position: fixed;
  inset: 0;
  z-index: 1;
  /* above the 3D canvas (0), below dashboard chrome (10) */
  background: #ddd;
  /* light fallback before tiles paint */
  display: none;
  /* shown by body.mode-2d below */
  /* Re-skin Leaflet's stock controls to match the dashboard glass aesthetic.
       Nesting under #dash-map keeps specificity (1,1,0) above Leaflet's
       defaults (0,1,0) without resorting to !important. */
}
#dash-map .leaflet-control-zoom {
  border: 1px solid rgba(205, 205, 206, 0.04);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(24, 24, 25, 0.8), rgba(24, 24, 25, 0.8)), linear-gradient(90deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2));
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  overflow: hidden;
}
#dash-map .leaflet-control-zoom a {
  background: transparent;
  color: #fbfbfb;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
#dash-map .leaflet-control-zoom a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fbfbfb;
}
#dash-map .leaflet-control-attribution {
  background: rgba(24, 24, 25, 0.7);
  color: rgba(205, 205, 206, 0.6);
  font-size: 11px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top-left-radius: 6px;
}
#dash-map .leaflet-control-attribution a {
  color: rgba(205, 205, 206, 0.85);
}

.map-base-switch {
  /* Right of the left dashboard column (62 + 340 + 16), above the timeline. */
  position: fixed;
  left: 418px;
  bottom: 24px;
  z-index: 11;
  display: none;
  pointer-events: auto;
}

.map-base-switch__button {
  display: block;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(205, 205, 206, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, rgba(24, 24, 25, 0.84), rgba(24, 24, 25, 0.84)), linear-gradient(90deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.map-base-switch__button:hover {
  transform: translateY(-1px);
  border-color: rgba(205, 205, 206, 0.16);
}
.map-base-switch__button:focus-visible {
  outline: 2px solid rgba(70, 145, 255, 0.55);
  outline-offset: 2px;
}

.map-base-switch__preview {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.line-editor-panel {
  position: fixed;
  left: 418px;
  bottom: 196px;
  z-index: 12;
  width: 300px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(24, 24, 25, 0.9), rgba(24, 24, 25, 0.9)), linear-gradient(90deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2));
  border: 1px solid rgba(205, 205, 206, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #fbfbfb;
  pointer-events: auto;
  display: none;
  gap: 10px;
  flex-direction: column;
}

body.mode-2d .line-editor-panel {
  display: flex;
}

.line-editor-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.line-editor-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff1d1d;
  box-shadow: 0 0 8px rgba(255, 29, 29, 0.7);
}

.line-editor-panel__count {
  margin-left: auto;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(251, 251, 251, 0.82);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.line-editor-panel__hint,
.line-editor-panel__status {
  color: rgba(251, 251, 251, 0.68);
  font-size: 12px;
  line-height: 16px;
}

.line-editor-panel__status {
  padding: 7px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.line-editor-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.line-editor-panel__actions button {
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fbfbfb;
  font-size: 12px;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.line-editor-panel__actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.line-editor-panel.drawing [data-line-editor=draw] {
  background: rgba(255, 29, 29, 0.28);
  border-color: rgba(255, 29, 29, 0.6);
}

.map-red-line {
  filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.75));
}

.red-line-endpoint {
  box-sizing: border-box;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #ff1d1d;
  box-shadow: 0 0 0 1px rgba(255, 29, 29, 0.15), 0 1px 3px rgba(0, 0, 0, 0.35);
  cursor: grab;
}

.red-line-endpoint--pending {
  background: transparent;
  border-color: #ff1d1d;
  cursor: default;
}

.control-point-editor-panel {
  position: fixed;
  left: 418px;
  bottom: 360px;
  z-index: 12;
  width: 300px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(24, 24, 25, 0.9), rgba(24, 24, 25, 0.9)), linear-gradient(90deg, rgba(124, 124, 124, 0.2), rgba(124, 124, 124, 0.2));
  border: 1px solid rgba(205, 205, 206, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #fbfbfb;
  pointer-events: auto;
  display: none;
  gap: 10px;
  flex-direction: column;
}

body.mode-2d .control-point-editor-panel {
  display: flex;
}

.control-point-editor-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.control-point-editor-panel__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.75);
}

.control-point-editor-panel__count {
  margin-left: auto;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(251, 251, 251, 0.82);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.control-point-editor-panel__hint,
.control-point-editor-panel__status {
  color: rgba(251, 251, 251, 0.68);
  font-size: 12px;
  line-height: 16px;
}

.control-point-editor-panel__status {
  padding: 7px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.control-point-editor-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.control-point-editor-panel__actions button {
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fbfbfb;
  font-size: 12px;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.control-point-editor-panel__actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.control-point-editor-panel.placing [data-control-point-editor=place] {
  background: rgba(139, 92, 246, 0.32);
  border-color: rgba(139, 92, 246, 0.72);
}

.control-point-marker {
  box-sizing: border-box;
  margin: 0;
  border-radius: 50%;
  background: #8b5cf6;
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: grab;
}

/* Show one layers tree at a time based on the active view mode. The 2D tree
   is hidden by default; body.mode-2d swaps them. */
.dash-layers .layers-tree[data-view="2d"] {
  display: none;
}

body.mode-2d {
  /* Map fills the center stage. */
}
body.mode-2d #dash-map {
  display: block;
}
body.mode-2d {
  /* The 3D canvas keeps its layout (so devicePixelRatio observers don't
       freak out) but stops painting under the map. */
}
body.mode-2d #application-canvas {
  visibility: hidden;
}
body.mode-2d {
  /* Splat/Lidar/Mesh tabs don't apply to a 2D map. */
}
body.mode-2d .mainTabs {
  display: none;
}
body.mode-2d {
  /* Right-edge floating toolbar (move/edit/path/crop/chat) is 3D-specific —
       hide it in 2D mode for now. */
}
body.mode-2d .dash-toolbar {
  display: none;
}
body.mode-2d {
  /* The viewport compass belongs to the 3D scene — Leaflet has its own
       north orientation. */
}
body.mode-2d .dash-compass {
  display: none;
}
body.mode-2d .map-base-switch {
  display: flex;
}
body.mode-2d {
  /* Compare is a 3D-only control. The shared dashboard markup stays mounted
       for 3D, but 2D keeps the simplified single-date map UI. */
}
body.mode-2d .dash-compare,
body.mode-2d .compare-split,
body.mode-2d .dash-timeline .left-arrow,
body.mode-2d .dash-timeline .right-arrow,
body.mode-2d .dash-timeline .thumb[data-date="2026-05-18"] {
  display: none;
}
body.mode-2d {
  /* Sidebar and left/right events cards stay visible — view-mode-agnostic
       chrome. */
  /* Swap the layers tree. */
}
body.mode-2d .dash-layers .layers-tree[data-view="3d"] {
  display: none;
}
body.mode-2d .dash-layers .layers-tree[data-view="2d"] {
  display: block;
}

@media (max-width: 1100px) {
  .map-base-switch {
    left: 16px;
    bottom: 24px;
  }
  .line-editor-panel {
    left: 16px;
    bottom: 190px;
  }
  .control-point-editor-panel {
    left: 16px;
    bottom: 350px;
  }
}
@media (max-width: 900px) {
  .map-base-switch__button {
    width: 64px;
    height: 64px;
  }
  .map-base-switch__preview {
    width: 56px;
    height: 56px;
  }
}
/* ============================================================
   Top loading bar — indeterminate shimmer
   Shows whenever data-modes.ts has at least one in-flight
   splat / lidar / mesh load. Visibility is gated on
   `body.is-loading` toggled by initLoadingIndicator() in
   dashboard.ts from `qtwin:loading` events. Non-blocking —
   sits above all chrome but with pointer-events: none.
   ============================================================ */
.loading-bar {
  position: fixed;
  /* Sit just below the 66 px-tall header so the bar lands on a contrast
     boundary (header is almost-black #030303, canvas behind is lighter)
     rather than disappearing into the dark header chrome at top:0. */
  top: 66px;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  /* Solid accent-blue track — fully opaque so the bar is obviously
     visible the moment a load starts, independent of the shimmer
     sweep position. The shimmer is just a moving highlight on top. */
  background: #117be5;
  /* Glow so the bar reads as an active indicator, not just a static line. */
  box-shadow: 0 0 8px rgba(17, 123, 229, 0.6);
  opacity: 0;
  /* Delayed fade-out so brief gaps between consecutive loads don't
     visibly flicker the bar. */
  transition: opacity 0.18s ease-out 0.12s;
}

.loading-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  /* Off-screen by default — the keyframes drive the sweep across
     the bar. `animation-play-state` is paused when not loading so
     we don't burn cycles. */
  transform: translateX(-100%);
  animation: loading-bar-shimmer 1.2s linear infinite;
  animation-play-state: paused;
}

body.is-loading .loading-bar {
  opacity: 1;
  /* Snap visible without the hide-delay — feedback should be fast. */
  transition: opacity 0.08s ease-in;
}

body.is-loading .loading-bar::after {
  animation-play-state: running;
}

@keyframes loading-bar-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}
:root {
  --canvas-opacity: 1;
}

* {
  margin: 0;
  padding: 0;
  touch-action: none;
}

body {
  overflow: hidden;
  font-family: "Arial", sans-serif;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background: radial-gradient(50% 50% at 50% 50%, #1E1E1E 0%, #030303 100%);
  min-height: 100vh;
}

canvas {
  opacity: var(--canvas-opacity);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.hidden {
  display: none !important;
}

.spacer {
  flex-grow: 1;
}

#ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#ui * {
  pointer-events: auto;
}

.walkHint {
  position: absolute;
  top: max(60px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}

/* branding link for third-party embeds */
#supersplatBranding {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  color: #fff;
}
#supersplatBranding > svg {
  height: 16px;
  width: auto;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.3);
}
#supersplatBranding > svg > g.stroke {
  fill: black;
  stroke: black;
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.4;
}
#supersplatBranding > svg > g.fill {
  fill: currentColor;
  stroke: none;
}
#supersplatBranding > span {
  font-size: 14px;
  font-weight: bold;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.4), 1px -1px 0 rgba(0, 0, 0, 0.4), -1px 1px 0 rgba(0, 0, 0, 0.4), 1px 1px 0 rgba(0, 0, 0, 0.4);
}

/* poster */
#poster {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--poster-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* loadingWrap */
#loadingWrap {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(380px, 100vw - 32px);
  display: flex;
  flex-direction: column;
  padding: 16px;
}
#loadingWrap > #loadingText {
  font-size: 18px;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
#loadingWrap > #loadingBar {
  width: 100%;
  height: 10px;
  margin-top: 8px;
  border-radius: 4px;
  overflow: hidden;
}

/* controlsWrap */
#controlsWrap {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
#controlsWrap.faded-in {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
#controlsWrap.faded-out {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s ease-out;
}
#controlsWrap > #timelineContainer {
  height: 30px;
  cursor: pointer;
}
#controlsWrap > #timelineContainer > #line {
  width: 100%;
  height: 50%;
  border-bottom: 4px solid #d9d9d9;
}
#controlsWrap > #timelineContainer > #handle {
  position: absolute;
  top: 16.5px;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  background-color: #FFAF50;
}
#controlsWrap > #timelineContainer > #time {
  position: absolute;
  top: 0;
  padding: 2px 4px;
  transform: translate(-50%, -100%);
  font-size: 12px;
  border-radius: 4px;
  color: #fff;
  background-color: rgba(40, 40, 40, 0.5);
}
#controlsWrap > #buttonsContainer {
  display: flex;
  gap: 8px;
}
#controlsWrap > #buttonsContainer .buttonGroup {
  display: flex;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
#controlsWrap > #buttonsContainer .buttonGroup:not(:has(> :not(.hidden))) {
  display: none;
}
#controlsWrap > #buttonsContainer {
  /* controlButton */
}
#controlsWrap > #buttonsContainer .controlButton {
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  color: #E0DCDD;
  background-color: transparent;
}
#controlsWrap > #buttonsContainer .controlButton:hover {
  color: #fff;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* icon styling */
}
#controlsWrap > #buttonsContainer .controlButton > svg {
  display: block;
  margin: auto;
}
#controlsWrap > #buttonsContainer .controlButton > svg > g.stroke {
  fill: none;
  stroke: black;
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.4;
}
#controlsWrap > #buttonsContainer .controlButton > svg > g.fill {
  fill: currentColor;
  stroke: none;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* active highlight for simple toggle buttons (e.g. voxel overlay) */
}
#controlsWrap > #buttonsContainer .controlButton.active:not(.toggle) {
  color: #F60;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* camera toggle styling */
}
#controlsWrap > #buttonsContainer .controlButton.toggle {
  background: linear-gradient(90deg, transparent 0%, transparent 50%, #F60 50%, #F60 100%);
  background-size: 200% 100%;
  background-position: 100% 0%;
  background-repeat: no-repeat;
  transition: background-position 0.1s ease-in-out;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.left {
  border-radius: 4px 0px 0px 4px;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.left:not(.active) {
  background-position: 0% 0%;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.middle {
  border-radius: 0;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.middle:not(.active) {
  background-position: 0% 0%;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.right {
  border-radius: 0px 4px 4px 0px;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.right:not(.active) {
  background-position: 200% 0%;
}

/* settingsPanel */
#settingsPanel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 14px;
  color: #E0DCDD;
  background-color: rgba(51, 51, 51, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#settingsPanel > .settingsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
}
#settingsPanel > .settingsRow > button {
  flex-grow: 1;
  height: 34px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: #AAA;
  background-color: rgba(255, 255, 255, 0.04);
  transition: background-color 250ms ease, color 250ms ease;
}
#settingsPanel > .settingsRow > button:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
#settingsPanel > .settingsRow > div {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: pointer;
  color: #AAA;
}
#settingsPanel > .settingsRow > div.toggleSwitch {
  padding: 0 4px;
}
#settingsPanel > .settingsRow > div.toggleSwitch .toggleTrack {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background-color 200ms ease;
}
#settingsPanel > .settingsRow > div.toggleSwitch .toggleTrack .toggleThumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #777;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 200ms ease, background-color 200ms ease;
}
#settingsPanel > .settingsRow > div.toggleSwitch.active .toggleTrack {
  background-color: rgba(255, 102, 0, 0.35);
}
#settingsPanel > .settingsRow > div.toggleSwitch.active .toggleTrack .toggleThumb {
  transform: translateX(16px);
  background-color: #F60;
}
#settingsPanel > .settingsRow > div:hover {
  color: #E0DCDD;
}
#settingsPanel > .divider {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  background-color: rgba(255, 255, 255, 0.08);
}

/* infoPanel */
#infoPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
#infoPanel > #infoPanelContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-height: 280px;
  min-width: 320px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  color: #E0DCDD;
  background-color: rgba(51, 51, 51, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#infoPanel > #infoPanelContent > #tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background-color: #282828;
}
#infoPanel > #infoPanelContent > #tabs > .tab {
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #AAA;
  transition: background-color 250ms ease, color 250ms ease;
}
#infoPanel > #infoPanelContent > #tabs > .tab:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}
#infoPanel > #infoPanelContent > #tabs > .tab.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
#infoPanel > #infoPanelContent > #infoPanels {
  padding: 16px;
}
#infoPanel > #infoPanelContent > #infoPanels h1 {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0 8px 0;
  color: #F60;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  font-size: 13px;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-action {
  text-align: left;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-key {
  text-align: right;
  color: #AAA;
  font-size: 12px;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.03);
}
#infoPanel > #infoPanelContent > #infoPanels .control-spacer {
  margin: 14px 0;
}

#joystickBase {
  position: absolute;
  width: 56px;
  height: 100px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  touch-action: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2666666667) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.2666666667) 100%);
  background-color: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
}
#joystickBase > #joystick {
  position: absolute;
  left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  touch-action: none;
  background-color: rgba(255, 255, 255, 0.5333333333);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: left 0.1s ease;
}
#joystickBase.mode-2d {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.2666666667) 100%);
  background-color: rgba(0, 0, 0, 0.2);
}
#joystickBase.mode-2d > #joystick {
  left: 30px;
}

#tooltip {
  display: none;
  position: absolute;
  border-radius: 4px;
  padding: 4px 4px;
  font-size: 12px;
  color: #E0DCDD;
  background-color: #282828;
}

#annotations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

#annotations * {
  pointer-events: auto;
}

/* annotationNav */
#annotationNav {
  pointer-events: none;
}
#annotationNav.faded-in {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
#annotationNav.faded-out {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s ease-out;
}
#annotationNav > button {
  pointer-events: auto;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E0DCDD;
  background-color: rgba(0, 0, 0, 0.3);
}
#annotationNav > button:hover {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
}
#annotationNav > button > svg {
  display: block;
}
#annotationNav > button > svg > g.stroke {
  fill: none;
  stroke: black;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.4;
}
#annotationNav > button > svg > g.fill {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#annotationNav.desktop {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
}
#annotationNav.desktop > button {
  width: 34px;
  height: 34px;
  background-color: transparent;
}
#annotationNav.desktop > button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
#annotationNav.desktop > #annotationInfo {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  white-space: nowrap;
  width: 240px;
}
#annotationNav.desktop > #annotationInfo > #annotationNavTitle {
  font-size: 14px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}
#annotationNav.touch {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#annotationNav.touch > #annotationInfo {
  display: none;
}
#annotationNav.touch > button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.3);
}
#annotationNav.touch > button:active {
  background-color: rgba(0, 0, 0, 0.4);
}
#annotationNav.touch > #annotationPrev {
  left: max(0px, env(safe-area-inset-left));
  border-radius: 0 6px 6px 0;
}
#annotationNav.touch > #annotationNext {
  right: max(0px, env(safe-area-inset-right));
  border-radius: 6px 0 0 6px;
}