:root {
  --paper: #f8f8f5;
  --ink: #233a3c;
  --muted: #7e8b88;
  --line: #e4e8e2;
  --accent: #ed846b;
  --green: #48685c;
  --white: #fff;
  --radius: 18px;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  height: 92px;
  padding: 0 4.8%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 52px;
  background: #fff;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 750;
  font-size: 21px;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand-light {
  font-weight: 450;
}
.brand-symbol {
  display: inline-flex;
  background: var(--ink);
  color: #fff;
  width: 36px;
  height: 39px;
  align-items: center;
  justify-content: center;
  border-radius: 11px 11px 11px 2px;
  margin-right: 12px;
  font-size: 24px;
}
.brand-symbol span {
  font-size: 14px;
  align-self: flex-end;
  margin-bottom: 6px;
}
.beta {
  font-size: 9px;
  letter-spacing: 1.5px;
  background: #f1f3ed;
  padding: 6px 8px;
  border-radius: 5px;
  margin-left: 12px;
  color: #687c70;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 13px;
  height: 100%;
}
.active {
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--accent);
  font-weight: 650;
}
.nav-note {
  color: var(--muted);
}
.version {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.version i,
.stage-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #74a685;
  display: inline-block;
}
main {
  max-width: 1530px;
  margin: auto;
  padding: 46px 4.8% 0;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #869482;
}
h1 {
  font-family: system-ui, sans-serif;
  font-size: 38px;
  line-height: 1.28;
  font-weight: 650;
  letter-spacing: -1.8px;
  margin: 13px 0 0;
}
h1 span {
  color: #8b9c8b;
}
.intro p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 45px;
}
.workspace {
  display: grid;
  grid-template-columns: 235px minmax(330px, 1fr) 260px;
  gap: 18px;
  min-height: 590px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px 21px;
  display: flex;
  flex-direction: column;
}
.panel-heading {
  display: flex;
  gap: 10px;
  align-items: center;
}
h2 {
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.4px;
}
.small-icon {
  font-size: 20px;
  color: var(--green);
}
.muted {
  color: var(--muted);
}
.panel > .muted {
  font-size: 12px;
  margin: 8px 0 24px;
}
.section-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--muted);
  font-weight: 650;
  margin: 20px 0 14px;
}
.color-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}
.color-control input {
  width: 29px;
  height: 28px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.tip {
  margin-top: auto;
  background: #f6f7f1;
  border-radius: 11px;
  padding: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #78917b;
}
.tip p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.stage-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #eeefe8;
  display: flex;
  flex-direction: column;
}
.stage-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
}
.stage-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.quiet {
  background: transparent;
  border: none;
  font-size: 11px;
  color: #66786d;
  padding: 5px;
}
.stage {
  position: relative;
  min-height: 466px;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 60%, #fafbf3aa, transparent 70%);
}
.stage-orbit {
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid #dde1d4;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%);
}
.stage-orbit:after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px dashed #d9ded1;
}
.stage canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 490px;
  transform-origin: 50% 60%;
}
.stage-caption {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #6f8174;
  background: #f0f2e7b0;
  padding: 4px;
}
.stage-footer {
  padding: 13px 18px;
  border-top: 1px solid #dde3d5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #7a887a;
  background: #f2f3ec;
}
.stage-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.square-button {
  border: 1px solid #dce1d7;
  border-radius: 5px;
  background: #ffffff80;
  color: #596f60;
  width: 23px;
  height: 23px;
}
.name-card {
  border-bottom: 1px solid var(--line);
  padding: 32px 0 23px;
}
.name-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.name-card h3 {
  font-family: system-ui;
  font-size: 32px;
  letter-spacing: -1px;
  margin: 9px 0;
}
.name-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
dl {
  margin: 0 0 30px;
}
dl div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 16px 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  font-weight: 550;
}
.primary {
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 9px;
  min-height: 44px;
  font-weight: 550;
  font-size: 12px;
  width: 100%;
  margin-top: auto;
}
.primary:hover {
  background: #365c55;
}
.export-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}
.below {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 34px 15px 32px;
  gap: 50px;
}
.below > div {
  position: relative;
  padding-left: 36px;
}
.feature-number {
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 10px;
  color: #a2ad9d;
}
.below h3 {
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 7px;
}
.below p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
#status {
  font-size: 11px;
  color: #748777;
  min-height: 22px;
  padding: 10px 3px;
}
#status.error {
  color: #b05249;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 24px 4.8%;
  font-size: 10px;
  color: #738276;
}
footer > span:last-child {
  color: #98a393;
}
.checker .stage {
  background-color: white;
  background-image: conic-gradient(
    #e7e9e5 25%,
    transparent 0 50%,
    #e7e9e5 0 75%,
    transparent 0
  );
  background-size: 22px 22px;
}
.checker .stage-orbit {
  display: none;
}
@media (min-width: 1450px) {
  .workspace {
    grid-template-columns: 255px minmax(400px, 1fr) 280px;
  }
  .stage {
    min-height: 540px;
  }
  .stage canvas {
    max-height: 560px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 190px minmax(280px, 1fr);
  }
  .details {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
  .details > .section-label,
  .details > dl {
    display: none;
  }
  .name-card {
    padding: 0;
    border: 0;
  }
  .details .export-note {
    grid-column: 3;
  }
  .topbar {
    gap: 20px;
  }
  .nav-note,
  .version {
    display: none;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 70px;
    padding: 0 20px;
    justify-content: space-between;
  }
  .topbar nav {
    display: none;
  }
  main {
    padding: 30px 16px 0;
  }
  .intro {
    display: block;
  }
  .intro h1 {
    font-size: 32px;
  }
  .intro p {
    margin: 15px 0 0;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .stage-wrap {
    order: -1;
  }
  .stage {
    min-height: 350px;
  }
  .stage canvas {
    max-height: 420px;
  }
  .appearance {
    display: block;
  }
  .tip {
    margin-top: 15px;
  }
  .details {
    display: block;
  }
  .details .name-card {
    margin: 15px 0;
  }
  .below {
    gap: 25px;
    grid-template-columns: 1fr;
    padding: 25px 5px;
  }
  footer {
    gap: 20px;
    line-height: 1.8;
  }
  footer > span:last-child {
    display: none;
  }
}
.field-label {
  display: block;
  font-size: 11px;
  margin: 8px 0;
  color: #64796b;
}
.seed-row {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.seed-row input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 10px;
  background: #fafbf8;
  font-size: 11px;
  color: var(--ink);
}
.seed-row button {
  border: 0;
  background: #edf1e8;
  padding: 0 12px;
  color: #5a7565;
}
.secondary {
  width: 100%;
  border: 1px solid #cdd8ce;
  background: #f4f7ef;
  color: #4c6854;
  border-radius: 8px;
  padding: 11px;
  font-size: 11px;
  margin: 10px 0 20px;
}
.appearance {
  max-height: 760px;
  overflow: auto;
}
.name-card h3 {
  text-transform: capitalize;
}
.persistence {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.persistence .muted {
  font-size: 10px;
  margin-left: auto;
}
.file-button {
  font-size: 11px;
  cursor: pointer;
  color: #66786d;
}
.file-button:focus-within {
  outline: 2px solid var(--accent);
}
.choice-label {
  display: block;
  color: #6d7f70;
  font-size: 10px;
  margin: 8px 0 12px;
}
.choice-label select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fafbf8;
  color: var(--ink);
  font-size: 11px;
}
#part-controls {
  margin-bottom: 18px;
}
.appearance .tip {
  margin-top: 20px;
}
.workspace {
  align-items: stretch;
}
.appearance {
  max-height: 850px;
}
.stage canvas {
  max-height: 650px;
}
.mode-switch {
  display: flex;
  background: #eef2e9;
  padding: 4px;
  border-radius: 9px;
  gap: 4px;
}
.mode-switch button {
  border: 0;
  background: transparent;
  color: #72846e;
  flex: 1;
  padding: 9px;
  font-size: 11px;
  border-radius: 6px;
}
.mode-switch button[aria-pressed="true"] {
  background: white;
  color: #294c3a;
  box-shadow: 0 1px 4px #24382012;
}
.mode-note {
  font-size: 10px;
  line-height: 1.5;
  color: #8a9988;
}
.motion-panel {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.motion-panel h2 {
  font-size: 13px;
  margin-top: 8px;
}
#rigged-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
#rigged-controls[hidden],
#unrigged-controls[hidden] {
  display: none;
}
#rigged-controls label {
  font-size: 10px;
  color: #7b8b7b;
  flex: 1;
}
#rigged-controls input[type="range"] {
  display: block;
  width: 100%;
  margin-top: 10px;
  accent-color: #708a71;
}
#rigged-controls .toggle {
  white-space: nowrap;
  flex: 0;
}
#unrigged-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}
#unrigged-controls .secondary {
  width: auto;
  margin: 0;
}
#unrigged-controls button[aria-pressed="true"] {
  background: #294c3a;
  color: white;
}
@media (max-width: 900px) {
  .motion-panel {
    flex-direction: column;
    align-items: stretch;
  }
  #rigged-controls {
    flex-wrap: wrap;
  }
  #rigged-controls label {
    min-width: 100px;
  }
  #unrigged-controls {
    flex-wrap: wrap;
  }
}
.appearance {
  max-height: 680px;
}
.stage canvas {
  max-height: 540px;
}
.stage {
  min-height: 490px;
}
#rigged-controls {
  flex-wrap: wrap;
}
#rigged-controls label {
  min-width: 85px;
}
#expression {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #f8faf6;
  border-radius: 5px;
  padding: 5px;
  color: var(--ink);
  font-size: 11px;
  margin-top: 7px;
}
