@import url("./app.css");
:root {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  --mono: "IBM Plex Mono", monospace;
  --pixel: "Silkscreen", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  min-height: 40px;
  padding: 0 14px;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.42;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
a {
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.icon-button {
  padding: 0;
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex-shrink: 0;
}
code,
.mono {
  font-family: var(--mono);
}
.eyebrow {
  font: 10px/1.6 var(--mono);
  color: var(--muted);
}
.pixel {
  font-family: var(--pixel);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 28px var(--pixel);
}
.brand img {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
}
.brand small {
  font: 10px var(--mono);
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 7px;
}
.nav button {
  background: transparent;
  border-color: transparent;
  font-size: 12px;
}
.nav button[aria-selected="true"] {
  color: var(--accent);
  border-color: var(--line);
  background: var(--surface);
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.primary.wide {
  width: 100%;
  justify-content: space-between;
}
.secondary {
  background: transparent;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 9px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.pill:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 19px;
}
.field label,
legend {
  font: 10px var(--mono);
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
input[type="number"],
input[type="text"],
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  color: var(--ink);
  padding: 9px 11px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  margin: 0;
}
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin: 12px 0 20px;
}
.segments {
  display: flex;
  gap: 6px;
}
.segments button {
  flex: 1;
  font-size: 11px;
  min-width: 0;
  padding: 0 8px;
}
.segments button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spread {
  justify-content: space-between;
}
.hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.drop {
  border: 1px dashed var(--line);
  border-radius: 5px;
  padding: 25px;
  text-align: center;
}
.drop.drag {
  border-color: var(--accent);
  background: var(--tint);
}
.drop h3 {
  font-size: 17px;
  margin: 10px 0;
}
.drop .row {
  justify-content: center;
  margin-top: 17px;
  flex-wrap: wrap;
}
.drop > .lucide {
  width: 27px;
  height: 27px;
  color: var(--accent);
}
.scene-wrap {
  position: relative;
  overflow: hidden;
}
.scene {
  height: 320px;
  overflow: hidden;
}
.scene canvas {
  display: block;
  image-rendering: pixelated;
}
.scene-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
}
.bot-line {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
}
.scene-controls {
  display: flex;
  gap: 4px;
}
.scene-controls button {
  background: transparent;
  border: 0;
}
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 10px var(--mono);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
progress {
  appearance: none;
  width: 100%;
  height: 4px;
  border: none;
  background: var(--line);
  accent-color: var(--accent);
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: var(--accent);
}
.result-list {
  display: flex;
  flex-direction: column;
}
.file-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.file-row img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--surface);
  border-radius: 3px;
}
.file-row strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.file-row small {
  display: block;
  font: 9px/1.6 var(--mono);
  color: var(--muted);
  margin-top: 3px;
}
.file-row .size {
  font: 10px var(--mono);
  text-align: right;
}
.empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  padding: 35px 0;
}
.history-row {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: center;
}
.history-row strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.history-row span,
.history-row time {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
}
footer {
  padding: 25px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font: 9px/1.6 var(--mono);
  color: var(--muted);
}
.about {
  max-width: 980px;
  margin: 30px auto 60px;
}
.about h1 {
  font-size: 30px;
  margin: 12px 0 20px;
}
.about p {
  font-size: 15px;
  line-height: 1.8;
  max-width: 620px;
  margin: 16px 0;
  color: var(--muted);
}
.about img {
  width: 100%;
  height: auto;
  margin-top: 22px;
}
.roadmap {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  display: flex;
  gap: 25px;
}
.roadmap li {
  flex: 1;
  border-top: 2px solid var(--line);
  padding-top: 12px;
}
.roadmap strong {
  font-size: 13px;
  display: block;
}
.roadmap span {
  font: 10px/1.8 var(--mono);
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 30px);
  background: #282b32;
  color: #fff;
  padding: 14px 20px;
  border-radius: 5px;
  z-index: 100;
  font-size: 12px;
  box-shadow: 0 4px 20px #0002;
}
dialog {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  padding: 24px;
  width: min(430px, calc(100% - 30px));
}
dialog::backdrop {
  background: #15171b88;
}
dialog p {
  margin: 15px 0 25px;
  line-height: 1.6;
  color: var(--muted);
}
.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.file-input {
  display: none;
}
.notice {
  font: 10px/1.7 var(--mono);
  color: var(--muted);
  margin-top: 13px;
}
.file-meta {
  font: 10px var(--mono);
  color: var(--muted);
}
.section-title {
  padding: 30px 0 18px;
}
.section-title h1 {
  font-size: 27px;
  margin-top: 7px;
}
.keyboard-note {
  font: 10px var(--mono);
  color: var(--muted);
}
@media (max-width: 750px) {
  .brand {
    font-size: 25px;
  }
  .brand small {
    display: none;
  }
  .nav {
    gap: 0;
  }
  .nav button {
    padding: 0 9px;
    font-size: 11px;
  }
  .history-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .roadmap {
    flex-direction: column;
  }
  .about {
    margin: 22px 18px;
  }
  .scene {
    height: 280px;
  }
  .file-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
  }
  .file-row img {
    width: 38px;
    height: 38px;
  }
  .file-row .size {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }
  .file-row > button {
    grid-column: 3;
    grid-row: 1/3;
  }
  footer {
    padding: 23px 18px;
    flex-wrap: wrap;
  }
  .drop {
    padding: 22px 15px;
  }
  .about h1 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

:root {
  --bg: #f4f8f7;
  --surface: #ffffff;
  --ink: #292934;
  --muted: #657579;
  --line: #cbd8d7;
  --accent: #b92e6e;
  --on-accent: #fff8e6;
  --tint: #fce0e8;
}
header {
  height: 85px;
  background: #ffe38a;
  padding: 0 36px;
  display: flex;
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid #c9b777;
}
.brand {
  font-size: 31px;
}
.brand small {
  font-size: 9px;
  line-height: 1.4;
  padding-left: 13px;
  border-left: 1px solid #c0a978;
}
.nav {
  margin-left: auto;
}
.nav button[aria-selected="true"] {
  background: #292934;
  color: #fff0b9;
  border-color: #292934;
}
main {
  max-width: 1430px;
  padding: 0 36px;
  margin: auto;
}
.studio-heading {
  padding: 28px 0 25px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.studio-heading h1 {
  font-size: 28px;
  margin-top: 8px;
}
.edition {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
  text-align: right;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.mix-desk {
  border: 1px solid #c7b5aa;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}
.desk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-size: 12px;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #e3eff0;
  padding: 0 14px;
}
.desk-tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  min-height: 48px;
}
.desk-tabs button[aria-pressed="true"] {
  border-bottom: 3px solid var(--accent);
  color: var(--accent);
}
.audio-drop {
  padding: 24px 25px 0;
  background: #2d2b34;
  color: #fdf0d8;
  position: relative;
  min-height: 250px;
}
.audio-drop.drag {
  outline: 2px dashed var(--accent);
  outline-offset: -5px;
}
.audio-drop h2 {
  font-size: 20px;
  margin: 9px 0 20px;
  overflow-wrap: anywhere;
}
.audio-drop > .eyebrow {
  color: #c9afa8;
}
#audio-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: absolute;
  top: 94px;
  left: 25px;
  right: 25px;
  height: 122px;
}
#empty-bot {
  height: 100px;
  width: 100px;
  image-rendering: pixelated;
}
#audio-empty p {
  font: 10px/1.8 var(--mono);
  color: #c9afb7;
  max-width: 200px;
}
.transport {
  min-height: 56px;
  border-top: 1px solid #53414e;
}
.transport button {
  background: #ffe18c;
  color: #2d2b34;
  border: 0;
}
.transport span {
  font: 9px var(--mono);
  color: #d2b9bf;
}
.input-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 25px;
  border-bottom: 1px solid var(--line);
}
.input-tools button {
  font-size: 11px;
  padding: 0 11px;
}
.mix-settings {
  padding: 23px 25px;
}
.mix-settings .field {
  margin-bottom: 16px;
}
.mix-settings output {
  font: 11px var(--mono);
}
.mix-settings > .primary {
  height: 45px;
}
.mix-settings .notice {
  font-size: 10px;
}
#output {
  padding-top: 15px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
#output audio {
  width: 100%;
  height: 42px;
}
.download-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  margin-top: 12px;
  min-height: 38px;
}
.founder-label {
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  color: var(--muted);
  padding: 12px 0;
}
.founder .scene {
  height: 255px;
  background: #f1e9d4;
}
.founder .scene-bottom {
  padding: 10px 0 15px;
}
.founder .icon-button {
  background: transparent;
  border: 0;
}
.dream-summary {
  border-top: 2px solid #ba8d71;
  padding-top: 22px;
  margin-top: 6px;
}
.dream-summary > .eyebrow {
  font-size: 8px;
}
.dream-numbers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}
.dream-numbers strong {
  font: 36px var(--pixel);
}
.dream-numbers span {
  display: block;
  font: 9px var(--mono);
  color: var(--muted);
  margin-top: 7px;
}
.dream-numbers > svg {
  color: var(--accent);
  height: 24px;
  width: 24px;
}
.dream-summary p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 350px;
}
.dream-summary dl {
  margin: 24px 0 0;
}
.dream-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font: 10px var(--mono);
}
.dream-summary dt {
  color: var(--muted);
}
.dream-summary dd {
  margin: 0;
  text-align: right;
}
#voice-panel {
  padding: 28px 25px;
  min-height: 540px;
}
#voice-panel h2 {
  font-size: 25px;
  margin: 15px 0 25px;
  max-width: 350px;
}
#voice-panel textarea {
  resize: vertical;
  font-size: 14px;
  line-height: 1.7;
}
.dream-page {
  padding: 45px 0 55px;
}
.dream-page h1 {
  font: 42px/1.15 var(--pixel);
  margin: 22px 0 25px;
}
.dream-lead {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
}
.dream-road {
  margin: 35px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.dream-road article {
  border-top: 2px solid var(--accent);
  padding-top: 15px;
}
.dream-road span {
  font: 10px var(--mono);
  color: var(--accent);
}
.dream-road h2 {
  font-size: 21px;
  margin: 20px 0 13px;
}
.dream-road p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.disclaimer {
  font: 11px/1.8 var(--mono);
  color: var(--muted);
  max-width: 900px;
}
.dream-page > img {
  display: block;
  width: 100%;
  margin-top: 35px;
}
@media (max-width: 1100px) {
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
  }
  .dream-numbers strong {
    font-size: 30px;
  }
  .audio-drop,
  .mix-settings {
    padding-left: 18px;
    padding-right: 18px;
  }
  .input-tools {
    padding: 15px 18px;
    gap: 6px;
  }
  .input-tools button {
    font-size: 10px;
    padding: 0 9px;
  }
  .studio-heading h1 {
    font-size: 25px;
  }
  .studio-heading .eyebrow {
    font-size: 9px;
  }
  .transport #audio-meta {
    font-size: 8px;
  }
}
@media (max-width: 750px) {
  header {
    padding: 0 15px;
    height: 73px;
    gap: 10px;
  }
  .brand {
    font-size: 25px;
    gap: 5px;
  }
  .brand img {
    width: 37px;
    height: 37px;
  }
  .brand small {
    display: none;
  }
  .nav button {
    font-size: 0;
    gap: 0;
    width: 37px;
    padding: 0;
  }
  .nav button svg {
    width: 18px;
    height: 18px;
  }
  main {
    padding: 0 18px;
  }
  .studio-heading {
    padding: 23px 0 20px;
  }
  .studio-heading h1 {
    font-size: 24px;
    max-width: 270px;
  }
  .studio-heading .eyebrow {
    font-size: 8px;
  }
  .edition {
    display: none;
  }
  .studio-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .mix-desk {
    border-radius: 5px;
  }
  .audio-drop h2 {
    font-size: 18px;
  }
  .audio-drop {
    min-height: 258px;
  }
  .transport #audio-meta {
    display: none;
  }
  #audio-empty {
    gap: 10px;
    left: 15px;
    right: 15px;
  }
  #audio-empty p {
    font-size: 9px;
  }
  .input-tools {
    padding: 14px 13px;
    gap: 6px;
  }
  .input-tools button {
    padding: 0 9px;
    min-height: 38px;
    font-size: 10px;
  }
  .input-tools svg {
    width: 14px;
    height: 14px;
  }
  .mix-settings {
    padding: 20px 17px;
  }
  .mix-settings .dual {
    gap: 14px;
  }
  .switch {
    font-size: 11px;
  }
  .founder .scene {
    height: 260px;
    margin: 0 -18px;
  }
  .dream-numbers {
    justify-content: flex-start;
    gap: 30px;
  }
  .dream-numbers strong {
    font-size: 34px;
  }
  .dream-summary > .eyebrow {
    font-size: 8px;
  }
  .dream-page {
    padding-top: 30px;
  }
  .dream-page h1 {
    font-size: 30px;
  }
  .dream-lead {
    font-size: 16px;
  }
  .dream-road {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .desk-tabs {
    padding: 0 8px;
  }
  .desk-tabs button {
    font-size: 11px;
    padding: 0 10px;
  }
  #voice-panel {
    padding: 24px 18px;
    min-height: 470px;
  }
}
