@font-face {
  font-family: NyxuDisplay;
  src: url("assets/fonts/display.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: NyxuBody;
  src: url("assets/fonts/body.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: NyxuMono;
  src: url("assets/fonts/mono.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
:root {
  --accent: #a28bff;
  --accent-secondary: #5bb5ff;
  --accent-ink: #09090f;
  --bg: #0a0b0f;
  --panel: #0f0f16;
  --border: #2b2c3b;
  --text: #e9e9f0;
  --muted: #9394a5;
  --mono: NyxuMono, monospace;
  --display: NyxuDisplay, Impact, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: NyxuBody, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}
.studio-header {
  height: 86px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: #0c0c12;
}
.studio-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark {
  display: block;
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: #000;
  box-shadow: 0 0 18px #9d89ff20;
}
.mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.58);
}
.studio-brand > span:nth-child(2) {
  font-family: var(--display);
  font-size: 31px;
  font-style: italic;
  line-height: 1;
}
.studio-brand > i {
  height: 20px;
  width: 1px;
  background: #3c3d52;
  margin: 0 9px;
}
.studio-word {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #9d9fb3;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9c9eb5;
}
.version-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.version {
  padding: 4px 7px;
  border: 1px solid #2d2e3d;
  margin-left: 9px;
  color: #86889e;
}
.quiet-link {
  color: #c4c5d6;
  font-size: 11px;
}
.quiet-link span {
  color: var(--accent);
  font-size: 17px;
  margin-left: 8px;
}
.studio-layout {
  max-width: 1660px;
  margin: auto;
  padding: 40px 44px 22px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin: 0 0 8px;
}
.intro h1 {
  font-family: var(--display);
  font-size: 57px;
  line-height: 1.05;
  letter-spacing: -0.4px;
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
}
.intro h1 > span {
  color: var(--accent);
  background: linear-gradient(100deg, var(--accent-secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.format-badge {
  padding: 11px 18px;
  border-left: 1px solid #3a3c50;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.format-badge > span {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1px;
}
.format-badge small {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 25px;
  align-items: start;
}
.preview-column {
  min-width: 0;
}
.scene-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}
.scene-tabs button {
  background: #101017;
  border: 1px solid #2c2d3d;
  padding: 13px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #adaec0;
  font-size: 12px;
  transition:
    background 0.15s,
    color 0.15s;
}
.scene-tabs button > span {
  font-family: var(--mono);
  font-size: 8px;
  opacity: 0.6;
}
.scene-tabs button > i {
  font-size: 15px;
  font-style: normal;
  margin-left: auto;
  opacity: 0.4;
}
.scene-tabs button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.scene-tabs button:hover:not([aria-pressed="true"]) {
  background: #242531;
}
.scene-tabs button[aria-pressed="true"] > i {
  opacity: 1;
}
.preview-shell {
  border: 1px solid #303142;
  background: #08080c;
  box-shadow: 0 18px 50px -25px #000;
}
.preview-meta {
  height: 33px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a7a9bd;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.3px;
}
.preview-meta > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-meta i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.preview-meta > span:last-child {
  color: #747694;
}
.preview-canvas {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #14141d;
  background-image:
    linear-gradient(45deg, #2a2b39 25%, transparent 25%),
    linear-gradient(-45deg, #2a2b39 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2b39 75%),
    linear-gradient(-45deg, transparent 75%, #2a2b39 75%);
  background-size: 24px 24px;
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
}
.preview-canvas.with-background {
  background: #0a0b0f url("assets/night-drive.png?v=2") center/cover no-repeat;
}
.preview-canvas iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}
.preview-caption {
  padding: 11px 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #8f91a7;
  font-size: 10px;
  min-height: 38px;
}
.preview-background {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 9px;
  cursor: pointer;
}
.preview-background input {
  accent-color: var(--accent);
  width: 12px;
  height: 12px;
  margin: 0;
}
.source-card {
  margin-top: 24px;
  padding: 22px 23px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, #12121a, #0f0f16 60%);
}
.source-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.source-heading h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 27px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}
.source-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.6px;
  margin-bottom: 6px;
  color: #9596a9;
}
.source-arrow {
  font-size: 34px;
  font-weight: 400;
  color: var(--accent);
}
.source-label {
  font-size: 10px;
  color: #a2a3b6;
  display: block;
  margin-bottom: 7px;
}
.source-row {
  display: flex;
  gap: 9px;
  align-items: stretch;
}
.source-row input {
  flex: 1;
  min-width: 0;
  background: #0a0b0f;
  color: #9d9fbb;
  border: 1px solid #2f3040;
  border-radius: 0;
  padding: 12px;
  font-family: var(--mono);
  font-size: 11px;
}
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 400;
  transition:
    filter 0.15s,
    background 0.15s;
}
.button:hover {
  filter: brightness(1.1);
}
.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.secondary {
  background: #171822;
  color: #e9e9f0;
  border-color: #3b3d52;
}
.source-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 11px;
}
.source-footer p {
  font-size: 9px;
  color: #8d8fa6;
  margin: 0;
}
.source-footer strong {
  font-weight: 400;
  color: #d5d6e3;
}
.source-footer a {
  font-size: 10px;
  color: #cfd0de;
  white-space: nowrap;
}
.local-note,
.position-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #15161f;
  border-left: 2px solid var(--accent);
  font-size: 10px;
  line-height: 1.7;
  color: #bebfd2;
}
.quick-start {
  display: grid;
  grid-template-columns: 18px 1fr 18px 1fr 18px 1fr;
  gap: 10px;
  margin: 26px 0 0;
}
.quick-number {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  padding-top: 3px;
}
.quick-start strong {
  font-size: 10px;
  font-weight: 400;
  color: #bcbdd1;
}
.quick-start p {
  font-size: 10px;
  line-height: 1.7;
  color: #8f91a9;
  margin: 5px 0 0;
  max-width: 240px;
}
.settings {
  background: var(--panel);
  border: 1px solid var(--border);
}
.settings-heading {
  padding: 22px 21px 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.settings-heading .eyebrow {
  font-size: 7px;
  letter-spacing: 1.1px;
  margin-bottom: 5px;
}
.settings-heading h2 {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}
.settings-icon {
  font-size: 29px;
  color: var(--accent);
  line-height: 1.4;
}
.settings fieldset {
  border: 0;
  padding: 18px 21px 20px;
  margin: 0;
  min-width: 0;
}
.settings legend {
  float: left;
  width: 100%;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  padding: 0;
  margin: 0 0 15px;
  letter-spacing: 1px;
}
.settings legend > span {
  color: #cfd0de;
  font-family: NyxuBody, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  margin-left: 10px;
}
.settings label:not(.switch-row) {
  display: block;
  font-size: 9px;
  color: #a0a2b7;
  margin: 12px 0 6px;
}
.settings input:not([type="checkbox"]):not([type="color"]),
.settings select,
.settings textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 10px;
  color: #dfe0e9;
  background: #0b0b10;
  border: 1px solid #2d2e3e;
  border-radius: 0;
  font-size: 11px;
}
.settings textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.6;
}
.settings select {
  padding-right: 24px;
}
.color-row {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.color-row input[type="color"] {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid #45475f;
  padding: 2px;
  cursor: pointer;
  flex: none;
}
.color-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-row input[type="color"]::-webkit-color-swatch {
  border: 0;
}
.color-row > span {
  font-family: var(--mono);
  font-size: 10px;
  color: #a9abc4;
  margin-right: auto;
}
.swatch {
  height: 19px;
  width: 19px;
  border-radius: 50%;
  border: 3px solid #0f0f16;
  background: var(--swatch);
  box-shadow: 0 0 0 1px #3b3d52;
  padding: 0;
  flex: none;
}
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 1px var(--swatch);
}
.settings details {
  border-top: 1px solid var(--border);
}
.settings summary {
  padding: 17px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}
.settings summary::-webkit-details-marker {
  display: none;
}
.settings summary > span {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 1px;
}
.settings summary b {
  font-family: NyxuBody, Arial, sans-serif;
  color: #cfd0de;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 400;
  margin-left: 10px;
}
.settings summary > i {
  font-style: normal;
  color: #8e90ae;
  font-size: 18px;
  font-weight: 400;
}
.settings details[open] summary > i {
  transform: rotate(45deg);
}
.detail-content {
  padding: 0 21px 20px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 17px;
}
.settings .two-fields label {
  font-size: 9px;
  margin-top: 2px;
}
.settings .two-fields input {
  font-family: var(--mono);
  padding: 8px 10px;
}
.switch-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: space-between;
  font-size: 11px;
  color: #d1d2e0;
  margin: 0 0 15px;
  cursor: pointer;
  min-height: 30px;
}
.switch-row > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.switch-row small {
  font-size: 9px;
  color: #8c8ea2;
}
.switch-row input {
  position: absolute;
  right: 0;
  opacity: 0;
  width: 34px;
  height: 20px;
  cursor: pointer;
}
.switch-row > i {
  width: 31px;
  height: 17px;
  border-radius: 20px;
  background: #37384c;
  border: 1px solid #474962;
  display: block;
  position: relative;
  flex: none;
  pointer-events: none;
}
.switch-row > i:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b3b5cb;
  transition: transform 0.15s;
}
.switch-row input:checked + i {
  background: var(--accent);
  border-color: var(--accent);
}
.switch-row input:checked + i:after {
  transform: translateX(13px);
  background: var(--accent-ink);
}
.switch-row input:focus-visible + i {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.field-help {
  font-size: 10px;
  color: #8f91a7;
  line-height: 1.7;
  margin: 0 0 14px;
}
.settings-save {
  padding: 18px 21px;
  border-top: 1px solid var(--border);
}
.settings-save .button {
  width: 100%;
  justify-content: space-between;
}
.settings-save p {
  font-size: 9px;
  color: #8789a2;
  line-height: 1.7;
  margin: 10px 0;
}
.reset-button {
  font-size: 9px;
  color: #9fa1b7;
  padding: 3px 0;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.studio-footer {
  margin-top: 44px;
  border-top: 1px solid #272836;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: #8b8da1;
}
.studio-footer > span:first-child {
  color: #bfc0d3;
}
.studio-footer i {
  color: var(--accent);
  font-style: normal;
  margin: 0 5px;
}
.studio-footer a {
  font-family: NyxuBody, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
  color: #b5b6cc;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 40px #0008;
  z-index: 10;
  font-size: 12px;
  max-width: calc(100vw - 32px);
}
@media (min-width: 1650px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
  }
  .scene-tabs button {
    padding: 14px 15px;
    font-size: 13px;
  }
  .preview-caption {
    font-size: 11px;
  }
  .source-card {
    padding: 26px;
  }
}
@media (max-width: 1080px) {
  .studio-header {
    padding: 0 24px;
  }
  .studio-layout {
    padding: 30px 24px 20px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 18px;
  }
  .scene-tabs button {
    padding: 11px 7px;
    font-size: 10px;
    gap: 5px;
  }
  .scene-tabs button i {
    display: none;
  }
  .source-card {
    padding: 18px;
  }
  .quick-start {
    grid-template-columns: 18px 1fr;
  }
  .quick-start > div {
    margin-bottom: 6px;
  }
  .quick-start p {
    max-width: none;
  }
  .intro h1 {
    font-size: 48px;
  }
  .settings-heading,
  .settings fieldset,
  .settings summary,
  .settings-save {
    padding-left: 16px;
    padding-right: 16px;
  }
  .detail-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .source-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .header-meta {
    display: none;
  }
}
@media (max-width: 780px) {
  .studio-header {
    height: 70px;
    padding: 0 18px;
  }
  .studio-layout {
    padding: 25px 16px 20px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .preview-column,
  .settings {
    width: 100%;
  }
  .intro {
    align-items: flex-start;
    margin-bottom: 23px;
  }
  .intro h1 {
    font-size: 40px;
    max-width: 330px;
  }
  .intro h1 span {
    display: block;
  }
  .format-badge {
    padding: 6px 0 6px 10px;
    gap: 3px;
    min-width: 110px;
  }
  .format-badge > span {
    font-size: 12px;
  }
  .format-badge small {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  .eyebrow {
    font-size: 7px;
  }
  .scene-tabs button {
    font-size: 10px;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
  }
  .scene-tabs button > span {
    font-size: 7px;
  }
  .preview-meta {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .preview-caption {
    font-size: 9px;
    gap: 8px;
    align-items: flex-start;
  }
  .preview-background {
    font-size: 8px;
  }
  .source-row {
    flex-wrap: wrap;
  }
  .source-row input {
    flex-basis: 100%;
  }
  .source-row .button {
    width: 100%;
  }
  .source-heading h2 {
    font-size: 25px;
  }
  .source-footer {
    flex-direction: row;
    align-items: flex-start;
  }
  .source-footer p {
    font-size: 8px;
    max-width: 66%;
  }
  .source-footer a {
    font-size: 9px;
  }
  .studio-word {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .studio-brand {
    gap: 8px;
  }
  .studio-brand > i {
    margin: 0 4px;
  }
  .quiet-link {
    font-size: 10px;
  }
  .studio-footer {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .studio-footer > span:nth-child(2) {
    display: none;
  }
  .settings-heading .eyebrow {
    font-size: 8px;
  }
  .settings input:not([type="checkbox"]):not([type="color"]),
  .settings select,
  .settings textarea {
    font-size: 16px;
    padding: 9px 10px;
  }
  .settings label:not(.switch-row) {
    font-size: 11px;
  }
  .switch-row {
    font-size: 12px;
  }
  .switch-row small {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
