/* v4 diary: tape archive (steel shelf, rejected crate) and the daily site report next to the playback monitor. */

.pg--diary {
  --dy-steel-hi: #9A9D96;
  --dy-steel: #6F736C;
  --dy-steel-lo: #43463F;
  --dy-card: #EEE6D3;
  --dy-card-2: #E2D7BF;
  --dy-home: #3F84AE;
  --dy-radio: #D9572A;
  --dy-scr-w: min(100%, calc((100vh - 8.5rem) * 9 / 16));
  --dy-scr-w: min(100%, calc((100svh - 8.5rem) * 9 / 16));
}

.dy-start {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

/* ---------- shelf ---------- */

.dy-shelf {
  position: relative;
}

.dy-shelf__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
}

.dy-shelf__h {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-data);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label-muted);
}

.dy-shelf__h .ic {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}

.dy-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}

.dy-filter__key {
  padding: 0 var(--s-3);
}

@media (max-width: 22.49em) {
  .dy-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

.dy-filter__key[aria-pressed="true"] {
  color: #FFF;
  background: linear-gradient(to bottom, #2A2824, #34312C);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .06);
  transform: translateY(1px);
}

.dy-lamp {
  --dy-lamp: var(--green);
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #34302A;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .6);
}

.dy-lamp--site { --dy-lamp: var(--accent); }
.dy-lamp--home { --dy-lamp: #6FB7DF; }
.dy-lamp--radio { --dy-lamp: #FF7A45; }

[aria-pressed="true"] > .dy-lamp {
  background: var(--dy-lamp);
  box-shadow: 0 0 6px var(--dy-lamp);
}

/* the rack: slotted steel uprights, pegboard back, steel boards */

.dy-rack {
  position: relative;
  padding: var(--s-3) .9rem 0;
  background:
    radial-gradient(circle, rgba(0, 0, 0, .55) 0 1.5px, transparent 2px) 0 0 / 1.25rem 1.25rem,
    linear-gradient(to bottom, #1B1A17, #131210);
  border-radius: 3px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .8), 0 14px 28px rgba(0, 0, 0, .45);
}

.dy-rack::before,
.dy-rack::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: -.5rem;
  bottom: -1.25rem;
  left: 0;
  width: .9rem;
  background:
    repeating-linear-gradient(to bottom, transparent 0 .45rem, #0F0F0D .45rem .95rem, transparent .95rem 1.4rem) 50% 0 / .3rem 100% no-repeat,
    linear-gradient(to right, var(--dy-steel-lo), var(--dy-steel-hi) 35%, var(--dy-steel) 65%, var(--dy-steel-lo));
  border-radius: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .5);
}

.dy-rack::after {
  left: auto;
  right: 0;
}

.dy-shelf__list {
  position: relative;
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0 .35rem 1.15rem;
  list-style: none;
  background:
    linear-gradient(to bottom, var(--dy-steel-hi), var(--dy-steel) 25%, var(--dy-steel-lo) 85%, #2A2C27) 0 100% / 100% .85rem no-repeat;
}

.dy-rack__dymo {
  position: absolute;
  z-index: 3;
  right: 1.75rem;
  bottom: -.35rem;
  transform: rotate(-1.2deg);
}

.dy-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-mono);
  font-size: var(--t-data);
  line-height: 1.4;
  color: var(--label);
}

.dy-legend li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.dy-legend__sw {
  flex: none;
  width: 1.5rem;
  height: .75rem;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
}

.dy-legend__sw--site {
  background: repeating-linear-gradient(-45deg, var(--accent) 0 .25rem, #141210 .25rem .5rem);
}

.dy-legend__sw--home {
  background: var(--dy-home);
}

.dy-legend__sw--radio {
  background: var(--dy-radio);
}

.dy-shelf__note {
  max-width: 42rem;
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--t-data);
  line-height: 1.6;
  color: var(--label-muted);
}

/* a cassette lying in the stack (phone) or standing on the shelf (wider) */

.dy-shelf__item {
  position: relative;
  display: flex;
}

.dy-tape {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: .5rem .7rem .5rem .45rem;
  color: var(--paper-ink);
  text-decoration: none;
  background: linear-gradient(to bottom, #2E2D2A, #151413 50%, #0A0A09);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .8), 0 2px 3px rgba(0, 0, 0, .6);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.dy-tape::before {
  content: '';
  position: absolute;
  inset: .3rem .35rem;
  border-radius: 1px;
  background:
    repeating-linear-gradient(-45deg, var(--accent) 0 .3rem, #141210 .3rem .6rem) 0 0 / 1.1rem 100% no-repeat,
    linear-gradient(to bottom, var(--dy-card), var(--dy-card-2));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.dy-tape--home::before {
  background:
    linear-gradient(to bottom, #4C93BE, var(--dy-home)) 0 0 / 1.1rem 100% no-repeat,
    linear-gradient(to bottom, var(--dy-card), var(--dy-card-2));
}

.dy-tape > span:not(.dy-tape__flag) {
  position: relative;
  z-index: 1;
}

.dy-tape__no {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  min-width: 2.5rem;
  margin-left: 1.1rem;
  font-family: var(--f-mono);
  line-height: 1;
}

.dy-tape__no span {
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.dy-tape__no b {
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .02em;
}

.dy-tape__day {
  flex: none;
  padding: .3rem .45rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  line-height: 1.1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #F4F4F2;
  background: linear-gradient(to bottom, #2A2A2A, #121212);
  border-radius: 2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 -1px 0 rgba(255, 255, 255, .18);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.dy-tape__title {
  flex: 1;
  min-width: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dy-tape__dur {
  flex: none;
  font-family: var(--f-mono);
  font-size: var(--t-data);
  color: var(--paper-muted);
  white-space: nowrap;
}

.dy-tape__flag {
  position: absolute;
  z-index: 3;
  top: .45rem;
  right: .55rem;
  padding: .2rem .4rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .625rem;
  line-height: 1.1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #FFF;
  background: linear-gradient(to bottom, #C8352B, #8E1D16);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
  transform: rotate(2deg);
}

.dy-tape:hover,
.dy-tape:focus-visible {
  transform: translateX(.5rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .8), 0 6px 12px rgba(0, 0, 0, .6);
}

.dy-tape:focus-visible {
  outline-offset: 3px;
}

/* the last tape seen on this device sticks out of the shelf a little */

.dy-tape--here {
  transform: translateX(.35rem);
}

.dy-tape--here .dy-tape__dur {
  align-self: flex-end;
}

/* cab radio: a music tape in a clear case, hand-lettered card */

.dy-tape--radio {
  color: #FFF4E8;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 45%, rgba(0, 0, 0, .25)),
    #3B302A;
}

.dy-tape--radio::before {
  background:
    repeating-linear-gradient(to right, transparent 0 .9rem, rgba(0, 0, 0, .08) .9rem 1rem),
    linear-gradient(to bottom, #E8693A, var(--dy-radio));
}

.dy-tape--radio .dy-tape__no span,
.dy-tape--radio .dy-tape__dur {
  color: rgba(255, 244, 232, .8);
}

.dy-tape--radio .dy-tape__day {
  padding: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .04em;
  color: #FFF4E8;
  background: none;
  box-shadow: none;
  text-shadow: none;
  transform: rotate(-3deg);
}

.dy-tape--radio .dy-tape__title {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 24.99em) {
  .dy-tape {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "no day dur"
      "no title dur";
    gap: .3rem .55rem;
    align-items: center;
  }

  .dy-tape__no { grid-area: no; }
  .dy-tape__day { grid-area: day; justify-self: start; }
  .dy-tape__title { grid-area: title; overflow-wrap: break-word; }
  .dy-tape__dur { grid-area: dur; }
}

/* the empty slot after the newest tape */

.dy-slot__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  min-height: 3.25rem;
  padding: .55rem .9rem;
  font-family: var(--f-mono);
  font-size: var(--t-data);
  line-height: 1.4;
  color: var(--label-muted);
  border: 2px dashed rgba(218, 211, 196, .22);
  border-radius: 3px;
}

.dy-slot__day {
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--label);
}

.dy-slot__due [data-next-left] {
  color: var(--nixie);
  text-shadow: 0 0 6px rgba(255, 106, 16, .55);
  white-space: nowrap;
}

@media (min-width: 64em) {
  .dy-rack {
    padding-top: 0;
  }

  .dy-shelf__list {
    --dy-row: 26.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0 .4rem;
    padding: 0 .6rem;
    background:
      repeating-linear-gradient(to bottom,
        transparent 0 calc(var(--dy-row) - 1rem),
        var(--dy-steel-hi) calc(var(--dy-row) - 1rem) calc(var(--dy-row) - .85rem),
        var(--dy-steel) calc(var(--dy-row) - .85rem) calc(var(--dy-row) - .3rem),
        #2A2C27 calc(var(--dy-row) - .3rem) var(--dy-row));
  }

  .dy-shelf__item {
    height: var(--dy-row);
    padding: 1.4rem 0 1rem;
  }

  .dy-tape {
    flex: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: .6rem;
    width: 4.75rem;
    height: 100%;
    min-height: 0;
    padding: 1.45rem .3rem .65rem;
  }

  .dy-tape::before {
    background:
      repeating-linear-gradient(-45deg, var(--accent) 0 .3rem, #141210 .3rem .6rem) 0 0 / 100% 1.1rem no-repeat,
      linear-gradient(to right, var(--dy-card-2), var(--dy-card) 30%, var(--dy-card) 70%, var(--dy-card-2));
  }

  .dy-tape--home::before {
    background:
      linear-gradient(to bottom, #4C93BE, var(--dy-home)) 0 0 / 100% 1.1rem no-repeat,
      linear-gradient(to right, var(--dy-card-2), var(--dy-card) 30%, var(--dy-card) 70%, var(--dy-card-2));
  }

  .dy-tape--radio::before {
    background:
      repeating-linear-gradient(to bottom, transparent 0 .9rem, rgba(0, 0, 0, .08) .9rem 1rem),
      linear-gradient(to right, #C94E22, #E8693A 35%, var(--dy-radio));
  }

  .dy-tape__no {
    margin: 0;
    min-width: 0;
  }

  .dy-tape__day,
  .dy-tape__title {
    writing-mode: vertical-rl;
  }

  .dy-tape__day {
    padding: .5rem .3rem;
  }

  .dy-tape__title {
    flex: 1;
    font-size: 1.25rem;
    line-height: 1;
    overflow: hidden;
  }

  .dy-tape--radio .dy-tape__day {
    font-size: 1.125rem;
    transform: rotate(-2deg);
  }

  .dy-tape--radio .dy-tape__title {
    font-size: 1.125rem;
  }

  .dy-tape__flag {
    top: -1.1rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
  }

  .dy-tape--here {
    transform: translateY(-.35rem);
  }

  .dy-tape--here .dy-tape__dur {
    align-self: auto;
  }

  .dy-tape:hover,
  .dy-tape:focus-visible {
    transform: translateY(-.6rem);
  }

  .dy-slot {
    position: relative;
    width: 11.5rem;
    margin-right: 1.5rem;
  }

  /* steel bookend holding the row */
  .dy-slot::after {
    content: '';
    position: absolute;
    right: -1.4rem;
    bottom: 1rem;
    width: 1rem;
    height: 62%;
    background:
      linear-gradient(to right, rgba(255, 255, 255, .28), transparent 30%),
      linear-gradient(to bottom, #8E918A, var(--dy-steel) 45%, var(--dy-steel-lo));
    border-radius: .8rem .15rem 0 0;
    box-shadow: -5px 0 10px rgba(0, 0, 0, .55), inset -2px 0 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
  }

  .dy-slot::before {
    content: '';
    position: absolute;
    z-index: 1;
    right: -1.4rem;
    bottom: .85rem;
    width: 3.25rem;
    height: .35rem;
    background: linear-gradient(to bottom, #B4B7AF, var(--dy-steel) 60%, var(--dy-steel-lo));
    border-radius: 2px 2px 1px 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .6);
  }

  .dy-slot__text {
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
  }
}

/* ---------- rejected crate ---------- */

.dy-crate {
  margin-top: var(--s-6);
  scroll-margin-top: var(--s-4);
}

.dy-crate__voice {
  margin-top: 0;
  margin-bottom: var(--s-5);
}

.dy-crate__box {
  position: relative;
  padding: var(--s-4) var(--s-3) var(--s-3);
  border-radius: 4px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 calc(4.5rem - 3px), rgba(0, 0, 0, .55) calc(4.5rem - 3px) 4.5rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 9px, rgba(0, 0, 0, .05) 9px 12px),
    linear-gradient(to bottom, #6E5333, #5A4228);
  box-shadow: inset .9rem 0 0 rgba(0, 0, 0, .22), inset -.9rem 0 0 rgba(0, 0, 0, .22), inset 0 0 30px rgba(0, 0, 0, .45), 0 14px 28px rgba(0, 0, 0, .5);
}

.dy-crate__box::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--noise);
  opacity: .12;
  mix-blend-mode: multiply;
  border-radius: inherit;
}

.dy-crate__stencil {
  position: relative;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 15vw, 5.5rem);
  line-height: .9;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(196, 44, 32, .78);
  text-shadow: 0 0 2px rgba(196, 44, 32, .45), 0 0 9px rgba(196, 44, 32, .2);
  transform: rotate(-3deg);
  pointer-events: none;
}

.dy-crate__qc {
  position: relative;
  margin-top: var(--s-3);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .625rem;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(16, 12, 8, .72);
}

.dy-crate__list {
  position: relative;
  display: grid;
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

.dy-rtape,
.dy-crate__more {
  position: relative;
  padding: var(--s-4);
  background: linear-gradient(to bottom, #1E1914, #15110D);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), 0 6px 14px rgba(0, 0, 0, .45);
}

.dy-rtape {
  display: grid;
  gap: var(--s-4);
  align-items: start;
}

.dy-rtape__id {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-data);
  letter-spacing: .14em;
  color: var(--amber);
}

.dy-rtape__cap {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--label);
}

.dy-rtape__line {
  margin-top: var(--s-3);
  color: var(--label);
}

.dy-rtape__info {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--t-data);
  line-height: 1.5;
  color: var(--label-muted);
}

.dy-rtape__key {
  margin-top: var(--s-4);
}

/* VHS tape, top view: front flap, two side windows, centre label */

.dy-cass {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 12rem;
  aspect-ratio: 1.82;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .035) 0 1px, transparent 1px 2px),
    linear-gradient(to bottom, #2B2A27, #181715);
  border-radius: .35rem .35rem .45rem .45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -2px 0 rgba(0, 0, 0, .6), 0 6px 12px rgba(0, 0, 0, .55);
}

/* flap arrows */
.dy-cass::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 9%;
  left: 12%;
  right: 12%;
  height: 7cqw;
  background:
    conic-gradient(from 135deg at 50% 0, rgba(0, 0, 0, .55) 0 90deg, transparent 0) 0 0 / 5cqw 3cqw no-repeat,
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)) 1.6cqw 3cqw / 1.8cqw 3cqw no-repeat,
    conic-gradient(from 135deg at 50% 0, rgba(0, 0, 0, .55) 0 90deg, transparent 0) 100% 0 / 5cqw 3cqw no-repeat,
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)) calc(100% - 1.6cqw) 3cqw / 1.8cqw 3cqw no-repeat;
}

/* front flap with the VHS mark */
.dy-cass::after {
  content: 'VHS';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1cqw;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 4.5cqw;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .16);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7);
  background:
    linear-gradient(to bottom, transparent 0 14%, rgba(0, 0, 0, .35) 14% calc(14% + 1px), rgba(255, 255, 255, .06) calc(14% + 1px) calc(14% + 2px), transparent calc(14% + 2px)),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .04) 0 1px, transparent 1px 2px),
    linear-gradient(to bottom, #34332F, #1F1E1C);
  border-bottom: 1px solid rgba(0, 0, 0, .8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
  border-radius: .35rem .35rem 0 0;
}

.dy-cass__label {
  position: absolute;
  z-index: 1;
  top: 38%;
  bottom: 12%;
  left: 30%;
  right: 30%;
  padding: 3.5cqw 3cqw 0;
  background:
    linear-gradient(to bottom, transparent 0 84%, #C8392B 84%),
    linear-gradient(to bottom, transparent 0 2.6cqw, #C8392B 2.6cqw calc(2.6cqw + 1px), transparent calc(2.6cqw + 1px)),
    repeating-linear-gradient(to bottom, transparent 0 4cqw, rgba(31, 28, 23, .16) 4cqw calc(4cqw + 1px)),
    linear-gradient(to bottom, #F4F1EA, #E6E1D6);
  border-radius: 1cqw;
  box-shadow: 0 0 0 .8cqw #0E0D0C;
}

.dy-cass__id {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 7.5cqw;
  line-height: 1;
  color: var(--ink-blue);
}

.dy-cass__window {
  position: absolute;
  top: 38%;
  bottom: 12%;
  left: 4%;
  right: 4%;
  display: flex;
  justify-content: space-between;
}

/* side window: smoked glass, wound tape pack, white hub */
.dy-cass__reel {
  --hub: 74%;
  --pack: 13cqw;
  width: 22cqw;
  height: 100%;
  background:
    linear-gradient(118deg, transparent 0 58%, rgba(255, 255, 255, .13) 58% 66%, transparent 66%),
    radial-gradient(circle at var(--hub) 50%, #141312 0 1.2cqw, #D9D5CC 1.3cqw 3.4cqw, #8F8A80 3.5cqw 4cqw, #2E241D 4.1cqw var(--pack), rgba(0, 0, 0, .5) calc(var(--pack) + .1cqw) calc(var(--pack) + .6cqw), transparent calc(var(--pack) + .7cqw)),
    linear-gradient(135deg, #67645E, #3D3B37 60%, #4B4944);
  border-radius: 11cqw 1.5cqw 1.5cqw 11cqw / 50% 1.5cqw 1.5cqw 50%;
  box-shadow: 0 0 0 .8cqw #0E0D0C, inset 0 1px 3px rgba(0, 0, 0, .8);
}

.dy-cass__reel + .dy-cass__reel {
  --hub: 26%;
  --pack: 6cqw;
  border-radius: 1.5cqw 11cqw 11cqw 1.5cqw / 1.5cqw 50% 50% 1.5cqw;
}

.dy-cass__stamp {
  position: absolute;
  z-index: 2;
  top: 66%;
  left: 50%;
  font-size: 6cqw;
  border-width: .5cqw;
  transform: translate(-50%, -50%) rotate(-11deg);
  mix-blend-mode: normal;
  background: rgba(244, 241, 234, .2);
}

/* direct line */

.dy-crate__more {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3) var(--s-4);
  align-items: start;
  margin-top: var(--s-3);
}

.dy-crate__radio {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: #6FC3F2;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #23384A, #0E1822);
  box-shadow: 0 0 0 2px #1A1917, 0 0 14px rgba(61, 178, 240, .35);
}

.dy-crate__moreh {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #EDE6D7;
}

.dy-crate__moretext .voice {
  margin-top: var(--s-1);
}

.dy-crate__info {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--t-data);
  line-height: 1.5;
  color: var(--label-muted);
}

.dy-crate__morekey {
  grid-column: 1 / -1;
  justify-self: start;
}

.dy-rtape__key,
.dy-crate__morekey {
  height: auto;
  min-height: var(--hit);
  padding-block: var(--s-2);
  line-height: 1.3;
}

@media (min-width: 30em) {
  .dy-rtape {
    grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  }
}

@media (min-width: 64em) {
  .dy-crate__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48em) {
  .dy-crate__box {
    padding: var(--s-5) var(--s-5) var(--s-5);
  }

  .dy-crate__qc {
    margin-top: var(--s-2);
    transform: rotate(-1deg);
  }

  .dy-crate__list {
    gap: var(--s-4);
  }

  .dy-crate__more {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    margin-top: var(--s-4);
  }

  .dy-crate__morekey {
    grid-column: auto;
  }
}

/* ---------- day page ---------- */

.dy-day {
  display: grid;
  gap: var(--s-5);
}

.dy-day__head {
  margin-bottom: 0;
}

.dy-day__title {
  font-size: clamp(2rem, 9vw, 3.25rem);
}

.dy-day__name {
  display: block;
  margin-bottom: .1em;
  font-size: .62em;
  letter-spacing: .06em;
  color: var(--accent);
}

.dy-day__sep {
  display: none;
}

.dy-prev {
  max-width: 40rem;
  margin-top: var(--s-4);
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--label);
}

.dy-prev__k {
  display: inline-block;
  margin-right: var(--s-1);
  padding: .1rem .4rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 2px;
  vertical-align: .1em;
}

.dy-prev__name {
  padding: .625rem 0;
  font-weight: 600;
  color: var(--label);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.dy-prev__name::after {
  content: ':';
}

.dy-prev__name:hover {
  color: var(--accent);
}

/* playback monitor */

.dy-player {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  min-width: 0;
}

.dy-unit {
  position: relative;
  width: calc(var(--dy-scr-w) + 2 * var(--b));
  max-width: 100%;
  padding: var(--b);
  background:
    linear-gradient(var(--screen), var(--screen)) content-box,
    linear-gradient(to bottom, var(--bezel-hi), var(--bezel) 30%, var(--bezel-lo));
  border-radius: .625rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 22px rgba(0, 0, 0, .5), 0 0 60px rgba(225, 165, 39, .06);
}

.dy-unit::after {
  content: '';
  position: absolute;
  inset: var(--b);
  z-index: 4;
  pointer-events: none;
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 25% -10%, rgba(255, 255, 255, .08), transparent 55%),
    radial-gradient(ellipse at 50% 50%, transparent 62%, rgba(0, 0, 0, .3));
}

.dy-unit__dymo {
  position: absolute;
  z-index: 6;
  right: 1rem;
  bottom: -.7rem;
  transform: rotate(-1.4deg);
}

.dy-mon {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--osd);
  color-scheme: only dark;
  background: var(--screen);
  border-radius: 3px;
  overflow: hidden;
}

.dy-mon__top {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--mon-top);
  padding: 0 var(--s-3);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dy-tally {
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(225, 165, 39, .7);
}

.dy-mon[data-playing] .dy-tally {
  background: var(--rec-osd);
  box-shadow: 0 0 6px var(--rec-osd);
}

.dy-mon__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dy-mon__mode {
  flex: none;
  color: var(--osd-muted);
}

.dy-mon__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--screen);
}

.dy-mon__preview {
  position: absolute;
  inset: 0;
}

.dy-mon__preview::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .4), transparent 28%, transparent 62%, rgba(0, 0, 0, .72)),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 1px, transparent 1px 2px);
}

.dy-mon__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dy-mon__osd {
  position: absolute;
  z-index: 2;
  left: .75rem;
  right: .75rem;
  bottom: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--s-2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.dy-mon__title {
  min-width: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.dy-mon__dur {
  flex: none;
  font-family: var(--f-mono);
  font-size: var(--t-data);
  color: var(--osd-muted);
}

.dy-mon__play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  color: var(--osd);
  text-decoration: none;
}

.dy-mon__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .45), 0 0 0 6px rgba(225, 165, 39, .18);
  transition: transform .15s var(--ease);
}

.dy-mon__btn .ic {
  width: 1.75rem;
  height: 1.75rem;
  margin-left: 3px;
  fill: currentColor;
}

.dy-mon__play:hover .dy-mon__btn {
  transform: scale(1.05);
}

.dy-mon__play:focus-visible {
  outline-offset: -6px;
}

.dy-mon__note {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  line-height: 1;
  letter-spacing: .04em;
  text-shadow: 0 0 2px #000, 0 1px 4px #000;
}

.dy-mon__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* end of tape: next day in three */

.dy-end {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4);
  text-align: center;
  background: rgba(5, 5, 5, .92);
}

.dy-end__h,
.dy-end__next {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-data);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--osd-muted);
}

.dy-end__next {
  margin-top: var(--s-3);
  color: var(--amber);
}

.dy-end__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.dy-end__name a {
  color: var(--osd);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.dy-end__count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 5.5rem;
  margin: var(--s-2) 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--nixie);
  text-shadow: 0 0 6px var(--nixie-glow), 0 0 18px var(--nixie-glow);
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 106, 16, .14), transparent 70%), #0B0907;
  border-radius: 40% 40% 12% 12% / 30% 30% 8% 8%;
  box-shadow: inset 0 0 0 1px rgba(255, 176, 103, .18), inset 0 0 18px rgba(0, 0, 0, .9);
}

.dy-end__due {
  font-family: var(--f-mono);
  font-size: var(--t-data);
  color: var(--nixie);
}

.dy-end__keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

/* transport under the monitor */

.dy-dvr {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
  width: calc(var(--dy-scr-w) + 2 * var(--b));
  min-width: 0;
  max-width: 100%;
  margin-top: var(--s-3);
  padding: var(--s-2);
  background: var(--brushed), linear-gradient(to bottom, #2A2824, #1A1916);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 14px rgba(0, 0, 0, .45);
}

.dy-axis {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  min-width: 0;
  padding: 0 .3rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dim);
  background: var(--green-bg);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 14px rgba(0, 0, 0, .8);
}

/* the list is as tall as the tap targets, so they survive the sideways scroll of a long tape */
.dy-axis__list {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: .625rem 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.dy-axis__list::-webkit-scrollbar {
  display: none;
}

/* every tape gets an equal slot, never narrower than its tick; the whole slot is the tap target (44 px high),
   the tick stays small */

.dy-axis__list li {
  position: relative;
  flex: 1 0 1.5rem;
  display: flex;
  justify-content: center;
}

.dy-axis__list li::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: #1E3A27;
}

.dy-axis__list li:first-child::before {
  left: 50%;
}

.dy-axis__list li:last-child::before {
  right: 50%;
}

.dy-axis__tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: .6875rem;
  line-height: 1;
  color: var(--green);
  text-decoration: none;
  background: #0D1A10;
  border: 1.5px solid #2F5A3B;
  border-radius: 2px;
}

a.dy-axis__tick::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2.75rem;
  margin-top: -1.375rem;
}

.dy-axis__tick.is-done {
  border-color: var(--green-dim);
}

.dy-axis__tick[aria-current] {
  color: #04120A;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 8px rgba(140, 242, 166, .7);
}

a.dy-axis__tick:hover {
  border-color: var(--green);
}

.dy-axis__tick--radio {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
}

.dy-axis__tick--slot {
  color: var(--green-dim);
  background: transparent;
  border-style: dashed;
  opacity: .7;
}

.dy-dvr__keys {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-1);
}

.dy-step {
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.dy-step--next {
  justify-content: flex-end;
}

.dy-step span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dy-step--off {
  opacity: .4;
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.dy-dvr__due {
  padding: 0 var(--s-1);
  font-family: var(--f-mono);
  font-size: var(--t-data);
  line-height: 1.45;
  text-align: center;
  color: var(--label-muted);
}

.dy-dvr__due [data-next-left] {
  color: var(--nixie);
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(255, 106, 16, .5);
}

.dy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
}

.dy-actions .key {
  height: auto;
  min-height: var(--hit);
  padding: var(--s-2) var(--s-4);
  line-height: 1.3;
  white-space: normal;
}

.dy-mount .ic {
  color: var(--accent);
}

/* desk, lamp and clipboard */

.dy-desk {
  position: relative;
  padding: var(--s-4) 0 var(--s-2);
}

.dy-desk::before {
  content: '';
  position: absolute;
  inset: -1.5rem calc(-1 * var(--gutter)) -1rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 42% at 50% 8%, rgba(255, 199, 128, .2), transparent 72%),
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(255, 180, 90, .06), transparent 75%);
}

.dy-board {
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  padding: 2.25rem .5rem .5rem;
  background: linear-gradient(160deg, #6F4C2D, #5A3D23 55%, #4A321D);
  border-radius: .9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 rgba(0, 0, 0, .4), 0 18px 34px rgba(0, 0, 0, .55), 0 3px 6px rgba(0, 0, 0, .4);
}

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

.dy-clip {
  position: absolute;
  z-index: 3;
  top: -.5rem;
  left: 50%;
  width: 9.5rem;
  height: 2.9rem;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 45%, #F2EFE9 0 .18rem, #6F6B64 .25rem, transparent .32rem) 12% 62% / .9rem .9rem no-repeat,
    radial-gradient(circle at 50% 45%, #F2EFE9 0 .18rem, #6F6B64 .25rem, transparent .32rem) 88% 62% / .9rem .9rem no-repeat,
    linear-gradient(to bottom, #E2DFD8, #A9A59D 45%, #77736C);
  border-radius: .7rem .7rem .35rem .35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 5px 8px rgba(0, 0, 0, .5);
}

.dy-clip::before {
  content: '';
  position: absolute;
  top: -.85rem;
  left: 50%;
  width: 3.75rem;
  height: 1.3rem;
  transform: translateX(-50%);
  border: .28rem solid #BDB9B1;
  border-bottom: 0;
  border-radius: 1.2rem 1.2rem 0 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .4) inset;
}

.dy-sheet {
  padding: var(--s-5) var(--s-4);
}

.dy-sheet__head {
  align-items: center;
}

.dy-sheet__h {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dy-ticks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.dy-ticks__k {
  flex-basis: 100%;
}

@media (min-width: 30em) {
  .dy-ticks__k {
    flex-basis: auto;
    min-width: 7rem;
  }
}

.dy-tick {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.dy-tick.is-on {
  color: var(--paper-ink);
  font-weight: 600;
}

.dy-tick__box {
  position: relative;
  flex: none;
  width: .95rem;
  height: .95rem;
  border: 1.5px solid var(--paper-ink);
  border-radius: 1px;
}

.dy-tick__box .ic {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink-blue);
  stroke-width: 3;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.dy-fields {
  margin-top: 0;
}

.dy-hand,
.dy-notes {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--ink-blue);
}

.dy-fields .dy-hand {
  font-size: 1.0625rem;
  line-height: 1.35;
}

.dy-fields__work .dy-hand {
  font-weight: 600;
  font-size: 1.25rem;
}

/* printed references on the form: drawing numbers, work orders */

.dy-fields > .dy-fields__ref {
  align-items: center;
  padding-block: .125rem;
}

.dy-ref {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-mono);
  font-size: .8125rem;
  line-height: 1.35;
}

.dy-ref li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--s-2);
}

.dy-ref__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: var(--hit);
  font-weight: 600;
  color: var(--paper-ink);
  text-decoration: none;
}

.dy-ref__name {
  text-decoration: underline;
  text-decoration-color: var(--ink-red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.dy-ref__link:hover .dy-ref__name {
  color: var(--ink-red);
}

.dy-ref__no {
  padding: .05rem .3rem;
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--ink-red);
  border: 1px solid currentColor;
  border-radius: 2px;
}

.dy-ref__st {
  color: var(--paper-muted);
}

.dy-fields > .dy-fields__notes {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-bottom: 0;
}

.dy-notes {
  position: relative;
  padding-bottom: .25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(1.75rem - 1px), rgba(29, 59, 143, .17) calc(1.75rem - 1px) 1.75rem);
  background-origin: content-box;
  background-clip: content-box;
}

.dy-notes__head {
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.dy-notes__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dy-notes__list--numbered {
  padding-left: 1.85rem;
  list-style: decimal;
}

.dy-notes__list--numbered li::marker {
  font-weight: 600;
}

.dy-notes__list--dash li {
  position: relative;
  padding-left: 1.25rem;
}

.dy-notes__list--dash li::before {
  content: '\2013';
  position: absolute;
  left: 0;
}

.dy-notes .dy-coffee {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(29, 59, 143, .5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.dy-notes .dy-coffee:hover,
.dy-notes .dy-coffee:focus-visible {
  text-decoration-style: solid;
  text-decoration-color: var(--ink-red);
}

.dy-notes--ring::after {
  content: '';
  position: absolute;
  top: -1.25rem;
  right: -.25rem;
  width: 5.75rem;
  height: 5.75rem;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 51% 49%, transparent 0 55%, rgba(110, 66, 28, .34) 58%, rgba(110, 66, 28, .12) 61%, transparent 64%),
    radial-gradient(circle at 47% 53%, transparent 0 60%, rgba(110, 66, 28, .16) 62.5%, transparent 66%),
    radial-gradient(circle at 44% 46%, rgba(130, 84, 40, .09), rgba(130, 84, 40, .03) 50%, transparent 60%);
  -webkit-mask-image: conic-gradient(#000 0 150deg, rgba(0, 0, 0, .55) 205deg, rgba(0, 0, 0, .12) 255deg, rgba(0, 0, 0, .35) 300deg, #000 350deg);
  mask-image: conic-gradient(#000 0 150deg, rgba(0, 0, 0, .55) 205deg, rgba(0, 0, 0, .12) 255deg, rgba(0, 0, 0, .35) 300deg, #000 350deg);
  transform: rotate(24deg);
  mix-blend-mode: multiply;
}

/* signatures */

.dy-sign {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.dy-sign__line {
  display: flex;
  align-items: flex-end;
  height: 3.5rem;
  border-bottom: 1.5px solid var(--paper-ink);
}

.dy-sign__ink {
  width: 11rem;
  max-width: 100%;
  height: auto;
  margin-bottom: -.7rem;
  overflow: visible;
}

.dy-sign__ink path {
  fill: none;
  stroke: var(--ink-blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: dy-ink 1.8s .5s ease-out both;
}

@keyframes dy-ink {
  from {
    stroke-dashoffset: 1;
  }
}

.dy-sign__name {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .8125rem;
}

.dy-sign__role {
  margin-top: .15rem;
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.dy-sign__box--pending .dy-sign__role {
  margin-top: var(--s-2);
}

.dy-sign__pending {
  padding: 0 0 .3rem .5rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--paper-muted);
  transform: rotate(-2deg);
}

@media (min-width: 30em) {
  .dy-sign {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-6);
  }
}

@media (min-width: 37.5em) {
  .dy-board {
    padding: 2.5rem .75rem .75rem;
  }

  .dy-sheet {
    padding: var(--s-6);
  }
}

/* also on: feed switches */

.dy-also {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding: var(--s-4) var(--s-3) var(--s-3);
}

.dy-also__h {
  margin: 0 0 var(--s-3) var(--s-2);
}

.dy-also__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2) var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dy-sw {
  --dy-lamp: #E8E4DC;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-height: var(--hit);
  padding: .4rem .2rem;
  color: var(--label);
  text-decoration: none;
  border-radius: 5px;
}

.dy-sw[data-dy-feed="youtube"] { --dy-lamp: #FF4A3D; }
.dy-sw[data-dy-feed="tiktok"] { --dy-lamp: #3EE8E0; }
.dy-sw[data-dy-feed="instagram"] { --dy-lamp: #F25AA0; }
.dy-sw[data-dy-feed="telegram"] { --dy-lamp: #3DB2F0; }
.dy-sw[data-dy-feed="threads"] { --dy-lamp: #C9C4BA; }

.dy-sw:hover {
  background: rgba(255, 255, 255, .04);
}

.dy-sw__lamp {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .25), transparent 50%), #2B2A27;
  box-shadow: 0 0 0 2px #1A1917, inset 0 1px 2px rgba(0, 0, 0, .7);
  transition: background .2s, box-shadow .2s;
}

.dy-sw[data-dy-feed="youtube"] .dy-sw__lamp,
.dy-sw:hover .dy-sw__lamp,
.dy-sw:focus-visible .dy-sw__lamp {
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .7), transparent 50%), var(--dy-lamp);
  box-shadow: 0 0 0 2px #1A1917, 0 0 9px var(--dy-lamp);
}

.dy-sw__lever {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1B1A18 0 22%, transparent 23%),
    radial-gradient(circle at 38% 32%, #8A8780, #45423D 55%, #26241F);
  box-shadow: 0 0 0 3px #1E1C19, 0 2px 4px rgba(0, 0, 0, .6), inset 0 1px 1px rgba(255, 255, 255, .25);
}

.dy-sw__lever::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: .45rem;
  height: 1.35rem;
  margin-left: -.225rem;
  border-radius: .25rem .25rem .4rem .4rem;
  background: linear-gradient(to right, #77746E, #F1EEE8 45%, #9A968F 70%, #5D5A55);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .55);
  transform-origin: 50% 0;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}

.dy-sw:hover .dy-sw__lever::before,
.dy-sw:focus-visible .dy-sw__lever::before {
  transform: scaleY(-1);
}

.dy-sw__name {
  max-width: 100%;
  margin-top: .45rem;
  padding: .2rem .35rem;
  overflow: hidden;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .625rem;
  line-height: 1.1;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: #F4F4F2;
  background: linear-gradient(to bottom, #2A2A2A, #121212);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.dy-sw__sub {
  font-family: var(--f-mono);
  font-size: .625rem;
  line-height: 1;
  color: var(--label-muted);
}

@media (min-width: 30em) {
  .dy-also__row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* after the report: the series goes on from the bottom of the page too */

.dy-walk {
  display: grid;
  gap: var(--s-2);
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
}

.dy-walk__next {
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  height: auto;
  min-height: 4rem;
  padding: var(--s-3) var(--s-4);
  text-align: left;
  text-transform: none;
}

.dy-walk__next .ic {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.dy-walk__txt {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.dy-walk__k {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
}

.dy-walk__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--label);
  overflow-wrap: anywhere;
}

.dy-walk__next:hover .dy-walk__name {
  color: var(--accent);
}

.dy-walk__slot {
  display: grid;
  gap: .35rem;
  padding: var(--s-3) var(--s-4);
  border: 1.5px dashed rgba(173, 165, 148, .45);
  border-radius: 5px;
}

.dy-walk__slot .dy-walk__name {
  color: var(--label-muted);
}

.dy-walk__due {
  font-family: var(--f-mono);
  font-size: var(--t-data);
  line-height: 1.45;
  color: var(--label-muted);
}

.dy-walk__due [data-next-left] {
  color: var(--nixie);
  white-space: nowrap;
}

.dy-walk__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}

.dy-walk__row > :only-child {
  grid-column: 1 / -1;
}

.dy-walk__row .key {
  min-width: 0;
}

.dy-walk__prev {
  justify-content: flex-start;
}

.dy-day__crumbs {
  margin-bottom: calc(var(--s-3) - var(--s-5));
}

/* desktop: monitor stays in view while the report is read */

@media (min-width: 64em) {
  .dy-day {
    --dy-scr-w: min(28rem, calc((100vh - 13.75rem - var(--dy-extra, 0rem)) * 9 / 16));
    --dy-scr-w: min(28rem, calc((100svh - 13.75rem - var(--dy-extra, 0rem)) * 9 / 16));
    grid-template-columns: auto minmax(0, 46rem);
    grid-template-areas:
      "crumbs crumbs"
      "player head"
      "player actions"
      "player report"
      "player walk"
      "player also";
    grid-template-rows: auto auto auto auto auto 1fr;
    justify-content: center;
    align-items: start;
    gap: var(--s-5) clamp(2rem, 4vw, 4rem);
  }

  .dy-day__crumbs {
    grid-area: crumbs;
  }

  .dy-day__head {
    grid-area: head;
  }

  .dy-walk {
    grid-area: walk;
    margin-inline: 0;
  }

  .dy-player {
    grid-area: player;
    position: sticky;
    top: var(--s-4);
    align-self: start;
  }

  .dy-day--last {
    --dy-extra: 2.75rem;
  }

  .dy-actions {
    grid-area: actions;
    justify-content: flex-start;
  }

  .dy-desk {
    grid-area: report;
    padding-top: var(--s-3);
  }

  .dy-also {
    grid-area: also;
    margin-inline: 0;
  }

  .dy-board {
    margin-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dy-tape,
  .dy-mon__btn,
  .dy-sw__lamp,
  .dy-sw__lever::before {
    transition: none;
  }

  .dy-sign__ink path {
    animation: none;
  }
}

/* archive head: mechanical tape counter */

.dy-head {
  position: relative;
}

.dy-counter {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-2) var(--s-3);
  background: var(--brushed), linear-gradient(to bottom, #3A3732, #24221F);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 14px rgba(0, 0, 0, .45);
}

.dy-counter__k,
.dy-counter__u {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .625rem;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label-muted);
}

.dy-counter__u {
  max-width: 5.5rem;
}

.dy-counter__win {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #050505;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px #000, 0 0 0 1px rgba(255, 255, 255, .06);
}

.dy-counter__wheel {
  display: block;
  width: 1.15rem;
  height: 1.75rem;
  overflow: hidden;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.75rem;
  text-align: center;
  color: #F2EEE6;
  background: linear-gradient(to bottom, #000, #2A2826 22%, #45423D 50%, #2A2826 78%, #000);
  border-radius: 2px;
}

.dy-counter__wheel:last-child {
  color: var(--accent);
}

.dy-counter__strip {
  --n: 0;
  display: block;
  width: 100%;
  word-break: break-all;
  transform: translateY(calc(var(--n) * -1.75rem));
  animation: dy-roll 1.6s .3s cubic-bezier(.2, .7, .2, 1) both;
}

.dy-counter__strip--1 { --n: 1; }
.dy-counter__strip--2 { --n: 2; }
.dy-counter__strip--3 { --n: 3; }
.dy-counter__strip--4 { --n: 4; }
.dy-counter__strip--5 { --n: 5; }
.dy-counter__strip--6 { --n: 6; }
.dy-counter__strip--7 { --n: 7; }
.dy-counter__strip--8 { --n: 8; }
.dy-counter__strip--9 { --n: 9; }

@keyframes dy-roll {
  from {
    transform: translateY(0);
  }
}

/* report lit from the lamp */

.dy-sheet::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 92% 0%, rgba(255, 214, 150, .16), transparent 70%),
    linear-gradient(to bottom, transparent 55%, rgba(60, 40, 20, .07));
}

.dy-desklamp {
  display: none;
}

@media (min-width: 64em) {
  .dy-counter {
    position: absolute;
    top: 4.25rem;
    right: 0;
    margin: 0;
  }

  .dy-desk::before {
    background:
      radial-gradient(ellipse 55% 45% at 84% 2%, rgba(255, 199, 128, .24), transparent 72%),
      radial-gradient(ellipse 90% 70% at 60% 25%, rgba(255, 180, 90, .06), transparent 75%);
  }

  .dy-desklamp {
    position: absolute;
    z-index: 4;
    top: -4.5rem;
    right: -.5rem;
    display: block;
    width: 8rem;
    height: 8rem;
    pointer-events: none;
  }

  .dy-desklamp::before {
    content: '';
    position: absolute;
    top: -2.5rem;
    right: 1.4rem;
    width: .45rem;
    height: 6.5rem;
    background: linear-gradient(to right, #45423D, #A9A59D 50%, #45423D);
    border-radius: .25rem;
    transform: rotate(16deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
  }

  .dy-desklamp__shade {
    position: absolute;
    top: 2.4rem;
    right: .25rem;
    width: 6.75rem;
    height: 4rem;
    background:
      radial-gradient(ellipse at 35% 18%, rgba(255, 255, 255, .2), transparent 45%),
      linear-gradient(to bottom, #3F4E43, #243128 70%, #19221C);
    border-radius: 3.4rem 3.4rem .6rem .6rem / 3.4rem 3.4rem .6rem .6rem;
    transform: rotate(-22deg);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .55);
  }

  .dy-desklamp__shade::after {
    content: '';
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: -.35rem;
    height: .8rem;
    border-radius: 50%;
    background: radial-gradient(ellipse, #FFF4DA 0 35%, #FFD48A 55%, rgba(255, 190, 100, 0) 75%);
    box-shadow: 0 6px 30px 10px rgba(255, 196, 110, .32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dy-counter__strip {
    animation: none;
  }
}

@media (min-width: 85em) {
  .dy-desklamp {
    right: -2.25rem;
  }
}
