@font-face {
  font-family: Studio;
  src: local("Helvetica Neue"), local("Arial");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
:root {
  font-family: Studio, Arial, sans-serif;
  color: #262723;
  background: #f5f5f0;
  font-synthesis: none;
  --line: #dddfd6;
  --muted: #82867a;
  --lime: #d2ef9d;
  --surface: #fbfcf7;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  filter: brightness(0.96);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #527c38;
  outline-offset: 3px;
}
button[hidden],
[hidden] {
  display: none !important;
}
input,
select {
  accent-color: #5d6d40;
}
input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 12px 0 2px;
  cursor: ew-resize;
}
input[type="range"]::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
}
input[type="text"],
input[type="number"],
select {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #333;
  padding: 9px;
}
select {
  width: 100%;
  font-size: 11px;
  cursor: pointer;
}
input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #0002;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 2px;
}
.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 19px;
  letter-spacing: -1.1px;
  font-weight: 750;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.brand-light {
  font-weight: 400;
  margin-left: -3px;
}
.brand-mark {
  display: grid;
  grid-template-columns: 6px 6px;
  grid-template-rows: 6px 6px;
  gap: 2px;
  margin-right: 5px;
}
.brand-mark i {
  background: #252922;
}
.brand-mark i:last-child {
  background: #a8c77f;
}
.beta {
  border: 1px solid #d4d7cc;
  border-radius: 3px;
  font: 9px monospace;
  padding: 3px;
  margin-left: 5px;
  letter-spacing: 0;
  align-self: flex-start;
}
.project-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.project-title input {
  border: 0;
  background: none;
  font-size: 12px;
  width: 190px;
  padding: 8px 0;
}
.project-title > span:last-child {
  color: var(--muted);
  font-size: 10px;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #81a36b;
  flex-shrink: 0;
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.primary,
.outline {
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.primary {
  background: var(--lime);
  border: 1px solid #b4d47f;
}
.primary span {
  margin-left: 9px;
}
.outline {
  border: 1px solid #cfd3c6;
  background: #fff;
}
.quiet {
  font-size: 11px;
  padding: 6px;
}
.quiet span {
  margin-left: 10px;
}
.icon-button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  font-size: 17px;
}
.topbar .icon-button {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 23px;
  height: 23px;
  font-size: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: 238px minmax(300px, 1fr) 286px;
  min-height: calc(100dvh - 74px);
}
.pane {
  background: var(--surface);
}
.sources {
  padding: 25px 21px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.pane-heading,
.section-label,
.inspector-heading {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 500;
}
.pane-heading {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.8px;
}
.pane-heading > span:last-child {
  font-size: 16px;
}
.sources h1 {
  font-size: 29px;
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -1.25px;
  margin: 22px 0 11px;
}
.intro {
  font-size: 11px;
  color: #777b71;
  line-height: 1.6;
  margin: 0 0 23px;
  max-width: 170px;
}
.upload-zone {
  border: 1px dashed #bdc4b0;
  background: #f2f5eb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 18px 5px 16px;
  transition: background 0.15s;
}
.upload-zone.dragging {
  background: #e0efc5;
  border-color: #6c873f;
}
.upload-symbol {
  font-size: 23px;
  font-weight: 300;
  margin-bottom: 12px;
}
.upload-zone strong {
  font-size: 11px;
  font-weight: 500;
}
.upload-zone > span:not(:first-child) {
  font-size: 10px;
  color: #888e7c;
  margin-top: 5px;
}
.upload-zone small {
  font: 8px monospace;
  color: #999e90;
  margin-top: 17px;
  letter-spacing: 0.1px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sources > .section-label {
  margin: 26px 0 11px;
}
.section-label span {
  color: #969c8c;
  font-size: 8px;
}
.source-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px;
  background: #fff;
}
.source-card img {
  width: 35px;
  height: 40px;
  object-fit: contain;
  background: #edf0e7;
  border-radius: 2px;
}
.source-card > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.source-card strong {
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.source-card div span {
  font-size: 8px;
  color: var(--muted);
}
.source-card .icon-button {
  font-size: 17px;
  width: 20px;
}
.wide {
  width: 100%;
}
.sources > .outline {
  margin-top: 11px;
  font-size: 10px;
  padding: 10px;
  gap: 8px;
}
.cutout-options {
  margin-top: 10px;
}
.select-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #666d5c;
  font-size: 10px;
  margin: 10px 0 14px;
}
.select-label select {
  width: 62%;
  font-size: 10px;
  padding: 8px 5px;
}
.cutout-options .select-label {
  font-size: 9px;
  margin: 0;
}
.cutout-options select {
  font-size: 9px;
}
.cutout-options p {
  font-size: 9px;
  line-height: 1.5;
  color: #8a9080;
  margin: 7px 0 0;
}
.cutout-options #keyOptions > label,
.cutout-options #toleranceOptions > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 8px;
  gap: 10px;
}
.look-presets {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.look-card {
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border-radius: 5px;
  text-align: left;
}
.look-card.active {
  border-color: #c4d0b3;
  background: #edf2e5;
}
.preset-art {
  height: 35px;
  width: 49px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  font-size: 29px;
  line-height: 1;
}
.preset-art.blue {
  background: #283fce;
  color: #d8f2e5;
}
.preset-art.paper {
  background: #e8e5db;
  color: #3b403b;
}
.preset-art.acid {
  background: #242923;
  color: #c7ef9b;
}
.look-card > span:nth-child(2) {
  font-size: 10px;
  flex: 1;
}
.look-card small {
  font: 8px monospace;
  color: #8c9381;
  padding-right: 5px;
}
.text-button {
  font-size: 10px;
  color: #777e6b;
  padding: 0;
  text-align: left;
}
.sources > .text-button {
  margin-top: 13px;
  font-size: 9px;
}
.source-bottom {
  margin-top: auto;
  padding-top: 30px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
}
.tiny-cross {
  font-size: 27px;
  color: #9da58f;
}
.source-bottom p {
  font-size: 9px;
  line-height: 1.5;
  color: #8d9480;
}
.source-bottom .text-button {
  grid-column: 1/3;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 8px;
}
.stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f0f1e9;
}
.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 25px;
  min-height: 64px;
}
.stage-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-badge {
  font: 7px monospace;
  border: 1px solid #d7ddcd;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  color: #78816a;
}
.live-badge i {
  width: 3px;
  height: 3px;
  background: #90a97c;
  border-radius: 50%;
}
.history-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.history-controls .quiet {
  border: 1px solid var(--line);
  font-size: 9px;
  border-radius: 3px;
  margin: 0 5px;
}
.history-controls .quiet[aria-pressed="true"] {
  background: var(--lime);
}
.divider {
  height: 14px;
  width: 1px;
  background: #d2d6c8;
  margin: 0 5px;
}
.preview-area {
  flex: 1;
  min-height: 330px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 18px 32px 26px;
  overflow: hidden;
  background-image: radial-gradient(#d3d6c9 0.65px, transparent 0.65px);
  background-size: 14px 14px;
}
.canvas-mat {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
canvas#preview {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 355px);
  object-fit: contain;
  box-shadow: 0 12px 32px #35402510;
  background: #283fce;
  aspect-ratio: 16/9;
}
.canvas-caption {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  color: #8c9480;
  font: 7px monospace;
  letter-spacing: 0.6px;
  gap: 10px;
}
.transport {
  height: 70px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  gap: 14px;
  background: #f7f8f1;
}
.playback {
  display: flex;
  align-items: center;
  gap: 7px;
}
.playback .icon-button {
  font-size: 15px;
  color: #8b937c;
}
.playback .is-on {
  color: #303a24;
  background: #e8eddd;
}
.play-button {
  height: 31px;
  width: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2c3328;
  color: #fff;
  font-size: 11px;
  padding-left: 8px;
}
.timecode {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 10px monospace;
  font-variant-numeric: tabular-nums;
}
.timecode span:not(:first-child) {
  color: #929b84;
}
.transport-right {
  display: flex;
  gap: 13px;
  align-items: center;
  font: 8px monospace;
  color: #8b947c;
}
.key-hint {
  border: 1px solid #d8decc;
  padding: 4px;
  border-radius: 3px;
  font-size: 7px;
}
.timeline {
  position: relative;
  background: #f7f8f1;
  padding: 5px 25px 27px;
}
.ruler {
  display: flex;
  justify-content: space-between;
  padding: 0 0 12px 66px;
  color: #8c947f;
  font: 7px monospace;
}
.ruler span {
  position: relative;
}
.ruler span:after {
  content: "";
  position: absolute;
  height: 4px;
  width: 1px;
  background: #ccd3bd;
  top: 14px;
  left: 0;
}
.timeline-track {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 44px;
}
.track-label {
  font-size: 9px;
  color: #737d65;
  width: 54px;
  flex-shrink: 0;
  display: flex;
  gap: 8px;
}
.track-label span {
  font-size: 13px;
}
.track-body {
  height: 41px;
  border: 1px solid #ccd8b7;
  flex: 1;
  border-radius: 4px;
  position: relative;
  background: #e7eedb;
  cursor: crosshair;
}
.clip-label {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  color: #687b4b;
}
.clip-dot {
  height: 6px;
  width: 6px;
  flex-shrink: 0;
  background: #9db880;
  border-radius: 2px;
}
.playhead {
  height: 70px;
  width: 1px;
  position: absolute;
  background: #434e36;
  top: -20px;
  pointer-events: none;
}
.playhead i {
  position: absolute;
  top: 0;
  left: -4px;
  width: 9px;
  height: 9px;
  background: #434e36;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}
.scrubber {
  position: absolute;
  bottom: 5px;
  left: 91px;
  width: calc(100% - 116px) !important;
  opacity: 0;
  height: 60px !important;
  margin: 0 !important;
  cursor: ew-resize;
}
.keyframe-marker {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #768b55;
  transform: translateX(-50%) rotate(45deg);
  top: 29px;
  pointer-events: none;
}
.stage-footer {
  height: 35px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  font-size: 8px;
  color: #949c86;
  background: #f7f8f1;
}
.stage-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.stage-footer > span:last-child {
  font: 7px monospace;
  letter-spacing: 0.9px;
}
.inspector {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 74px);
}
.inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 21px 22px;
  font-size: 9px;
}
.inspector-heading .text-button {
  font-size: 9px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 21px;
  gap: 20px;
}
.tabs button {
  font-size: 11px;
  padding: 0 1px 13px;
  position: relative;
  color: #969c8d;
}
.tabs button[aria-selected="true"] {
  color: #30352a;
}
.tabs button[aria-selected="true"]:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #566344;
}
.tabs button span {
  font-size: 12px;
  margin-left: 4px;
}
.panel {
  overflow-y: auto;
  flex: 1;
  padding: 0 21px;
  scrollbar-width: thin;
  scrollbar-color: #d4dac9 transparent;
}
.control-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.control-section:last-child {
  border-bottom: 0;
}
.control-section h2 {
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.control-section h2 > span {
  font: 8px monospace;
  color: #a1a891;
}
.field-label {
  font-size: 10px;
  display: block;
  margin-bottom: 9px;
  color: #6a715f;
}
.shape-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 24px;
}
.shape-options button {
  height: 47px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 19px;
  background: #fff;
  color: #667157;
}
.shape-options small {
  font-size: 8px;
  color: #8b947e;
}
.shape-options button.selected {
  border-color: #a7b98d;
  background: #eaf2df;
  color: #39492a;
}
.parameter {
  margin-top: 18px;
}
.parameter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  color: #68705c;
}
.parameter-value {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #7b856c;
  font-size: 9px;
}
.parameter-value input {
  width: 43px;
  text-align: right;
  padding: 3px 2px;
  background: none;
  border: 0;
  font: 10px monospace;
  color: #4b573e;
  -moz-appearance: textfield;
}
.parameter-value input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  position: relative;
  font-size: 10px;
  color: #68715d;
  cursor: pointer;
}
.toggle-row input {
  position: absolute;
  right: 0;
  opacity: 0;
  width: 30px;
  height: 18px;
}
.switch {
  width: 26px;
  height: 14px;
  background: #daddd2;
  border-radius: 10px;
  position: relative;
  pointer-events: none;
  transition: background 0.2s;
}
.switch:after {
  content: "";
  position: absolute;
  background: #fff;
  top: 2px;
  left: 2px;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  box-shadow: 0 1px 2px #0002;
  transition: transform 0.2s;
}
.toggle-row input:checked + .switch {
  background: #819e5c;
}
.toggle-row input:checked + .switch:after {
  transform: translateX(12px);
}
.toggle-row input:focus-visible + .switch {
  outline: 2px solid #527c38;
  outline-offset: 3px;
}
.color-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
.color-row > label {
  font-size: 9px;
  color: #68715b;
}
.color-row > label > div {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.color-row [data-color-label] {
  font: 8px monospace;
  color: #899278;
}
.stack-label {
  display: block;
  font-size: 9px;
  color: #79836b;
  margin-top: 15px;
}
.stack-label > input {
  width: 100%;
  margin-top: 7px;
  font-size: 10px;
}
.inspector-bottom {
  border-top: 1px solid var(--line);
  padding: 14px 21px;
  display: flex;
  gap: 13px;
  align-items: center;
  background: var(--surface);
}
.mini-mark {
  font-size: 19px;
  letter-spacing: -2px;
  font-weight: 700;
}
.inspector-bottom > span:nth-child(2) {
  font: 6px/1.6 monospace;
  letter-spacing: 0.7px;
  color: #929c82;
  flex: 1;
}
.inspector-bottom > span:last-child {
  font-size: 17px;
  color: #6b7b54;
}
.motion-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0 24px;
}
.motion-options button {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
}
.motion-options button span {
  font-size: 9px;
}
.motion-options button.selected {
  background: #eaf2df;
  border-color: #a7b98d;
}
.helper {
  font-size: 10px;
  line-height: 1.7;
  color: #939b86;
  margin: 10px 0 16px;
}
.pose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}
.pose-grid label {
  font-size: 9px;
  color: #7d896b;
}
.pose-grid input {
  width: 100%;
  margin-top: 5px;
  font: 10px monospace;
}
.keyframe-list {
  margin: 12px 0;
}
.keyframe-row {
  display: flex;
  align-items: center;
  font: 9px monospace;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  gap: 7px;
}
.keyframe-row > button:first-child {
  flex: 1;
  text-align: left;
  color: #71815b;
}
.keyframe-row .icon-button {
  font-size: 14px;
}
.export-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 15px 10px;
  margin: 22px 0 15px;
}
.file-icon {
  font-size: 24px;
  color: #7a915e;
}
.export-summary strong {
  font-size: 10px;
  font-weight: 500;
}
.export-summary p {
  font: 8px monospace;
  color: #849475;
  margin: 7px 0;
}
.export-summary small {
  font-size: 8px;
  color: #9aa28d;
}
.control-section > .outline {
  margin-top: 10px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 21px;
  max-width: min(90vw, 600px);
  background: #30372a;
  color: #f4f7ec;
  border: 1px solid #556047;
  border-radius: 6px;
  z-index: 10;
  font-size: 11px;
  box-shadow: 0 8px 25px #0002;
  line-height: 1.6;
}
dialog {
  border: 1px solid #d2dac5;
  border-radius: 10px;
  padding: 28px;
  width: min(460px, calc(100vw - 30px));
  background: #fbfcf7;
  box-shadow: 0 30px 80px #10180c33;
  color: #31392a;
}
dialog::backdrop {
  background: #1f291b66;
  backdrop-filter: blur(5px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-top .section-label {
  font-size: 8px;
  color: #89967a;
}
dialog h2 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 25px 0 10px;
}
dialog p,
dialog li {
  font-size: 11px;
  line-height: 1.8;
  color: #7c886e;
}
dialog ol {
  padding-left: 16px;
}
dialog li {
  padding: 4px 0;
}
progress {
  appearance: none;
  width: 100%;
  height: 6px;
  border: 0;
  background: #e1e7d7;
  border-radius: 5px;
  margin-top: 20px;
}
progress::-webkit-progress-bar {
  background: #e1e7d7;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #839c60;
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: #839c60;
}
.progress-footer {
  display: flex;
  justify-content: space-between;
  font: 9px monospace;
  color: #89967a;
  margin: 10px 0 25px;
}
dialog .wide {
  margin-top: 12px;
}
dialog video {
  display: block;
  width: 100%;
  margin-top: 16px;
  border-radius: 4px;
  background: #000;
}
.is-exporting .workspace {
  pointer-events: none;
}
.is-exporting .topbar button {
  pointer-events: none;
}
@media (min-width: 1550px) {
  .workspace {
    grid-template-columns: 260px minmax(300px, 1fr) 310px;
  }
  .sources {
    padding-left: 26px;
    padding-right: 26px;
  }
  .panel {
    padding: 0 25px;
  }
  .sources h1 {
    font-size: 33px;
  }
  .preview-area {
    padding: 30px 48px;
  }
  .canvas-caption {
    font-size: 8px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 205px minmax(280px, 1fr) 254px;
  }
  .sources {
    padding: 21px 15px;
  }
  .sources h1 {
    font-size: 25px;
  }
  .panel {
    padding: 0 17px;
  }
  .inspector-heading {
    padding-left: 17px;
    padding-right: 17px;
  }
  .topbar {
    padding: 0 20px;
  }
  .top-actions {
    gap: 10px;
  }
  .project-title > span:last-child {
    display: none;
  }
  .preview-area {
    padding: 12px 22px;
  }
  .canvas-caption {
    font-size: 6px;
  }
  .canvas-caption > span:nth-child(2) {
    display: none;
  }
  .transport {
    padding: 0 18px;
  }
  .key-hint {
    display: none;
  }
  .stage-toolbar {
    padding: 15px 18px;
  }
  .transport-right {
    font-size: 7px;
  }
}
@media (max-width: 900px) {
  .topbar {
    height: 62px;
    padding: 0 16px;
  }
  .project-title {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions > .quiet {
    display: none;
  }
  .brand {
    font-size: 17px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 270px;
    min-height: calc(100dvh - 62px);
  }
  .sources {
    grid-column: 1/3;
    display: grid;
    grid-template-columns: 1fr 200px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sources h1 {
    grid-column: 1;
    font-size: 22px;
    margin: 0;
  }
  .sources .intro,
  .pane-heading,
  .sources > .section-label,
  .look-presets,
  .source-bottom,
  .sources > .text-button,
  .cutout-options {
    display: none;
  }
  .upload-zone {
    grid-column: 2;
    grid-row: 1;
    padding: 12px;
  }
  .upload-symbol {
    display: none;
  }
  .upload-zone strong {
    font-size: 10px;
  }
  .upload-zone > span:not(:first-child),
  .upload-zone small {
    display: none;
  }
  .source-card {
    grid-column: 3;
    grid-row: 1;
  }
  .sources > .outline {
    grid-column: 3;
    grid-row: 2;
    margin: 0;
  }
  .sources h1 {
    grid-row: 1/3;
  }
  .upload-zone {
    grid-row: 1/3;
    min-height: 70px;
  }
  .stage {
    grid-column: 1;
  }
  .inspector {
    grid-column: 2;
    max-height: calc(100dvh - 173px);
  }
  .stage-toolbar .live-badge {
    display: none;
  }
  .preview-area {
    min-height: 250px;
  }
  canvas#preview {
    max-height: calc(100dvh - 470px);
  }
  .stage-footer > span:last-child {
    display: none;
  }
}
@media (max-width: 620px) {
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .sources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 16px;
    gap: 9px;
  }
  .sources h1 {
    font-size: 21px;
    grid-column: 1;
    grid-row: 1;
  }
  .upload-zone {
    grid-column: 2;
    grid-row: 1;
    min-height: 62px;
  }
  .source-card {
    grid-column: 1;
    grid-row: 2;
  }
  .source-card img {
    width: 22px;
    height: 26px;
  }
  .source-card > div > span {
    font-size: 7px;
  }
  .sources > .outline {
    grid-column: 2;
    grid-row: 2;
    height: 44px;
    font-size: 9px;
  }
  .topbar {
    gap: 10px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions > .icon-button {
    display: none;
  }
  .primary {
    font-size: 10px;
    padding: 10px 12px;
  }
  .stage-toolbar {
    padding: 12px 16px;
    min-height: 47px;
  }
  .stage-toolbar .section-label {
    font-size: 8px;
  }
  .preview-area {
    min-height: 240px;
    padding: 14px 16px;
  }
  .canvas-mat {
    max-height: 380px;
  }
  canvas#preview {
    max-height: 350px;
  }
  .canvas-caption {
    font-size: 6px;
    margin-top: 10px;
  }
  .transport {
    height: 53px;
    padding: 0 16px;
  }
  .timeline {
    padding: 4px 16px 25px;
  }
  .scrubber {
    left: 82px;
    width: calc(100% - 98px) !important;
  }
  .stage-footer {
    height: 30px;
    padding: 0 16px;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: none;
  }
  .inspector-heading {
    padding: 19px 18px 16px;
  }
  .tabs {
    gap: 35px;
    padding: 0 18px;
  }
  .panel {
    overflow: visible;
    padding: 0 18px;
  }
  .control-section {
    padding: 21px 0;
  }
  .shape-options button {
    height: 50px;
  }
  .control-section .parameter {
    margin-top: 22px;
  }
  .inspector-bottom {
    padding: 15px 18px;
  }
  .cutout-options.mobile-expanded {
    display: block;
    grid-column: 1/3;
  }
  .stage:has(canvas:fullscreen) {
    background: #000;
  }
  #fullscreen {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* Keep the transport in view while each desktop inspector scrolls independently. */
@media (min-width: 901px) {
  .workspace {
    height: calc(100dvh - 74px);
    min-height: 0;
  }
  .sources {
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #d4dac9 transparent;
  }
  .stage {
    min-height: 0;
  }
  .preview-area {
    min-height: 0;
  }
  .canvas-mat {
    min-height: 0;
  }
  canvas#preview {
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - 355px);
    background: transparent;
    box-shadow: none;
  }
  .source-bottom {
    margin-top: 20px;
  }
}
@media (min-width: 621px) and (max-width: 900px) {
  .workspace {
    height: calc(100dvh - 62px);
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .stage {
    min-height: 0;
  }
  .preview-area {
    min-height: 0;
  }
  .canvas-mat {
    min-height: 0;
  }
  canvas#preview {
    width: auto;
    max-width: 100%;
    background: transparent;
    box-shadow: none;
  }
}
@media (min-width: 621px) {
  .preview-area .canvas-mat {
    position: relative;
    flex: 1;
    min-height: 0;
    max-width: none;
  }
  .preview-area canvas#preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }
  .canvas-caption {
    flex-shrink: 0;
  }
}
@media (max-width: 620px) {
  .sources .cutout-options {
    display: block;
    grid-column: 1/3;
    margin-top: 2px;
  }
  .cutout-options p {
    font-size: 8px;
  }
  .cutout-options .select-label select {
    width: 55%;
  }
}
