@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@500;600;650;700;750;800&display=swap");
:root {
  color-scheme: dark;
  --bg: #15171c;
  --panel: #1b1d23;
  --raised: #24262e;
  --line: #2c2e37;
  --text: #eeedf4;
  --muted: #898a9a;
  --purple: #baabf4;
  --green: #bdddb0;
  --font: "DM Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px var(--font);
  overflow: hidden;
}
button,
input,
select,
summary {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
button:disabled {
  opacity: 0.28;
  cursor: default;
}
button:hover:not(:disabled),
summary:hover {
  background: #30323c;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
input:focus-visible {
  outline: 1px solid var(--purple);
  border-color: var(--purple);
}
a {
  color: inherit;
  text-decoration: none;
}
svg.icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.15px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.25px;
  color: #797b8c;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #191b21;
  position: relative;
  z-index: 15;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand > svg {
  height: 34px;
  width: 34px;
  color: var(--purple);
}
.brand > span {
  font:
    750 21px "Manrope",
    var(--font);
  letter-spacing: -1px;
  line-height: 1.1;
}
.brand small {
  display: block;
  font: 500 8px var(--font);
  letter-spacing: 2.3px;
  color: var(--muted);
  margin-top: 7px;
}
.top-divider {
  height: 30px;
  width: 1px;
  background: #353640;
}
.project-heading {
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-heading input {
  font-weight: 550;
  font-size: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  width: 210px;
  max-width: 100%;
  color: var(--text);
}
.save-status {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.save-status:before {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: var(--green);
}
.save-status.unsaved:before {
  background: #ddc89d;
}
.project-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.quiet {
  padding: 9px 11px;
  border-radius: 6px;
  color: #bdbdca;
  font-size: 12px;
}
.primary {
  background: var(--purple);
  color: #211c36;
  border-radius: 6px;
  padding: 10px 15px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
}
.primary:hover:not(:disabled),
summary.primary:hover {
  background: #cabeff;
}
.outline {
  border: 1px solid #3a3c47;
  border-radius: 6px;
  padding: 10px 12px;
  color: #d8d7e3;
  font-size: 11px;
}
.full {
  width: 100%;
}
.icon-button {
  height: 31px;
  width: 31px;
  padding: 0;
  border-radius: 5px;
  flex-shrink: 0;
  color: #a8a9b8;
}
.icon-button.quiet {
  height: 35px;
  width: 35px;
}
.icon-button.small {
  width: 24px;
  height: 24px;
}
.export-menu {
  position: relative;
}
.component-modes { flex-shrink: 0; }
.toolbar { overflow-x: auto; scrollbar-width: none; }
.toolbar::-webkit-scrollbar { display: none; }
.toolbar > * { flex-shrink: 0; }
.toolbar-spacer { flex-shrink: 1; }
#animationExportDialog { max-height: calc(100dvh - 20px); overflow-y: auto; }
.component-modes .tool { font-size: 10px; padding: 8px; }
.mesh-actions, .mesh-center, .export-settings { display: grid; gap: 8px; margin-top: 12px; }
.mesh-actions, .export-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mesh-actions button { padding: 9px 6px; background: #302c3c; border: 1px solid var(--line); border-radius: 6px; }
.mesh-actions button:disabled { opacity: .4; cursor: default; }
.mesh-center { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mesh-center label, .export-settings label { min-width: 0; font-size: 11px; }
.mesh-center input, .export-settings input, .export-settings select { width: 100%; min-width: 0; margin-top: 6px; }
.export-settings input, .export-settings select { padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #191b23; color: var(--text); }
.mesh-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11px; }
.mesh-check input { width: auto; }
#componentStatus { font-size: 12px; color: var(--purple); margin: 10px 0; }
#meshCounts { font-size: 9px; }
#animationExportProgress { width: 100%; accent-color: var(--purple); }
#animationExportStatus { min-height: 1.4em; font-size: 12px; }
.export-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
}
.export-menu summary::-webkit-details-marker {
  display: none;
}
.chevron {
  font-weight: 400;
  margin-left: 5px;
}
.menu-popover {
  position: absolute;
  right: 0;
  top: 44px;
  width: 233px;
  border: 1px solid #41434f;
  border-radius: 9px;
  background: #23252e;
  padding: 6px;
  box-shadow: 0 10px 30px #0005;
}
.menu-popover button {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 20px 1fr;
  justify-items: start;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
}
.menu-popover button svg {
  grid-row: span 2;
}
.menu-popover button span {
  grid-column: 2;
  font-size: 10px;
  color: var(--muted);
  margin-top: -3px;
}
.workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 276px;
  height: calc(100dvh - 78px);
}
.sidebar {
  background: var(--panel);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #393b48 transparent;
}
.library {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.panel-tabs {
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  padding: 0 17px;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.panel-tabs > [role="tab"] {
  font-size: 12px;
  color: var(--muted);
  padding: 0 3px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  gap: 8px;
}
.panel-tabs > [role="tab"]:hover {
  background: none;
  color: var(--text);
}
.panel-tabs > [role="tab"].active {
  border-color: var(--purple);
  color: var(--text);
}
.count {
  background: #31313e;
  padding: 2px 5px;
  font-size: 9px;
  border-radius: 4px;
  color: #c9c6da;
}
.panel-section {
  padding: 21px 18px;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 12px;
}
.intro {
  font-size: 11px;
  margin-bottom: 17px;
}
.primitive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}
.primitive-grid button {
  flex-direction: column;
  padding: 11px 0 9px;
  border: 1px solid #343641;
  border-radius: 7px;
  background: #24262e;
  font-size: 10px;
  color: #b8b8c8;
  gap: 7px;
}
.primitive-grid button:hover {
  border-color: #9784d8;
  color: #e2d8ff;
  background: #302b40;
}
.primitive-grid svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #aaa5c2;
  stroke-width: 1.25;
  stroke-linejoin: round;
}
.utility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}
.utility-grid button {
  padding: 9px 4px;
  font-size: 10px;
  border: 1px solid #343641;
  border-radius: 6px;
  color: #b8b8c8;
}
.utility-grid .icon {
  width: 14px;
  height: 14px;
}
.templates {
  padding-top: 23px;
}
.template-card {
  width: 100%;
  justify-content: start;
  gap: 10px;
  padding: 9px 7px 9px 0;
  text-align: left;
  border-radius: 7px;
  margin: 2px 0;
}
.template-card > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.template-card strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #d8d7e5;
  line-height: 1.5;
}
.template-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
}
.template-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 49px;
  background: #2c283b;
  border-radius: 6px;
  flex-shrink: 0;
  color: #b6a2ee;
}
.template-art svg {
  width: 37px;
  height: 37px;
  fill: currentColor;
}
.template-art .art-dark {
  fill: #3a344c;
}
.template-art .art-accent {
  fill: #d9e8bc;
}
.rocket-art {
  background: #2a303a;
  color: #adbce0;
}
.rocket-art .art-accent {
  fill: #dba6a0;
}
.desk-art {
  background: #2c3028;
  color: #c1cda9;
}
.desk-art .art-accent {
  fill: #9caa84;
}
.template-arrow {
  font-size: 15px;
  color: #898599;
}
.library-note {
  padding: 21px 18px;
  font-size: 10px;
  color: #767889;
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  height: 5px;
  width: 5px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9493a6;
  padding: 18px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.back-link:hover {
  color: var(--purple);
}
.studio {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.toolbar {
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  background: #1b1d23;
  border-bottom: 1px solid var(--line);
}
.tool-group {
  display: flex;
  gap: 3px;
}
.tool {
  padding: 8px 9px;
  font-size: 11px;
  color: #989aab;
  border-radius: 5px;
}
.tool.active {
  background: #343044;
  color: #d5c6ff;
}
.toolbar-divider {
  width: 1px;
  height: 21px;
  background: #363844;
  margin: 0 7px;
}
.toolbar-spacer {
  flex: 1;
}
.icon-button.active {
  color: var(--purple);
  background: #302b40;
}
.viewport {
  position: relative;
  flex: 1;
  min-height: 180px;
  background: #20232b;
  overflow: hidden;
}
.viewport > canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}
.viewport-top {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 2;
}
.scene-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b2b4c2;
  font-size: 10px;
  text-shadow: 0 1px 3px #000;
  max-width: 40%;
}
.scene-label > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.view-modes {
  display: flex;
  background: #1b1d25e6;
  padding: 4px;
  border: 1px solid #3c3e4a;
  border-radius: 7px;
  pointer-events: auto;
}
.view-modes button {
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  color: #8f90a4;
  gap: 5px;
}
.view-modes button .icon {
  width: 13px;
  height: 13px;
}
.view-modes button.active {
  color: #e3def4;
  background: #383344;
}
.view-controls {
  position: absolute;
  top: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #1b1d25cc;
  padding: 4px;
  border: 1px solid #3c3e4a;
  border-radius: 7px;
  z-index: 2;
}
.camera-presets {
  position: absolute;
  bottom: 59px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #1b1d25d9;
  border: 1px solid #393b46;
  border-radius: 7px;
  z-index: 2;
  white-space: nowrap;
}
.camera-presets button {
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 4px;
  color: #9697a9;
}
.camera-presets button.active {
  background: #35323f;
  color: #dcd3f7;
}
.viewport-bottom {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.navigation-hint {
  font-size: 9px;
  color: #9397a9;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.navigation-hint i {
  font-style: normal;
  color: #5e6273;
}
.mouse-icon {
  height: 15px;
  width: 10px;
  border: 1px solid #85899e;
  border-radius: 5px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.mouse-icon:before {
  content: "";
  height: 4px;
  border-left: 1px solid #85899e;
  position: absolute;
  left: 4px;
  top: 2px;
}
.axis-key {
  display: flex;
  gap: 9px;
  font-size: 10px;
}
.axis-x {
  color: #d8979a;
}
.axis-y {
  color: #a9c69c;
}
.axis-z {
  color: #9caed6;
}
.statusbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #767a8d;
  flex-shrink: 0;
}
.statusbar-help {
  font-style: italic;
  color: #7b7c90;
}
.version {
  letter-spacing: 1px;
  font-size: 8px;
  white-space: nowrap;
}
.version b {
  color: var(--purple);
  margin-left: 4px;
  font-weight: 500;
}
.inspector {
  border-left: 1px solid var(--line);
}
.inspector-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.inspector .panel-section {
  padding: 18px;
}
.field-label {
  display: block;
  font-size: 9px;
  color: #898a9c;
  letter-spacing: 0.9px;
  margin-bottom: 9px;
}
.name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.name-row > input {
  width: 100%;
  min-width: 0;
}
.inspector input:not([type="range"]):not([type="color"]) {
  background: #252730;
  border: 1px solid #363844;
  color: #d9d7e5;
  border-radius: 5px;
  padding: 8px;
  font-size: 11px;
  min-width: 0;
  max-width: 100%;
  height: 33px;
}
.delete:hover {
  color: #f0a6a6;
}
.axis-labels,
.transform-row {
  display: grid;
  grid-template-columns: 56px repeat(3, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
}
.axis-labels {
  margin-bottom: 5px;
  font-size: 9px;
  text-align: center;
}
.axis-labels b {
  font-weight: 550;
}
.transform-row {
  margin-bottom: 7px;
}
.transform-row > span {
  color: #9393a7;
  font-size: 10px;
}
.inspector .transform-row input {
  padding: 7px 3px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
  font-size: 10px;
}
.transform-row input::-webkit-inner-spin-button {
  appearance: none;
}
.transform-options {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
  margin-top: 11px;
}
.text-action {
  font-size: 10px;
  color: #b1a6cf;
  padding: 0;
  gap: 4px;
}
.text-action .icon {
  width: 13px;
  height: 13px;
}
.transform-options > span {
  font-size: 9px;
  color: #6f7286;
}
.shape-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.shape-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: #9897aa;
}
.shape-fields input {
  width: 100%;
}
.material-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 17px;
}
.material-presets button {
  font-size: 9px;
  padding: 7px 0;
  border: 1px solid #393846;
  border-radius: 4px;
  background: #292731;
  color: #b4acc9;
}
.material-presets button.metal {
  background: linear-gradient(120deg, #393b44, #25262d);
  color: #c6c9d5;
}
.material-presets button.glass {
  background: #222e36;
  color: #9fbcc5;
}
.material-presets button.glow {
  background: #303228;
  color: #d2d3ac;
}
.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #a9a8b8;
  gap: 10px;
  margin: 12px 0;
}
.color-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  background: #24262e;
  border: 1px solid #363844;
  border-radius: 5px;
  font-size: 9px;
  color: #c0bece;
  letter-spacing: 0.3px;
}
.inspector input[type="color"] {
  padding: 0;
  appearance: none;
  width: 26px;
  height: 24px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.inspector input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.inspector input[type="color"]::-webkit-color-swatch {
  border: 1px solid #fff2;
  border-radius: 3px;
}
.inspector input[type="color"]::-moz-color-swatch {
  border: 1px solid #fff2;
  border-radius: 3px;
}
.slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #a9a8b8;
  margin-top: 16px;
  margin-bottom: 8px;
}
.slider-label output {
  font-size: 10px;
  color: #9c98b2;
  font-variant-numeric: tabular-nums;
}
.inspector input[type="range"] {
  display: block;
  width: 100%;
  appearance: none;
  height: 3px;
  background: #3a3748;
  border-radius: 4px;
  accent-color: var(--purple);
  cursor: pointer;
  margin: 10px 0 6px;
}
.inspector input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: #b9a4ef;
  height: 10px;
  width: 10px;
  border-radius: 50%;
}
.inspector input[type="range"]::-moz-range-thumb {
  background: #b9a4ef;
  height: 10px;
  width: 10px;
  border: 0;
  border-radius: 50%;
}
.emission-controls {
  margin-top: 23px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.emission-controls summary {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #a9a8b8;
  cursor: pointer;
  list-style: none;
}
.emission-controls summary::-webkit-details-marker {
  display: none;
}
.scene-settings {
  margin-top: 0;
}
.object-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.object-row {
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 5px;
  padding: 2px;
  min-width: 0;
}
.object-row.selected {
  background: #373044;
}
.object-row:hover {
  background: #292a34;
}
.object-row.selected:hover {
  background: #373044;
}
.object-select {
  justify-content: start;
  flex: 1;
  min-width: 0;
  padding: 8px 5px;
  font-size: 11px;
  color: #c1becf;
}
.object-select > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.object-select .icon {
  width: 15px;
  height: 15px;
  color: #9590a9;
}
.object-row.selected .object-select .icon {
  color: var(--purple);
}
.object-row .visibility {
  height: 27px;
  width: 27px;
}
.object-row .visibility .icon {
  width: 13px;
  height: 13px;
}
.object-row.is-hidden .object-select {
  opacity: 0.45;
}
.scene-empty {
  padding: 24px 5px;
  text-align: center;
  color: #9191a6;
  font-size: 12px;
  line-height: 1.7;
}
.empty-inspector {
  padding: 40px 23px;
  text-align: center;
}
.empty-inspector > span .icon {
  width: 35px;
  height: 35px;
  color: #9b8abd;
  margin-bottom: 17px;
}
.empty-inspector h3 {
  font:
    600 16px "Manrope",
    var(--font);
  margin-bottom: 10px;
}
.empty-inspector p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.file-input {
  display: none;
}
.loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  color: #c1b6df;
  background: #20232b;
  z-index: 10;
  padding: 30px;
  text-align: center;
}
.loading > span:last-child {
  color: #9191a6;
  font-size: 12px;
  max-width: 320px;
  line-height: 1.7;
}
.loader-mark {
  width: 25px;
  height: 25px;
  border: 2px solid #655381;
  border-top-color: #c6b2fa;
  transform: rotate(45deg);
  animation: spin 2s linear infinite;
}
.loading button {
  border: 1px solid #706181;
  border-radius: 5px;
  padding: 10px 20px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 54px;
  transform: translate(-50%, 15px);
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  line-height: 1.5;
  border: 1px solid #585265;
  border-radius: 8px;
  background: #2b2735f5;
  box-shadow: 0 5px 25px #0004;
  color: #e2dbf3;
  z-index: 50;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: #23232c;
  color: var(--text);
  border: 1px solid #4d455d;
  border-radius: 15px;
  max-width: 470px;
  width: calc(100% - 40px);
  padding: 28px;
  box-shadow: 0 25px 100px #0008;
}
dialog::backdrop {
  background: #090a11a6;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.dialog-heading .eyebrow {
  color: #ae9ccf;
}
dialog h2 {
  font:
    650 28px/1.3 "Manrope",
    var(--font);
  letter-spacing: -1px;
  margin-bottom: 15px;
}
dialog p {
  font-size: 12px;
  line-height: 1.85;
  color: #b4afc5;
  margin-bottom: 22px;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: #c3bdcf;
  border-top: 1px solid #3d3549;
  border-bottom: 1px solid #3d3549;
  padding: 20px 0;
  margin-bottom: 20px;
}
.shortcut-grid > span:nth-child(2) {
  display: flex;
  gap: 4px;
}
kbd {
  font: 10px var(--font);
  background: #34303e;
  border: 1px solid #51485f;
  border-radius: 4px;
  padding: 3px 6px;
  text-align: center;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.mobile-close,
.mobile-tool {
  display: none;
}
[hidden] {
  display: none !important;
}
@keyframes spin {
  to {
    transform: rotate(405deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: 270px minmax(0, 1fr) 300px;
  }
  .panel-section {
    padding: 24px 22px;
  }
  .inspector .panel-section {
    padding: 21px;
  }
  .primitive-grid svg {
    width: 37px;
    height: 37px;
  }
  .primitive-grid button {
    padding: 14px 0 11px;
  }
  .template-card {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .template-art {
    width: 50px;
    height: 54px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 220px minmax(0, 1fr) 250px;
  }
  .topbar {
    padding: 0 16px;
    gap: 17px;
  }
  .panel-section,
  .inspector .panel-section {
    padding: 17px 13px;
  }
  .inspector-header {
    padding: 0 13px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .project-heading input {
    width: 165px;
  }
  .toolbar {
    padding: 0 10px;
  }
  .tool {
    padding: 8px;
  }
  .tool span {
    display: none;
  }
  .viewport-top {
    left: 14px;
    right: 14px;
  }
  .view-modes button {
    padding: 6px;
  }
  .navigation-hint {
    font-size: 8px;
    gap: 5px;
  }
  .viewport-bottom {
    left: 14px;
    right: 14px;
  }
  .statusbar-help {
    display: none;
  }
  .template-art {
    width: 39px;
    height: 44px;
  }
  .template-card {
    gap: 8px;
  }
  .template-card strong {
    font-size: 10px;
  }
  .template-card small {
    font-size: 9px;
  }
  .intro {
    font-size: 10px;
  }
}
@media (max-width: 950px) {
  .workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .inspector {
    display: none;
    position: fixed;
    right: 0;
    top: 78px;
    bottom: 0;
    width: 276px;
    z-index: 20;
    box-shadow: -10px 0 40px #0005;
  }
  .inspector.is-open {
    display: block;
  }
  .inspector .panel-section {
    padding: 18px;
  }
  .inspector .mobile-close {
    display: inline-flex;
  }
  .inspector-header {
    gap: 8px;
  }
  .inspector-header h2 {
    margin-right: auto;
  }
  .inspector-header .eyebrow {
    display: none;
  }
  #inspectorToggle {
    display: inline-flex;
  }
  .desktop-word {
    display: none;
  }
  .topbar {
    gap: 13px;
  }
  .brand > span {
    font-size: 19px;
  }
  .project-heading input {
    width: 140px;
  }
  .top-divider {
    display: none;
  }
  .project-actions {
    gap: 3px;
  }
  .quiet {
    padding: 9px;
  }
  .view-modes button {
    padding: 6px 8px;
  }
}
@media (max-width: 680px) {
  .topbar {
    height: 65px;
    padding: 0 13px;
    gap: 9px;
  }
  .brand > svg {
    height: 27px;
    width: 27px;
  }
  .brand > span {
    font-size: 18px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.7px;
    margin-top: 5px;
  }
  .project-heading {
    display: none;
  }
  .project-actions {
    gap: 2px;
  }
  .project-actions #newBtn,
  .project-actions #openBtn {
    font-size: 0;
    padding: 8px;
    gap: 0;
  }
  .project-actions #newBtn .icon,
  .project-actions #openBtn .icon {
    width: 17px;
    height: 17px;
  }
  .project-actions #saveBtn {
    font-size: 11px;
    padding: 8px;
    gap: 5px;
  }
  .project-actions #saveBtn .icon {
    width: 15px;
    height: 15px;
  }
  .export-menu summary {
    font-size: 11px;
    padding: 8px 10px;
    gap: 5px;
  }
  .export-menu .chevron {
    display: none;
  }
  .project-actions #helpBtn {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    height: calc(100dvh - 65px);
  }
  .library {
    display: none;
    position: fixed;
    left: 0;
    top: 65px;
    bottom: 0;
    width: 260px;
    z-index: 20;
    box-shadow: 10px 0 40px #0005;
  }
  .library.is-open {
    display: flex;
  }
  .inspector {
    top: 65px;
    width: 270px;
  }
  .mobile-tool,
  .mobile-close {
    display: inline-flex;
  }
  .panel-tabs {
    gap: 22px;
  }
  .panel-tabs .mobile-close {
    margin-left: auto;
    align-self: center;
  }
  .toolbar {
    height: 51px;
    padding: 0 10px;
    gap: 3px;
  }
  .toolbar-divider {
    margin: 0 4px;
  }
  .tool {
    padding: 8px;
  }
  .tool span {
    display: inline;
    font-size: 10px;
  }
  .toolbar .icon-button {
    height: 29px;
    width: 29px;
  }
  .viewport-top {
    top: 14px;
  }
  .scene-label {
    font-size: 9px;
  }
  .view-modes button {
    font-size: 9px;
    padding: 6px;
  }
  .view-modes .icon {
    display: none;
  }
  .view-controls {
    right: 14px;
    top: 66px;
  }
  .camera-presets {
    bottom: 61px;
  }
  .camera-presets button {
    font-size: 9px;
    padding: 6px 8px;
  }
  .navigation-hint {
    font-size: 8px;
    gap: 5px;
  }
  .viewport-bottom {
    bottom: 20px;
  }
  .axis-key {
    display: none;
  }
  .statusbar {
    padding: 0 12px;
    font-size: 8px;
  }
  .library .panel-section {
    padding: 19px 17px;
  }
  .library .eyebrow {
    font-size: 9px;
  }
  .library .intro {
    font-size: 11px;
  }
  .template-card strong {
    font-size: 11px;
  }
  .template-card small {
    font-size: 10px;
  }
  .template-art {
    width: 45px;
    height: 49px;
  }
  .toast {
    bottom: 46px;
    width: max-content;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions button {
    flex: 1;
    min-width: 150px;
  }
}
@media (max-width: 380px) {
  .brand {
    gap: 7px;
  }
  .brand > span {
    font-size: 16px;
  }
  .brand > svg {
    width: 24px;
  }
  .tool span {
    display: none;
  }
  .project-actions #saveBtn {
    font-size: 0;
    gap: 0;
  }
  .viewport-top {
    gap: 5px;
  }
  .scene-label {
    max-width: 33%;
  }
  .navigation-hint {
    font-size: 7px;
    gap: 4px;
  }
}
.library-help {
  font-size: 11px;
  color: #9493a6;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 18px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.library-help + .back-link {
  margin-top: 0;
}
.template-arrow .icon {
  width: 13px;
  height: 13px;
}
@media (max-width: 440px) {
  .tool span {
    display: none;
  }
}

/* Animation, editable text, and responsive touch workspaces. */
:root {
  --studio-top-height: 78px;
}
.workspace {
  height: calc(100dvh - var(--studio-top-height));
}
.viewport {
  min-height: 0;
}
.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;
}
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.full-select,
.inspector select,
.inspector textarea {
  display: block;
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: #252730;
  border: 1px solid #3c3e4c;
  border-radius: 6px;
  padding: 9px;
  font: 12px var(--font);
}
.full-select {
  margin-bottom: 12px;
}
.inspector textarea {
  resize: vertical;
  margin-bottom: 12px;
}
.spaced-label {
  margin-top: 14px;
}
.control-hint {
  font-size: 10px;
  margin: 9px 0 0;
}
.conversion-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.utility-grid .text-add {
  grid-column: 1 / -1;
}
.text-add > span {
  font: 600 16px var(--font);
}
.axis-input {
  display: block;
  min-width: 0;
}
.axis-input > span {
  display: none;
}
.axis-input > input {
  width: 100%;
}
.studio-switch {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--purple);
  border-top: 1px solid var(--line);
}
.studio-switch:hover {
  background: #302b40;
}
.compact-menu,
.touch-zoom,
.touch-transforms {
  display: none;
}
.animation-panel {
  flex-shrink: 0;
  background: #1b1d23;
  border-top: 1px solid var(--line);
  padding: 8px 14px 10px;
  min-width: 0;
}
.animation-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.animation-heading {
  font-size: 11px;
  color: #b3aec6;
}
.animation-play {
  border-radius: 5px;
  color: #dccfff;
  background: #363047;
  padding: 7px 12px;
  font-size: 11px;
  min-width: 72px;
}
.animation-play[aria-pressed="true"] {
  background: #504168;
}
.animation-toggle,
.animation-close {
  display: none;
}
.animation-body {
  min-width: 0;
  margin-top: 8px;
}
.timeline-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.timeline-tools > button {
  font-size: 10px;
  padding: 6px 8px;
}
.timeline-field {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #b3aec6;
}
.input-unit {
  display: flex;
  align-items: center;
  gap: 4px;
}
.timeline-field input {
  width: 56px;
  min-width: 0;
  border: 1px solid #3c3e4c;
  background: #252730;
  color: var(--text);
  border-radius: 5px;
  padding: 5px;
  font-size: 11px;
}
.loop-control {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #b3aec6;
  font-size: 10px;
}
.loop-control input {
  accent-color: var(--purple);
}
.timeline-scrub {
  display: block;
  width: 100%;
  margin: 8px 0 3px;
  accent-color: var(--purple);
}
.keyframe-list {
  display: flex;
  gap: 6px;
  min-height: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  align-items: center;
  font-size: 10px;
}
.keyframe-list .muted {
  font-size: 10px;
}
.keyframe-list button {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 5px;
  color: #d6c5ff;
  background: #312b41;
  font-size: 10px;
}
@media (max-width: 680px) {
  :root {
    --studio-top-height: 65px;
  }
}
@media (max-width: 600px) {
  :root {
    --studio-top-height: 52px;
  }
  .topbar {
    height: var(--studio-top-height);
    padding: 0 10px;
    gap: 8px;
  }
  .brand small {
    display: none;
  }
  .project-actions {
    display: none;
  }
  .compact-menu {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
  }
  .compact-menu > summary {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0 12px;
    min-height: 44px;
    border-radius: 6px;
    font-size: 13px;
    color: #ded5f7;
    cursor: pointer;
  }
  .compact-menu > summary::-webkit-details-marker {
    display: none;
  }
  .compact-menu-body {
    position: fixed;
    inset: 0;
    z-index: 60;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--panel);
    padding: 0 10px 12px;
    box-shadow: 0 10px 50px #0009;
  }
  .compact-menu-heading {
    padding: 14px 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--purple);
  }
  .compact-menu-heading:first-child {
    padding-top: 17px;
    padding-bottom: 17px;
    padding-right: 70px;
    background: var(--panel);
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .compact-menu-body > button,
  .compact-menu-body > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }
  .compact-menu-body > a {
    color: var(--purple);
  }
  .compact-menu-body #compactMenuCloseBtn {
    position: fixed;
    top: 2px;
    right: 7px;
    z-index: 2;
    width: 60px;
    min-height: 44px;
    padding: 4px;
    border: 1px solid #59506c;
    border-radius: 6px;
    background: #27222f;
    justify-content: center;
    font-size: 12px;
  }
  .camera-presets {
    display: none;
  }
  .toolbar {
    height: 50px;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0 6px;
    gap: 4px;
  }
  .toolbar::-webkit-scrollbar {
    display: none;
  }
  .toolbar > *,
  .tool-group,
  .tool {
    flex-shrink: 0;
  }
  .toolbar-spacer {
    min-width: 0;
  }
  .toolbar .icon-button,
  .toolbar .tool,
  .view-controls .icon-button {
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .toolbar .tool > span,
  .toolbar-divider {
    display: none;
  }
  #libraryToggle {
    order: -2;
    background: #272b35;
    color: #d0c8e5;
  }
  #inspectorToggle {
    order: -1;
    background: #302b40;
    color: #ded2fa;
  }
  .touch-zoom {
    display: inline-flex;
    font-size: 25px;
  }
  .touch-transforms {
    display: block;
    margin-bottom: 18px;
  }
  .touch-transforms .control-hint {
    margin: 0 0 10px;
    font-size: 12px;
  }
  .touch-transform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .touch-transform-grid button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    border: 1px solid #494155;
    border-radius: 6px;
    background: #2a2535;
    color: #e2d6ff;
    font-size: 13px;
  }
  .library,
  .inspector {
    inset: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    z-index: 40;
    border: 0;
    overscroll-behavior: contain;
  }
  .panel-tabs,
  .inspector-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--panel);
    min-height: 52px;
    height: 52px;
    padding: 0 10px;
  }
  .panel-tabs {
    gap: 12px;
  }
  .panel-tabs > [role="tab"] {
    min-height: 44px;
    font-size: 14px;
  }
  .sidebar .icon-button,
  .sidebar .icon-button.small {
    width: 44px;
    height: 44px;
  }
  .mobile-close {
    border: 1px solid #504960;
    background: #302a3a;
    color: #e4d7ff;
  }
  .sidebar .panel-section,
  .library .panel-section,
  .inspector .panel-section {
    padding: 16px 12px;
  }
  .sidebar h2 {
    font-size: 14px;
  }
  .sidebar button,
  .sidebar select,
  .sidebar input:not([type="range"]):not([type="color"]),
  .sidebar textarea,
  .sidebar summary {
    min-height: 44px;
    font-size: 14px;
  }
  .inspector input:not([type="range"]):not([type="color"]) {
    height: 44px;
    padding: 10px 8px;
    font-size: 14px;
  }
  .inspector input[type="range"] {
    height: 20px;
    margin: 10px 0;
  }
  .inspector input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }
  .inspector input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
  .inspector input[type="color"] {
    width: 44px;
    height: 44px;
  }
  .shape-fields label,
  .slider-label,
  .color-row,
  .transform-row > span {
    font-size: 13px;
  }
  .field-label {
    font-size: 11px;
  }
  .sidebar .primitive-grid button {
    min-height: 76px;
    font-size: 12px;
  }
  .sidebar .utility-grid button,
  .sidebar .material-presets button {
    font-size: 12px;
  }
  .name-row {
    flex-wrap: wrap;
  }
  .name-row > input {
    flex-basis: 100%;
  }
  .transform-options {
    flex-wrap: wrap;
  }
  .sidebar .text-action {
    min-height: 44px;
    padding: 8px 0;
    font-size: 12px;
  }
  .scene-label,
  .navigation-hint {
    display: none;
  }
  .viewport-top {
    justify-content: flex-start;
    left: 8px;
    right: 8px;
    top: 8px;
  }
  .view-modes button {
    min-height: 36px;
    min-width: 44px;
    font-size: 10px;
  }
  .view-controls {
    right: 8px;
    top: 58px;
    padding: 1px;
    gap: 1px;
  }
  .viewport-bottom {
    display: none;
  }
  .animation-panel {
    padding: 3px 6px;
    min-height: 50px;
  }
  .animation-header {
    gap: 5px;
  }
  .animation-play {
    min-height: 44px;
    min-width: 64px;
    padding: 6px 8px;
    font-size: 13px;
  }
  .animation-toggle {
    display: inline-flex;
    min-height: 44px;
    padding: 6px 8px;
    margin-left: auto;
    font-size: 12px;
    color: var(--purple);
  }
  .animation-heading,
  .animation-body {
    display: none;
  }
  .animation-panel.is-open {
    position: fixed;
    inset: 0;
    z-index: 40;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0 10px 12px;
  }
  .animation-panel.is-open .animation-header {
    position: sticky;
    top: 0;
    z-index: 3;
    min-height: 54px;
    padding: 5px 0;
    background: var(--panel);
  }
  .animation-panel.is-open .animation-heading,
  .animation-panel.is-open .animation-body {
    display: block;
  }
  .animation-panel.is-open .animation-toggle {
    display: none;
  }
  .animation-panel.is-open .animation-close {
    display: inline-flex;
    margin-left: auto;
    min-width: 44px;
    height: 44px;
    border: 1px solid #504960;
    background: #302a3a;
  }
  .animation-panel.is-open .animation-heading {
    font-size: 13px;
  }
  .timeline-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .timeline-tools > button {
    min-height: 44px;
    font-size: 12px;
    padding: 8px;
  }
  .timeline-field {
    display: grid;
    gap: 5px;
    font-size: 13px;
  }
  .timeline-field input {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    padding: 8px;
  }
  .loop-control {
    min-height: 44px;
    font-size: 13px;
  }
  .loop-control input {
    width: 24px;
    height: 24px;
  }
  .timeline-scrub {
    height: 44px;
    margin: 12px 0;
  }
  .keyframe-list {
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
  }
  .keyframe-list button {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .statusbar {
    height: 26px;
  }
  dialog {
    padding: 20px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }
  dialog .icon-button,
  dialog button {
    min-height: 44px;
  }
  dialog .icon-button {
    width: 44px;
  }
  .dialog-actions button {
    min-width: 0;
  }
  .toast {
    max-width: calc(100vw - 16px);
    width: max-content;
    padding: 8px 10px;
    bottom: 8px;
  }
}
@media (max-width: 240px) {
  :root {
    --studio-top-height: 32px;
  }
  .topbar {
    padding: 0 6px;
    gap: 4px;
  }
  .brand {
    gap: 0;
    min-width: 0;
  }
  .brand > svg {
    display: none;
  }
  .brand > span {
    font-size: 14px;
    letter-spacing: -0.4px;
  }
  .compact-menu > summary {
    min-height: 32px;
    padding: 0 7px;
    gap: 4px;
    font-size: 12px;
  }
  .compact-menu-body {
    padding-right: 6px;
    padding-left: 6px;
  }
  .compact-menu-heading:first-child {
    font-size: 11px;
    padding-right: 64px;
  }
  .compact-menu-body > button,
  .compact-menu-body > a {
    font-size: 12px;
    padding: 8px 6px;
  }
  .toolbar {
    height: 46px;
    padding: 0 4px;
    gap: 4px;
  }
  .tool-group {
    gap: 4px;
  }
  .toolbar svg.icon {
    width: 22px;
    height: 22px;
  }
  .view-controls,
  .viewport-top,
  .statusbar {
    display: none;
  }
  .loading {
    padding: 8px;
    gap: 6px;
    font-size: 11px;
  }
  .loading > span:last-child,
  .loader-mark {
    display: none;
  }
  .animation-panel {
    padding: 0 4px;
    min-height: 44px;
  }
  .animation-toggle {
    padding: 6px;
    font-size: 11px;
  }
  .animation-header {
    gap: 2px;
  }
  .animation-panel.is-open {
    padding: 0 6px 10px;
  }
  .animation-panel.is-open .animation-heading {
    display: none;
  }
  .timeline-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  .keyframe-list > button {
    width: 100%;
  }
  .panel-tabs,
  .inspector-header {
    height: 48px;
    min-height: 48px;
    padding: 0 5px;
    gap: 5px;
  }
  .panel-tabs > [role="tab"] {
    font-size: 12px;
    gap: 3px;
  }
  .panel-tabs .mobile-close {
    margin-left: auto;
  }
  .sidebar .panel-section,
  .library .panel-section,
  .inspector .panel-section {
    padding: 12px 8px;
  }
  .section-heading .eyebrow,
  .library .intro,
  .library-note,
  .template-card small,
  .template-arrow,
  .transform-options > span {
    display: none;
  }
  .primitive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .sidebar .primitive-grid button {
    min-height: 70px;
    padding: 8px 2px;
    font-size: 12px;
  }
  .utility-grid,
  .shape-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .template-card {
    gap: 6px;
  }
  .template-art {
    width: 32px;
    height: 40px;
  }
  .template-art svg {
    width: 26px;
    height: 26px;
  }
  .template-card strong {
    font-size: 11px;
    white-space: normal;
  }
  .library-help,
  .studio-switch,
  .back-link {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 12px;
  }
  .axis-labels {
    display: none;
  }
  .transform-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 14px;
  }
  .touch-transforms .control-hint {
    font-size: 11px;
  }
  .touch-transform-grid {
    gap: 6px;
  }
  .sidebar .touch-transform-grid button {
    font-size: 12px;
  }
  .transform-row > span {
    margin-bottom: 2px;
    color: #ccc3de;
    font-weight: 600;
  }
  .axis-input {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .axis-input > span {
    display: block;
    width: 20px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
  }
  .inspector .transform-row input {
    font-size: 14px;
    text-align: left;
    padding: 8px;
  }
  .color-row {
    flex-wrap: wrap;
  }
  .color-field {
    padding: 4px;
  }
  .material-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    padding: 12px 8px;
    border-radius: 0;
  }
  .dialog-heading {
    margin-bottom: 10px;
  }
  .dialog-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 0;
  }
  dialog h2 {
    font-size: 20px;
  }
  dialog p {
    font-size: 12px;
    line-height: 1.6;
  }
  .shortcut-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .dialog-actions {
    flex-direction: column;
  }
}
@media (max-height: 420px) and (min-width: 241px) {
  .animation-panel:not(.is-open) .keyframe-list {
    display: none;
  }
  .statusbar {
    display: none;
  }
}
