/* Client portal, studio page and development microsite. Uses the site's brand tokens from style.css. */
.app { min-height: 100vh; background: var(--ink); color: #fff; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--line); }
.app-top img { width: 4.2rem; height: auto; }
.app-top small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-2); }
.app-wrap { max-width: 1760px; margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.6rem) var(--gutter) 5rem; }
.app h1 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 3rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.app h2 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: .8rem; }
.app h3 { font-size: 1rem; font-weight: 500; margin: 1.6rem 0 .4rem; }
.app p, .app li, .app dd { font-weight: 300; }
.app input, .app textarea, .app select { width: 100%; font: inherit; font-size: .95rem; font-weight: 300; color: #fff; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem; color-scheme: dark; }
.app textarea { resize: vertical; }
.app input:focus-visible, .app textarea:focus-visible, .app select:focus-visible, .app button:focus-visible, .app a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.app label { display: grid; gap: .35rem; font-size: .8rem; color: var(--mist); }

.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.3rem; border-radius: 999px; border: 1px solid #fff; background: #fff; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.pt-btn:hover { background: #d2d1d1; border-color: #d2d1d1; }
.pt-btn:disabled { opacity: .5; cursor: not-allowed; }
/* Only a button that is genuinely working (Rendering…, Saving…, Sending…) shows the progress cursor. */
.pt-btn[aria-busy='true'] { cursor: progress; }
.dk-need { display: grid; gap: .6rem; justify-items: start; }
.dk-need p { margin: 0; }
.pt-chip { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: none; color: #fff; font: inherit; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.pt-chip:hover, .pt-chip[aria-pressed='true'] { background: rgba(255, 255, 255, .12); }
.pt-link { background: none; border: 0; padding: .3rem 0; color: var(--mist); font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pt-hint { font-size: .88rem; color: var(--mist-2); }
.pt-empty { color: var(--mist-2); padding: 1rem 0; }
.pt-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-top: .9rem; }
.pt-demo { margin-bottom: 1.4rem; padding: .7rem 1rem; border: 1px dashed rgba(255, 255, 255, .3); border-radius: 12px; font-size: .85rem; color: var(--mist); }
.pt-demo button { background: none; border: 0; color: #fff; text-decoration: underline; font: inherit; cursor: pointer; }
.pt-msg { max-width: 34rem; margin: 18vh auto; text-align: center; }
.pt-msg p { margin-top: 1rem; color: var(--mist); }
.pt-toast { position: fixed; left: 50%; bottom: 2rem; z-index: 600; translate: -50% 1rem; opacity: 0; padding: .8rem 1.3rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; transition: opacity .3s, translate .4s; }
.pt-toast.is-on { opacity: 1; translate: -50% 0; }

/* header and tabs */
.pt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.6rem 3rem; padding-bottom: 1.6rem; }
.pt-head .eyebrow { margin-bottom: 1rem; }
.pt-sub { margin-top: .5rem; color: var(--mist); }
.pt-facts { display: flex; gap: 2.2rem; margin: 0; }
.pt-facts dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-2); }
.pt-facts dd { margin: .3rem 0 0; font-size: 1.15rem; }
.pt-facts .is-warn dd { color: #ffb74d; }
.pt-tabs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .35rem; margin-bottom: 1.8rem; border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.pt-tabs button { padding: .7rem 1.15rem; border: 0; border-radius: 999px; background: none; color: #fff; font: inherit; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.pt-tabs button:hover { background: rgba(255, 255, 255, .1); }
.pt-tabs button[aria-pressed='true'] { background: #fff; color: var(--ink); }
.pt-tabs__link { padding: .7rem 1.1rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }

/* review */
.pt-review { display: grid; grid-template-columns: 14rem minmax(0, 1fr) 20rem; gap: 1.6rem; align-items: start; }
.pt-views { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pt-views button { width: 100%; display: grid; grid-template-columns: 4.4rem 1fr; gap: .8rem; align-items: center; padding: .5rem; border: 1px solid transparent; border-radius: 14px; background: none; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.pt-views button:hover { background: var(--ink-2); }
.pt-views button[aria-current='true'] { background: var(--ink-2); border-color: var(--line); }
.pt-views b { display: block; font-size: .92rem; font-weight: 500; line-height: 1.25; }
.pt-views small { display: block; margin-top: .2rem; font-size: .74rem; color: var(--mist-2); }
.pt-thumb { position: relative; aspect-ratio: 4/3; border-radius: 9px; overflow: hidden; background: var(--ink-3); display: grid; place-items: center; }
.pt-thumb img, .pt-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.pt-thumb__tag { position: absolute; left: .5rem; bottom: .5rem; padding: .2rem .55rem; border-radius: 999px; background: rgba(10, 11, 13, .8); color: #fff; font-size: .66rem; letter-spacing: .06em; }
.pt-thumb__k { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.pt-bar { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.pt-vers { display: inline-flex; gap: .3rem; padding: .25rem; border: 1px solid var(--line); border-radius: 999px; }
.pt-vers button { min-width: 2.8rem; padding: .5rem .8rem; border: 0; border-radius: 999px; background: none; color: #fff; font: inherit; font-size: .78rem; cursor: pointer; }
.pt-vers button[aria-pressed='true'] { background: #fff; color: var(--ink); }
.pt-board { position: relative; border-radius: 14px; overflow: visible; cursor: crosshair; background: #000; }
.pt-board > img { display: block; width: 100%; height: auto; border-radius: 14px; user-select: none; }
.pt-pin { position: absolute; z-index: 2; width: 1.9rem; height: 1.9rem; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 600; box-shadow: 0 0 0 3px rgba(22, 22, 22, .55), 0 6px 18px rgba(0, 0, 0, .4); cursor: default; }
.pt-pin.is-done { background: rgba(255, 255, 255, .45); }
.pt-pin--new { position: absolute; left: 0; top: 0; }
.pt-pop { position: absolute; z-index: 5; width: min(19rem, 80vw); display: grid; gap: .5rem; padding: 2.4rem .9rem .9rem; border-radius: 14px; background: rgba(28, 28, 28, .97); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transform: translate(var(--fx, 0%), var(--fy, 0%)); cursor: default; }
.pt-pop .pt-pin--new { left: .95rem; top: .95rem; translate: 0 0; }
.pt-pop__row { display: flex; justify-content: space-between; align-items: center; }
.pt-media { display: block; width: 100%; border-radius: 14px; background: #000; }
.pt-pano { aspect-ratio: 16/9; border: 0; }
.pt-note { margin-top: .9rem; font-size: .9rem; color: var(--mist); }
.pt-note b { font-weight: 500; color: #fff; }
.pt-side { position: sticky; top: 1.2rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); }
.pt-comments { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; }
.pt-comments li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .7rem; }
.pt-comments li.is-done { opacity: .55; }
.pt-comments .pt-pin-n { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 600; }
.pt-comments small { display: block; margin-top: .25rem; font-size: .74rem; color: var(--mist-2); }
.pt-reply { margin-top: .4rem; padding: .5rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: .88rem; }
.pt-approve { display: grid; gap: .55rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.pt-approved { display: grid; gap: .2rem; margin-top: 1.6rem; padding: .9rem 1rem; border-radius: 12px; background: rgba(62, 207, 142, .12); border: 1px solid rgba(62, 207, 142, .5); }
.pt-approved b { font-weight: 500; color: #7fe0b5; }
.pt-approved small { color: var(--mist); }
.ba--free { aspect-ratio: 16/9; border-radius: 14px; }
.ba--free img { object-fit: contain; }
.ba--fit img { object-fit: cover; }

/* change list, status, pack */
.pt-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: start; }
.pt-cols > section > textarea, .pt-cols > section > input { margin-top: .8rem; }
.pt-list { margin: .8rem 0 0; padding-left: 1.4rem; display: grid; gap: .5rem; }
.pt-list li { padding-left: .3rem; }
.pt-list li > input { width: calc(100% - 5rem); display: inline-block; vertical-align: middle; }
.pt-list li > button { margin-left: .6rem; }
.pt-card { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); margin-bottom: .9rem; }
.pt-card small { display: block; color: var(--mist-2); font-size: .76rem; margin-bottom: .4rem; }
.pt-card ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .3rem; }
.pt-card h3 { margin: .9rem 0 .2rem; }
.pt-card__img { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--ink-3); display: grid; place-items: center; }
.pt-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pt-steps li { position: relative; display: grid; gap: .15rem; padding: 0 0 1.4rem 2.2rem; color: var(--mist-2); }
.pt-steps li::before { content: ''; position: absolute; left: 0; top: .25rem; width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); }
.pt-steps li::after { content: ''; position: absolute; left: .5rem; top: 1.35rem; bottom: .1rem; width: 1px; background: var(--line); }
.pt-steps li:last-child::after { display: none; }
.pt-steps li.is-done { color: var(--mist); }
.pt-steps li.is-done::before { background: rgba(255, 255, 255, .55); border-color: transparent; }
.pt-steps li.is-now { color: #fff; }
.pt-steps li.is-now::before { background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .15); }
.pt-steps b { font-weight: 500; font-size: 1.05rem; }
.pt-big { font-size: 1.3rem; line-height: 1.35; }
.pt-pack { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1.2rem; }
.pt-dl { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }

/* finish chooser and planning */
.pt-finish, .pt-plan { margin-bottom: 2.6rem; }
.pt-finish__head { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.pt-finish__head h2 { margin: 0; }
.pt-finish__img { border-radius: 14px; overflow: hidden; background: #000; }
.pt-finish__img img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: cover; transition: opacity .18s; }
.pt-finish__img img.is-fading { opacity: 0; }

/* development microsite */
.ms-hero { position: relative; min-height: 78vh; display: grid; align-items: end; border-radius: 0 0 22px 22px; overflow: hidden; margin: calc(-1 * clamp(1.4rem, 3vw, 2.6rem)) calc(-1 * var(--gutter)) 0; }
.ms-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.ms-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 22, 22, .8), rgba(22, 22, 22, 0) 55%); }
.ms-hero__copy { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(2rem, 6vh, 4rem); }
.ms-hero__copy h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 5.2rem); }
.ms-hero__copy p { margin-top: .6rem; font-size: 1.1rem; color: var(--mist); }
.ms-intro { max-width: 40ch; margin: clamp(3rem, 7vw, 6rem) auto; font-size: clamp(1.3rem, 1rem + 1vw, 2rem); line-height: 1.3; text-align: center; text-wrap: balance; }
.ms-sec { margin: clamp(3rem, 6vw, 5rem) 0; }
.ms-sec > h2 { font-size: clamp(1.4rem, 1rem + 1vw, 2rem); font-weight: 400; margin-bottom: 1.4rem; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 1.2rem; }
.ms-grid figure { margin: 0; }
.ms-grid img { width: 100%; height: auto; border-radius: 14px; display: block; }
.ms-grid figcaption { margin-top: .6rem; font-size: .9rem; color: var(--mist); }
.ms-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--mist-2); }
.ms-credit { display: inline-flex; align-items: center; gap: .6rem; color: var(--mist); }

/* studio page */
/* a slim rail of schemes; the chosen scheme has a compact header, then tabs (Views, Details, Finishes, Change lists) */
.st-grid { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.st-rail { display: grid; gap: .8rem; min-width: 0; }
.st-new summary { cursor: pointer; font-size: .9rem; }
.st-rail .st-new { padding: .8rem .95rem; margin: 0; }
.st-pick { display: none; }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.st-list button { width: 100%; text-align: left; padding: .6rem .75rem; border-radius: 10px; border: 1px solid transparent; background: none; color: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.st-list button[aria-current='true'], .st-list button:hover { background: var(--ink-2); border-color: var(--line); }
.st-list b { display: block; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.st-list small { display: block; color: var(--mist-2); font-size: .72rem; margin-top: .15rem; }
.st-warn { color: #ffb74d; }
.st-list small.st-warn { color: #ffb74d; }
.st-ok { color: #7fe0b5; }
.st-main { min-width: 0; }
.st-head { display: grid; gap: .7rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); margin-bottom: 1rem; }
.st-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.2rem; }
.app .st-head__title { margin: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); font-weight: 400; overflow-wrap: anywhere; }
.st-head__title small { font-size: .9rem; color: var(--mist); }
.st-head__facts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; font-size: .85rem; color: var(--mist); }
.app .st-stage { width: auto; padding: .45rem .7rem; font-size: .85rem; }
.st-head__hint { margin: 0; font-size: .78rem; }
.st-spend { font-size: .82rem; color: var(--mist); cursor: help; }
.st-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.st-tabs { display: flex; flex-wrap: wrap; gap: .3rem; padding: .3rem; margin-bottom: 1.1rem; border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.st-tabs button { padding: .6rem 1rem; border: 0; border-radius: 999px; background: none; color: #fff; font: inherit; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.st-tabs button:hover { background: rgba(255, 255, 255, .1); }
.st-tabs button[aria-selected='true'] { background: #fff; color: var(--ink); }
.st-panel:focus { outline: none; }
.st-panel:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 12px; }
.st-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.st-form .st-wide { grid-column: 1 / -1; }
.st-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.app .st-tick { display: flex; gap: .6rem; align-items: center; font-size: .9rem; color: #fff; }
.st-sec { padding: 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); margin-bottom: 1.2rem; }
.st-sec > h2 { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* view cards */
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; align-items: start; }
.st-card { display: grid; gap: .7rem; padding: .7rem; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); min-width: 0; }
.st-card .pt-thumb { aspect-ratio: 16/10; border-radius: 10px; }
.st-card__body { display: grid; gap: .35rem; padding: 0 .3rem .3rem; min-width: 0; }
.app .st-card h3 { margin: 0; font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.st-card small { font-size: .78rem; color: var(--mist-2); }
.st-card .pt-chip { margin-top: .2rem; }
.st-more { margin-top: .3rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.st-more > summary { cursor: pointer; font-size: .85rem; color: var(--mist); }
.st-more[open] > summary { margin-bottom: .2rem; }
.st-card--add { align-self: stretch; padding: 0; border-style: dashed; background: none; }
.st-card--add > summary { display: grid; place-items: center; min-height: 9rem; height: 100%; padding: 1rem; border-radius: 16px; cursor: pointer; font-size: .9rem; color: var(--mist); list-style: none; }
.st-card--add > summary::-webkit-details-marker { display: none; }
.st-card--add > summary:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.st-card--add[open] { grid-column: 1 / -1; padding: 0 1.2rem 1.2rem; }
.st-card--add[open] > summary { min-height: 0; place-items: start; padding: 1rem 0 0; color: #fff; }
.st-comment { margin-top: .6rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: .9rem; overflow-wrap: anywhere; }
.st-comment.is-done { opacity: .5; }
.st-comment__row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.st-comment__row input { flex: 1 1 100%; }
.st-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.st-lib figure { margin: 0; }
.st-lib img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.st-lib figcaption { margin-top: .4rem; font-size: .82rem; color: var(--mist); }

@media (max-width: 1100px) {
  .pt-review { grid-template-columns: minmax(0, 1fr); }
  .pt-views { grid-auto-flow: column; grid-auto-columns: minmax(13rem, 1fr); overflow-x: auto; padding-bottom: .4rem; }
  .pt-side { position: static; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-rail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .st-pick { display: block; }
  .st-list { display: none; }
}
@media (max-width: 760px) {
  .pt-cols, .st-form, .st-pair { grid-template-columns: minmax(0, 1fr); }
  .st-rail { grid-template-columns: minmax(0, 1fr); }
  .st-tabs { border-radius: 18px; }
  .st-head { padding: .9rem; }
  .st-head .pt-chip { min-height: 2.1rem; padding: 0 .75rem; font-size: .66rem; letter-spacing: .08em; }
  .pt-facts { gap: 1.4rem; flex-wrap: wrap; }
  .pt-tabs { border-radius: 18px; }
  .ms-hero { min-height: 62vh; }
}

/* render desk (js/desk.js, js/desk-amend.mjs): a full-width dialog over the studio.
   Step bar on top, big image + one step's controls in the side panel, drafts as a filmstrip along the bottom. */
.dk { width: min(100% - 2rem, 1760px); max-width: none; max-height: calc(100% - 2rem); margin: auto; padding: clamp(1rem, 2.4vw, 2rem); border: 1px solid var(--line); border-radius: 16px; background: var(--ink); color: #fff; overflow: auto; }
.dk::backdrop { background: rgba(0, 0, 0, .72); }
.dk h2 { margin-bottom: 0; }
.dk h3 { display: flex; align-items: baseline; gap: .5rem; margin: 0; font-size: 1.05rem; font-weight: 500; }
.dk h3:focus { outline: none; }
.dk h4 { margin: 0; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.dk-num { color: var(--mist); font-weight: 400; }
.dk-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.dk-head .eyebrow { margin-bottom: .4rem; }
.dk-head h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 400; }
.dk-spend { margin: .35rem 0 0; font-size: .8rem; }

/* step bar: ① Base ── ② Style ── ③ Render ── ④ Refine ── ⑤ Send */
.dk-nav { max-width: 100%; margin-bottom: 1.2rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dk-steps { list-style: none; margin: 0; padding: .3rem; display: flex; align-items: center; gap: .3rem; width: fit-content; border: 1px solid var(--line); border-radius: 999px; }
.dk-steps li { flex: 0 0 auto; display: flex; align-items: center; gap: .3rem; }
.dk-steps li + li::before { content: ''; width: 1.1rem; height: 1px; background: var(--line); }
.dk-stepbtn { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 999px; background: none; color: var(--mist); font: inherit; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.dk-stepbtn .dk-num { color: inherit; font-size: .95rem; letter-spacing: 0; }
.dk-stepbtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dk-stepbtn.is-done { color: #fff; }
.dk-stepbtn[aria-current='step'] { background: #fff; color: var(--ink); }
.dk-done { color: #7fe0b5; letter-spacing: 0; }
.dk-stepbtn[aria-current='step'] .dk-done { color: #1d7a52; }
.dk-badge { padding: .15rem .55rem; border-radius: 999px; background: rgba(201, 168, 106, .18); color: var(--brass-2); font-size: .68rem; letter-spacing: .04em; text-transform: none; }

/* big image and side panel */
.dk-main { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 1.2rem; align-items: start; margin-bottom: 1.2rem; }
.dk-left { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; position: sticky; top: 0; align-self: start; }
.dk-left .dk-strip { margin: 0; }
.dk-stage { min-width: 0; display: grid; justify-items: center; }
.dk-fig { margin: 0; display: grid; gap: .5rem; justify-items: center; max-width: 100%; }
.dk-frame { position: relative; width: fit-content; max-width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.dk-pic { display: block; width: auto; height: auto; max-width: 100%; max-height: 56vh; user-select: none; -webkit-user-drag: none; }
.dk-draw { cursor: crosshair; touch-action: none; }
.dk-box { position: absolute; outline: 2px dashed #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); pointer-events: none; }
.dk-box:focus-visible { outline: 3px solid #fff; }
.dk-box.is-fixed { box-shadow: 0 0 0 2px rgba(0, 0, 0, .55); }
.dk-cmpwrap { display: grid; gap: .6rem; justify-items: center; width: 100%; }
.dk-cmp .dk-cmp__after { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 0 0 var(--pos)); pointer-events: none; }
.dk-cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.dk-tag { position: absolute; top: .6rem; left: .6rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(10, 11, 13, .75); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.dk-tag--r { left: auto; right: .6rem; }
.dk .dk-range { width: min(100%, 28rem); padding: 0; border: 0; background: none; accent-color: #fff; }

.dk-side { min-width: 0; margin: 0; padding: 1.3rem; }
.dk-panel, .dk-amend { display: grid; gap: 1rem; }
/* Each group of controls sits between dividers with the same space above and below. */
.dk-group { display: grid; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.dk-pair { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; }
.dk-pair > div { display: grid; gap: .6rem; align-content: start; }
.dk-step { display: grid; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.dk-side .pt-hint { margin: 0; font-size: .8rem; }
.dk-what { display: grid; gap: .15rem; margin: 0; font-size: .9rem; }
.dk-what b { font-weight: 500; }
.dk-sent { margin: 0; padding: .75rem .9rem; border-radius: 10px; background: rgba(62, 207, 142, .12); border: 1px solid rgba(62, 207, 142, .5); color: #7fe0b5; }
.dk-folds { display: grid; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.dk-folds[hidden] { display: none; }
.dk-fold { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .75rem 0; font-size: .82rem; color: var(--mist); }
.dk-fold + .dk-fold { border-top: 1px solid var(--line); }
.dk-fold p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.dk-fold .dk-num { margin-right: .4rem; }
.dk-fold b { font-weight: 500; color: #fff; }
.dk-fold .pt-link { flex: 0 0 auto; }
.dk-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.dk-form { display: grid; gap: .5rem; }
.dk .dk-tick { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #fff; }
.dk-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.dk-job { padding: .55rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: .85rem; }
.dk-job b { font-weight: 500; }
.dk-job.is-bad { color: #ff8a8a; }
.dk-job.is-ok { color: #7fe0b5; }

/* style sheet reference photos */
.dk-refs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.dk-refs:empty { display: none; }
.dk-refs li { position: relative; width: 4.6rem; }
.dk-refs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.dk-x { position: absolute; top: .2rem; right: .2rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(10, 11, 13, .82); color: #fff; font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.dk-x:hover { background: #000; }
/* a real file input, hidden; a styled button opens it */
.dk .dk-file { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }

/* drafts filmstrip */
.dk-strip { padding: 1.1rem 1.3rem; }
.dk-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: .8rem; }
.dk-strip__head h2 { margin: 0; font-size: 1rem; }
.dk-film { list-style: none; margin: 0; padding: .2rem .2rem .6rem; display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dk-film li { position: relative; flex: 0 0 auto; scroll-snap-align: start; }
.dk-tile__x { top: .7rem; right: .7rem; }
.dk-stage__x { top: .7rem; right: .7rem; width: 2.2rem; height: 2.2rem; font-size: 1.3rem; }
.dk-tile { width: 10.5rem; height: 100%; display: grid; gap: .35rem; align-content: start; padding: .4rem; border: 1px solid var(--line); border-radius: 12px; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.dk-tile:hover { background: rgba(255, 255, 255, .05); }
.dk-tile[aria-pressed='true'] { border-color: #fff; box-shadow: 0 0 0 1px #fff; background: rgba(255, 255, 255, .06); }
.dk-tile img, .dk-tile__ph { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; background: var(--ink-3); }
.dk-tile__ph { display: grid; place-items: center; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.dk-tile span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; line-height: 1.3; }
.dk-tile small { font-size: .72rem; color: var(--mist); }
.dk-tile.is-sent small, .dk-tile.is-client small { color: #7fe0b5; }
/* A film draft's tile: the clip's first frame with a "Film" badge. */
.dk-tile .dk-tile__film { position: relative; display: block; overflow: visible; }
.dk-tile__film video { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; background: var(--ink-3); pointer-events: none; }
.dk-tile .dk-filmtag { position: absolute; top: .35rem; left: .35rem; display: block; padding: .1rem .45rem; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.dk-tile.is-pending { cursor: default; border-style: dashed; }
.dk-help { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .82rem; }
@media (max-width: 860px) {
  .dk { width: 100%; max-height: 100%; border-radius: 0; }
  .dk-main { grid-template-columns: minmax(0, 1fr); }
  .dk-left { position: static; }
  .dk-side, .dk-strip { padding: 1rem; }
  .dk-tile { width: 8.5rem; }
}
