/* Workspace pages: Auto Edit / Music Beats / Replica, the studios, characters, usage. Dense, calm, one accent. */
.row { display: flex; align-items: center; } .row.gap { gap: 10px; } .row.wrap { flex-wrap: wrap; } .stack { display: flex; flex-direction: column; gap: 10px; } .grow { flex: 1 1 auto; min-width: 0; }
.ap { max-width: 1240px; }
.ap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.ap-head h1 { font-size: 26px; letter-spacing: -.02em; } .ap-head p { margin-top: 4px; max-width: 54ch; }
.ap-modes { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.ap-mode { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 9px; color: var(--muted); min-width: 150px; max-width: 220px; } .ap-mode:hover { background: var(--panel); text-decoration: none; color: var(--text); }
.ap-mode b { font-size: 13.5px; font-weight: 650; } .ap-mode.on { background: var(--accent-bg); color: var(--accent-2); box-shadow: inset 0 0 0 1px rgba(108, 140, 255, .45); }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ap-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ap-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ap-card > header h2 { font-size: 15px; } .ap-card > header p { margin-top: 2px; font-size: 13px; }
.ap-field { display: flex; flex-direction: column; gap: 6px; } .ap-field .lbl { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ap-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-summary { position: sticky; top: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ap-summary h2 { font-size: 15px; } .ap-summary .btn { width: 100%; justify-content: center; }
.ap-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; } .ap-sum li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ap-sum .k { color: var(--muted); } .ap-sum .v { text-align: right; overflow-wrap: anywhere; } .ap-sum li.todo .v { color: var(--warn); }
.ap-est b { font-size: 18px; font-variant-numeric: tabular-nums; }
.ap-refin { display: flex; flex-direction: column; gap: 10px; } .ap-linkrow { display: flex; gap: 8px; } .ap-linkrow .input { flex: 1 1 auto; min-width: 0; }
.ap-refcard { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); } .ap-refcard img { width: 56px; height: 76px; object-fit: cover; border-radius: 8px; }
.ap-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-opt { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; } .ap-opt:hover { border-color: var(--faint); }
.ap-opt.on { border-color: var(--accent); background: var(--accent-bg); }
.ap-run { max-width: 760px; display: flex; flex-direction: column; gap: 14px; } .ap-runhead { display: flex; align-items: center; gap: 12px; }
.ap .ae-log { max-height: 360px; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
@media (max-width: 980px) { .ap-grid { grid-template-columns: 1fr; } .ap-summary { position: static; } .ap-two, .ap-choice { grid-template-columns: 1fr; } .ap-mode { min-width: 0; flex: 1 1 140px; } }
.ap-heard, .ap-ask { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ap-ask { border-color: rgba(108, 140, 255, .45); }
.cp { display: flex; flex-direction: column; gap: 12px; } .cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.cp-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; } .cp-card:hover:not(:disabled) { border-color: var(--faint); } .cp-card.on { border-color: var(--accent); background: var(--accent-bg); } .cp-card:disabled { opacity: .55; cursor: wait; }
.cp-ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--panel-3); display: grid; place-items: center; color: var(--faint); overflow: hidden; margin-bottom: 4px; } .cp-ph img { width: 100%; height: 100%; object-fit: cover; }
.cp-card.add { border-style: dashed; }
.ph.big { width: 132px; height: 176px; display: block; } .stu-plan { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; } .stu-est { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 980px) { .stu-plan { grid-template-columns: 1fr; } }

.indet { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; position: relative; } .indet i { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 99px; background: var(--accent); animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { 0% { left: -34%; } 100% { left: 100%; } } @media (prefers-reduced-motion: reduce) { .indet i { animation: none; width: 100%; opacity: .5; } }

/* each studio's own page: what it is for, what it needs, what it gives; the photographs and song it works from */
.kit-hero { display: flex; gap: 14px; align-items: flex-start; border-color: var(--accent-bg, var(--line)); }
.kit-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg, var(--panel-3)); color: var(--accent); }
.kit-line { margin: 0 0 10px; font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.kit-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kit-col b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.kit-col ul { margin: 0; padding-left: 18px; color: var(--text); font-size: .88rem; line-height: 1.5; }
@media (max-width: 720px) { .kit-cols { grid-template-columns: 1fr; } .kit-hero { flex-direction: column; } }
.ref-thumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.ref-th { position: relative; width: 96px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--panel-3); border: 1px solid var(--line-2); padding: 0; }
.ref-thumbs.small .ref-th { width: 64px; height: 80px; }
.ref-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-n { position: absolute; left: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.ref-x { position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 11px; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; line-height: 1; }
.ref-th.pick { cursor: pointer; } .ref-th.pick.on { outline: 2px solid var(--accent); border-color: var(--accent); }
.ref-none { display: grid; place-items: center; height: 100%; font-size: .72rem; color: var(--muted); }
.ref-add { width: 96px; min-height: 120px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--bg-2); color: var(--muted); display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; cursor: pointer; font-size: .8rem; }
.ref-add:hover { border-color: var(--faint); color: var(--text); }
.warnc { color: var(--warn, #e0a030); }
.kit-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 8px 8px 0; font-size: 1rem; line-height: 1.5; }
.song-row { display: flex; gap: 12px; align-items: center; }

/* ---- the live view: tiles that uncover as they are made, a bar for the whole job, the editing tools ---- */
.lv { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.lv-head { display: flex; align-items: center; gap: 14px; }
.lv-ring { flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.lv.idle .lv-ring { opacity: .35; } .lv.idle .lv-ring .spinner { animation: none; }
.lv-headtext { flex: 1; min-width: 0; }
.lv-title { display: block; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-phase { color: var(--muted); font-size: .88rem; margin-top: 2px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.lv-phase > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-dots { display: inline-flex; gap: 3px; } .lv-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); animation: lvdot 1.2s infinite ease-in-out; }
.lv-dots i:nth-child(2) { animation-delay: .15s; } .lv-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lvdot { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.lv-big { text-align: right; flex: none; } .lv-pct { display: block; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lv-elapsed { font-size: .78rem; font-variant-numeric: tabular-nums; }
.lv-bar { height: 8px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.lv-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent))); transition: width .6s ease; background-size: 200% 100%; animation: lvflow 2.4s linear infinite; }
.lv.idle .lv-bar i { animation: none; }
@keyframes lvflow { from { background-position: 0 0; } to { background-position: 200% 0; } }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); gap: 10px; min-width: 0; }
.lv-tile, .lv-cell { min-width: 0; max-width: 100%; }
.lv-acts { min-width: 0; }
.lv-act { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- the shot board ---- */
.sb { display: grid; gap: 12px; min-width: 0; }
.sb-head { display: grid; gap: 2px; }
.sb-note { padding: 8px 12px; border-radius: 10px; background: var(--accent-bg, var(--panel-3)); font-size: .85rem; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); gap: 12px; min-width: 0; }
.sb-card { display: grid; gap: 6px; min-width: 0; }
.sb-frame { position: relative; width: 100%; padding-top: 155%; }
.sb-thumb { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--panel-3); cursor: pointer; display: grid; place-items: center; color: inherit; }
.lv-act svg { width: 15px; height: 15px; }
.sb-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-thumb:hover { border-color: var(--accent, #6aa9ff); }
.sb-n { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.sb-play { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; }
.sb-play svg { width: 16px; height: 16px; }
.sb-meta { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.sb-acts { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.sb-regen { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: inherit; cursor: pointer; }
.sb-regen:hover { border-color: var(--accent, #6aa9ff); }
.sb-regen svg { width: 13px; height: 13px; }
.sb-prev { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 10px; background: #000; }
.sb-out { display: grid; gap: 8px; margin-top: 8px; }
.lv-tile { position: relative; aspect-ratio: 9 / 14; border-radius: 12px; overflow: hidden; background: var(--panel-3); border: 1px solid var(--line-2); }
.lv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.lv-img.ready { opacity: 1; }
.lv-cover { position: absolute; inset: 0; background: var(--panel-3); transition: opacity .9s ease; }
.lv-shimmer { position: absolute; inset: 0; opacity: 0; overflow: hidden; pointer-events: none; contain: strict; }
/* the sweep is a transform of a pseudo-element (done by the compositor), not an animated background-position (a repaint of the tile every frame - 24 tiles repainting beside a playing video was the lag) */
.lv-shimmer::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.16) 50%, transparent 100%); transform: translate3d(-120%, 0, 0); animation: lvshim 1.6s linear infinite; will-change: transform; }
.lv-tile[data-state="drawing"] .lv-shimmer, .lv-tile[data-state="enhancing"] .lv-shimmer, .lv-tile[data-state="animating"] .lv-shimmer { opacity: 1; }
@keyframes lvshim { from { transform: translate3d(-120%, 0, 0); } to { transform: translate3d(260%, 0, 0); } }
/* while the player or any dialog is open nothing behind it animates or repaints: the video gets the whole machine */
body.modal-open .lv-shimmer::before, body.modal-open .lv-dots i, body.modal-open .lv-ring .spinner, body.modal-open .lv-chip, body.modal-open .indet i { animation: none !important; }
body.modal-open .lv-bar i { transition: none; }
.lv-n { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.lv-info { position: absolute; left: 0; right: 0; bottom: 6px; padding: 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); font-size: .74rem; }
.lv-lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lv-tp { font-variant-numeric: tabular-nums; }
.lv-tbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.35); } .lv-tbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s ease; }
.lv-tile[data-state="done"] { border-color: var(--ok, #3fb27f); } .lv-tile[data-state="failed"] { border-color: var(--bad, #d95c5c); }
.lv-tools { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.lv-toolhead { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.lv-toolgrp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .lv-toollab { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); width: 112px; flex: none; }
.lv-chip { padding: 2px 9px; border-radius: 999px; background: var(--accent-bg, var(--panel-3)); font-size: .78rem; animation: lvpop .4s ease both; }
@keyframes lvpop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.lv-recent { display: grid; gap: 8px; }
.lv-run { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; text-align: left; color: inherit; font: inherit; width: 100%; }
.lv-run:hover { border-color: var(--faint); } .lv-run .grow { flex: 1; min-width: 0; } .lv-run .grow b, .lv-run .grow span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inc-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--warn, #e0a030); border-radius: 12px; background: var(--panel); }
.inc-box ul { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .lv-bar i, .lv-shimmer, .lv-dots i, .lv-chip { animation: none; } }

/* Product Shoot and Real Estate Video (shootpages.js): numbered steps, style cards, room tiles, and a storyboard whose frames show the words where the render puts them */
.sp-step header h2 { display: flex; align-items: center; gap: 10px; }
.sp-num { flex: none; width: 26px; height: 26px; border-radius: 13px; background: var(--accent-bg); color: var(--accent-2); display: grid; place-items: center; font-size: .82rem; font-weight: 700; }
.sp-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sp-style { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; }
.sp-style span { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.sp-style:hover { border-color: var(--faint); } .sp-style.on { border-color: var(--accent); background: var(--accent-bg); }
.sp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sp-li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.sp-li .grow { min-width: 0; }
.sp-more summary { cursor: pointer; font-weight: 600; }
.sp-frame { position: relative; flex: none; border-radius: 10px; overflow: hidden; background: #1a1f2b; border: 1px solid var(--line-2); }
.sp-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); background: repeating-linear-gradient(45deg, #1b2130, #1b2130 8px, #1f2637 8px, #1f2637 16px); }
.sp-fwrap { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; flex: none; }
.sp-badge { padding: 1px 7px; border-radius: 6px; background: var(--panel-3); color: var(--muted); font-size: 10.5px; letter-spacing: .02em; }
.sp-txt { position: absolute; left: 50%; transform: translate(-50%, -50%); max-width: 92%; text-align: center; line-height: 1.15; text-shadow: 0 1px 2px rgba(0,0,0,.7); white-space: normal; overflow-wrap: anywhere; z-index: 1; }
.sp-txt.box { background: rgba(0,0,0,.45); padding: .15em .45em; border-radius: 3px; text-shadow: none; }
.sp-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.sp-cell { display: flex; flex-direction: column; gap: 4px; scroll-snap-align: start; max-width: 200px; }
.sp-cell b { font-size: .8rem; }
.sp-rooms { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.sp-room { width: 132px; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: grab; }
.sp-room-img { position: relative; height: 96px; border-radius: 8px; overflow: hidden; background: var(--panel-3); }
.sp-room-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-room select { padding: 4px 6px; font-size: .8rem; } .sp-room .row { justify-content: space-between; }
.sp-h { font-size: 15px; margin: 6px 0 0; }
.sp-board { display: flex; flex-direction: column; gap: 12px; }
.sp-shot { display: flex; gap: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); align-items: flex-start; }
.sp-shot-l { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sp-shot-l b { font-size: .85rem; max-width: 180px; }
.sp-shot-r { flex: 1 1 auto; min-width: 0; }
.sp-tline .input { flex: 1 1 auto; min-width: 0; }
.sp-role { flex: none; width: 104px; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 720px) {
  .sp-shot { flex-direction: column; } .sp-shot-l { align-items: center; width: 100%; }
  .sp-role { width: 76px; font-size: .68rem; }
  .sp-room { width: calc(50% - 5px); } .sp-styles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .sp-styles { grid-template-columns: 1fr; } }
/* the storyboard column is narrow beside the price panel on a laptop: each shot stacks its frame above its fields when its column is under 560 px */
.sp-board { container-type: inline-size; }
@container (max-width: 560px) {
  .sp-shot { flex-direction: column; } .sp-shot-l { flex-direction: row; align-items: flex-end; gap: 10px; width: 100%; }
  .sp-shot-r { width: 100%; }
}
@container (max-width: 360px) { .sp-tline { flex-wrap: wrap; } .sp-role { width: 100%; } }

/* per-clip actions under a tile, and the "watch it live" window */
.lv-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lv-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lv-act { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2, transparent); color: inherit; cursor: pointer; }
.lv-act[hidden] { display: none; }
.lv-act:hover { border-color: var(--accent, #6aa9ff); }
.lv-act:disabled { opacity: .5; cursor: default; }
.lw { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lw-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lw-state.s-running { color: var(--accent, #6aa9ff); } .lw-state.s-done { color: var(--ok, #3fb27f); } .lw-state.s-failed { color: var(--bad, #d95c5c); }
.lw-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } /* the browser picture is ONE full-width screen; the steps run underneath */
@media (min-width: 1500px) { .lw-cols { grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); } }
.lw-img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line-2); background: #000; cursor: zoom-in; }
.lw-full { position: fixed; inset: 0; z-index: 10000; background: #000; display: grid; place-items: center; cursor: zoom-out; } .lw-full img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lw-log { max-height: 40vh; overflow: auto; font-size: .8rem; display: flex; flex-direction: column; gap: 3px; }
.lw-ev { display: flex; gap: 8px; line-height: 1.35; overflow-wrap: anywhere; }
.lw-ev.l-error { color: var(--bad, #d95c5c); } .lw-ev.l-ok { color: var(--ok, #3fb27f); }
.lw-t { color: var(--muted, #8a93a6); flex: none; font-variant-numeric: tabular-nums; }

.lv-stop { margin-left: 8px; align-self: center; }
.btn.danger { background: var(--bad, #d95c5c); color: #fff; border-color: transparent; }

/* ---- Style recipe picker (Auto Edit) ---- */
.rp2 { display: flex; flex-direction: column; gap: 8px; }
.rp2 select { width: 100%; }
.rp2-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg-2); }
.rp2-card p { margin: 4px 0 6px; }
.rp2-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.rp2-sugg { display: flex; flex-direction: column; gap: 6px; }
.rp2-s { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.rp2-techs { display: flex; flex-direction: column; gap: 6px; }
.warn-text { color: #e8b84a; }
.lw-pause { border: 1px dashed var(--line-2); border-radius: 10px; padding: 22px 18px; text-align: center; background: var(--panel-2); display: flex; flex-direction: column; gap: 6px; align-items: center; } .lw-pause[hidden] { display: none; }
.lw-pause b { font-size: 15px; } .lw-pause-t { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--accent-2); } .lw-pause p { margin: 4px 0 0; max-width: 40ch; }

/* ---- re-edit chooser in the Auto Edit drawer ---- */
.ae-choice { display: grid; gap: 4px; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-2, var(--panel)); color: inherit; cursor: pointer; }
.ae-choice.on { border-color: var(--accent, #6aa9ff); box-shadow: 0 0 0 1px var(--accent, #6aa9ff) inset; }
.ae-choice:hover { border-color: var(--accent, #6aa9ff); }
.ae-choice b { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.ae-note { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--accent-bg, var(--panel-3)); font-size: .85rem; }
.ae-note svg { width: 16px; height: 16px; flex: none; }

/* ---- one card per project in "Your projects" ---- */
.rp { display: grid; gap: 4px; min-width: 0; }
.rp .lv-run { align-items: center; }
.rp-th { flex: none; width: 44px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--panel-3); display: grid; place-items: center; }
.rp-th img { width: 100%; height: 100%; object-fit: cover; }
.rp-hist { padding: 0 12px 6px 68px; }
.rp-old { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 8px; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.rp-old:hover { border-color: var(--accent, #6aa9ff); }

.gc-older { margin-top: 6px; } .gc-older summary { cursor: pointer; } .gc-old { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 8px; margin-top: 4px; border-radius: 8px; background: var(--panel-3); color: inherit; text-decoration: none; } .gc-old:hover { background: var(--panel-2, var(--panel-3)); }

/* wardrobe pictures, picture book tags, voice design */
.of-pics { display: flex; gap: 8px; align-items: flex-start; } .of-pics a { position: relative; display: block; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .bk-item { position: relative; }
.bk-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; } .bk-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.25); border-radius: 8px; } .bk-play .ic { width: 28px; height: 28px; }
.bk-tags { display: block; margin-top: 4px; font-size: .74rem; color: var(--muted, #8a93a6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; } .vd-sit { padding: 10px 12px; border-radius: 10px; background: var(--panel-3); display: flex; flex-direction: column; gap: 6px; }
.vd-audio { width: 100%; height: 34px; } .vd-line { margin: 0; } .vd-read { padding: 12px 14px; border-radius: 10px; background: var(--panel-3); line-height: 1.55; max-height: 220px; overflow: auto; } .vd-clock { font-variant-numeric: tabular-nums; }
.vd-need { display: flex; flex-direction: column; gap: 4px; } .vd-meter { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; } .vd-meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }

.sheet-big { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #000; } .sheet-big img { width: 100%; display: block; max-height: 460px; object-fit: contain; }
/* Motion graphics (motion.js) */
.mg-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.mg-tpl { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: inherit; cursor: pointer; }
.mg-tpl.on { border-color: var(--accent, #6d5efc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #6d5efc) 35%, transparent); }
.mg-preview { width: 100%; aspect-ratio: auto; background: #0001; border-radius: 10px; overflow: hidden; display: flex; justify-content: center; min-height: 120px; }
.mg-preview-img { display: block; max-width: 100%; max-height: 520px; object-fit: contain; }
.mg-preview.mg-stale { opacity: .5; }
.mg-scrub { width: 100%; }
.mg-colors { align-items: center; }
.mg-color { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mg-color input[type=color] { width: 44px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: none; }
.mg-list-row .input { flex: 1 1 0; min-width: 0; }
.mg-result { width: 100%; max-height: 360px; background: #000; border-radius: 8px; }
.mg-progress .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; } .mg-progress .bar i { display: block; height: 100%; background: var(--accent, #6d5efc); }
/* Export for platforms (delivery.js) */
.dlv { display: flex; flex-direction: column; gap: 10px; }
.dlv-plans, .dlv-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dlv-file { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.dlv .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; } .dlv .bar i { display: block; height: 100%; background: var(--accent, #6d5efc); }

/* Auto Edit, Cut to the beat and Copy a video as steps (17 Oct 2026): one column, the summary is the last step */
.ap-wz { max-width: 960px; } .ap-wz .ap-summary { position: static; }

/* the replica board: the reference's frame above the frame made for it, shot after shot in one strip (reads like the two-row comparison sheet) */
.sb-cmp .sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 14px; align-items: start; }
.sb-cmp .sb-card { display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
.sb-cmp .sb-card.busy { border-color: var(--accent, #6d5efc); }
.sb-cmp .sb-ref, .sb-cmp .sb-frame .sb-thumb { aspect-ratio: 9 / 16; padding-top: 0; height: auto; }
.sb-tools { display: grid; gap: 6px; }
.sb-wish { font-size: .82rem; min-height: 54px; resize: vertical; }
.sb-toolrow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sb-mark { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; margin-right: auto; cursor: pointer; }
.sb-mini { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-3); color: inherit; font-size: .74rem; cursor: pointer; }
.sb-mini:disabled { opacity: .5; cursor: default; } .sb-mini svg { width: 13px; height: 13px; }
.sb-working { display: grid; gap: 3px; }
.sb-batch { position: sticky; bottom: 8px; z-index: 2; margin-top: 10px; } .sb-batch > div { padding: 10px 12px; border-radius: 12px; background: var(--panel-3); border: 1px solid var(--line-2); }
.sb-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-height: 70vh; overflow: auto; }
.sb-hcard { display: grid; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); } .sb-hcard.on { border-color: var(--accent, #6d5efc); }
.sb-hthumb { padding: 0; border: 0; background: var(--panel-3); border-radius: 10px; overflow: hidden; aspect-ratio: 9 / 16; cursor: pointer; } .sb-hthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-hnote { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb-ref { position: relative; width: 100%; padding-top: 155%; border-radius: 12px; overflow: hidden; background: var(--panel-3); border: 1px solid var(--line-2); }
.sb-ref img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-tag { position: absolute; right: 6px; top: 6px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; color: #fff; }
.sb-tag.ref { background: rgba(100, 116, 139, .85); }
.sb-tag.made { background: rgba(124, 58, 237, .88); }
.sb-what { line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rc-pair figure { margin: 0; display: grid; gap: 4px; }
.rc-pair img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--panel-3); }

/* GPU job progress on each tile (24 Oct 2026): the stage line under the tile's name, and a real percentage bar */
.lv-cap-wrap { position: absolute; left: 0; right: 0; bottom: 5px; padding: 0 8px; pointer-events: none; }
.lv-cap { font-size: 11px; line-height: 1.25; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tile[data-state="queued"] .lv-cap, .lv-tile[data-state="gpuwait"] .lv-cap { opacity: .9; font-style: italic; }
.lv-tile[data-state="animating"] .lv-tbar i { background-image: linear-gradient(90deg, currentColor, currentColor); background-size: 28px 100%; animation: lv-flow 1.2s linear infinite; }
@keyframes lv-flow { from { background-position: 0 0; } to { background-position: 28px 0; } }

/* 24 Oct 2026: a tile's name, its percentage, its caption and its progress bar each have their own row (they were all pinned to the bottom edge and drew on top of each other) */
.lv-tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56%; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0)); pointer-events: none; }
.lv-info { z-index: 2; bottom: 26px; }
.lv-cap-wrap { z-index: 2; bottom: 10px; }
.lv-tbar { z-index: 2; }
.lv-info .lv-lab { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.lv-info .lv-tp { flex: 0 0 auto; }
.lv-cap { min-height: 1.25em; }

/* the presenter chosen for a Headshots video, kept at the top of every step */
.hs-who { padding: 8px 12px; position: sticky; top: 0; z-index: 4; }
.hs-photo, .hs-ph { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: none; background: var(--panel-3); display: grid; place-items: center; color: var(--muted); border: 2px solid var(--accent); }
.hs-name { font-size: 16px; }
.hs-new { padding: 8px 0 0; border-top: 1px dashed var(--line-2); margin-top: 4px; }

/* Film Maker production rail (filmprod.js) */
.fp { gap: 10px; display: flex; flex-direction: column; }
.fp-rail { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.fp-step { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--panel-2); color: var(--muted); font-size: 13px; }
.fp-step.now { color: var(--text); outline: 2px solid var(--accent); }
.fp-step.done { color: var(--text); }
.fp-dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: inherit; display: grid; place-items: center; cursor: pointer; font-weight: 700; }
.fp-step.done .fp-dot { background: var(--ok, #3fb27f); color: #06210f; border-color: transparent; }
.fp-step.now .fp-dot { background: var(--accent); color: #fff; border-color: transparent; }
.fp-dot .ic { width: 14px; height: 14px; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fp-frame { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); min-width: 0; }
.fp-frame img, .fp-empty { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 6px; background: #000; display: grid; place-items: center; color: var(--muted); }
.fp-n { position: absolute; top: 10px; left: 10px; z-index: 1; background: rgba(0,0,0,.75); color: #fff; border-radius: 4px; padding: 0 6px; font-weight: 700; font-size: 12px; }
.fp-sent { white-space: pre-wrap; max-height: 180px; overflow: auto; font-size: 11px; background: var(--panel); padding: 6px; border-radius: 6px; }
.fp-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .fp-diff { background: rgba(255, 200, 0, .14); }

/* (3 Nov 2026) how a trained character is made to speak: two routes, each with its price */
.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.route-card { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: inherit; cursor: pointer; }
.route-card:hover { border-color: var(--accent, #7c8cff); }
.route-card.on { border-color: var(--accent, #7c8cff); box-shadow: 0 0 0 1px var(--accent, #7c8cff) inset; }
.route-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.route-price { font-weight: 600; white-space: nowrap; color: var(--accent, #7c8cff); }
