/* 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%; } }

/* avatars stay round on every page: a button's default padding squeezed the photo into an oval (Burger, 24 Nov) */
.avatar-me { padding: 0; flex: none; aspect-ratio: 1; }
.avatar-me img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }

/* Burger, 24 Nov 21:45: lighter studio pages; the small tab never wraps on any page */
.toast { width: max-content; max-width: calc(100vw - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mosaic { padding: 6px; gap: 6px; background: var(--raised); }
.mosaic > span { border-radius: 4px; background: var(--card); }
.mosaic > span img[src*="/covers/"], .tile .frame .mosaic > span img[src*="/covers/"] { object-fit: contain; padding: 8%; }
@media (max-width: 760px) {
  .toast { font-size: 13px; font-weight: 500; padding: 6px 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
  main.page .head h1, .studio-head .display, .studio-head h1 { font-family: var(--sans, inherit); font-stretch: normal; font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: 0; }
  main.page .head .meta, .studio-head .meta { font-size: 13px; }
  .bar .btn { height: 34px; padding: 0 12px; font-size: 14px; }
  .bar .btn .icon { width: 16px; height: 16px; }
  .tile.card .foot, .tile .foot { font-size: 13px; }
  .tile .st { font-size: 12.5px; padding: 6px 10px; }
  .tile .name, .tile h3 { font-size: 15px; }
  .grid, .tiles { gap: var(--s4); }
  .tile.card .frame { aspect-ratio: 16 / 9; }
  main.page .head h1 { font-variation-settings: normal; font-stretch: 100%; }
}

/* Wes, 24 Nov: real thumbnails fill the frame; placeholders sit whole; an empty folder is a quiet tile, never a black box */
.tile .frame > img:not([src*="/covers/"]), .tile .frame .mosaic > span img:not([src*="/covers/"]) { object-fit: cover; }
.tile .frame > img[src*="/covers/"] { object-fit: contain; }
.tile.card .frame:not(:has(img)):not(:has(.mosaic)) { background: var(--card); }
.tile.is-folder .frame:not(:has(img)):not(:has(.mosaic))::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 28px; margin: -14px 0 0 -18px; border: 1.5px solid var(--muted); border-radius: 4px; opacity: .5; }
.mosaic { background: transparent; }
.tile.card .frame:has(.mosaic) { background: var(--card); }

/* Burger, 24 Nov 21:52: each item takes less space: two small cards a row on the phone */
@media (max-width: 760px) {
  main.page .grid:has(> .tile.card):not(.list-on-phone) { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  main.page .grid:not(.list-on-phone) .tile.card .frame { aspect-ratio: 16 / 9; }
  main.page .grid:not(.list-on-phone) .card-body { padding: 8px 10px 10px; }
  main.page .grid:not(.list-on-phone) .card-body h3, main.page .grid:not(.list-on-phone) .card-body .title, main.page .grid:not(.list-on-phone) .tile .name { font-size: 13px; line-height: 1.25; }
  main.page .grid:not(.list-on-phone) .card-body .sub, main.page .grid:not(.list-on-phone) .card-body .meta { font-size: 11.5px; }
  main.page .grid:not(.list-on-phone) .foot, main.page .grid:not(.list-on-phone) .status-row { margin-top: 6px; padding: 0; background: none; font-size: 11.5px; flex-wrap: wrap; gap: 4px 8px; }
  main.page .grid:not(.list-on-phone) .st { padding: 0; font-size: 11.5px; background: none; }
  main.page .grid:not(.list-on-phone) .view-note, main.page .grid:not(.list-on-phone) .card-more { display: none; }
  main.page .grid:not(.list-on-phone) .card-body .ic-kind, main.page .grid:not(.list-on-phone) .title-row .icon { width: 14px; height: 14px; }
}
@media (max-width: 760px) {   /* Burger 21:56: card text scales down too */
  main.page .grid:has(> .tile.card):not(.list-on-phone) .title-row .name { font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
  main.page .grid:has(> .tile.card):not(.list-on-phone) .title-row .ticon .icon { width: 13px; height: 13px; }
  main.page .grid:has(> .tile.card):not(.list-on-phone) .title-row { gap: 6px; }
  main.page .grid:has(> .tile.card):not(.list-on-phone) .meta-line { font-size: 11px; margin-top: 2px; }
  main.page .grid:has(> .tile.card):not(.list-on-phone) .status-row, main.page .grid:has(> .tile.card):not(.list-on-phone) .foot, main.page .grid:has(> .tile.card):not(.list-on-phone) .st { font-size: 11px; }
  main.page .grid:has(> .tile.card):not(.list-on-phone) .card-body { padding: 8px 10px 10px; }
}
@media (max-width: 760px) {   /* Burger 22:01: smaller still, top bar buttons too */
  main.page .grid:has(> .tile.card):not(.list-on-phone) .title-row .name { font-size: 11.5px; }
  main.page .grid:has(> .tile.card):not(.list-on-phone) .meta-line, main.page .grid:has(> .tile.card):not(.list-on-phone) .status-row, main.page .grid:has(> .tile.card):not(.list-on-phone) .st { font-size: 10.5px; }
  main.page .grid:has(> .tile.card):not(.list-on-phone) { gap: 10px; }
  .bar .btn, .bar .btn-solid, .bar .btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
  .bar .btn .icon { width: 14px; height: 14px; }
  .bar .crumbs, .bar .crumb, .bar-crumbs { font-size: 14px; }
  main.page .head h1 { font-size: 18px; }
}
@media (max-width: 760px) {
  header.bar .bar-actions .btn { height: 30px; min-height: 0; padding: 0 10px; font-size: 12.5px; gap: 6px; }
  header.bar .bar-actions .btn.btn-icon { width: 30px; padding: 0; }
  header.bar .bar-actions .btn .icon { width: 14px; height: 14px; }
  header.bar .crumb-back { font-size: 14px; }
}
@media (max-width: 760px) {   /* Burger 22:05: slimmer New job button, text centred */
  header.bar .bar-actions .btn { height: 28px; padding: 0 10px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
  header.bar .bar-actions .btn > span, header.bar .bar-actions .btn > svg { display: block; line-height: 1; }
}

.comment, .reply { transition: background .9s ease; }
.comment.just-posted, .reply.just-posted { background: color-mix(in srgb, var(--accent, #ff5a1f) 10%, transparent); }

/* loaded-ahead bar and the stall note (Burger, 25 Nov) */
.scrub-buf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: color-mix(in srgb, var(--fg) 28%, transparent); transition: width .3s linear; }
.player-frame { position: relative; }
.stall-note { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 6px); max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px;
  background: rgba(11,11,12,.82); color: var(--fg); font-size: 12px; line-height: 1.3; text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 3; }
.stall-note.on { opacity: 1; transform: translate(-50%, 0); }

/* Client logos, one rule (Burger, 25 Nov): always solid white, and about the same visual size whatever the file's shape or padding */
.tile.card .frame.is-logo img { width: auto; height: auto; max-width: 64%; max-height: 54px; }
/* our ivory, not pure white (Burger, 25 Nov): the logo's own shape is the mask, the colour is the text colour */
.logo-mask { display: inline-flex; background: var(--fg); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo-mask > img { opacity: 0; }
.tile.card .frame.is-logo .logo-mask { width: 64%; height: 54px; max-width: 64%; }
.tile.card .frame.is-logo .logo-mask > img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.logo-mask:has(> .bar-client) { height: 22px; margin: 0 4px 0 var(--s3); opacity: .9; }
.logo-mask > .bar-client { height: 100%; width: auto; margin: 0; }

/* phone lists: status lines sit tight and even under the name, one line each, no pill padding (Burger, 25 Nov: "the cards opened up") */
@media (max-width: 760px) {
  .list-on-phone > .tile.card .status-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 2px; }
  .list-on-phone > .tile.card .status-row .st { display: inline-flex; padding: 0; min-height: 0; line-height: 1.5; background: none; }
}

/* top-right buttons never touch (Burger, 25 Nov: on the phone they sat right up against each other) */
.bar .bar-actions { gap: 8px; }
@media (max-width: 760px) { .bar .bar-actions { gap: 6px; } }

/* the logo mask: the picture underneath never shows, whatever other rule sets its opacity (Burger, 25 Nov: colour showed through) */
.logo-mask > img, .bar .bar-actions .logo-mask > .bar-client { opacity: 0 !important; }
/* a client's people wrap onto more lines instead of running off the screen */
.head .meta { flex-wrap: wrap; row-gap: 4px; }
.head .meta .people { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }

/* change marks (studio only, Burger 25 Nov): where this version changed; orange asked for, amber not asked for, a ring = listen */
.chmark { position: absolute; top: 50%; height: 10px; margin-top: -5px; border-radius: 3px; background: var(--accent); opacity: .85; cursor: pointer; z-index: 2; }
.chmark.is-unasked { background: #f0b04a; }
.chmark.has-ears { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg); }
.chline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 8px 2px 0; font-size: 12px; color: var(--fg-2); }
.chline .chl-h { color: var(--muted); margin-right: 2px; }
.chline .chl { border: 1px solid var(--line); background: none; color: var(--fg); border-radius: 999px; padding: 2px 8px; font: inherit; cursor: pointer; }
.chline .chl.is-asked { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.chline .chl.is-unasked { border-color: #f0b04a; color: #f0b04a; }
.chline .chl.is-on { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.chmark { pointer-events: auto; }

/* move picker: the job's folders as a tree (Google Drive style), other jobs below (Burger, 25 Nov) */
.pk-sheet .pk-list { display: flex; flex-direction: column; max-height: 60vh; overflow: auto; margin: 0 -8px; }
.pk-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-radius: 8px; background: none; color: var(--fg); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.pk-row:hover, .pk-row:focus-visible { background: var(--raised); }
.pk-row .muted { margin-left: auto; font-size: 12px; }
.pk-h { padding: 14px 14px 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.drag-count { position: fixed; top: -100px; left: 0; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #0b0b0c; font: 600 13px/1 var(--font, sans-serif); }
.tile.card.is-dragging { opacity: .5; }

/* documents as real text (Burger, 25 Nov): zoom in place, select words, numbered highlight comments */
.doc-page.is-text { aspect-ratio: auto; height: auto; max-height: none; background: none; box-shadow: none; cursor: auto; }
.dv { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.dv-bar { display: flex; align-items: center; gap: 6px; align-self: flex-end; font-size: 12px; color: var(--fg-2); }
.dv-b { min-width: 28px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--fg); font: inherit; cursor: pointer; }
.dv-pct { min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.dv-scroll { overflow: auto; max-height: calc(100vh - var(--topbar-h, 56px) - 200px); border-radius: 6px; touch-action: pan-x pan-y; }
.dv-page { position: relative; margin: 0 auto; background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.35); }
.dv-page canvas { display: block; }
.dv-page .textLayer { position: absolute; inset: 0; overflow: hidden; line-height: 1; opacity: 1; -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; z-index: 2; }
.dv-page .textLayer span, .dv-page .textLayer br { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.dv-page .textLayer ::selection { background: rgba(255, 74, 28, .35); }
.dv-hl { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.dv-mark { position: absolute; background: rgba(255, 196, 0, .32); border-bottom: 2px solid #f0b04a; pointer-events: auto; cursor: pointer; }
.dv-mark b { position: absolute; left: -10px; top: -12px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #0b0b0c; font: 700 11px/18px var(--font, sans-serif); text-align: center; }
.dv-mark.is-flash { animation: dvflash 1.2s ease; }
@keyframes dvflash { 0%, 60% { background: rgba(255, 74, 28, .55); } 100% { background: rgba(255, 196, 0, .32); } }
.dv-ask { position: absolute; z-index: 5; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--accent); color: #0b0b0c; font: 600 12px/1 var(--font, sans-serif); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.anum { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-right: 6px; padding: 0 4px; border: 0; border-radius: 999px; background: var(--accent); color: #0b0b0c; font: 700 11px/1 var(--font, sans-serif); cursor: pointer; vertical-align: 1px; }
.anchor-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; vertical-align: -2px; }
.doc-page.is-text { margin-top: 14px; }
#at .tc { font-family: inherit; letter-spacing: 0; text-transform: none; }
.dv-mark.is-pending { background: rgba(255, 74, 28, .28); border-bottom: 2px solid var(--accent); }
/* the text view takes the whole viewer, so Fit fills the space (Burger, 25 Nov: tiny page on a big screen) */
.viewer:has(> .doc-page.is-text) { display: block; width: 100%; }
.doc-page.is-text, .doc-page.is-text .dv { width: 100%; }
.dv-scroll { height: calc(100vh - var(--topbar-h, 56px) - 330px); min-height: 320px; max-height: none; scrollbar-gutter: stable both-edges; }
@media (max-width: 900px) { .dv-scroll { height: 70vh; } }

/* documents: the page gets the screen, the header slims down (Burger, 25 Nov: "give the text more real estate") */
.is-doctext .steps { transform: scale(.8); transform-origin: top center; margin-bottom: -14px; }
.is-doctext .item-head { margin: 0 0 6px; }
.is-doctext .item-head h1 { font-size: 20px; line-height: 1.2; }
.is-doctext .item-head .item-state, .is-doctext .stage-head { font-size: 12px; }
.is-doctext .doc-page.is-text { margin-top: 0; }

.is-doctext .dv-scroll { height: calc(100vh - 290px); min-height: 360px; }

/* zoom where you'll see it: a small floating bar centred on the bottom of the page (Burger, 25 Nov) */
.dv-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; align-self: auto;
  padding: 4px 6px; border-radius: 999px; background: rgba(11, 11, 12, .88); box-shadow: 0 4px 16px rgba(0,0,0,.35); color: var(--fg); }
.dv-bar .dv-b { border-color: rgba(239,230,216,.25); }
.share-form .who-new { display: grid; gap: var(--s4); } .share-form .who-new[hidden] { display: none; }
.sheet .sheet-body { margin: 4px 0 18px; color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.sheet .sheet-btns { display: grid; gap: 8px; }

/* one sheet style for every pop-up (Burger, 25 Nov): tight, tidy, the same as Share */
.sheet.sheet-sm { max-width: 420px; }
.sheet .sheet-head h2 { font-size: 18px; line-height: 1.3; }
.sheet .form { margin-top: 14px; gap: 14px; }
.sheet .form input:not([type=checkbox]):not([type=file]), .sheet .form select, .sheet .form textarea { width: 100%; box-sizing: border-box; }
.sheet .pk-list { margin: 8px -8px 0; }
.btn.is-danger { background: #c4321f; border-color: #c4321f; color: #fff; }

/* change marks sit on a thin line under the timeline, so the playhead stays in view (Burger, 26 Nov 17:01) */
#markers .chmark { top: auto; bottom: -7px; height: 3px; margin-top: 0; border-radius: 2px; opacity: .9; }
#markers .chmark.has-ears { box-shadow: none; outline: 1px solid var(--fg-2, #aaa); outline-offset: 1px; }
.chline .chl-note { color: var(--fg-2); }

/* speed button in the player bar (J K L, Burger 26 Nov) */
.player-bar .speed { min-width: 44px; padding: 0 8px; font: 600 12px/1 var(--mono, ui-monospace, monospace); color: var(--fg-2); }

/* Revoke right after Send to client (Burger, 27 Nov) */
.undo-bar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--surface-2, #1c1c1e); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 14px; color: var(--fg); max-width: calc(100vw - 32px); }

/* the approved tick on a cover: a dark disc with a lime tick, so it reads on white script pages too (Burger, 27 Nov) */
.cf-badge { background: rgba(21, 18, 15, .88); color: var(--lime); box-shadow: 0 0 0 1.5px var(--lime); }

/* iPhones zoom into any field with text under 16 px and stay zoomed after you post (Burger, 27 Nov): 16 px on touch screens */
@media (pointer: coarse) { input, textarea, select { font-size: 16px !important; } }

/* what's waiting for your review: an orange dot on the way there (Burger, 27 Nov) */
a.tile, a.card { position: relative; }
.wdot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); z-index: 3; pointer-events: none; }
