/* Keep the colophon in document flow as the guide gives way to a longer form. */
body {display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body>main {flex:1 0 auto}
body>footer {margin-top:auto;padding-bottom:env(safe-area-inset-bottom)}
body:has(#edit:not([hidden])) {
  --desk-paper:#eff4eb;--desk-green:#b8ff81;
  color:var(--desk-paper);background:#151c1a;
}
body:has(#edit:not([hidden]))>header {display:none}
body:has(#edit:not([hidden]))>main {
  background:radial-gradient(ellipse at 77% 28%,#2e4638 0,transparent 48%),linear-gradient(120deg,#202825,#121917 68%,#1e2925);
}
body:has(#edit:not([hidden]))>footer {border-top:1px dashed #81938460;background:#111715}
body:has(#edit:not([hidden]))>footer .wrap {min-height:69px}
#edit {width:100%;max-width:1100px;min-height:0;padding:clamp(17px,3.4vw,50px) clamp(18px,5vw,64px) clamp(38px,6vw,84px)}
#edit .back {
  display:inline-flex;align-items:center;min-height:44px;margin:0 0 clamp(12px,4.3vw,55px);
  font:500 13px/1 Plex,monospace;color:#d5e2d9;text-underline-offset:4px;
}
#edit .back:hover {text-decoration:underline}
#edit .edit-grid {max-width:none}
.upload-guide {
  grid-template-columns:minmax(0,1fr) minmax(280px,.95fr);
  grid-template-areas:"words example" "actions example";gap:24px clamp(28px,5vw,84px);
}
.guide-words .kicker {gap:9px;color:#dcebdc;font-size:11px}
.guide-words .kicker::before {
  content:"";display:block;width:23px;height:14px;transform:skew(-10deg);
  background:repeating-linear-gradient(90deg,var(--desk-green) 0 2px,transparent 2px 4px);
}
#edit .guide-words h1 {
  text-transform:uppercase;font-size:clamp(66px,7.8vw,112px);line-height:.82;
  letter-spacing:-.045em;margin:21px 0 19px;
}
.guide-words h1 em {display:inline-block;color:var(--desk-green);font-style:normal;transform:skew(-8deg);transform-origin:bottom left}
.guide-words p {max-width:33ch;color:#e3eae5;font-size:17px;line-height:1.42;margin:0 0 9px}
.guide-words a {display:inline-flex;align-items:center;min-height:36px;color:#d3e1d4;text-decoration-color:#85988a}
.guide-example {
  position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:clamp(12px,2vw,26px);
  padding:clamp(23px,3.4vw,48px) clamp(12px,2vw,26px);border:1px solid #a1bba458;border-radius:13px;
  background:linear-gradient(115deg,#10191532,#0d1914be),url(/art/glass-print.webp) center/cover;
  box-shadow:inset 0 1px 0 #deffe533,0 16px 42px #080d0a38;text-align:left;
}
.example-sample {display:block;flex:0 1 48%;min-width:0;max-width:166px;padding:0;background:none;border:0;cursor:zoom-in;transform:rotate(-4deg)}
.guide-example img {display:block;width:100%;max-width:none;border:1px solid #bfd3ba90;border-radius:4px;box-shadow:3px 7px 15px #070d0a80}
.guide-example figcaption {padding:0;min-width:0;line-height:1}
.example-label {display:block;font:500 10px/1.4 Plex,monospace;letter-spacing:.12em;text-transform:uppercase;color:#d8f9c6}
.guide-example strong {display:block;margin:7px 0 5px;font:800 clamp(24px,2.2vw,35px)/1.02 Condensed,Impact,sans-serif}
.example-enlarge {display:inline-flex;align-items:center;min-height:36px;border:0;background:none;padding:0;color:#eef9e9;text-decoration:underline;text-underline-offset:3px;font:500 11px/1.4 Plex,monospace}
.example-enlarge::after {content:"";position:absolute;inset:0;border-radius:13px;cursor:zoom-in}
.guide-actions {width:fit-content;max-width:100%}
#edit .file-button,#edit #submit-ticket {
  color:#172512;background:#c7ff98;border:0;border-radius:2px;box-shadow:0 3px 0 #101a1480;
  min-height:52px;font-size:16px;font-weight:700;transform:rotate(-1deg);padding:0 0 0 19px;gap:18px;
}
#edit .file-button::after,#edit #submit-ticket::after {
  content:"";align-self:stretch;width:41px;border-left:2px dashed #4c6742;
  background:repeating-linear-gradient(90deg,#2e4128 0 2px,transparent 2px 4px,#2e4128 4px 5px,transparent 5px 7px) center/20px 21px no-repeat;
}
#edit .file-button:hover,#edit .file-button:focus-within,#edit #submit-ticket:hover {background:#deffbc}
.guide-actions .text-link {margin:3px 0 0;padding:10px 0;min-height:44px;color:#d4e0d6}
#edit .desk:has(#form-intro:not([hidden])) {max-width:650px}
#form-intro h1 {text-transform:uppercase;font-size:clamp(46px,6vw,78px);letter-spacing:-.04em;color:var(--desk-green);line-height:.95}
#edit form fieldset {border-top:1px dashed #799184;padding-top:15px}
#edit form legend {padding-right:14px}
#edit :is(input:not([type=file]),select) {background:#19221f;border-color:#657669;border-radius:6px;color:#f6fbf2;font-size:16px}
#edit :is(input,select):focus-visible {outline-color:var(--desk-green)}
#edit #scan-status:not(:empty) {padding:12px 14px;border-left:3px solid var(--desk-green);background:#28392d;color:#e4f6d6}
#example-dialog {padding:8px;border:1px solid #859e8e;border-radius:12px;background:#18211d;width:fit-content;max-width:95vw;max-height:96dvh}
#example-dialog::backdrop {background:#060c09e6;backdrop-filter:blur(8px)}
#example-dialog img {display:block;width:auto;height:auto;max-width:82vw;max-height:75dvh;border-radius:4px}
#example-dialog form {display:flex;justify-content:flex-end;margin:0}
#example-dialog button {min-height:44px;padding:4px 10px;background:none;border:0;color:#ecf6e7;font:500 14px Plex,monospace}
@media(max-width:660px) {
  #edit {max-width:510px;padding-top:7px}
  #edit .back {margin:0 0 9px}
  .upload-guide {grid-template-columns:1fr;grid-template-areas:"words" "example" "actions";gap:17px}
  #edit .guide-words h1 {font-size:clamp(59px,13vw,77px);margin:14px 0 12px}
  .guide-words p {font-size:16px;margin-bottom:2px}
  .guide-example {justify-content:flex-start;padding:17px clamp(16px,7vw,38px);gap:clamp(16px,8vw,42px)}
  .example-sample {flex:none;width:clamp(97px,29vw,132px)}
  .guide-example strong {font-size:clamp(24px,6.7vw,31px)}
  .guide-actions {width:100%}
  #edit .file-button {width:100%;justify-content:space-between}
  .guide-actions .text-link {margin-inline:auto}
}
