/* The Watchmaker's Atelier: My Watches (my-watches/, drawn by js/watches.js).
   Loaded after atelier.css and pages.css. It reuses their pieces (page-head, sheet, project__more
   details, more-link, link-btn, sk skeleton bars) and everything new is an .mw-* class, so nothing here
   can reach another page. The sign-in code sits in little date windows; progress is a three-step rail. */

.mw [hidden] { display: none !important; }
.mw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons on the cream page head: the brown treatment .sect buttons already get */
.mw .page-head .btn { color: var(--brown); }
.mw .page-head .btn--solid { background: var(--brown); color: var(--ivory); border-color: var(--brown); }
.mw .page-head .btn--solid:hover { background: #3b1900; border-color: #3b1900; }
.mw .page-head .btn--ghost:hover { background: rgba(80, 34, 0, .06); }
.mw .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.mw h1:focus, .mw [tabindex="-1"]:focus { outline: none; }

/* ---------------------------------------------------------------- signed out */
/* The sign-in button has to be on screen without scrolling on a laptop (1280x720 up), so the gate's
   headline is a size smaller than the other page heads and the head sits a little higher. */
.mw-gate { padding: calc(76px + 6vh) 0 12vh; }
.mw-gate__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.mw-gate h1 { max-width: 15ch; margin-bottom: 18px; font-size: clamp(38px, 4.1vw, 60px); }
.mw-gate__photo { --ar: 4 / 5; margin-top: 12px; }

.mw-panel { max-width: 34rem; margin-top: 32px; }
.mw-steps { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--ivory-line); }
.mw-steps li { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--ivory-line); font-size: 15px; line-height: 1.55; color: var(--ivory-muted); }
.mw-steps b { font-weight: 500; color: var(--ivory-ink); }
.mw-steps__n { font: 500 11.5px/2.1 var(--sans); letter-spacing: .16em; color: var(--brown-2); }
.mw-fine { margin-top: 18px; max-width: 30rem; font-size: 13.5px; color: var(--ivory-muted); }
.mw-alert { margin-top: 18px; padding: 12px 16px; border-left: 2px solid var(--brown); background: rgba(80, 34, 0, .05); font-size: 14.5px; color: var(--ivory-ink); }

/* the code: six date windows */
.mw-code__label { font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brown-2); }
.mw-code__value { display: flex; gap: clamp(6px, 1vw, 10px); margin: 14px 0 28px; }
.mw-code__char {
  display: grid; place-items: center; width: clamp(44px, 4.6vw, 58px); aspect-ratio: 5 / 6;
  border: 1px solid rgba(80, 34, 0, .22); border-radius: 3px; background: #fffdf6;
  box-shadow: inset 0 2px 4px rgba(80, 34, 0, .12), 0 1px 0 rgba(255, 255, 255, .8);
  font: 600 clamp(25px, 2.7vw, 33px)/1 var(--sans); letter-spacing: 0; color: var(--ivory-ink);
}
.mw-code__manual { margin-top: 18px; font-size: 14px; color: var(--ivory-muted); }
.mw-code__manual b { font-weight: 600; color: var(--ivory-ink); white-space: nowrap; }
.mw-wait { display: flex; align-items: flex-start; gap: 12px; margin-top: 30px; font: 500 11.5px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.mw-wait__dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--brown); animation: mw-beat 1.2s ease-in-out infinite; }
@keyframes mw-beat { 50% { transform: scale(.5); opacity: .4; } }
.mw-timer { height: 1px; margin-top: 14px; background: var(--ivory-line); overflow: hidden; }
.mw-timer span { display: block; height: 100%; background: var(--brown); transform-origin: left center; transition: transform 1s linear; }
.mw-code__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--ivory-muted); }
.mw-code__foot .link-btn { font-size: 13px; }
.mw-warn { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--ivory-line); font-size: 13px; line-height: 1.6; color: var(--ivory-muted); }

.mw-off { display: grid; justify-items: start; gap: 20px; font-size: 16px; color: var(--ivory-muted); }

/* ---------------------------------------------------------------- checking / error */
.mw-sk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.mw-sk__card { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--ivory-line); border-radius: 4px; background: rgba(255, 255, 255, .5); }
.mw-error { padding-bottom: 12vh; }
.mw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------------------------------------------------------------- signed in: head */
.mw-head { padding-bottom: 8vh; }
.mw-head h1 { max-width: 20ch; }
.mw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 46px 0 0; border-top: 1px solid var(--ivory-line); }
.mw-stats div { padding: 18px 18px 0 0; }
.mw-stats div + div { padding-left: 18px; border-left: 1px solid var(--ivory-line); }
.mw-stats dt { font: 500 10.5px/1.4 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ivory-muted); }
.mw-stats dd { margin: 10px 0 0; font: 500 clamp(32px, 3.4vw, 46px)/1 var(--serif); color: var(--ivory-ink); }
.mw-account { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 34px; font: 500 11px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-muted); }
.mw-account .link-btn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--brown); }

.mw-ready {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin-top: 36px; padding: 24px 28px; border-radius: 4px; background: var(--brown); color: var(--ivory);
}
body.page .mw-ready .eyebrow { color: var(--accent); }
.mw-ready__what { margin: 10px 0 6px; font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--serif); color: var(--ivory); }
.mw-ready p:not(.eyebrow):not(.mw-ready__what) { font-size: 14.5px; color: rgba(249, 247, 235, .78); }
.mw .page-head .mw-ready .btn { color: var(--ivory); }
.mw .page-head .mw-ready .btn--ghost:hover { background: rgba(249, 247, 235, .1); }

.mw-empty { display: grid; justify-items: start; gap: 22px; max-width: 36rem; margin-top: 26px; font-size: 16px; color: var(--ivory-muted); }

/* ---------------------------------------------------------------- sections */
.mw-sect { padding: 11vh 0; }
.mw-sect__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: 38px; }
.mw-sect__head h2 { margin: 14px 0 0; font-size: clamp(32px, 3.6vw, 50px); }
.mw-sect__aside { max-width: 24rem; font-size: 14.5px; }
.mw-sect__aside p { color: var(--ivory-muted); }
.mw-inline-link { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.mw-failed, .mw-quiet { max-width: 36rem; font-size: 15.5px; color: var(--ivory-muted); }
.mw-failed { padding: 14px 18px; border-left: 2px solid var(--brown-2); background: rgba(80, 34, 0, .04); }
.mw-more-note { margin-top: 22px; font-size: 14.5px; color: var(--ivory-muted); }
.mw-more-note a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }

/* a status as a small label: in the queue (ring), on the bench (dot), waiting for parts (ring, brown),
   ready (solid brown), anything finished (plain). Colours inside a section are written as `.mw ...` so
   they outrank atelier.css's `.sect p` (which would turn every <p> label the muted brown). */
.mw-state {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px 6px; border-radius: 2px;
  background: var(--ivory-2); white-space: nowrap;
  font: 500 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.mw .mw-state { color: var(--brown); }
.mw-state::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mw-state--queued::before, .mw-state--parts::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.mw .mw-state--queued { color: var(--brown-2); }
.mw .mw-state--ready { background: var(--brown); color: var(--ivory); }
.mw .mw-state--done { padding-inline: 0; background: none; color: var(--ivory-muted); }
.mw-state--done::before { box-shadow: inset 0 0 0 1px currentColor; background: none; }

/* ---------------------------------------------------------------- at the atelier now */
.mw-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; align-items: start; }
.mw-job { display: flex; flex-direction: column; padding: 24px 24px 22px; border: 1px solid var(--ivory-line); border-radius: 4px; background: rgba(255, 255, 255, .55); }
.mw-job--ready { border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.mw-job__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mw-job__ref { font: 500 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-muted); }
.mw-job__id { display: flex; align-items: flex-start; gap: 14px; margin-top: 20px; }
.mw-job__what { min-width: 0; }
.mw-job h3, .mw-watch h3 { margin: 20px 0 4px; font: 500 25px/1.16 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ivory-ink); }
.mw-job__id h3 { margin-top: 0; }
.mw-job__service { font: 500 11px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brown-2); }
.mw-job__sheet { margin-top: 22px; }
.mw-job__sheet div { grid-template-columns: 8.2rem minmax(0, 1fr); }
.mw-job__sheet dd { white-space: pre-line; }
.mw .mw-job__note { margin-top: 18px; font-size: 14.5px; color: var(--ivory-ink); }
.mw-job__actions { margin-top: 22px; color: var(--brown); }

/* Received -> On the bench -> Ready to collect */
.mw-track { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; padding: 0; }
.mw-track li { position: relative; padding: 20px 10px 0 0; font: 500 10px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-muted); }
.mw-track li::before {
  content: ''; position: absolute; top: 0; left: 0; z-index: 1; width: 11px; height: 11px; box-sizing: border-box;
  border-radius: 50%; border: 1px solid rgba(80, 34, 0, .3); background: #fbf9f1;
}
.mw-track li::after { content: ''; position: absolute; top: 5px; left: 11px; right: 0; height: 1px; background: var(--ivory-line); }
.mw-track li:last-child::after { content: none; }
.mw-track li.is-done { color: var(--brown-2); }
.mw-track li.is-done::before { border-color: var(--brown-2); background: var(--brown-2); }
.mw-track li.is-done::after { background: var(--brown-2); }
.mw-track li.is-current { color: var(--ivory-ink); }
.mw-track li.is-current::before { border-color: var(--brown); background: var(--brown); box-shadow: 0 0 0 4px rgba(80, 34, 0, .12); }
.mw-track li.is-held::before { background: #fbf9f1; border: 3px solid var(--brown); }

/* ---------------------------------------------------------------- your watches */
.mw-watches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mw-watch { padding: 24px 24px 20px; border: 1px solid var(--ivory-line); border-radius: 4px; background: rgba(255, 255, 255, .55); }
.mw-watch.is-retired { background: transparent; }
.mw-watch.is-retired h3, .mw-watch.is-retired .mw-watch__spec { opacity: .7; }
.mw-watch__head { display: flex; align-items: flex-start; gap: 18px; }
.mw-watch__id { min-width: 0; flex: 1; }
.mw-watch__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 26px; }
.mw-watch__tag { font: 500 11px/1 var(--sans); letter-spacing: .14em; color: var(--brown-2); }
.mw-watch__top .mw-state { margin-left: auto; }
.mw-watch h3 { margin-top: 14px; }
.mw-watch__cover { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--ivory-muted); }
.mw-watch__cover::before { content: ''; width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; }
.mw .mw-watch__cover.is-live { color: var(--brown); }
.mw-watch__cover.is-live::before { background: currentColor; }
.mw-watch__spec { margin-top: 20px; border-top: 1px solid var(--ivory-line); }
.mw-watch__spec div { grid-template-columns: 8rem minmax(0, 1fr); }
.mw-watch__spec div:last-child { border-bottom: 1px solid var(--ivory-line); padding-bottom: 9px; }
.mw-watch__visits { margin-top: 16px; font: 500 10.5px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-muted); }
.mw-watch__work { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ivory-line); }
.mw-watch__work-label { font: 500 10.5px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-muted); }
.mw-work { margin-top: 12px; }
.mw-work__set + .mw-work__set { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--ivory-line); }
.mw-work__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font: 500 10.5px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.mw-work__when b { font-weight: 500; color: var(--brown-2); }
.mw-work__when span { color: var(--ivory-muted); }
.mw-work .mw-thumbs { margin: 9px 0 0; }
.mw-more { margin-top: 14px; }
.mw-more + .mw-more { margin-top: 0; }

/* a small dial ring with hour marks: the site's .plate, at badge size */
/* The picture of the watch itself, or -- with no picture on file -- the engraved dial mark in the same
   tile, so a row of cards keeps one shape whether the atelier has photographed that watch or not. */
.mw-face {
  position: relative; flex: none; display: grid; place-items: center; overflow: hidden;
  width: var(--face); height: var(--face); padding: 0; border: 0; border-radius: 3px;
  background: rgba(80, 34, 0, .04); box-shadow: inset 0 0 0 1px var(--ivory-line); cursor: zoom-in;
}
.mw-face--watch { --face: 96px; }
.mw-face--job { --face: 64px; }
.mw-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mw-face:hover img { transform: scale(1.05); }
.mw-face:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.mw-face.is-blank { cursor: default; }
.mw-face.is-blank img { display: none; }

.mw-face__dial {
  position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(80, 34, 0, .22);
  background: repeating-conic-gradient(from -2deg, rgba(80, 34, 0, .45) 0 4deg, transparent 4deg 30deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
          mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}

.mw-history { list-style: none; margin: 4px 0 6px; padding: 0; }
.mw-history li { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--ivory-line); font-size: 14.5px; }
.mw-history li:first-child { border-top: 0; }
.mw-history__when { font-size: 13.5px; color: var(--ivory-muted); }
.mw-history__what { color: var(--ivory-ink); }
.mw-history__status { font: 500 10px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-muted); text-align: right; }
.mw-history__status.is-bench, .mw-history__status.is-parts, .mw-history__status.is-queued { color: var(--brown-2); }
.mw-history__status.is-ready { color: var(--brown); }

/* ---------------------------------------------------------------- warranty + due */
.mw-cover { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ivory-line); }
.mw-cover li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--ivory-line); }
.mw .mw-cover__what { font: 500 21px/1.25 var(--serif); color: var(--ivory-ink); }
.mw-cover__svc { margin-top: 4px; font: 500 10.5px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brown-2); }
.mw-cover__when { display: grid; justify-items: end; gap: 8px; text-align: right; font-size: 14px; }
.mw-cover__when p { color: var(--ivory-muted); }
.mw-cover__when .more-link { margin-top: 4px; color: var(--brown); }
.mw-cover--past li { padding: 14px 0; }
.mw .mw-cover--past .mw-cover__what { font-size: 18px; color: var(--ivory-muted); }
.mw-more--past { margin-top: 26px; border-top: 0; }
.mw-more--past .mw-cover { border-top: 0; }
.mw-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px 5px; border-radius: 2px;
  font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  background: var(--ivory-2); color: var(--brown);
}
.mw-chip.is-soon { background: var(--brown); color: var(--ivory); }
.mw-chip.is-ended, .mw-chip.is-void { background: none; padding-inline: 0; color: var(--ivory-muted); }

/* ---------------------------------------------------------------- other work */
.mw-other { max-width: 46rem; }
.mw-other + .mw-other { margin-top: 36px; }
.mw-other__label { margin-bottom: 8px; font: 500 11px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brown-2); }
.mw-other .mw-history li:first-child { border-top: 1px solid var(--ivory-line); }

/* ---------------------------------------------------------------- photographs of the work */
.mw-thumbs { list-style: none; display: flex; gap: 8px; margin: 18px 0 4px; padding: 0 0 2px; overflow-x: auto; scrollbar-width: thin; }
.mw-thumb {
  position: relative; display: block; width: 88px; aspect-ratio: 1; padding: 0; overflow: hidden;
  border: 0; border-radius: 3px; background: var(--ivory-2); cursor: zoom-in;
}
.mw-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mw-thumb:hover img { transform: scale(1.05); }
.mw-thumb__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px;
  background: linear-gradient(to top, rgba(21, 12, 6, .7), transparent);
  font: 500 8.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory); text-align: left;
}
.mw-thumb.is-broken { cursor: default; background: repeating-linear-gradient(135deg, rgba(80, 34, 0, .06) 0 1px, transparent 1px 8px), var(--ivory-2); }
.mw-thumb.is-broken img { visibility: hidden; }
.mw-thumb.is-broken .mw-thumb__label { background: none; color: var(--ivory-muted); }
.mw-thumb:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

.mw-lightbox {
  width: min(1000px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--bg); color: var(--ink);
}
.mw-lightbox::backdrop { background: rgba(21, 12, 6, .78); }
.mw-lightbox[open] { animation: piece-in .35s var(--ease); }
body:has(.mw-lightbox[open]) { overflow: hidden; }
.mw-lightbox figure { margin: 0; }
.mw-lightbox__frame { position: relative; display: grid; place-items: center; min-height: 200px; background: #0d0704; }
.mw-lightbox__frame img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 130px); object-fit: contain; }
.mw-lightbox__broken { max-width: 26rem; padding: 60px 24px; text-align: center; color: var(--muted); }
.mw-lightbox figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 14px 18px 16px; font-size: 13.5px; color: var(--muted); }
.mw-lightbox figcaption b { font-weight: 500; color: var(--ink); }
.mw-lightbox__count { margin-left: auto; font: 500 11px/1 var(--sans); letter-spacing: .12em; }
.mw-lightbox__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; padding: 10px 13px;
  border: 0; border-radius: 2px; background: rgba(249, 247, 235, .92); color: var(--brown); cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.mw-lightbox__nav {
  position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(249, 247, 235, .9); color: var(--brown); cursor: pointer; font: 400 17px/1 var(--sans);
}
.mw-lightbox__nav--prev { left: 12px; }
.mw-lightbox__nav--next { right: 12px; }
.mw-lightbox__nav:disabled { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mw-wait__dot { animation: none; }
  .mw-timer span, .mw-thumb img, .mw-face img { transition: none; }
  .mw-lightbox[open] { animation: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .mw-gate__grid { grid-template-columns: 1fr; }
  .mw-gate h1 { max-width: 16ch; }
  .mw-gate__photo { --ar: 3 / 2; max-width: 40rem; margin-top: 0; }
  .mw-watches { grid-template-columns: 1fr; }
  .mw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .mw-stats div:nth-child(n + 3) { margin-top: 18px; border-top: 1px solid var(--ivory-line); }
}
@media (max-width: 860px) {
  .mw-gate { padding-top: calc(64px + 4vh); }
}
@media (max-width: 640px) {
  .mw-gate h1 { font-size: 36px; }
  .mw-gate .lede { font-size: 16px; }
  .mw-panel { margin-top: 26px; }
  .mw-steps li { padding: 10px 0; font-size: 14.5px; }
  .mw-code__value { gap: 6px; }
  .mw-code__char { width: calc((100% - 30px) / 6); max-width: 54px; }
  .mw-code__foot { flex-direction: column; align-items: flex-start; }
  .mw-sk { grid-template-columns: 1fr; }
  .mw-job, .mw-watch { padding: 20px 18px 18px; }
  .mw-job h3, .mw-watch h3 { font-size: 23px; }
  .mw-face--watch { --face: 78px; }
  .mw-watch__head { gap: 14px; }
  .mw-track li { font-size: 9.5px; letter-spacing: .08em; }
  .mw-job__sheet div { grid-template-columns: 1fr; gap: 3px; }
  .mw-watch__spec div { grid-template-columns: 7.6rem minmax(0, 1fr); gap: 10px; }   /* short values: keep them beside their labels */
  .mw-history li { grid-template-columns: minmax(0, 1fr) auto; }
  .mw-history__when { grid-column: 1 / -1; }
  .mw-cover li { grid-template-columns: 1fr; gap: 12px; }
  .mw-cover__when { justify-items: start; text-align: left; }
  .mw-ready { padding: 22px 20px; }
  .mw-lightbox { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .mw-lightbox__nav { width: 38px; height: 38px; margin-top: -19px; }
}
