@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: #211f25;
  --surface: #302e35;
  --ink: #f4efea;
  --muted: #a7a0ac;
  --line: #47424c;
  --accent: #ef5a53;
  --on-accent: #1f2027;
  --tint: #422f37;
}
header {
  height: 80px;
  padding: 0 35px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.red {
  color: var(--accent);
}
header .nav {
  margin-left: auto;
}
header > .pill {
  margin-left: 15px;
}
main {
  max-width: 1450px;
  padding: 0 35px;
  margin: auto;
}
.edit-heading {
  padding: 28px 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.edit-heading h1 {
  font-size: 30px;
  margin-top: 7px;
}
.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 328px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.monitor {
  min-width: 0;
}
.monitor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: #302d35;
  font: 9px var(--mono);
}
.red-square {
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.video-space {
  height: 435px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  place-items: center;
  position: relative;
  background: #18171b;
  overflow: hidden;
}
.video-space video {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}
.video-space.drag {
  outline: 2px dashed var(--accent);
  outline-offset: -10px;
}
#video-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 0 20px;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
}
#video-empty .scene { width: 100%; height: 250px; flex-shrink: 0; }
#video-empty .scene-bottom { width: 100%; padding: 4px 18px; }
#empty-bot {
  width: 148px;
  height: 148px;
  image-rendering: pixelated;
}
#video-empty h2 {
  font-size: 21px;
  margin: 8px 0 10px;
}
#video-empty button {
  margin-top: 18px;
}
.clip-status {
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font: 9px var(--mono);
  color: var(--muted);
}
#file-label {
  overflow-wrap: anywhere;
}
.timeline {
  padding: 15px 18px 20px;
  background: #29262e;
}
.timeline > .row:first-child {
  font: 9px var(--mono);
  color: var(--muted);
  margin-bottom: 15px;
}
.timeline .dual {
  max-width: 550px;
}
.timeline .field {
  margin-bottom: 10px;
}
.timeline .row button {
  font-size: 11px;
}
.cut-settings {
  padding: 24px 23px;
  border-left: 1px solid var(--line);
  background: #29272f;
}
.cut-settings h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 12px 0 30px;
}
.render-spec {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin: 15px 0;
}
.render-spec div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 10px var(--mono);
  margin: 12px 0;
}
.render-spec span {
  color: var(--muted);
}
.render-spec strong {
  font-weight: 400;
}
.cut-settings > .primary {
  height: 46px;
}
.cut-settings progress {
  margin: 14px 0;
}
.cut-settings #cancel {
  width: 100%;
  margin-top: 10px;
}
.download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  border: 1px solid #a9bdb0;
  color: #b5dfbd;
  border-radius: 4px;
  font-size: 13px;
  margin: 15px 0;
}
.director {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  margin: 35px 0 40px;
  gap: 32px;
}
.director .scene {
  height: 255px;
  background: #242328;
}
.director .scene-bottom {
  padding-left: 3px;
}
.take-notes {
  border-left: 1px solid var(--line);
  padding: 25px 0 20px 30px;
}
.take-notes h2 {
  font-size: 32px;
  line-height: 1.1;
  margin: 18px 0;
}
.take-notes p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 300px;
}
.mini-spec {
  display: flex;
  gap: 17px;
  font: 9px var(--mono);
  margin-top: 22px;
  color: #d6b98a;
}
.section-title h1 {
  color: var(--ink);
}
.about img {
  border-radius: 4px;
}
@media (max-width: 1100px) {
  .editor {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .cut-settings {
    padding: 23px 18px;
  }
  .cut-settings h2 {
    font-size: 25px;
  }
  .video-space {
    aspect-ratio: auto;
    min-height: 370px;
  }
  .director {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .take-notes h2 {
    font-size: 28px;
  }
}
@media (max-width: 750px) {
  header {
    padding: 0 16px;
    height: 72px;
    gap: 10px;
  }
  header > .pill {
    display: none;
  }
  header .brand {
    font-size: 23px;
    gap: 5px;
  }
  header .brand img {
    width: 33px;
    height: 33px;
  }
  header .nav button {
    padding: 0 7px;
    font-size: 10px;
  }
  .brand .red {
    display: none;
  }
  main {
    padding: 0 16px;
  }
  .edit-heading {
    padding: 23px 0 20px;
  }
  .edit-heading .eyebrow {
    font-size: 8px;
  }
  .edit-heading h1 {
    font-size: 23px;
  }
  .edit-heading button {
    font-size: 11px;
    padding: 0 10px;
    white-space: nowrap;
  }
  .editor {
    display: flex;
    flex-direction: column;
  }
  .video-space {
    min-height: 390px;
    height: 390px;
  }
  #video-empty .scene { height: 208px; }
  .monitor-bar {
    font-size: 7px;
    padding: 12px;
  }
  .monitor-bar > .row {
    gap: 6px;
  }
  #empty-bot {
    width: 105px;
    height: 105px;
  }
  #video-empty h2 {
    font-size: 17px;
  }
  #video-empty .hint {
    font-size: 10px;
  }
  .cut-settings {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 18px;
  }
  .cut-settings h2 {
    font-size: 25px;
  }
  .cut-settings h2 br {
    display: none;
  }
  .director {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 25px;
  }
  .director .scene {
    height: 250px;
    margin: 0 -16px;
  }
  .take-notes {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0 10px;
  }
  .take-notes h2 {
    font-size: 29px;
  }
  .take-notes h2 br {
    display: none;
  }
  .timeline .dual {
    gap: 10px;
  }
}
