@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-ExtraBold.ttf"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Black.ttf"); font-weight: 900; font-display: swap; }

:root {
  --bg: #000000;
  --panel: #121212;
  --panel-2: #1C1C1C;
  --line: #333333;
  --accent: #D9D9D9;
  --accent-deep: #ADADAD;
  --accent-grad: linear-gradient(180deg, #F0F0F0 0%, #BDBDBD 55%, #9A9A9A 100%);
  --white: #FFFFFF;
  --muted: #A3A3A3;
  --ink: #000000;
  --warn: #E6C878;
  --bad: #E57F7F;
  --display: "Montserrat", "Arial Black", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--white); font: 16px/1.5 var(--body); overflow-x: clip;
  min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px 24px 64px; outline: none; flex: 1; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; }
h1 { color: var(--accent); font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.01em; }
h2 { font-size: 20px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

/* header */
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 24px 18px; }
.brand { text-decoration: none; display: block; }
.brand-logo { display: block; height: clamp(56px, 9vw, 96px); width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--panel-2); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--ink); }
.badge { font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--panel); color: var(--accent);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap; margin-right: 6px; }
.badge.low { color: var(--warn); border-color: var(--warn); }

/* the slanted tape */
.tape { background: var(--accent); color: var(--ink); transform: rotate(-1.1deg) scaleX(1.03); overflow: hidden;
  padding: 6px 0; margin: 0 0 36px; box-shadow: 0 2px 0 rgba(0,0,0,.5); }
.tape-run { white-space: nowrap; font: 800 13px var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.tape.moving .tape-run { animation: tape 40s linear infinite; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape.moving .tape-run { animation: none; } }

/* panels and forms */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.narrow { max-width: 460px; margin: 0 auto; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.intro { display: grid; gap: 8px; margin-bottom: 24px; }
.narrow-intro { max-width: 460px; margin: 0 auto 24px; }
label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], textarea, select {
  width: 100%; background: var(--bg); color: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; font: inherit; }
textarea { resize: vertical; min-height: 72px; }
input::placeholder { color: #8C8C8C; }
input[type=color] { width: 48px; height: 40px; padding: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 0; cursor: pointer; }
.check.top-align { align-items: flex-start; }
.check.top-align input { margin-top: 2px; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.source-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.source-row input { font-size: 18px; padding: 14px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; align-items: end; }

button, .btn { font: 700 15px var(--body); border-radius: 8px; padding: 11px 18px; cursor: pointer; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--white); text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--accent-grad); color: var(--ink); border-color: var(--accent); font: 800 16px var(--display); padding: 13px 24px; }
.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.danger:hover { border-color: var(--bad); color: var(--bad); }
.tiny { padding: 5px 10px; font-size: 13px; }
.linkish { background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }

/* notices */
.notice { border-left: 4px solid var(--accent); background: var(--panel-2); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.notice.warn { border-color: var(--warn); }
.notice.bad { border-color: var(--bad); }
.gap-below { margin-bottom: 16px; }
#banner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
#banner .notice { margin-bottom: 16px; }

/* upload */
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; justify-items: center;
  text-align: center; }
.drop.over { border-color: var(--accent); background: var(--panel-2); }
.drop.chosen { border-style: solid; }
.file-name { font-weight: 700; overflow-wrap: anywhere; }

/* working */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.step .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid;
  place-items: center; font: 800 13px var(--display); }
.step.now { color: var(--white); font-weight: 600; }
.step.now .dot { border-color: var(--accent); color: var(--accent); }
.step.done { color: var(--white); }
.step.done .dot { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar > div { height: 100%; background: var(--accent); transition: width .4s; }
.bar.busy > div { width: 35%; animation: busy 1.5s ease-in-out infinite alternate; }
@keyframes busy { from { margin-left: 0; } to { margin-left: 65%; } }
@media (prefers-reduced-motion: reduce) { .bar.busy > div { animation: none; width: 100%; opacity: .5; } }
pre.log { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 260px; overflow: auto;
  font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); margin: 8px 0 0; }
summary { cursor: pointer; font-weight: 600; }

/* review */
.pick { display: grid; gap: 14px; }
.pick.off { opacity: .6; }
.pick-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
input[type=text].pick-title { font: 800 18px var(--display); padding: 8px 10px; }
.pill { font-size: 13px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.spoken { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; max-height: 170px; overflow: auto; color: var(--muted); font-size: 15px; }
.nudge { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sticky { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 12px; }

/* clips */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.clip { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.clip video { width: 100%; aspect-ratio: 9 / 16; background: #000; display: block; }
.clip-body { padding: 14px; display: grid; gap: 10px; }
.clip-caption { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.project { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.project a.title { text-decoration: none; color: inherit; min-width: 0; }
.project a.title:hover h2 { color: var(--accent); }
.project h2 { overflow-wrap: anywhere; }
.empty { text-align: center; padding: 48px 24px; }

/* account and admin */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.fact b { display: block; font: 800 22px var(--display); color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td input[type=number] { width: 92px; padding: 6px 8px; }
td.email { overflow-wrap: anywhere; min-width: 180px; }

.foot { width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 24px 28px; border-top: 1px solid var(--line);
  display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
.foot .grow { flex: 1; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--white); color: var(--ink); font-weight: 700;
  padding: 10px 18px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; }

/* plain text pages: terms, privacy, copyright */
.doc { max-width: 760px; }
.doc h2 { margin: 28px 0 8px; }
.doc p, .doc li { color: #D6D6D6; margin-bottom: 10px; }
.doc ul { padding-left: 22px; margin: 0; }

@media (max-width: 640px) {
  main { padding: 8px 16px 48px; }
  .top { padding: 18px 16px 14px; }
  .panel { padding: 16px; }
  .source-row { grid-template-columns: 1fr; }
  .pick-head { grid-template-columns: auto 1fr; }
  .pick-head .pill { grid-column: 2; justify-self: start; }
  .project { grid-template-columns: 1fr auto; }
  .project .pill { grid-column: 1; justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  #banner, .foot { padding-left: 16px; padding-right: 16px; }
}
