.result-paper #save-state:empty {display:none}

/* Prints sit on the studio's existing observation surface. */
.take-prints {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  container:take-screen / size;
  overflow:hidden;
}
.take-print {
  --take-print-ratio:1.7777778;
  --print-edge:clamp(3px,.65cqw,8px);
  box-sizing:border-box;
  position:relative;
  min-width:0;
  width:min(100%,calc(var(--take-art-height) * var(--take-print-ratio) + 2 * var(--print-edge) + 2px));
  margin:0;
  padding:var(--print-edge);
  border:1px solid #d3bea0;
  border-radius:3px;
  background:linear-gradient(#fffaf1e0,#fff4e2c4),var(--paper) center/330px;
  box-shadow:0 2px 0 #c9b497,2px 7px 14px #563b2859;
  color:#5d4534;
}
.take-single {
  --take-art-height:max(26px,calc(100cqh - 2 * var(--print-edge) - 28px));
  max-width:88%;
}
.take-single figcaption {display:none}
.take-window {
  position:relative;
  display:block;
  width:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:1px;
  background:#e9dfca;
  color:inherit;
  cursor:zoom-in;
}
.take-window .still {
  position:relative;
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  margin:0;
  overflow:hidden;
  border:0;
  border-radius:1px;
  background:transparent;
  aspect-ratio:var(--take-print-ratio);
}
.take-window .still > :is(img,svg) {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
}
.take-window .crop,.take-thumb .crop {display:none}
.take-magnifier {
  position:absolute;
  right:5px;
  bottom:5px;
  display:grid;
  place-items:center;
  width:27px;
  height:25px;
  border:1px solid #fff4d781;
  border-radius:4px;
  background:#513b2cbd;
  color:#fff7e5;
}
.take-window:hover .take-magnifier {background:#423025}
.take-print figcaption {
  justify-content:space-between;
  gap:1px 5px;
  padding-top:5px;
  color:#56402f;
  font:700 12px/1.3 var(--font-cn);
}
.take-print:not(.take-single) figcaption {display:flex;flex-wrap:wrap}
.take-print figcaption b {font-family:var(--font-mono)}

/* The console's paper backing carries a vertical strip of the available versions. */
.studio-desk .console.take-record {
  contain:size;
  min-width:0;
  justify-content:flex-start;
  gap:9px;
}
.studio-desk .console .take-record-head {
  flex:none;
  flex-wrap:nowrap;
  gap:5px;
  margin:0;
  padding:5px 9px 7px;
  border-bottom:1px dashed #b59a745e;
}
.take-record-head h2 {
  margin:0;
  color:var(--ink);
  font:850 clamp(15px,1.38cqw,22px)/1.2 var(--font-round);
  white-space:nowrap;
}
.take-ticket {
  flex:none;
  transform:rotate(4deg);
  padding:4px 7px 3px;
  border:2px solid #a94934;
  border-radius:2px;
  color:#9f412f;
  font:800 clamp(13px,1.4cqw,19px)/1 var(--font-mono);
}
.take-meta {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 7px;
  color:#6d5039;
  font:650 12px/1.35 var(--font-cn);
}
.take-status {
  display:inline-flex;
  flex:none;
  align-items:center;
  gap:3px;
  padding:2px 6px;
  border:1px solid #c9a573;
  border-radius:3px;
  background:#f1d89d var(--grain) center/220px;
  background-blend-mode:multiply;
  color:#704820;
  white-space:nowrap;
}
.take-status.sent {border-color:#9bad90;background-color:#dce6cc;color:#35553e}
.take-versions {display:flex;flex:1 1 auto;min-width:0;min-height:0}
.take-strip {
  box-sizing:border-box;
  flex:1;
  min-width:0;
  min-height:0;
  padding:5px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-color:#ad8a62 transparent;
  scrollbar-width:thin;
  border:1px solid #ccb58f;
  border-radius:6px;
  background:linear-gradient(120deg,#e9d7b982,#fff6e391),var(--paper) center/350px;
  box-shadow:inset 0 2px 5px #77513225,0 1px #fff9ea;
}
.take-thumb {
  position:relative;
  display:grid;
  grid-template-columns:minmax(35px,67px) minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  min-width:0;
  padding:5px 7px;
  border:1px solid #bda17d;
  border-radius:4px;
  background:linear-gradient(113deg,#fff7e7ed,#f4e4c7bc),var(--paper) center/287px;
  box-shadow:0 2px 0 #ab865d66;
  color:#5c412d;
  text-decoration:none;
}
.take-thumb + .take-thumb {margin-top:7px}
.take-thumb[aria-current] {
  border-color:#ad573e;
  background:linear-gradient(110deg,#f3d7addf,#fff0d4cf),var(--paper) center/287px;
  box-shadow:inset 4px 0 #a04c32,inset 0 0 0 1px #ad573e,0 2px 0 #ae755a77;
}
.take-thumb[data-on-mat]:not([aria-current]) {
  border-color:#839273;
  background:linear-gradient(115deg,#e1e9d1e6,#f4f3dde0),var(--paper) center/287px;
  box-shadow:inset 3px 0 #769069,0 2px 0 #8f9b7666;
}
.take-thumb[data-can-place] {padding-inline-end:20px}
.take-thumb[data-can-place]::after {
  content:"+";
  position:absolute;
  top:4px;
  right:4px;
  display:grid;
  place-items:center;
  width:14px;
  height:14px;
  border-radius:2px;
  background:#e1e8d1;
  color:#3d5944;
  font:800 12px/1 var(--font-mono);
}
.take-thumb[data-can-place][data-on-mat]::after {content:"−";background:#c9d9bd}
.take-thumb:hover {filter:brightness(1.035)}
.take-thumb:focus-visible {outline-offset:-2px}
.take-thumb-film {
  position:relative;
  display:block;
  min-width:0;
  padding:6px 4px;
  border:1px solid #4c362b;
  border-radius:3px;
  background:linear-gradient(150deg,#64503d,#362823);
}
.take-thumb-film::before,.take-thumb-film::after {
  content:"";
  position:absolute;
  left:3px;
  right:3px;
  height:2px;
  background:repeating-linear-gradient(90deg,#e5bf92 0 3px,transparent 3px 7px);
}
.take-thumb-film::before {top:2px}
.take-thumb-film::after {bottom:2px}
.take-thumb .still {
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:16/10;
  margin:0;
  overflow:hidden;
  border:0;
  border-radius:1px;
  background:#4f382c;
}
.take-thumb .still > :is(img,svg) {width:100%;height:100%;object-fit:cover}
.take-thumb-label {
  display:flex;
  min-width:0;
  flex-wrap:wrap;
  align-items:baseline;
  gap:2px 7px;
  color:#5c412d;
  font:750 12px/1.3 var(--font-cn);
}
.take-thumb-label b {font:800 14px/1.2 var(--font-mono)}
.take-thumb-label small {font-size:11px}
.take-thumb-sent {display:grid;place-items:center;color:#3d644a}

.take-switch {
  position:relative;
  display:flex;
  flex:none;
  align-items:center;
  gap:7px;
  cursor:pointer;
  color:#5c4433;
  font:750 12px/1.3 var(--font-cn);
}
.take-switch input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.take-switch > span {
  display:flex;
  flex:none;
  align-items:center;
  width:31px;
  height:18px;
  border:1px solid #9d7959;
  border-radius:12px;
  background:#b79973 var(--grain) center/170px;
  background-blend-mode:multiply;
  box-shadow:inset 0 1px 2px #62482d7a;
  transition:background-color .2s;
}
.take-switch > span::after {
  content:"";
  width:12px;
  height:12px;
  margin-left:2px;
  border-radius:50%;
  background:#fff5dc;
  box-shadow:0 1px 1px #40291760;
  transition:transform .22s ease;
}
.take-switch input:checked + span {background-color:#729170}
.take-switch input:checked + span::after {transform:translateX(12px)}
.take-switch:has(input:focus-visible) {outline:2px solid #8a5035;outline-offset:3px}
.take-compare-hint {margin:-5px 0 0;color:#6c5945;font:650 11px/1.3 var(--font-cn)}
.take-actions {display:grid;flex:none;gap:6px;margin-top:auto}
.take-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  min-height:38px;
  padding:5px 8px;
  border:1px solid #b89a71;
  border-radius:6px;
  background:linear-gradient(#fff6e3e0,#f3ddbbab),var(--paper) center/330px;
  box-shadow:0 2px #b3946d;
  color:#523822;
  font:750 14px/1.25 var(--font-cn);
  text-align:center;
  text-decoration:none;
  cursor:pointer;
}
.take-action.primary {
  border-color:#9c3f2c;
  background:#b94e39 var(--grain) center/250px;
  background-blend-mode:multiply;
  box-shadow:inset 0 1px #d8846d,0 2px #973d2b;
  color:#fff8e9;
}
.take-action:hover {filter:brightness(1.06)}
.take-action:active {transform:translateY(1px)}

.take-prompt {
  grid-area:roll;
  position:relative;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  margin-block-start:clamp(13px,2dvh,21px);
  padding:clamp(12px,1.9dvh,19px) clamp(13px,2.15cqw,30px) clamp(10px,1.6dvh,17px);
  border:1px solid #bb9b70;
  border-radius:4px;
  background:linear-gradient(102deg,#fff8e9ed,#f8eacee8),var(--paper) center/360px;
  box-shadow:inset 0 0 0 2px #fff9e795,0 2px 0 #d4b992,0 4px 0 #ead9ba,1px 7px 12px #53382030;
  color:#4a3526;
}
.studio-desk .take-prompt .pins i {
  top:-6px;
  width:clamp(12px,1.4cqw,16px);
  height:clamp(12px,1.4cqw,16px);
  border:1px solid #88432e;
  background:radial-gradient(circle at 33% 25%,#eeb289,#c16c4f 34%,#954730 72%);
  box-shadow:0 2px 0 #723b29,1px 4px 5px #68452e69;
}
.studio-desk .take-prompt .pins i:first-child {left:clamp(13px,2.15cqw,30px)}
.studio-desk .take-prompt .pins i:last-child {right:clamp(13px,2.15cqw,30px)}
.take-prompt-head {
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:6px;
  border-bottom:1px solid #d6b78d;
}
.take-prompt-head h2 {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  color:#733b2a;
  font:850 clamp(17px,1.65cqw,24px)/1.25 var(--font-round);
}
.take-prompt-head .icon {flex:none}
.take-prompt-version {
  padding:2px 6px;
  border:1px solid #c9a77d;
  border-radius:3px;
  background:#f4e4c6;
  color:#744a34;
  font:750 12px/1 var(--font-mono);
  white-space:nowrap;
}
.take-prompt-body {
  max-block-size:clamp(48px,16dvh,158px);
  margin-top:7px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-color:#ba9671 transparent;
  scrollbar-width:thin;
  cursor:default;
  font:550 clamp(14px,1.28cqw,18px)/1.65 var(--font-cn);
}
.take-prompt-body:focus-visible {outline:2px solid #93684a;outline-offset:3px;border-radius:2px}
.take-prompt-body p {margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.take-prompt-intent {margin-top:8px;padding-top:7px;border-top:1px dashed #cfb496}
.take-prompt-intent h3 {margin:0 0 1px;color:#7c4d36;font:750 12px/1.4 var(--font-cn)}

.take-prints[data-comparing] > .take-single {visibility:hidden}
.take-compare-mat {position:absolute;inset:0;z-index:1;display:grid;place-items:center}
.take-compare-mat[hidden],.take-compare-hint[hidden] {display:none}
.take-compare-cards {
  --take-art-height:max(26px,calc(100cqh - 60px));
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:center;
  justify-items:center;
  column-gap:clamp(6px,3cqw,26px);
  width:90%;
}
.take-compare-cards[data-count="3"] {grid-template-columns:repeat(3,minmax(0,1fr));width:94%}
.take-compare-cards :is(.take-print,.take-window) {
  cursor:grab;
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
}
.take-compare-cards .take-window img {-webkit-user-drag:none}
.take-compare-cards[data-reordering] .take-print:not([data-dragged]) {transition:translate .22s cubic-bezier(.22,.73,.24,1)}
.take-compare-cards .take-print[data-dragged] {
  z-index:2;
  will-change:translate;
  box-shadow:0 2px #ad9566,3px 10px 18px #64443173;
}
.take-compare-cards [data-dragged],.take-compare-cards [data-dragged] .take-window {cursor:grabbing}
.take-card-flight {position:absolute;z-index:2;pointer-events:none}
.take-compare-status {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}

@container take-screen (max-width:480px) {
  .take-print figcaption {font-size:10px}
  .take-magnifier {width:20px;height:18px;right:3px;bottom:3px}
  .take-magnifier .icon {width:12px;height:12px}
}
@container camera (max-width:720px) {
  .studio-desk .console.take-record {gap:6px}
  .studio-desk .console .take-record-head {padding:5px 4px 6px}
  .take-meta {gap:2px 4px;font-size:11px}
  .take-thumb {grid-template-columns:minmax(24px,40px) minmax(0,1fr) auto;gap:4px;padding:3px 4px}
  .take-thumb + .take-thumb {margin-top:5px}
  .take-thumb-label b {font-size:12px}
  .take-thumb-label small {font-size:10px}
  .take-thumb-sent .icon {width:11px}
  .take-actions {gap:4px}
  .take-action {min-height:31px;padding:3px 6px;font-size:12px}
  .take-action .icon {width:13px;height:13px}
}
@container camera (max-width:520px) {
  .studio-desk .console.take-record {gap:4px}
  .studio-desk .console .take-record-head {padding:7px 1px 4px}
  .take-record-head h2 {font-size:13px}
  .take-ticket {padding:3px 3px 2px;font-size:11px;border-width:1px}
  .take-meta {font-size:10px}
  .take-status {padding:1px 3px}
  .take-status .icon {width:11px;height:11px}
  .take-strip {padding:3px}
  .take-thumb {grid-template-columns:minmax(20px,33px) minmax(0,1fr) auto}
  .take-thumb-film {padding:4px 2px}
  .take-thumb-film::before {top:1px}
  .take-thumb-film::after {bottom:1px}
  .take-action {min-height:28px;padding:2px 3px;font-size:11px}
  .take-action .icon {width:11px;height:11px}
  .take-switch {gap:4px;font-size:11px}
  .take-switch > span {width:26px;height:15px}
  .take-switch > span::after {width:10px;height:10px}
  .take-switch input:checked + span::after {transform:translateX(10px)}
  .take-compare-hint {margin:0;font-size:9px}
}
@media(prefers-reduced-motion:reduce) {
  .take-switch > span,.take-switch > span::after,
  .take-compare-cards[data-reordering] .take-print:not([data-dragged]) {transition:none}
}

#dialog.result-dialog {
  width:min(480px,calc(100% - 24px));
  height:fit-content;
  min-height:0;
  max-height:calc(100dvh - 26px);
  border:1px solid #9c8058;
  border-radius:7px;
  background:linear-gradient(#fff7e5d9,#fff1d5d9),var(--paper) center/370px;
  color:#443225;
}
#dialog.result-dialog:not([open]) {display:none}
#dialog.result-dialog .modal-body {padding:15px 20px}
.result-submission h3 {margin:0 0 13px;font:850 18px/1.35 var(--font-round)}
.selection-list {display:grid;gap:9px}
.result-submission .selection-row {
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:7px;
  border:1px solid #c4ad88;
  border-radius:4px;
  background:#fffbef91;
}
.selection-row .selection-image {
  display:grid;
  place-items:center;
  width:86px;
  height:56px;
  overflow:hidden;
  border-radius:2px;
  background:#dbcfba;
}
.selection-image .still {position:relative;width:100%;height:100%;min-height:0;margin:0;border:0}
.selection-image .still > :is(img,svg) {position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.selection-image .crop {display:none}
.selection-row label {display:block;margin-bottom:4px;color:#65503d;font:750 12px/1.3 var(--font-round)}
.selection-row select {
  width:100%;
  min-height:30px;
  padding:3px 8px;
  border:1px solid #b49c7d;
  border-radius:3px;
  background:#fff9ec;
  color:#483426;
  font:700 14px/1.35 var(--font-round);
}
#submit-error:not([hidden]) {margin:9px 0 0;color:#9d402e;font-size:13px}
