/* ============================================================
   dunder-mifflin.css: /dunder-mifflin/, The Office terminal.
   Sister page to /citadel/, /compass/ and the rest, and the only
   light one: fluorescent tubes, a drop ceiling and a company
   intranet from 2005, with panes that have title bars and three
   little window buttons. The Scranton branch is drawn from above
   and a documentary camera watches it.
   ============================================================ */

/* these pages load no shared stylesheet, so they carry their own reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
html.smooth { scroll-behavior: smooth; }   /* added after load, so back/forward restoration is not animated */

.dm {
  --iw-a: #2559a8;   /* the shared world button, interface-world.css */
  --iw-bg: #e4e5e0;
  --sans:   "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
  --type:   "Courier Prime", "Courier New", monospace;
  --hand:   "Caveat", "Marker Felt", cursive;
  --wall:   #e4e5e0;
  --paper:  #fbfaf6;
  --ink:    #1c2433;
  --dim:    #48505f;
  --mute:   #5d6573;        /* AA on the paper and on the wall */
  --navy:   #1d3766;
  --blue:   #2559a8;        /* links and the camera's highlight; 6.4:1 on white */
  --sky:    #4a86d8;        /* the same blue for dark grounds */
  --line:   #9aa6b8;
  --manila: #e8cf92;
  --rec:    #e0302a;
  --ease:   cubic-bezier(.16, 1, .3, 1);

  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
.dm a:focus-visible, .dm button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ───────────── the ceiling ───────────── */
.dm-ceiling { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.dm-ceiling > span { position: absolute; }
.dm-tiles {
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(60, 64, 72, .06) 0 2px, transparent 2px 120px),
    repeating-linear-gradient(90deg, rgba(60, 64, 72, .06) 0 2px, transparent 2px 120px),
    radial-gradient(120% 80% at 50% 0%, #f2f3ee, var(--wall) 70%);
}
/* two tubes, a little colder than the room; one of them is going */
.dm-tube {
  top: 0; height: 46vh; width: 38vw;
  background: radial-gradient(50% 60% at 50% 0%, rgba(235, 246, 255, .9), transparent 75%);
}
.dm-tube--a { left: 6vw; }
.dm-tube--b { right: 4vw; animation: dm-hum 9s steps(1) infinite; }
@keyframes dm-hum { 0%, 61%, 63%, 100% { opacity: 1; } 62% { opacity: .55; } 62.5% { opacity: .9; } }

/* ───────────── the chrome ───────────── */
.dm-top { position: relative; z-index: 3; }
.dm-titlebar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap;
  padding: calc(0.7rem + env(safe-area-inset-top, 0px)) clamp(1rem, 4vw, 2.4rem) 0.7rem;
  background: linear-gradient(180deg, #3a63a8 0%, #24467f 45%, var(--navy) 100%);
  border-bottom: 1px solid #0f1f3d;
  color: #e7eefb; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.dm-exit {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem 0.3rem 0.45rem; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .3); color: #fff;
}
.dm-exit:hover { background: rgba(255, 255, 255, .28); }
.dm-exit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.dm-top-mid { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }
.dm-tray {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.25rem 0.6rem; border-radius: 2px;
  background: rgba(8, 20, 44, .45); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4);
  font-variant-numeric: tabular-nums;
}
.dm-tray-dot { width: 7px; height: 7px; border-radius: 50%; background: #6fd27a; box-shadow: 0 0 6px #6fd27a; }
.dm-menu {
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.2rem;
  padding: 0.3rem clamp(0.6rem, 3.4vw, 2rem);
  background: linear-gradient(180deg, #f7f6f1, #e3e1d8);
  border-bottom: 1px solid #b7b4a9;
  font-size: 0.82rem;
}
.dm-menu a { padding: 0.25rem 0.6rem; border: 1px solid transparent; border-radius: 2px; color: var(--ink); }
.dm-menu a:hover { background: #dce6f6; border-color: #8fa9d4; }

.dm-main { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.4rem); }

/* ───────────── the welcome ───────────── */
.dm-hero {
  display: grid; gap: clamp(1.2rem, 4vw, 3rem); align-items: center;
  grid-template-columns: 1fr;
  padding: clamp(1.8rem, 5vw, 3.4rem) 0 clamp(1.4rem, 4vw, 2.4rem);
}
@media (min-width: 900px) { .dm-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.dm-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); }
/* the wordmark, set in type: heavy, tracked, with a rule under it like
   the letterhead's */
.dm-title {
  margin-top: 0.5rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; line-height: 0.95;
  font-size: clamp(2.6rem, 9vw, 5.6rem); color: var(--ink);
}
.dm-title-sub {
  display: inline-block; margin-top: 0.7rem; padding-top: 0.55rem;
  border-top: 4px solid var(--ink);
  font-size: clamp(0.8rem, 1.6vw, 1rem); font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim);
}
/* the memo, pinned slightly crooked */
.dm-memo {
  position: relative; justify-self: center; max-width: 34rem; width: 100%;
  padding: 1.4rem 1.5rem 1.2rem;
  background: var(--paper); color: var(--ink);
  font-family: var(--type); font-size: 0.98rem; line-height: 1.55;
  box-shadow: 0 1px 0 #d8d5ca, 0 12px 26px rgba(30, 36, 50, .16);
  rotate: -0.8deg;
}
.dm-memo::before {   /* the pushpin */
  content: ""; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a80, #c62828 60%, #7a1010);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .3);
}
.dm-memo-h { font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; text-align: center; margin-bottom: 0.8rem; }
.dm-memo-head { margin-bottom: 0.8rem; padding-bottom: 0.6rem; border-bottom: 1px solid #c9c5b8; }
.dm-memo-head div { display: grid; grid-template-columns: 4.2rem 1fr; }
.dm-memo-head dt { font-weight: 700; text-transform: uppercase; }
.dm-memo-head dt::after { content: ":"; }
.dm-memo p + p { margin-top: 0.6rem; }
.dm-memo-sig { font-style: italic; color: var(--dim); }

/* ───────────── panes ───────────── */
.dm-pane {
  background: #fff; border: 1px solid var(--line); border-radius: 5px 5px 3px 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 8px 22px rgba(30, 40, 60, .1);
  overflow: clip;
}
.dm-pane + .dm-pane, .dm-cols, .dm-cols + .dm-pane { margin-top: clamp(1rem, 2.6vw, 1.6rem); }
.dm-pane-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  background: linear-gradient(180deg, #eef3fb, #c8d6ee);
  border-bottom: 1px solid var(--line);
}
.dm-h {
  flex: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.1rem 0.7rem;
  font-size: 1.05rem; font-weight: 800; color: #14223d;
}
.dm-h span { font-size: 0.82rem; font-weight: 400; font-style: italic; color: var(--dim); }
.dm-think { width: 20px; height: 20px; flex: none; }
/* minimize, maximize, close: drawn, and they do nothing, like most of the intranet */
.dm-winbtns { display: flex; gap: 3px; flex: none; }
.dm-winbtns i {
  width: 15px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #fdfdfd, #d5dce8); border: 1px solid #8796ae;
}
.dm-winbtns i:last-child { background: linear-gradient(180deg, #ef8a74, #c9452d); border-color: #8f2e1e; }

/* ───────────── the floor ───────────── */
.dm-floor-body {
  display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); align-items: start;
  grid-template-columns: 1fr;
  padding: clamp(0.8rem, 2vw, 1.2rem);
  background: #f3f2ed;
}
@media (min-width: 960px) {
  .dm-floor-body { grid-template-columns: minmax(0, 2.3fr) minmax(290px, 1fr); }
  .dm-camwrap { position: sticky; top: 1rem; }
}
/* on a phone the camera pins to the top of the screen and the seating
   chart scrolls under it */
@media (max-width: 959.98px) {
  .dm-camwrap { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; margin: 0 -0.2rem; }
}

.dm-cam {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: #16181c; border-radius: 4px;
  box-shadow: 0 0 0 1px #0b0c0e, 0 10px 24px rgba(10, 14, 22, .3);
  isolation: isolate;
}
.dm-plan { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
/* the plan sits under a slight video grade: warmer, a touch soft at the
   edges, as the crew's footage is */
.dm-cam::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 95% at 50% 45%, transparent 60%, rgba(10, 12, 16, .4)),
    linear-gradient(180deg, transparent 58%, rgba(8, 10, 14, .62));
  mix-blend-mode: normal;
}

/* the plan's own paint */
.dm-shell-floor { stroke: none; }
.dm-shell { fill: none; stroke: #2e3440; stroke-width: 7; }
.dm-r-hit { fill: transparent; stroke: #4a5160; stroke-width: 2.5; }
.dm-r--lot .dm-r-hit { fill: #4a4e55; stroke: #2e3440; }
.dm-r--card .dm-r-hit { fill: #efece3; stroke: #4a5160; }
.dm-r-lit { fill: var(--sky); opacity: 0; transition: opacity .35s; }
.dm-r.is-on .dm-r-lit { opacity: .2; }
.dm-r.is-on .dm-r-hit { stroke: var(--blue); stroke-width: 4; }
.dm-r--desk .dm-r-hit { stroke: none; }
.dm-r--desk.is-on .dm-r-hit { stroke: var(--blue); stroke-width: 3; stroke-dasharray: 6 4; }
.dm-r-t { font-family: var(--sans); font-weight: 800; font-size: 17px; fill: #141a26; letter-spacing: .2px; }
.dm-r-t--sm { font-size: 14px; }
.dm-r-s { font-family: var(--sans); font-style: italic; font-size: 12px; fill: #2e3644; }
.dm-r--lot .dm-r-t { fill: #fff; }
.dm-r--lot .dm-r-s { fill: #d9dde3; }
.dm-r { cursor: pointer; }

.dm-deco-floor { fill: url(#dmCarpet); stroke: #4a5160; stroke-width: 2.5; }
.dm-deco-tile { fill: url(#dmTile); stroke: #4a5160; stroke-width: 2.5; }
.dm-deco-card { fill: #e4e1d8; stroke: #7a8190; stroke-width: 2; stroke-dasharray: 5 4; }
.dm-deco-t { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: #3a4252; }
.dm-hall { fill: url(#dmCarpet); }
.dm-plan-note { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; fill: #4d5564; }
.dm-plan-addr { font-family: var(--type); font-size: 12px; fill: #2e3644; }

.dm-desk { fill: #ebe3cc; stroke: #776e5c; stroke-width: 1.2; }
.dm-mon { fill: #2a2e36; }
.dm-chair { fill: #3a414d; }
.dm-chair--boss { fill: #1f242c; }
.dm-plant { fill: #4f8a4a; stroke: #2f5a2c; stroke-width: 1.5; }
.dm-jar { fill: rgba(220, 230, 240, .8); stroke: #6c7686; }
.dm-jar--mm { fill: #e8a33c; }
.dm-mug { fill: #fff; stroke: #333; stroke-width: 1.2; }
.dm-couch { fill: #6b4f3a; }
.dm-board { fill: #fff; stroke: #8a93a3; }
.dm-blinds { stroke: #f4f6f8; stroke-width: 5; stroke-dasharray: 3 2; }
.dm-fridge, .dm-copier, .dm-vend { fill: #d6d9de; stroke: #5d6573; stroke-width: 1.2; }
.dm-vend { fill: #b13a32; }
.dm-vend--b { fill: #2f5d9a; }
.dm-tv { fill: #111; }
.dm-paper { fill: #fff; stroke: #b9b5a8; stroke-width: .8; }
.dm-cab { fill: #9aa0a8; stroke: #5d6573; }
.dm-closet { fill: #d7d0bd; stroke: #776e5c; stroke-dasharray: 4 3; }
.dm-jello { fill: #f2d230; opacity: .9; stroke: #b99d10; stroke-width: .8; }
.dm-stapler { fill: #5a5f68; }
.dm-bobble { fill: #c9a25a; stroke: #6a5426; }
.dm-lift { fill: #b8bcc3; stroke: #5d6573; }
.dm-lift-gap, .dm-wall-in { stroke: #4a5160; stroke-width: 2; }
.dm-fix { fill: #f2f2f0; stroke: #8a93a3; }
.dm-step { stroke: #5d6573; stroke-width: 1.5; }
.dm-stair-arrow { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dm-stall { stroke: #f1f1ea; stroke-width: 2; }
.dm-car-glass { fill: rgba(20, 26, 36, .55); }
.dm-shelf { fill: #6a7280; }
.dm-box { fill: #c79a5c; stroke: #8a6634; stroke-width: .8; }
.dm-dock { fill: #f2c230; }
.dm-lift-truck rect { fill: #e2a320; stroke: #6a4a10; }
.dm-lift-truck path { stroke: #333; stroke-width: 3; }
.dm-court { fill: #c99a62; stroke: #fff; stroke-width: 3; }
.dm-court-l { fill: none; stroke: #fff; stroke-width: 2.5; }
.dm-hoop { fill: none; stroke: #e05a1c; stroke-width: 2.5; }
.dm-ball { fill: #e0731c; stroke: #5a2a08; }
.dm-bldg { fill: #c8c3b6; stroke: #5d6573; stroke-width: 1.5; }
.dm-bldg-roof { fill: #7a8190; }
.dm-win { fill: #8fb3dc; }
.dm-door { fill: #5d6573; }
.dm-printer { fill: #e6e8eb; stroke: #5d6573; stroke-width: 1.5; }
.dm-ptray { fill: #c9ccd2; }
.dm-led { fill: #e0302a; }
.dm-smoke circle { fill: rgba(80, 84, 92, .35); transform-box: fill-box; transform-origin: center; animation: dm-smoke 5s ease-in-out infinite; }
.dm-smoke circle:nth-child(2) { animation-delay: -1.6s; }
.dm-smoke circle:nth-child(3) { animation-delay: -3.2s; }
@keyframes dm-smoke { 0%, 100% { transform: translateY(0) scale(1); opacity: .7; } 50% { transform: translateY(-6px) scale(1.4); opacity: .2; } }
.dm-rose circle { fill: none; stroke: #6c7686; }
.dm-rose path { fill: #6c7686; }
.dm-rose text { font-family: var(--sans); font-weight: 800; font-size: 12px; fill: #3a4252; }

/* the viewfinder over the footage */
.dm-vf {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  color: #fff; font-family: var(--type); font-size: clamp(0.66rem, 1.3vw, 0.82rem); letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}
.dm-vf-c { position: absolute; width: 7%; height: 11%; border: 2px solid rgba(255, 255, 255, .85); }
.dm-vf-c--tl { top: 5%; left: 3.5%; border-right: 0; border-bottom: 0; }
.dm-vf-c--tr { top: 5%; right: 3.5%; border-left: 0; border-bottom: 0; }
.dm-vf-c--bl { bottom: 5%; left: 3.5%; border-right: 0; border-top: 0; }
.dm-vf-c--br { bottom: 5%; right: 3.5%; border-left: 0; border-top: 0; }
.dm-vf-rec { position: absolute; top: 7.5%; left: 6.5%; display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; }
.dm-vf-rec i { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--rec); box-shadow: 0 0 6px var(--rec); animation: dm-blink 1.2s steps(1) infinite; }
@keyframes dm-blink { 50% { opacity: 0; } }
.dm-vf-tc { position: absolute; top: 7.5%; right: 6.5%; font-variant-numeric: tabular-nums; }
.dm-vf-cross { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: .55; }
.dm-vf-cross::before, .dm-vf-cross::after { content: ""; position: absolute; background: #fff; }
.dm-vf-cross::before { left: 10px; top: 0; width: 2px; height: 22px; }
.dm-vf-cross::after { top: 10px; left: 0; height: 2px; width: 22px; }
.dm-vf-cam { position: absolute; bottom: 7.5%; right: 6.5%; }
.dm-vf-bat { position: absolute; top: 14%; right: 6.5%; width: 26px; height: 12px; border: 2px solid #fff; border-radius: 2px; }
.dm-vf-bat::after { content: ""; position: absolute; right: -5px; top: 2px; width: 3px; height: 4px; background: #fff; }
.dm-vf-bat i { position: absolute; inset: 1px; right: 35%; background: #fff; }
/* the lower third, as the documentary names people: white, plain, left */
.dm-chy {
  position: absolute; left: 6.5%; bottom: 11%; max-width: 62%;
  display: flex; flex-direction: column;
  font-family: var(--sans); letter-spacing: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}
.dm-chy b { font-weight: 700; font-size: clamp(0.95rem, 2.2vw, 1.5rem); line-height: 1.15; }
.dm-chy i { font-style: normal; font-size: clamp(0.72rem, 1.4vw, 0.95rem); opacity: .95; }
.dm-chy.is-new { animation: dm-chy .6s var(--ease) both; }
@keyframes dm-chy { from { opacity: 0; translate: -10px 0; } to { opacity: 1; translate: 0 0; } }

/* the seating chart */
.dm-seats { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.dm-seat {
  display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); column-gap: 0.6rem; align-items: center;
  padding: 0.4rem 0.6rem; border-radius: 3px;
  background: #fff; border: 1px solid #d4d8de; border-left: 4px solid #d4d8de;
  transition: background .25s, border-color .25s;
}
.dm-seat-n {
  grid-row: span 2; align-self: center; text-align: center;
  font-family: var(--type); font-weight: 700; font-size: 0.86rem; color: var(--mute);
  border: 1px solid #c3c8cf; border-radius: 2px; padding: 0.1rem 0;
  background: #f6f6f2;
}
.dm-seat b { font-weight: 800; font-size: 0.98rem; color: var(--ink); line-height: 1.25; }
.dm-seat i { font-style: normal; font-size: 0.84rem; color: var(--dim); line-height: 1.35; }
.dm-seat:hover, .dm-seat.is-on { background: #e5edf9; border-color: #a6bde3; border-left-color: var(--blue); }
.dm-seat.is-on .dm-seat-n { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ───────────── two panes ───────────── */
.dm-cols { display: grid; gap: clamp(1rem, 2.6vw, 1.6rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .dm-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }

/* the folder: manila, with its tab and the sheet half out */
.dm-folder { position: relative; margin: 2.2rem clamp(0.8rem, 2.4vw, 1.4rem) 1.4rem; padding: 1.1rem 0.9rem 0.9rem; background: var(--manila); border-radius: 0 6px 6px 6px; box-shadow: inset 0 -2px 0 #c9ab62, 0 6px 14px rgba(60, 46, 10, .16); }
.dm-folder-tab {
  position: absolute; left: 0; bottom: 100%; padding: 0.3rem 1rem 0.2rem;
  background: var(--manila); border-radius: 6px 6px 0 0;
  font-family: var(--type); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; color: #4a3a12;
}
.dm-sheet {
  position: relative; padding: 1.2rem 1.1rem 1.1rem;
  background: var(--paper); font-family: var(--type); color: var(--ink);
  box-shadow: 0 2px 6px rgba(60, 46, 10, .2);
  rotate: 0.6deg;
}
.dm-sheet-h { font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.86rem; margin-bottom: 0.7rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.4rem; }
.dm-rec div { display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px dotted #b9b5a8; }
.dm-rec dt { font-weight: 700; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--dim); padding-top: 0.15rem; }
.dm-rec dd { font-size: 0.95rem; line-height: 1.45; }
.dm-rec a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.dm-stamp {
  position: absolute; top: 0.8rem; right: 0.9rem;
  padding: 0.15rem 0.55rem; border: 3px double #b3261e; border-radius: 3px;
  font-family: var(--sans); font-weight: 900; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: #b3261e;
  rotate: -9deg; opacity: .85;
}
.dm-sticky {
  margin: 1.1rem 0 0 auto; max-width: 17rem; padding: 0.8rem 0.9rem;
  background: #fbe773; color: #2d2a12;
  font-family: var(--hand); font-weight: 500; font-size: 1.28rem; line-height: 1.2;
  box-shadow: 0 6px 10px rgba(60, 50, 0, .18);
  rotate: -2deg;
}

/* the Dundies, on a shelf */
.dm-defs { position: absolute; width: 0; height: 0; }
.dm-dundies {
  list-style: none; display: grid; gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  padding: clamp(0.8rem, 2vw, 1.2rem);
  background: linear-gradient(180deg, #fff, #f3f2ed);
}
.dm-dundies li {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0.75rem; align-items: center;
  padding: 0.7rem 0.8rem; border: 1px solid #ddd8c8; border-radius: 3px;
  background: #fffdf7;
}
/* a glint runs over each trophy in turn, once, when the shelf is lit */
.dm-dundies li::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 180, .7) 50%, transparent 65%);
  translate: -110% 0;
  animation: dm-glint 1.4s var(--ease) both; animation-delay: calc(var(--i) * 180ms + 600ms);
}
@keyframes dm-glint { to { translate: 110% 0; } }
.dm-trophy { width: 44px; height: 72px; filter: drop-shadow(0 3px 3px rgba(80, 60, 10, .3)); transition: translate .4s var(--ease); }
.dm-dundies li:hover .dm-trophy { translate: 0 -4px; }
.dm-dundies b { display: block; font-weight: 800; font-size: 0.92rem; color: #6a4c0c; letter-spacing: 0.01em; }
.dm-dundies p { font-size: 0.92rem; line-height: 1.4; color: var(--ink); }

/* ───────────── the directory ───────────── */
.dm-lines {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  background: #fff;
}
.dm-lines a {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 0.7rem;
  padding: 0.6rem 1rem; border-bottom: 1px solid #e3e5e9; border-right: 1px solid #eef0f2;
  transition: background .2s;
}
.dm-lines li:nth-child(even) a { background: #f7f8fa; }
.dm-lines a:hover { background: #e5edf9; }
.dm-ext { grid-row: span 2; align-self: center; font-family: var(--type); font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.dm-lines b { font-weight: 700; font-size: 0.95rem; }
.dm-lines i { font-style: normal; font-size: 0.84rem; color: var(--dim); }

/* ───────────── the closing line ───────────── */
.dm-close { text-align: center; margin-top: clamp(2rem, 5vw, 3rem); }
.dm-twss {
  padding: 0.85rem 1.6rem; cursor: pointer;
  background: linear-gradient(180deg, #fdfdfb, #dcdfe5); color: var(--ink);
  border: 1px solid #7f8ba0; border-radius: 4px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #b5bcc8, 0 6px 14px rgba(30, 40, 60, .14);
  font-family: var(--sans); font-size: 1.05rem; font-weight: 800; letter-spacing: 0.01em;
  transition: translate .15s, box-shadow .15s;
}
.dm-twss:hover { background: linear-gradient(180deg, #fff, #e5edf9); }
.dm-twss:active { translate: 0 2px; box-shadow: inset 0 1px 0 #fff, 0 0 0 #b5bcc8; }

.dm.is-said .dm-main, .dm.is-said .dm-top { opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.dm-done {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  padding: 2rem 1.2rem; text-align: center;
  background: #0b0c0e; color: #e9ecf1;
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s;
}
.dm.is-said .dm-done { opacity: 1; visibility: visible; transition: opacity .9s ease .2s, visibility 0s; }
.dm-done-in { max-width: 40rem; }
.dm-done-orb { display: block; width: 96px; height: 96px; margin: 0 auto 1.4rem; }
.dm:not(.is-said) .dm-done-orb { display: none; }
.dm-done-k { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sky); }
.dm-done-t { margin-top: 0.8rem; font-weight: 600; font-size: clamp(1.4rem, 4.6vw, 2.3rem); line-height: 1.25; }
.dm-done-by { margin-top: 0.9rem; font-style: italic; color: #aab1bd; font-size: 0.95rem; }
.dm-done-acts { margin-top: 1.8rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.dm-done-home, .dm-done-on {
  padding: 0.6rem 1.1rem; border-radius: 3px; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.dm-done-home { background: var(--sky); color: #08142a; }
.dm-done-home:hover { background: #75a5e6; }
.dm-done-on { background: transparent; color: #e9ecf1; border: 1px solid #5d6573; }
.dm-done-on:hover { border-color: #e9ecf1; }

/* ───────────── phones ───────────── */
@media (max-width: 560px) {
  .dm-top-mid { order: 3; flex-basis: 100%; }
  .dm-memo { rotate: 0deg; padding: 1.2rem 1.1rem 1rem; font-size: 0.94rem; }
  .dm-rec div { grid-template-columns: 1fr; gap: 0.1rem; }
  .dm-sticky { max-width: none; }
  .dm-dundies { grid-template-columns: 1fr; }
  .dm-lines { grid-template-columns: 1fr; }
  .dm-vf-bat, .dm-vf-cross { display: none; }   /* viewfinder ornaments only, not content */
  .dm-chy { max-width: 80%; }
}

@media (prefers-reduced-motion: reduce) {
  .dm-tube--b, .dm-vf-rec i, .dm-smoke circle, .dm-chy.is-new, .dm-dundies li::after { animation: none; }
  .dm-dundies li::after { display: none; }
  .dm-r-lit, .dm-seat, .dm-trophy { transition: none; }
}
