.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 31px 0 25px;
}
.eyebrow {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1.8px;
}
.eyebrow-line {
  width: 20px;
  height: 2px;
  background: var(--accent);
}
h1 {
  font-size: clamp(32px, 2.9vw, 45px);
  letter-spacing: -1.9px;
  font-weight: 650;
  line-height: 1.15;
  margin: 7px 0 7px;
}
.intro p {
  color: #b0b2b0;
  font-size: 14px;
  line-height: 1.55;
}
.engine-status {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c2cbbd;
  background: #252b25;
  border: 1px solid #3c473a;
  border-radius: 20px;
  padding: 6px 11px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(184px, 0.84fr) minmax(310px, 2.55fr) minmax(213px, 0.98fr);
  gap: 14px;
}
.library,
.motions,
.viewport {
  display: flex;
  flex-direction: column;
}
.hero-area {
  padding: 14px;
}
@media (min-width: 781px) {
  #hero-list {
    max-height: clamp(16rem, 42vh, 24rem);
    overflow-y: auto;
  }
}
.hero-choice {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  min-height: 64px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px;
}
.hero-choice[aria-pressed='true'] {
  border-color: #966241;
  background: #3c3029;
}
.hero-choice:not([aria-pressed='true']):hover {
  background: #2d3030;
}
.portrait {
  height: 43px;
  width: 43px;
  image-rendering: pixelated;
  background: #5a4a3c;
  border-radius: 5px;
  flex-shrink: 0;
}
.hero-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.hero-copy strong,
.clip-copy strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
.hero-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-copy small,
.clip-copy small {
  font-size: 12px;
  color: #b1b1aa;
}
.hero-choice[aria-pressed='true'] .hero-copy strong {
  color: #ffba8d;
}
.add-model {
  border: 1px dashed #505251;
  border-radius: 6px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #b9bbb8;
  font-size: 13px;
  margin-top: 10px;
  padding: 10px;
}
.add-model svg {
  width: 15px;
  height: 15px;
}
.add-model:hover {
  background: #292c2c;
  border-color: #828079;
}
.model-info,
.playback {
  border-top: 1px solid var(--line);
  padding: 17px;
}
.model-info {
  margin-top: auto;
}
.model-info dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 20px;
  font-size: 13px;
}
.model-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.model-info dt {
  color: #a8aaa7;
}
.model-info dd {
  color: #d8d9d4;
  font: 12px var(--mono);
}
.palette {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.palette canvas {
  height: 15px;
  width: 23px;
  border-radius: 3px;
  border: 1px solid #ffffff23;
}
.viewport {
  position: relative;
}
.view-actions,
.tool-set {
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-actions button {
  width: 27px;
  height: 26px;
}
.scene-field {
  position: relative;
  flex: 1;
  min-height: 310px;
  isolation: isolate;
  overflow: hidden;
  background-color: #d9d8bd;
  background-image: radial-gradient(ellipse at 48% 35%, #ebe8d3 1%, #dfddc4 47%, #c5c7aa 100%);
  color: #444b3e;
}
.scene-field.has-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#5c63483d 0.85px, transparent 1px);
  background-size: 14px 14px;
}
.scene-heading,
.scene-view,
.axis,
.drag-tip {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.scene-heading {
  top: 18px;
  left: 19px;
}
.scene-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #626747;
}
.scene-tag span {
  width: 6px;
  height: 6px;
  background: #777e4f;
}
.scene-heading h3 {
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 660;
  letter-spacing: -0.85px;
  margin-top: 4px;
  color: #394034;
}
.scene-view {
  gap: 4px;
  top: 18px;
  right: 17px;
  font: 11px var(--mono);
  border: 1px solid #7c806242;
  border-radius: 4px;
  padding: 4px 6px;
  background: #e1e1c693;
}
.scene-view svg {
  width: 12px;
  height: 12px;
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  cursor: grab;
  touch-action: pan-y;
}
#scene.dragging {
  cursor: grabbing;
}
.axis {
  bottom: 11px;
  left: 15px;
  width: 41px;
  height: 40px;
}
.axis svg {
  width: 100%;
  height: 100%;
  font: 9px var(--mono);
  color: #4e574c;
}
.axis path {
  stroke-width: 1.6;
  fill: none;
}
.drag-tip {
  gap: 5px;
  right: 15px;
  bottom: 14px;
  border-radius: 4px;
  background: #e5e4cdbb;
  padding: 4px 7px;
  font-size: 10px;
  color: #565d4c;
}
.drag-tip svg {
  width: 12px;
  height: 12px;
}
.scene-toolbar {
  height: 42px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toolbar-number {
  min-width: 34px;
  text-align: center;
  color: #c5c7c2;
  font-size: 12px;
}
.tool-divider {
  height: 16px;
  margin: 0 4px;
}
.clip-list {
  display: grid;
  gap: 7px;
  padding: 13px;
}
.clip-groups:not([hidden]) {
  display: flex;
  gap: 3px;
  margin: 12px 13px 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
}
.clip-groups button {
  flex: 1;
  padding: 6px 4px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
}
.clip-groups button[aria-pressed='true'] {
  background: #383330;
  color: #ffb07c;
}
.clip-choice[hidden] {
  display: none;
}
.skill-description {
  margin: 0 14px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.clip-moments:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 13px 12px;
}
.clip-moments button {
  padding: 5px 8px;
  border: 1px solid #5e5043;
  border-radius: 4px;
  color: #efb48a;
  font-size: 11px;
}
.clip-moments button:hover {
  background: #383330;
}
.clip-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px;
  border-radius: 6px;
  background: #292b2c;
  border: 1px solid #3a3c3d;
}
.clip-choice:hover {
  background: #333536;
}
.clip-choice[aria-pressed='true'] {
  background: #3a2e27;
  border-color: #9d6845;
}
.clip-icon {
  display: grid;
  place-items: center;
  border-radius: 5px;
  width: 33px;
  height: 33px;
  background: #343738;
  color: #c4c8c4;
}
.clip-icon svg {
  width: 18px;
  height: 18px;
}
.clip-choice[aria-pressed='true'] .clip-icon {
  background: #533c2e;
  color: #ffa66e;
}
.clip-choice[aria-pressed='true'] strong {
  color: #ffb07c;
}
.clip-copy {
  display: grid;
  gap: 3px;
}
.clip-copy small {
  font-size: 11px;
  color: #a5a7a3;
}
.equalizer {
  display: none;
  color: var(--accent);
  margin-left: auto;
  align-items: center;
  gap: 2px;
  padding-right: 4px;
}
.equalizer b {
  width: 2px;
  height: 9px;
  background: currentColor;
}
.equalizer b:nth-child(2) {
  height: 15px;
}
.equalizer b:nth-child(3) {
  height: 6px;
}
.clip-choice[aria-pressed='true'] .equalizer {
  display: flex;
}
.playback {
  margin-top: auto;
  padding-top: 14px;
  padding-bottom: 13px;
}
.playback .section-label {
  margin-bottom: 9px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 29px;
  font-size: 13px;
}
.setting-row label {
  gap: 8px;
  color: #c3c5c1;
}
.setting-row label svg {
  width: 14px;
  height: 14px;
  color: #8f9491;
}
.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  background: #2e3031;
  color: #e1e1da;
  font: 12px var(--mono);
  border: 1px solid #444747;
  border-radius: 4px;
  padding: 3px 22px 3px 7px;
  cursor: pointer;
}
.select-wrap svg {
  position: absolute;
  width: 12px;
  height: 12px;
  right: 5px;
  top: 5px;
  pointer-events: none;
}
.switch {
  position: relative;
  width: 30px;
  height: 16px;
  padding: 0;
  border-radius: 10px;
  background: #626763;
}
.switch:after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff3e3;
  transition: transform 0.15s;
}
.switch[aria-checked='true'] {
  background: #c67947;
}
.switch[aria-checked='true']:after {
  transform: translateX(14px);
}
.timeline {
  margin-top: 15px;
  padding: 0 16px 15px;
}
.timeline-header,
.timeline-title,
.transport,
.transport-buttons {
  display: flex;
  align-items: center;
}
.timeline-header {
  height: 52px;
  justify-content: space-between;
  gap: 8px;
}
.timeline-title {
  gap: 11px;
}
.timeline-title > span {
  font-size: 12px;
  color: #a4a7a3;
}
.timeline-title .slash {
  color: #676b67;
}
.transport {
  gap: 13px;
}
.transport-buttons {
  gap: 2px;
}
.transport-buttons svg {
  width: 13px;
  height: 13px;
}
.frame-count {
  font-size: 11px;
  color: #b6bab4;
}
.play-button {
  border: 1px solid #6e503b;
  background: #44362c;
  color: var(--accent);
  border-radius: 4px;
  display: grid;
  place-items: center;
  height: 24px;
  width: 28px;
}
.play-button:hover {
  background: #564031;
}
.transport .icon-button {
  width: 23px;
  height: 24px;
}
.frame-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 1px;
  scrollbar-width: thin;
}
.frame {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 82px;
  border: 1px solid #404344;
  border-radius: 5px;
  background-color: #2c2f2e;
  background-image:
    linear-gradient(45deg, #ffffff03 25%, transparent 25%, transparent 75%, #ffffff03 75%),
    linear-gradient(45deg, #ffffff03 25%, transparent 25%, transparent 75%, #ffffff03 75%);
  background-size: 12px 12px;
  background-position:
    0 0,
    6px 6px;
}
.frame:hover {
  border-color: #777770;
}
.frame[aria-pressed='true'] {
  border-color: var(--accent);
  background-color: #3c322b;
  box-shadow: inset 0 0 0 1px #d18a5040;
}
.frame canvas {
  height: 72px;
  width: 72px;
  image-rendering: pixelated;
}
.frame small {
  font: 10px var(--mono);
  position: absolute;
  top: 5px;
  left: 6px;
  color: #a4a69d;
}
.frame[aria-pressed='true'] small {
  color: var(--accent);
}
.workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 1px 18px;
  font: 10px var(--mono);
  color: #959991;
}
.workspace-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.workspace-footer .status-light {
  width: 5px;
  height: 5px;
}
.workspace-footer b {
  font-weight: 400;
  color: #646962;
}
.viewport:fullscreen {
  border: 0;
  border-radius: 0;
  width: 100vw;
  height: 100vh;
}
.viewport:fullscreen .scene-field {
  min-height: 0;
}
@media (min-width: 1400px) {
  .scene-field {
    min-height: 365px;
  }
  .clip-list {
    gap: 9px;
    padding: 16px;
  }
  .clip-choice {
    padding: 10px;
  }
  .panel-header {
    min-height: 54px;
  }
  .hero-area {
    padding: 17px;
  }
  .frame {
    height: 94px;
  }
  .frame canvas {
    width: 83px;
    height: 83px;
  }
}
@media (max-width: 1060px) {
  .header-inner,
  .workspace {
    padding-inline: 19px;
  }
  .editor-grid {
    gap: 9px;
    grid-template-columns: minmax(160px, 0.8fr) minmax(260px, 2fr) minmax(185px, 0.9fr);
  }
  .panel-header {
    padding-inline: 12px;
  }
  .hero-area,
  .clip-list {
    padding: 9px;
  }
  .hero-choice {
    gap: 6px;
    padding: 6px;
  }
  .portrait {
    width: 36px;
    height: 40px;
  }
  .model-info,
  .playback {
    padding: 13px;
  }
}
@media (max-width: 780px) {
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 205px;
  }
  .library {
    grid-column: 1/-1;
  }
  .library .panel-header {
    min-height: 38px;
  }
  .library .model-info {
    display: none;
  }
  .hero-area {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .hero-area #hero-list {
    display: flex;
    gap: 5px;
    overflow: auto;
  }
  .hero-choice {
    width: auto;
    min-height: 42px;
    min-width: 150px;
  }
  .portrait {
    height: 32px;
    width: 32px;
  }
  .hero-choice small {
    display: none;
  }
  .add-model {
    width: auto;
    margin: 0;
    padding: 10px;
    flex-shrink: 0;
  }
  .scene-heading {
    top: 12px;
    left: 12px;
  }
  .scene-view {
    top: auto;
    bottom: 15px;
    left: 12px;
    right: auto;
  }
  .axis {
    display: none;
  }
  .intro {
    padding: 23px 0 18px;
  }
  .scene-field {
    min-height: 280px;
  }
}
@media (max-width: 590px) {
  .header-inner,
  .workspace {
    padding-inline: 12px;
  }
  .intro {
    align-items: flex-start;
  }
  .engine-status {
    font-size: 0;
    gap: 0;
    margin-top: 5px;
    padding: 6px;
  }
  .intro p {
    font-size: 13px;
    max-width: 330px;
  }
  .editor-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .viewport {
    order: 1;
  }
  .library {
    order: 0;
  }
  .motions {
    order: 2;
  }
  .library .panel-header {
    display: none;
  }
  .scene-field {
    min-height: 315px;
  }
  .clip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .playback {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 10px;
  }
  .playback .section-label {
    display: none;
  }
  .setting-row {
    gap: 8px;
  }
  .clip-icon {
    width: 28px;
    height: 28px;
  }
  .timeline {
    padding: 0 9px 10px;
    margin-top: 10px;
  }
  .timeline-title {
    gap: 6px;
  }
  .timeline-title h2 {
    font-size: 14px;
  }
  .timeline-title h2 svg {
    display: none;
  }
  .transport {
    gap: 4px;
  }
  .frame-strip {
    grid-auto-columns: 73px;
  }
  .frame {
    height: 64px;
  }
  .frame canvas {
    width: 60px;
    height: 60px;
  }
  .timeline-header {
    height: 45px;
  }
  .workspace-footer {
    font-size: 9px;
  }
}
