@charset "UTF-8";
/* ============================================================
   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;
}

/* -------------------- top header -------------------- */
.dash-header {
  position: absolute;
  inset: 0 0 auto 0;
  height: 66px;
  background: #030303;
  box-shadow: 0 1px 0 #1d2029;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}
.dash-header .logo {
  width: 45px;
  height: 39px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-header .logo img {
  display: block;
  width: 100%;
  height: 100%;
}
.dash-header .city {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid #1d2029;
  height: 38px;
}
.dash-header .city .weather {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.dash-header .city .weather .temp {
  position: absolute;
  bottom: -2px;
  right: -4px;
  background: #2c7bcf;
  color: #fff;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 6px;
}
.dash-header .city .city-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-header .city .city-info .city-name {
  font-size: 15px;
  font-weight: 500;
  color: #cdcdce;
  line-height: 18px;
}
.dash-header .city .city-info .date-time {
  font-size: 13px;
  color: #7d7f86;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 14px;
}
.dash-header .city .city-info .date-time .dot {
  width: 3px;
  height: 3px;
  background: #7d7f86;
  border-radius: 50%;
}
.dash-header .spacer {
  flex: 1;
}
.dash-header .site-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: #fbfbfb;
}
.dash-header .site-pill svg, .dash-header .site-pill .icon {
  color: #fbfbfb;
  opacity: 0.8;
}
.dash-header .mode-toggle, .dash-header .layer-toggle {
  display: flex;
  height: 36px;
  align-items: center;
  padding: 4px;
  background: rgba(205, 205, 206, 0.08);
  border: 1px solid rgba(205, 205, 206, 0.04);
  border-radius: 100px;
  /* inherited by inactive buttons (since #dashboard button { color: inherit }) */
  color: rgba(205, 205, 206, 0.6);
}
.dash-header .mode-toggle button, .dash-header .layer-toggle button {
  height: 100%;
  padding: 0 16px;
  border-radius: 100px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  transition: background 150ms ease, color 150ms ease;
}
.dash-header .mode-toggle button.active, #dashboard .dash-header .mode-toggle button.active, .dash-header .layer-toggle button.active, #dashboard .dash-header .layer-toggle button.active {
  background: rgba(205, 205, 206, 0.08);
  color: #fbfbfb;
  box-shadow: none;
}
.dash-header .mode-toggle button:hover:not(.active), #dashboard .dash-header .mode-toggle button:hover:not(.active), .dash-header .layer-toggle button:hover:not(.active), #dashboard .dash-header .layer-toggle button:hover:not(.active) {
  color: #fbfbfb;
}
.dash-header .user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
}
.dash-header .user .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(225deg, #eaae22, #a03b17);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #fbfbfb;
}
.dash-header .user .user-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dash-header .user .user-info .name {
  font-size: 14px;
  color: #fbfbfb;
}
.dash-header .user .user-info .role {
  font-size: 12px;
  color: #7d7f86;
}

/* 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 layers panel (Технический журнал) -------------------- */
.dash-layers {
  position: absolute;
  left: 16px;
  top: 82px;
  width: 340px;
  max-height: calc(100vh - 200px);
  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 #212121;
  border-radius: 8px;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  color: #fbfbfb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dash-layers .layers-head {
  padding: 11px 9px 14px;
}
.dash-layers .layers-head .layers-title {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 18px;
  color: #fbfbfb;
  white-space: nowrap;
}
.dash-layers .layers-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.dash-layers .layers-body {
  padding: 16px 9px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.dash-layers .layers-body::-webkit-scrollbar {
  width: 4px;
}
.dash-layers .layers-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.dash-layers .layers-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}
.dash-layers .layers-search .ic {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: rgba(251, 251, 251, 0.54);
}
.dash-layers .layers-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 16px;
  color: #fbfbfb;
}
.dash-layers .layers-search input::-moz-placeholder {
  color: rgba(251, 251, 251, 0.54);
}
.dash-layers .layers-search input::placeholder {
  color: rgba(251, 251, 251, 0.54);
}
.dash-layers .layers-count {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 16px;
  color: rgba(251, 251, 251, 0.81);
}
.dash-layers .layers-tree {
  display: flex;
  flex-direction: column;
}
.dash-layers .ltree-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  cursor: pointer;
  border-radius: 4px;
  transition: background 150ms ease;
}
.dash-layers .ltree-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.dash-layers .ltree-row .cb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 4px;
  flex: 0 0 auto;
  cursor: pointer;
}
.dash-layers .ltree-row .cb input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dash-layers .ltree-row .cb .box {
  width: 16px;
  height: 16px;
  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;
}
.dash-layers .ltree-row .cb input:checked + .box {
  background: #117be5;
  border-color: rgba(255, 255, 255, 0.08);
}
.dash-layers .ltree-row .cb 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;
}
.dash-layers .ltree-row .label {
  flex: 1;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #fbfbfb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-layers .ltree-row .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;
}

/* -------------------- 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;
}

/* -------------------- 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;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), radial-gradient(ellipse at center, #2a3845, #0c1218 80%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px;
  font-size: 10px;
  color: #fbfbfb;
}
.dash-live .live-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 255, 255, 0.03) 6px 7px), repeating-linear-gradient(90deg, transparent 0 6px, rgba(255, 255, 255, 0.03) 6px 7px);
  pointer-events: none;
}
.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%;
  background: linear-gradient(135deg, #5b6373, #2b3142);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 16px;
}
.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 -------------------- */
.dash-timeline {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 1176px;
  max-width: calc(100vw - 380px);
  height: 80px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-timeline .arrow {
  width: 16px;
  height: 64px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px 2px 6px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbfbfb;
  cursor: pointer;
  flex: 0 0 auto;
}
.dash-timeline .arrow:hover {
  background: rgba(255, 255, 255, 0.12);
}
.dash-timeline .thumbs {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-timeline .thumbs::-webkit-scrollbar {
  display: none;
}
.dash-timeline .thumb {
  position: relative;
  flex: 0 0 120px;
  height: 64px;
  border-radius: 4px;
  background: #303030;
  cursor: pointer;
  overflow: hidden;
  background-image: linear-gradient(135deg, #2a2a2a, #404040 40%, #1c1c1c);
}
.dash-timeline .thumb.active {
  outline: 2px solid #117be5;
  outline-offset: -1px;
}
.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;
  }
}
@media (max-width: 1100px) {
  .dash-layers, .dash-right {
    display: none;
  }
  .dash-timeline {
    width: calc(100vw - 32px);
    max-width: none;
  }
}
/* ================================================================
   2D / карта mode — Leaflet OSM map
   ================================================================ */
#dash-map {
  position: fixed;
  inset: 0;
  z-index: 1; /* above the 3D canvas (0), below dashboard chrome (10) */
  background: #1f2530; /* dark slate 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);
}

/* 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 .dash-scene-tabs {
  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 {
  /* 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;
}

: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;
}

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;
}