:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080a0d;
  color: #f4f5f7;
}

/* Scout entry gate and scene licensing */

body.scout-gate-open {
  overflow: hidden;
  background: #071211;
}

body.scout-gate-open > .app-shell {
  visibility: hidden;
}

.scout-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(16px, 3vw, 44px);
  color: #f4f7f5;
  background:
    radial-gradient(circle at 18% 12%, rgba(8, 160, 69, 0.2), transparent 34%),
    radial-gradient(circle at 86% 86%, rgba(11, 110, 79, 0.18), transparent 36%),
    #071211;
}

.scout-gate[hidden] {
  display: none;
}

.scout-gate-card {
  width: min(1460px, 100%);
  padding: clamp(22px, 3vw, 46px);
  border: 1px solid rgba(244, 247, 245, 0.14);
  border-radius: 20px;
  background: rgba(3, 10, 9, 0.88);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.scout-gate-kicker {
  margin: 0 0 8px;
  color: #38c774;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scout-gate h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 760;
  letter-spacing: -0.045em;
}

.scout-gate-intro {
  max-width: 830px;
  margin: 14px 0 28px;
  color: rgba(244, 247, 245, 0.72);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

.scout-gate a {
  color: #7ce6a5;
}

.scout-scene-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 18px 10px 22px;
  scroll-snap-type: x proximity;
}

.scout-scene-tile {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: visible;
  border: 1px solid rgba(244, 247, 245, 0.12);
  border-radius: 14px;
  background: #0b1211;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  scroll-snap-align: center;
  transform: scale(1);
  transform-origin: center;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.scout-scene-tile.is-active {
  z-index: 10;
  border-color: rgba(124, 230, 165, 0.6);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.46);
  transform: scale(1.055);
}

.scout-preview-window {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: #020807;
  cursor: grab;
}

.scout-preview-window:active {
  cursor: grabbing;
}

.scout-preview-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.scout-preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(244, 247, 245, 0.58);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(11, 110, 79, 0.16), transparent 62%);
  transition: opacity 180ms ease;
}

.scout-preview-loading.is-hidden {
  opacity: 0;
}

.scout-scene-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 12px 13px;
}

.scout-scene-name {
  color: #f4f7f5;
  font-size: 14px;
  font-weight: 700;
}

.scout-scene-choose,
.scout-primary-action,
.scout-secondary-action,
.scout-back-action {
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.scout-scene-choose {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #02130a;
  background: #38c774;
  font-size: 12px;
  font-weight: 780;
}

.scout-preview-license {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.scout-scene-tile.is-active .scout-preview-license {
  opacity: 1;
  pointer-events: auto;
}

.scout-info-button,
.scene-license-toggle {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid rgba(214, 220, 217, 0.58);
  border-radius: 50%;
  color: rgba(214, 220, 217, 0.74);
  background: rgba(5, 9, 8, 0.7);
  font: 600 10px/1 Georgia, serif;
  cursor: pointer;
}

.scout-preview-license-card,
.scene-license-card {
  position: absolute;
  width: min(270px, calc(100vw - 30px));
  padding: 10px 11px;
  border: 1px solid rgba(214, 220, 217, 0.18);
  border-radius: 9px;
  color: rgba(236, 240, 238, 0.78);
  background: rgba(4, 8, 7, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  font-size: 11px;
  line-height: 1.45;
}

.scout-preview-license-card {
  right: -2px;
  bottom: 23px;
}

.scout-preview-license-card strong,
.scene-license-card strong,
.scout-preview-license-card span,
.scene-license-card span,
.scout-preview-license-card small,
.scene-license-card small {
  display: block;
}

.scout-preview-license-card a,
.scene-license-card a {
  color: #b9d8c5;
}

.scout-gate-status {
  min-height: 18px;
  margin: 2px 10px 0;
  color: rgba(244, 247, 245, 0.5);
  font-size: 12px;
}

.scout-selected-scene {
  margin: 18px 0 0;
  color: rgba(244, 247, 245, 0.7);
}

.scout-account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.scout-primary-action,
.scout-secondary-action {
  padding: 13px 20px;
  font-weight: 760;
}

.scout-primary-action {
  min-width: 220px;
  color: #02130a;
  background: #38c774;
  box-shadow: 0 10px 30px rgba(56, 199, 116, 0.2);
}

.scout-secondary-action {
  color: #f4f7f5;
  background: rgba(244, 247, 245, 0.1);
}

.scout-back-action {
  margin-top: 16px;
  padding: 7px 0;
  color: rgba(244, 247, 245, 0.56);
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
}

.scene-license {
  position: fixed;
  left: 12px;
  bottom: 82px;
  z-index: 31;
}

.scene-license-card {
  left: 0;
  bottom: 24px;
}

.scene-license-toggle:hover,
.scene-license-toggle:focus-visible,
.scout-info-button:hover,
.scout-info-button:focus-visible {
  border-color: rgba(244, 247, 245, 0.9);
  color: rgba(244, 247, 245, 0.95);
}

@media (max-width: 720px) {
  .scout-gate {
    place-items: start center;
    padding: 12px;
  }

  .scout-gate-card {
    margin: auto 0;
    padding: 20px 14px;
  }

  .scout-scene-row {
    grid-auto-columns: minmax(230px, 82vw);
  }

  .scout-account-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .scout-primary-action,
  .scout-secondary-action {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #080a0d;
  color: #f4f5f7;
}

button,
input,
select,
a {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.landing-page {
  --landing-ink: #ece8df;
  --landing-paper: #171816;
  --landing-dark: #10110f;
  --landing-signal: #ff5a36;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--landing-paper);
  color: var(--landing-ink);
}

.landing-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px;
  background: var(--landing-paper);
}

.landing-header,
.landing-footer,
.landing-grid,
.capture-hero,
.viewer-feature,
.hero-meta,
.feature-header {
  border-color: var(--landing-ink);
  border-style: solid;
}

.landing-header {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: stretch;
  border-width: 1px 1px 0;
}

.brand-cluster {
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 24px;
}

.landing-brand {
  color: var(--landing-ink);
  font-size: clamp(23px, 2.2vw, 34px);
  text-decoration: none;
}

.brand-wordmark {
  font-weight: 900;
  letter-spacing: -0.055em;
}

.brand-wordmark > span,
.landing-brand > span {
  color: var(--landing-signal);
}

.brand-descriptor {
  padding-left: 24px;
  border-left: 1px solid rgba(236, 232, 223, 0.38);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-link,
.contact-button {
  min-width: 150px;
  display: grid;
  align-items: center;
  place-items: center;
  padding: 0 28px;
  border-left: 1px solid var(--landing-ink);
  color: var(--landing-ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-button {
  background: var(--landing-signal);
  color: var(--landing-dark);
}

.landing-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(360px, 0.92fr);
  border-width: 1px;
}

.capture-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-width: 0 1px 0 0;
  isolation: isolate;
  background: var(--landing-paper);
}

.splat-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--landing-dark);
}

.splat-backdrop iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 500px;
  border: 0;
  filter: none;
  image-rendering: auto;
  opacity: 1;
  transform: translate(-50%, -50%) translateZ(0);
}

.splat-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 11, 10, 0.62) 0%, rgba(13, 14, 13, 0.4) 30%, rgba(16, 17, 16, 0.16) 56%, transparent 80%);
  backdrop-filter: blur(26px) saturate(0.78) brightness(0.86);
  -webkit-backdrop-filter: blur(26px) saturate(0.78) brightness(0.86);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 18%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.34) 62%, transparent 82%);
  mask-image: linear-gradient(90deg, #000 0%, #000 18%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.34) 62%, transparent 82%);
}

.splat-haze::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.07), transparent 35%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 48%);
}

.hero-meta {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-width: 0 0 1px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-meta i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: var(--landing-signal);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(46px, 6vw, 92px) clamp(28px, 4.5vw, 70px);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.landing-page .eyebrow {
  margin: 0 0 16px;
  color: currentColor;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-kicker {
  margin: 0 0 14px;
  color: #9fb7c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-copy .eyebrow::before {
  width: 36px;
  height: 6px;
  content: "";
  background: var(--landing-signal);
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(70px, 8vw, 145px);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-copy h1::first-line {
  color: var(--landing-ink);
}

.hero-byline {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  color: rgba(236, 232, 223, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-byline .brand-wordmark {
  color: var(--landing-ink);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
}

.hero-description {
  max-width: 690px;
  margin: 28px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.35;
}

.viewer-feature {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(260px, 0.95fr) auto;
  border-width: 0;
  background: var(--landing-signal);
  color: var(--landing-dark);
  border-color: var(--landing-dark);
}

.viewer-feature .feature-header {
  border-color: var(--landing-dark);
}

.feature-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 0 26px;
  border-width: 0 0 1px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-graphic {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--landing-dark);
  background-image:
    linear-gradient(var(--landing-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--landing-dark) 1px, transparent 1px);
  background-size: 25% 25%;
}

.feature-wordmark {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 3.2vw, 52px);
  color: var(--landing-dark);
  font-size: clamp(76px, 7.5vw, 132px);
  font-weight: 950;
  line-height: 0.72;
  letter-spacing: -0.06em;
}

.feature-wordmark span {
  display: block;
}

.feature-copy {
  padding: clamp(28px, 3.4vw, 54px);
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(52px, 5.5vw, 92px);
  line-height: 0.76;
  letter-spacing: -0.055em;
}

.feature-description {
  max-width: 460px;
  margin: 28px 0;
}

.feature-description p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.3;
}

.feature-description p + p {
  margin-top: 18px;
}

.enter-button {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border: 1px solid var(--landing-dark);
  background: transparent;
  color: var(--landing-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.enter-button span {
  font-size: 22px;
}

.header-link:hover,
.header-link:focus-visible,
.enter-button:hover,
.enter-button:focus-visible {
  outline: none;
  background: var(--landing-dark);
  color: var(--landing-paper);
}

.contact-button:hover,
.contact-button:focus-visible {
  outline: none;
  background: var(--landing-ink);
  color: var(--landing-dark);
}

.header-link:focus-visible,
.contact-button:focus-visible,
.enter-button:focus-visible,
.landing-brand:focus-visible {
  box-shadow: inset 0 0 0 3px var(--landing-signal);
}

.landing-footer {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-width: 0 1px 1px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .capture-hero {
    min-height: 740px;
    border-width: 0 0 1px;
  }

  .viewer-feature {
    grid-template-columns: minmax(260px, 0.65fr) 1fr;
    grid-template-rows: auto minmax(360px, auto);
  }

  .feature-header {
    grid-column: 1 / -1;
  }

  .feature-graphic {
    border-right: 1px solid var(--landing-dark);
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .landing-shell {
    padding: 10px;
  }

  .landing-header {
    grid-template-columns: 1fr auto auto;
  }

  .landing-brand {
    font-size: 18px;
  }

  .brand-cluster {
    padding: 0 10px;
    gap: 8px;
  }

  .brand-descriptor {
    max-width: 52px;
    padding-left: 8px;
    font-size: 6.5px;
    line-height: 1.2;
  }

  .header-link,
  .contact-button {
    min-width: 70px;
    padding: 0 8px;
    font-size: 9px;
  }

  .capture-hero {
    min-height: 700px;
  }

  .hero-meta {
    padding: 0 18px;
  }

  .hero-meta span:last-child {
    display: none;
  }

  .splat-haze {
    background: linear-gradient(90deg, rgba(10, 11, 10, 0.68) 0%, rgba(13, 14, 13, 0.46) 42%, rgba(16, 17, 16, 0.16) 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 28%, rgba(0, 0, 0, 0.72) 58%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 28%, rgba(0, 0, 0, 0.72) 58%, transparent 100%);
  }

  .hero-copy {
    padding: 52px 24px;
  }

  .hero-copy h1 {
    font-size: clamp(56px, 18vw, 86px);
    line-height: 0.8;
  }

  .viewer-feature {
    grid-template-columns: 1fr;
    grid-template-rows: auto 260px auto;
  }

  .feature-header {
    grid-column: auto;
  }

  .feature-graphic {
    border-right: 0;
    border-bottom: 1px solid var(--landing-dark);
  }

  .feature-copy {
    padding: 30px 24px;
  }

  .landing-footer {
    justify-content: center;
    padding: 0 16px;
    text-align: center;
  }

  .landing-footer span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page *,
  .landing-page *::before,
  .landing-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.viewer-page {
  height: 100vh;
  overflow: hidden;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(51, 65, 85, 0.2), transparent 58%),
    #080a0d;
}

#engine-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.viewer-header {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.brand-link,
.scene-identity {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 13, 0.78);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.brand-link {
  position: static;
  padding: 10px 12px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.scene-identity {
  position: fixed;
  top: 64px;
  right: auto;
  bottom: auto;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px 8px 13px;
  border-radius: 999px;
  font-size: 12px;
}

.scene-label {
  color: #e8edf2;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aeb9c4;
}

.connection-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9a441;
}

.connection-status[data-state="online"]::before {
  background: #5ee6a8;
  box-shadow: 0 0 0 4px rgba(94, 230, 168, 0.1);
}

.connection-status[data-state="viewer"]::before {
  background: #67c7ee;
}

.connection-status[data-state="offline"]::before {
  background: #ef7d7d;
}

.camera-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  width: min(390px, calc(100% - 32px));
  max-height: none;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(9, 12, 16, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
  transition: top 180ms ease-out, bottom 180ms ease-out, height 180ms ease-out, max-height 180ms ease-out;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
}

.panel-kicker {
  margin-bottom: 4px;
  font-size: 10px;
}

.panel-heading h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-toggle,
.list-action {
  border: 0;
  background: transparent;
  color: #aeb9c4;
  font-size: 12px;
}

.panel-toggle:hover,
.panel-toggle:focus-visible,
.list-action:hover,
.list-action:focus-visible {
  color: #ffffff;
}

.panel-content {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.panel-content[hidden] {
  display: none;
}

.camera-panel.is-collapsed {
  top: 62px;
  bottom: auto;
  width: auto;
  padding: 8px 10px;
}

.camera-panel.is-collapsed .camera-visibility-control {
  display: none;
}

.camera-panel.is-compact {
  top: auto;
  bottom: 0;
  height: 25vh;
  min-height: 180px;
  max-height: 280px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.camera-panel.is-compact .panel-content {
  margin-top: 10px;
}

.camera-panel.is-compact .panel-content > :not(#camera-tools-mount) {
  display: none;
}

.camera-panel.is-compact #camera-tools-mount {
  min-height: 0;
}

.inspector-section {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  color: #dce4ea;
}

.camera-inspector-section {
  border-color: rgba(255, 255, 255, 0.16);
}

.inspector-section > summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.065);
  color: #eef3f6;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  list-style: none;
  text-transform: uppercase;
}

.inspector-section > summary::-webkit-details-marker {
  display: none;
}

.inspector-section > summary::after {
  content: '+';
  color: #ff8b38;
  font-size: 17px;
  font-weight: 500;
}

.inspector-section[open] > summary::after {
  content: '\2212';
}

.inspector-section > summary:hover,
.inspector-section > summary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.consolidated-section {
  padding: 12px;
}

.control-subsection {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

#scene-content > .control-subsection:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.saved-scenes-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.saved-scenes-heading h2 {
  margin: 0;
}

.scene-save-state {
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.scene-save-state[data-state="saved"] {
  border-color: rgba(96, 177, 121, 0.38);
  background: rgba(96, 177, 121, 0.12);
  color: #8dcea1;
}

.scene-save-state[data-state="changes"] {
  border-color: rgba(215, 174, 78, 0.4);
  background: rgba(215, 174, 78, 0.12);
  color: #d9bb72;
}

.scene-save-state[data-state="unsaved"] {
  border-color: rgba(143, 154, 162, 0.3);
  background: rgba(143, 154, 162, 0.09);
  color: #929da5;
}

#scene-name[data-state="saved"] {
  border-color: rgba(96, 177, 121, 0.48);
}

#scene-name[data-state="changes"] {
  border-color: rgba(215, 174, 78, 0.58);
}

.control-subsection h2,
.camera-settings h2 {
  margin: 0;
  font-size: 13px;
}

.field-label {
  display: block;
  margin: 0 0 6px;
  color: #9eabb7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-field {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f5f7;
  outline: none;
}

.text-field:focus {
  border-color: rgba(112, 214, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(112, 214, 255, 0.1);
}

.text-field:disabled,
.primary-tool:disabled,
.secondary-tool:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

select.text-field {
  appearance: auto;
}

.field-row {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}

.grow-field {
  flex: 1;
  min-width: 0;
}

.camera-place-row {
  align-items: stretch;
}

.camera-button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-width: 188px;
  align-self: end;
}

.camera-name-row {
  margin-top: 10px;
}

.section-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-heading-row .panel-kicker {
  margin: 0 0 3px;
}

.camera-settings {
  display: grid;
  gap: 9px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.saved-shots {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.saved-shots-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.saved-shots-heading h2 {
  margin: 0;
  font-size: 14px;
}

.shot-list-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.camera-sort {
  min-height: 28px;
  max-width: 116px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: #1a2228;
  color: #c4ced5;
  font: inherit;
  font-size: 9px;
}

.camera-count {
  min-width: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 122, 26, 0.45);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  color: #ffad70;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.camera-settings[hidden] {
  display: none;
}

.camera-settings.is-card-settings {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 3px 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: camera-settings-open 180ms ease-out;
}

@keyframes camera-settings-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.camera-settings .field-label {
  margin: 2px 0 -3px;
}

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

.setting-field {
  display: grid;
  gap: 5px;
  color: #9eabb7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.number-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.number-with-unit > span {
  color: #82909c;
  font-size: 10px;
}

.range-field > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.range-field input[type="range"] {
  width: 100%;
  accent-color: #70d6ff;
}

.dof-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
}

.focus-distance-field {
  margin-top: 2px;
}

.pcui-focus-control {
  display: block;
  min-width: 0;
}

.craig3d-focus-slider.pcui-slider {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.craig3d-focus-slider .pcui-numeric-input {
  width: 82px;
  flex: 0 0 82px;
}

.checkbox-field {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #dce4ea;
  font-size: 11px;
}

.checkbox-field input {
  accent-color: #70d6ff;
}

.preset-controls {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.preset-controls .field-row {
  margin-top: 0;
}

.shot-format-grid {
  margin-top: 2px;
}

.shot-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 4px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
}

.shot-metrics > div {
  min-width: 0;
  padding: 8px 9px;
  background: #151b20;
}

.shot-metrics .metric-location {
  grid-column: 1 / -1;
}

.shot-metrics dt {
  color: #82909c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot-metrics dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: #eef3f6;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-button-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 10px;
}

.calibration-intro {
  margin-top: 0;
}

.ground-plane-setup {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid rgba(112, 214, 255, 0.22);
  border-radius: 9px;
  background: rgba(112, 214, 255, 0.045);
}

.ground-plane-setup h3 {
  margin: 2px 0 0;
  color: #eef3f6;
  font-size: 13px;
}

.ground-plane-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.ground-plane-actions .primary-tool,
.ground-plane-actions .secondary-tool {
  min-height: 34px;
  padding-inline: 8px;
}

.map-match-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.map-match-heading,
.world-map-heading,
.world-map-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.map-match-heading h3 {
  margin: 2px 0 0;
  color: #eef3f6;
  font-size: 13px;
  line-height: 1.35;
}

.map-match-heading .secondary-tool {
  min-height: 34px;
  padding-inline: 10px;
}

.world-anchor-list {
  display: grid;
  gap: 7px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.world-anchor-empty {
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #7f8c96;
  font-size: 11px;
  line-height: 1.4;
}

.world-anchor-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
}

.world-anchor-index {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 202, 58, 0.65);
  border-radius: 50%;
  color: #ffca3a;
  font-size: 11px;
  font-weight: 800;
}

.world-anchor-copy {
  min-width: 0;
  color: #dce5ec;
  font-size: 10px;
  line-height: 1.45;
}

.world-anchor-copy span {
  display: block;
  overflow: hidden;
  color: #7f8c96;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-anchor-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.world-anchor-buttons button {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce5ec;
  font-size: 10px;
  cursor: pointer;
}

.map-match-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.map-match-actions .primary-tool,
.map-match-actions .secondary-tool {
  min-height: 34px;
  padding-inline: 8px;
}

.calibration-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.calibration-actions .primary-tool {
  grid-column: 1 / -1;
}

.calibration-guide-toggle {
  width: 100%;
  margin: 0 0 12px;
}

.calibration-help {
  margin: 8px 0 0;
  color: #7f8c96;
  font-size: 10px;
  line-height: 1.45;
}

.primary-tool,
.secondary-tool {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 7px;
  white-space: nowrap;
}

.primary-tool {
  border: 1px solid #dce5ec;
  background: #edf2f6;
  color: #11161b;
  font-weight: 700;
}

.secondary-tool {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #eef2f5;
}

.primary-tool:hover:not(:disabled),
.secondary-tool:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.55);
}

#export-shotlist {
  border-color: #4d9a69;
  background: #32784c;
  color: #ffffff;
}

#export-shotlist:hover:not(:disabled),
#export-shotlist:focus-visible:not(:disabled) {
  border-color: #70b889;
  background: #3b8958;
  color: #ffffff;
}

.full-width {
  width: 100%;
  margin-top: 10px;
}

.camera-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.camera-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.camera-item.is-selected {
  border-color: rgba(255, 122, 26, 0.65);
  background: rgba(255, 122, 26, 0.08);
  box-shadow: inset 3px 0 #ff7a1a;
}

.shot-camera-name {
  font-size: 9px;
  font-weight: 600;
}

.shot-camera-name.is-saved-camera-name {
  color: #86c99a;
}

.shot-camera-name.is-unsaved-camera-name {
  color: #d6b866;
}

.shot-camera-picker {
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(112, 214, 255, 0.18);
  border-radius: 7px;
  background: rgba(112, 214, 255, 0.045);
}

#shot-camera-preset {
  min-height: 30px;
  padding: 4px 7px;
  font-size: 10px;
}

.shot-authorship {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  color: #8997a3;
  font-size: 9px;
}

.shot-authorship strong {
  color: #dce6eb;
}

.camera-library-section .consolidated-section,
.camera-library-group {
  display: grid;
  gap: 8px;
}

.camera-library-section {
  overflow: visible;
}

.camera-library-add-favorite {
  width: 100%;
  min-height: 32px;
  margin-top: 12px;
  font-size: 10px;
}

.camera-library-none {
  padding: 4px 1px 1px;
  color: #7d8992;
  font-size: 10px;
}

.camera-library-group + .camera-library-group {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-heading-row h2 {
  margin: 0;
  font-size: 13px;
}

.saved-camera-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.saved-camera-item {
  position: relative;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.compact-camera-list .saved-camera-item {
  min-height: 35px;
  padding-block: 5px;
}

.saved-camera-color {
  width: 7px;
  height: 24px;
  border-radius: 999px;
}

.saved-camera-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.saved-camera-copy strong,
.saved-camera-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-camera-copy strong {
  font-size: 11px;
}

.saved-camera-item.is-saved-camera .saved-camera-copy strong {
  color: #86c99a;
}

.saved-camera-item.is-unsaved-camera .saved-camera-copy strong {
  color: #d6b866;
}

.saved-camera-copy span {
  color: #83919c;
  font-size: 9px;
}

.saved-camera-menu > summary {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  color: #9aa8b2;
  cursor: pointer;
  list-style: none;
}

.saved-camera-menu > summary::-webkit-details-marker {
  display: none;
}

.saved-camera-menu > summary:hover,
.saved-camera-menu > summary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.saved-camera-menu-actions {
  position: absolute;
  top: 34px;
  right: 7px;
  z-index: 20;
  display: grid;
  min-width: 120px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #11171d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.saved-camera-menu-actions .list-action {
  min-height: 30px;
  padding: 0 8px;
  text-align: left;
}

.compact-empty-state {
  padding: 10px;
  font-size: 10px;
}

.camera-item:not(.is-hidden) .camera-copy {
  cursor: pointer;
}

.camera-item.is-viewed-by-others {
  border-color: rgba(112, 214, 255, 0.7);
  box-shadow: inset 3px 0 #70d6ff, 0 0 0 1px rgba(112, 214, 255, 0.18);
}

.camera-viewers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.camera-viewer-badge {
  padding: 3px 6px;
  border: 1px solid rgba(112, 214, 255, 0.4);
  border-radius: 999px;
  background: rgba(112, 214, 255, 0.1);
  color: #bcecff;
  font-size: 9px;
  font-weight: 700;
}

.camera-item.has-unsaved-changes {
  border-color: rgba(255, 204, 74, 0.48);
  box-shadow: inset 3px 0 #ffcc4a;
}

.camera-item.is-hidden {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.018);
  box-shadow: none;
}

.camera-item.is-hidden .camera-preview-action,
.camera-item.is-hidden .camera-copy {
  filter: grayscale(1);
  opacity: 0.42;
  pointer-events: none;
}

.camera-item.is-hidden .camera-actions {
  filter: none;
  opacity: 1;
}

.camera-preview-action {
  position: relative;
  width: 112px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #111820;
  color: #dbe4e9;
  cursor: pointer;
}

.camera-preview-action:hover,
.camera-preview-action:focus-visible {
  border-color: rgba(255, 122, 26, 0.8);
  outline: none;
}

.camera-preview-action img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.camera-preview-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(112, 214, 255, 0.08), rgba(255, 122, 26, 0.08)),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, 0.025) 8px 9px);
  color: #66747e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.camera-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.camera-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}

.camera-card-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f2f5f7;
  font-size: 13px;
}

.camera-name-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.camera-name-group strong {
  min-width: 0;
}

.has-unsaved-changes .camera-name-group strong {
  color: #ffd45c;
}

.camera-change-status {
  flex: 0 0 auto;
  color: #8f9aa2;
  font-size: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.camera-owner {
  flex: 0 0 auto;
  color: #98a5b1;
  font-size: 9px;
  text-transform: uppercase;
}

.camera-description {
  overflow: hidden;
  margin: 0;
  color: #aab5bd;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-compact-settings {
  margin-top: -3px;
  color: #84919b;
  font-size: 9px;
  line-height: 1.35;
}

.camera-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.camera-actions .list-action {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  color: #b8c3cb;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.camera-actions .list-action:hover,
.camera-actions .list-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.camera-actions .primary-card-action {
  border-color: rgba(255, 204, 74, 0.42);
  color: #ffd45c;
}

.camera-actions .view-action {
  border-color: rgba(82, 170, 112, 0.34);
  background: rgba(40, 104, 61, 0.25);
  color: #a9d9b7;
}

.camera-actions .edit-action {
  border-color: rgba(196, 159, 62, 0.36);
  background: rgba(112, 86, 25, 0.25);
  color: #e1ca83;
}

.camera-actions .danger-action {
  border-color: rgba(184, 73, 73, 0.38);
  background: rgba(112, 38, 38, 0.25);
  color: #e7a0a0;
}

.camera-actions .view-action:hover,
.camera-actions .view-action:focus-visible {
  border-color: rgba(105, 194, 134, 0.58);
  background: rgba(47, 124, 72, 0.38);
}

.camera-actions .edit-action:hover,
.camera-actions .edit-action:focus-visible {
  border-color: rgba(218, 180, 79, 0.6);
  background: rgba(129, 99, 28, 0.4);
}

.camera-actions .danger-action:hover,
.camera-actions .danger-action:focus-visible {
  border-color: rgba(207, 91, 91, 0.62);
  background: rgba(129, 43, 43, 0.4);
}

.camera-actions .list-action:disabled {
  cursor: default;
  opacity: 0.42;
}

.danger-action:hover,
.danger-action:focus-visible {
  color: #ff8e8e;
}

.empty-state {
  padding: 16px 8px;
  color: #8996a2;
  font-size: 12px;
  text-align: center;
}

.panel-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-section h2 {
  margin: 0;
  font-size: 13px;
}

.asset-section {
  display: grid;
  gap: 9px;
}

.asset-section .field-label {
  margin: 2px 0 0;
}

.file-field {
  width: 100%;
  min-height: 42px;
  padding: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9c4cd;
  font-size: 11px;
}

.file-field::file-selector-button {
  min-height: 28px;
  margin-right: 9px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  color: #eef2f5;
  cursor: pointer;
}

.asset-status {
  margin: 0;
  color: #8997a3;
  font-size: 10px;
  line-height: 1.4;
}

.collaborator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.collaborator-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd3da;
  font-size: 11px;
}

.presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #70d6ff;
}

.scene-sharing {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.scene-member-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene-member-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  color: #dce5ec;
  font-size: 10px;
}

.scene-member-list select,
.scene-member-form select {
  min-height: 30px;
}

.scene-member-remove {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(255, 112, 112, 0.35);
  border-radius: 5px;
  background: rgba(255, 112, 112, 0.08);
  color: #ffb0b0;
  cursor: pointer;
}

.scene-member-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.scene-member-form input {
  grid-column: 1 / -1;
}

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

.timeline-panel {
  position: absolute;
  right: 422px;
  bottom: 16px;
  left: 16px;
  z-index: 6;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 8px 14px;
  min-height: 102px;
  padding: 12px 78px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(9, 12, 16, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease-out;
}

.timeline-panel.is-collapsed {
  right: auto;
  width: auto;
  min-height: 0;
  display: block;
  padding: 8px 10px;
  transform: none;
}

.timeline-panel.is-collapsed > :not(.timeline-toggle) {
  display: none;
}

.timeline-panel.is-collapsed .timeline-toggle {
  position: static;
}

.timeline-toggle {
  position: absolute;
  top: 7px;
  right: 9px;
  z-index: 2;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: #202a2d;
  color: #b9c4ca;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
}

.timeline-toggle:hover,
.timeline-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.timeline-toolbar {
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: auto auto;
  align-content: center;
  align-items: center;
  gap: 7px 10px;
  min-width: 160px;
}

.timeline-play {
  grid-row: 1 / span 2;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f7f9;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.timeline-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.timeline-play[aria-pressed="true"]::before {
  width: 14px;
  height: 18px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(to right, currentColor 0 5px, transparent 5px 9px, currentColor 9px 14px);
}

.timeline-play:hover,
.timeline-play:focus-visible {
  border-color: #70d6ff;
  background: rgba(112, 214, 255, 0.14);
  outline: none;
}

.timeline-readout {
  display: grid;
  gap: 1px;
}

.timeline-readout strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.timeline-readout span,
.timeline-duration {
  color: #96a4af;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.timeline-duration::before {
  content: "of ";
}

.timeline-scrubber {
  width: 100%;
  margin: 3px 0 0;
  accent-color: #70d6ff;
}

.timeline-markers {
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 0 2px;
  scrollbar-width: thin;
}

.timeline-marker {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #bdc8d1;
  font-size: 10px;
}

.timeline-marker:hover,
.timeline-marker:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  outline: none;
}

.camera-timeline-marker.color-0,
.camera-timeline-marker.color-1,
.camera-timeline-marker.color-2,
.camera-timeline-marker.color-3,
.camera-timeline-marker.color-4,
.camera-timeline-marker.color-5,
.camera-timeline-marker.color-6 {
  color: #071014;
  font-weight: 800;
}

.scene-timeline-marker::before {
  content: "◇ ";
  color: #9fb7c8;
}

.color-0 { border-color: #70d6ff; background-color: #70d6ff; }
.color-1 { border-color: #ff70a6; background-color: #ff70a6; }
.color-2 { border-color: #ffca3a; background-color: #ffca3a; }
.color-3 { border-color: #8ac926; background-color: #8ac926; }
.color-4 { border-color: #c77dff; background-color: #c77dff; }
.color-5 { border-color: #fb8500; background-color: #fb8500; }
.color-6 { border-color: #5eead4; background-color: #5eead4; }

.camera-index.color-0,
.camera-index.color-1,
.camera-index.color-2,
.camera-index.color-3,
.camera-index.color-4,
.camera-index.color-5,
.camera-index.color-6 {
  background-color: transparent;
}

.loading-panel {
  position: absolute;
  left: 16px;
  bottom: 132px;
  z-index: 7;
  max-width: min(460px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(8, 10, 13, 0.86);
  color: #dce3e8;
  font-size: 12px;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loading-panel.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.camera-frame-guide {
  --camera-aspect: 1.5;
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 2;
  width: min(72vw, calc(66vh * var(--camera-aspect)));
  aspect-ratio: var(--camera-aspect);
  border: 1px solid rgba(232, 241, 248, 0.72);
  box-shadow:
    0 0 0 100vmax rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.camera-presence-status {
  position: absolute;
  z-index: 15;
  top: 70px;
  left: 50%;
  max-width: min(560px, 78vw);
  padding: 7px 11px;
  border: 1px solid rgba(112, 214, 255, 0.55);
  border-radius: 999px;
  background: rgba(7, 16, 20, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #dff6ff;
  font-size: 11px;
  font-weight: 750;
  pointer-events: none;
  transform: translateX(-50%);
}

.camera-frame-guide::before,
.camera-frame-guide::after {
  content: "";
  position: absolute;
  background: rgba(232, 241, 248, 0.36);
  display: none;
}

.camera-frame-guide::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.camera-frame-guide::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.camera-frame-guide[data-framelines="center"]::before,
.camera-frame-guide[data-framelines="center"]::after {
  display: block;
}

.frame-thirds,
.frame-safe {
  position: absolute;
  inset: 0;
  display: none;
}

.camera-frame-guide[data-framelines="thirds"] .frame-thirds,
.camera-frame-guide[data-framelines="thirds-safe"] .frame-thirds {
  display: block;
  background:
    linear-gradient(to right, transparent calc(33.333% - 0.5px), rgba(232, 241, 248, 0.44) 33.333%, transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), rgba(232, 241, 248, 0.44) 66.666%, transparent calc(66.666% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.333% - 0.5px), rgba(232, 241, 248, 0.44) 33.333%, transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), rgba(232, 241, 248, 0.44) 66.666%, transparent calc(66.666% + 0.5px));
}

.camera-frame-guide[data-framelines="safe"] .frame-safe,
.camera-frame-guide[data-framelines="thirds-safe"] .frame-safe {
  inset: 5%;
  display: block;
  border: 1px solid rgba(232, 241, 248, 0.46);
  box-shadow: inset 0 0 0 5vmin transparent;
}

.camera-frame-guide[data-framelines="safe"] .frame-safe::after,
.camera-frame-guide[data-framelines="thirds-safe"] .frame-safe::after {
  content: "";
  position: absolute;
  inset: 5%;
  border: 1px dashed rgba(232, 241, 248, 0.34);
}

.viewer-display-controls {
  position: absolute;
  top: 16px;
  right: auto;
  left: 16px;
  z-index: 10;
  display: flex;
  gap: 7px;
}

.camera-display-controls {
  position: absolute;
  top: 16px;
  right: 422px;
  z-index: 10;
  display: flex;
  gap: 7px;
  transition: right 180ms ease-out;
}

.camera-panel-reduced .camera-display-controls {
  right: 16px;
}

.fullscreen-toggle,
.ui-toggle,
.account-toggle,
.camera-display-controls button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(9, 12, 16, 0.78);
  color: #eef3f6;
  font: inherit;
  font-size: 11px;
  backdrop-filter: blur(14px);
}

.ui-hidden .viewer-header,
.ui-hidden .camera-panel,
.ui-hidden .timeline-panel,
.ui-hidden .navigation-toolbar,
.ui-hidden .transform-toolbar,
.ui-hidden .loading-panel,
.ui-hidden .camera-frame-guide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ui-hidden .camera-presence-status {
  opacity: 0;
  visibility: hidden;
}

.ui-hidden .viewer-display-controls {
  top: 16px;
  right: auto;
  left: 16px;
}

.ui-hidden .camera-display-controls {
  right: 16px;
}

.ui-hidden .fullscreen-toggle {
  display: none;
}

.ui-hidden .viewer-display-controls .brand-link {
  display: none;
}

.ui-hidden .account-toggle {
  display: none;
}

.ui-hidden .ui-toggle {
  opacity: 0.28;
}

.ui-hidden .ui-toggle:hover,
.ui-hidden .ui-toggle:focus-visible {
  opacity: 1;
}

.auth-dialog {
  width: min(92vw, 470px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(12, 15, 20, 0.98);
  color: #eef3f6;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.auth-dialog::backdrop {
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(7px);
}

.scene-overwrite-dialog {
  width: min(92vw, 560px);
}

.scene-manager-dialog {
  width: min(96vw, 980px);
  max-height: 88vh;
}

.scene-invite-dialog {
  width: min(94vw, 620px);
}

.scene-delete-dialog {
  width: min(92vw, 520px);
}

.scene-overwrite-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.scene-overwrite-actions > :last-child {
  grid-column: 1 / -1;
}

.scene-delete-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.danger-tool {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255, 112, 112, 0.6);
  border-radius: 7px;
  background: rgba(255, 112, 112, 0.12);
  color: #ffd7d7;
  font-weight: 750;
  cursor: pointer;
}

.compact-danger {
  min-height: 36px;
  padding: 0 11px;
  font-size: 10px;
}

.scene-table-wrap {
  max-height: min(58vh, 560px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
}

.scene-manager-profile {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  align-items: end;
  gap: 4px 12px;
  margin: 14px 0;
}

.scene-manager-profile .field-label {
  grid-column: 1;
  margin: 0;
}

.scene-manager-profile .text-field {
  grid-column: 1;
}

.scene-manager-profile p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #87949e;
  font-size: 10px;
}

.scene-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.scene-table th,
.scene-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}

.scene-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #11161c;
  color: #84919c;
  font-size: 9px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.scene-table tbody tr:last-child td {
  border-bottom: 0;
}

.scene-table tbody tr.is-active {
  background: rgba(112, 214, 255, 0.055);
}

.scene-table-name {
  display: grid;
  gap: 3px;
  min-width: 150px;
}

.scene-table-name strong {
  color: #edf4f7;
  font-size: 12px;
}

.scene-table-name span,
.scene-table-people,
.scene-table-date {
  color: #8997a3;
}

.scene-role-badge,
.scene-active-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(112, 214, 255, 0.25);
  border-radius: 999px;
  background: rgba(112, 214, 255, 0.08);
  color: #cfeefa;
  font-size: 9px;
  font-weight: 800;
  text-transform: capitalize;
}

.scene-active-badge {
  margin-left: 5px;
  border-color: rgba(94, 230, 168, 0.28);
  background: rgba(94, 230, 168, 0.08);
  color: #bdf4d8;
}

.scene-table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.scene-table-empty {
  padding: 30px 14px !important;
  color: #8997a3;
  text-align: center !important;
}

.profile-camera-library {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.favorite-camera-options {
  display: grid;
  gap: 7px;
  max-height: min(48vh, 430px);
  margin: 14px 0;
  overflow: auto;
}

.favorite-camera-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  cursor: pointer;
}

.favorite-camera-option:has(input:checked) {
  border-color: rgba(112, 214, 255, 0.55);
  background: rgba(112, 214, 255, 0.08);
}

.favorite-camera-option > span {
  display: grid;
  gap: 3px;
}

.favorite-camera-option small {
  overflow: hidden;
  color: #8997a3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-map-dialog {
  width: min(94vw, 920px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: #0c0f14;
  color: #eef3f6;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.world-map-dialog::backdrop {
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(7px);
}

.world-map-card {
  padding: 20px;
}

.world-map-heading h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.world-map-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 16px;
}

.world-map-results {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 8px 0;
  scrollbar-width: thin;
}

.world-map-result {
  flex: 0 0 min(310px, 75vw);
  min-height: 42px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce5ec;
  font: inherit;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  cursor: pointer;
}

.world-map-canvas {
  position: relative;
  height: min(52vh, 500px);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: #cbd3d6;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.world-map-canvas:active {
  cursor: grabbing;
}

.world-map-tiles,
.world-map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  pointer-events: none;
}

.world-map-tiles {
  inset: 0;
  width: auto;
  height: auto;
}

.world-map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 3px solid #ffca3a;
  border-radius: 50% 50% 50% 0;
  background: rgba(8, 16, 20, 0.85);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -100%) rotate(-45deg);
  pointer-events: none;
}

.world-map-marker::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #ffca3a;
  content: '';
}

.world-map-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.world-map-zoom button {
  width: 36px;
  height: 34px;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #10171a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.world-map-zoom button + button {
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.world-map-attribution {
  position: absolute;
  right: 7px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.82);
  color: #1b4f72;
  font-size: 10px;
  text-decoration: none;
}

.world-map-footer {
  margin-top: 12px;
}

.world-map-footer strong {
  font-size: 13px;
}

.world-map-footer p {
  margin: 4px 0;
}

.world-map-footer a {
  color: #70d6ff;
  font-size: 11px;
}

@media (max-width: 620px) {
  .world-map-card {
    padding: 14px;
  }

  .world-map-canvas {
    min-height: 280px;
  }

  .world-map-footer {
    display: grid;
  }

  .world-map-footer .primary-tool {
    width: 100%;
  }
}

.auth-dialog-card {
  padding: 22px;
}

.auth-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.auth-dialog-heading h2 {
  margin: 3px 0 0;
  font-size: 21px;
}

.auth-close,
.auth-text-button {
  border: 0;
  background: transparent;
  color: #9eabb7;
  cursor: pointer;
}

.auth-close {
  padding: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-intro {
  margin: 0 0 18px;
  color: #bac5ce;
  font-size: 13px;
  line-height: 1.55;
}

.auth-field-row {
  align-items: stretch;
  margin-top: 0;
}

.auth-code {
  flex: 1;
  letter-spacing: 0.28em;
  text-align: center;
  font-size: 18px;
}

.auth-text-button {
  margin-top: 10px;
  padding: 0;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
  color: #6f7b85;
  font-size: 10px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-status {
  min-height: 18px;
  margin: 14px 0 0;
  color: #9ecde2;
  font-size: 11px;
  line-height: 1.45;
}

.auth-status[data-error="true"] {
  color: #ff9c9c;
}

.navigation-toolbar {
  position: absolute;
  top: auto;
  bottom: 134px;
  left: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(9, 12, 16, 0.78);
  color: #aeb9c4;
  font-size: 10px;
  backdrop-filter: blur(14px);
  transition: bottom 180ms ease-out;
}

.transform-toolbar {
  position: absolute;
  top: 24%;
  left: 16px;
  z-index: 7;
  width: 58px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(9, 12, 16, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.transform-toolbar-heading {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0 2px 7px;
}

.transform-toolbar-heading:has(.transform-axis-indicator[hidden]) {
  display: none;
}

.transform-axis-indicator {
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0a0d10;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: center;
}

.transform-axis-indicator[data-axis="x"] {
  border-color: #f52e2e;
}

.transform-axis-indicator[data-axis="y"] {
  border-color: #ffca1a;
}

.transform-axis-indicator[data-axis="z"] {
  border-color: #29e052;
}

.transform-tool-buttons {
  display: grid;
  gap: 5px;
}

.transform-tool {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #89959e;
  font-weight: 750;
  cursor: pointer;
}

.transform-tool svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transform-tool span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.transform-tool:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.transform-tool.is-active,
.transform-tool[aria-pressed="true"] {
  border-color: rgba(112, 214, 255, 0.72);
  background: rgba(112, 214, 255, 0.15);
  color: #ffffff;
}

.transform-tool:hover,
.transform-tool:focus-visible {
  color: #ffffff;
  outline: none;
}

.camera-visibility-control {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 10px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.camera-visibility-control > span {
  color: #89959e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.camera-visibility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.camera-visibility-row > span {
  color: #98a6b1;
  font-size: 10px;
}

.camera-visibility-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
}

.camera-visibility-options button {
  min-width: 0;
  min-height: 25px;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: #7f8c96;
  font-size: 8px;
  font-weight: 750;
  cursor: pointer;
}

.camera-visibility-options button:last-child {
  border-right: 0;
}

.camera-visibility-options button[aria-pressed="true"] {
  background: rgba(112, 214, 255, 0.15);
  color: #eefaff;
}

.timeline-collapsed .navigation-toolbar {
  bottom: 70px;
}

.navigation-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(62px, 1fr));
}

.navigation-option {
  position: relative;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px 0 0 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #717d84;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.navigation-option + .navigation-option {
  margin-left: -1px;
  border-radius: 0 6px 6px 0;
}

.navigation-option::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 20;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(8, 11, 14, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  color: #d7dfe4;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  pointer-events: none;
}

.navigation-option:hover::after,
.navigation-option:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navigation-option[aria-pressed="true"] {
  border-color: rgba(112, 214, 255, 0.72);
  background: rgba(112, 214, 255, 0.16);
  color: #ffffff;
  z-index: 1;
}

.navigation-option:hover,
.navigation-option:focus-visible {
  color: #eaf0f3;
  outline: none;
}

@media (max-width: 760px) {
  body:not(.ui-hidden) .viewer-display-controls {
    top: 16px;
    right: auto;
    left: 10px;
  }

  .camera-display-controls,
  .camera-panel-reduced .camera-display-controls {
    top: 16px;
    right: 10px;
  }

  .scene-label {
    display: none;
  }

  .scene-identity {
    top: 62px;
    right: auto;
    bottom: auto;
    left: 10px;
  }

  .camera-panel {
    top: auto;
    right: 10px;
    bottom: 132px;
    left: 10px;
    width: auto;
    max-height: min(48vh, 520px);
  }

  .camera-panel.is-collapsed {
    top: 62px;
    right: 10px;
    bottom: auto;
    left: auto;
  }

  .camera-panel.is-compact {
    bottom: 0;
  }

  .timeline-panel {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 142px minmax(120px, 1fr);
    min-height: 112px;
    padding: 10px 72px 10px 10px;
  }

  .timeline-toolbar {
    min-width: 0;
  }

  .timeline-play {
    width: 44px;
    height: 44px;
  }

  .navigation-toolbar {
    top: 62px;
    bottom: auto;
    right: 10px;
    left: 10px;
    justify-content: space-between;
  }

  .transform-toolbar {
    top: 116px;
    left: 10px;
    width: 58px;
  }

  .transform-tool-buttons {
    grid-template-columns: 1fr;
  }

  .navigation-option::after {
    top: calc(100% + 8px);
    bottom: auto;
  }

  .timeline-collapsed .navigation-toolbar {
    bottom: auto;
  }

  .camera-frame-guide {
    top: 38%;
    width: min(88vw, calc(48vh * var(--camera-aspect)));
  }

  .loading-panel {
    bottom: auto;
    top: 70px;
  }
}

@media (max-width: 700px) {
  .scene-table th:nth-child(3),
  .scene-table td:nth-child(3),
  .scene-table th:nth-child(4),
  .scene-table td:nth-child(4) {
    display: none;
  }

  .scene-table th,
  .scene-table td {
    padding: 9px 8px;
  }

  .scene-table-actions {
    display: grid;
  }
}

@media (max-width: 440px) {
  .camera-place-row {
    display: grid;
  }

  .camera-button-row {
    min-width: 0;
  }

  .settings-grid,
  .dof-row {
    grid-template-columns: 1fr;
  }

  .construction-page {
    padding: 22px;
  }

  .field-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .field-row > button {
    flex: 1;
  }

}
