/* Vortex Creative Center: the bettter.us design system (bettter-constructor theme, read 2026-10-22).
   Univers LT Pro is licensed and not redistributed here: it is used when installed, Archivo
   (variable width) stands in otherwise. Square corners, #F9F9F9 paper, black ink, white nav
   bars floating over the page, numbered section heads, dark green panels, yellow captions. */
:root {
  color-scheme: light;
  --bg: #f9f9f9; --paper: #fff; --ink: #000; --grey: #686868; --muted: #878787; --faint: rgba(0,0,0,.4);
  --line: #e2e2e2; --soft: #f1f1f1; --green: #203520; --green-2: #20351d; --pink: #ff4d67; --violet: #7470fa;
  --yellow: #f9fd00; --ok: #008f5a; --warn: #b86e00; --err: #b50000;
  --sans: "Univers LT Pro", "Archivo", Helvetica, Arial, sans-serif;
  --cn: "Univers LT Pro Cn", "Archivo", "Arial Narrow", Helvetica, sans-serif;
  --pad: clamp(16px, 2.2vw, 40px);
  --nav-h: 42px;
  --shadow: 0 6px 30px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.35 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: currentColor; text-decoration: none; transition: color .2s linear, background .2s linear; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, video, canvas, svg { display: block; max-width: 100%; }
code, pre, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
::selection { background: var(--yellow); color: #000; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- navigation: two white bars floating over the page ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; gap: 10px; padding: 20px var(--pad) 12px; background: linear-gradient(var(--bg) 70%, rgba(249,249,249,0)); }
.nav .bar { display: flex; align-items: stretch; background: var(--paper); height: var(--nav-h); box-shadow: var(--shadow); }
.seg { display: flex; }
.seg a { display: flex; align-items: center; padding: 0 16px; font-size: 12px; color: var(--muted); background: var(--soft); white-space: nowrap; }
.seg a.on { background: var(--paper); color: var(--ink); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.nav .main { flex: 1; min-width: 0; }
.nav .links { display: flex; align-items: center; gap: 4px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
.nav .links a { padding: 6px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.nav .links a.on, .nav .links a:hover { color: var(--ink); text-decoration: none; }
.nav .util { display: flex; align-items: center; gap: 14px; margin-left: auto; padding: 0 18px 0 14px; }
.nav .util a.u { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.credits { display: flex; gap: 12px; font-size: 11px; color: var(--grey); white-space: nowrap; }
.credits b { color: var(--ink); font-weight: 700; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); } .dot.live { background: var(--pink); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.me { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 16px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.brand i { width: 14px; height: 14px; background: var(--ink); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 22px; border: 0; border-radius: 0; background: var(--ink); color: var(--bg); font: 400 11px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; text-decoration: none; transition: all .2s linear; }
.btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn.white { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.green { background: var(--green); color: #fff; }
.btn.pink { background: var(--pink); color: #fff; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 10.5px; }
.btn:disabled, .btn.disabled { background: #d7d7d7; color: #fff; cursor: default; text-decoration: none; box-shadow: none; }
.nav .btn { height: var(--nav-h); }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- page + section heads (number, uppercase title, dash) ---------- */
main { padding: 18px var(--pad) 80px; max-width: 1600px; margin: 0 auto; }
.head { margin: 26px 0 26px; }
.head .num { font-size: 14px; margin-bottom: 10px; }
.head h1, .head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1; font-weight: 400; text-transform: uppercase; margin: 0; }
.head .dash { width: 14px; height: 1px; background: currentColor; margin-top: 20px; }
.head p.lead { max-width: 760px; font-size: 16px; color: var(--grey); margin: 16px 0 0; }
.head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
h2.sec { font-size: 25px; line-height: 1; font-weight: 400; text-transform: uppercase; margin: 46px 0 6px; }
h3 { font-size: 16px; line-height: 1.1; font-weight: 700; margin: 0 0 8px; }
.kick { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.muted { color: var(--grey); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.statement { font-family: var(--cn); font-stretch: 75%; font-weight: 700; text-transform: uppercase; text-align: justify; font-size: clamp(30px, 4.3vw, 64px); line-height: .96; letter-spacing: .01em; margin: 0; }

/* ---------- panels ---------- */
.dark { background: var(--green); color: var(--bg); }
.dark .muted, .dark .kick { color: rgba(249,249,249,.62); }
.band { padding: 34px var(--pad) 40px; margin: 0 calc(var(--pad) * -1); }
.panel { background: var(--paper); padding: 20px; }
.panel.line { box-shadow: inset 0 0 0 1px var(--line); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: minmax(0, 1fr); } }
.split > *, .grid > * { min-width: 0; }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- cards: number, bold title, dash, text at the bottom ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); padding: 20px; min-height: 300px; text-decoration: none; }
.panel .card, .card.on-white { background: var(--bg); }
.band .card, .dark .card { background: var(--bg); }
.card:hover { text-decoration: none; }
.card .n { font-size: 12px; display: flex; justify-content: space-between; gap: 10px; }
.card .t { font-size: 22px; line-height: 1.05; font-weight: 700; text-transform: uppercase; margin: 22px 0 0; }
.card .dash { width: 12px; height: 1px; background: currentColor; margin: 26px 0; }
.card .b { margin-top: auto; font-size: 13.5px; line-height: 1.3; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
a.card { transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.new { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--grey); justify-content: center; align-items: center; text-align: center; }
.band .card.new { box-shadow: inset 0 0 0 1px rgba(249,249,249,.3); color: rgba(249,249,249,.7); }

/* ---------- chips, tags, stats ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--ink); background: var(--paper); white-space: nowrap; line-height: 1.1; }
.chip.soft { border-color: var(--line); color: var(--grey); }
.chip.ok { border-color: #9fd3bd; background: #eaf6f0; color: #00603c; }
.chip.warn { border-color: #e5c48f; background: #fbf2e3; color: #7a4a00; }
.chip.err { border-color: #f0a8b5; background: #fde8ec; color: #8a1730; }
.chip.v { border-color: #b9b6fb; background: #efeeff; color: #3e38c9; }
.chip.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.key { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: 56px; line-height: .9; font-weight: 700; }
.stat span { font-size: 12.5px; color: var(--grey); }
.dark .stat span { color: rgba(249,249,249,.65); }

/* ---------- tables ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 400; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); padding: 10px 10px; border-bottom: 1px solid var(--ink); white-space: nowrap; background: var(--bg); }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr.hl td { background: #fffff0; }
table.t td.nowrap { white-space: nowrap; }
.tablewrap { overflow-x: auto; }

/* ---------- forms ---------- */
label.f { display: block; margin: 0 0 16px; }
label.f > span { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
label.f small { display: block; color: var(--grey); font-size: 11.5px; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 9px 0; font: 400 15px/1.3 var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
select { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 22px; }
textarea { min-height: 96px; resize: vertical; border: 1px solid var(--line); padding: 10px 12px; font-size: 13.5px; background: var(--paper); }
textarea.code { font: 12px/1.45 ui-monospace, Menlo, monospace; min-height: 520px; white-space: pre; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 12px; }
.err-box { background: #fde8ec; color: #8a1730; padding: 10px 12px; margin-bottom: 16px; font-size: 13px; }
.ok-box { background: #eaf6f0; color: #00603c; padding: 10px 12px; margin-bottom: 16px; font-size: 13px; }
.note-box { background: var(--soft); padding: 12px 14px; font-size: 13px; }
.warn-box { background: #fbf2e3; color: #6b4100; padding: 12px 14px; font-size: 13px; }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }
.auth .art { background: var(--green); color: var(--bg); padding: 48px var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.auth .art .statement { color: var(--bg); }
.auth .form { padding: 48px clamp(24px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; max-width: 560px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .art { min-height: 46vh; } }

/* ---------- harness structure strip ---------- */
.strip { display: flex; gap: 2px; height: 56px; margin: 8px 0 6px; }
.strip > div { position: relative; background: var(--ink); color: var(--bg); padding: 7px 8px; overflow: hidden; min-width: 0; }
.strip > div:nth-child(2n) { background: #2a2a2a; }
.strip > div.pay { background: var(--pink); }
.strip b { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip span { font-size: 10.5px; opacity: .7; }
.ruler { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--grey); }

.shot { display: grid; grid-template-columns: 54px minmax(0, 1fr) 260px; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.shot .id { font-size: 12px; } .shot .id b { display: block; font-size: 22px; line-height: 1; }
.shot .prompt { font-size: 13px; line-height: 1.4; background: var(--paper); padding: 10px 12px; margin-top: 8px; }
.shot .vo { font-size: 15px; margin-top: 8px; } .shot .vo::before { content: "VO  "; font-size: 10px; letter-spacing: .08em; color: var(--grey); }
.shot .side { font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
.shot .media { background: #000; aspect-ratio: 9 / 16; width: 100%; max-width: 170px; display: grid; place-items: center; color: #777; font-size: 11px; overflow: hidden; }
.shot .media video, .shot .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .shot { grid-template-columns: 40px 1fr; } .shot .side { grid-column: 2; } }

/* ---------- montage timeline ---------- */
.tl { background: #0d0d0d; color: #f9f9f9; padding: 16px 16px 12px; position: relative; user-select: none; }
.tl canvas { width: 100%; height: 330px; cursor: crosshair; }
.tl .bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 11px; color: #bbb; margin-bottom: 10px; }
.tl .bar b { color: #fff; }
.tl .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: #aaa; margin-top: 10px; }
.tl .legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.phone { aspect-ratio: 9 / 16; background: #000; position: relative; overflow: hidden; width: 100%; max-width: 330px; margin: 0 auto; }
.phone .safe { position: absolute; border: 1px dashed rgba(249,253,0,.45); pointer-events: none; }
.phone .slate { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; color: #fff; }
.phone .slate b { font-family: var(--cn); font-stretch: 75%; text-transform: uppercase; font-size: 30px; line-height: .95; }
.phone .slate span { font-size: 11px; opacity: .65; margin-top: 8px; }
.phone .cap { position: absolute; left: 8%; right: 13%; bottom: 27%; text-align: center; font-family: var(--cn); font-stretch: 75%; font-weight: 800; font-size: 25px; line-height: 1; text-transform: uppercase; color: rgba(255,255,255,.35); text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.phone .cap .on { color: var(--yellow); }
.phone .badge { position: absolute; top: 4.5%; left: 6%; font-size: 10px; font-weight: 700; color: #fff; border: 1px solid #fff; padding: 2px 5px; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.checks { display: flex; flex-direction: column; }
.checks div { display: grid; grid-template-columns: 18px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.checks div i { font-style: normal; font-weight: 700; }
.checks .ok i { color: var(--ok); } .checks .warn i { color: var(--warn); } .checks .bad i { color: var(--err); }
.checks small { display: block; color: var(--grey); font-size: 11.5px; margin-top: 2px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 18px; background: var(--soft); font-size: 12px; color: var(--grey); white-space: nowrap; }
.tabs a.on { background: var(--ink); color: var(--bg); }
.tabs a:hover { text-decoration: none; color: var(--ink); } .tabs a.on:hover { color: var(--bg); }

/* ---------- feed, lists ---------- */
.feed { display: flex; flex-direction: column; }
.feed div { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dark .feed div { border-color: rgba(249,249,249,.14); }
.feed time { font-size: 11px; color: var(--grey); white-space: nowrap; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--grey); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding-top: 2px; }
.kv dd { margin: 0; }
.empty { padding: 40px 20px; text-align: center; color: var(--grey); box-shadow: inset 0 0 0 1px var(--line); }
.bar-meter { height: 6px; background: var(--soft); } .bar-meter i { display: block; height: 100%; background: var(--ink); }

/* ---------- dialog ---------- */
dialog { border: 0; padding: 0; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 20px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog .in { padding: 26px; }
dialog h3 { font-size: 22px; font-weight: 400; text-transform: uppercase; margin-bottom: 14px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; font-size: 13px; z-index: 100; }
footer.f { padding: 30px var(--pad); color: var(--grey); font-size: 11px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin: 6px 0 26px; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; padding: 10px 12px 8px; gap: 6px; }
  .nav .bar { width: 100%; }
  .nav .bar:first-child .seg { margin-left: auto; }
  .nav .credits, .nav .me span { display: none; }
  .nav .util { padding: 0 8px; }
  .nav .bar.main .btn { padding: 0 12px; font-size: 10px; }
  .head h1 { font-size: 28px; overflow-wrap: anywhere; }
  .chip { white-space: normal; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabs a { padding: 12px 12px; }
  .shot { grid-template-columns: 1fr; } .shot .side { grid-column: auto; }
  .card { min-height: 220px; }
  .tl { padding: 12px 10px; margin: 0 calc(var(--pad) * -1); }
  .kv { grid-template-columns: 96px 1fr; }
  .auth .form { padding: 32px 20px; }
}

/* ---------- folds: big sections open and close ---------- */
details.fold { margin: 10px 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
details.fold > summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; user-select: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; color: var(--grey); }
details.fold[open] > summary::after { content: "–"; }
details.fold > summary:hover { background: var(--soft); }
details.fold .ft { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
details.fold .fn { font-size: 12px; color: var(--muted); }
details.fold > .fb { padding: 4px 18px 18px; }
details.fold details.fold { box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); }
details.fold details.fold > summary { padding: 10px 14px; }
details.fold details.fold .ft { font-size: 12.5px; }
.fthumb { width: 27px; height: 48px; object-fit: cover; background: #111; }
.foldbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 6px; }
details.more { display: inline; }
details.more > summary { display: inline; cursor: pointer; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more:not([open]) > summary::after { content: " more"; color: var(--violet); white-space: nowrap; }

/* ---------- reference frames ---------- */
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.th { display: inline-flex; flex-direction: column; flex: none; text-decoration: none; color: var(--grey); }
.th img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #1a1a1a; }
.th span { font-size: 10px; line-height: 1.3; margin-top: 2px; white-space: nowrap; }
.th:hover { text-decoration: none; outline: 2px solid var(--yellow); }
.film { display: flex; gap: 4px; overflow-x: auto; padding: 6px 0 10px; scrollbar-width: thin; }
.film.tight { gap: 2px; }
.thumbsrow { margin-top: 4px; height: auto; background: transparent; }
.thumbsrow > div { background: transparent !important; padding: 2px 0 0 !important; }
.refgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.refcard { display: flex; gap: 10px; align-items: flex-start; padding: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: 12.5px; line-height: 1.35; }
.refcard:hover { text-decoration: none; box-shadow: inset 0 0 0 2px var(--ink); }
.refcard img { width: 54px; height: 96px; object-fit: cover; flex: none; background: #1a1a1a; }
.refcard i { color: var(--grey); font-style: normal; }
.card.gene .thumbs { margin: 10px 0 4px; }
.card.gene .b { margin-top: 6px; }
.grid:has(> .card.gene) { align-items: start; }

/* ---------- production stages ---------- */
.stage { display: inline-block; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; }
.stage.todo { background: var(--soft); color: var(--grey); }
.stage.drafting { background: #fff4d6; color: #8a5a00; }
.stage.liked { background: #ecebff; color: #4b47c9; }
.stage.final { background: #e5f3ec; color: #00754a; }
.stagebar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0 0 16px; }
.stagebar > div { padding: 12px 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.stagebar b { display: block; font-size: 15px; margin: 2px 0; }
@media (max-width: 720px) { .stagebar { grid-template-columns: 1fr 1fr; } }

/* ---------- lightbox: frames open large in place ---------- */
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; gap: 12px; background: rgba(10, 12, 10, .92); padding: 24px; }
.lb.on { display: flex; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(92vw, 720px); }
.lb-media img, .lb-media video { display: block; max-height: 82vh; max-width: 100%; width: auto; background: #000; box-shadow: 0 10px 60px rgba(0,0,0,.6); }
.lb figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: center; color: #f1f1f1; font-size: 13px; margin-top: 12px; text-align: center; }
.lb-n { color: #aaa; }
.lb button { font: inherit; cursor: pointer; border: 0; }
.lb-play { background: var(--yellow); color: #000; padding: 7px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.lb-x { position: absolute; top: 14px; right: 18px; background: none; color: #fff; font-size: 34px; line-height: 1; }
.lb-p, .lb-nx { background: rgba(255,255,255,.08); color: #fff; font-size: 40px; width: 52px; height: 84px; flex: none; }
.lb-p:hover, .lb-nx:hover { background: rgba(255,255,255,.18); }
@media (max-width: 640px) { .lb { padding: 8px; gap: 4px; } .lb-p, .lb-nx { width: 34px; font-size: 28px; } }

/* ---------- one frame per shot under the structure strip ---------- */
.shotrow { display: flex; gap: 2px; margin-top: 6px; align-items: flex-start; }
.shotrow > div { min-width: 0; display: flex; align-items: flex-end; gap: 6px; }
.shotrow span { font-size: 10.5px; color: rgba(249,249,249,.65); white-space: nowrap; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 10px; }
.cat { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.cat h3 a { text-decoration: none; }
.cat h3 a:hover { text-decoration: underline; }
.cat h3 { margin: 6px 0; font-size: 16px; text-transform: uppercase; }
.cat .thumbs { margin: 8px 0; }
.gm td.on { background: var(--ink); color: #fff; text-align: center; }
.gm td.off { color: var(--line); text-align: center; }
.gm th.rot { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }

/* ---------- simplified DNA page: overview first, details on demand ---------- */
.hero2 { background: var(--green); color: var(--bg); padding: 22px 24px 18px; margin: 0 0 8px; }
.hero2 .one { font: 600 clamp(19px, 2.1vw, 26px)/1.25 var(--sans); margin: 0; max-width: 1040px; }
.hero2 .strip > div { min-height: 44px; }
h2.sec2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; font-size: 20px; font-weight: 700; text-transform: uppercase; margin: 30px 0 12px; }
h2.sec2 span { font-size: 12px; font-weight: 400; text-transform: none; color: var(--muted); }
.refgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.refcard { display: flex; gap: 12px; align-items: flex-start; padding: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.4; }
.refcard .th span { display: none; }
.refcard > span a { text-decoration: none; }
.refcard > span a:hover { text-decoration: underline; }
.refcard i { color: var(--grey); font-style: normal; }
.wd { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; margin-top: 4px; }
.wd.clothed { background: #e5f3ec; color: #00754a; }
.wd.revealing { background: #fff1d6; color: #8a5a00; }
.wd.half-naked { background: #ffe1e5; color: #b5002a; }
.refcard .wd + .tiny { display: block; margin-top: 3px; }
.genegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.gene2 { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; }
.gene2 .gh { display: flex; justify-content: space-between; gap: 10px; }
.gene2 .gh b { font-size: 14.5px; text-transform: uppercase; line-height: 1.2; }
.gene2 .thumbs { margin: 10px 0 8px; }
.gene2 p { font-size: 13.5px; line-height: 1.4; margin: 0; }
.gene2 details.more > summary::after, details.more:not([open]) > summary:empty::after { content: "more"; color: var(--violet); }
.stageflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2px; }
.stageflow > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.stageflow b { font-size: 14px; line-height: 1.25; }
.stageflow .id { font: 11px/1.3 ui-monospace, Menlo, Consolas, monospace; color: var(--grey); word-break: break-all; }
details.details-all { margin-top: 30px; box-shadow: inset 0 0 0 2px var(--ink); }
details.details-all > summary .ft { font-size: 17px; }
.cats .pf { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.cats .pf .th span { display: none; }
.cats .pf .wd { margin-top: 0; font-size: 9.5px; padding: 1px 5px; }
.cats .cat .thumbs { margin: 10px 0; }
.dnacard .posters { display: flex; gap: 4px; margin: 14px 0 4px; }
.dnacard .posters img { width: 48px; height: 85px; object-fit: cover; background: #1a1a1a; }

.cats .cat .thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; }
.cats .pf { min-width: 0; }
.cats .pf .th { width: 100% !important; }
.cats .pf .th img { width: 100%; height: auto; }
.cats .pf .wd { font-size: 8.5px; letter-spacing: .02em; padding: 1px 4px; white-space: nowrap; }
.stageflow .id { display: none; }
.cats .pf .wd { display: block; width: 100%; text-align: center; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }

/* ---------- formats: examples → DNA → recipe → videos ---------- */
.how, .path { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; counter-reset: none; }
.how li, .path li { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; position: relative; }
.how li b, .path li b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.how li span { display: block; font-size: 12.5px; color: var(--grey); margin-top: 4px; line-height: 1.4; }
.how li:not(:last-child)::after, .path li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); z-index: 1; background: var(--bg); font-size: 13px; line-height: 1; padding: 2px 0; }
.path li a { display: block; color: inherit; text-decoration: none; }
.path li span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.path li i { display: block; font-style: normal; font-size: 12.5px; margin-top: 6px; }
.path li.done { background: var(--green); color: var(--bg); box-shadow: none; }
.path li.done span { color: rgba(249,249,249,.7); }
.path li.off { opacity: .55; }
.path li:hover:not(.off) { box-shadow: inset 0 0 0 2px var(--ink); }
@media (max-width: 760px) { .how, .path { grid-template-columns: 1fr 1fr; } .how li::after, .path li::after { display: none; } }
.recipe { margin-bottom: 12px; }
.recipe .strip > div { min-height: 40px; }

/* the structure as a board: parts across, examples down, a frame where each part starts */
.board { overflow-x: auto; margin: 0; padding-bottom: 4px; }
.bt { border-collapse: separate; border-spacing: 4px 0; }
.bt th, .bt td { vertical-align: top; text-align: left; padding: 0; }
.bt thead th { background: var(--green); color: var(--bg); padding: 8px 10px; width: 112px; min-width: 112px; font-weight: 400; }
.bt thead th:first-child { background: none; width: auto; min-width: 0; }
.bt thead th b { display: block; font-size: 12px; text-transform: uppercase; line-height: 1.2; }
.bt thead th span { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.bt thead th em { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-style: normal; font-size: 11px; line-height: 1.3; opacity: .85; margin-top: 4px; }
.bt tbody th { font-weight: 400; font-size: 11.5px; padding: 10px 8px 0 0; white-space: nowrap; position: sticky; left: 0; background: var(--bg); z-index: 1; color: var(--grey); }
.bt tbody th b { display: block; font-size: 15px; color: var(--ink); }
.bt tbody th span { display: block; }
.bt td { padding-top: 8px; }
.bt td .th { display: block; margin: 0 auto; }
.bt td > span { display: block; text-align: center; font-size: 11px; color: var(--grey); margin-top: 3px; }
.bt td > i { display: flex; align-items: center; justify-content: center; text-align: center; width: 84px; height: 149px; margin: 0 auto; background: var(--soft); color: var(--muted); font-size: 11px; font-style: normal; padding: 8px; }

/* ---------- the assistant ---------- */
.chatwrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.chats { position: sticky; top: 90px; }
.chats .list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; max-height: 70vh; overflow: auto; }
.chats .list a { display: block; padding: 10px 12px; background: var(--paper); color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.chats .list a.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chats .list a b { display: block; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chats .list a span { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
.thread { max-width: 900px; }
.msgs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { padding: 12px 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.msg.user { background: var(--soft); box-shadow: none; margin-left: 10%; }
.msg.assistant { margin-right: 6%; }
.msg .who { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.msg .who time { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.msg .body { font-size: 15px; line-height: 1.5; }
.msg .body p { margin: 0 0 8px; } .msg .body p:last-child { margin-bottom: 0; }
.msg .body ul, .msg .body ol { margin: 0 0 8px; padding-left: 20px; }
.msg .body h4 { margin: 10px 0 6px; font-size: 14px; text-transform: uppercase; }
.msg .body pre { background: var(--soft); padding: 10px; overflow: auto; font-size: 12px; white-space: pre-wrap; }
.msg .body code { background: var(--soft); padding: 0 4px; font-size: 13px; }
.composer { background: var(--paper); box-shadow: var(--shadow); padding: 12px; position: sticky; bottom: 12px; }
.composer textarea { width: 100%; border: 0; resize: vertical; font: inherit; font-size: 15px; min-height: 70px; outline: none; background: transparent; }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.idea { border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 12px; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.idea:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chats, .thread, .msg { min-width: 0; } .msg .body { overflow-wrap: anywhere; }
@media (max-width: 860px) { .chatwrap { grid-template-columns: minmax(0, 1fr); } .chats { position: static; } .chats .list { max-height: 180px; } .msg.user { margin-left: 0; } .msg.assistant { margin-right: 0; } }
.msg .body a { text-decoration: underline; text-underline-offset: 2px; color: inherit; font-weight: 500; }
.chat-title { font-size: 22px; font-weight: 400; margin: 6px 0 4px; max-width: 1000px; }
