.agency-production {
  --production-gold: #f5d78b;
  --production-jade: #80ddba;
  color: #fff2d6;
  font: 600 clamp(11px,1.8vmin,14px)/1.2 Inter,system-ui,sans-serif;
  display:grid;
  grid-template-rows:auto auto auto minmax(0,1fr) auto;
  gap: .35rem;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  box-sizing:border-box;
  padding: clamp(5px,1.25vmin,12px);
  border: 1px solid #927d53;
  border-radius: 10px;
  background: #1c2b25;
}
.production-header,.production-footer,.production-heading {display:flex;align-items:center;gap:8px;min-width:0}
.production-header {justify-content:space-between}
.production-heading strong {font:700 clamp(14px,3.05vmin,24px)/1.04 Georgia,serif; color:#ffdf94}
.production-heading span {color:#dfd3b6;white-space:nowrap}
.production-brief {margin:0;color:#fff3d8}
.production-goal {color:#f5dd9f;font-size:.87em}
.production-time {
  position:relative;
  flex:0 0 clamp(37px,10vw,85px);
  text-align:center;
  padding:2px 3px 4px;
  color:#251b10;
  isolation:isolate;
  border:1px solid #bd9b58;
  border-radius:4px;
  background:#9d8150;
  font-variant-numeric:tabular-nums;
}
.production-time::before {position:absolute;content:"";inset:0 auto 0 0;width:var(--left,100%);background:#f0ca76;z-index:-1;border-radius:3px}
.production-stage {
  min-height:0;
  height:100%;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#111e19;
  border:1px solid #645638;
  border-radius:7px;
  touch-action:none;
}
.production-stage:focus-within {border-color:#d2bb79}
.production-stage button,.production-frame {font:inherit;margin:0;touch-action:none;color:inherit}
.production-stage button:focus-visible,.production-frame:focus-visible,.production-footer button:focus-visible {outline:2px solid #ffdf78;outline-offset:2px}
.production-camera-bed,.production-paper,.production-chart {
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#10171335,#10171373),var(--production-scene) center 49% / cover;
  pointer-events:none;
}
.production-stage--camera {cursor:crosshair}
.production-stage--camera::after {
  content:"";pointer-events:none;position:absolute;inset:0;z-index:0;
  box-shadow:0 0 0 1px #ffffff1a inset,0 0 28px 10px #061009a1 inset;
}
.production-subject,.production-frame,.production-safe,.production-layer,.production-star,.production-ghost,.production-output-proof span {
  position:absolute;
  left:var(--x,50%);
  top:var(--y,50%);
  transform:translate(-50%,-50%);
}
.production-subject {
  width:clamp(30px,22%,150px);
  height:clamp(24px,43%,145px);
  filter:drop-shadow(0 2px 1px #070b08) drop-shadow(0 0 6px #ffcd6f51);
  z-index:1;
  pointer-events:none;
}
.production-subject i {
  position:absolute;
  inset:0;
  clip-path:var(--subject-clip);
  background:var(--production-quest) var(--subject-position,center) / 235% auto;
}
.production-subject .production-streak {
  inset:30% 0;
  transform:rotate(-22deg);
  border-radius:50%;
  background:linear-gradient(90deg,#90ff9400,#73ff8c44 35%,#d9ffe1 85%,white);
  box-shadow:0 0 25px #78ff5b;
}
.production-stage.is-cue .production-subject {filter:drop-shadow(0 0 10px #ffca5d) drop-shadow(0 1px 1px #231606)}
.production-frame {
  box-sizing:border-box;
  width:29%;height:39%;
  outline:none;
  z-index:2;
  cursor:grab;
  border:1px solid #fff5cb;
  border-radius:3px;
  box-shadow:0 0 0 130vmax #080e0b67,inset 0 0 0 1px #11181063;
}
.production-frame::before,.production-frame::after {content:"";position:absolute;left:33.33%;inset-block:0;width:33.33%;border-inline:1px solid #fff4c76e;pointer-events:none}
.production-frame::after {inset-inline:0;top:33.33%;height:33.33%;width:auto;border-inline:0;border-block:1px solid #fff4c76e}
.production-frame i {position:absolute;left:50%;top:50%;width:10px;height:10px;transform:translate(-50%,-50%);border:1px solid #fff1d9;border-radius:50%}
.is-framed .production-frame {border:2px solid var(--production-jade)}
.is-framed .production-frame i {border-color:var(--production-jade);background:#80ddba45}
.production-camera-tag {
  position:absolute;top:4px;left:4px;right:4px;z-index:3;display:flex;justify-content:space-between;gap:5px;pointer-events:none
}
.production-camera-tag span,.production-camera-tag b,.production-format,.production-deliverables figcaption {background:#14251fea;border:1px solid #8f7c51;color:#fff5da;padding:3px 6px;border-radius:4px}
.production-camera-tag b {letter-spacing:.05em}
.is-rising .production-camera-tag b,.is-guided .production-camera-tag b {color:#f6dea1;border-color:#b79e52}
.is-cue .production-camera-tag b {color:#211208;background:#ffda77;border-color:#ffe4a1}
.production-stage--layout .production-paper {
  background:linear-gradient(90deg,#111d14a8,#151c1480),var(--production-quest) center 49% / cover;
}
.production-stage--layout[data-format="mobile"] .production-paper {
  inset:2% 23%;
  border:1px solid #e2c47b;
  border-radius:9px;
  background-position:center,center;
  box-shadow:0 0 0 40vw #121c15;
}
.production-stage--layout[data-format="display"] .production-paper {
  background:linear-gradient(0deg,#241c13 7%,#221e1069 60%,#1f1a1099),var(--production-scene) center / cover;
}
.production-format {
  position:absolute;top:3px;right:4px;
  pointer-events:none;
  font-size:.82em;
}
.production-safe {
  box-sizing:border-box;
  display:grid;place-items:center;
  width:clamp(52px,29%,180px);
  height:clamp(18px,26%,64px);
  background:#112820ad;
  border:1px dashed #eac979;
  box-shadow:inset 0 0 10px #191c12;
  border-radius:4px;
  opacity:var(--production-guides,1);
  font-style:normal;
  pointer-events:none;
}
.production-safe:empty::before {content:"+";color:#ffe2a0}
.is-guided .production-safe {opacity:1;border:2px dashed #ffe299}
.production-layer {
  max-width:32%;
  white-space:nowrap;
  z-index:2;
  min-height:clamp(20px,5vmin,42px);
  border:1px solid #e1c58a;
  border-radius:4px;
  padding:2px 6px;
  background:linear-gradient(#fae5a7,#cfab63);
  color:#271a10 !important;
  font-size:clamp(8px,1.6vmin,12px) !important;
  font-weight:800 !important;
  letter-spacing:-.025em;
  cursor:grab;
  box-shadow:0 2px 4px #000b;
}
.production-layer.is-placed,.production-handle.is-placed {border-color:#91edc8;background:#bdebd0;color:#15291d!important}
.production-stage--trim,.production-stage--edit {
  box-sizing:border-box;display:grid;
  grid-template-rows:minmax(0,1fr) minmax(24px,28%);
  gap:clamp(3px,1.2vmin,10px);
  padding:clamp(5px,1.1vmin,10px);
}
.production-stage--edit {grid-template-rows:minmax(0,1fr) minmax(0,1fr)}
.production-strip,.production-rushes,.production-timeline {display:grid;gap:4px;min-height:0;min-width:0}
.production-strip {grid-template-columns:repeat(5,minmax(0,1fr))}
.production-rushes,.production-timeline {grid-template-columns:repeat(3,minmax(0,1fr))}
.production-strip div,.production-rushes button,.production-timeline div,.production-output-edit i {
  display:flex;align-items:end;justify-content:center;text-align:center;
  font-style:normal;
  min-width:0;
  border:1px solid #978452;
  border-radius:4px;
  background:linear-gradient(0deg,#0d190dea,#16211b0d 77%),var(--shot-art,none) var(--shot-position,center) / cover;
}
.production-rushes button {cursor:grab;padding:0}
.production-strip span,.production-rushes span,.production-timeline span {padding:1px 2px;color:#ffedc6;background:#17221bbd}
.production-timeline div {min-width:0;border:1px dashed #d6b56d;align-items:center}
.production-timeline .is-cut {border:1px solid #8cdbb8;align-items:end}
.production-trim {position:relative;margin:0 16px;min-height:0;background:linear-gradient(#735a33,#453725);border-radius:3px}
.production-keep {position:absolute;inset:0 var(--cut-out,0%) 0 var(--cut-in,0%);background:#9bd2a343;border-block:1px solid #b6e0a7}
.production-cut-mark,.production-handle {
  position:absolute;left:var(--x,0%);transform:translateX(-50%);
}
.production-cut-mark {height:100%;border-left:1px dashed #e8d6af}
.production-cut-mark.is-cue {border-left:2px solid #ffe181}
.production-handle {
  top:50%;transform:translate(-50%,-50%);border:1px solid #f4ce78;border-radius:4px;padding:2px 4px;
  min-height:19px;background:#e2bd6c;color:#251a13 !important;cursor:ew-resize;
}
.production-ghost {background:#e1c583;color:#261909;border-radius:4px;padding:3px 6px;white-space:nowrap;pointer-events:none;z-index:4}
.production-chart {background:linear-gradient(135deg,#101d3be6,#102135a7),var(--production-quest) center / cover}
.production-ink {position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#d7fcaf;stroke-width:2.5;pointer-events:none;filter:drop-shadow(0 0 2px #bdffa9)}
.production-star {
  display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:50%;
  background:transparent;
  color:#eddda3!important;font-size:18px!important;cursor:crosshair;text-shadow:0 0 5px #ffedaf;
}
.production-star.is-cue {border:1px dashed #ffdc74;color:#ffe991!important;background:#ffcf6760}
.production-star.is-inked {color:#a6f4b0!important;text-shadow:0 0 6px #c3ffc7}
.production-deliverables {
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);height:100%;gap:4px;padding:4px;box-sizing:border-box;
}
.production-deliverables figure {position:relative;min-width:0;margin:0;overflow:hidden;border:1px solid #bb9b62;border-radius:4px}
.production-deliverables figcaption {position:absolute;bottom:2px;left:2px;font-size:.8em}
.production-output-still {background:var(--production-quest) var(--still-x,50%) var(--still-y,50%) / 220% auto}
.production-output-proof {background:linear-gradient(#131a1491,#111b1491),var(--production-quest) center / cover}
.production-output-proof span {font-size:clamp(7px,1.6vmin,12px);padding:2px;background:#f4db9b;color:#21160c;white-space:nowrap}
.production-output-edit {display:flex;padding:3px;gap:2px}
.production-output-edit i {flex:1;align-items:center;padding:2px;font-size:.78em;background-color:#2a3529}
.production-footer {justify-content:space-between}
.production-notes {display:grid;flex:1 1 140px;min-width:0;font-size:.87em}
.production-notes small {color:#dacb9c;font-size:.89em}
.production-footer button {
  flex:0 0 auto;
  min-height:clamp(28px,5vmin,42px);border:1px solid #e6bf68;border-radius:5px;background:#debc75;color:#24190f;
  font:800 clamp(10px,2vmin,14px)/1.1 Inter,system-ui,sans-serif;padding:2px clamp(4px,1.2vw,12px);
}
.production-footer .production-pause {background:#23392d;color:#f6de9c}
.production-footer button[hidden] {display:none}
.agency-production.is-paused .production-stage {filter:saturate(.55)}
@media (orientation:portrait) and (max-width:420px) {
  .production-stage--trim .production-strip span {font-size:9px}
  .production-brief {min-height:2lh}
  .production-layer {white-space:normal}
}
@media(max-height:390px) and (orientation:landscape) {
  .agency-production {gap:2px;padding:3px}
  .production-heading strong {font-size:13px}
  .production-brief,.production-notes {font-size:10px}
  .production-footer button {min-height:23px}
  .production-footer,.production-heading {gap:4px}
  .production-layer {min-height:17px}
  .production-camera-tag,.production-format {top:2px}
}
@media (prefers-reduced-motion:reduce) {
  .production-subject {filter:none}
  .production-stage.is-cue .production-subject {filter:drop-shadow(0 0 3px #ffca5d)}
}
.production-output-chart {background:linear-gradient(135deg,#101d3bdc,#1021358f),var(--production-quest) center / cover}
.agency-production .production-brief {color:#fff3d8}
.production-output-negative {
  position:absolute;
  left:var(--crop-left);
  top:var(--crop-top);
  width:344.8276%;
  height:256.4103%;
}
.production-output-negative .production-subject {width:22%;height:43%}
.production-subject .production-grower {
  clip-path:polygon(34% 0,61% 0,76% 10%,82% 31%,75% 54%,89% 63%,100% 87%,84% 100%,14% 100%,0 84%,26% 66%,32% 50%,23% 26%);
  background:var(--production-client) 61% 26% / 140% auto;
}
.production-subject .production-lantern {
  inset:19% 33%;
  min-width:11px;
  clip-path:none;
  border:1px solid #ffe6ab;
  border-radius:46% 46% 30% 30%;
  background:linear-gradient(90deg,#211b17 0 11%,#bd884e 11% 22%,#fff2c8 37% 66%,#d6a04f 70% 89%,#211b17 89% 100%);
  box-shadow:0 0 15px #ffbf5e9c;
}
.production-lantern::before,.production-lantern::after {
  position:absolute;content:"";inset:-10% 9% auto;height:12%;border-radius:4px 4px 1px 1px;background:#8f643c;border:1px solid #e6b477;
}
.production-lantern::after {inset:auto 9% -7%;height:10%;border-radius:1px 1px 4px 4px}
.production-contact {
  height:clamp(63px,17vmin,125px);
  padding:1px;
  color:#fff2d6;
  font:700 clamp(8px,1.8vmin,12px)/1.08 Inter,system-ui,sans-serif;
}
.production-stage--delivery .production-contact {height:100%;padding:4px}
.production-contact figure {
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  min-height:0;
  padding:0;
  background:#192822;
}
.production-contact figcaption {
  position:static;
  padding:3px 4px;
  border:0;
  border-radius:0;
  border-top:1px solid #a68c53;
  background:#21332a;
  font:inherit;
  color:#fff3d6;
}
.production-proof-canvas {position:relative;overflow:hidden;min-height:0}
.production-output-proof .production-proof-canvas {
  background:linear-gradient(#131a1491,#111b1491),var(--production-quest) center / cover;
}
.production-output-proof[data-proof-format="display"] .production-proof-canvas {
  background:linear-gradient(#131a1478,#111b1499),var(--production-scene) center / cover;
}
.production-output-proof[data-proof-format="mobile"] .production-proof-canvas::before {
  content:"";position:absolute;inset:2px 20%;border:1px solid #e2c47b;border-radius:4px;
  box-shadow:0 0 0 12vw #131c15a8;
}
.production-output-proof .production-proof-table {
  position:absolute;
  top:var(--y);left:var(--x);transform:translate(-50%,-50%);
  padding:2px 3px;border-radius:50%;background:#29221b;color:#fff5c9;
}
.production-output-proof .production-proof-canvas span {
  max-width:95%;
  white-space:normal;
  font-size:clamp(7px,1.55vmin,10px);
  line-height:1;
  border-radius:2px;
}
.production-output-chart .production-proof-canvas {
  background:linear-gradient(135deg,#101d3bdc,#1021358f),var(--production-quest) center / cover;
}
.production-output-chart circle {fill:#c5fbc6;stroke:none}
.production-proof-legacy-still {position:absolute;inset:0;background:var(--production-quest) var(--still-x) var(--still-y) / 220% auto}
.production-proof-empty {height:100%;display:grid;place-items:center;text-align:center;color:#deca9f}
.production-proof-strip {display:flex;position:absolute;inset:4px 3px 7px;gap:2px;min-height:0}
.production-proof-strip i {
  flex:1;
  align-items:end;
  padding:1px;
  font:inherit;
  font-size:max(6px,.75em);
  background:linear-gradient(0deg,#141d14ea,#16221a4a 64%),var(--proof-shot, var(--production-quest)) var(--shot-position) / cover;
  opacity:.43;
  overflow:hidden;
}
.production-proof-strip .is-kept {opacity:1;border-color:#8bdfb6}
.production-proof-strip i[data-empty] {background:#24332b}
.production-proof-trims {
  position:absolute;
  height:4px;
  left:3px;right:3px;bottom:2px;
  background:#6d6043;
}
.production-proof-trims::before {
  content:"";position:absolute;inset:0 calc(100% - var(--trim-out)) 0 var(--trim-in);
  background:#8ddcaa;
}
.production-proof-trims b {position:absolute;top:-2px;width:2px;height:8px;background:#ffe2a4}
.production-proof-trims b:first-child {left:var(--trim-in)}
.production-proof-trims b:last-child {right:calc(100% - var(--trim-out))}
[data-proof-media] > .production-contact,[data-proof-full] > .production-contact {height:100%}
@media (max-width:480px) and (orientation:portrait) {
  [data-proof-full] > .production-contact {
    grid-auto-flow:row;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
  }
  [data-proof-full] > .production-contact > :last-child {grid-column:1/-1}
}
