.studio-page [hidden] {
  display: none !important;
}
.studio-page .studio-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 36px;
  display: grid;
  gap: 16px;
}
.studio-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.studio-kicker {
  margin: 0 0 4px;
  color: #1565d8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.studio-intro h1 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: #0b1f4d;
}
.studio-lead {
  margin: 0;
  max-width: 46rem;
  color: #3d4d66;
  line-height: 1.5;
}
.studio-warn {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6d8;
  color: #5a4708;
  font-weight: 600;
}
.studio-load {
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef4ff;
  color: #0b1f4d;
  font-weight: 700;
}
.studio-layout {
  display: grid;
  grid-template-columns: 220px minmax(280px, 340px) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}
.studio-scenes,
.studio-inspector {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7e0ee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 36, 79, 0.05);
}
.studio-scenes h2,
.studio-inspector h2 {
  margin: 8px 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6b82;
}
.studio-scenes h2:first-child,
.studio-inspector h2:first-child { margin-top: 0; }
.scene-list { display: grid; gap: 8px; }
.scene-chip {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid #d7e0ee;
  border-radius: 14px;
  background: #f7f9fd;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.scene-chip.is-active {
  border-color: #1565d8;
  background: #eef5ff;
}
.scene-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1565d8;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}
.scene-meta { display: grid; gap: 2px; min-width: 0; }
.scene-meta strong {
  color: #0b1f4d;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scene-meta em {
  color: #5b6b82;
  font-style: normal;
  font-size: 0.78rem;
}
.studio-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.phone-frame {
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: #0b1f4d;
  box-shadow: 0 22px 48px rgba(11, 31, 77, 0.22);
}
.phone-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.transport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: min(100%, 300px);
}
.transport input[type="range"] { width: 100%; }
.time-readout {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5b6b82;
  white-space: nowrap;
}
.studio-field {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0b1f4d;
}
.studio-field input,
.studio-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #c5d0e0;
  border-radius: 10px;
  font: inherit;
  font-weight: 500;
}
.studio-note {
  margin: 0;
  color: #5b6b82;
  font-size: 0.86rem;
  line-height: 1.4;
}
.studio-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: #0b1f4d;
}
.studio-file-row {
  display: grid;
  gap: 8px;
}
.studio-file {
  position: relative;
  overflow: hidden;
  justify-self: start;
  cursor: pointer;
}
.studio-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.export-panel { display: grid; gap: 8px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #0b1f4d;
}
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #d9e2f5;
  overflow: hidden;
}
.progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #1565d8;
}
.result-video {
  width: min(180px, 100%);
  border-radius: 16px;
  background: #0b1f4d;
  display: block;
}
.cutout-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #c5d0e0;
  border-radius: 14px;
  background: #f7f9fd;
}
.phone-frame canvas.is-draggable { cursor: grab; }
.phone-frame canvas.is-dragging { cursor: grabbing; }
.studio-footer { margin-top: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1100px) {
  .studio-layout {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }
  .studio-scenes { grid-column: 1 / -1; }
  .scene-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
@media (max-width: 860px) {
  .studio-intro { flex-direction: column; }
  .studio-layout { grid-template-columns: 1fr; }
  .phone-frame { width: min(220px, 100%); }
}
