:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--studio-ink,#e0ecfa);
  background: var(--studio-bg,#101f37);
  font-synthesis: none;
  font-size: 13px;
  --olive: var(--studio-accent,#168fff);
  --ink: var(--studio-ink,#e0ecfa);
  --muted: var(--studio-muted,#90a9c7);
  --border: var(--studio-line,#294261);
  --paper: var(--studio-surface,#0e1c33);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button,
a,
input,
textarea,
summary {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--studio-line,#294261);
}
button {
  border: 0;
  background: none;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
a {
  color: inherit;
  text-decoration: none;
}
h2,
h3,
p {
  margin: 0;
}
button:hover {
  transition: background 0.15s;
}
#app {
  height: 100dvh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  height: 72px;
  flex: none;
  background: var(--studio-surface,#0b1730);
  color: var(--studio-muted,#7893b4);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 26px;
  border-bottom: 1px solid var(--studio-line,#294261);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 23px;
  letter-spacing: -0.5px;
  font-weight: 750;
}
.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--studio-muted,#7893b4);
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.brand-beta {
  letter-spacing: 1.5px;
  font-size: 8px;
  line-height: 18px;
  font-weight: 500;
  color: var(--studio-muted,#7893b4);
  border: 1px solid var(--studio-line,#294261);
  padding: 0 5px;
  border-radius: 3px;
  margin-left: 2px;
}
.header-divider {
  height: 23px;
  width: 1px;
  background: var(--studio-surface,#0b1730);
  margin-left: 18px;
}
.project-name {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  color: var(--studio-muted,#7893b4);
  font-weight: 500;
  max-width: 350px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.save-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--studio-muted,#a3b9d5);
  font-size: 10px;
  margin-left: 1px;
  white-space: nowrap;
}
.save-status i,
.live-dot {
  background: var(--studio-surface,#0b1730);
  width: 5px;
  height: 5px;
  border-radius: 100%;
  display: inline-block;
}
.save-status.failed {
  color: var(--studio-muted,#a3b9d5);
}
.save-status.failed i {
  background: var(--studio-surface,#1a3454);
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 17px;
}
.top-actions > .icon-button {
  color: var(--studio-muted,#7893b4);
}
.button {
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  min-height: 36px;
}
.export-button {
  background: var(--studio-surface,#1a3454);
  color: var(--studio-ink,#e0ecfa);
  padding: 10px 16px;
}
.export-button:hover {
  background: var(--studio-bg,#101f37);
}
.workspace {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 260px;
  flex: 1;
  min-height: 0;
}
.left-panel,
.right-panel {
  background: var(--studio-bg,#101f37);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.left-panel {
  border-right: 1px solid var(--border);
  padding: 21px 16px 0;
}
.right-panel {
  border-left: 1px solid var(--border);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: var(--studio-muted,#a3b9d5);
  height: 24px;
}
.panel-heading > .icon-button {
  width: 24px;
  height: 24px;
}
.panel-heading .tiny-label {
  font-size: 8px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--studio-muted,#a3b9d5);
}
.scene-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 0 12px;
}
.scene-heading h2 {
  font-size: 15px;
  letter-spacing: -0.4px;
  font-weight: 650;
}
.count {
  font-size: 9px;
  background: var(--studio-bg,#101f37);
  color: var(--studio-muted,#a3b9d5);
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.scene-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  max-height: 180px;
  flex-shrink: 0;
}
.scene-picker { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow: auto; margin-top: 14px; }
.scene-picker .scene-card { width: 100%; }
.scene-picker .scene-card[hidden] { display: none; }
.scene-search { display: grid; gap: 8px; }
.scene-card {
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 7px;
  border: 1px solid transparent;
  min-height: 61px;
  position: relative;
  flex-shrink: 0;
}
.scene-row { position: relative; flex-shrink: 0; }
.scene-row .scene-card { width: 100%; padding-right: 42px; }
.scene-card > span:nth-child(2) { min-width: 0; }
.scene-card strong, .scene-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scene-delete.icon-button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 32px; color: var(--studio-muted,#91abc9); }
.scene-delete.icon-button:hover, .scene-delete.icon-button:focus-visible { color: #ff9d9d; background: #442c3d; }
.scene-card.active {
  background: var(--studio-bg,#101f37);
  border-color: var(--studio-line,#294261);
}
.scene-card.active:before {
  content: "";
  position: absolute;
  width: 3px;
  height: 26px;
  background: var(--studio-surface,#0b1730);
  border-radius: 2px;
  left: -1px;
}
.scene-card:hover {
  background: var(--studio-bg,#101f37);
}
.scene-icon {
  color: var(--studio-ink,#e0ecfa);
}
.scene-card strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.scene-card small {
  font-size: 9px;
  color: var(--studio-muted,#a3b9d5);
  display: block;
  margin-top: 4px;
}
.scene-index {
  margin-left: auto;
  font-size: 9px;
  color: var(--studio-muted,#a3b9d5);
}
.add-scene {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--studio-line,#294261);
  border-radius: 6px;
  width: 100%;
  margin: 9px 0 0;
  padding: 9px;
  color: var(--studio-ink,#e0ecfa);
  font-size: 10px;
}
.add-scene:hover {
  background: var(--studio-bg,#101f37);
}
.panel-separator {
  height: 1px;
  background: var(--border);
  margin: 22px 0 13px;
  flex: none;
}
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}
.tool-card {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--studio-line,#294261);
  border-radius: 7px;
  position: relative;
  background: var(--studio-bg,#101f37);
  font-size: 10px;
  color: var(--studio-ink,#e0ecfa);
}
.tool-card:hover {
  background: var(--studio-bg,#101f37);
  border-color: var(--studio-line,#294261);
}
.tool-card.active {
  background: var(--studio-bg,#101f37);
  border-color: var(--studio-line,#294261);
  color: var(--studio-ink,#e0ecfa);
}
.tool-card kbd {
  position: absolute;
  right: 6px;
  top: 5px;
  font:
    8px "Segoe UI",
    sans-serif;
  color: var(--studio-muted,#7893b4);
}
.tool-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--studio-ink,#e0ecfa);
}
.tool-symbol.camera {
  color: var(--studio-muted,#a3b9d5);
}
.tool-symbol.light {
  color: var(--studio-muted,#a3b9d5);
}
.tool-symbol.person {
  color: var(--studio-muted,#a3b9d5);
}
.tool-symbol.table {
  color: var(--studio-muted,#a3b9d5);
}
.palette-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 9px;
  color: var(--studio-muted,#a3b9d5);
  line-height: 1.6;
  margin: 13px 2px 10px;
}
.left-footer {
  margin-top: auto;
  padding: 16px 0 14px;
  border-top: 1px solid var(--border);
}
.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--studio-muted,#a3b9d5);
  line-height: 1.65;
  font-size: 10px;
  margin-bottom: 15px;
}
.mini-brand strong {
  font-weight: 500;
  color: var(--studio-muted,#a3b9d5);
}
.help-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--studio-muted,#a3b9d5);
  width: 100%;
  padding: 0;
}
.help-link > span {
  margin-left: auto;
  border: 1px solid var(--studio-line,#294261);
  border-radius: 3px;
  width: 17px;
  height: 17px;
  line-height: 15px;
  text-align: center;
  font-size: 9px;
}
.editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--studio-bg,#101f37);
}
.editor-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  flex: none;
  border-bottom: 1px solid var(--border);
  background: var(--studio-bg,#101f37);
}
.eyebrow {
  color: var(--studio-muted,#a3b9d5);
  font-size: 8px;
  letter-spacing: 1.8px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.eyebrow span {
  color: var(--studio-muted,#7893b4);
}
.scene-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.scene-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.8px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0;
}
.scene-title svg {
  color: var(--studio-muted,#a3b9d5);
}
.scene-tag {
  font-size: 9px;
  color: var(--studio-muted,#a3b9d5);
  background: var(--studio-bg,#101f37);
  border: 1px solid var(--studio-line,#294261);
  border-radius: 4px;
  padding: 4px 7px;
}
.editor-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--studio-muted,#a3b9d5);
}
.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
}
.icon-button:hover {
  background: var(--studio-bg,#101f37);
}
.topbar .icon-button:hover {
  background: var(--studio-surface,#0b1730);
}
.disabled-look {
  opacity: 0.35;
}
.divider {
  height: 20px;
  width: 1px;
  background: var(--studio-bg,#101f37);
  margin: 0 8px;
}
.canvas-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  background: var(--studio-bg,#101f37);
}
.canvas-top-label {
  position: absolute;
  top: 24px;
  left: 30px;
  font-size: 8px;
  letter-spacing: 1.6px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--studio-muted,#a3b9d5);
  z-index: 1;
  pointer-events: none;
}
.canvas-top-label .live-dot {
  width: 4px;
  height: 4px;
  background: var(--studio-surface,#0b1730);
}
.canvas-dimensions {
  color: var(--studio-muted,#a3b9d5);
  border-left: 1px solid var(--studio-line,#294261);
  padding-left: 10px;
  letter-spacing: 0.3px;
  margin-left: 5px;
}
.canvas-toolbar {
  position: absolute;
  top: 56px;
  left: 26px;
  display: flex;
  flex-direction: column;
  padding: 5px;
  gap: 3px;
  border: 1px solid var(--studio-line,#294261);
  background: var(--studio-bg,#101f37);
  border-radius: 9px;
  box-shadow: 0 4px 12px #3d48200a;
  z-index: 2;
  color: var(--studio-muted,#a3b9d5);
}
.canvas-toolbar .icon-button {
  width: 30px;
  height: 30px;
}
.canvas-toolbar .icon-button.active {
  background: var(--studio-bg,#101f37);
  color: var(--studio-ink,#e0ecfa);
}
.canvas-toolbar > span {
  height: 1px;
  background: var(--studio-bg,#101f37);
  margin: 3px;
}
.canvas-toolbar svg {
  width: 17px;
  height: 17px;
}
#plan {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
  user-select: none;
}
.plan-item {
  cursor: move;
}
.plan-item.locked {
  cursor: default;
  pointer-events: none;
}
.plan-item:hover > .hit-area {
  stroke: #94a674;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  rx: 3;
}
.plan-item [data-handle] {
  cursor: grab;
}
.canvas-caption {
  position: absolute;
  bottom: 24px;
  left: 30px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--studio-muted,#a3b9d5);
  font-size: 8px;
  letter-spacing: 1.3px;
  pointer-events: none;
}
.caption-line {
  width: 20px;
  height: 2px;
  background: var(--studio-surface,#0b1730);
}
.canvas-caption > span:not(.caption-line) {
  color: var(--studio-muted,#7893b4);
}
.zoom-controls {
  position: absolute;
  right: 25px;
  bottom: 20px;
  border: 1px solid var(--studio-line,#294261);
  border-radius: 6px;
  display: flex;
  gap: 2px;
  align-items: center;
  background: var(--studio-bg,#101f37);
  padding: 3px;
  box-shadow: 0 3px 10px #3d482006;
  color: var(--studio-muted,#a3b9d5);
}
.zoom-controls .icon-button {
  width: 27px;
  height: 27px;
}
.zoom-controls svg {
  width: 15px;
  height: 15px;
}
.zoom-value {
  font-size: 9px;
  min-width: 42px;
}
.zoom-controls > span {
  height: 17px;
  width: 1px;
  background: var(--studio-bg,#101f37);
  margin: 0 4px;
}
.empty-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  width: 80%;
  color: var(--studio-muted,#a3b9d5);
}
.empty-canvas span {
  display: block;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.empty-canvas small {
  display: block;
  font-size: 11px;
  margin-top: 10px;
  color: var(--studio-muted,#a3b9d5);
}
.statusbar {
  height: 34px;
  flex: none;
  background: var(--studio-bg,#101f37);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: var(--studio-muted,#a3b9d5);
  padding: 0 21px;
  gap: 10px;
  white-space: nowrap;
}
.statusbar > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.statusbar > span:last-child {
  font-size: 8px;
  color: var(--studio-muted,#a3b9d5);
}
.status-dot {
  margin: 0 5px;
  color: var(--studio-muted,#7893b4);
}
.properties-heading {
  height: 55px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.scene-properties {
  padding: 25px 20px 23px;
}
.inspector-illustration {
  width: 52px;
  height: 52px;
  border: 1px solid var(--studio-line,#294261);
  background: var(--studio-bg,#101f37);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--studio-muted,#a3b9d5);
  margin-bottom: 17px;
}
.scene-properties h3 {
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 600;
  margin-bottom: 8px;
}
.scene-properties > p {
  font-size: 10px;
  color: var(--studio-muted,#a3b9d5);
  line-height: 1.8;
}
.scene-summary {
  margin: 23px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scene-summary > div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  gap: 10px;
}
.scene-summary span {
  color: var(--studio-muted,#a3b9d5);
}
.scene-summary strong {
  font-weight: 500;
  color: var(--studio-ink,#e0ecfa);
  text-align: right;
}
.subtle {
  background: var(--studio-bg,#101f37);
  border: 1px solid var(--studio-line,#294261);
  color: var(--studio-muted,#a3b9d5);
}
.subtle:hover {
  background: var(--studio-bg,#101f37);
}
.full {
  width: 100%;
  font-size: 10px;
}
.selected-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 19px 18px 16px;
}
.selected-heading > .tool-symbol {
  width: 42px;
  height: 42px;
  background: var(--studio-bg,#101f37);
  border: 1px solid var(--studio-line,#294261);
  border-radius: 8px;
}
.selected-heading > div {
  min-width: 0;
}
.selected-heading > div > span {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: var(--studio-muted,#a3b9d5);
}
.selected-heading h3 {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  word-break: break-word;
}
.inspector-fields {
  padding: 0 18px 19px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: auto;
  max-height: 51vh;
  flex-shrink: 0;
}
label {
  display: block;
  font-size: 9px;
  color: var(--studio-muted,#a3b9d5);
  font-weight: 500;
  line-height: 1.5;
}
input:not([type="checkbox"]):not([type="range"]),
textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--studio-line,#294261);
  border-radius: 5px;
  min-height: 32px;
  padding: 7px 9px;
  background: var(--studio-bg,#101f37);
  color: var(--studio-ink,#e0ecfa);
  font-size: 11px;
  outline-color: var(--studio-line,#294261);
}
textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 70px;
}
label small {
  float: right;
  color: var(--studio-muted,#a3b9d5);
  font-weight: 400;
}
input[type="number"] {
  appearance: textfield;
}
input::-webkit-inner-spin-button {
  opacity: 0.3;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rotation-input {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rotation-input input {
  flex: 1;
  min-width: 0;
}
.rotation-input button {
  margin-top: 5px;
  flex: none;
  border: 1px solid var(--studio-line,#294261);
}
.color-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
input[type="color"] {
  width: 40px !important;
  min-height: 25px !important;
  padding: 3px !important;
  cursor: pointer;
}
.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.switch-label input {
  accent-color: var(--studio-accent,#168fff);
  width: 15px;
  height: 15px;
}
.inspector-fields input[type="range"] {
  width: 100%;
  accent-color: var(--studio-accent,#168fff);
  display: block;
  margin-top: 7px;
}
.selection-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.selection-actions .button {
  font-size: 10px;
  padding: 7px 12px;
}
.selection-actions .icon-button {
  color: var(--studio-muted,#a3b9d5);
  border: 1px solid var(--studio-line,#294261);
}
.locked-note {
  font-size: 9px;
  color: var(--studio-muted,#a3b9d5);
}
.layers-heading {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  color: var(--studio-muted,#a3b9d5);
  font-size: 9px;
  letter-spacing: 1.2px;
  flex: none;
}
.layers-heading > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.layer-list {
  overflow: auto;
  min-height: 70px;
  flex: 1;
  padding: 7px 12px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--studio-line,#294261) transparent;
}
.layer-group {
  border-bottom: 1px solid var(--studio-line,#294261);
  padding: 3px 0;
}
.layer-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 5px;
  color: var(--studio-ink,#e0ecfa);
  font-size: 10px;
  font-weight: 500;
}
.layer-group summary::-webkit-details-marker {
  display: none;
}
.layer-group summary > span:nth-last-child(2) {
  margin-left: auto;
  font-size: 9px;
  color: var(--studio-muted,#a3b9d5);
}
.layer-group summary > svg {
  color: var(--studio-muted,#a3b9d5);
  transition: transform 0.15s;
}
.layer-group:not([open]) summary > svg {
  transform: rotate(-90deg);
}
.layer-dot {
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: var(--studio-surface,#0b1730);
  flex: none;
}
.layer-row {
  display: flex;
  align-items: center;
  border-radius: 4px;
  padding: 0 4px 0 7px;
  color: var(--studio-muted,#a3b9d5);
  min-height: 31px;
  gap: 2px;
}
.layer-row.selected {
  background: var(--studio-bg,#101f37);
  color: var(--studio-ink,#e0ecfa);
}
.layer-row:hover {
  background: var(--studio-bg,#101f37);
}
.layer-select {
  display: flex;
  gap: 7px;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 6px 0;
  font-size: 9px;
}
.layer-select svg {
  color: var(--studio-muted,#a3b9d5);
}
.layer-select span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.layer-action {
  width: 21px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--studio-muted,#7893b4);
  flex: none;
}
.layer-action:hover {
  color: var(--studio-ink,#e0ecfa);
}
.is-locked {
  color: var(--studio-muted,#a3b9d5);
}
.hidden-item .layer-select {
  opacity: 0.4;
}
.layer-footer {
  padding: 16px;
  font-size: 8px;
  color: var(--studio-muted,#a3b9d5);
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--border);
  flex: none;
}
.no-layers {
  font-size: 10px;
  line-height: 1.7;
  padding: 15px 8px;
  color: var(--studio-muted,#a3b9d5);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 58px;
  transform: translate(-50%, 12px);
  background: var(--studio-surface,#0b1730);
  color: var(--studio-muted,#7893b4);
  box-shadow: 0 8px 25px #27321f22;
  border-radius: 7px;
  padding: 13px 20px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 20;
  max-width: 90vw;
  line-height: 1.5;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid var(--studio-line,#294261);
  border-radius: 14px;
  padding: 26px;
  width: 440px;
  max-width: calc(100vw - 28px);
  color: var(--studio-ink,#e0ecfa);
  background: var(--studio-bg,#101f37);
  box-shadow: 0 20px 90px #20302030;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: var(--studio-surface,#0b1730);
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}
.modal-heading h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.modal-heading .icon-button {
  color: var(--studio-muted,#a3b9d5);
}
.modal-intro {
  color: var(--studio-muted,#a3b9d5);
  line-height: 1.8;
  font-size: 11px;
  margin-bottom: 21px;
}
.export-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.export-options > button {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--studio-line,#294261);
  border-radius: 8px;
  padding: 15px;
  text-align: left;
  background: var(--studio-bg,#101f37);
  color: var(--studio-muted,#a3b9d5);
}
.export-options > button:hover {
  background: var(--studio-bg,#101f37);
  border-color: var(--studio-line,#294261);
}
.export-options > button > span {
  flex: 1;
}
.export-options strong {
  display: block;
  color: var(--studio-ink,#e0ecfa);
  font-size: 12px;
  font-weight: 600;
}
.export-options small {
  display: block;
  font-size: 10px;
  color: var(--studio-muted,#a3b9d5);
  margin-top: 4px;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-form label {
  font-size: 11px;
}
.modal-form input:not([type="checkbox"]) {
  font-size: 13px;
  min-height: 39px;
}
.modal-footer {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 14px;
}
.primary {
  background: var(--studio-surface,#0b1730);
  color: white;
}
.primary:hover {
  background: var(--studio-surface,#0b1730);
}
.danger {
  background: var(--studio-bg,#101f37);
  border: 1px solid var(--studio-line,#294261);
  color: var(--studio-ink,#e0ecfa);
}
.form-note {
  font-size: 10px;
  line-height: 1.7;
  color: var(--studio-muted,#a3b9d5);
}
.shortcuts {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 23px 0;
}
.shortcuts > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--studio-muted,#a3b9d5);
}
.shortcuts kbd {
  border: 1px solid var(--studio-line,#294261);
  background: var(--studio-bg,#101f37);
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
  color: var(--studio-ink,#e0ecfa);
}
.mobile-tabs {
  display: none;
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: 250px minmax(0, 1fr) 280px;
  }
  .left-panel {
    padding-left: 20px;
    padding-right: 20px;
  }
  .tool-card {
    min-height: 90px;
  }
  .editor-header {
    padding: 0 38px;
  }
  .topbar {
    height: 76px;
  }
}
@media (max-height: 780px) {
  .left-panel {
    padding-top: 12px;
  }
  .panel-separator {
    margin: 15px 0 10px;
  }
  .tools-grid {
    gap: 6px;
    margin-top: 9px;
  }
  .tool-card {
    min-height: 68px;
  }
  .scene-heading {
    margin-top: 12px;
  }
  .mini-brand {
    display: none;
  }
  .left-footer {
    padding: 15px 0;
  }
  .scene-properties {
    padding-top: 20px;
    padding-bottom: 18px;
  }
  .scene-summary {
    margin: 16px 0;
  }
  .inspector-illustration {
    margin-bottom: 12px;
  }
  .editor-header {
    height: 80px;
  }
  .topbar {
    height: 64px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 206px minmax(0, 1fr) 228px;
  }
  .topbar {
    gap: 17px;
    padding: 0 18px;
  }
  .header-divider {
    margin-left: 5px;
  }
  .save-status {
    font-size: 9px;
  }
  .brand {
    font-size: 21px;
  }
  .editor-header {
    padding: 0 22px;
  }
  .scene-tag {
    display: none;
  }
  .left-panel {
    padding-left: 12px;
    padding-right: 12px;
  }
  .statusbar > span:last-child {
    display: none;
  }
  .scene-title {
    font-size: 20px;
  }
  .scene-properties {
    padding-left: 16px;
    padding-right: 16px;
  }
  .scene-properties h3 {
    font-size: 13px;
  }
  .scene-summary > div {
    font-size: 9px;
  }
  .panel-heading .tiny-label {
    font-size: 7px;
  }
}
@media (max-width: 930px) {
  .workspace {
    grid-template-columns: 188px minmax(0, 1fr);
  }
  .right-panel {
    position: absolute;
    right: 0;
    top: 64px;
    bottom: 40px;
    width: 244px;
    z-index: 5;
    display: none;
    box-shadow: -5px 0 25px #364c2415;
  }
  .show-right .right-panel {
    display: flex;
  }
  .save-status {
    display: none;
  }
  .mobile-tabs {
    height: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    background: var(--studio-bg,#101f37);
    border-top: 1px solid var(--border);
    color: var(--studio-muted,#a3b9d5);
    flex: none;
  }
  .mobile-tabs .icon-button {
    height: 38px;
    width: 50px;
  }
  .topbar .brand-beta {
    display: none;
  }
  .topbar {
    height: 64px;
  }
  .workspace.show-left .left-panel {
    display: flex;
  }
  .project-name {
    font-size: 11px;
    max-width: 270px;
  }
  .top-actions {
    gap: 6px;
  }
  .canvas-top-label {
    left: 24px;
  }
  .left-footer {
    padding-bottom: 18px;
  }
  .inspector-fields {
    max-height: 47vh;
  }
}
@media (max-width: 650px) {
  #app {
    min-height: 420px;
  }
  .workspace {
    display: flex;
  }
  .editor {
    flex: 1;
  }
  .left-panel {
    position: absolute;
    left: 0;
    top: 60px;
    bottom: 42px;
    width: 220px;
    z-index: 5;
    display: none;
    box-shadow: 5px 0 25px #364c2415;
  }
  .right-panel {
    top: 60px;
    bottom: 42px;
  }
  .topbar {
    height: 60px;
    padding: 0 12px;
    gap: 10px;
  }
  .brand {
    font-size: 18px;
    letter-spacing: -0.3px;
    gap: 4px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .header-divider {
    display: none;
  }
  .project-name {
    max-width: 130px;
    font-size: 10px;
    margin-left: 5px;
  }
  .project-name svg {
    display: none;
  }
  .top-actions > .icon-button {
    display: none;
  }
  .export-button {
    padding: 8px 10px;
    min-height: 32px;
  }
  .export-button span {
    display: none;
  }
  .export-button svg {
    width: 17px;
    height: 17px;
  }
  .editor-header {
    height: 78px;
    padding: 0 18px;
  }
  .editor-actions {
    gap: 0;
  }
  .editor-actions .icon-button {
    width: 28px;
  }
  .editor-actions .divider {
    margin: 0 4px;
  }
  .scene-title {
    font-size: 19px;
  }
  .canvas-top-label {
    top: 18px;
    left: 17px;
    font-size: 7px;
  }
  .canvas-toolbar {
    top: 48px;
    left: 12px;
    padding: 3px;
  }
  .canvas-toolbar .icon-button {
    height: 27px;
    width: 27px;
  }
  .canvas-caption {
    bottom: 65px;
    left: 19px;
    font-size: 7px;
  }
  .zoom-controls {
    bottom: 16px;
    right: 14px;
  }
  .statusbar {
    padding: 0 15px;
    font-size: 8px;
    height: 30px;
  }
  .statusbar #tool-status {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
  }
  .mobile-tabs {
    height: 42px;
  }
  .tools-grid .tool-card {
    min-height: 67px;
  }
  .panel-heading .tiny-label {
    font-size: 8px;
  }
  .brand-beta {
    display: none;
  }
}
[hidden] {
  display: none !important;
}
body {
  overflow: hidden;
}
.tool-card {
  color: var(--studio-ink,#e0ecfa);
}
.palette-note {
  color: var(--studio-muted,#a3b9d5);
}
.scene-properties > p {
  color: var(--studio-muted,#a3b9d5);
}
.layer-select {
  color: var(--studio-muted,#a3b9d5);
}
.scene-card small {
  color: var(--studio-muted,#a3b9d5);
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Croki · midnight blue */
:root {
  color-scheme: dark;
  background: var(--studio-surface,#0b1730);
  color: var(--studio-ink,#e0ecfa);
}
.topbar {
  background: var(--studio-bg,#09152c);
}
.brand-mark {
  width: 40px;
  height: 40px;
}
.brand-beta {
  color: var(--studio-ink,#75baff);
  border-color: var(--studio-line,#284e7b);
}
.brand {
  color: #eef6ff;
}
.export-button,
.button.primary {
  background: var(--studio-accent,#168fff);
  color: #fff;
}
.export-button:hover,
.button.primary:hover {
  background: var(--studio-soft,#087ae6);
}
.save-status i,
.live-dot,
.caption-line {
  background: var(--studio-accent,#168fff);
}
.scene-card.active,
.tool-card.active,
.layer-row.selected {
  background: var(--studio-soft,#18385e);
  border-color: var(--studio-line,#2875ba);
}
.scene-card.active:before {
  background: var(--studio-accent,#168fff);
}
.tool-symbol.camera,
.tool-symbol.room,
.tool-symbol.window {
  color: #64b8ff;
}
.tool-symbol.light {
  color: #e4b95c;
}
.tool-symbol.person {
  color: #c5a2cf;
}
.tool-symbol.table {
  color: #bba98c;
}
.button.subtle,
.count,
.scene-tag {
  background: var(--studio-soft,#1a2e4a);
  color: var(--studio-ink,#b7cdeb);
}
.icon-button:hover,
.tool-card:hover {
  background: var(--studio-soft,#203a5d);
}
.canvas-wrap,
.editor {
  background: var(--studio-surface,#0e1c33);
}
.canvas-toolbar .icon-button.active {
  background: var(--studio-soft,#174476);
  color: var(--studio-ink,#96ceff);
}
.plan-item:hover > .hit-area {
  stroke: var(--studio-accent,#168fff);
}
.view-switch {
  display: flex;
  background: var(--studio-surface,#0b1730);
  border: 1px solid var(--studio-line,#294261);
  border-radius: 7px;
  padding: 3px;
  margin-right: 12px;
  white-space: nowrap;
}
.view-switch button {
  padding: 7px 11px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--studio-muted,#90a9c7);
}
.view-switch button.active {
  background: var(--studio-soft,#1763a6);
  color: white;
}
.viewports {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}
.viewports > * {
  min-width: 0;
  min-height: 0;
}
.mode-split .viewports {
  grid-template-columns: 1fr 1fr;
}
.mode-3d #plan {
  display: none;
}
.mode-2d #three-host {
  display: none;
}
.mode-split #three-host {
  border-left: 1px solid var(--studio-line,#294261);
}
.mode-split .zoom-controls {
  right: calc(50% + 15px);
}
#three-host {
  overflow: hidden;
  position: relative;
}
#three-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
.three-toolbar {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 7px;
  align-items: center;
  max-width: 46%;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.three-toolbar button {
  background: var(--studio-soft,#122947e8);
  border: 1px solid var(--studio-line,#294c70);
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 10px;
  color: var(--studio-ink,#b7d7f7);
}
.three-toolbar button.active {
  background: var(--studio-soft,#17548b);
  color: white;
}
.three-toolbar span {
  font-size: 9px;
  color: var(--studio-ink,#8eaacb);
  max-width: 300px;
  text-align: right;
  background: var(--studio-soft,#0b1730c9);
  padding: 5px;
  border-radius: 4px;
}
.mode-3d .zoom-controls {
  display: none;
}
.mode-3d .canvas-caption {
  display: none;
}
.mode-split .canvas-dimensions {
  display: none;
}
.attachment-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--studio-ink,#91b4d9);
  background: var(--studio-soft,#102945);
  border: 1px solid var(--studio-line,#224667);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 14px;
}
.room-item [data-room-handle] {
  cursor: grab;
}
.room-item [data-room-handle]:hover {
  fill: #e9f6ff;
}
.three-unavailable {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 80px 30px;
  color: var(--studio-ink,#bed6f2);
  line-height: 1.6;
}
.left-panel {
  overflow-y: auto;
}
.left-footer {
  margin-top: 18px;
}
.tools-grid {
  gap: 6px;
}
.tool-card {
  min-height: 62px;
}
input,
textarea {
  color: var(--studio-ink,#dbeaff) !important;
  background: var(--studio-bg,#0c1a30) !important;
  border-color: var(--studio-line,#294261) !important;
}
.statusbar {
  background: var(--studio-bg,#09152c);
}
.scene-properties h3,
.selected-heading h3 {
  color: var(--studio-ink,#deedff);
}
@media (max-width: 1200px) {
  .editor-header {
    padding: 0 18px;
  }
  .scene-tag {
    display: none;
  }
  .view-switch {
    margin-right: 5px;
  }
  .view-switch button {
    padding: 7px;
  }
  .editor-actions {
    gap: 1px;
  }
}
@media (max-width: 850px) {
  .editor-header {
    height: 108px;
    align-items: flex-start;
    padding-top: 16px;
    position: relative;
  }
  .view-switch {
    position: absolute;
    left: 17px;
    bottom: 9px;
  }
  .mode-split .viewports {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .mode-split #three-host {
    border-left: 0;
    border-top: 1px solid var(--studio-line,#294261);
  }
  .mode-split .three-toolbar {
    top: calc(50% + 9px);
    max-width: 90%;
  }
  .mode-split .zoom-controls {
    right: 12px;
    bottom: calc(50% + 9px);
  }
  .mode-split .canvas-caption {
    display: none;
  }
  .three-toolbar span {
    display: none;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
}

.contour-corners {
  font-size: 11px;
  color: var(--studio-ink,#9ec4ef);
  margin: 14px 0;
}
.contour-corners summary {
  cursor: pointer;
  margin-bottom: 8px;
}
.contour-corners > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.contour-corners button {
  padding: 7px;
  min-height: 30px;
}

/* Framing desk: plan at left, orbit above and selected camera below. */
.mode-triple .viewports { grid-template-columns: 1fr 1.15fr; grid-template-rows: 1fr 1fr; }
.mode-triple #plan { grid-row: 1 / 3; }
.mode-triple #three-host { border-left: 1px solid var(--studio-line,#294261); }
.mode-triple .canvas-dimensions, .mode-triple .canvas-caption { display: none; }
.mode-triple .zoom-controls { right: calc(53.5% + 12px); }
.mode-triple .three-toolbar { max-width: 50%; top: 9px; right: 8px; gap: 4px; }
.mode-triple .three-toolbar span { display: none; }
.mode-triple .three-toolbar button { padding: 5px 6px; }
.camera-monitor { display: flex; flex-direction: column; overflow: hidden; background: var(--studio-soft,#070f20); border: 1px solid var(--studio-line,#2b517a); }
.camera-monitor header, .camera-monitor footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--studio-soft,#102139); flex-shrink: 0; }
.camera-monitor header > span { font-size: 9px; letter-spacing: 1.4px; color: var(--studio-ink,#89abd0); }
.camera-monitor select { max-width: 55%; padding: 5px; font-size: 11px; }
.camera-monitor footer span { font-size: 10px; color: var(--studio-ink,#a6c6e7); }
.camera-monitor footer button { font-size: 11px; min-height: 30px; padding: 6px 12px; }
#monitor-host { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; overflow: hidden; }
#monitor-host canvas { display: block; touch-action: none; }
#monitor-host p { color: var(--studio-ink,#9ab2cc); font-size: 12px; padding: 20px; text-align: center; }
.three-toolbar { max-width: 49%; }
.mode-3d .three-toolbar { max-width: 75%; }
.shots-open { margin: 12px 16px 0; display: flex; align-items: center; gap: 8px; padding: 12px; color: var(--studio-ink,#b0d6ff); border: 1px solid var(--studio-line,#284867); border-radius: 6px; background: var(--studio-soft,#112944); font-size: 11px; }
.shots-open span { margin-left: auto; }
.shots-dialog { width: min(1050px, 94vw); max-width: 94vw; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding: 0 26px 26px; }
.shot-card { padding: 12px; border: 1px solid var(--studio-line,#294866); background: var(--studio-soft,#0c1b31); border-radius: 9px; }
.shot-image { position: relative; margin: -12px -12px 12px; overflow: hidden; border-radius: 9px 9px 0 0; background: var(--studio-soft,#071120); }
.shot-image img { width: 100%; aspect-ratio: 16/9; object-fit: contain; display: block; }
.shot-image span { position: absolute; bottom: 7px; left: 8px; font-size: 10px; color: #d8e8fc; background: #0b1730cb; padding: 4px 8px; border-radius: 4px; }
.shot-card label { display: block; color: var(--studio-ink,#93b5dc); font-size: 10px; margin: 10px 0; }
.shot-card input, .shot-card textarea { width: 100%; margin-top: 5px; padding: 8px; border: 1px solid; border-radius: 4px; }
.shot-actions { display: flex; gap: 6px; }
.shot-actions .button { padding: 6px 10px; min-height: 30px; font-size: 11px; }
.shots-empty { grid-column: 1/-1; padding: 50px 20px; text-align: center; color: var(--studio-ink,#a6c5e5); line-height: 1.8; }
select { background: var(--studio-bg,#0c1a30); border: 1px solid var(--studio-line,#294261); color: var(--studio-ink,#dbeaff); border-radius: 5px; padding: 9px; }
.inspector-fields select { width: 100%; margin-top: 7px; }
.read-only .tools-grid, .read-only .add-scene, .read-only [data-action="capture-overview"], .read-only .selection-actions { display: none; }
.contour-actions { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--studio-line,#285883); border-radius: 8px; background: var(--studio-surface,#102441); margin: 4px 0 18px; }
.contour-actions .field-pair { margin: 0; gap: 7px; }
.contour-actions .button { font-size: 11px; padding: 9px 6px; justify-content: center; }
.contour-actions small { color: var(--studio-ink,#9bbbdc); font-size: 11px; line-height: 1.6; }
.corner-selection { padding: 12px; margin-bottom: 14px; border: 1px solid #967049; background: #302a29; border-radius: 8px; }
.corner-selection strong, .corner-selection small { display: block; }
.corner-selection strong { color: #ffcd8d; font-size: 12px; margin-bottom: 7px; }
.corner-selection small { color: #e5d2ba; line-height: 1.5; font-size: 11px; }
.corner-selection .button { width: 100%; justify-content: center; margin-top: 10px; }
.contour-guide { flex: 0 0 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #29659a; background: var(--studio-surface,#102441); }
.contour-guide strong, .contour-guide span { display: block; }
.contour-guide strong { color: var(--studio-ink,#70c8ff); font-size: 12px; margin-bottom: 5px; }
.contour-guide span { color: var(--studio-ink,#dbeaff); font-size: 12px; line-height: 1.5; }
.contour-guide .button { flex-shrink: 0; font-size: 11px; }
@media(max-width: 850px) { .contour-guide { flex-basis: 96px; padding: 8px 12px; gap: 8px; } }
.save-status.failed { max-width: 245px; white-space: normal; line-height: 1.4; color: #ffd299; }
.croki-home { flex: 1; min-height: 0; background: var(--studio-surface,#0b1730); color: var(--studio-ink,#dfebff); overflow-y: auto; }
.croki-home > header { display: flex; align-items: center; justify-content: space-between; padding: 20px 36px; border-bottom: 1px solid #273d59; }
.croki-home > header > a:last-child { color: var(--studio-ink,#adc9ec); font-size: 12px; }
#croki-projects { max-width: 1300px; margin: auto; padding: 40px 36px 80px; }
html[data-studio-tool="croki"] #gbp-context { display: none; }
.croki-load-error { padding: 60px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
@media(max-width: 1100px) { .view-switch button { padding: 7px 6px; font-size: 10px; } .editor-actions > .divider { display: none; } }
@media(max-width: 850px) {
  .mode-triple .viewports { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .mode-triple #plan { grid-row: 1; }
  .mode-triple .camera-monitor { grid-column: 1 / 3; }
  .mode-triple .zoom-controls { right: calc(50% + 8px); bottom: calc(50% + 8px); }
  .mode-triple .three-toolbar { max-width: 48%; }
  .mode-triple .three-toolbar button { font-size: 9px; padding: 4px; }
  .shots-grid { padding: 0 16px 16px; }
  .croki-home > header, #croki-projects { padding: 20px; }
}
:root { --character-panel: #142941; }
.character-fields { display: grid; gap: 12px; padding: 14px; margin: 4px -4px; border: 1px solid var(--studio-line,#2b4565); border-radius: 12px; background: var(--character-panel); }
.field-section-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--studio-ink,#91b9e4); }
.character-fields small { color: var(--studio-ink,#9fb3ca); font-size: 11px; line-height: 1.5; }
.character-fields select { width: 100%; min-width: 0; }
.character-fields .color-field { gap: 5px; }
.character-loading { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 9px 14px; border: 1px solid var(--studio-line,#3a628a); border-radius: 20px; background: var(--studio-soft,#10233eea); color: var(--studio-ink,#c8e3ff); font: inherit; font-size: 12px; }
.studio-app-toolbar.topbar { height: 56px; }
.group-selection-outline { fill: none; stroke: var(--studio-accent,#66b8ff); stroke-width: 1.5; stroke-dasharray: 7 4; vector-effect: non-scaling-stroke; }
.marquee-selection { fill: var(--studio-accent,#168fff); fill-opacity: .12; stroke: var(--studio-accent,#66b8ff); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
[data-room-fill] { cursor: crosshair; }
.rotation-controls { display: grid; gap: 7px; }
.rotation-controls input[type="range"] { width: 100%; margin: 0; }
.rotation-steps { display: flex; align-items: center; gap: 8px; }
.rotation-steps small { flex: 1; text-align: center; font-size: 10px; line-height: 1.4; color: var(--muted); }
.rotation-steps .button { padding: 6px 8px; min-height: 30px; }
.multi-inspector { gap: 16px; }
.multi-inspector p, .multi-inspector small { color: var(--muted); line-height: 1.6; }
.multi-inspector ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.multi-inspector li { display: flex; align-items: center; gap: 9px; }
@media (max-width: 930px) { .right-panel { top: 110px; } }
@media (max-width: 650px) { .left-panel { top: 110px; } }
/* Wheel and touch scrolling remain available; rendering restores panel positions. */
#app *, dialog { scrollbar-width: none; }
#app *::-webkit-scrollbar, dialog::-webkit-scrollbar { display: none; width: 0; height: 0; }
.accessory-options { border: 1px solid var(--studio-line,#345270); border-radius: 8px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; }
.accessory-options legend { color: var(--studio-ink,#9fbad7); font-size: 11px; padding: 0 5px; }
.accessory-options label { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.accessory-options input { margin: 0; width: 14px; height: 14px; }

#app { overflow: clip; }
.export-dialog { width: min(720px, calc(100vw - 32px)); }
.export-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.export-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0; }
.export-fields label { display: grid; gap: 8px; color: var(--studio-ink,#a8bed8); font-size: 12px; }
.export-fields select { width: 100%; min-width: 0; padding: 11px; color: #edf4ff; background: var(--studio-soft,#0b1930); border: 1px solid var(--studio-line,#345270); border-radius: 7px; }
.export-shot-picker { max-height: 220px; overflow: auto; scrollbar-width: none; border: 1px solid var(--studio-line,#2d4665); border-radius: 9px; padding: 14px; }
.export-shot-picker::-webkit-scrollbar { display: none; }
.export-dialog .modal-footer { position: sticky; bottom: 0; background: var(--studio-soft,#101f35); padding: 10px 0 0; margin-top: 10px; }
.export-selection-heading { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.export-selection-heading button { border: 0; background: transparent; color: var(--studio-ink,#64b4ff); cursor: pointer; padding: 6px; font-size: 11px; }
.export-scene-group h3 { margin: 16px 0 7px; font-size: 13px; }
.export-scene-group h3 small { margin-left: 8px; color: var(--studio-ink,#8da8c7); font-weight: 400; }
.export-scene-group label { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 5px; cursor: pointer; }
.export-scene-group label:hover { background: var(--studio-soft,#1a304c); }
.export-scene-group input { width: 16px; height: 16px; accent-color: var(--studio-accent,#168fff); flex: 0 0 auto; }
.export-scene-group label span { display: grid; gap: 4px; font-size: 12px; }
.export-scene-group label small,.export-hint,.export-scene-group p { color: var(--studio-muted,#91abc9); font-size: 11px; line-height: 1.6; }
.export-summary { color: var(--studio-ink,#a9ccef); font-size: 12px; }
.shot-actions { flex-wrap: wrap; }
@media(max-width: 600px) { .export-fields { grid-template-columns: 1fr; }.export-quick .button { width: 100%; } }

.production-panel{margin:14px 12px 6px;padding:14px;border:1px solid var(--studio-line,#21466a);border-radius:12px;background:var(--studio-soft,#0e2033);font-size:12px;line-height:1.5;color:var(--studio-ink,#b7cce1)}
.production-panel strong{display:block;color:#edf6ff;font-size:13px;overflow-wrap:anywhere}.production-label{font-size:9px;letter-spacing:.12em;color:var(--studio-ink,#52b7ff);margin-bottom:6px}.production-panel p{margin:7px 0}.production-links{display:flex;flex-direction:column;gap:6px;margin-top:10px}.production-links a{color:var(--studio-ink,#61bdff);text-decoration:none}.production-links a:hover{text-decoration:underline}.production-warning{color:#ffc97b}.production-days{border-top:1px solid #25415c;margin-top:8px}.production-panel details p{max-height:140px;overflow:auto}

html[data-studio-design] .view-switch button.active,html[data-studio-design] .three-toolbar button.active{background:var(--studio-accent);color:var(--studio-onAccent)}
