/* ============================================================
   hopelessvideo.com — shared stylesheet
   theme-fixed dark. hard edges. one hot accent.
   ============================================================ */

:root {
  color-scheme: dark;

  --ink:        #f4f1ec;
  --ink-2:      #b9b3aa;
  --dim:        #756f66;
  --dim-2:      #4a453e;

  --bg:         #050505;
  --bg-1:       #0a0a0a;
  --bg-2:       #101010;
  --bg-3:       #161616;

  --accent:     #e6002e;
  --accent-ink: #ffffff;
  --accent-dim: rgba(230, 0, 46, 0.16);

  --line:       rgba(255, 255, 255, 0.09);
  --line-2:     rgba(255, 255, 255, 0.16);

  --ok:         #6fd28a;
  --warn:       #e0a33a;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
             "Hoefler Text", Georgia, "Times New Roman", serif;
  --ui: ui-sans-serif, system-ui, "Segoe UI", "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas,
          "Liberation Mono", monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  --gut: clamp(16px, 3.4vw, 44px);
  --bar: 62px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* film grain — fixed layer, never attached to scrolling content */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------- type */

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.wordmark em {
  font-style: normal;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

.mono { font-family: var(--mono); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin: 0;
}

/* ---------------------------------------------------------- buttons */

.btn {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  --btn-line: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--btn-line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 420ms var(--ease), color 420ms var(--ease),
              border-color 420ms var(--ease), transform 260ms var(--ease),
              opacity 320ms var(--ease);
}
.btn:hover { --btn-line: var(--ink); background: rgba(255,255,255,0.05); }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-accent {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  --btn-line: var(--accent);
  font-weight: 600;
}
.btn-accent:hover {
  background: #ff0a3c;
  border-color: #ff0a3c;
}

.btn-ghost { --btn-line: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: transparent; --btn-line: var(--line); }

.btn-danger:hover { --btn-line: var(--accent); color: var(--accent); background: var(--accent-dim); }

.btn-lg { min-height: 54px; padding: 0 30px; font-size: 12.5px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 10px; letter-spacing: 0.14em; }

.btn .tip {
  display: inline-block;
  transition: transform 420ms var(--ease);
}
.btn:hover .tip { transform: translateX(3px); }

/* ---------------------------------------------------------- inputs */

.field {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color 380ms var(--ease), background 380ms var(--ease);
}
.field::placeholder { color: var(--dim-2); }
.field:focus { border-color: var(--accent); background: var(--bg-3); }

/* ---------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--bar);
  padding: 0 var(--gut);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.masthead .spacer { flex: 1 1 auto; }
.masthead nav { display: flex; align-items: center; gap: 10px; }
.masthead .who {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------- reveal */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(6px);
  transition: opacity 820ms var(--ease), transform 820ms var(--ease),
              filter 820ms var(--ease);
  will-change: transform, opacity;
}
[data-reveal].seen {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ============================================================
   LANDER — the reels wall
   ============================================================ */

.wall-intro {
  padding: clamp(28px, 5vw, 64px) var(--gut) clamp(20px, 3vw, 34px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.wall-intro h1 {
  font-size: clamp(44px, 9.2vw, 132px);
  text-transform: uppercase;
  letter-spacing: -0.045em;
}
.wall-intro h1 span { color: var(--accent); }
.wall-intro .side {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  max-width: 34ch;
  line-height: 1.9;
  padding-bottom: 10px;
}

.wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px 3px 140px;
  background: var(--bg);
}
@media (min-width: 620px)  { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-1);
  border: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  display: block;
  width: 100%;
  transition: transform 620ms var(--ease);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 380ms var(--ease);
  pointer-events: none;
}
.tile:hover::after, .tile:focus-visible::after { border-color: var(--accent); }
.tile video, .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-1);
}
.tile .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 10px 8px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.52);
  background: linear-gradient(to top, rgba(0,0,0,0.86), rgba(0,0,0,0));
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  pointer-events: none;
}
.tile .dur {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 5px;
  pointer-events: none;
}

.wall-state {
  grid-column: 1 / -1;
  padding: 90px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

/* sticky CTA */
.dock {
  position: fixed;
  right: var(--gut);
  bottom: 22px;
  z-index: 45;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.dock .btn { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75); }
@media (max-width: 620px) {
  .dock { left: var(--gut); right: var(--gut); bottom: 14px; }
  .dock .btn { flex: 1 1 auto; }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: var(--gut);
}
.lightbox.on { display: flex; }
.lightbox .frame {
  position: relative;
  width: min(88vh, 100%);
  max-width: 720px;
}
.lightbox video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
  display: block;
  border: 1px solid var(--line);
}
.lightbox .lb-title {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}
.lightbox .lb-meta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 62px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 380ms var(--ease), border-color 380ms var(--ease);
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-prev { left: -60px; }
.lb-next { right: -60px; }
@media (max-width: 900px) {
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
}
.lb-close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
}
.lb-close:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   modal (email capture)
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gut);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.modal.on { display: flex; }
.modal .sheet {
  width: 100%;
  max-width: 460px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  padding: clamp(24px, 4vw, 40px);
}
.modal h2 {
  font-size: clamp(28px, 5vw, 40px);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.modal .sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 26px;
}
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal .fine {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--dim-2);
}

.notice {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-left: 2px solid var(--dim);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.03);
}
.notice.bad { border-left-color: var(--accent); color: #ff6b89; }
.notice.good { border-left-color: var(--ok); color: var(--ok); }
.notice[hidden] { display: none; }

/* ============================================================
   AUTH / ACCOUNT — centered shells
   ============================================================ */

.shell {
  min-height: calc(100dvh - var(--bar));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vw, 110px) var(--gut);
}
.shell .panel {
  width: 100%;
  max-width: 520px;
}
.shell h1 {
  font-size: clamp(38px, 7vw, 68px);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.shell .lede {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 32px;
}
.shell form { display: flex; flex-direction: column; gap: 12px; }
.shell .alt {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.shell .alt button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  border-bottom: 1px solid var(--accent-dim);
}
.shell .alt button:hover { border-bottom-color: var(--accent); }

.rows { border-top: 1px solid var(--line); margin-bottom: 30px; }
.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}
.row .k {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.row .v { text-align: right; word-break: break-word; }
.row .v.hot { color: var(--accent); }

/* ============================================================
   EDITOR
   ============================================================ */

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1px;
  background: var(--line);
  min-height: calc(100dvh - var(--bar));
}
.editor > * { background: var(--bg); }
@media (max-width: 900px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
}

.stage-col { padding: clamp(18px, 3vw, 40px) var(--gut) 90px; min-width: 0; }
.rail { padding: 22px 20px 90px; min-width: 0; }

.rail h2, .stage-col h2 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}

/* drop zone */
.drop {
  border: 1px dashed var(--line-2);
  background: var(--bg-1);
  padding: clamp(26px, 5vw, 52px) 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 420ms var(--ease), background 420ms var(--ease);
}
.drop:hover, .drop.hot { border-color: var(--accent); background: rgba(230, 0, 46, 0.05); }
.drop .big {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 38px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.drop .small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.bar {
  height: 3px;
  background: var(--bg-3);
  margin-top: 16px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms var(--ease-out);
  will-change: transform;
}

.pending {
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: clamp(24px, 4vw, 44px);
}
.pending .head {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 40px);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pending .msg {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 56ch;
}
.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  margin-right: 10px;
  animation: pulse 1.6s var(--ease) infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.62); }
}

pre.err {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: #ff7d96;
  background: var(--bg-1);
  border: 1px solid rgba(230, 0, 46, 0.4);
  padding: 16px;
  margin: 0 0 18px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}

/* video */
.viewport {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.viewport video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.viewport .blackout {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 90ms linear;
}
.viewport .blackout.on { opacity: 1; }
.viewport .tick {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 8px;
  opacity: 0;
  transition: opacity 140ms linear;
  pointer-events: none;
}
.viewport .tick.on { opacity: 1; }

.transport {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  max-width: 620px;
}
.transport .time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.transport .spacer { flex: 1 1 auto; }

/* dual slider */
.slider-wrap { max-width: 620px; margin-top: 26px; }

.slider {
  position: relative;
  height: 52px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.slider .rail-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 4px;
  background: var(--bg-3);
  border-top: 1px solid var(--line);
}
.slider .fill {
  position: absolute;
  top: 24px;
  height: 4px;
  background: var(--accent);
}
.slider .ticks {
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  height: 8px;
  pointer-events: none;
  opacity: 0.5;
}
.slider .ticks i {
  position: absolute;
  top: 0;
  width: 1px;
  height: 5px;
  background: var(--dim-2);
}
.slider .playhead {
  position: absolute;
  top: 12px;
  width: 1px;
  height: 28px;
  background: var(--ink);
  pointer-events: none;
  transform: translateX(-0.5px);
}
.slider .playhead::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -3px;
  width: 7px;
  height: 5px;
  background: var(--ink);
}
.handle {
  position: absolute;
  top: 0;
  width: 44px;
  height: 52px;
  margin-left: -22px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: ew-resize;
  touch-action: none;
}
.handle::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  width: 2px;
  height: 36px;
  background: var(--ink);
  transition: background 300ms var(--ease), transform 300ms var(--ease);
}
.handle::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  transition: transform 300ms var(--ease);
}
.handle-b::after { top: 32px; }
.handle:hover::after, .handle:focus-visible::after, .handle.grab::after { transform: scale(1.35); }
.handle:hover::before, .handle.grab::before { background: var(--accent); }

.slider-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 4px;
}

/* transcript */
.phrase-box {
  max-width: 620px;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 18px 20px;
}
.phrase-box .txt {
  font-family: var(--display);
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.35;
  color: var(--ink);
  word-break: break-word;
}
.phrase-box .meta::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: middle;
}
.phrase-box .meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.script {
  position: relative;
  max-width: 620px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 16px 18px;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  line-height: 2.15;
}
.word {
  display: inline-block;
  padding: 1px 4px;
  margin: 0 1px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 240ms var(--ease), background 240ms var(--ease);
}
.word:hover { color: var(--ink); background: rgba(255,255,255,0.07); }
.word.in { color: var(--accent-ink); background: var(--accent); }
.word.now { box-shadow: inset 0 -2px 0 var(--ink); color: var(--ink); }
.word.in.now { box-shadow: inset 0 -2px 0 #000; }

.hint {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dim-2);
  line-height: 1.8;
}

.actions {
  max-width: 620px;
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* job rail */
.joblist { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.job {
  background: var(--bg);
  padding: 13px 14px;
  cursor: pointer;
  position: relative;
  transition: background 320ms var(--ease);
}
.job:hover { background: var(--bg-2); }
.job.sel { background: var(--bg-2); }
.job.sel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}
.job .t {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 34px;
}
.job .p {
  font-family: var(--display);
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job .x {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 0;
  color: var(--dim-2);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  transition: color 260ms var(--ease);
}
.job .x:hover { color: var(--accent); }

.badge {
  display: inline-block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid var(--line-2);
  color: var(--dim);
}
.badge.s-ready, .badge.s-done { border-color: var(--ok); color: var(--ok); }
.badge.s-error { border-color: var(--accent); color: #ff6b89; }
.badge.s-rendering, .badge.s-preparing, .badge.s-uploaded { border-color: var(--warn); color: var(--warn); }

.empty {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim-2);
  padding: 26px 0;
  line-height: 2;
}
