@font-face {
  font-family: Expanded;
  src: url(/assets/fonts/zalando-expanded.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: SpaceMono;
  src: url(/assets/fonts/space-mono.woff2) format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0c1012;
  --paper: #f0eee7;
  --muted: #acb2b2;
  --accent: #ffad76;
  --line: #394043;
  --mono: SpaceMono, Consolas, monospace;
  --display: Expanded, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--paper); font: 16px/1.48 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
[hidden] { display: none !important; }
.mast { border-bottom: 1px solid var(--line); }
.mast nav {
  max-width: 1232px; min-height: 64px; padding: 0 36px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font: 750 22px/1 var(--display); letter-spacing: -.07em; text-decoration: none; }
.planet { position: relative; width: 28px; height: 28px; border: 2px solid var(--accent); border-radius: 50%; }
.planet::after { content: ""; position: absolute; inset: 8px -2px; border: 1.5px solid var(--accent); border-radius: 50%; transform: rotate(-22deg); }
.tapes, .colophon, .edition, .price, .count { font-family: var(--mono); }
.tapes { font-size: 13px; text-decoration: none; }
.tapes:hover, .colophon a:hover, .text-btn:hover { color: var(--accent); }
.desk {
  max-width: 1232px; margin: auto; padding: clamp(24px,3vw,42px) 36px 60px;
  display: grid; grid-template-columns: minmax(0,.89fr) minmax(0,1.11fr);
  grid-template-areas: "preview scene" "preview editor"; grid-template-rows: auto auto;
  align-items: start; column-gap: clamp(30px,4.5vw,64px);
}
.scene-info { grid-area: scene; min-width: 0; }
.edition { display: flex; align-items: center; gap: 11px; color: var(--accent); text-transform: uppercase; font-size: 12px; letter-spacing: .07em; margin: 0 0 9px; }
.edition span[aria-hidden] { color: #84837c; }
h1, h2, p { margin: 0; }
h1 { font: 740 clamp(34px,4.2vw,62px)/1.03 var(--display); letter-spacing: -.07em; }
#scene-cast { margin-top: 10px; font-size: clamp(16px,1.6vw,21px); line-height: 1.35; color: #d5d4ce; }
#choose-scene { margin-top: 16px; }
#choose-scene-title { margin-bottom: 8px; color: #d8dbd4; font: 650 13px/1.3 var(--mono); letter-spacing: .025em; }
.rooms { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.room {
  display: flex; width: 100%; min-width: 0; align-items: center; gap: 9px; padding: 8px;
  border: 1px solid var(--line); border-radius: 3px; background: #121719; text-align: left;
}
.room:hover { background: #1b2124; border-color: #687174; }
.room[aria-pressed="true"] { background: #28211d; border-color: var(--accent); box-shadow: inset 0 0 0 1px #ffad7640; }
.room img { display: block; flex: 0 0 54px; width: 54px; height: 68px; object-fit: cover; background: #101311; }
.room-copy { display: block; min-width: 0; }
.room-name { display: block; font-size: 13px; line-height: 1.25; font-weight: 680; }
.room-time { display: block; margin-top: 3px; color: var(--accent); font: 10px/1.3 var(--mono); }
.room-crew { display: block; margin-top: 5px; color: #c5c9c7; font-size: 12px; line-height: 1.35; }
@media (min-width:701px) and (max-width:960px) {
  .room { flex-direction: column; align-items: flex-start; gap: 6px; }
  .room img { flex: none; width: 58px; height: auto; }
}
@media (min-width:1200px) {
  .room img { flex-basis: 64px; width: 64px; height: 80px; }
}
#sample-sheet { grid-area: preview; min-width: 0; }
.format-picker { display: flex; align-items: stretch; gap: 23px; border-bottom: 1px solid var(--line); }
.format-picker button {
  margin-bottom: -1px; min-height: 38px; padding: 0 1px 8px; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); background: none; font-size: 14px; font-weight: 620;
}
.format-picker [aria-pressed="true"] { border-color: var(--accent); color: var(--paper); }
.art-mount {
  display: grid; place-items: center; margin: 14px 0 0; padding: clamp(12px,1.5vw,22px);
  background: #161b1d; border: 1px solid #2b3234;
}
.art {
  display: block; width: 100%; max-width: 399px; padding: 0; position: relative;
  background: #101311; border: 0; box-shadow: 0 5px 14px #0006; cursor: zoom-in;
}
.art[data-current="false"] { display: none; }
.art img, .art canvas { display: block; width: 100%; height: auto; aspect-ratio: 4/5; }
.zoom {
  position: absolute; right: 7px; top: 7px; display: grid; place-items: center;
  width: 27px; height: 27px; background: #0b1013df; border: 1px solid #a2a6a0a0;
  color: white; font: 18px/1 system-ui, sans-serif;
}
.colophon {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; justify-content: space-between;
  padding-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.45;
}
.colophon a { color: #d9dbd6; }
.editor { grid-area: editor; min-width: 0; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 15px; }
.editor-head { display: flex; align-items: baseline; justify-content: space-between; gap: 7px 12px; flex-wrap: wrap; }
h2 { font: 680 clamp(20px,1.8vw,25px)/1.22 var(--display); letter-spacing: -.055em; }
.text-btn { padding: 5px 0; color: #d8dbd4; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
#form { display: grid; gap: 12px; margin-top: 12px; }
.label-row, .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
label, legend { font-size: 14px; font-weight: 650; }
.count, .price { font-size: 11px; color: var(--muted); }
input[type=text], textarea {
  width: 100%; color: var(--paper); background: #161c1f; border: 1px solid #465053;
  border-radius: 3px; padding: 10px 12px; margin-top: 5px; font-size: 16px;
}
textarea { display: block; min-height: 72px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #939b9c; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { padding: 0; margin-bottom: 7px; }
.radios { display: flex; flex-wrap: wrap; gap: 6px; }
.radios label { display: flex; align-items: center; gap: 6px; padding: 7px 9px; background: #14191b; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-weight: 500; }
.radios input { margin: 0; accent-color: var(--accent); }
.radios label:has(:checked) { border-color: #cb946c; background: #2a221c; }
.hint, .privacy { font-size: 12px; line-height: 1.5; color: var(--muted); }
.hint { margin-top: 7px; }
.error { color: #ffb4a3; font-size: 14px; }
.error:empty, .hint:empty { display: none; }
.actions { justify-content: flex-start; flex-wrap: wrap; }
.primary, .secondary { min-height: 44px; padding: 10px 17px; font-weight: 700; border: 1px solid transparent; border-radius: 2px; }
.primary { background: var(--accent); color: #20150d; }
.secondary { background: transparent; color: var(--paper); border-color: var(--line); }
.primary:disabled { opacity: .6; }
.primary:hover:not(:disabled) { background: #ffc199; }
.privacy { margin-top: 18px; }
.paper { margin: 19px 0; border-left: 2px solid var(--accent); padding: 1px 0 1px 13px; overflow-wrap: anywhere; }
#summary-from { font: 12px/1.5 var(--mono); color: var(--accent); }
#summary-reply { font-size: 19px; margin: 7px 0 0; }
#choose > .text-btn { margin-top: 12px; }
.proof { max-width: 96vw; max-height: 95vh; padding: 10px; margin: auto; border: 1px solid var(--line); background: var(--bg); color: var(--paper); }
.proof::backdrop { background: #030506e8; }
.proof-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 7px; font-size: 14px; }
#close-proof { background: transparent; border: 0; color: var(--accent); min-height: 36px; }
.proof canvas { display: block; width: auto; height: auto; max-width: 88vw; max-height: 79vh; }
@media (min-width: 701px) and (max-width: 900px) {
  .desk { padding-inline: 24px; column-gap: 28px; }
  .art-mount { padding: 11px; }
}
@media (max-width: 700px) {
  .mast nav { min-height: 53px; padding: 0 17px; }
  .brand { font-size: 18px; gap: 7px; }
  .planet { width: 23px; height: 23px; }
  .planet::after { inset: 6px -2px; }
  .tapes { font-size: 11px; }
  .desk { max-width: 520px; padding: 21px 18px 40px; grid-template-columns: minmax(0,1fr); grid-template-rows: auto; grid-template-areas: "scene" "preview" "editor"; }
  .scene-info { position: relative; }
  .edition { margin-bottom: 5px; font-size: 10px; }
  h1 { font-size: clamp(30px,8vw,39px); }
  #scene-cast { margin-top: 5px; }
  #choose-scene { margin-top: 13px; }
  #choose-scene-title { margin-bottom: 7px; font-size: 12px; }
  .rooms { gap: 6px; }
  .room { min-height: 112px; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 5px; padding: 6px; }
  .room img { flex-basis: auto; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
  .room-copy { width: 100%; }
  .room-name { font-size: 11px; }
  .room-time { margin-top: 2px; font-size: 9px; }
  .room-crew { margin-top: 3px; font-size: 10px; line-height: 1.25; }
  #sample-sheet { margin-top: 12px; }
  .format-picker { gap: 20px; }
  .format-picker button { min-height: 32px; padding-bottom: 5px; }
  .art-mount { margin-top: 9px; padding: 11px; }
  .art { max-width: 310px; }
  .colophon { padding-top: 7px; }
  .editor { margin-top: 18px; padding-top: 17px; }
  #form { margin-top: 13px; }
}
@media (max-width: 360px) {
  .desk { padding-inline: 13px; }
  .mast nav { padding-inline: 13px; }
  .brand { font-size: 16px; }
  #scene-cast { font-size: 14px; }
  .colophon { font-size: 10px; }
}
.commission-promo{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:2px;padding:20px 22px;background:linear-gradient(115deg,#1b211f,#171b1d 72%);border:1px solid #594333;border-left:3px solid var(--accent)}.commission-kicker{margin:0 0 5px;color:var(--accent);font:11px/1.4 var(--mono);letter-spacing:.08em}.commission-promo h2{font:680 clamp(19px,2vw,25px)/1.2 var(--display);letter-spacing:-.04em;margin:0 0 7px}.commission-promo p:not(.commission-kicker){color:#c8cfca;font-size:13px;margin:0}.commission-prices{margin-top:6px!important;color:#ffd0aa!important;font:12px/1.5 var(--mono)!important}.commission-status{margin-top:4px!important;color:var(--muted)!important;font-size:11px!important}.commission-link{flex:none;display:inline-flex;align-items:center;gap:14px;padding:11px 14px;background:var(--accent);color:#20150d;text-decoration:none;font-weight:750;border-radius:2px}.commission-link:hover{background:#ffc199}@media(max-width:700px){.commission-promo{margin-top:0;padding:16px;align-items:stretch;flex-direction:column;gap:12px}.commission-link{justify-content:space-between}}
