:root {
  --studio: #edf2f7;
  --paper: #fbfdff;
  --ink: #172033;
  --muted: #647087;
  --line: #cbd5e2;
  --blue: #315cff;
  --blue-deep: #2346d3;
  --signal: #ff6f61;
  --success: #0a8b72;
  --shadow: 0 18px 46px rgba(23, 32, 51, .11);
  font-family: "Segoe UI Variable", "SF Pro Text", system-ui, sans-serif;
  color: var(--ink);
  background: var(--studio);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(49, 92, 255, .035) 1px, transparent 1px),
    var(--studio);
  background-size: 100% 44px;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.brandline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
}

.brandmark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.brandmark span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--blue);
}
.brandmark span:nth-child(1) { height: 8px; }
.brandmark span:nth-child(2) { height: 17px; background: var(--signal); }
.brandmark span:nth-child(3) { height: 12px; }

.brandname {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .02em;
}

.limit {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(251, 253, 255, .7);
  font: 700 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.intro { padding: clamp(35px, 9vh, 72px) 3px 27px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font: 750 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
}

h1 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: clamp(39px, 11vw, 58px);
  line-height: .94;
  letter-spacing: -.045em;
  font-stretch: condensed;
}

h1 em { color: var(--blue); font-style: normal; }

.lede {
  max-width: 400px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.timeline { margin: 0 3px 16px; }

.timecode {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font: 650 9px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cue-track {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 9px;
}

.cue-track i {
  position: relative;
  flex: var(--w);
  overflow: hidden;
  border-radius: 2px;
  background: #d5deea;
}

.cue-track i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform .22s ease-out;
}

.upload-card {
  padding: 14px;
  border: 1px solid rgba(203, 213, 226, .9);
  border-radius: 24px;
  background: rgba(251, 253, 255, .92);
  box-shadow: var(--shadow);
}

.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.dropzone {
  width: 100%;
  min-height: 174px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9eabc0;
  border-radius: 16px;
  color: var(--ink);
  background: #f4f7fb;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.dropzone:not(:disabled):active { transform: scale(.988); }
.dropzone.is-dragging { border-color: var(--blue); background: #eef2ff; }
.dropzone:disabled { cursor: wait; opacity: .66; }
.dropzone:focus-visible, .primary:focus-visible, .replace:focus-visible { outline: 3px solid rgba(49, 92, 255, .25); outline-offset: 3px; }

.file-glyph {
  width: 45px;
  height: 50px;
  margin-bottom: 15px;
  color: var(--blue);
}
.file-glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.drop-title { font-size: 15px; font-weight: 760; }
.drop-note { margin-top: 5px; color: var(--muted); font-size: 11px; }

.selected {
  min-height: 72px;
  padding: 6px 5px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.selected-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.selected-copy span { color: var(--muted); font: 600 10px/1.2 ui-monospace, Consolas, monospace; }

.replace {
  padding: 7px 0 7px 10px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  position: relative;
  width: 100%;
  height: 54px;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  color: white;
  background: var(--blue);
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(49, 92, 255, .22);
  transition: background-color .18s ease, transform .18s ease;
}

.primary:not(:disabled):active { transform: translateY(1px); background: var(--blue-deep); }
.primary:disabled { cursor: default; color: #8d98aa; background: #d9e0e9; box-shadow: none; }
.primary.is-success { background: var(--success); color: white; }

.button-progress {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: rgba(255, 255, 255, .72);
  transform: scaleX(0);
  transform-origin: left;
}

.error {
  margin: 12px 3px 1px;
  padding: 10px 12px;
  border-left: 3px solid var(--signal);
  color: #9b3028;
  background: #fff1ef;
  font-size: 12px;
  line-height: 1.4;
}

footer {
  margin-top: auto;
  padding: 24px 3px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .015em;
}

.privacy-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--signal); }

@media (max-height: 680px) {
  .intro { padding-top: 28px; padding-bottom: 21px; }
  .dropzone { min-height: 142px; }
  footer { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

