/* ORDERS: order board, triplicate work order, hold-to-stamp, your copy, archive. Prefix wo-. */

:root {
  --wo-carbon-ink: #2B2F7A;
  --wo-pencil: #4B4943;
  --wo-wood: #6E4320;
  --wo-steel: #8E959C;
  --wo-grunge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3.2 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* the sheet: shared by board, open order and archive */

.wo-stack {
  position: relative;
  isolation: isolate;
  margin-bottom: 1.5rem;
}

.wo-sheet {
  --px: var(--s-4);
  --py: var(--s-5);
  padding: var(--py) var(--px) var(--s-5);
  font-family: var(--f-text);
}

@media (min-width: 37.5em) {
  .wo-sheet {
    --px: var(--s-6);
    --py: var(--s-6);
    padding-bottom: var(--s-6);
  }
}

.wo-carbon {
  position: absolute;
  inset: .45rem -.3rem -.75rem .35rem;
  z-index: -1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 .75rem .12rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .5625rem;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(31, 28, 23, .5);
  background: var(--carbon-yellow);
  border-radius: 2px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .3);
}

.wo-carbon--pink {
  inset: .9rem -.55rem -1.45rem .75rem;
  z-index: -2;
  background: var(--carbon-pink);
}

.wo-stack--filed .wo-carbon--pink {
  inset: .45rem -.35rem -.8rem .4rem;
  z-index: -1;
}

.wo-stub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 var(--s-3);
  margin: calc(-1 * var(--py)) calc(-1 * var(--px)) var(--s-4);
  padding: .5rem var(--px) .6rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .625rem;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-red);
  background:
    radial-gradient(circle, rgba(31, 28, 23, .42) 1.4px, transparent 2px) 0 100% / 8px 6px repeat-x,
    rgba(179, 38, 30, .06);
}

.wo-stub__long {
  display: none;
}

@media (min-width: 37.5em) {
  .wo-stub__long {
    display: inline;
  }
}

.wo-formhead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 3px solid var(--paper-ink);
}

.wo-formhead::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--paper-ink);
}

.wo-formhead .wo-formsub {
  grid-column: 1 / -1;
}

.wo-formtitle {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: .9;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--paper-ink);
}

.wo-formsub {
  margin-top: .4rem;
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.wo-serial {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  font-family: var(--f-mono);
  color: var(--ink-red);
}

.wo-serial__label {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wo-serial__no {
  font-weight: 600;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  line-height: 1;
  letter-spacing: .06em;
}

/* rubber stamps: ink with gaps */

.wo-ink {
  -webkit-mask-image: var(--wo-grunge);
  mask-image: var(--wo-grunge);
  -webkit-mask-size: 140px 140px;
  mask-size: 140px 140px;
}

.wo-stamp {
  position: relative;
  z-index: 2;
  margin: .3rem 0 .15rem .15rem;
  border-width: 4px;
  font-size: 1.875rem;
  pointer-events: none;
}

.wo-cell--stamp dd {
  align-items: center;
  min-height: 3rem;
}

.wo-stamp--open {
  transform: rotate(-9deg);
}

.wo-stamp--exec {
  transform: rotate(-8deg);
}

.wo-sheet--filed .wo-stamp {
  font-size: 1.5rem;
}

/* fields */

.wo-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: var(--s-4) 0 0;
  border-top: 1px solid var(--paper-line);
}

.wo-cell {
  position: relative;
  padding: .45rem .75rem .55rem 0;
  border-bottom: 1px solid var(--paper-line);
}

.wo-cell dt {
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.wo-cell dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .6rem;
  min-height: 1.75rem;
  margin: 0;
}

.wo-cell .pg-hand {
  font-size: 1.3125rem;
  line-height: 1.2;
}

.wo-cell__aside {
  font-family: var(--f-mono);
  font-size: var(--t-data);
  letter-spacing: .04em;
  color: var(--paper-muted);
}

@media (min-width: 30em) {
  .wo-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wo-cell--wide {
    grid-column: 1 / -1;
  }

  .wo-cell:nth-child(odd):not(.wo-cell--wide) {
    border-right: 1px solid var(--paper-line);
  }

  .wo-cell:nth-child(even):not(.wo-cell--wide) {
    padding-left: .75rem;
  }

  .wo-fields--compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .wo-fields--compact > .wo-cell.wo-cell {
    padding-left: 0;
    border-right: 0;
  }
}

.wo-sheet a.pg-hand {
  padding-block: .6rem;
  margin-block: -.6rem;
  color: var(--ink-blue);
  text-decoration-color: rgba(179, 38, 30, .7);
  text-decoration-thickness: 1.5px;
}

.wo-sheet a.pg-hand:focus-visible {
  outline-offset: -.45rem;
}

.wo-sheet a.pg-hand:hover {
  color: var(--ink-red);
}

.wo-box {
  margin-top: var(--s-4);
}

.wo-label {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

/* work to be done, attached photo */

.wo-task {
  display: grid;
  gap: var(--s-3);
  padding: .6rem .75rem .75rem;
  border: 1px solid var(--paper-line);
  background: rgba(255, 255, 255, .22);
}

.wo-task__body {
  min-width: 0;
}

.wo-task__text {
  margin-top: .2rem;
  font-size: 1.375rem;
  line-height: 2.125rem;
  background-image: linear-gradient(transparent calc(2.125rem - 1px), rgba(29, 59, 143, .2) 0);
  background-size: 100% 2.125rem;
}

.wo-attach {
  font-family: var(--f-mono);
  font-size: .6875rem;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--paper-muted);
}

.wo-photo {
  position: relative;
  justify-self: end;
  width: 8.25rem;
  margin: .75rem .35rem .25rem 0;
  padding: .4rem .4rem 0;
  background: #FBFAF6;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .06);
  transform: rotate(3deg);
}

.wo-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}

.wo-photo figcaption {
  padding: .3rem .1rem .5rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  color: var(--wo-pencil);
}

.wo-photo__clip {
  position: absolute;
  z-index: 1;
  top: -.95rem;
  left: 1.1rem;
  width: .9rem;
  height: 2.6rem;
  border: 2px solid var(--wo-steel);
  border-radius: .5rem;
  transform: rotate(-6deg);
}

.wo-photo__clip::after {
  content: '';
  position: absolute;
  inset: .4rem .12rem .55rem;
  border: 2px solid var(--wo-steel);
  border-top: 0;
  border-radius: 0 0 .4rem .4rem;
}

.wo-task--photo {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.wo-task--photo .wo-task__body {
  grid-column: 1 / -1;
}

.wo-task--photo .wo-attach {
  padding-bottom: .4rem;
}

@media (min-width: 30em) {
  .wo-task--photo {
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
  }

  .wo-task--photo .wo-task__body {
    grid-column: 1;
  }

  .wo-task--photo .wo-attach {
    grid-column: 1;
    padding-bottom: 0;
  }

  .wo-task--photo .wo-photo {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: .35rem;
  }
}

@media (min-width: 48em) {
  .wo-photo {
    width: 11rem;
  }
}

/* remarks */

.wo-remark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
}

.wo-pencil {
  display: inline-block;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--wo-pencil);
  text-shadow: 0 0 .6px rgba(75, 73, 67, .7);
  transform: rotate(-1.2deg);
}

/* the signature after an italic quote: a little air past the closing mark */
.wo-pencil .who {
  margin-left: .2em;
}

/* options: radio inputs drawn as printed boxes */

.wo-opts {
  min-width: 0;
  margin: var(--s-4) 0 0;
  padding: 0;
  border: 0;
}

.wo-opts legend {
  margin-bottom: .35rem;
}

.wo-optlist {
  margin: .35rem 0 0;
  padding: 0;
  list-style: none;
}

.wo-opt,
.wo-optlist__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1.25rem minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .4rem .5rem .4rem 0;
  border-top: 1px solid var(--paper-line);
}

.wo-opt:last-of-type,
.wo-optlist__item:last-child {
  border-bottom: 1px solid var(--paper-line);
}

.wo-opt {
  cursor: pointer;
}

.wo-opt:hover {
  background: rgba(225, 165, 39, .14);
}

.wo-opt__input {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem 0 0;
  opacity: 0;
  cursor: pointer;
}

.wo-opt__box {
  position: relative;
  justify-self: center;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(255, 255, 255, .45);
  border: 2px solid var(--paper-ink);
}

.wo-check {
  position: absolute;
  top: .1rem;
  left: .1rem;
  width: 1.3rem;
  height: 1.3rem;
  overflow: visible;
  fill: none;
  stroke: var(--ink-blue);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .28s var(--ease);
}

.wo-opt__input:checked + .wo-opt__box .wo-check,
.wo-optlist__item.wo-on .wo-check {
  stroke-dashoffset: 0;
}

.wo-opt__input:focus-visible + .wo-opt__box {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wo-opt__key {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
}

.wo-opt__text {
  min-width: 0;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.wo-opts:disabled .wo-opt {
  cursor: default;
}

.wo-opts:disabled .wo-opt:hover {
  background: none;
}

.wo-opts:disabled .wo-opt__input {
  cursor: default;
}

.wo-opts:disabled .wo-opt:not(:has(.wo-opt__input:checked)) .wo-opt__text {
  color: var(--paper-muted);
}

/* signature box and the rubber stamp */

.wo-sign {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text" "stamp";
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-3) var(--s-4);
  background: rgba(255, 255, 255, .28);
  border: 2px solid var(--paper-ink);
}

@media (min-width: 26em) {
  .wo-sign {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "text stamp";
    min-height: 10rem;
    padding: var(--s-3) var(--s-4);
  }
}

.wo-sign__text {
  grid-area: text;
  min-width: 0;
}

.wo-sign__here {
  margin-top: .2rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wo-sign__how {
  margin-top: .4rem;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--paper-muted);
}

.wo-msg {
  margin-top: .35rem;
  font-size: 1.0625rem;
  color: var(--paper-ink);
}

.wo-msg:empty {
  display: none;
}

.wo-msg[data-tone="warn"] {
  color: var(--ink-red);
}

.wo-sign__copy {
  color: var(--paper-ink);
}

.wo-sign__crew {
  margin-top: .5rem;
  font-family: var(--f-mono);
  font-size: .6875rem;
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--paper-muted);
}

.wo-sign__crew [data-wo-crewno] {
  color: var(--paper-ink);
}

.wo-sign__gate {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: var(--hit);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .04em;
}

.wo-sign__gate .ic {
  flex: none;
  width: .875rem;
  height: .875rem;
}

.wo-rm-on {
  display: none;
}

.wo-stamper {
  grid-area: stamp;
  position: relative;
  justify-self: center;
  width: 7.25rem;
  height: 7.25rem;
  padding: 0;
  color: #F6EBD9;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.wo-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.wo-ring__track,
.wo-ring__fill {
  fill: none;
  stroke-width: 6;
}

.wo-ring__track {
  stroke: rgba(31, 28, 23, .14);
}

.wo-ring__fill {
  stroke: var(--ink-red);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}

.wo-stamper[data-holding] .wo-ring__fill {
  opacity: 1;
}

.wo-stamper[data-release] .wo-ring__fill {
  transition: stroke-dashoffset .3s var(--ease), opacity .3s var(--ease);
}

.wo-stamper__knob {
  position: absolute;
  inset: .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 70% 120%, rgba(0, 0, 0, .07) 0 3px, transparent 3px 7px),
    radial-gradient(circle at 34% 28%, #A06A36 0, var(--wo-wood) 48%, #45270F 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .28),
    inset 0 -5px 9px rgba(0, 0, 0, .45),
    0 0 0 3px #7A1F18,
    0 6px 0 3px #2C1909,
    0 11px 18px rgba(0, 0, 0, .4);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}

.wo-stamper__knob .ic {
  width: 1.75rem;
  height: 1.75rem;
}

.wo-stamper__label {
  max-width: 4.75rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .625rem;
  line-height: 1.15;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.wo-stamper:hover .wo-stamper__knob {
  filter: brightness(1.08);
}

.wo-stamper[data-holding] .wo-stamper__knob {
  transform: translateY(5px) scale(.97);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .2),
    inset 0 -3px 6px rgba(0, 0, 0, .5),
    0 0 0 3px #7A1F18,
    0 1px 0 3px #2C1909,
    0 3px 6px rgba(0, 0, 0, .4);
}

.wo-stamper:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wo-impress {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: .3rem .9rem .4rem;
  color: var(--ink-blue);
  border: 4px solid currentColor;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 4px currentColor;
  opacity: .9;
  mix-blend-mode: multiply;
  transform: rotate(-8deg);
  pointer-events: none;
}

.wo-sign .wo-impress {
  grid-area: stamp;
  justify-self: center;
}

.wo-act .wo-impress {
  margin: -.5rem .5rem -.5rem auto;
}

.wo-act .wo-impress .wo-impress__big {
  font-size: 1.875rem;
}

.wo-impress__big {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wo-impress__small {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .8125rem;
  line-height: 1.3;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.wo-impress--land {
  animation: wo-land .42s cubic-bezier(.2, .9, .3, 1.2) both;
}

.wo-thud {
  animation: wo-thud .32s ease-out .12s;
}

@keyframes wo-land {
  0% {
    opacity: 0;
    transform: scale(1.9) rotate(-18deg);
  }

  55% {
    opacity: .95;
    transform: scale(.93) rotate(-7deg);
  }

  100% {
    opacity: .9;
    transform: scale(1) rotate(-8deg);
  }
}

@keyframes wo-thud {
  0%,
  100% {
    transform: none;
  }

  35% {
    transform: translateY(3px);
  }
}

/* foreman, small print */

.wo-foreman {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-top: var(--s-5);
  border-bottom: 1px solid var(--paper-ink);
}

.wo-foreman .wo-label {
  padding-bottom: .4rem;
}

.wo-scrawl {
  width: 9.5rem;
  height: 2.8rem;
  margin-bottom: -.35rem;
  overflow: visible;
  fill: none;
  stroke: var(--ink-blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wo-fine {
  margin-top: var(--s-4);
  font-family: var(--f-mono);
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .03em;
}

.wo-fine--dist {
  margin-top: .3rem;
  font-size: .5625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.wo-sheet .pg-more {
  color: var(--paper-ink);
  text-decoration-color: var(--ink-red);
}

.wo-sheet .pg-more:hover {
  color: var(--ink-red);
}

/* board: clipboard, top sheet, actions */

.wo-boardrow {
  margin-top: var(--s-2);
}

.wo-clipboard {
  position: relative;
  min-width: 0;
  padding: 2.4rem .55rem 1.6rem;
  background:
    radial-gradient(ellipse at 30% 15%, rgba(255, 220, 170, .14), transparent 60%),
    linear-gradient(160deg, #7A5535, #5E3F25 55%, #4B321D);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 18px 34px rgba(0, 0, 0, .5);
}

.wo-clipboard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--noise);
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@media (min-width: 37.5em) {
  .wo-clipboard {
    padding: 2.6rem 1.5rem 2.1rem;
  }

  .wo-clipboard__clip {
    width: 9.5rem;
    margin-left: -4.75rem;
  }
}

.wo-clipboard__clip {
  position: absolute;
  z-index: 3;
  top: -.8rem;
  left: 50%;
  width: 7.5rem;
  height: 4rem;
  margin-left: -3.75rem;
  background: var(--brushed), linear-gradient(to bottom, #CDD0D3, var(--wo-steel) 45%, #62676D);
  border-radius: 10px 10px 18px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 3px rgba(0, 0, 0, .35), 0 6px 10px rgba(0, 0, 0, .45);
}

.wo-clipboard__clip span {
  position: absolute;
  top: .55rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 1.25rem;
  background: linear-gradient(#B3B8BD, #7D8288);
  border: 3px solid #555A60;
  border-bottom: 0;
  border-radius: 1rem 1rem .3rem .3rem;
}

.wo-clipboard__clip::before,
.wo-clipboard__clip::after {
  content: '';
  position: absolute;
  bottom: .7rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #F2F3F4, #6F747A 70%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .5);
}

.wo-clipboard__clip::before {
  left: .9rem;
}

.wo-clipboard__clip::after {
  right: .9rem;
}

.wo-stack--board {
  margin-bottom: 1.25rem;
}

.wo-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
  margin-top: var(--s-5);
}

.wo-act__note {
  flex: 1 1 100%;
  font-family: var(--f-mono);
  font-size: .75rem;
  line-height: 1.5;
  color: var(--paper-muted);
}

.wo-none {
  padding: var(--s-6) var(--s-4);
  color: var(--paper);
  text-align: center;
}

/* board: how orders work */

.wo-howto {
  padding: var(--s-5) var(--s-4) var(--s-5);
}

@media (min-width: 37.5em) {
  .wo-howto {
    padding: var(--s-6) var(--s-5) var(--s-5);
  }
}

.wo-howto__h {
  margin: 0 0 var(--s-5);
}

.wo-howto__h .dymo,
.wo-side-h .dymo {
  font-size: .75rem;
}

.wo-steps {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wo-steps__item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.wo-steps__no {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--on-accent);
  background: linear-gradient(to bottom, #F0BC45, var(--accent));
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 #8A6214;
}

.wo-steps__big {
  padding-top: .15rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.3125rem;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #EDE6D7;
}

.wo-steps__small {
  margin-top: .25rem;
  font-style: italic;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--label);
}

.wo-rules {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
  padding: var(--s-4) 0 0;
  list-style: none;
  border-top: 1px dashed var(--amber-dim);
  font-family: var(--f-mono);
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--label-muted);
}

.wo-rules li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--s-2);
}

.wo-rules .ic {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: .1rem;
  color: var(--amber);
}

.wo-rules a,
.wo-close a {
  color: var(--label);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wo-rules a:hover {
  color: var(--accent);
}

/* board: archive on a rail */

.wo-archive__lede {
  margin-top: calc(-1 * var(--s-2));
  font-family: var(--f-mono);
  font-size: .8125rem;
  color: var(--label-muted);
}

.wo-spike {
  position: relative;
  display: grid;
  gap: var(--s-6) var(--s-6);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
}

.wo-spike__nail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(#A9AEB3, #555A60);
  border-radius: 3px;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .5);
}

@media (min-width: 48em) {
  .wo-spike {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.wo-filed {
  position: relative;
  min-width: 0;
  transform: rotate(-.7deg);
}

.wo-filed--b {
  transform: rotate(.8deg);
}

.wo-filed__hole {
  position: absolute;
  z-index: 3;
  top: -.6rem;
  left: 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: -.575rem;
  background: radial-gradient(circle at 40% 35%, #E3E6E9, #7C8187 55%, #3F4246);
  border-radius: 50%;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .55);
}

.wo-sheet--filed {
  padding-top: var(--s-5);
}

.wo-sheet--filed .wo-formtitle {
  font-size: 1.625rem;
}

.wo-sheet--filed .wo-serial__no {
  font-size: 1.625rem;
}

.wo-filed__text {
  margin: var(--s-4) 0 var(--s-2);
  font-size: 1.5rem;
  line-height: 1.25;
}

.wo-filed__note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  margin-top: var(--s-3);
}

.wo-filed__more {
  margin-top: var(--s-2);
}

/* order page: layout and side column */

.wo-main,
.wo-side {
  min-width: 0;
}

.wo-side {
  display: grid;
  align-content: start;
  gap: var(--s-5);
}

.wo-side-h {
  margin: 0 0 var(--s-3);
}

@media (min-width: 48em) and (max-width: 63.99em) {
  .wo-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .wo-side > .wo-copy {
    grid-row: span 3;
  }
}

.wo-copy {
  padding: var(--s-5) var(--s-4) var(--s-5);
  outline: none;
}

.wo-copy__lede {
  font-style: italic;
  font-size: .9375rem;
  color: var(--label);
}

.wo-copy__empty {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  font-family: var(--f-mono);
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--label-muted);
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 6px;
}

.wo-copy__when {
  display: block;
  color: var(--label);
}

.wo-copy__ghost {
  display: grid;
  align-content: start;
  gap: .3rem;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: .6rem .4rem;
  background: var(--carbon-yellow);
  border-radius: 2px;
  opacity: .22;
  transform: rotate(-3deg);
}

.wo-copy__ghost span {
  height: .2rem;
  background: var(--paper-ink);
}

.wo-copy__ghost span:nth-child(1) {
  width: 80%;
  height: .4rem;
}

.wo-copy__ghost span:nth-child(2) {
  width: 55%;
}

.wo-copy__ghost span:nth-child(3) {
  width: 90%;
}

.wo-copy__ghost span:nth-child(4) {
  width: 40%;
}

.wo-copy__wait {
  margin-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: .8125rem;
  color: var(--amber);
}

.wo-copy__ready {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.wo-copy__img {
  width: 100%;
  max-width: 18rem;
  height: auto;
  aspect-ratio: 9 / 16;
  background: #15130F;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 26px rgba(0, 0, 0, .55);
}

.wo-copy__keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}

/* tape card */

.wo-tape {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3);
  color: var(--label);
  text-decoration: none;
  background: linear-gradient(#262420, #1C1A17);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 14px rgba(0, 0, 0, .4);
}

.wo-tape__img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #0B0A09;
}

.wo-tape__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wo-tape__body {
  display: grid;
  gap: .3rem;
  min-width: 0;
}

.wo-tape__no {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}

.wo-tape__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  color: #EDE6D7;
}

.wo-tape__cap {
  font-style: italic;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--label-muted);
}

.wo-tape__go {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: var(--hit);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
}

.wo-tape__go .ic,
.wo-here__go .ic {
  width: 1rem;
  height: 1rem;
}

.wo-tape:hover .wo-tape__title {
  color: var(--accent);
}

/* when it closes */

.wo-close {
  display: grid;
  gap: var(--s-2);
}

.wo-close__h {
  padding-bottom: var(--s-2);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 8px rgba(140, 242, 166, .35);
  border-bottom: 1px dashed var(--green-dim);
}

.wo-close a {
  color: var(--green);
  text-decoration-color: var(--green-dim);
}

.wo-close__steps {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding-left: 1.5em;
}

.wo-close__steps li::marker {
  color: var(--green-dim);
}

/* the count, shown once the order is closed */

.wo-results {
  margin-top: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--green-dim);
}

.wo-results__h {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}

.wo-results__list {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-2) 0 0;
  padding: 0;
  list-style: none;
}

.wo-results__row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  color: var(--green-dim);
}

.wo-results__row--top {
  color: var(--green);
}

.wo-results__key {
  font-weight: 600;
}

.wo-results__bar {
  height: .75rem;
  background: rgba(140, 242, 166, .1);
  border: 1px solid var(--green-dim);
}

.wo-results__fill {
  display: block;
  width: 0;
  height: 100%;
  background: currentColor;
  box-shadow: 0 0 8px rgba(140, 242, 166, .4);
}

.wo-results__n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wo-results__total {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: .8125rem;
  color: var(--green-dim);
}

.wo-offline {
  margin-top: var(--s-2);
}

.wo-stamper:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.wo-stamp--closed {
  color: var(--paper-ink);
}

/* archive pages: result, the file */

.wo-here {
  display: grid;
  gap: var(--s-2);
  text-decoration: none;
}

.wo-here__osd {
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-dim);
}

.wo-here__big {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 181, 71, .35);
}

.wo-here__go {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: var(--hit);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wo-here:hover .wo-here__big {
  color: #FFD08A;
}

.wo-files__list {
  display: grid;
  gap: 3px;
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}

.wo-files__link {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.25rem;
  padding: .5rem .75rem;
  color: var(--label);
  text-decoration: none;
  background: #201E1A;
  border-radius: 4px;
}

.wo-files__link:hover {
  background: #2A2722;
}

.wo-files__link[aria-current="page"] {
  background: #2A2722;
  box-shadow: inset 3px 0 0 var(--accent);
}

.wo-files__no {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .875rem;
  color: var(--amber);
}

.wo-files__text {
  font-size: .875rem;
  line-height: 1.3;
}

.wo-files__st {
  padding: .2rem .4rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .5625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.wo-files__st--open {
  color: var(--accent);
}

.wo-files__st--executed {
  color: var(--green);
}

@media (max-width: 22.49em) {
  .wo-files__link {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .wo-files__st {
    grid-column: 2;
    justify-self: start;
  }
}

/* archive #000A: handover punch list */

.wo-punch {
  padding: var(--s-4) var(--s-4) var(--s-3);
  transform: rotate(.5deg);
}

.wo-punch__form {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-red);
}

.wo-punch__h {
  position: relative;
  margin: .2rem 0 .6rem;
  padding-bottom: .4rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--paper-ink);
}

.wo-punch__h::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--paper-ink);
}

.wo-punch__list {
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}

.wo-punch .wo-punch__row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: center;
  column-gap: var(--s-2);
  min-height: var(--hit);
  padding: .35rem .25rem .35rem 0;
  color: var(--paper-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-line);
}

.wo-punch .wo-punch__row:hover {
  background: rgba(225, 165, 39, .14);
}

.wo-punch .wo-punch__row:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wo-punch__mark {
  justify-self: center;
}

.wo-punch__what {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 var(--s-3);
  min-width: 0;
}

.wo-punch__mark .wo-check {
  position: static;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  stroke-dashoffset: 0;
  transition: none;
}

.wo-punch__row--snag .wo-punch__mark {
  padding: .1rem .25rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .5625rem;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-red);
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: rotate(-7deg);
}

.wo-punch__item {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.wo-punch__state {
  min-width: 0;
  margin-left: auto;
  text-align: right;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--ink-blue);
}

.wo-punch__row--snag .wo-punch__state {
  color: var(--ink-red);
}

.wo-punch__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem var(--s-3);
  margin-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.wo-punch__foot .wo-pencil {
  font-size: 1.0625rem;
  letter-spacing: 0;
  text-transform: none;
}

/* archive #000: the networks */

.wo-feeds {
  padding: var(--s-5) var(--s-4) var(--s-4);
}

.wo-feeds__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 6px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.wo-feed {
  display: grid;
  grid-template-columns: .75rem minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: .1rem .6rem;
  min-height: var(--hit);
  padding: .4rem .7rem;
  color: var(--label);
  text-decoration: none;
  background: linear-gradient(#1F1D1A, #171512);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px rgba(0, 0, 0, .6);
}

.wo-feed:hover {
  background: linear-gradient(#2A2723, #1F1D1A);
}

.wo-feed:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wo-feed__lamp {
  grid-row: 1 / span 2;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #D9FFE4, var(--green) 55%, var(--green-dim));
  box-shadow: 0 0 6px rgba(140, 242, 166, .7);
}

.wo-feed__name {
  min-width: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.wo-feed__verb {
  grid-column: 2;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
}

.wo-feed--dm {
  margin-top: 0;
}

.wo-feed--dm .ic {
  grid-row: 1 / span 2;
  width: .875rem;
  height: .875rem;
  color: var(--amber);
}

.wo-feed:hover .wo-feed__name {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .wo-rm-on {
    display: inline;
  }

  .wo-rm-off {
    display: none;
  }

  .wo-check,
  .wo-stamper__knob,
  .wo-stamper[data-release] .wo-ring__fill {
    transition: none;
  }

  .wo-impress--land,
  .wo-thud {
    animation: none;
  }
}
