dialog.specimen-viewer {
  box-sizing:border-box;width:min(780px,94vw);max-height:90dvh;margin:auto;padding:0;overflow:auto;
  color:#edf4f7;background:#082638;border:1px solid #7795a4;border-radius:16px;box-shadow:0 24px 90px #03142280;
  &::backdrop {background:#031a2bd9}
  >header,>footer {position:static;display:flex;align-items:center;padding:14px clamp(16px,3vw,28px);gap:8px;background:transparent}
  >header {justify-content:space-between;border-bottom:1px solid #b4d3df26}
  h2 {margin:0;color:#edf4f7;font:400 clamp(25px,4vw,34px)/1.1 'EB Garamond',Georgia,serif}
  button {cursor:pointer;font:500 14px Inter,Arial,sans-serif;color:#dcebf1;border:1px solid #7897a6;border-radius:24px;padding:0 17px;min-height:44px;background:transparent}
  button[aria-pressed="true"] {background:#dcebf1;color:#082638;border-color:#dcebf1}
  button:focus-visible {outline:2px solid #a7e4ee;outline-offset:3px}
  .specimen-stage {height:clamp(160px,44dvh,410px);overflow:hidden;background:radial-gradient(ellipse at 42% 45%,#32596b 0%,#153c50 48%,#082638 85%);display:grid;place-items:center;grid-template:minmax(0,1fr) / minmax(0,1fr)}
  .specimen-stage img {
    /* Keep the whole-view crop as the coordinate system for both views. */
    position:static;display:block;width:100%;max-width:100%;height:auto;max-height:142%;object-fit:contain;
    transform-origin:35% 37%;
    transform:translateY(-3.5%) scale(1);
  }
  &[data-closeup] .specimen-stage img {transform:translateY(-3.5%) scale(2.25)}
  @media(prefers-reduced-motion:no-preference){.specimen-stage img {transition:transform 240ms cubic-bezier(.2,.75,.25,1)}}
  >footer {justify-content:center;padding-top:14px;padding-bottom:20px;gap:0}
  >footer button {border-radius:0;border-color:#73909e;padding-inline:18px}
  >footer button:first-child {border-radius:24px 0 0 24px}
  >footer button:last-child {border-radius:0 24px 24px 0;border-left:0}
  @media(hover:hover) and (pointer:fine){button:not([aria-pressed="true"]):hover {background:#1b4357;color:white}}
  @media(max-height:520px){.specimen-stage {height:38dvh}}
}
