/* CINEOSIS LAB — black stage, luminous images, thin mono, red only for playhead + markers. */
:root {
  --bg: #000; --ink: #ebe6da; --dim: #c2bbad; --faint: #a8a196; --val: #ece6da; --rule: #1b1a18; --rule2: #2c2b28; --panel: #040404;
  --red: #ff3b2f; --warn: #d8c08a;
  --serif: "Fraunces", Georgia, serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --top: 48px; --fw: 304px; --live: 0px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body { font: 400 12px/1.45 var(--mono); -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); }
[hidden] { display: none !important; }
::selection { background: #3a3833; }
* { scrollbar-width: thin; scrollbar-color: #2a2926 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #2a2926; border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }

.ghost { background: none; border: 1px solid transparent; color: var(--dim); padding: 3px 8px; border-radius: 2px; font-size: 12px; line-height: 1.3; }
.ghost:hover { color: var(--ink); border-color: var(--rule2); }
.ghost.on { color: var(--ink); border-color: var(--ink); }
.ghost:disabled { opacity: .3; cursor: default; }
.seg { display: inline-flex; border: 1px solid var(--rule2); border-radius: 2px; overflow: hidden; vertical-align: middle; }
.seg button { background: none; border: 0; color: var(--dim); font-size: 11px; padding: 2px 7px; letter-spacing: .02em; }
.seg button + button { border-left: 1px solid var(--rule2); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: #000; }
.seg button:disabled { opacity: .3; cursor: default; }
.pending { color: var(--faint); font-style: italic; font-size: 11.5px; }
kbd { font: 10px var(--mono); border: 1px solid #36342f; border-bottom-width: 2px; padding: 0 4px; border-radius: 2px; color: var(--ink); }

/* sign chips — the only place domain colour appears */
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 16px; padding: 0 4px; border-radius: 2px;
  background: var(--c); color: #1a1712; font: 700 10px/1 var(--serif); letter-spacing: .01em; vertical-align: middle; margin-right: 3px; }
.chip.sm { min-width: 16px; height: 13px; font-size: 9px; padding: 0 3px; margin-right: 2px; }
.chip.big { min-width: 36px; height: 32px; font-size: 16px; font-weight: 800; }
.chip.ghostchip { background: transparent; color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.livebadge { display: inline-block; font: 500 10px/1.4 var(--mono); letter-spacing: .14em; border: 1px solid var(--ink); color: var(--ink); background: #000; padding: 0 4px; border-radius: 1px; vertical-align: middle; }

/* ---------------------------------------------------------------- top bar */
#top { position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 40; display: flex; align-items: center; gap: 16px;
  padding: 0 14px; background: #000; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.brand b { font: 800 15px/1 var(--serif); letter-spacing: .16em; }
.brand span { font-size: 11px; letter-spacing: .3em; color: var(--dim); }
#modes { display: flex; gap: 2px; }
#modes button { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--dim); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 7px 4px; white-space: nowrap; }
#modes button i { font-style: normal; font-size: 10px; color: var(--faint); margin-left: 4px; vertical-align: super; }
#modes button:hover { color: var(--ink); }
#modes button.on { color: var(--ink); border-bottom-color: var(--ink); }
#search { flex: 1 1 280px; max-width: 560px; min-width: 200px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--rule2); padding: 3px 0; }
#search:focus-within { border-bottom-color: var(--dim); }
#search .scope { display: inline-flex; gap: 0; }
#search .scope button { background: none; border: 0; color: var(--faint); font-size: 11px; padding: 1px 5px; letter-spacing: .04em; }
#search .scope button.on { color: #000; background: var(--ink); }
#q { flex: 1; min-width: 60px; background: transparent; border: 0; outline: 0; font-size: 12px; padding: 3px 0; }
#q::placeholder { color: var(--faint); }
#q::-webkit-search-cancel-button { filter: invert(.6); }
#qstat { font-size: 11px; color: var(--dim); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
#qstat.warn { color: var(--warn); }
#sortbox { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
#sortbox label { font-size: 11px; color: var(--faint); letter-spacing: .06em; display: flex; align-items: center; gap: 4px; }
select { background: #000; border: 1px solid var(--rule2); color: var(--ink); font-size: 12px; padding: 2px 4px; border-radius: 2px; }
#size { width: 84px; accent-color: var(--ink); }
#count { font-size: 12px; color: var(--dim); white-space: nowrap; margin-left: auto; }
#count b { color: var(--ink); font-weight: 500; }
.links { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.links a { font-size: 12px; color: var(--dim); text-decoration: none; letter-spacing: .06em; padding: 3px 6px; }
.links a:hover { color: var(--ink); }
#reload.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- facets */
#facets { position: fixed; top: var(--top); left: 0; bottom: 0; width: var(--fw); z-index: 30; overflow-y: auto; overflow-x: hidden;
  background: var(--panel); border-right: 1px solid var(--rule); padding: 10px 14px 60px; transition: transform .24s ease; }
body.nofacets #facets { transform: translateX(-100%); }
.fx-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .18em; color: var(--dim); }
.fx h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--val); margin: 20px 0 9px; }
.fx h3 em { font-style: normal; letter-spacing: 0; text-transform: none; color: var(--ink); font-size: 11.5px; }
.fx-note { margin-top: 7px; font-size: 11.5px; color: var(--faint); min-height: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.fx-note .ghost, .fx h3 .ghost { padding: 0 5px; font-size: 11px; }
.ptable { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); grid-template-rows: repeat(3, 21px); gap: 2px; }
.pt { position: relative; border: 0; border-radius: 2px; padding: 0; background: var(--c); color: #1a1712; font: 700 9px/1 var(--serif); opacity: .62; overflow: hidden; transition: opacity .12s; }
.pt span { position: relative; z-index: 1; }
.pt i { position: absolute; left: 0; bottom: 0; height: 2px; background: rgba(0,0,0,.5); }
.pt:hover { opacity: 1; }
.pt.zero { opacity: .14; }
.ptable.sel .pt { opacity: .24; }
.ptable.sel .pt.zero { opacity: .08; }
.ptable .pt.on { opacity: 1; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--ink); z-index: 2; }
.hist { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; height: 56px; align-items: end; touch-action: none; user-select: none; }
.hb { height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
.hb i { display: block; width: 100%; background: #6d6961; border-radius: 1px 1px 0 0; transition: height .2s, background .15s; }
.hb:hover i { background: var(--ink); }
.hist.sel .hb i { background: #2e2c29; }
.hist.sel .hb.on i { background: var(--ink); }
.hist-ax { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; font-size: 10px; color: var(--faint); text-align: center; margin-top: 3px; }
.huewrap canvas { display: block; width: 100%; height: 44px; cursor: crosshair; touch-action: none; }
.taglist { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.taglist button { background: none; border: 1px solid var(--rule2); color: var(--dim); font-size: 11.5px; padding: 1px 6px; border-radius: 2px; }
.taglist button i { font-style: normal; color: var(--faint); margin-left: 5px; font-size: 11px; }
.taglist button:hover { color: var(--ink); border-color: var(--dim); }
.taglist button.on { background: var(--ink); color: #000; border-color: var(--ink); }
.taglist button.on i { color: #444; }
.taglist button:disabled { opacity: .35; cursor: default; }
.fx-legend { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 11px; color: var(--faint); }
.fx-legend i { display: inline-block; width: 10px; height: 6px; margin-right: 4px; border-radius: 1px; }
.fx-legend p { margin: 8px 0 0; line-height: 1.5; }

/* ---------------------------------------------------------------- stage */
#stage { position: fixed; top: var(--top); left: var(--fw); right: 0; bottom: 0; overflow: hidden; transition: left .24s ease; }
body.nofacets #stage { left: 0; }
#boot { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--dim); font-size: 12px; line-height: 2; }
#boot code { color: var(--ink); }
.mode { position: absolute; inset: 0; }
body.haslive .mode { top: 34px; }
#livebar { position: absolute; top: 0; left: 0; right: 0; height: 34px; z-index: 8; display: flex; align-items: center; gap: 12px; padding: 0 18px;
  background: #050505; border-bottom: 1px solid var(--rule); font-size: 12px; white-space: nowrap; overflow: hidden; }
#livebar b { font: 400 13px var(--serif); }
#livebar span:not(.livebadge) { color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
#livebar .ghost:first-of-type { margin-left: auto; }
.hud { position: absolute; z-index: 5; }
.hud-tl { top: 12px; left: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; pointer-events: none; }
.hud-tl > * { pointer-events: auto; }
.hud-br { bottom: 14px; right: 16px; display: flex; gap: 4px; }
.hud-br .ghost { background: #000; border-color: var(--rule2); min-width: 28px; }
.hud-title { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.hud-note { font-size: 11.5px; color: var(--faint); }

/* ---------------------------------------------------------------- virtual grid (wall, strata) */
.vg-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.vg-canvas { position: relative; width: 100%; contain: layout; }
.tile, .stc { position: absolute; left: 0; top: 0; }
.vg-canvas.anim .tile, .vg-canvas.anim .stc { transition: transform .52s cubic-bezier(.2,.75,.12,1), opacity .38s ease; }
.tile.enter, .stc.enter, .tile.exit, .stc.exit { opacity: 0; }
.tile { height: var(--ih); background: #0b0b0a; overflow: hidden; cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .15s; user-select: none; -webkit-user-drag: none; }
.tile.broken img { visibility: hidden; }
.tile.broken::after { content: "no image"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 10.5px; }
.tile:hover { z-index: 3; box-shadow: 0 0 0 1px var(--ink), 0 10px 30px rgba(0,0,0,.8); }
.tile:hover img { filter: brightness(1.12); }
.tile .badges, .rc .badges { position: absolute; left: 3px; bottom: 3px; display: flex; gap: 0; align-items: center; pointer-events: none; }
.tile .mk { font-size: 11px; color: var(--ink); text-shadow: 0 0 3px #000; margin-left: 3px; }
.tile.live { box-shadow: inset 0 0 0 1px rgba(235,230,218,.55); }
.tile .livebadge { margin-right: 3px; }
.ghead { position: absolute; left: 20px; right: 20px; top: 0; height: 36px; display: flex; align-items: flex-end; gap: 8px; padding-bottom: 7px;
  border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.ghead b { font: 400 16px/1 var(--serif); color: var(--ink); }
.ghead em { font-style: normal; font-size: 11px; color: var(--faint); letter-spacing: .06em; }
.ghead .gc { margin-left: auto; font-size: 11px; color: var(--faint); }
.ghead .sw { display: inline-block; width: 14px; height: 10px; border-radius: 1px; }

/* ---------------------------------------------------------------- map */
.mapcv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.mapcv:active { cursor: grabbing; }

/* ---------------------------------------------------------------- ring */
.ring-stage { position: absolute; inset: 0; overflow: hidden; perspective-origin: 50% 42%; cursor: grab; touch-action: none; user-select: none; }
.ring-stage:active { cursor: grabbing; }
.ring-rot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.rc { position: absolute; left: 0; top: 0; background: #0b0b0a; box-shadow: 0 0 0 1px rgba(255,255,255,.07); backface-visibility: visible; }
.rc img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.rc:hover { box-shadow: 0 0 0 1px var(--ink); }
.rc.live { box-shadow: 0 0 0 1px rgba(235,230,218,.6); }

/* ---------------------------------------------------------------- strata */
.strata-hud { position: absolute; top: 10px; left: 20px; z-index: 5; }
.stc { cursor: pointer; }
.tun { position: relative; height: var(--ih); }
.lay { position: absolute; left: 0; bottom: 0; width: 74%; aspect-ratio: 4 / 3; background-color: #0b0b0a; background-repeat: no-repeat;
  background-size: cover; background-position: center; transform-origin: 100% 0;
  transform: translate(calc(var(--k) * 4.2%), calc(var(--k) * -6.2%)) scale(calc(1 - var(--k) * .055));
  opacity: calc(1 - var(--k) * .1); box-shadow: 0 0 0 1px rgba(255,255,255,.13), -6px 8px 18px rgba(0,0,0,.55);
  transition: transform .4s cubic-bezier(.2,.75,.12,1), opacity .4s; }
.stc.hot { z-index: 4; }
.stc.hot .lay { transform: translate(calc(var(--k) * 6.4%), calc(var(--k) * -8.8%)) scale(calc(1 - var(--k) * .07)); opacity: calc(1 - var(--k) * .075); }
.stc.hot .lay:last-child { box-shadow: 0 0 0 1px var(--ink), -6px 8px 18px rgba(0,0,0,.55); }
.stc .cap { height: 18px; display: flex; align-items: center; gap: 2px; font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; margin-top: 2px; }
.stc .cap span:last-child { overflow: hidden; text-overflow: ellipsis; margin-left: 3px; }
.stc:hover .cap { color: var(--ink); }

/* ---------------------------------------------------------------- cut-outs */
.cuts { position: absolute; inset: 0; display: grid; grid-template-columns: 250px 1fr; overflow: hidden; }
.tray { border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 0; background: var(--panel); }
.tray-head { padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 8px; }
.tray-list { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); grid-auto-rows: min-content; gap: 6px; padding: 8px 12px 30px; }
.ti { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #000; border: 1px solid #141413; cursor: grab; touch-action: none; user-select: none; }
.ti:hover { border-color: var(--dim); }
.ti img { max-width: 88%; max-height: 74%; object-fit: contain; pointer-events: none; }
.ti span { font-size: 10px; color: var(--faint); max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { grid-column: 1 / -1; color: var(--dim); font-size: 12px; line-height: 1.6; padding: 6px 2px; }
.empty b { color: var(--ink); font: 400 15px var(--serif); display: block; margin-bottom: 4px; }
.empty p { margin: 0 0 10px; }
.table { position: relative; background: #000; overflow: visible; z-index: 2; touch-action: none; }
.table-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #1e1d1b; pointer-events: none; }
.table-empty .plusmark { font: 200 150px/1 var(--serif); }
.table-empty p { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); margin: 8px 0 0; }
.table-tools { position: absolute; top: 12px; right: 14px; display: flex; gap: 4px; z-index: 2; }
.table-tools .ghost { background: #000; border-color: var(--rule2); }
.table-hint { position: absolute; left: 18px; bottom: 12px; right: 18px; font-size: 11px; color: var(--faint); pointer-events: none; }
.piece { position: absolute; transform: translate(-50%, -50%); cursor: grab; touch-action: none; user-select: none; }
.piece:active { cursor: grabbing; }
.piece img { width: 100%; display: block; pointer-events: none; filter: drop-shadow(0 10px 22px rgba(0,0,0,.7)); }
.piece.sel { outline: 1px dashed var(--ink); outline-offset: 5px; }
.piece .src { position: absolute; left: 0; top: calc(100% + 4px); white-space: nowrap; background: #000; border: 1px solid var(--rule2); color: var(--dim); font-size: 11px; padding: 1px 5px; opacity: 0; transition: opacity .15s; }
.piece:hover .src, .piece.sel .src { opacity: 1; }
.piece .src:hover { color: var(--ink); border-color: var(--ink); }
.piece.plus { font: 200 56px/1 var(--serif); color: var(--ink); text-align: center; width: auto; }

/* ---------------------------------------------------------------- tooltip, toast, about */
#tip { position: fixed; left: 0; top: 0; z-index: 200; max-width: 330px; padding: 8px 10px 9px; background: rgba(6,6,6,.95); border: 1px solid #2a2926;
  pointer-events: none; font-size: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
#tip .t-t { font: 400 14px/1.25 var(--serif); margin: 2px 0 3px; }
#tip .t-m { color: var(--dim); font-size: 11.5px; }
#tip .t-b { margin-top: 5px; } #tip .t-b:empty { display: none; }
#tip .t-f { color: var(--faint); font-size: 11px; }
#tip .t-n { font: italic 400 12.5px/1.4 var(--serif); color: #d8d3c7; margin-top: 6px; }
#tip .t-s { display: flex; gap: 10px; align-items: center; }
#tip .t-l { color: var(--ink); }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 210; background: #0d0d0c; border: 1px solid var(--rule2); padding: 7px 14px; font-size: 12px; }
#about { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.about-in { position: relative; max-width: 780px; max-height: 88vh; overflow: auto; background: #060606; border: 1px solid var(--rule2); padding: 26px 32px 22px; }
.about-x { position: absolute; top: 10px; right: 10px; }
.about-in h2 { font: 400 34px/1 var(--serif); margin: 0 0 10px; }
.about-in h3 { font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 22px 0 8px; }
.about-in .lede { font: 400 16px/1.5 var(--serif); color: #d8d3c7; margin: 0 0 18px; }
.about-in dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px 18px; margin: 0; }
.about-in dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.about-in dd { margin: 0; font: 400 14px/1.45 var(--serif); color: #cfcabe; }
.about-in .keys { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--dim); line-height: 1.9; }
.about-in .foot { margin: 18px 0 0; font-size: 12px; }

/* ---------------------------------------------------------------- reel */
#reel { position: fixed; inset: 0; z-index: 60; background: #000; }
body.reeling #facets, body.reeling #top { visibility: hidden; }
.reel-stage { position: absolute; inset: 0 0 92px 0; overflow: hidden; }
.rv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s ease; background: #000; }
.rv.on { opacity: 1; }
.card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 8vw; background: #000; z-index: 2; }
.card.in { animation: cardin .7s ease both; }
@keyframes cardin { from { opacity: 0; letter-spacing: .02em; } to { opacity: 1; } }
.c-sym { font: 800 min(30vh, 26vw)/.86 var(--serif); color: var(--c); letter-spacing: -.02em; }
.c-name { font: 400 clamp(22px, 3.2vw, 44px)/1.1 var(--serif); margin-top: 2vh; }
.c-img { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-top: 10px; }
.c-diff { font: italic 400 clamp(15px, 1.6vw, 22px)/1.45 var(--serif); color: #cfcabe; max-width: 860px; margin-top: 3.2vh; }
.lower { position: absolute; left: 5vw; bottom: 34px; max-width: min(760px, 90vw); z-index: 3; background: rgba(0,0,0,.66); padding: 12px 16px 12px; backdrop-filter: blur(4px); }
.l-row { display: flex; align-items: center; gap: 8px; }
.l-sign { font: 400 15px var(--serif); }
.l-conf { font-size: 12px; color: var(--dim); margin-left: auto; }
.l-note { font: 400 clamp(15px, 1.5vw, 21px)/1.35 var(--serif); margin: 6px 0 4px; }
.l-meta { font-size: 11.5px; color: var(--dim); }
.lower .rbar { max-width: 320px; }
.reel-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 16px; font-size: 12px; color: var(--dim);
  background: linear-gradient(#000c, #0000); transition: opacity .6s; }
.reel-top #reelMute { margin-left: auto; }
.reel-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; padding: 14px 18px 0; border-top: 1px solid var(--rule); background: #000; transition: opacity .6s; z-index: 5; }
.rail { position: relative; height: 14px; background: #0c0c0b; cursor: pointer; }
.rail i { position: absolute; top: 0; bottom: 0; width: 2px; opacity: .8; }
.rail-ph { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--red); z-index: 2; pointer-events: none; }
.reel-ctl { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.reel-ctl .big, .scrub-btns .big { font-size: 14px; min-width: 38px; border-color: var(--rule2); color: var(--ink); }
.reel-note { font-size: 11.5px; color: var(--faint); margin-left: auto; }
#reel.idle { cursor: none; }
#reel.idle .reel-bar, #reel.idle .reel-top { opacity: 0; }

/* reading bar (shared) */
.rbar { display: flex; height: 8px; background: #1a1918; border-radius: 1px; overflow: hidden; margin: 8px 0 6px; }
.rbar span { display: block; height: 100%; }
.rbar .hatch { background: repeating-linear-gradient(135deg, var(--c) 0 3px, transparent 3px 6px); }

/* ---------------------------------------------------------------- inspector */
#inspector { position: fixed; inset: 0; z-index: 80; background: #000; }
body.inspecting #tip { display: none; }
.ins-top { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--rule); }
.ins-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: baseline; gap: 10px; }
.ins-title b { font: 400 17px var(--serif); overflow: hidden; text-overflow: ellipsis; }
.ins-title span { font-size: 11.5px; color: var(--dim); }
.ins-title em { font-style: normal; font-size: 11px; color: var(--faint); }
.ins-body { position: absolute; top: 44px; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr) auto; }
.ins-stage { grid-column: 1; grid-row: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.frame { position: relative; }
.frame video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.cutlayer { position: absolute; inset: 0; pointer-events: none; }
.cutlayer.on { pointer-events: auto; }
.cutp { position: absolute; cursor: grab; touch-action: none; transform: translate(-1.2%, -2.2%) scale(1.035); transition: transform .3s; }
.cutp img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; filter: drop-shadow(0 16px 22px rgba(0,0,0,.85)) drop-shadow(0 0 1px rgba(255,255,255,.5)); }
.cutp span { position: absolute; left: 0; top: -15px; font-size: 10.5px; color: var(--ink); text-shadow: 0 0 3px #000; }
.cutp:hover { transform: translate(-1.8%, -3.2%) scale(1.06); }
.mline { position: absolute; top: 5%; bottom: 5%; right: 3%; width: 1px; background: var(--red); z-index: 3; display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.ml { display: flex; flex-direction: row-reverse; align-items: center; gap: 6px; transform: translateX(calc(-100% + 8px)); cursor: pointer; white-space: nowrap; font-size: 11px; color: #fff; text-shadow: 0 0 4px #000, 0 0 2px #000; }
.ml b { display: inline-grid; place-items: center; width: 16px; height: 16px; background: var(--red); color: #000; font-weight: 500; font-size: 11px; }
.ml em { font-style: normal; color: rgba(255,255,255,.55); font-size: 10.5px; }
.ml:hover span { text-decoration: underline; }
.ins-msg { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--warn); font-size: 12px; }
.ins-side { grid-column: 2; grid-row: 1 / span 2; overflow-y: auto; border-left: 1px solid var(--rule); background: var(--panel); }
.scrub { grid-column: 1; grid-row: 2; padding: 10px 20px 14px; border-top: 1px solid var(--rule); }
.scrub-read { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.tcbig { font: 300 clamp(28px, 3.8vw, 56px)/1 var(--mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.spd { font: 300 clamp(20px, 2.2vw, 34px)/1 var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.spd small { font-size: .5em; margin-left: 4px; }
.scrub-btns { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.scrub-btns [data-a="A"], .scrub-btns [data-a="B"], .scrub-btns [data-a="M"] { min-width: 26px; font-weight: 500; }
.tl { position: relative; height: 46px; margin: 22px 0 10px; background: #070707; cursor: ew-resize; touch-action: none; user-select: none; }
.tl-strip { position: absolute; inset: 0; background-size: 100% 100%; background-repeat: no-repeat; opacity: .42; }
.tl-strip.thumbonly { background-size: auto 100%; background-repeat: repeat-x; opacity: .22; }
.tl-ticks i { position: absolute; bottom: 0; width: 1px; height: 5px; background: #3c3a36; }
.tl-ticks i.maj { height: 11px; background: #6b6861; }
.tl-ab { position: absolute; top: 0; bottom: 0; background: rgba(255,59,47,.1); box-shadow: inset 1px 0 var(--red), inset -1px 0 var(--red); pointer-events: none; }
.tl-ab.loop { background: rgba(255,59,47,.2); }
.mk { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--red); cursor: pointer; }
.mk b { position: absolute; top: -17px; left: -7px; width: 15px; height: 15px; display: grid; place-items: center; background: var(--red); color: #000; font-size: 11px; font-weight: 500; }
.mk.mk-M { background: var(--ink); } .mk.mk-M b { background: var(--ink); }
.tl-ph { position: absolute; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; background: var(--red); pointer-events: none; }
.tl-ph::before { content: ""; position: absolute; top: 0; left: -4px; border: 5px solid transparent; border-top-color: var(--red); }
.save { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.save select { max-width: 220px; }
.save input { flex: 1 1 200px; background: #000; border: 1px solid var(--rule2); padding: 4px 8px; font-size: 11.5px; border-radius: 2px; outline: 0; }
.save input:focus { border-color: var(--dim); }
#insSave { background: none; border: 1px solid var(--ink); color: var(--ink); padding: 3px 10px; font-size: 12px; border-radius: 2px; }
#insSave:hover { background: var(--ink); color: #000; }
.ab-read { font-size: 11.5px; color: var(--faint); }
#insSaved { font-size: 11.5px; color: var(--dim); }
#insSaved.ok { color: var(--ink); } #insSaved.err { color: var(--warn); }
.sd-block { padding: 12px 16px 14px; border-bottom: 1px solid #111110; }
.sd-block h4 { margin: 0 0 10px; font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--val); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.sd-block h4 small { font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--faint); font-weight: 400; }
.arch { display: inline-block; font-size: 12px; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 64px 1fr; gap: 3px 10px; font-size: 12px; }
.kv span { color: var(--faint); } .kv b { font-weight: 400; }
.pal { display: flex; height: 26px; }
.pal i { flex: 1; }
.sbar { display: grid; grid-template-columns: 1fr 90px 26px; gap: 8px; align-items: center; font-size: 12px; margin: 3px 0; }
.sbar i { display: block; height: 3px; background: var(--dim); }
.sbar em { font-style: normal; color: var(--faint); text-align: right; font-size: 11px; }
.au { font-size: 12px; color: var(--ink); }
.rd + .rd { margin-top: 16px; }
.rd-h { display: flex; gap: 10px; align-items: center; }
.rd-h b { font: 400 16px/1.2 var(--serif); display: block; }
.rd-h span { font-size: 11.5px; color: var(--dim); }
.rd-n { font: 400 14px/1.45 var(--serif); margin: 4px 0; color: #e0dbcf; }
.rd-f { font-size: 11.5px; color: var(--dim); margin: 4px 0 0; line-height: 1.6; }
.rd-f i { font-family: var(--serif); font-size: 12.5px; color: #c9c4b8; }
.fd { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: baseline; font-size: 11.5px; margin: 4px 0; color: #cfcabe; }
.fd em { font-style: normal; color: var(--faint); }
.cutbtns { display: flex; gap: 4px; margin-bottom: 8px; }
.cutthumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.cutthumbs span { display: flex; flex-direction: column; align-items: center; background: #0a0a0a; padding: 4px; }
.cutthumbs img { height: 54px; }
.cutthumbs em { font-style: normal; font-size: 10.5px; color: var(--faint); }

/* ---------------------------------------------------------------- widths */
@media (min-width: 2000px) { :root { --fw: 330px; } body { font-size: 13px; } }
@media (max-width: 1560px) { #size { width: 56px; } #top { gap: 12px; } #qstat { max-width: 150px; } #search { flex-basis: 220px; } }
@media (max-width: 1280px) { #modes button i { display: none; } #top { gap: 10px; } }
@media (max-width: 1100px) { #sortbox .grp { display: none; } .brand span { display: none; } }
@media (max-width: 900px) {
  :root { --top: 86px; --fw: min(88vw, 320px); }
  #top { flex-wrap: wrap; height: var(--top); align-content: center; row-gap: 6px; padding: 4px 10px; gap: 10px; }
  #modes { order: 3; flex: 1 1 100%; overflow-x: auto; }
  #search { order: 4; flex: 1 1 60%; max-width: none; }
  #sortbox { order: 5; }
  #count { margin-left: 0; }
  #facets { box-shadow: 20px 0 40px rgba(0,0,0,.7); }
  #stage { left: 0 !important; }
  .ins-body { grid-template-columns: 1fr; grid-template-rows: 44vh auto auto; overflow-y: auto; }
  .ins-stage { grid-row: 1; }
  .scrub { grid-row: 2; padding: 8px 12px 12px; }
  .ins-side { grid-column: 1; grid-row: 3; border-left: 0; overflow: visible; }
  .scrub-btns { margin-left: 0; }
  .cuts { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; }
  .tray { border-right: 0; border-bottom: 1px solid var(--rule); }
  .about-in dl { grid-template-columns: 1fr; gap: 2px; } .about-in dd { margin-bottom: 10px; }
  .lower { left: 12px; right: 12px; bottom: 16px; }
}
@media (max-width: 600px) {
  #qstat, .links a { display: none; }
  #search { flex-basis: 100%; }
  #sortbox { display: none; }
  :root { --top: 112px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* rendered film overlay inside REEL */
.film { position: absolute; inset: 0; z-index: 8; background: #000; display: flex; align-items: center; justify-content: center; }
.film video { max-width: 100%; max-height: calc(100% - 60px); background: #000; }
#reelFilmX { position: absolute; top: 12px; right: 14px; }
.film-msg { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: var(--warn); font-size: 12px; }
.mk.mk-R { background: #fff; } .mk.mk-R b { background: #fff; }
.ins-title b { flex-shrink: 0; max-width: 62%; }
.ins-title span { overflow: hidden; text-overflow: ellipsis; }

/* ================================================================ round 2: legibility pass + new blocks */
/* labels ≥ #a8a196 / ≥11px; values #ece6da ≥13px; notes ≥14px serif; bars + swatches outlined */
body { font-size: 13px; }
.pending { color: var(--faint); font-size: 12px; }
.ghost { color: var(--dim); font-size: 12px; }
.seg button { color: var(--dim); font-size: 11.5px; padding: 3px 8px; }
#facets { padding: 12px 16px 60px; }
.fx-head { font-size: 11.5px; color: var(--val); }
.fx-note { color: var(--faint); font-size: 12px; line-height: 1.45; }
.fx-scope { display: flex; width: 100%; margin: -2px 0 10px; }
.fx-scope button { flex: 1; padding: 4px 4px; }
.pt { font-size: 10px; }
.hist-ax { font-size: 10px; color: var(--faint); }
.hb i { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.taglist button { color: var(--val); font-size: 12px; border-color: #4a4740; padding: 2px 7px; }
.taglist button i { color: var(--faint); font-size: 11px; }
.fx-legend { font-size: 11px; color: var(--faint); }
.fx-legend p { font-size: 11.5px; }
.hud-note, .table-hint, .reel-note, .ab-read, #insSaved, .ins-title span, .ins-title em { color: var(--faint); font-size: 12px; }
.ins-title span { font-size: 12px; }

/* inspector side panel */
.ins-body { grid-template-columns: minmax(0, 1fr) 420px; }
.ins-side { background: #070707; }
.sd-block { padding: 16px 18px 18px; border-bottom: 1px solid #26241f; }
.kv { grid-template-columns: 78px 1fr; gap: 5px 12px; font-size: 13px; }
.kv span { color: var(--faint); font-size: 11.5px; letter-spacing: .06em; align-self: center; }
.kv b { color: var(--val); font-weight: 400; font-size: 13px; }
.arch { font-size: 12.5px; color: var(--val); }
.pal { height: 28px; box-shadow: 0 0 0 1px #5a564e; }
.pal i + i { box-shadow: -1px 0 0 #000; }
.sbar { grid-template-columns: 1fr 110px 38px; font-size: 13px; color: var(--val); margin: 5px 0; }
.sbar i { display: block; height: 7px; background: #141412; box-shadow: inset 0 0 0 1px #5a564e; }
.sbar i b { display: block; height: 100%; background: var(--val); }
.sbar em { color: var(--faint); font-size: 12px; }
.au { font-size: 13px; color: var(--val); }
.rbar { height: 10px; background: #141412; box-shadow: 0 0 0 1px #5a564e; }
.rd-h b { font-size: 17px; color: var(--val); }
.rd-h span { font-size: 12px; color: var(--faint); display: block; margin-top: 2px; }
.rd-n { font-size: 15.5px; line-height: 1.5; color: var(--val); }
.rd-f { font-size: 12px; color: var(--faint); }
.rd-f i { font-size: 14px; color: #ddd7ca; }
.fd { font-size: 12.5px; color: var(--val); }
.fd em { color: var(--faint); }
.cutthumbs em { color: var(--faint); font-size: 11px; }
.hint { margin: 0 0 8px; font-size: 12px; color: var(--faint); }
#tip .t-m, #tip .t-f { color: var(--faint); font-size: 11.5px; }
#tip .t-p { font-size: 11px; color: var(--val); margin: 0 6px 0 1px; }
#tip { font-size: 12px; }

/* the 45 signs — mini periodic table with machine affinity heat */
.aff { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); grid-template-rows: repeat(3, 28px); gap: 2px; }
.ac { position: relative; padding: 0; border: 0; border-radius: 2px; background: #111110; box-shadow: inset 0 0 0 1px #3a3833; cursor: pointer;
  font: 700 10.5px/1 var(--serif); color: var(--val); overflow: visible; }
.ac > i { position: absolute; inset: 0; border-radius: 2px; background: var(--c); opacity: var(--op); }
.ac > span { position: relative; z-index: 1; }
.ac.lit { color: #16130f; }
.ac:hover { box-shadow: inset 0 0 0 1px var(--val); z-index: 3; }
.ac.rd { box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff; z-index: 2; }
.ac.alt { outline: 1.5px dashed #fff; outline-offset: 1px; z-index: 2; }
.ac em { position: absolute; top: -7px; right: -5px; z-index: 3; font: 500 9.5px/1 var(--mono); background: #fff; color: #000; padding: 1px 2px; border-radius: 1px; }
.ac u { position: absolute; left: 3px; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #000; z-index: 2; }
.aff-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 4px; font-size: 11px; color: var(--faint); }
.aff-key i { display: inline-block; width: 12px; height: 10px; margin-right: 5px; vertical-align: -1px; border-radius: 1px; }
.aff-key .k-rd { box-shadow: 0 0 0 2px #fff; }
.aff-key .k-alt { outline: 1.5px dashed #fff; }
.aff-key .k-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; vertical-align: 1px; }
.aff-key .k-heat { background: linear-gradient(90deg, #1a1916, #e7a37c); box-shadow: inset 0 0 0 1px #5a564e; width: 22px; }
.aff-read { min-height: 40px; font-size: 12.5px; color: var(--val); line-height: 1.6; padding: 6px 0 2px; border-top: 1px solid #26241f; margin-top: 6px; }
.aff-read b { font-weight: 500; }
.affblock h5 { margin: 12px 0 6px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.sug { padding: 8px 0; border-top: 1px solid #1d1c19; }
.sug-h { display: flex; align-items: center; gap: 8px; }
.sug-h b { font: 400 15px var(--serif); color: var(--val); flex: 1; }
.sug-h em { font-style: normal; font-size: 13px; color: var(--val); }
.sug-i { font-size: 11px; color: var(--faint); width: 12px; }
.sug p { margin: 4px 0 0 20px; font: 400 14px/1.45 var(--serif); color: #d9d3c6; }
.honest { margin: 10px 0 0; font: italic 400 13.5px/1.4 var(--serif); color: var(--faint); }

/* segments over time */
.seglist { display: flex; flex-direction: column; gap: 6px; }
.sg { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; padding: 6px; border: 1px solid #26241f; border-left: 3px solid var(--sc); cursor: pointer; background: #0a0a09; }
.sg:hover { border-color: var(--sc); }
.sg.lifted { background: #16150f; box-shadow: inset 0 0 0 1px var(--sc); }
.sg-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-t b { font: 400 14.5px/1.3 var(--serif); color: var(--val); }
.sg.reading .sg-t b { font-style: italic; }
.sg-t span { font-size: 11.5px; color: var(--faint); }
.spr { display: block; width: 100%; max-height: 76px; background-repeat: no-repeat; background-color: #000; background-image: none; box-shadow: inset 0 0 0 1px #2c2a26; }
.spr.still { display: flex; align-items: center; justify-content: center; height: 57px; }
.spr.still img { max-width: 100%; max-height: 100%; }
.seglayer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.segbox { position: absolute; border: 1px solid var(--sc); box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.segbox.reading { border-width: 2.5px; }
.segbox span { position: absolute; left: -2px; bottom: 100%; margin-bottom: 3px; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(0,0,0,.78); color: var(--sc); font: 400 12px/1.3 var(--mono); padding: 2px 6px; }
.segbox.reading span { font: italic 400 14px/1.3 var(--serif); color: #fff; }
.segbox.hl { border-width: 3px; box-shadow: 0 0 0 1px #000, 0 0 18px var(--sc); z-index: 3; }
.seglift { position: absolute; background-repeat: no-repeat; transform: translate(-1.5%, -3%) scale(1.05); filter: drop-shadow(0 18px 22px rgba(0,0,0,.9)) drop-shadow(0 0 1px rgba(255,255,255,.6)); }
.tl-seg { position: absolute; bottom: 0; height: 4px; background: #ebe6da; opacity: .7; pointer-events: none; }

/* cut-outs tray with tracked sprites */
.tray { background: #070707; }
.cuts { grid-template-columns: 290px 1fr; }
.tray-note { font-size: 12px; color: var(--faint); }
.tray-list { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.ti { aspect-ratio: auto; padding: 6px; gap: 5px; justify-content: flex-start; }
.ti .ti-im { width: 100%; height: 86px; display: flex; align-items: center; justify-content: center; }
.ti .ti-im img { max-width: 100%; max-height: 100%; }
.ti .ti-im .spr { width: auto; height: 100%; max-height: 86px; max-width: 100%; box-shadow: none; background-color: transparent; }
.ti span { font: 400 12.5px/1.3 var(--serif); color: var(--val); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; max-width: 100%; }
.ti.reading { border-color: #5a564e; }
.ti.reading span { font-style: italic; }
.piece .spr { box-shadow: none; background-color: transparent; max-height: none; filter: drop-shadow(0 10px 22px rgba(0,0,0,.7)); }
.piece .src { font-size: 11.5px; color: var(--val); }
@media (max-width: 900px) { .ins-body { grid-template-columns: 1fr; } .cuts { grid-template-columns: 1fr; } }
.fx-scope button { white-space: nowrap; font-size: 11.5px; }
.ptable { grid-template-rows: repeat(3, 24px); }
.pt { font-size: 10.5px; }
.ml span { font-size: 11px; }
.ml em { color: rgba(255,255,255,.85); font-size: 10.5px; }
/* round 3: server/static badge, credits */
.srv { font-size: 11px; letter-spacing: .06em; color: var(--faint); border: 1px solid #3a3833; border-radius: 2px; padding: 1px 6px; white-space: nowrap; }
#search .scope button.off { text-decoration: line-through; color: var(--faint); cursor: help; }
.about-p { font: 400 14px/1.5 var(--serif); color: #d9d3c6; margin: 0; }
.about-p code, .about-in code { font: 12px var(--mono); color: var(--val); }
.about-p .ghost { margin-left: 6px; }
.credits { margin: 0; padding-left: 18px; font: 400 14px/1.55 var(--serif); color: #d9d3c6; }
.credits a { color: var(--val); }
@media (max-width: 1100px) { .srv { display: none; } }
@media (max-width: 1700px) { #sortbox .size { display: none; } #search { flex-basis: 180px; min-width: 170px; } }
@media (max-width: 1440px) { #sortbox .grp { display: none; } }
.srv b { font-weight: 400; }
@media (max-width: 1600px) { .srv span { display: none; } #top { gap: 10px; } }
@media (max-width: 1440px) { .brand span { display: none; } #search { min-width: 150px; } #modes button { padding: 5px 5px 4px; letter-spacing: .06em; } }
@media (max-width: 1100px) { .srv { display: none; } #sortbox label:first-child { font-size: 0; } #modes button i { display: none; } }
@media (max-width: 1100px) and (min-width: 901px) { #search { min-width: 110px; flex-basis: 110px; } #search .scope button { padding: 1px 3px; } #modes button { letter-spacing: .02em; padding: 5px 4px 4px; } }
@media (max-width: 1000px) { .links a { display: none; } }

/* ================================================================ round 4: send + montage */
.ins-send { display: inline-flex; gap: 4px; margin-left: auto; }
.ghost.send { color: var(--val); border-color: #4a4740; }
.ghost.send:hover { border-color: var(--val); }
#sendPop { position: fixed; top: calc(var(--top) + 6px); right: 14px; z-index: 120; width: 300px; background: #070707; border: 1px solid #3a3833; padding: 14px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.7); }
#sendPop .sp-h { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--val); margin-bottom: 6px; }
#sendPop p { margin: 0 0 10px; font: 400 14px/1.45 var(--serif); color: #d9d3c6; }
#sendPop label { font-size: 12px; color: var(--faint); display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
#sendBtn { color: var(--val); border-color: #3a3833; }

.mont { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden; }
.mont-col { overflow-y: auto; padding: 20px 24px 60px; min-width: 0; }
.mont-col + .mont-col { border-left: 1px solid #26241f; background: #050505; }
.mont-h h2 { font: 400 26px/1.1 var(--serif); margin: 0 0 8px; color: var(--val); }
.mont-h p { font: 400 14.5px/1.5 var(--serif); color: #d9d3c6; margin: 0 0 14px; max-width: 70ch; }
.rc-card { border: 1px solid #2c2a26; background: #080808; padding: 14px 16px; margin-bottom: 12px; }
.rc-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rc-h b { font: 400 18px var(--serif); color: var(--val); margin-left: 6px; }
.rc-h .arr { color: var(--faint); margin: 0 2px; }
.rc-why { margin: 4px 0 10px; font: italic 400 14.5px/1.4 var(--serif); color: #d9d3c6; }
.rc-any { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rthumbs { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin-bottom: 10px; }
.rt { position: relative; width: 104px; aspect-ratio: 4 / 3; background: #111; cursor: grab; box-shadow: 0 0 0 1px #2c2a26; }
.rt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt .chip { position: absolute; left: 3px; bottom: 3px; }
.rt button { position: absolute; top: 2px; width: 20px; height: 20px; padding: 0; border: 0; background: rgba(0,0,0,.78); color: var(--val); font-size: 13px; line-height: 20px; opacity: 0; transition: opacity .12s; }
.rt:hover button { opacity: 1; }
.rt .rt-x { right: 2px; } .rt .rt-s { right: 24px; }
.rc-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rc-foot label { font-size: 12px; color: var(--faint); display: flex; gap: 6px; align-items: center; margin-right: auto; }
.ed { border: 1px solid #2c2a26; background: #080808; padding: 12px 14px; margin-bottom: 10px; }
.ed-h { display: flex; flex-direction: column; gap: 2px; }
.ed-h b { font: 400 17px var(--serif); color: var(--val); }
.ed-h span { font-size: 12px; color: var(--faint); }
.ed-signs { margin: 8px 0; min-height: 4px; }
.ed-strip { display: flex; gap: 2px; overflow: hidden; margin-bottom: 10px; }
.ed-strip img, .ed-strip i { width: 56px; height: 42px; object-fit: cover; flex: none; background: #151513; }
@media (max-width: 900px) { .mont { grid-template-columns: 1fr; overflow-y: auto; } .mont-col { overflow: visible; } .mont-col + .mont-col { border-left: 0; border-top: 1px solid #26241f; } }
@media (max-width: 1100px) { #sendBtn { font-size: 0; padding: 3px 6px; } #sendBtn::before { content: "send"; font-size: 12px; } } @media (max-width: 1000px) { #sortDir { display: none; } }

/* ================================================================ round 5: collections + WYGWYL */
.colbadge { display: inline-block; font: 500 10px/1.5 var(--mono); letter-spacing: .12em; color: #000; background: #e8e1d0; padding: 0 5px; border-radius: 1px; vertical-align: middle; margin-right: 6px; }
.colbadge.both { background: linear-gradient(90deg, #e8e1d0 50%, #cfd8e0 50%); }
.colbadge.c { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px #4a4740; }
#fxCol button i { font-style: normal; color: inherit; opacity: .75; margin-left: 3px; font-size: 10.5px; }
.gr { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; font: 500 11px/1 var(--mono); background: #ece6da; color: #000; border-radius: 1px; }
.gr.g-U { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px #5a564e; }
.wyblock h5, .wy-card h4 { margin: 12px 0 4px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.wy-p { margin: 0 0 6px; font: 400 14.5px/1.5 var(--serif); color: var(--val); }
.wy-gap { color: #eadcb8; }
.wy-beatlinks { display: flex; flex-wrap: wrap; gap: 4px; }
.wy-go { font-size: 12px; color: var(--val); border-color: #3a3833; text-align: left; }
.wy-chosen { margin: 8px 0; font-size: 12.5px; color: var(--val); }

.wyg { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.wy-top { padding: 12px 18px 8px; border-bottom: 1px solid #26241f; }
.wy-ribbon { position: relative; height: 92px; cursor: pointer; touch-action: none; user-select: none; }
.wy-chs { position: absolute; left: 0; right: 0; top: 0; height: 22px; }
.wy-ch { position: absolute; top: 0; height: 100%; border-left: 1px solid #5a564e; padding-left: 4px; overflow: hidden; white-space: nowrap; font-size: 10.5px; letter-spacing: .06em; color: var(--faint); }
.wy-ch:nth-child(odd) { background: #0c0c0b; }
.wy-beats { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; }
.wy-beat { position: absolute; top: 0; bottom: 0; background-color: #151513; background-size: cover; background-position: center; box-shadow: inset -1px 0 #000, inset 0 0 0 1px rgba(255,255,255,.06); filter: saturate(.85) brightness(.8); }
.wy-beat i { position: absolute; left: 2px; top: 2px; font-style: normal; font-size: 11px; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.wy-beat:hover { filter: none; z-index: 2; box-shadow: inset 0 0 0 1px var(--val); }
.wy-beat.on { filter: none; z-index: 3; box-shadow: inset 0 0 0 2px #fff; }
.wy-beat.m-black { background: #000; box-shadow: inset 0 0 0 1px #3a3833; }
.wy-ph { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--red); z-index: 5; pointer-events: none; }
.wy-main { display: grid; grid-template-columns: minmax(0, 1fr) 440px; min-height: 0; }
.wy-stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.wy-view { position: relative; margin: 14px 18px 0; background: #000; overflow: hidden; min-height: 0; }
.wy-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.wy-mock { position: absolute; inset: 0; overflow: hidden; }
.wm { position: absolute; background-size: cover; background-position: center; background-color: #0d0d0c; transition: opacity .25s linear; }
.wm.none { background: repeating-linear-gradient(135deg, #111 0 6px, #0a0a0a 6px 12px); }
.wm-full { inset: 0; }
.wm-hold { transition: transform .2s linear; }
.wm-l { left: 0; top: 0; bottom: 0; width: 50%; box-shadow: 1px 0 #000; }
.wm-r { right: 0; top: 0; bottom: 0; width: 50%; }
.wm-inset { right: 4%; bottom: 6%; width: 30%; height: 30%; box-shadow: 0 0 0 1px #ece6da, 0 10px 30px rgba(0,0,0,.7); }
.wm-over { opacity: 0; transition: none; }
.wm-mB { opacity: 0; }
.wm-black { position: absolute; inset: 0; display: grid; place-items: center; background: #000; font: italic 400 22px var(--serif); color: var(--faint); }
.wm-cap { position: absolute; left: 14px; bottom: 12px; background: rgba(0,0,0,.66); padding: 5px 10px; font: 400 15px var(--serif); color: var(--val); }
.wm-mode { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.wy-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px 14px; }
.wy-ctl .big { font-size: 14px; min-width: 38px; border-color: var(--rule2); color: var(--val); }
.wy-tc { font: 300 22px var(--mono); color: var(--val); font-variant-numeric: tabular-nums; margin: 0 6px; }
.wy-src { font-size: 12px; color: var(--faint); }
.wy-links { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.wy-links a.ghost { text-decoration: none; }
.wy-card { overflow-y: auto; border-left: 1px solid #26241f; background: #070707; }
.wy-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.wy-h b { font: 400 21px/1.2 var(--serif); color: var(--val); }
.wy-n { font: 500 12px var(--mono); color: var(--faint); }
.wy-codes { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 12px 0 4px; }
.wy-codes > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.wy-code { background: none; border: 1px solid #3a3833; color: var(--val); font-size: 12px; padding: 2px 6px 2px 2px; border-radius: 2px; }
.wy-code:hover { border-color: var(--val); }
.wy-ab { display: grid; grid-template-columns: 18px 120px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid #1d1c19; cursor: pointer; }
.wy-ab em { font: 500 13px var(--mono); font-style: normal; color: var(--val); }
.wy-ab img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; background: #111; }
.wy-ab b { font: 400 14.5px/1.3 var(--serif); color: var(--val); display: block; }
.wy-ab span { font-size: 11.5px; color: var(--faint); }
.wy-ab p { margin: 4px 0 0; font: 400 13.5px/1.4 var(--serif); color: #d9d3c6; }
.wy-ab .wy-pick { color: #fff; }
.wy-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.wy-cand { position: relative; background: #0b0b0a; border: 1px solid #26241f; cursor: pointer; }
.wy-cand:hover { border-color: var(--val); }
.wy-cand.isA, .wy-cand.isB { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.wy-cand img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.wy-cand .gr { position: absolute; top: 4px; left: 4px; }
.wy-cand p { margin: 4px 6px 2px; font: 400 12.5px/1.35 var(--serif); color: #d9d3c6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wy-use { display: flex; gap: 2px; padding: 2px 4px 6px; }
.wy-use .ghost { font-size: 11px; padding: 1px 5px; border-color: #3a3833; }
@media (max-width: 1100px) { .wy-main { grid-template-columns: 1fr; overflow-y: auto; } .wy-stage { min-height: 60vh; } .wy-card { border-left: 0; border-top: 1px solid #26241f; overflow: visible; } }
#fxCol button { display: flex; flex-direction: column; align-items: center; line-height: 1.25; padding: 3px 2px; }
#fxCol button i { margin: 0; }
@media (max-width: 1800px) { #modes button i { display: none; } #modes button { letter-spacing: .06em; padding: 5px 5px 4px; } }
@media (max-width: 1500px) { #modes button { letter-spacing: .02em; padding: 5px 4px 4px; font-size: 11px; } .brand span { display: none; } #top { gap: 8px; } }
@media (max-width: 1350px) { #sendBtn { font-size: 0; padding: 3px 6px; } #sendBtn::before { content: "send"; font-size: 12px; } #sortbox label:first-child { font-size: 0; } }

/* round 6: cut selector, moving footage first */
.wy-cuts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.wy-cuts-l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-right: 2px; }
.wy-cutb { background: none; border: 1px solid #3a3833; color: var(--dim); font-size: 12px; padding: 3px 9px; border-radius: 2px; }
.wy-cutb:hover { color: var(--val); border-color: var(--val); }
.wy-cutb.on { background: var(--val); color: #000; border-color: var(--val); }
.wy-cutb em { font-style: normal; font-size: 10.5px; opacity: .75; }
.wy-idea { font: italic 400 14px/1.35 var(--serif); color: #d9d3c6; flex: 1 1 280px; min-width: 0; }
.wy-keys { font-size: 11px; color: var(--faint); }
.wy-fallback { position: absolute; inset: 0; overflow: hidden; }
.wy-src b { font-weight: 400; color: var(--val); }
.wy-src b.warn { color: var(--warn); }
.wy-patch { filter: saturate(.9) brightness(.85); }
.wy-patch.empty { background: repeating-linear-gradient(135deg, #151513 0 4px, #0b0b0a 4px 8px); }
.wy-line { margin: 0 0 8px; font: italic 400 17px/1.45 var(--serif); color: #fff; }

/* round 7: the four cuts as a synced grid */
.wy-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: #000; }
.wy-grid[data-n="2"] { grid-template-rows: 1fr; }
.wg-cell { position: relative; background: #050505; cursor: pointer; overflow: hidden; min-width: 0; min-height: 0; }
.wg-cell video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; }
.wg-l { position: absolute; left: 8px; top: 6px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.6); padding: 1px 6px; pointer-events: none; }
.wg-cell.focus { box-shadow: inset 0 0 0 2px var(--val); }
.wg-cell.focus .wg-l { background: var(--val); color: #000; }
.wg-cell.focus .wg-l::after { content: " · sound"; }
.wg-cell:not(.focus):hover { box-shadow: inset 0 0 0 1px #6b665d; }
.wy-cutb.focus { border-color: var(--val); color: var(--val); }
.wy-gridb { margin-left: 8px; }
@media (max-width: 700px) { .wg-l { font-size: 10px; left: 4px; top: 3px; padding: 0 4px; } .wy-view { min-height: 56vw; } }

/* round 8: first-visit guide, status line with undo, captioned pending tiles, visible key numbers */
.links { margin-left: auto; }
@media (min-width: 1101px) { #modes button i { display: inline; margin-left: 2px; font-size: 9px; } }
#stage { --st: 30px; }
body[data-mode="wyg"] #stage { --st: 0px; }
body[data-mode="wyg"] #status { display: none; }
.mode { top: var(--st); }
body.haslive .mode { top: calc(var(--st) + 34px); }
#livebar { top: var(--st); }
#status { position: absolute; top: 0; left: 0; right: 0; height: var(--st); z-index: 9; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: #030303; border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; }
#status .st-n b { color: var(--ink); font-weight: 500; }
#status .st-f { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
#status .st-f::-webkit-scrollbar { display: none; }
#status .st-l { color: var(--faint); margin-right: 2px; }
#status .st-h { color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.st-x { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid var(--rule2); border-radius: 2px; color: var(--ink); font-size: 11.5px; padding: 1px 6px; white-space: nowrap; }
.st-x .chip { margin-right: 0; }
.st-x i { font-style: normal; color: var(--faint); font-size: 10px; }
.st-x:hover { border-color: var(--ink); }
.st-x:hover i { color: var(--ink); }
.st-lnk { background: none; border: 0; padding: 0; color: var(--ink); font-size: 12px; text-decoration: underline; text-decoration-color: #5a574f; text-underline-offset: 3px; }
.st-lnk:hover { text-decoration-color: var(--ink); }
.st-reset { flex: none; margin-left: 4px; }
.fx-head em { font-style: normal; letter-spacing: 0; font-size: 10.5px; color: var(--faint); }

#guide { position: absolute; top: calc(var(--st) + 14px); left: 16px; z-index: 12; width: 360px; max-width: calc(100% - 32px);
  background: #080807; border: 1px solid #4a4740; box-shadow: 0 18px 50px rgba(0,0,0,.85); padding: 14px 16px 12px; font-size: 12px; color: var(--dim); }
.gd-h { font: 400 20px/1.1 var(--serif); color: var(--ink); margin-bottom: 10px; }
.gd-h em { font: 400 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-left: 8px; font-style: normal; }
#guide ol { margin: 0; padding: 0; list-style: none; counter-reset: gd; display: flex; flex-direction: column; gap: 9px; }
#guide li { counter-increment: gd; position: relative; padding-left: 28px; line-height: 1.5; }
#guide li::before { content: counter(gd); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border: 1px solid #5a574f; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; color: var(--ink); }
#guide li.done::before { content: "✓"; background: var(--ink); color: #000; border-color: var(--ink); }
#guide li.done { color: var(--faint); }
#guide li b { color: var(--ink); font-weight: 500; }
#guide li span { color: var(--faint); }
.gd-f { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gd-f span { color: var(--faint); font-size: 11px; }
.gd-go { background: var(--ink); color: #000; border: 0; border-radius: 2px; padding: 5px 18px; font-size: 12px; letter-spacing: .08em; }
.gd-go:hover { background: #fff; }
.gd-go:focus-visible, .st-x:focus-visible, .st-lnk:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

.tile img { position: relative; z-index: 1; }
.tile .badges { z-index: 2; }
.tile .tcap { position: absolute; inset: 0; z-index: 0; padding: 6px 7px; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
  font-size: 10.5px; line-height: 1.3; color: var(--faint); pointer-events: none; }
.tile .tcap em { font-style: normal; color: #7d786e; }
.tile.loaded .tcap { visibility: hidden; }
.tile.broken::after { content: none; }
.tile.broken .tcap::after { content: "no thumbnail"; margin-top: auto; color: #6f6a61; font-size: 10px; }

.about-steps { margin: 0; padding-left: 20px; font: 400 14px/1.55 var(--serif); color: #d9d3c6; }
.wy-page { margin-left: auto; text-decoration: none; color: var(--val); border-color: #5a574f; }
@media (max-width: 600px) { #status { padding: 0 10px; font-size: 11px; } #guide { left: 12px; max-width: calc(100% - 24px); top: calc(var(--st) + 10px); } }
.tile .tcap b { font-weight: 400; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body[data-mode="wyg"] #facets { transform: translateX(-100%); visibility: hidden; }
body[data-mode="wyg"] #stage { left: 0; }
body[data-mode="wyg"] #facetBtn, body[data-mode="wyg"] #sortbox, body[data-mode="wyg"] #search { visibility: hidden; }

/* ---- the inspector as one screen: what was read and found (left) · the shot (centre) · what the machines propose (right) ---- */
.ins-left { overflow-y: auto; background: #070707; border-right: 1px solid var(--rule); }
.sees-t { font: italic 400 16px/1.4 var(--serif); color: var(--val); margin: 0; }
.sees { background: #0d0c0a; }
@media (min-width: 1250px) {
  .ins-body { grid-template-columns: 340px minmax(0, 1fr) 390px; grid-template-rows: minmax(0, 1fr) auto; }
  .ins-left { grid-column: 1; grid-row: 1 / span 2; }
  .ins-stage { grid-column: 2; grid-row: 1; }
  .scrub { grid-column: 2; grid-row: 2; }
  .ins-side { grid-column: 3; grid-row: 1 / span 2; }
}
@media (min-width: 900px) and (max-width: 1249px) {
  .ins-body { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .ins-stage { grid-column: 1; grid-row: 1 / span 2; }
  .scrub { grid-column: 1; grid-row: 3; }
  .ins-left { grid-column: 2; grid-row: 1; border-right: 0; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .ins-side { grid-column: 2; grid-row: 2 / span 2; }
}
@media (max-width: 899px) { .ins-left { grid-column: 1; grid-row: 3; border: 0; overflow: visible; } .ins-side { grid-row: 4; } }
/* dense: every block earns its height */
@media (min-width: 900px) {
  .ins-left .sd-block, .ins-side .sd-block { padding: 9px 14px 10px; }
  .ins-left .sd-block h4, .ins-side .sd-block h4 { margin-bottom: 6px; font-size: 10.5px; }
  .ins-left .rd-n { font-size: 14px; line-height: 1.38; }
  .ins-left .rd-h b { font-size: 15px; }
  .ins-left .kv { grid-template-columns: 64px 1fr; gap: 2px 10px; font-size: 12px; }
  .ins-left .kv b { font-size: 12px; } .ins-left .kv span { font-size: 10.5px; }
  .ins-left .sbar { margin: 2px 0; font-size: 12px; } .ins-left .sbar i { height: 5px; }
  .ins-left .pal { margin-top: 8px; height: 14px; }
  .ins-left .arch { font-size: 11px; }
  .ins-side .sug p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.35; margin: 2px 0 0; }
  .ins-side .sug { padding: 6px 0; }
  .ins-side .honest { font-size: 11px; margin: 4px 0 0; }
}
@media (min-width: 900px) {
  .ins-side .sug p:hover { -webkit-line-clamp: 6; }
  .ins-side .honest, .ins-side .aff-read:empty { display: none; }
  .ins-side .aff-key { font-size: 10px; line-height: 1.4; margin: 4px 0; }
  .ins-side .sug-h { font-size: 13px; }
}
@media (min-width: 900px) {
  .ins-side .seglist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ins-side .seglist .sg { display: flex; flex-direction: column; gap: 3px; padding: 4px; margin: 0; }
  .ins-side .seglist .sg > :first-child { width: 100% !important; height: 46px !important; }
  .ins-side .seglist .sg-t b { font-size: 11.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ins-side .seglist .sg-t span { font-size: 9.5px; line-height: 1.25; }
  .ins-side .seglist .sg-t span + span { display: none; }
  .ins-side .hint { display: none; }
  .ins-side .cutbtns { margin-bottom: 6px; }
}
@media (min-width: 900px) {
  .ins-left .fd:nth-of-type(n+4) { display: none; }
  .ins-left .rd-n { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .ins-left .rd-n:hover { -webkit-line-clamp: 12; }
  .ins-left .rd + .rd { margin-top: 8px; }
}
@media (min-width: 900px) {
  .ins-left .kv { grid-template-columns: 52px minmax(0,1fr) 52px minmax(0,1fr); }
  .ins-left .kv b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ins-side .seglist { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ins-side .seglist .sg > :first-child { height: 38px !important; }
}

/* ---- shots playing where they sit on the map ---- */
.mapplay { position: absolute; z-index: 6; border: 2px solid #f2c14e; border-radius: 3px; background: #000; box-shadow: 0 6px 24px rgba(0,0,0,.7); pointer-events: none; transition: border-color .3s; }
.mapplay video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mapplay.seed { border-color: #fff; border-width: 3px; z-index: 7; }
.mapplay.loud { border-color: #ff7a45; border-width: 3px; z-index: 8; box-shadow: 0 0 0 4px rgba(255,122,69,.35), 0 6px 24px rgba(0,0,0,.7); }
.mapplay .mp-l { position: absolute; left: 0; right: 0; top: 100%; margin-top: 3px; font: 600 11px/1.25 "IBM Plex Mono", monospace; color: #0b0a09; background: #f2c14e; padding: 3px 6px; border-radius: 2px; white-space: normal; }
.mapplay.loud .mp-l { background: #ff7a45; }
.mapplay.seed .mp-l { background: #fff; }
#mapKind button.on { background: var(--ink); color: #000; }

/* ---- the inspector as a process: vivid steps, values bright, prose short ---- */
.step h4 { color: var(--ink) !important; font-size: 12px !important; letter-spacing: .14em; align-items: center !important; }
.step h4 i { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sc); color: #0b0a09; font: 700 11px var(--mono); letter-spacing: 0; }
.step h4 small { color: var(--sc) !important; opacity: .85; }
.step { border-left: 3px solid var(--sc); }
.s1 { --sc: #7fb6d9; } .s2 { --sc: #e9d9a8; } .s3 { --sc: #ff7a45; } .s4 { --sc: #f0b9a4; } .s5 { --sc: #b9cfa0; } .s6 { --sc: #b8b3d8; } .s7 { --sc: #a9c9c9; }
.s6 { border-bottom: 0 !important; padding-bottom: 0 !important; }
.q-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; margin: 3px 0; }
.q-row b { font: 500 13px/1.3 var(--serif); color: #f3ebe0; }
.q-row em { font: 11px var(--mono); color: #7fb6d9; font-style: normal; }
.big-t { font: 400 16px/1.32 var(--serif); color: #f8f2e6; margin: 0 0 6px; }
.big-t.said { font-style: italic; color: #ffd9c9; }
.bars { display: grid; gap: 3px; }
.bar2 { display: grid; grid-template-columns: 86px 1fr 26px; gap: 8px; align-items: center; font: 12px var(--mono); color: #f3ebe0; }
.bar2 i { height: 8px; background: #1b1916; border-radius: 4px; overflow: hidden; } .bar2 i b { display: block; height: 100%; background: #e9d9a8; }
.bar2 em { font-style: normal; color: #e9d9a8; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tag { font: 600 12px var(--mono); padding: 4px 9px; border-radius: 12px; background: rgba(255,122,69,var(--a)); color: #0b0a09; }
.mini { font: 11px var(--mono); color: #b9b2a5; }
.facts { padding: 8px 14px !important; }
.fact-row { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 12px var(--mono); color: #f3ebe0; align-items: baseline; margin-bottom: 6px; }
.fact-row em { font-style: normal; color: #8f887c; margin-right: 5px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; }
.fact-row .arch { margin-left: auto; color: #7fb6d9; }
.facts .pal { height: 12px !important; }
.ins-side .affblock > h4, .ins-side .aff-key + p, .ins-side p.hint { display: none; }
.ins-left .rd-n { color: #f3ebe0; }
.ins-left .rd-h span, .ins-side .sug p { color: #cfc8ba; }

/* ---- the inspector as a flow: from → found → seen → heard → said → read → used in ---- */
.flow { position: relative; padding: 8px 12px 10px 16px; }
.flow::before { content: ""; position: absolute; left: 25px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(#7fb6d9, #e9d9a8, #ff7a45, #f0b9a4, #b9cfa0, #c4f46a); opacity: .55; }
.fl { position: relative; padding: 6px 0 8px 26px; }
.fl-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.fl-h i { position: absolute; left: 3px; top: 9px; width: 14px; height: 14px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 0 3px #070707; }
.fl-h b { font: 700 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fc); }
.fl-h small { font: 11px var(--mono); color: #9a9285; }
.f0 { --fc: #7fb6d9; } .f1 { --fc: #9ec7e6; } .f2 { --fc: #e9d9a8; } .f3 { --fc: #ff7a45; } .f4 { --fc: #f0b9a4; } .f5 { --fc: #b9cfa0; } .f6 { --fc: #c4f46a; }
.fl-t { font: 400 15px/1.3 var(--serif); color: #f8f2e6; margin: 0 0 3px; } .fl-t em { font: 12px var(--mono); color: #7fb6d9; font-style: normal; }
.fl-m { font: 11.5px/1.35 var(--mono); color: #c9c2b4; margin: 2px 0; } .fl-m b { color: #f3ebe0; font-weight: 600; }
.fl-p { font: italic 13px/1.3 var(--serif); color: #ddd5c6; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fl-q { font: 13px/1.3 var(--serif); color: #f3ebe0; margin: 2px 0; } .fl-q em { font: 11px var(--mono); color: #7fb6d9; font-style: normal; }
.fstrip { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 4px 0; padding-bottom: 2px; }
.fstrip::-webkit-scrollbar { display: none; }
.fs { flex: 0 0 auto; width: 34px; height: 26px; border: 0; padding: 0; background-size: cover; background-position: center; opacity: .55; cursor: pointer; border-radius: 2px; }
.fs.on { opacity: 1; outline: 2px solid #7fb6d9; outline-offset: 1px; } .fs:hover { opacity: 1; }
.subs { display: flex; flex-wrap: wrap; gap: 5px; }
.subs span { font: 600 11.5px var(--mono); color: #0b0a09; background: linear-gradient(90deg, #e9d9a8 var(--p), #6b6455 var(--p)); padding: 3px 8px; border-radius: 10px; }
.subs em { font-style: normal; opacity: .7; }
.fl-said { font: italic 14px/1.4 var(--serif); color: #ffd9c9; max-height: 7.2em; overflow-y: auto; padding-right: 4px; }
.use { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; text-decoration: none; border-left: 3px solid var(--c); padding: 3px 0 3px 8px; margin: 3px 0; }
.use b { font: 700 11.5px var(--mono); color: var(--c); letter-spacing: .06em; } .use span { font: 11px var(--mono); color: #c9c2b4; }
.use i { grid-column: 1 / -1; font: italic 12.5px/1.3 var(--serif); color: #f3ebe0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.use:hover { background: #121110; }
.where h4 { color: var(--ink) !important; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-m { position: relative; border: 1px solid #2a2622; border-radius: 4px; padding: 0; background: #050505; cursor: pointer; overflow: hidden; }
.mini-m canvas { display: block; width: 100%; height: auto; }
.mini-m span { position: absolute; left: 6px; top: 4px; font: 700 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #f2c14e; }
.mini-m.off span { color: #6d675d; } .mini-m:hover { border-color: #f2c14e; }
.sugs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.sugc { display: inline-flex; align-items: center; gap: 5px; font: 12px var(--mono); color: #f3ebe0; background: #141210; border: 1px solid #2f2a24; padding: 3px 7px 3px 4px; border-radius: 12px; }
.sugc b { font-weight: 500; } .sugc em { font-style: normal; color: #b8b3d8; }
.ins-side .aff-read:empty { display: none; }
.ins-side .affblock > h4 { display: block !important; }
/* the top bar: the views, the search and the order; the rest of the lab behind one menu */
details.more { position: relative; }
details.more > summary { list-style: none; cursor: pointer; font: 12px var(--mono); color: var(--dim); padding: 4px 8px; border: 1px solid var(--rule); border-radius: 12px; white-space: nowrap; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { color: var(--ink); border-color: var(--ink); }
.more-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 90; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px 14px; padding: 10px 12px; background: #0b0a09; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.more-list a { font: 12px/1.9 var(--mono); color: var(--ink); text-decoration: none; white-space: nowrap; }
.more-list a:hover { color: #f2c14e; }
svg.mp-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
svg.mp-lines line { stroke: #f2c14e; stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .85; }
svg.mp-lines circle { fill: #f2c14e; }

/* ---- the time track: one axis, what is said and what is in frame, labelled where they happen ---- */
.track { position: relative; margin: -4px 0 8px; font: 10px/1 var(--mono); }
.tr-row { position: relative; height: 30px; }
.tr-row em { position: absolute; right: 100%; margin-right: 8px; top: 2px; font-style: normal; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #8f887c; white-space: nowrap; }
.tr-w span { position: absolute; transform: translateX(-2px); color: #ffd9c9; opacity: .62; white-space: nowrap; cursor: pointer; padding: 1px 0; border-left: 1px solid rgba(240,185,164,.5); padding-left: 2px; }
.tr-w span.now { opacity: 1; color: #0b0a09; background: #f0b9a4; border-radius: 2px; z-index: 2; }
.tr-o { height: auto; min-height: 10px; }
.tr-o span { position: absolute; height: 8px; background: color-mix(in srgb, var(--sc) 55%, transparent); border-left: 2px solid var(--sc); }
.tr-o span b { position: absolute; left: 4px; top: -1px; font: 600 9px/1 var(--mono); color: #0b0a09; white-space: nowrap; }
.scrub { padding-left: 74px !important; }

/* ---- where it sits: four small multiples on one scale, then the company it keeps ---- */
.minis { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4px !important; }
.mini-m span { font-size: 9px !important; letter-spacing: .1em !important; }
.agree { margin-top: 8px; }
.ag-h, .ag { display: grid; grid-template-columns: 36px minmax(0, 1fr) repeat(4, 22px); gap: 6px; align-items: center; }
.ag-h i { font: 9px var(--mono); color: #8f887c; text-align: center; font-style: normal; letter-spacing: .06em; }
.ag { width: 100%; background: none; border: 0; padding: 3px 0; text-align: left; cursor: pointer; color: inherit; border-top: 1px solid #16140f; }
.ag:hover { background: #121110; }
.ag img { width: 36px; height: 27px; object-fit: cover; border-radius: 2px; }
.ag span { font: 12px/1.2 var(--serif); color: #f3ebe0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag span em { display: block; font: 9.5px var(--mono); color: #8f887c; font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.ag i { width: 10px; height: 10px; border-radius: 50%; justify-self: center; background: #2a2622; }
.ag i.y { background: #f2c14e; } .ag i.k-sound { background: #ff7a45; } .ag i.k-hue { background: #e9d9a8; } .ag i.k-sign { background: #b8b3d8; }

/* ---- less ink that is not data ---- */
.ins-left .sd-block, .ins-side .sd-block { border-bottom: 0 !important; }
.ins-side .sd-block + .sd-block { border-top: 1px solid #16140f; }
.ins-side .seglist { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important; }
.ins-side .seglist .sg > :first-child { height: 30px !important; }
.ins-side .seglist .sg-t span { display: none; }
.ins-side .cutbtns { display: none; }
.ins-side .aff-key { display: none; }
.flow::before { opacity: .35; }
.tr-w span.tick { width: 1px; height: 24px; padding: 0; border-left: 1px solid rgba(240,185,164,.35); }
.tr-w span.tick.now { width: 3px; background: #f0b9a4; }

/* the editor's reading anchors the inspector, top left */
.anchor { padding: 12px 14px 10px; border-bottom: 1px solid #1d1a16; background: #0c0b09; }
.anchor .rd-h b { font-size: 20px !important; color: #fff; }
.anchor .rd-h span { color: #cfc8ba !important; }
.anchor .rd-n { font-size: 15.5px !important; line-height: 1.38; color: #fff !important; -webkit-line-clamp: 3 !important; }
.anchor .chip.big { transform: scale(1.15); }
/* the axis pickers */
.axpick { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: 11px var(--mono); color: var(--dim); }
.axpick select { font: 12px var(--mono); color: var(--ink); background: #0b0a09; border: 1px solid var(--rule); border-radius: 4px; padding: 3px 6px; }
/* every film a collection */
#fxCol { display: grid !important; grid-template-columns: repeat(3, 1fr); }
#fxCol button { min-width: 0; }
.mapw:not([data-kind="axes"]) .axpick, #axPick { display: none; }
[data-kind="axes"] #axPick { display: flex; }
.hud-tl { background: rgba(0,0,0,.82); padding: 6px 8px; border-radius: 6px; }

/* every shot carries a sign and its question */
.anchor .rd-q { margin: 6px 0 4px; font-size: 12px; color: #cfc8ba; }
.anchor .rd-q b { display: block; font: 600 17px/1.3 Fraunces, serif; color: #f2c14e; }
.anchor .guess .stamp { display: inline-block; margin-top: 2px; font: 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #0c0b09; background: #8f877a; padding: 1px 6px; border-radius: 3px; }
.anchor .guess .chip.big { opacity: .85; outline: 1px dashed #cfc8ba; outline-offset: 2px; }
.anchor .rd-rule { font-size: 12.5px; line-height: 1.4; color: #e8e4da; margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.anchor .rd-rule em { color: #8f877a; font-style: normal; }
.anchor .rd-why { font-size: 11.5px; color: #a8a196; margin: 4px 0 6px; }
.anchor .rd-act { display: flex; gap: 6px; flex-wrap: wrap; }
.anchor .rd-act .on { background: #f2c14e; color: #0c0b09; border-color: #f2c14e; }
.md-link { display: block; width: 100%; margin-top: 8px; text-align: left; background: none; border: 1px solid #2a2620; border-radius: 4px; color: #e8e4da; font: 12px var(--mono); padding: 6px 8px; cursor: pointer; }
.md-link:hover { border-color: #f2c14e; color: #f2c14e; }
/* map: hide the rest, leave a neighbourhood */
#mapOnly.on { background: #e8e4da; color: #000; }
#mapLeave { border-color: #f2c14e; color: #f2c14e; }

/* HOW A SHOT IS MADE */
.made { position: fixed; inset: 0; z-index: 90; background: #070707; color: #e8e4da; display: flex; flex-direction: column; font-family: var(--mono); }
.made[hidden] { display: none; }
.md-top { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid #1d1a16; font-size: 12px; flex-wrap: wrap; }
.md-top > b { letter-spacing: .16em; }
.md-top #mdTitle { font: 16px Fraunces, serif; } .md-top #mdTitle em { color: #8f877a; font-size: 12px; }
.md-now { color: #f2c14e; min-width: 180px; } .md-now em { color: #8f877a; font-style: normal; }
.md-ex { display: flex; gap: 4px; margin-left: auto; } .md-ex .on { background: #e8e4da; color: #000; }
.md-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.md-left { border-right: 1px solid #1d1a16; padding: 10px 12px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.md-left video { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #000; border: 1px solid #1d1a16; }
.md-rules { margin: 0; padding-left: 16px; font-size: 11.5px; line-height: 1.45; color: #cfc8ba; } .md-rules li { margin-bottom: 4px; } .md-rules b { color: #fff; }
.md-fun h4 { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8f877a; }
.md-f { position: relative; height: 19px; margin-bottom: 3px; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.md-f i { position: absolute; left: 0; top: 0; bottom: 0; background: #2a2620; border-radius: 2px; } .md-f.in i { background: #f2c14e; }
.md-f span { position: relative; width: 48px; text-align: right; font-weight: 700; } .md-f.in span { color: #0c0b09; }
.md-f em { position: relative; font-style: normal; color: #cfc8ba; } .md-f.in em { color: #0c0b09; }
.md-fun p { font-size: 11px; line-height: 1.45; color: #a8a196; margin: 6px 0 0; }
.md-patch { position: relative; overflow: hidden; padding: 6px 10px 10px; }
.md-grid { position: relative; z-index: 1; display: grid; grid-template-rows: auto repeat(3, auto); gap: 0; height: 100%; }
.md-band { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8f877a; padding: 2px 6px 6px; border-left: 1px solid #1d1a16; }
.md-row { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #8f877a; border-top: 1px solid #1d1a16; }
.md-grid > .md-row:nth-of-type(n) { background: none; }
.md-cell { border-top: 1px solid #1d1a16; border-left: 1px solid #1d1a16; padding: 6px 5px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.md-node { position: relative; background: #0f0e0c; border: 1px solid #3a352d; border-radius: 5px; padding: 5px 7px; font-size: 11px; line-height: 1.35; transition: border-color .3s, box-shadow .3s, opacity .3s; opacity: .28; }
.md-node.seen { opacity: 1; } .md-node.no.seen { opacity: .62; border-style: dashed; background: transparent; }
.md-node.ok.seen { border-color: #f2c14e; } .md-node.now { box-shadow: 0 0 0 2px #f2c14e, 0 0 24px rgba(242,193,78,.35); }
.md-node.no.now { box-shadow: 0 0 0 1px #8f877a; }
.md-v { font-weight: 700; letter-spacing: .08em; color: #fff; display: flex; justify-content: space-between; gap: 6px; } .md-v small { font-weight: 400; color: #8f877a; letter-spacing: 0; }
.md-does { color: #8f877a; font-size: 10.5px; margin: 1px 0 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.md-out p { margin: 2px 0; } .md-out img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 3px; }
.md-out .md-t { font: 13px/1.3 Fraunces, serif; color: #fff; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .md-out .md-t em { color: #8f877a; font-size: 11px; }
.md-out .md-q { font: 600 13px/1.3 Fraunces, serif; color: #f2c14e; }
.md-out .md-said { color: #c9a4ff; } .md-out .md-k { color: #8f877a; font-size: 10.5px; }
.md-out .md-why { color: #a8a196; font-style: italic; }
.md-r { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px; } .md-r span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-bar { display: block; height: 5px; background: #1d1a16; border-radius: 3px; } .md-bar b { display: block; height: 100%; background: #f2c14e; border-radius: 3px; }
.md-tags { display: flex; flex-wrap: wrap; gap: 3px; } .md-tags span { background: #ff9f43; color: #0c0b09; border-radius: 3px; padding: 0 5px; font-size: 10.5px; }
.md-mini { width: 100%; display: block; margin-top: 3px; border-radius: 3px; }
.md-tool { margin-top: 3px; font-size: 9.5px; color: #6f685d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-wires { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.md-wires path { fill: none; stroke: #2a2620; stroke-width: 1.3; } .md-wires path.lit { stroke: #f2c14e; stroke-width: 2; }
@media (max-width: 900px) { .md-body { grid-template-columns: 1fr; overflow: auto; } .md-left { display: none; } .md-patch { overflow: auto; } .md-grid { min-width: 1000px; } }
.md-grid { grid-template-rows: auto repeat(3, minmax(0, 1fr)); }
.md-cell { overflow: hidden; min-height: 0; gap: 5px; }
.md-does { -webkit-line-clamp: 1; }
.md-node.now .md-does { -webkit-line-clamp: 3; color: #e8e4da; }
.md-out img { aspect-ratio: auto; height: 58px; object-fit: cover; }
.md-mini { height: 44px; object-fit: cover; }
.md-out .md-t { -webkit-line-clamp: 3; font-size: 12.5px; }
.md-f { height: auto; display: grid; grid-template-columns: 54px 1fr; gap: 0 6px; align-items: center; margin-bottom: 4px; }
.md-f i { position: static; grid-column: 1 / -1; order: 3; height: 4px; background: #2a2620; }
.md-f span, .md-f.in span { color: #e8e4da; width: auto; } .md-f em, .md-f.in em { color: #a8a196; }
.md-f.in span, .md-f.in em { color: #f2c14e; }
.md-grid { grid-template-rows: auto minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1.2fr); }
.md-cell { justify-content: safe center; }
.md-out img { height: 50px; } .md-mini { height: 38px; }
.md-tool { display: none; } .md-node.now .md-tool { display: block; }
.md-node { padding: 4px 6px; } .md-out img { height: 44px; } .md-mini { height: 34px; }
.md-grid { grid-template-rows: auto minmax(0, 1.25fr) minmax(0, .95fr) minmax(0, 1.15fr); }
.md-grid { grid-template-rows: auto auto auto auto; height: auto; transform-origin: 0 0; }
.md-cell { overflow: visible; }

/* HOW A SHOT IS MADE — the river, the bed, the core sample */
.md-patch { position: relative; padding: 0; overflow: hidden; }
.rv-svg { position: absolute; inset: 0; pointer-events: none; }
.rv-svg [data-st] { pointer-events: all; }
.rv-water { fill: #16283a; stroke: #2f4f6e; stroke-width: 1; }
.rv-cov { fill: #0b0a09; opacity: .55; } .rv-cov.on { opacity: .95; }
.rv-out { fill: none; stroke: #3a5068; stroke-linecap: round; opacity: .75; } .rv-out.use { stroke: #7fd6a4; opacity: .55; }
.rv-ol { fill: #cfc8ba; font: 11px var(--mono); } .rv-ol .n { fill: #fff; font-weight: 700; } .rv-ol.use .n { fill: #7fd6a4; } .rv-ol.sub { fill: #8f877a; font-size: 10px; }
.rv-in { fill: none; stroke: #f2c14e; stroke-width: 2; stroke-dasharray: 2 4; opacity: .7; } .rv-il { fill: #f2c14e; font: 10.5px var(--mono); }
.rv-floor { stroke: #2a2620; stroke-width: 1; }
.rv-st { fill: none; stroke: var(--c); stroke-opacity: .25; stroke-dasharray: 3 4; transition: fill .5s, fill-opacity .5s; }
.rv-st.ok { stroke-dasharray: none; stroke-opacity: .35; }
.rv-st.ok.laid { fill: var(--c); fill-opacity: .2; stroke-opacity: .6; }
.rv-road { fill: none; stroke: #f2c14e; stroke-width: 2.5; stroke-linejoin: round; }
#rvDrops line { stroke: #f2c14e; stroke-width: 1.2; stroke-dasharray: 1 3; } #rvDrops circle { fill: #f2c14e; }
.rv-peb { fill: #f2c14e; stroke: #000; stroke-width: 2; transition: cx .9s ease-in-out, cy .9s ease-in-out; filter: drop-shadow(0 0 6px rgba(242,193,78,.8)); }
.rv-heads { position: absolute; left: 0; right: 0; height: 16px; pointer-events: none; }
.rv-heads span { position: absolute; transform: translateX(-50%) rotate(-40deg); transform-origin: 50% 50%; font: 700 9.5px var(--mono); letter-spacing: .06em; color: var(--c); opacity: .75; white-space: nowrap; }
.rv-heads span.now { opacity: 1; color: #fff; }
.rv-core { position: absolute; right: 10px; bottom: 8px; top: 196px; width: 470px; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; z-index: 1; }
.cr { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; align-items: center; padding: 3px 6px; border-left: 3px solid var(--c); background: rgba(255,255,255,.015); border-radius: 0 4px 4px 0; font-size: 11px; line-height: 1.3; min-height: 26px; opacity: .35; transition: opacity .4s, background .4s; }
.cr.laid { opacity: 1; } .cr.no { border-left-style: dashed; } .cr.no.laid { opacity: .6; }
.cr.now, .cr.hov { background: rgba(242,193,78,.1); }
.cr.now { box-shadow: inset 0 0 0 1px #f2c14e; }
.cr-m b { display: block; font-size: 10.5px; letter-spacing: .08em; color: var(--c); } .cr-m span { display: block; font-size: 9.5px; color: #a8a196; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-b { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cr-b img { height: 34px; vertical-align: middle; border-radius: 2px; margin-right: 6px; }
.cr-b .md-code { width: 256px; height: 22px; vertical-align: middle; } .cr-b .md-mini { width: 64px; height: 30px; vertical-align: middle; margin-left: 6px; border-radius: 2px; }
.cr-b .md-t { font: 12px/1.3 Fraunces, serif; color: #fff; } .cr-b .md-t em { color: #8f877a; font-size: 10.5px; }
.cr-b .md-said { color: #c9a4ff; } .cr-b .md-q { font: 600 12px Fraunces, serif; color: #f2c14e; } .cr-b .md-k { color: #8f877a; }
.cr-b .md-w { display: inline-block; margin-right: 8px; } .cr-b .md-w em { color: #f2c14e; font-style: normal; }
.cr-b .md-tags { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; } .cr-b .md-tags span { background: #ff9f43; color: #0c0b09; border-radius: 3px; padding: 0 4px; font-size: 10px; }
.cr-b .md-why { color: #8f877a; }
.md-card { border: 1px solid #2a2620; border-radius: 6px; padding: 8px 10px; font-size: 11.5px; line-height: 1.4; }
.mc-v { font-weight: 700; letter-spacing: .12em; color: var(--c); font-size: 13px; }
.mc-m { font: 600 15px/1.25 Fraunces, serif; color: #fff; margin: 2px 0 6px; }
.md-card dl { margin: 0; display: grid; grid-template-columns: 78px 1fr; gap: 3px 8px; } .md-card dt { color: #8f877a; font-size: 10.5px; } .md-card dd { margin: 0; color: #e8e4da; }
.md-legend { font-size: 11px; line-height: 1.45; color: #a8a196; margin: 0; } .md-legend b { color: #e8e4da; }
.rv-ol .at { fill: #8f877a; font-size: 10px; }
.rv-core { top: 214px; }
.rv-heads span i { font-style: normal; font-weight: 400; color: #e8e4da; }
.rv-out { stroke-linecap: butt; opacity: .5; }

/* HOW A SHOT IS MADE — the grid and the film */
.mg .md-top { flex-wrap: nowrap; } .mg .md-top #mdTitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.mg-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(420px, 40%) minmax(0, 1fr); }
.mg-film { border-right: 1px solid #1d1a16; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; }
.mg-screen { position: relative; aspect-ratio: 4/3; max-height: 46vh; background: #000; border: 1px solid #2a2620; overflow: hidden; flex: none; }
.mg-screen video { width: 100%; height: 100%; object-fit: contain; display: block; }
.mg-step { position: absolute; left: 8px; top: 6px; font-size: 11px; color: #cfc8ba; background: rgba(0,0,0,.7); padding: 2px 6px; border-radius: 3px; }
.mg-ov { position: absolute; inset: 0; pointer-events: none; }
.ov-sub { position: absolute; left: 6%; right: 6%; bottom: 7%; text-align: center; font: 14px/1.35 var(--mono); color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px #000; animation: ovin .5s; }
.ov-sub .blip { font: 600 19px/1.3 Fraunces, serif; color: #e9dcff; } .ov-sub .said { font: 17px/1.35 Fraunces, serif; color: #fff; background: rgba(0,0,0,.55); padding: 2px 8px; }
.ov-sub .rd { font: 600 18px/1.3 Fraunces, serif; color: #ffe39a; } .ov-sub .md-tag { font-size: 13px; }
.ov-card { position: absolute; inset: 10% 10%; background: rgba(8,8,7,.86); border: 1px solid #3a352d; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; animation: ovin .6s; }
.ov-card small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #8f877a; } .ov-card b { font: 600 20px/1.2 Fraunces, serif; color: #fff; } .ov-card span { color: #cfc8ba; font-size: 12px; } .ov-card p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: #e8e4da; }
.ov-card.use b { font-size: 15px; color: #7fd6a4; } .ov-card.use em { color: #a8a196; font-size: 11px; }
.ov-strip { position: absolute; left: 0; right: 0; top: 32%; display: flex; gap: 3px; justify-content: center; animation: ovin .5s; }
.ov-strip i { width: 7%; aspect-ratio: 4/3; background-size: cover; background-position: center; opacity: .55; border: 1px solid #000; }
.ov-strip i.on { opacity: 1; outline: 2px solid #f2c14e; transform: scale(1.35); z-index: 1; }
.ov-frame { position: absolute; inset: 3%; border: 3px solid #fff; animation: flash .7s; }
@keyframes flash { 0% { background: rgba(255,255,255,.8); } 100% { background: transparent; } }
@keyframes ovin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ov-code { position: absolute; left: 4%; right: 4%; top: 38%; width: 92%; height: 64px; background: rgba(0,0,0,.6); animation: ovin .5s; }
.ov-tags { position: absolute; left: 4%; top: 12%; display: flex; flex-direction: column; gap: 4px; animation: ovin .5s; }
.ov-tags span { position: relative; min-width: 190px; background: rgba(0,0,0,.72); color: #fff; font-size: 13px; padding: 3px 8px; overflow: hidden; }
.ov-tags span b { position: absolute; left: 0; bottom: 0; height: 3px; background: #6f8cff; } .ov-tags.sig span b { background: #f2c14e; } .ov-tags span.sc { color: #6f8cff; }
.ov-meter { position: absolute; right: 5%; top: 10%; background: rgba(0,0,0,.75); padding: 8px 12px; text-align: right; animation: ovin .5s; } .ov-meter b { display: block; font-size: 18px; color: #ff9f43; } .ov-meter span { color: #cfc8ba; }
.ov-q { position: absolute; inset: 0; background: rgba(5,5,4,.82); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 9%; gap: 6px; animation: ovin .7s; }
.ov-q small { color: #a8a196; font-size: 12px; } .ov-q b { font: 600 27px/1.2 Fraunces, serif; color: #f2c14e; } .ov-q span { font-size: 12.5px; line-height: 1.45; color: #e8e4da; max-width: 90%; }
.ov-search { position: absolute; left: 6%; right: 6%; top: 14%; background: #f4efe4; color: #111; padding: 8px 10px; display: flex; gap: 8px; align-items: center; font-size: 14px; border-radius: 4px; animation: ovin .4s; }
.ov-search span { flex: 1; } .ov-search span::after { content: '▌'; animation: blink 1s steps(1) infinite; } .ov-search em { color: #777; font-size: 11px; }
@keyframes blink { 50% { opacity: 0; } }
.ov-sheet { position: absolute; inset: 6% 6% 20%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: rgba(0,0,0,.85); padding: 6px; animation: ovin .5s; }
.ov-sheet i { background-size: cover; background-position: center; opacity: .45; } .ov-sheet i.kept { opacity: .8; outline: 1px solid #f2c14e; } .ov-sheet i.keep { opacity: 1; outline: 3px solid #f2c14e; }
.ov-time { position: absolute; left: 4%; right: 4%; bottom: 22%; height: 6px; background: rgba(255,255,255,.25); } .ov-time i { position: absolute; top: -8px; width: 3px; height: 22px; background: #f2c14e; }
.ov-cuts { position: absolute; inset: 6% 6% 22%; display: flex; gap: 10px; justify-content: center; align-items: center; background: rgba(0,0,0,.8); animation: ovin .5s; }
.ov-cuts figure { margin: 0; max-width: 24%; text-align: center; } .ov-cuts img { max-width: 100%; max-height: 150px; filter: drop-shadow(0 0 6px rgba(111,140,255,.6)); } .ov-cuts figcaption { font-size: 11px; color: #6f8cff; }
.ov-skip { position: absolute; inset: 0; background: rgba(5,5,4,.7); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; padding: 0 12%; }
.ov-skip b { font-size: 13px; letter-spacing: .14em; color: #8f877a; } .ov-skip span { font: italic 15px/1.4 Fraunces, serif; color: #cfc8ba; }
.mg-blocks { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-ph { display: flex; align-items: flex-end; gap: 2px; } .mb-ph em { font-style: normal; font-size: 9px; letter-spacing: .1em; color: #8f877a; margin-right: 3px; }
.mg-blocks b { width: 18px; height: 14px; border-radius: 2px; background: var(--c); opacity: .35; cursor: pointer; } .mg-blocks b.no { background: transparent; border: 1px dashed var(--c); }
.mg-blocks b.past { opacity: .8; } .mg-blocks b.now { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.mg-scene { font-size: 12px; line-height: 1.45; min-height: 0; overflow: hidden; }
.mg-scene .sc-do { margin: 0 0 6px; font: 15px/1.35 Fraunces, serif; color: #fff; } .mg-scene .sc-do b { font: 700 12px var(--mono); letter-spacing: .1em; margin-right: 4px; }
.mg-scene dl { margin: 0; display: grid; grid-template-columns: 88px 1fr; gap: 3px 10px; } .mg-scene dt { color: #8f877a; font-size: 10.5px; } .mg-scene dd { margin: 0; color: #e8e4da; }
.mg-totals { margin-top: auto; font-size: 11px; color: #a8a196; border-top: 1px solid #1d1a16; padding-top: 6px; } .mg-totals b { color: #fff; }
.mg-grid { overflow: auto; padding: 4px 12px 10px; }
.mgr { display: grid; grid-template-columns: 22px 210px 190px minmax(0, 1fr) 40px; gap: 10px; align-items: center; min-height: 34px; padding: 2px 6px; border-bottom: 1px solid #16140f; cursor: pointer; font-size: 11.5px; transition: background .3s; }
.mgr.mgh { cursor: default; min-height: 22px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #8f877a; position: sticky; top: 0; background: #070707; z-index: 2; } .mgr.mgh em { font-style: normal; color: #6f685d; letter-spacing: 0; }
.mgp { margin-top: 6px; padding: 4px 6px 3px; font-size: 10.5px; color: #8f877a; border-bottom: 1px solid #2a2620; } .mgp b { color: #e8e4da; letter-spacing: .16em; margin-right: 6px; }
.mgr:hover { background: #12110e; } .mgr.now { background: rgba(242,193,78,.1); box-shadow: inset 3px 0 0 #f2c14e; }
.mg-i { color: #6f685d; text-align: right; font-size: 10.5px; }
.mg-op b { display: block; color: var(--c); letter-spacing: .08em; font-size: 11px; } .mg-op small { display: block; color: #a8a196; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-bar { position: relative; height: 14px; background: #14120f; border-radius: 2px; }
.mg-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); opacity: .5; border-radius: 2px; min-width: 2px; }
.mg-bar u { position: absolute; top: -3px; width: 6px; height: 20px; margin-left: -3px; background: #f2c14e; border: 1px solid #000; border-radius: 2px; }
.mg-bar u.out { background: transparent; border: 1px dashed #f2c14e; }
.mg-bar em { position: absolute; right: 4px; top: 0; font-style: normal; font-size: 10px; line-height: 14px; color: #e8e4da; text-shadow: 0 0 3px #000; }
.mg-out { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; color: #e8e4da; }
.mg-out img { height: 26px; vertical-align: middle; border-radius: 2px; margin-right: 4px; } .mg-out canvas.md-code { width: 220px; height: 18px; vertical-align: middle; }
.mg-out .md-t { font: 12.5px Fraunces, serif; color: #fff; } .mg-out em { color: #f2c14e; font-style: normal; } .mg-out .md-said { color: #c9a4ff; } .mg-out .md-q { font: 600 12.5px Fraunces, serif; color: #f2c14e; }
.mg-out .md-tag { background: #ff9f43; color: #0c0b09; border-radius: 3px; padding: 0 4px; margin-right: 3px; font-size: 10px; } .mg-out .md-tag.pic { background: #6f8cff; }
.mgr.no .mg-out .md-why { color: #8f877a; } .mgr.no .mg-op b { opacity: .55; }
.mg-day { color: #6f685d; font-size: 10px; text-align: right; }
.mg-blocks { gap: 6px; } .mg-blocks b { width: 14px; } .mb-ph em { font-size: 8.5px; }
