/* The owner's posting pages: Winners, Lineup, Talking, Schedule, Client stories, Thumbnails. Built from the shared
   parts and the team pages' cards; only what these pages add lives here. */

/* ---- shared by these pages ---- */
.ownerpage .pagehead { margin-bottom: var(--s4); }
.ownerpage .asleep, .ownerpage > .tabs, .ownerpage .sc-top { margin-bottom: var(--s4); }
.ownerpage > .back { margin-bottom: var(--s2); }
.ownerpage .pagehead h1 { overflow-wrap: anywhere; }
.ownerpage.stale .wcard, .ownerpage.stale .lu-list, .ownerpage.stale .idea, .ownerpage.stale .tb-job, .ownerpage.stale .tb-opt,
.ownerpage.stale .idea-body, .ownerpage.stale .sc-runway {
  opacity: .55; filter: grayscale(1);
}
.ownerpage.stale .tb-job, .ownerpage.stale a.idea { pointer-events: none; }

/* two or three choices side by side; the chosen one is filled */
.seg {
  display: inline-flex; flex: none; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--paper);
}
.seg button {
  min-height: 38px; padding: 0 14px; border-radius: var(--r-pill); color: var(--muted); font-weight: 600; font-size: var(--t-small);
  white-space: nowrap; transition: background .15s, color .15s;
}
.seg button[aria-pressed="true"], .seg button[aria-pressed="true"]:hover { background: var(--ink); color: var(--bg); opacity: 1; }
.seg button[disabled]:not([aria-pressed="true"]) { opacity: .45; }
.seg button:not([disabled]):hover { color: var(--ink); }
@media (pointer: coarse) { .seg button { min-height: var(--tap); } }

/* a finished video in a panel */
.watch { display: grid; place-items: center; border-radius: var(--r-md); overflow: hidden; background: #14110B; }
.watch video { width: 100%; max-height: 62dvh; }

/* ---- winners ---- */
.wcard .cover { display: grid; place-items: center; }
.wcard .cover img { position: absolute; inset: 0; }
.wcard .pill[hidden] { display: none; }
.wcard .cv-big[disabled] { opacity: .35; }

/* ---- lineup, talking, schedule: one numbered row per video ---- */
.lu-lanes { display: grid; gap: var(--s6); }
.lu-lane .sechead { margin-bottom: var(--s3); flex-wrap: wrap; }
ol.lu-list, ul.lu-list { padding: 0 var(--s3); list-style: none; }
.lu-row {
  position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 76px; padding: var(--s2) 0;
  border-top: 1px solid var(--line);
}
.lu-row:first-child { border-top: 0; }
.lu-n {
  flex: none; width: 1.6em; text-align: center; font: 500 1.25rem/1 var(--serif); color: var(--brass-ink);
  font-variant-numeric: tabular-nums;
}
.lu-cover {
  position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 60px; border-radius: 6px; overflow: hidden;
  background: #14110B;
}
.lu-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lu-cover img:not([hidden]) + .nocover { display: none; }
button.lu-cover[disabled] { cursor: default; }
.lu-main { flex: 1; min-width: 0; }
.lu-main h3 { font-size: 1.0625rem; line-height: 1.25; overflow-wrap: anywhere; }
.lu-when { margin-top: 2px; font-size: var(--t-small); }
.lu-when b { font-weight: 600; }
.lu-when [data-was] { display: inline-block; white-space: nowrap; }
.lu-row.moved .lu-when b { color: var(--brass-ink); }
.lu-move { display: flex; flex: none; gap: 2px; }
.lu-move[hidden] { display: none; }
.lu-move .iconbtn { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); }
.lu-move .iconbtn .i { width: 18px; height: 18px; }
.lu-row[draggable="true"] { cursor: grab; }
.lu-row.dragging { opacity: .4; }
.lu-row.over-a::before, .lu-row.over-b::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--brass);
}
.lu-row.over-a::before { top: -2px; }
.lu-row.over-b::after { bottom: -2px; }
.lu-foot {
  position: sticky; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + var(--s2)); z-index: 5; display: grid; gap: var(--s2);
  margin-top: var(--s4);
}
.lu-bar {
  display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s2) var(--s2) var(--s4); border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--paper); box-shadow: var(--shadow);
}
.lu-bar[hidden] { display: none; }
.lu-bar span { flex: 1; min-width: 0; font-weight: 600; font-size: var(--t-small); }
.lu-line { padding: 8px var(--s4); border-radius: var(--r-md); background: var(--brass-soft); font-weight: 500; }
.lu-line.bad { background: var(--bad-soft); color: var(--bad); }
.lu-moves {
  display: grid; max-height: 44dvh; margin-top: var(--s4); padding: 0; overflow-y: auto; border-top: 1px solid var(--line);
  list-style: none;
}
.lu-moves li { display: grid; gap: 2px; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.lu-moves b { font: 600 1rem/1.3 var(--serif); overflow-wrap: anywhere; }
.lu-moves span { font-size: var(--t-small); color: var(--brass-ink); font-weight: 600; }
@media (min-width: 900px) {
  .lupage, .tkpage, .schpage { max-width: 820px; margin: 0 auto; }
  .lu-foot { bottom: var(--s4); }
  ol.lu-list, ul.lu-list { padding: 0 var(--s4); }
}

/* ---- talking ---- */
.tk-cadence { display: flex; align-items: center; gap: var(--s3) var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.tk-cadence > div:first-child { flex: 1 1 200px; min-width: 0; }
.tk-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tk-chips[hidden] { display: none; }

/* ---- schedule ---- */
.sc-top { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.sc-top .tabs { flex: 1 1 100%; margin-bottom: 0; }
.sc-top .tabs[hidden] { display: none; }
.sc-runway { display: grid; gap: 6px; margin-bottom: var(--s5); font-size: var(--t-small); }
.sc-runway[hidden] { display: none; }
.sc-run b { margin-right: 4px; }
.sc-run.bad { color: var(--bad); }
.sc-run.warn { color: var(--brass-ink); }
.sc-row .pill { flex: none; }
.schpage .days { gap: var(--s5); }
@media (max-width: 599px) { .sc-row .pill { display: none; } }
@media (min-width: 700px) { .sc-top .tabs { flex: 1 1 auto; } }

/* ---- client stories ---- */
.idea-grid { display: grid; gap: var(--s3); }
a.card.idea { display: grid; gap: 6px; }
.idea-top { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.idea h3 { font-size: 1.1875rem; overflow-wrap: anywhere; }
.idea-blurb { color: var(--muted); font-size: var(--t-small); line-height: 1.45; overflow-wrap: anywhere; }
.idea-head { display: flex; align-items: center; gap: var(--s3) var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.idea-head > div:first-child { flex: 1 1 160px; min-width: 0; }
.idea-head [hidden] { display: none; }
.idea-body { display: grid; gap: var(--s4); }
.idea-sec h3 { margin-bottom: var(--s3); }
.idea-sec .entry + .entry, .idea-sec .voice + .voice { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.story { margin-top: 4px; font-size: 1.0625rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.links { display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; margin-top: var(--s2); }
.links .link { min-height: var(--tap); display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.voice audio { display: block; width: 100%; margin: var(--s2) 0; }
.voice video { display: block; width: 100%; max-height: 60dvh; margin-top: var(--s2); border-radius: var(--r-md); background: #14110B; }
.idea-photos { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.idea-photos a { display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: #14110B; }
.idea-photos img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .storypage { max-width: 820px; margin: 0 auto; }
  .idea-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
}

/* ---- thumbnails ---- */
.tb-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.thumbpage [data-jobs] { display: grid; gap: var(--s6); }
.thumbpage [data-jobs][hidden], .tb-grid[hidden] { display: none; }
.tb-job, a.card.tb-job { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s2) var(--s2) var(--s3); }
.tb-job .vc-text { padding: 0 var(--s1); }
.tb-won .btn { margin-top: var(--s2); }
.tb-pic {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden;
  background: #14110B; color: #B8AE98;
}
.tb-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tb-pic img:not([hidden]) + .nocover { display: none; }
button.tb-pic { cursor: zoom-in; }
button.tb-pic[disabled] { cursor: default; }
.tb-num {
  position: absolute; left: 8px; top: 8px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 13px; background: rgba(20, 17, 11, .82); color: #fff; font-weight: 700; font-size: var(--t-small);
}
.tb-rounds { display: grid; gap: var(--s6); }
.tb-round .sechead { margin-bottom: var(--s2); }
.tb-rnote { margin-bottom: var(--s3); }
.tb-opts { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.tb-opt { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s2) var(--s2) var(--s3); }
.tb-opt > :not(.tb-pic) { margin-left: var(--s1); margin-right: var(--s1); }
.tb-opt h3 { margin-top: var(--s1); font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.tb-opt.final { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.tb-v { align-self: flex-start; }
.tb-opt .tb-note { width: auto; }
.tb-marks { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: auto; padding-top: var(--s2); }
.tb-marks .push { margin-left: auto; }
.tb-marks .btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.tb-marks .btn[data-mark="work"][aria-pressed="true"] { background: var(--brass-ink); border-color: var(--brass-ink); }
.tb-said { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); }
.tb-send { display: grid; gap: var(--s3); margin-top: var(--s4); }
.tb-send textarea { min-height: 72px; }
.tb-sendrow { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.tb-sendrow span { flex: 1; min-width: 0; }
.tb-zoom { border-radius: var(--r-md); overflow: hidden; background: #14110B; }
.tb-zoom img { display: block; width: 100%; }
.tb-zoom + h3 { margin-top: var(--s3); overflow-wrap: anywhere; }
.sheet .field + .small { margin-top: var(--s2); }
.tb-winacts { flex-wrap: wrap; }
.tb-winacts .btn { flex: 1 1 140px; }
.thumbpage .note { margin-bottom: var(--s4); }

/* ---- ranking: the side panel of videos that wait for a spot (Devin 2026-11-18) ---- */
.lu-cols { display: grid; gap: var(--s5); align-items: start; }
.lu-waitbox { padding: var(--s4); border: 1px solid var(--brass); }
.lu-waitbox[hidden] { display: none; }
.lu-waitbox h2 { font-size: 1.125rem; }
ol.lu-waitlist { margin: var(--s3) 0 0; padding: 0; list-style: none; }
.lu-wait { display: flex; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.lu-place { margin-top: var(--s2); gap: var(--s2); align-items: center; }
.lu-place input { width: 4.5em; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper);
  color: var(--ink); font: inherit; }
.lu-row.isnew .lu-n { color: var(--paper); background: var(--brass); border-radius: 50%; width: 1.7em; height: 1.7em; line-height: 1.7em; }
.lu-row [data-out][hidden] { display: none; }
@media (min-width: 1000px) {
  .lupage.haswait .lu-cols { grid-template-columns: minmax(0, 1fr) 340px; }
  .lu-waitbox { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; }
}

/* ---- the microphone on a text box (talk instead of typing) ---- */
.micbtn { flex: none; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); }
.micbtn.rec { background: #B3261E; border-color: #B3261E; color: #fff; animation: micpulse 1.2s ease-in-out infinite; }
@keyframes micpulse { 50% { opacity: .6; } }
