@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  color-scheme: dark;
  --bg: #0e0e14;
  --panel: #17171f;
  --line: #2b2a37;
  --text: #f4f1ff;
  --muted: #9591a7;
  --purple: #a48aff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px "DM Sans",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  background: #b5a0ff;
  color: #171126;
  font-weight: 700;
}
button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.4;
  cursor: wait;
}
a {
  color: var(--purple);
}
input,
textarea,
select {
  background: #101017;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  padding: 13px;
  width: 100%;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--purple);
}
textarea {
  min-height: 125px;
  resize: vertical;
  line-height: 1.8;
}
label {
  display: block;
  font-weight: 600;
  margin: 18px 0 10px;
}
label input,
label select {
  margin-top: 10px;
}
aside {
  width: 240px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 34px 25px;
  background: #111118;
}
.brand {
  font:
    800 24px Manrope,
    sans-serif;
  color: #eee8ff;
  text-decoration: none;
  letter-spacing: -1px;
}
.tiny {
  font-size: 9px;
  color: #6f6b81;
  letter-spacing: 1.7px;
  margin: 55px 0 16px;
}
nav button {
  display: block;
  text-align: left;
  width: 100%;
  margin: 7px 0;
  background: none;
  color: var(--muted);
  font-weight: 500;
  padding: 14px;
}
.selected {
  background: #252033 !important;
  color: #cdbfff !important;
}
.aside-bottom {
  position: absolute;
  bottom: 30px;
  font-size: 12px;
  color: #bbb5cb;
}
.aside-bottom p {
  color: #686476;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dcdb1;
  margin-right: 7px;
}
main {
  margin-left: 240px;
  padding: 0 6%;
  max-width: 1600px;
}
header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.pill {
  font-size: 10px;
  letter-spacing: 1px;
  border: 1px solid #454052;
  background: #211c2e;
  color: #c2b1ff;
  border-radius: 20px;
  padding: 8px 12px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 42px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #aa93e7;
  margin-bottom: 16px;
}
h1 {
  font:
    700 clamp(30px, 3.6vw, 50px) / 1.18 Manrope,
    sans-serif;
  letter-spacing: -2px;
  margin: 12px 0 20px;
}
h1 em {
  font-style: normal;
  color: #bda6ff;
}
p {
  line-height: 1.8;
}
.hero p,
.muted {
  color: var(--muted);
}
.hero-orb {
  position: absolute;
  right: 5%;
  top: 50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 100px;
  color: #e7d7ff;
  background: radial-gradient(
    circle at 35% 25%,
    #68468d,
    #25182e 55%,
    #151018 70%
  );
  box-shadow:
    0 0 85px #71439425,
    inset 0 0 40px #ac70e830;
  transform: rotate(-15deg);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 28px 0 18px;
}
.section-heading h2 {
  font: 700 19px Manrope;
  margin: 0;
  letter-spacing: -0.4px;
}
.section-heading > span {
  color: #767084;
  font-size: 9px;
  letter-spacing: 1px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 25px;
  margin: 18px 0;
}
.panel > label:first-child {
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 20px;
}
.form-footer span {
  color: var(--muted);
  font-size: 11px;
}
.crew {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.crew-card {
  background: #15151d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.crew-card .icon {
  color: #bc9af0;
  font-size: 24px;
}
.crew-card h3 {
  font-size: 13px;
  margin: 14px 0 7px;
}
.crew-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.tab {
  padding-bottom: 20px;
}
.tab:not(#studio) {
  padding-top: 35px;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding: 24px 0 35px;
  color: #716b80;
  font-size: 10px;
  letter-spacing: 2px;
}
footer span {
  float: right;
  letter-spacing: 0;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 70% 20%, #30203c, transparent 65%);
}
.login-card {
  width: min(430px, 90vw);
  padding: 25px;
}
.login-card .brand {
  margin-bottom: 55px;
}
.login-card p {
  color: var(--muted);
}
.login-card button {
  width: 100%;
  margin-top: 15px;
}
.error {
  color: #ffaaa9 !important;
}
.project-card {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.project-card h3 {
  margin-top: 0;
  font-size: 18px;
}
.project-card p {
  margin-bottom: 0;
  font-size: 12px;
}
.badge {
  display: inline-block;
  color: #c6b3ef;
  background: #30263e;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11px;
}
.stage-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.stage-row .num {
  font-size: 20px;
  color: #b39ade;
  width: 34px;
}
.stage-row h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.stage-row p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.stage-row .badge {
  margin-left: auto;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.outputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.asset img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: #0c0b10;
  border-radius: 8px;
}
.asset audio,
.asset video {
  width: 100%;
  margin-top: 12px;
}
.asset video {
  max-height: 620px;
}
.output-json {
  font:
    12px/1.7 ui-monospace,
    monospace;
  min-height: 250px;
  white-space: pre-wrap;
}
.note {
  color: #aaa0b8;
  font-size: 12px;
}
#notice {
  position: sticky;
  top: 10px;
  background: #35273f;
  border: 1px solid #6b4b7b;
  border-radius: 9px;
  padding: 14px;
  z-index: 20;
}
.empty {
  padding: 65px;
  text-align: center;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  aside {
    width: 190px;
    padding: 28px 18px;
  }
  main {
    margin-left: 190px;
    padding: 0 4%;
  }
  .hero-orb {
    right: -60px;
    opacity: 0.45;
  }
  .crew {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 {
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
    width: auto;
    margin: 0;
  }
  .tiny,
  .aside-bottom {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 20px;
  }
  header {
    height: 60px;
  }
  .hero {
    padding-top: 35px;
  }
  .hero-orb {
    width: 170px;
    height: 170px;
    right: -65px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .outputs {
    grid-template-columns: 1fr;
  }
  .section-heading > span {
    display: none;
  }
  .project-card {
    align-items: flex-start;
  }
  .panel {
    padding: 18px;
  }
  footer span {
    display: block;
    float: none;
    margin-top: 12px;
  }
  .stage-row {
    padding: 14px 4px;
  }
  .stage-row .badge {
    font-size: 9px;
  }
  .crew-card {
    padding: 13px;
  }
}
.output-block {
  border-bottom: 1px solid var(--line);
  padding: 12px 0 25px;
}
.output-block:last-child {
  border: 0;
}
details summary {
  cursor: pointer;
  color: #c9b6f3;
}
textarea[readonly] {
  color: #c2bbd0;
  min-height: 85px;
  background: #13131b;
  cursor: default;
}
pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#login-form input+input{margin-top:12px}
