:root {
  color-scheme: dark;
  --bg: #111513;
  --panel: #1a201d;
  --ink: #f4f6ed;
  --muted: #b0bcb2;
  --line: #364139;
  --accent: #bef782;
  --sans: "Inter", "Arial", sans-serif;
  font: 15px/1.45 var(--sans);
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  height: 62px;
  padding: 0 clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 20px;
  letter-spacing: -0.7px;
  font-weight: 750;
  color: inherit;
  text-decoration: none;
}
.brand b {
  font-weight: 400;
  color: var(--muted);
}
.mark {
  display: inline-block;
  color: var(--accent);
  margin-right: 9px;
  font-size: 26px;
  vertical-align: -1px;
}
#topLabel,
.sectionbar span,
.hint,
.eyebrow {
  color: var(--muted);
}
main {
  max-width: 1640px;
  margin: auto;
  padding: 20px clamp(14px, 3vw, 48px) 28px;
}
.landing {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6vw;
}
.landing h1,
.pagehead h1 {
  font-size: clamp(38px, 5vw, 76px);
  letter-spacing: -0.065em;
}
.landing p {
  color: var(--muted);
  max-width: 30em;
  font-size: 18px;
  margin: 12px 0 30px;
}
.landing img {
  width: clamp(130px, 20vw, 270px);
  height: auto;
  transform: rotate(3deg);
  border-radius: 8px;
}
.primary,
button,
select,
.upload {
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #28322b;
  color: var(--ink);
  padding: 8px 13px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary,
.upload {
  background: var(--accent);
  border-color: var(--accent);
  color: #182114;
  text-decoration: none;
}
.primary:hover,
.upload:hover {
  background: #d7ffab;
}
button:hover:not(:disabled),
select:hover {
  border-color: var(--accent);
}
:focus-visible {
  outline: 2px solid #d4ff87;
  outline-offset: 3px;
}
input,
textarea {
  width: 100%;
  border: 1px solid #48564b;
  padding: 9px 10px;
  background: #121714;
  color: var(--ink);
  border-radius: 5px;
  font: inherit;
}
textarea {
  resize: vertical;
}
label {
  display: grid;
  gap: 4px;
  color: #c3ccc4;
  font-size: 13px;
  font-weight: 550;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 43px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.02em;
}
.pagehead,
.projecthead,
.sectionbar,
.actions,
.transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pagehead,
.projecthead {
  padding: 10px 0 21px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.minor {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 0 6px;
  font-size: 13px;
}
.actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.actions select {
  font-size: 13px;
}
.desk {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(270px, 1.8fr) minmax(
      195px,
      0.85fr
    );
  gap: 10px;
}
.pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  min-width: 0;
}
.sectionbar {
  margin-bottom: 10px;
}
.sectionbar span,
.transport output {
  font:
    12px ui-monospace,
    monospace;
}
.assistant,
.inspector {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.hint {
  font-size: 13px;
}
.assistant form,
.inspector form {
  display: grid;
  gap: 8px;
}
.suggestion {
  background: transparent;
  font-size: 12px;
  text-align: left;
  width: max-content;
  max-width: 100%;
}
#chat {
  flex: 1;
  min-height: 36px;
  max-height: 180px;
  overflow: auto;
}
#chat p {
  font-size: 13px;
  margin: 5px 0;
}
details summary {
  cursor: pointer;
}
#chat pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.screen {
  background: #0b0e0c;
  display: grid;
  place-items: center;
  min-height: 245px;
  border-radius: 5px;
}
.screen canvas {
  display: block;
  width: auto;
  height: clamp(245px, 39vh, 460px);
  max-width: 100%;
  aspect-ratio: 9/16;
}
.transport {
  margin-top: 8px;
}
.transport input {
  accent-color: var(--accent);
  padding: 0;
  min-width: 0;
}
.transport output {
  min-width: 55px;
  text-align: right;
}
.timeline {
  grid-column: 1/-1;
}
.track {
  display: flex;
  align-items: center;
  margin-top: 5px;
  min-width: 0;
}
.track > strong {
  flex: 0 0 66px;
  color: var(--muted);
  font:
    11px ui-monospace,
    monospace;
}
.lane {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.lane > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 12px;
  text-align: left;
}
.clips button {
  color: #102a18;
  background: #91bb9b;
  border-color: #96c6a3;
}
.clips button[aria-pressed="true"] {
  background: var(--accent);
  box-shadow: inset 0 0 0 2px #f6ffd8;
}
.captions span {
  background: #364d52;
  color: #e3fcff;
}
.beats span {
  color: #efdba0;
  background: #443e2e;
}
.sounds span {
  background: #373044;
  color: #e9d8fc;
}
.upload {
  position: relative;
  font-size: 12px;
  display: inline-block;
}
.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload:focus-within {
  outline: 2px solid white;
}
#library {
  max-width: 1000px;
  margin: 4vh auto;
}
#create {
  margin: 12px 0 32px;
  display: flex;
  align-items: end;
  gap: 12px;
}
#create label {
  flex: 1;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.card {
  text-align: left;
  overflow: hidden;
  padding: 0;
  background: var(--panel);
}
.card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.card b {
  display: block;
  padding: 12px;
}
.pagehead details {
  max-width: 280px;
}
.pagehead details p {
  font-size: 13px;
  margin: 6px 0;
}
.pagehead output {
  display: block;
  overflow-wrap: anywhere;
}
#status {
  color: var(--accent);
  margin-top: 12px;
}
#download {
  color: var(--accent);
}
#status:empty {
  margin: 0;
}
@media (max-width: 800px) {
  .desk {
    grid-template-columns: 1fr 1fr;
  }
  .monitor {
    grid-column: 1;
    grid-row: 1;
  }
  .assistant {
    grid-column: 2;
    grid-row: 1;
  }
  .inspector {
    grid-column: 1/-1;
    order: 4;
  }
  .timeline {
    order: 3;
  }
  .inspector form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  main {
    padding-top: 12px;
  }
  header {
    height: 48px;
  }
  .pagehead,
  .projecthead {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .projecthead h1 {
    font-size: 27px;
  }
  .desk {
    display: flex;
    flex-direction: column;
  }
  .monitor {
    order: 0;
  }
  .assistant {
    order: 1;
  }
  .timeline {
    order: 2;
  }
  .inspector {
    order: 3;
  }
  .screen canvas {
    height: 225px;
  }
  .screen {
    min-height: 225px;
  }
  .pane {
    padding: 12px;
  }
  .assistant {
    gap: 7px;
  }
  .assistant form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .assistant label {
    grid-column: 1/-1;
  }
  #chat:empty {
    display: none;
  }
  .landing {
    flex-direction: column-reverse;
    gap: 24px;
    text-align: center;
  }
  .landing img {
    width: 110px;
  }
  .track > strong {
    flex-basis: 45px;
  }
  .lane > * {
    padding: 4px 2px;
  }
  .projecthead .actions {
    gap: 5px;
  }
  .projecthead .actions > * {
    font-size: 12px;
    padding: 7px 9px;
  }
  #create {
    align-items: stretch;
    flex-direction: column;
  }
  .pagehead details {
    max-width: 100%;
  }
}
