.studio-mode {
  color-scheme: light;
  --bg: #e8edf6;
  --surface: #fff;
  --surface2: #f5f7fc;
  --line: #dce3ee;
  --text: #202d45;
  --muted: #77849b;
  --accent: #3564ee;
  --red: #cf5c67;
  --amber: #b77a29;
  --blue: #3564ee;
  background: #e8edf6;
  color: #202d45;
}
.studio-mode .sidebar,
.studio-mode .topbar {
  display: none;
}
.studio-mode .main-shell {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
}
.studio-mode .main {
  padding: 0;
  max-width: none;
  height: 100%;
  overflow: hidden;
}
.studio-mode .btn.primary {
  color: white;
  background: #3564ee;
  border-color: #3564ee;
}
.studio-mode .btn.primary:hover {
  background: #264fcc;
}
.studio-mode .btn {
  background: #fff;
  color: #304362;
  border-color: #dce3ee;
}
.studio-mode .btn:hover {
  background: #eff4ff;
}
.studio-mode .badge {
  color: #66768b;
  background: #f1f4f9;
  border-color: #e3e8f0;
}
.studio-mode .badge.green {
  color: #368767;
  background: #e9f7ee;
  border-color: #d7efe3;
}
.studio-mode .badge.amber {
  color: #a67b31;
  background: #fff6e7;
  border-color: #f6e6c8;
}
.studio-mode .badge.red {
  color: #c65060;
  background: #fff0f1;
  border-color: #f4d8dd;
}
.studio-mode .badge.blue {
  color: #3c67d5;
  background: #edf2ff;
  border-color: #dce5ff;
}
.studio-mode .badge.purple {
  color: #8365b2;
  background: #f3effb;
  border-color: #e8dff6;
}
.studio-mode input,
.studio-mode select,
.studio-mode textarea {
  background: #f8faff;
  border-color: #d9e1ec;
  color: #253954;
}
.studio-mode option {
  background: #fff;
}
.studio-mode .modal,
.studio-mode .drawer {
  background: #fff;
  color: #253954;
}
.studio-mode .brief-text {
  color: #536680;
}
.studio-mode .btn.ghost {
  background: transparent;
}
.studio-mode .avatar {
  background: #edf2ff;
  color: #3564ee;
  border-color: #d7e1fa;
}
.studio-mode .form-error {
  background: #fff0f1;
  border-color: #f4d8dd;
  color: #c65060;
}
.studio-mode .drawer-backdrop,
.studio-mode .modal-backdrop {
  background: #23314c66;
}
.studio-mode #toast {
  background: #3564ee;
  color: white;
  left: 50%;
}
.studio-mode .item-icon {
  background: #eef3fe;
  border-color: #dce5fa;
  color: #3564ee;
}
.studio-mode .drawer-task {
  background: #f8faff;
}
.studio-mode .badge {
  border-radius: 5px;
}
.studio-mode .activity-line:before {
  background: #6286ef;
}
.studio-mode .icon-btn:hover {
  background: #edf2fb;
  color: #3564ee;
}
.studio-shell {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #e8edf6;
}
.studio-scene {
  position: absolute;
  inset: 68px 0 0;
  touch-action: none;
  outline: none;
}
.studio-person-label {
  position: absolute;
  transform: translate(-50%, -100%);
  border: 1px solid #d9e2f1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 6px #324b7420;
  color: #34476a;
  padding: 3px 6px;
  font:
    600 9px system-ui,
    sans-serif;
  cursor: pointer;
  max-width: 130px;
  white-space: nowrap;
  z-index: 2;
}
.studio-person-label span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-person-label small {
  display: none;
  color: #587194;
  font-size: 8px;
  font-weight: 400;
}
.studio-person-label.selected {
  border-color: #b6c9f8;
}
.studio-person-label:hover small,
.studio-person-label:focus-visible small {
  display: block;
}
.studio-person-label:focus-visible {
  outline: 2px solid #3564ee;
}
.studio-person-label[hidden] {
  display: none;
}
.studio-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.studio-header {
  height: 68px;
  background: rgba(251, 253, 255, 0.96);
  border-bottom: 1px solid #dae2ef;
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 2px 10px #40587805;
}
.studio-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 185px;
}
.studio-brand-mark {
  width: 32px;
  height: 32px;
  background: #3564ee;
  color: white;
  border-radius: 9px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px #3564ee2e;
}
.studio-brand-mark svg {
  width: 20px;
  height: 20px;
}
.studio-brand strong {
  font-size: 15px;
  letter-spacing: -0.4px;
}
.studio-brand span {
  font-size: 9px;
  letter-spacing: 1.7px;
  display: block;
  color: #7d8ca5;
}
.studio-search {
  position: relative;
  max-width: 310px;
  flex: 1;
}
.studio-search svg {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #7d8ca5;
}
.studio-search select {
  padding-left: 35px;
  width: 100%;
  font-size: 11px;
  min-height: 36px;
  background: #f7faff;
}
.studio-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.studio-live {
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #648073;
  padding: 5px 9px;
  background: #edf7f2;
  border-radius: 5px;
  white-space: nowrap;
}
.studio-live span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #51a97f;
}
.studio-live.offline {
  background: #fff4df;
  color: #a97f35;
}
.studio-live.offline span {
  background: #bb9237;
}
.studio-profile {
  display: flex;
  gap: 8px;
  align-items: center;
  border-left: 1px solid #e0e6ef;
  padding-left: 13px;
}
.studio-profile select {
  width: 132px;
  font-size: 11px;
  padding: 5px 24px 5px 5px;
  min-height: 32px;
  background: transparent;
  border: 0;
}
.studio-profile .avatar {
  height: 29px;
  width: 29px;
  font-size: 10px;
}
.studio-kpis {
  position: absolute;
  left: 24px;
  top: 91px;
  z-index: 5;
  display: flex;
  gap: 10px;
  pointer-events: none;
}
.studio-kpi {
  width: 164px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dfe7f3;
  border-radius: 10px;
  box-shadow: 0 4px 18px #52699712;
  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}
.studio-kpi-icon {
  height: 33px;
  width: 33px;
  border-radius: 9px;
  background: #eef3ff;
  color: #3564ee;
  display: grid;
  place-items: center;
}
.studio-kpi-icon svg {
  width: 17px;
  height: 17px;
}
.studio-kpi small {
  font-size: 10px;
  color: #75839b;
  display: block;
}
.studio-kpi strong {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.studio-kpi .kpi-detail {
  display: block;
  font-size: 9px;
  color: #91a0b3;
}
.studio-camera {
  position: absolute;
  right: 350px;
  top: 94px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px;
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  box-shadow: 0 5px 18px #52699712;
}
.studio-camera button {
  width: 31px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #61728c;
  border-radius: 5px;
}
.studio-camera button:hover {
  background: #edf2fc;
  color: #3564ee;
}
.studio-camera button svg {
  width: 15px;
  height: 15px;
}
.studio-camera .separator {
  height: 1px;
  background: #e8ecf3;
  margin: 3px;
}
.studio-minus {
  font-size: 23px;
  line-height: 1;
}
.studio-inspector {
  position: absolute;
  right: 24px;
  top: 92px;
  width: 306px;
  max-height: calc(100% - 294px);
  z-index: 5;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #dce5f1;
  border-radius: 11px;
  box-shadow: 0 8px 25px #4b62951a;
  display: flex;
  flex-direction: column;
}
.studio-inspector-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid #e7edf5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.studio-zone-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #edf2ff;
  color: #3564ee;
  border-radius: 10px;
  flex-shrink: 0;
}
.studio-inspector .eyebrow {
  font-size: 8px;
  color: #3564ee;
  letter-spacing: 1.2px;
}
.studio-inspector h2 {
  font-size: 15px;
  margin: 3px 0 2px;
  letter-spacing: -0.3px;
}
.studio-inspector p {
  font-size: 10px;
  color: #7e8da4;
}
.studio-inspector .icon-btn {
  height: 24px;
  width: 24px;
  min-width: 24px;
  min-height: 24px;
}
.studio-inspector .icon-btn svg {
  height: 14px;
  width: 14px;
}
.studio-inspector-body {
  padding: 14px 16px;
  overflow: auto;
}
.studio-zone-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.studio-zone-metric {
  background: #f2f6fd;
  border: 1px solid #e9eef6;
  padding: 9px 10px;
  border-radius: 7px;
}
.studio-zone-metric small {
  font-size: 9px;
  color: #7c8ba2;
  display: block;
}
.studio-zone-metric strong {
  font-size: 16px;
  font-weight: 600;
}
.studio-zone-metric .row {
  gap: 5px;
}
.studio-inspector .tiny-title {
  font-size: 10px;
  font-weight: 600;
  color: #586b89;
  margin-bottom: 8px;
}
.studio-inspector .tiny-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f6;
}
.studio-inspector .tiny-row:last-child {
  border: 0;
}
.studio-inspector .tiny-row .avatar {
  width: 24px;
  height: 24px;
  font-size: 8px;
}
.studio-inspector .tiny-row strong {
  font-size: 10px;
  font-weight: 500;
  display: block;
}
.studio-inspector .tiny-row small {
  font-size: 9px;
  color: #8a98ad;
}
.studio-inspector .tiny-row .badge {
  font-size: 8px;
  padding: 3px 5px;
}
.studio-inspector .empty {
  padding: 17px 10px;
  min-height: 110px;
  gap: 6px;
}
.studio-inspector .empty-symbol {
  height: 30px;
  width: 30px;
  background: #f3f6fc;
  border-color: #dfe6f2;
  color: #7893ca;
  border-radius: 9px;
}
.studio-inspector .empty-symbol svg {
  width: 16px;
  height: 16px;
}
.studio-inspector .empty h3 {
  font-size: 11px;
}
.studio-inspector .empty p {
  font-size: 10px;
}
.studio-inspector .empty .btn {
  font-size: 10px;
  padding: 5px 10px;
  min-height: 30px;
}
.studio-inspector-footer {
  padding: 10px 16px;
  border-top: 1px solid #e7edf5;
  display: flex;
  gap: 7px;
}
.studio-inspector-footer .btn {
  font-size: 10px;
  min-height: 31px;
  padding: 6px 10px;
}
.studio-timeline {
  position: absolute;
  left: 24px;
  bottom: 28px;
  width: min(680px, calc(100% - 375px));
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #dce5f1;
  border-radius: 10px;
  z-index: 5;
  box-shadow: 0 5px 20px #4b62951a;
}
.studio-timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.studio-timeline-head h3 {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.studio-timeline-head h3 svg {
  width: 14px;
  height: 14px;
  color: #3564ee;
}
.studio-timeline-head span {
  font-size: 9px;
  color: #8997aa;
}
.studio-steps {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0;
}
.studio-step {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.studio-step:before {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e3eaf5;
}
.studio-step:first-child:before {
  display: none;
}
.studio-step.done:before {
  background: #6488ed;
}
.studio-step-circle {
  height: 27px;
  width: 27px;
  border-radius: 50%;
  background: #f1f5fc;
  border: 1px solid #dce5f4;
  display: grid;
  place-items: center;
  color: #8e9bb2;
  font-size: 10px;
  z-index: 1;
}
.studio-step-circle svg {
  height: 11px;
  width: 11px;
}
.studio-step.current .studio-step-circle {
  background: #3564ee;
  color: white;
  box-shadow: 0 0 0 4px #e8efff;
  border-color: #3564ee;
}
.studio-step.done .studio-step-circle {
  background: #ebf1ff;
  border-color: #6f91f1;
  color: #3564ee;
}
.studio-step small {
  font-size: 8px;
  color: #7d8da6;
}
.studio-timeline-note {
  margin-top: 12px;
  font-size: 9px;
  color: #8b9ab0;
}
.studio-division-bar {
  position: absolute;
  bottom: 28px;
  right: 24px;
  width: 306px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #dce5f1;
  border-radius: 10px;
  z-index: 5;
  padding: 13px 14px;
  box-shadow: 0 5px 20px #4b62951a;
}
.studio-division-bar h3 {
  font-size: 10px;
  margin-bottom: 7px;
  color: #596b89;
}
.studio-division-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 9px;
  color: #6c7c96;
  padding: 6px 5px;
  border-radius: 5px;
  text-align: left;
}
.studio-division-row:hover,
.studio-division-row.active {
  background: #edf3ff;
  color: #3564ee;
}
.studio-division-row svg {
  width: 13px;
  height: 13px;
}
.studio-division-row span {
  flex: 1;
}
.studio-division-row b {
  font-size: 9px;
  font-weight: 500;
}
.studio-map-label {
  position: absolute;
  z-index: 2;
  background: #fffefb;
  border: 1px solid #cedcf2;
  border-radius: 6px;
  padding: 5px 9px;
  box-shadow: 0 3px 10px #455f9017;
  font-size: 10px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  color: #3e567b;
  transform: none;
}
.studio-map-label[hidden] {
  display: none;
}
.studio-label-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.studio-label-connectors line {
  stroke: #7393bd;
  stroke-width: 1;
  opacity: 0.65;
}
.studio-label-connectors circle {
  fill: #7393bd;
  opacity: 0.75;
}
.studio-label-connectors .selected {
  stroke: #3564ee;
  opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) {
  .studio-map-label {
    transition: none;
  }
}
.studio-map-label .pin-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5e87e9;
}
.studio-map-label.selected {
  background: #3564ee;
  border-color: #3564ee;
  color: #fff;
}
.studio-map-label .label-number {
  font-size: 8px;
  opacity: 0.75;
}
.studio-label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.studio-description {
  position: absolute;
  left: 25px;
  top: 192px;
  z-index: 2;
  pointer-events: none;
}
.studio-description h1 {
  font-size: 23px;
  letter-spacing: -0.8px;
  color: #38557e;
  font-weight: 650;
}
.studio-description p {
  font-size: 10px;
  color: #6d86aa;
  margin-top: 4px;
}
.studio-instructions {
  position: absolute;
  left: 24px;
  bottom: 8px;
  color: #8094b2;
  font-size: 8px;
  z-index: 4;
  display: flex;
  gap: 15px;
}
.studio-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  background: #253959e8;
  color: #fff;
  padding: 5px 9px;
  border-radius: 5px;
  z-index: 6;
  font-size: 10px;
  display: none;
}
.studio-webgl-error {
  margin: 150px auto 0;
  max-width: 400px;
  padding: 25px;
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  text-align: center;
  position: relative;
  z-index: 4;
  color: #536a8c;
}
.studio-webgl-error h2 {
  margin-bottom: 10px;
}
.studio-state-warning {
  position: absolute;
  top: 72px;
  left: 24px;
  z-index: 12;
  background: #fff3dc;
  color: #ab7e3c;
  padding: 7px 11px;
  font-size: 10px;
  border-radius: 7px;
  border: 1px solid #f0dcba;
}
.studio-mobile-zones {
  display: none;
}
@media (min-width: 1700px) {
  .studio-inspector {
    width: 338px;
  }
  .studio-division-bar {
    width: 338px;
  }
  .studio-camera {
    right: 383px;
  }
  .studio-timeline {
    width: 740px;
  }
  .studio-kpi {
    width: 185px;
  }
  .studio-kpis {
    gap: 12px;
  }
  .studio-description h1 {
    font-size: 27px;
  }
}
@media (max-width: 1100px) {
  .studio-header {
    gap: 10px;
    padding: 0 17px;
  }
  .studio-brand {
    min-width: 165px;
  }
  .studio-search {
    max-width: 220px;
  }
  .studio-profile {
    display: none;
  }
  .studio-header-actions {
    gap: 8px;
  }
  .studio-inspector {
    width: 260px;
    right: 17px;
    max-height: calc(100% - 277px);
  }
  .studio-camera {
    right: 292px;
  }
  .studio-division-bar {
    width: 260px;
    right: 17px;
  }
  .studio-timeline {
    width: calc(100% - 310px);
    left: 17px;
    padding: 13px;
  }
  .studio-step small {
    font-size: 7px;
  }
  .studio-kpis {
    left: 17px;
  }
  .studio-kpi {
    width: 140px;
    padding: 10px;
  }
  .studio-kpi strong {
    font-size: 20px;
  }
  .studio-description {
    left: 17px;
  }
  .studio-instructions {
    left: 17px;
  }
  .studio-kpi-icon {
    height: 29px;
    width: 29px;
  }
  .studio-step-circle {
    height: 24px;
    width: 24px;
  }
  .studio-steps {
    gap: 0;
  }
}
@media (max-width: 760px) {
  .studio-header {
    height: 60px;
    padding: 0 12px;
  }
  .studio-scene {
    top: 60px;
  }
  .studio-brand {
    min-width: 0;
  }
  .studio-brand strong {
    font-size: 13px;
  }
  .studio-brand span {
    font-size: 7px;
  }
  .studio-brand-mark {
    width: 29px;
    height: 29px;
  }
  .studio-search,
  .studio-live {
    display: none;
  }
  .studio-header-actions {
    gap: 6px;
  }
  .studio-header .btn {
    min-height: 34px;
    font-size: 10px;
    padding: 7px 9px;
  }
  .studio-header .btn svg {
    width: 13px;
    height: 13px;
  }
  .studio-header .btn.new-content span {
    display: none;
  }
  .studio-header .btn.new-content {
    width: 34px;
  }
  .studio-kpis {
    top: 75px;
    left: 12px;
    right: 12px;
    gap: 7px;
  }
  .studio-kpi {
    flex: 1;
    width: auto;
    padding: 8px;
    gap: 7px;
    border-radius: 8px;
  }
  .studio-kpi-icon {
    height: 26px;
    width: 26px;
    border-radius: 7px;
  }
  .studio-kpi-icon svg {
    width: 13px;
    height: 13px;
  }
  .studio-kpi small {
    font-size: 8px;
  }
  .studio-kpi strong {
    font-size: 17px;
  }
  .studio-kpi .kpi-detail {
    display: none;
  }
  .studio-description {
    top: 143px;
    left: 13px;
  }
  .studio-description h1 {
    font-size: 18px;
  }
  .studio-description p {
    font-size: 8px;
    max-width: 235px;
  }
  .studio-camera {
    top: 155px;
    right: 12px;
    gap: 0;
  }
  .studio-camera button {
    min-height: 35px;
    width: 32px;
  }
  .studio-inspector {
    top: auto;
    bottom: 153px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: 34vh;
    display: none;
  }
  .studio-inspector.mobile-visible {
    display: flex;
  }
  .studio-inspector-head {
    padding: 11px 13px;
  }
  .studio-inspector-body {
    padding: 10px 13px;
  }
  .studio-zone-metrics {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 10px;
    gap: 5px;
  }
  .studio-zone-metric {
    padding: 6px;
  }
  .studio-zone-metric small {
    font-size: 7px;
  }
  .studio-zone-metric strong {
    font-size: 13px;
  }
  .studio-inspector-footer {
    padding: 8px 13px;
  }
  .studio-inspector .tiny-row {
    padding: 6px 0;
  }
  .studio-division-bar {
    display: none;
  }
  .studio-mobile-zones {
    position: absolute;
    bottom: 128px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    z-index: 6;
  }
  .studio-mobile-zones button {
    font-size: 8px;
    border-radius: 6px;
    background: #fffffff2;
    border: 1px solid #dce5f1;
    color: #607b9f;
    padding: 7px 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
  }
  .studio-mobile-zones button svg {
    height: 12px;
    width: 12px;
  }
  .studio-mobile-zones button.active {
    background: #3564ee;
    color: white;
    border-color: #3564ee;
  }
  .studio-timeline {
    left: 12px;
    right: 12px;
    bottom: 23px;
    width: auto;
    padding: 12px;
    border-radius: 9px;
  }
  .studio-timeline-head {
    margin-bottom: 12px;
  }
  .studio-timeline-head h3 {
    font-size: 9px;
  }
  .studio-timeline-head span {
    font-size: 8px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .studio-step-circle {
    height: 21px;
    width: 21px;
    font-size: 8px;
  }
  .studio-step:before {
    top: 10px;
  }
  .studio-step small {
    font-size: 6px;
  }
  .studio-timeline-note {
    display: none;
  }
  .studio-instructions {
    left: 13px;
    bottom: 6px;
    gap: 10px;
    font-size: 7px;
  }
  .studio-map-label {
    font-size: 8px;
    padding: 4px 6px;
    gap: 4px;
  }
  .studio-map-label .label-number {
    display: none;
  }
  .studio-state-warning {
    left: 12px;
    top: 63px;
    font-size: 8px;
  }
  .studio-mode .drawer .btn {
    font-size: 12px;
  }
  .studio-mode .main-shell {
    min-height: 0;
  }
}
