/* Build additions on top of Jess's styles.css (real video, real page images, states the mock-ups didn't show). */
.loading { padding: var(--s7); color: var(--muted); text-align: center; }
[hidden] { display: none !important; }
.topbar > a { display: block; }

/* video */
.player { position: relative; }
.player-frame { aspect-ratio: var(--ar, 16 / 9); }
.player-frame video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.player:fullscreen { max-width: none; display: flex; flex-direction: column; }
.player:fullscreen .player-frame { flex: 1; aspect-ratio: auto; }
.big-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 0; background: rgba(239, 230, 216, .92); color: var(--bg); display: grid; place-items: center; }
.big-play .icon { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }
.play .icon { fill: currentColor; stroke: none; }
.scrub { cursor: pointer; touch-action: none; }
.marker { pointer-events: none; }
.head-hint { margin: 0; max-width: 300px; text-align: right; font-size: var(--text-sm); }

/* version menu: a real select styled as Jess's pill */
.version { position: relative; cursor: pointer; }
.version select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--fg); font: inherit; letter-spacing: inherit; text-transform: inherit; padding-right: 2px; cursor: pointer; outline: 0; }
.version select option { background: var(--raised); color: var(--fg); }
.version .icon { order: 2; }

/* documents */
.doc-page img { width: 100%; height: 100%; object-fit: contain; display: block; }
.doc-page.is-image { --page-ratio: auto; aspect-ratio: auto; height: auto; max-height: calc(100vh - var(--topbar-h) - 220px); background: transparent; box-shadow: none; }
.doc-page.is-image img { max-height: calc(100vh - var(--topbar-h) - 220px); width: auto; max-width: 100%; margin: 0 auto; border-radius: 4px; }
.doc-page:fullscreen { background: var(--bg); max-height: none; border-radius: 0; }
.thumb-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }   /* the whole page, letterboxed in a calm frame */
.item-thumb.is-doc { display: grid; place-items: center; }
.item-thumb.is-doc img { width: 100%; height: 100%; object-fit: contain; padding: 8%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }

/* states */
.notice { padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--card); color: var(--fg-2); font-size: var(--text-sm); }
.notice a { color: var(--fg); font-weight: 600; }
.verdict-slot:empty { display: none; }
.verdict { margin: 0 var(--s5) var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--card); display: flex; gap: var(--s2); align-items: center; font-size: var(--text-sm); color: var(--fg-2); }
.verdict b { color: var(--fg); }
.verdict.is-ok .icon { color: var(--bg); background: var(--lime); border-radius: 50%; padding: 3px; width: 20px; height: 20px; stroke-width: 3; }
.verdict.is-changes::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-tint); flex: none; }
.empty-note { color: var(--muted); padding: var(--s3); margin: 0; font-size: var(--text-sm); }
.comment.is-done { opacity: .5; }
.decide-slot { display: flex; gap: var(--s3); }
.replybox { display: flex; gap: var(--s2); align-items: flex-end; margin-top: var(--s3); }
.replybox textarea { flex: 1; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: var(--s2) var(--s3); resize: vertical; min-height: 44px; outline: 0; }
.replybox textarea:focus { border-color: var(--muted); }
.composer-row .input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: var(--text-md); }
.composer-row .input input::placeholder { color: var(--muted); }
.composer-row .input .tc { flex: none; }
.dialog .btn + .btn { margin-top: var(--s2); }
.dialog-note.err { color: var(--accent-tint); }
button.avatar { border: 0; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 12px 20px; border-radius: 999px; z-index: 40; font-size: var(--text-md); font-weight: 600; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.scrim { z-index: 30; }

@media (max-width: 760px) {
  .toast { bottom: calc(136px + env(safe-area-inset-bottom)); }
  .head-hint { display: none; }
  .verdict { margin: 0 var(--s4) var(--s3); }
  .app, .review { max-width: 100vw; overflow-x: clip; }   /* clip, not hidden: hidden turned .review into its own small scroll box */
  .doc-page { width: 100%; height: auto; max-height: none; aspect-ratio: var(--page-ratio, 1 / 1.414); }
  .viewer { display: block; }
  .thumb { width: 72px; min-width: 0; }
  .thumb-meta { gap: 4px; }
  .pager { flex-wrap: nowrap; }
  .pager > .btn { flex: 0 1 auto; min-width: 0; padding: 0 var(--s3); }
  .pager-nav .pos { font-size: 12px; }
  #fsDoc { display: none; }
  .decision-bar .buttons > * { min-width: 0; }
  .item-meta-dl span { display: none; }
}
.doc-page.is-image { position: relative; display: block; cursor: zoom-in; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(21,18,15,.8); color: var(--fg); font-size: var(--text-sm); font-weight: 600; }
.back-m { margin: 0 0 var(--s2) calc(-1 * var(--s3)); }
/* breadcrumb (Frame.io style), shown on every size */
.topbar .sep { width: 1px; height: 20px; background: var(--line); flex: none; }
.crumbs { display: flex; align-items: center; gap: var(--s2); min-width: 0; flex: 1 1 auto; font-size: var(--text-sm); color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs a { text-decoration: none; color: var(--fg-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 10px 0; }
.crumbs a:hover { color: var(--fg); }
.crumbs b { color: var(--fg); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumb-sep { color: var(--faint); flex: none; }
.crumb-client { font-family: var(--mono); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; }
.topbar-actions { flex: none; }
@media (max-width: 760px) {
  .topbar-home .topbar-logo { height: 26px; }
  .crumbs { font-size: 13px; }
  .crumbs .crumb-client, .crumbs .crumb-client + .crumb-sep { display: none; }
  .crumbs > :not(:nth-last-child(-n+3)) { display: none; }   /* phone: parent / current only */
}
/* full-size viewer */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(12,10,8,.94); }
.lightbox-scroll { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; padding: 56px 16px 16px; -webkit-overflow-scrolling: touch; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 72px); border-radius: 4px; cursor: zoom-in; touch-action: pinch-zoom; }
.lightbox img.is-zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox-close { position: fixed; top: max(10px, env(safe-area-inset-top)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fg); color: var(--bg); font-size: 28px; line-height: 1; display: grid; place-items: center; }
.doc-page { cursor: zoom-in; }
@media (max-width: 760px) { #fsDoc { display: inline-flex; } }
/* Jess, refinement pass: calmer close button (the ivory disc read as the loudest thing on screen) */
.lightbox-close { background: rgba(39, 33, 25, .92); color: var(--fg); font-size: 26px; box-shadow: 0 0 0 1px var(--line); }
.lightbox-close:hover { background: var(--line); }
/* tap areas for the way back: logo link and breadcrumb links reach 44px */
.topbar > a { display: flex; align-items: center; min-height: 44px; }
.crumbs a { padding: 13px 0; }
/* phone: one "‹ parent" link instead of the full trail */
.crumb-back { display: none; }
@media (max-width: 760px) {
  .topbar .crumbs, .topbar .sep { display: none; }
  .crumb-back { display: inline-flex; align-items: center; gap: 4px; min-width: 0; min-height: 44px; flex: 1 1 auto; color: var(--fg-2); text-decoration: none; font-size: 14px; font-weight: 600; }
  .crumb-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* audio stages (voice-over, music): waveform above the same player bar */
.player.is-audio { background: var(--raised); border-radius: var(--r); padding: var(--s4) var(--s4) 0; max-width: none; }
.player.is-audio .wave { display: flex; align-items: center; gap: 2px; height: 72px; }
.player.is-audio .wave b { flex: 1; border-radius: 1px; background: var(--faint); transition: background .2s; }
.player.is-audio .wave b.on { background: var(--fg); }
.player.is-audio .player-bar { background: transparent; padding: 0; }
/* stage strip inside the item head */
.item-head .steps { margin-top: var(--s4); max-width: 640px; }
.item-head .stage-head { max-width: 640px; }
.item-head .also { margin-bottom: var(--s2); }
@media (prefers-reduced-motion: no-preference) {
  .step.is-current i { transition: box-shadow .3s var(--ease); }
  .tile .frame, .folder .cover { transition: outline-color .15s; }
}
@media (min-width: 761px) { .topbar .crumb-back { display: none !important; } }
/* Wes round on v2 build */
.topbar .crumbs::before { display: none; }                      /* one divider after the logo, not two */
.topbar-mark { display: none; height: 24px; width: auto; }
.topbar .bar-client { height: 20px; width: auto; opacity: .9; margin: 0 var(--s2); }
.bar-client + .bar-actions { margin-left: var(--s3); }           /* client logo sits right, beside the avatar */
.step.is-wait i { background: var(--muted); box-shadow: 0 0 0 4px var(--bg); }   /* studio: waiting on the client is grey */
.also.is-studio::before { background: var(--muted); }
.item-state { margin-top: var(--s2); }
.tile .foot { flex-wrap: nowrap; min-width: 0; }
.tile .foot .st { min-width: 0; }
.tile .ver { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
@media (max-width: 760px) {
  .topbar-home .topbar-logo { display: none; }
  .topbar-home .topbar-mark { display: block; }
  .player.is-audio { margin: 0 var(--s4); }
  .topbar .bar-client { height: 16px; }
}
/* a person's own space */
.space-sub { margin: var(--s7) 0 var(--s3); font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bar .crumb-back.is-shown { display: flex; align-items: center; gap: 4px; min-height: 44px; color: var(--fg-2); text-decoration: none; font-weight: 500; }
.bar .crumb-back.is-shown .icon { width: 18px; height: 18px; }
@media (max-width: 760px) { .client-grid .bar .crumb-back.is-shown ~ .bar-client { display: none; } }
.meta .people a { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); margin-right: var(--s3); padding: 10px 0; }

/* ---------- the item timeline (Burger's interactive stages, 22 Nov) ---------- */
.tl-page { width: 100%; box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: var(--s6) var(--s5) var(--s8); }
.tl-head .display { margin: 0; }
.tl-meta { margin-top: var(--s2); display: flex; gap: var(--s3); align-items: center; font-size: var(--text-sm); }
.tl { position: relative; margin: var(--s7) 0 var(--s4); touch-action: pan-y; user-select: none; }
.tl-line { position: absolute; left: 0; right: 0; top: calc((100% - 56px) / 2); height: 1px; background: var(--line); }
.tl-node { position: absolute; padding: 0; border: 0; border-radius: 50%; background: var(--faint); cursor: pointer; overflow: visible;
  transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease), border-radius .5s var(--ease), background .3s; }
.tl-node.st-approved { background: var(--fg-2); }
.tl-node.st-waiting { background: var(--accent); }
.studio-side .tl-node.st-waiting { background: var(--muted); }
.tl-node.is-current { border-radius: var(--r); background: var(--raised); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.tl-media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; opacity: 0; transition: opacity .3s .15s; display: grid; place-items: center; }
.tl-node.is-current .tl-media { opacity: 1; }
.tl-node:not(.is-current) .tl-media { transition: opacity .15s; }
.tl-media img { width: 100%; height: 100%; object-fit: contain; background: var(--raised); }
.tl-empty { color: var(--muted); font-size: var(--text-sm); }
.tl-wave { width: 86%; height: 60%; display: flex; align-items: center; gap: 3px; }
.tl-wave b { flex: 1; border-radius: 1px; background: var(--fg-2); }
.tl-tick { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bg); pointer-events: none; }
.tl-tick .icon { width: 9px; height: 9px; stroke-width: 3.5; }
.tl-node.is-current .tl-tick { display: none; }
.tl-node::after { content: ""; position: absolute; inset: -15px; }   /* 44px tap area around each dot */
.tl-node.is-current::after { display: none; }
.tl-label { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .2s; pointer-events: none; }
.tl-node:hover .tl-label { opacity: 1; }
.tl-node.is-current .tl-label { display: none; }
.tl-info { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); max-width: 520px; margin: 0 auto; }
.tl-step { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl-stage h2 { margin: var(--s2) 0 var(--s1); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.01em; }
.tl-state { display: flex; gap: var(--s3); align-items: center; font-size: var(--text-sm); }
.tl.no-anim .tl-node, .tl.no-anim .tl-media { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .tl-node, .tl-media { transition: none !important; } }
@media (max-width: 760px) {
  .tl-page { padding: var(--s4) var(--s4) var(--s7); }
  .tl { margin-top: var(--s6); }
  .tl-info { flex-direction: column; align-items: stretch; }
  .tl-info .btn { width: 100%; }
  .tl-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.tag-internal { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--accent-tint); padding: 6px 8px; border-radius: 4px; align-self: center; }
.foot-note a { color: var(--fg-2); }
.studio-side .tl-node.st-internal { background: var(--accent); }

/* timeline v2 (Burger 22:31): smaller block, zoomed dots, a line you drag */
.tl { overflow: hidden; touch-action: pan-y; cursor: grab; margin-left: calc(-1 * var(--s5)); margin-right: calc(-1 * var(--s5)); }
.tl.is-dragging { cursor: grabbing; }
.tl.is-dragging .tl-node { transition: none; }
.tl-rail { position: absolute; inset: 0; }
.tl-line { top: 0; }
.tl-node { transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease), border-radius .45s var(--ease), opacity .3s, background .3s; }
.tl-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tl-media img.is-page { object-fit: contain; background: var(--card); }
.tl-media .tl-empty { position: relative; z-index: 1; }
.tl-label { opacity: var(--lab, 0); top: calc(100% + 10px); }
.tl-node:hover .tl-label { opacity: 1; }
@media (max-width: 760px) { .tl { margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); } }
.tl-media .tl-empty { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(21,18,15,.85); color: var(--fg-2); font-size: 11px; font-weight: 600; }
/* timeline v3: calmer motion, no flash (Burger 22:48) */
.tl-node { transition: left .6s cubic-bezier(.65,0,.35,1), top .6s cubic-bezier(.65,0,.35,1), width .6s cubic-bezier(.65,0,.35,1), height .6s cubic-bezier(.65,0,.35,1), border-radius .6s cubic-bezier(.65,0,.35,1), opacity .3s, background .25s; }
.tl-node.is-current { background: var(--raised); transition-property: left, top, width, height, border-radius, opacity; }   /* the block never passes through the dot's ivory */
.tl-node.is-current .tl-media { transition: opacity .35s ease-in-out .25s; }
.tl-node:not(.is-current) .tl-media { transition: opacity .2s ease-in-out; }
.tl-media, .tl-media img { background: var(--raised); }
.tl-node:focus { outline: none; }
.tl-node:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* ---------- 3D carousel timeline (Burger 22:53) ---------- */
.cf { position: relative; margin: var(--s6) calc(-1 * var(--s5)) var(--s3); perspective: 1100px; perspective-origin: 50% 40%; touch-action: pan-y; user-select: none; cursor: grab; overflow: hidden; }
.cf:active { cursor: grabbing; }
.cf-card { position: absolute; left: 50%; top: 8px; padding: 0; border: 0; border-radius: var(--r); background: var(--raised); overflow: hidden;
  transform-origin: 50% 50%; will-change: transform; box-shadow: 0 18px 40px rgba(0,0,0,.45); cursor: pointer; transform-style: preserve-3d; }
.cf-card.is-front { box-shadow: 0 28px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(239,230,216,.08); }
.cf-media { position: absolute; inset: 0; display: grid; place-items: center; background: var(--raised); }
.cf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--raised); pointer-events: none; }
.cf-media img.is-page { object-fit: contain; }
.cf-media .tl-wave { width: 80%; height: 50%; }
.cf-media .tl-empty { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 4px 8px; border-radius: 999px; background: rgba(21,18,15,.85); color: var(--fg-2); font-size: 11px; font-weight: 600; }
.cf-badge { position: absolute; right: 8px; top: 8px; width: 20px; height: 20px; border-radius: 50%; display: none; place-items: center; background: var(--lime); color: var(--bg); }
.cf-card.st-approved .cf-badge { display: grid; }
.cf-badge .icon { width: 11px; height: 11px; stroke-width: 3; }
.cf-dots { display: flex; justify-content: center; gap: 4px; margin: 0 0 var(--s5); }
.cf-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; position: relative; cursor: pointer; }
.cf-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--faint); transition: transform .3s, background .3s; }
.cf-dot.st-approved::before { background: var(--fg-2); }
.cf-dot.st-waiting::before { background: var(--accent); }
.studio-side .cf-dot.st-waiting::before { background: var(--muted); }
.studio-side .cf-dot.st-internal::before { background: var(--accent); }
.cf-dot.on::before { transform: scale(1.7); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg-2); }
@media (max-width: 760px) { .cf { margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); } }
.page-loader { min-height: 70vh; display: grid; place-items: center; }
/* carousel v2: transform-only animation, dimming by overlay, sideways stacking */
.cf { perspective: none; }
.cf-card { left: 50%; transform-origin: 50% 50%; transition: none; backface-visibility: hidden; }
.cf-card::after { content: ""; position: absolute; inset: 0; background: #0c0a08; opacity: var(--dim, 0); pointer-events: none; border-radius: inherit; }

/* carousel v3: Swiper drives the motion */
.cf.swiper { overflow: visible; perspective: none; cursor: grab; height: auto; padding: 8px 0 16px; }
.cf-clip { overflow: hidden; }
.cf.swiper .swiper-slide.cf-card { position: relative; left: auto; top: auto; margin: 0; width: min(50vw, 360px); aspect-ratio: 16 / 9; height: auto; transform-origin: 50% 50%; }
@media (max-width: 760px) { .cf.swiper .swiper-slide.cf-card { width: 52vw; } }
.cf.swiper .swiper-slide-active { box-shadow: 0 28px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(239,230,216,.08); }
.cf.swiper .cf-card::after { display: none; }
.tl-page { overflow-x: clip; }
.page-loader { position: fixed; inset: 0; min-height: 0; display: grid; place-items: center; z-index: 5; } .page-loader img { display: block; margin: 0; }

/* studio admin: forms, people, job bag, stages, upload (built from Jess's v3 screens) */
.form { display: grid; gap: var(--s4); margin-top: var(--s4); }
.fld { display: grid; gap: 6px; }
.fld > span { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form input:not([type=checkbox]):not([type=file]), .form select { height: 44px; padding: 0 var(--s3); border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; min-width: 0; }
.form input:focus, .form select:focus { outline: none; border-color: var(--muted); }
.form input[type=file] { color: var(--muted); font-size: var(--text-sm); }
.form-err { margin: 0; color: var(--accent-tint); font-size: var(--text-sm); }
.person-row, .deliv-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.deliv-row { grid-template-columns: 1fr 150px; }
.deliv-stages { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-stage { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 12px; font-weight: 600; cursor: pointer; }
.chip-stage.is-off { background: none; color: var(--faint); text-decoration: line-through; }
.stage-row { display: grid; grid-template-columns: 44px 1fr 36px auto; gap: var(--s2); align-items: center; padding: 4px 0; }
.tog { position: relative; width: 40px; height: 24px; }
.tog input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tog span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .2s; pointer-events: none; }
.tog span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); transition: transform .2s; }
.tog input:checked + span { background: var(--fg-2); }
.tog input:checked + span::after { transform: translateX(16px); background: var(--bg); }
.matches .to-row { display: grid; grid-template-columns: 1fr 140px; gap: var(--s2); }
.matches li .bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.matches li .bar i { display: block; height: 100%; width: 0; background: var(--fg); transition: width .3s; }
.matches li.is-done .bar i { background: var(--lime); }
.sheet { max-height: calc(100vh - 32px); overflow: auto; }
.tile.is-empty .frame { border: 1px dashed var(--line); background: none; }
#dropZone.is-drop { outline: 2px dashed var(--muted); outline-offset: -8px; border-radius: var(--r); }
label.btn { cursor: pointer; }
@media (max-width: 760px) { .person-row { grid-template-columns: 1fr; } .deliv-row { grid-template-columns: 1fr 120px; } .matches .to-row { grid-template-columns: 1fr; } }

/* Wes round 3: audio fits the phone; file inputs look like the rest */
@media (max-width: 760px) { .player.is-audio { margin: 0; border-radius: 0; padding-left: var(--s4); padding-right: var(--s4); } }
.form input[type=file]::file-selector-button { height: 36px; padding: 0 14px; margin-right: 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }

/* PC: stage strip above the work (Burger, 23 Nov) */
.stage-strip { margin: 0 0 var(--s4); }
.stage-strip .steps { max-width: 720px; margin-left: auto; margin-right: auto; }
.stage-strip .stage-head { display: none; }
.stage-strip .also { display: inline-flex; margin-top: var(--s2); }
.stage-strip a.step:hover span { color: var(--fg); }
.stage-strip .step.is-current span { color: var(--fg); font-weight: 700; }
.stage { overflow-x: clip; }

/* Wes on the PC strip */
.stage-strip { margin: 0; display: flex; flex-direction: column; align-items: center; }
.stage-strip .steps { width: 100%; }
.stage-strip .also { margin: var(--s2) 0 0; }
.stage-strip ~ .player { max-width: calc((100vh - var(--topbar-h) - 400px) * 16 / 9); align-self: center; }
.stage { scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.stage-strip ~ .item-head { width: 100%; max-width: calc((100vh - var(--topbar-h) - 400px) * 16 / 9); align-self: center; }
.stage-strip ~ .item-head .meta { flex-wrap: nowrap; white-space: nowrap; }
.stage-strip ~ .item-head .head-hint { white-space: nowrap; }

/* file items: downloads such as project packages (23 Nov) */
.file-card { display: flex; flex-direction: column; align-items: center; gap: var(--s4); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r); max-width: 520px; margin: 0 auto; text-align: center; }
.file-card .file-cover { width: 100%; max-width: 360px; border-radius: var(--r); }
.file-card .file-meta { display: flex; flex-direction: column; gap: 4px; word-break: break-word; }
.tile .frame img.is-cover { object-fit: cover; }

/* ⋯ on every card (Burger, 23 Nov) */
.folder .cover, .tile .frame { position: relative; }
.card-more { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(21 18 15 / .72); color: var(--fg); cursor: pointer; opacity: 0; transition: opacity .15s; }
.card-more .icon { width: 18px; height: 18px; }
.folder:hover .card-more, .tile:hover .card-more, .card-more:focus-visible { opacity: 1; }
@media (hover: none) { .card-more { opacity: 1; } }   /* phones and tablets: always visible */
.dl-list { display: flex; flex-direction: column; gap: var(--s2); }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }

.card-more { width: 40px; height: 40px; }

/* folders inside a job (23 Nov) */
.tile.is-folder .frame { outline: 1px solid var(--line); }
.folder-badge { position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgb(21 18 15 / .78); color: var(--fg); }
.folder-badge .icon { width: 16px; height: 16px; }
.tile[draggable="true"] { cursor: grab; }
.tile.is-dragging { opacity: .45; }
.is-target .frame, .up-drop.is-target { outline: 2px solid var(--orange, #ff4a1c); outline-offset: 2px; }
.up-drop { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; padding: 2px 8px 2px 4px; border-radius: 999px; }
.up-drop:hover { background: rgb(255 255 255 / .06); }
.folder-up { display: inline-flex; margin-bottom: var(--s3); }

/* deliverable cards, Frame.io-style (Burger, 23 Nov) */
.tile.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tile.card .frame { aspect-ratio: 16 / 9; border-radius: 0; background: #000; }
.tile.card:hover .frame { outline: 0; }
.tile.card:hover { border-color: var(--muted); }
.tile.card .card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.tile.card .name { margin: 0; font-size: var(--text-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.card .meta-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.tile.card .meta-line .dl { display: grid; place-items: center; width: 32px; height: 32px; margin: -6px -6px -6px 0; border-radius: 8px; color: var(--fg); cursor: pointer; }
.tile.card .meta-line .dl:hover { background: rgb(255 255 255 / .08); }
.tile.card .meta-line .dl .icon { width: 18px; height: 18px; }
.tile.card .status-row { margin-top: 2px; padding: 8px 10px; border-radius: 8px; background: rgb(255 255 255 / .04); }
.pick { position: absolute; top: 8px; left: 8px; z-index: 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: rgb(21 18 15 / .72); cursor: pointer; opacity: 0; transition: opacity .15s; }
.pick input { width: 16px; height: 16px; accent-color: var(--orange, #ff4a1c); pointer-events: none; }
.tile:hover .pick, .tile.is-picked .pick, .pick:focus-within { opacity: 1; }
@media (hover: none) { .pick { opacity: 1; } }
.tile.is-picked { border-color: var(--orange, #ff4a1c); }
.bulk-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 16px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.45); max-width: calc(100vw - 32px); overflow-x: auto; }
.bulk-bar .n { font-weight: 700; margin-right: 8px; white-space: nowrap; }
.bulk-bar .btn { white-space: nowrap; }

/* Wes on cards and bulk select */
.tile.card.is-picked, .tile.card.is-picked:hover { border-color: var(--orange, #ff4a1c); }
body:has(.sheet-scrim) .bulk-bar { display: none; }
@media (max-width: 760px) { .bulk-bar .lbl { display: none; } .bulk-bar .btn { padding-left: 10px; padding-right: 10px; } }
.tile.card .meta-line .dl:focus-visible { outline: 2px solid var(--orange, #ff4a1c); outline-offset: 1px; }

/* loading skeleton: the page's shape shows at once while the data comes (Burger, 23 Nov) */
.skel { min-height: 100vh; }
.skel-bar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 32px; border-bottom: 1px solid var(--line); }
.skel-page { padding: 32px; max-width: 1400px; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, rgb(255 255 255 / .05) 25%, rgb(255 255 255 / .10) 50%, rgb(255 255 255 / .05) 75%); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; }
.sk-logo { width: 150px; height: 26px; }
.sk-pill { width: 36px; height: 36px; border-radius: 50%; }
.sk-title { width: min(320px, 70%); height: 34px; margin-bottom: 12px; }
.sk-meta { width: min(220px, 50%); height: 14px; margin-bottom: 28px; }
.skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.skel-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding-bottom: 12px; }
.skel-card .sk-frame { aspect-ratio: 16 / 9; border-radius: 0; margin-bottom: 12px; }
.skel-card .sk-line { height: 14px; margin: 0 12px 8px; }
.skel-card .sk-line.short { width: 45%; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
@media (max-width: 760px) { .skel-bar, .skel-page { padding-left: 16px; padding-right: 16px; } .skel-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* one card everywhere: client, job, folder, deliverable (Burger, 23 Nov) */
.title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.title-row .name { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticon { flex: none; display: grid; place-items: center; width: 18px; height: 18px; color: var(--muted); }
.ticon .icon { width: 16px; height: 16px; stroke: none; fill: currentColor; }
.title-row .card-more { position: static; flex: none; opacity: 1; width: 32px; height: 32px; margin: -6px -6px -6px 0; background: none; border-radius: 8px; color: var(--muted); }
.title-row .card-more:hover { background: rgb(255 255 255 / .08); color: var(--fg); }
.tile.card .frame.is-logo { display: grid; place-items: center; padding: 18% 22%; background: var(--raised); border-bottom: 1px solid var(--line); }
.tile.card .frame.is-logo img { position: static; width: 100%; height: 100%; object-fit: contain; }
.tile.card .logo-word { font-size: 17px; text-align: center; }
.tile.card.is-empty .frame { background: rgb(255 255 255 / .03); }
.tile.card .status-row .st { font-size: 14px; }

/* phones: the cards become a list again (Burger, 23 Nov: "on the phone I liked the list") */
.tile.card .status-row { display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 760px) {
  .grid.list-on-phone { grid-template-columns: 1fr; gap: 0; }
  .list-on-phone > .tile.card { flex-direction: row; align-items: stretch; gap: 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 14px 0; overflow: visible; }
  .list-on-phone > .tile.card .frame { flex: none; width: 128px; aspect-ratio: 16 / 9; align-self: flex-start; border-radius: 8px; }
  .list-on-phone > .tile.card .frame.is-logo { padding: 10px 14px; border: 1px solid var(--line); }
  .list-on-phone > .tile.card .card-body { flex: 1; min-width: 0; padding: 0; gap: 4px; }
  .list-on-phone > .tile.card .status-row { padding: 0; background: none; margin-top: 0; }
  .list-on-phone > .tile.card.is-picked { border-color: var(--line); background: rgb(255 74 28 / .08); }
  .list-on-phone > .tile.card .kind { font-size: 11px; }
  .list-on-phone > .tile.card .new { transform: scale(.85); transform-origin: top right; }
}
@media (max-width: 760px) { .grid:has(> .tile.card) > * { min-width: 0; max-width: 100%; } .grid:has(> .tile.card):not(.list-on-phone) { grid-template-columns: 1fr; gap: 16px; } .tile.card .meta-line .dl { margin-right: 0; } }

/* tick boxes in Burger's style: dark grey, black outline, nothing around them (23 Nov) */
.pick { background: none; width: auto; height: auto; padding: 2px; }
.pick input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 5px; background: #3a3530; border: 1.5px solid #000; box-shadow: 0 1px 3px rgb(0 0 0 / .45); display: grid; place-items: center; }
.pick input:checked { background: var(--orange, #ff4a1c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2315120f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
/* offline: here for us, hidden from the client */
.tile.card.is-offline .frame img { opacity: .4; filter: grayscale(.6); }
.off-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 10px; border-radius: 999px; background: rgb(21 18 15 / .85); color: var(--fg); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.sheet.sheet-wide { max-width: 640px; }

@media (hover: none) { .pick { padding: 10px; margin: -8px 0 0 -8px; } }   /* a thumb-sized target on phones */

/* folder covers: up to four of what's inside (Burger, 23 Nov) */
.mosaic { position: absolute; inset: 0; display: grid; gap: 2px; background: #000; }
.mosaic.n2 { grid-template-columns: 1fr 1fr; }
.mosaic.n3, .mosaic.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic.n3 > span:first-child { grid-row: span 2; }
.mosaic > span { position: relative; overflow: hidden; background: var(--raised); }
.mosaic > span img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .frame .mosaic > span img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bar .bar-actions .bar-client { height: 22px; width: auto; max-width: 140px; object-fit: contain; opacity: .9; margin: 0 4px 0 var(--s3); }
@media (max-width: 760px) { .bar .bar-actions .bar-client { display: none; } }

.mail-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.mail-note .icon { width: 13px; height: 13px; }
.mail-note.is-bad { color: var(--orange, #ff4a1c); }

/* new version from the deliverable page; whole-page drop (Burger, 23 Nov) */
.decide-slot { align-items: center; }
.decide-slot .up-new { margin-right: var(--s2); }
.up-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; min-width: 300px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 10px; background: var(--raised, #262220); color: var(--text, #f3ede4); box-shadow: 0 8px 30px rgba(0,0,0,.4); font-size: 14px; }
.up-toast .up-track { height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.up-toast .up-track i { display: block; height: 100%; width: 0; background: var(--orange, #ff4a1c); transition: width .2s; }
.up-toast.is-bad span { color: var(--orange, #ff4a1c); }
body.is-dropping::after { content: ""; position: fixed; inset: 8px; border: 2px dashed var(--orange, #ff4a1c); border-radius: 14px; pointer-events: none; z-index: 70; }

/* the upload sheet's progress line shares the class "bar" with the top bar: undo the top bar's layout here */
.matches li .bar { position: static; display: block; padding: 0; border: 0; gap: 0; z-index: auto; }

/* Burger's and Lisa's own photo in the avatar (24 Nov) */
.avatar-me { overflow: hidden; }
.avatar-me img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* client views (Burger, 24 Nov) */
.view-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.view-note .icon { width: 13px; height: 13px; }
.view-note.is-none { opacity: .75; }

/* phone: the photo avatar keeps the 16px gutter instead of touching the edge (Burger, 24 Nov) */
@media (max-width: 760px) { .bar .avatar-me:last-child { margin-right: var(--s2); } .avatar-me img { object-position: 50% 30%; } }
