/* The table, archival paper and welded polypropylene each catch light differently.
   All photographic subjects come from the supplied images; textures are CSS/SVG. */
:root {
  --ink: #242522;
  --muted: #73736a;
  --paper: #f4f2eb;
  --ground: #e9e7df;
  --rule: #c7c5bb;
  --accent: #6d7561;
  --table: #73746e;
}
body::before { opacity: .045; }
::selection { background: #cbcdbf; }
.masthead { max-width: none; padding: 25px 40px; gap: 30px; }
.wordmark { font-size: 25px; font-weight: 600; letter-spacing: -.05em; }
.wordmark span { font-size: 9px; letter-spacing: .08em; margin-top: 9px; }
.masthead nav { gap: 30px; }
.masthead nav a { font-size: 11px; gap: 8px; padding: 10px 0; }
.masthead nav a[aria-current] { border-bottom: 1px solid var(--ink); }
.case-bar { max-width: none; margin: 0 40px; padding: 7px 0; min-height: 54px; }
.case-select label { font-size: 10px; }
.case-select select { font-size: 11px; border: none; min-height: 40px; }
.case-tools { gap: 28px; }
.case-status { font-size: 10px; letter-spacing: .04em; }
.case-status i { width: 5px; height: 5px; background: var(--ink); }
.case-status[data-status=RELEASED] i { background: transparent; border: 1px solid var(--ink); }
.case-tools .button { min-height: 40px; font-size: 11px; text-decoration: none; }
main { max-width: 1600px; margin: 0 auto; padding: 0 40px 48px; }
.page-heading { padding: 33px 0 29px; align-items: flex-end; }
.page-heading .eyebrow { font-size: 10px; letter-spacing: .09em; color: var(--muted); }
.page-heading h1 { font-size: clamp(36px, 4.2vw, 62px); letter-spacing: -.055em; line-height: 1; font-weight: 450; margin: 10px 0 0; }
.page-description { font-size: 12px; line-height: 1.8; margin-bottom: 3px; color: #66675f; }
.button { border-color: #94958a; font-size: 12px; padding: 12px 18px; background: transparent; transition: background .15s; }
.button.solid { border-color: var(--ink); }
.button:hover { background: #deded3; }
.button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.button.text-button { text-underline-offset: 4px; }
.archive-layout { grid-template-columns: minmax(0, 1fr) 320px; border: 1px solid #b5b5aa; }
.object-column { padding: 0; border: 0; min-width: 0; }
.object-stage {
  min-height: 624px; padding: 75px 70px 70px; background-color: var(--table);
  background-image: radial-gradient(ellipse at 25% 12%, #ffffff20, transparent 65%), linear-gradient(155deg, #92928a, #74756f 45%, #62645f);
  overflow: hidden; border: none;
}
.object-stage::before {
  inset: 0; opacity: .53; background-image: url('/assets/table-grain.svg');
  z-index: -1; mix-blend-mode: soft-light;
}
.object-stage::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 1px 8px #262a2326; pointer-events: none; }
.stage-caption { top: 22px; left: 25px; right: 25px; display: flex; justify-content: space-between; color: #eceee4; font-size: 9px; letter-spacing: .07em; z-index: 2; }
.stage-caption > span:last-child { color: #e0e1d4b3; font-size: 8px; }
.stage-registration { position: absolute; inset: 56px 25px 56px; color: #d7d9cd65; font: 19px var(--mono); pointer-events: none; }
.stage-registration span { position: absolute; bottom: 0; right: 0; }
.stage-bottom { position: absolute; bottom: 20px; left: 25px; right: 25px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #e3e5dbb3; }
.stage-bottom .mono { font-size: 8px; letter-spacing: .07em; }
.scale-mark { width: 64px; height: 8px; border-bottom: 1px solid #e4e6da88; background: repeating-linear-gradient(90deg, #e4e6da88 0 1px, transparent 1px 8px); }
.sleeve {
  --pull: 0; width: min(100%, 405px); aspect-ratio: .86;
  transform: rotate(-5deg); transition: transform .55s ease;
  filter: drop-shadow(12px 18px 12px #24291c30); isolation: isolate;
}
.sleeve.is-open { --pull: 1; transform: rotate(-3deg); }
.sleeve-back {
  inset: 0; background: linear-gradient(145deg, #ecede14a, #e6e9df21 60%, #f6f6e94a);
  border: 1px solid #eef0e191; border-radius: 2px;
  box-shadow: 1px 1px 2px #30342a66, 2px 2px 1px #ffffff40, 14px 24px 25px #25291e2b, inset 0 0 12px #ffffff10;
}
.sleeve-back::after { content: ''; position: absolute; inset: 7px 8px; border: 1px solid #e3e7d346; border-top: 0; }
.manual-object {
  z-index: 2; top: 13%; left: 7%; width: 71%; height: 73%; padding: 0;
  display: block; background: #f5f1e6; border: 1px solid #eeeade; transform: rotate(-3deg);
  box-shadow: 1px 1px 0 #aea99f, 3px 4px 0 #d8d4ca, 4px 5px 0 #aaa79e, 8px 12px 14px #25291f3b;
  transition: transform .65s cubic-bezier(.2,.7,.2,1); overflow: visible;
}
.manual-object img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.manual-object.has-image img { object-fit: contain; padding: 10px; background: var(--paper); }
.manual-object .object-tab { position: absolute; left: 14px; right: auto; top: auto; bottom: -12px; padding: 5px 8px; font-size: 8px; letter-spacing: .01em; background: #e8e3d7; color: #494a41; box-shadow: 0 1px 1px #0002; }
.manual-object.is-cover .object-tab { bottom: 16px; background: transparent; box-shadow: none; font-size: 7px; color: #4a434a; }
.sleeve.is-open .manual-object { transform: translate(-9%, -9%) rotate(-6deg); }
.book-layer { position: absolute; left: 10%; top: 10%; width: 69%; height: 69%; object-fit: cover; transform: rotate(-4deg); z-index: 1; box-shadow: 3px 5px 5px #30322433; }
.sleeve.has-record .manual-object { top: 21%; left: 5%; width: 62%; height: 67%; }
.specimen-card {
  z-index: 4; position: absolute; left: 43%; right: auto; top: 35%; bottom: auto;
  width: 59%; height: 49%; padding: 10px; background: #f4f1e6; border: 1px solid #e3dfd2;
  transform: rotate(10deg); box-shadow: 1px 2px 2px #2c2d2240, 5px 9px 9px #282b2433;
  display: flex; flex-direction: column; transition: transform .65s cubic-bezier(.2,.7,.2,1); overflow: hidden;
}
.photo-topline { font-size: 6px; text-align: left; letter-spacing: .06em; margin-bottom: 8px; }
.specimen-photo { display: block; width: 100%; min-height: 0; flex: 1; background: radial-gradient(ellipse at 38% 30%, #c9c7be, #a7a69c); overflow: hidden; }
.specimen-photo img { width: 100%; height: 100%; max-height: none; object-fit: contain; transform: scale(1.38); filter: drop-shadow(4px 6px 3px #33362b3b); padding: 0; }
.specimen-caption { position: static; margin-top: 8px; padding: 0; width: 100%; display: flex; justify-content: space-between; font-size: 7px; line-height: 1.2; color: #4b4c43; border: 0; background: none; text-align: left; }
.sleeve.is-open .specimen-card { transform: translate(10%, 4%) rotate(6deg); }
.sleeve-film {
  z-index: 5; inset: 0; border: 1px solid #f5f6e7b3; border-radius: 1px;
  background: linear-gradient(112deg, #fcfff936, #ffffff14 18%, #ffffff0a 43%, #fffefc40 44%, #fffff91a 46%, #ffffff07 53%, #f6faed25 92%, #fdfff853), url('/assets/film-grain.svg');
  box-shadow: inset 4px 0 3px #f7fff438, inset -5px 0 3px #f6f8e85c, inset 0 -7px 5px #f4f7e85c, inset 0 0 0 7px #ffffff0d;
  transform: translateX(calc(var(--pull) * 8%)); opacity: calc(1 - var(--pull) * .58);
  transition: transform .55s ease, opacity .55s ease; pointer-events: none;
}
.sleeve-film::after { content: ''; position: absolute; left: 8px; top: 52px; bottom: 10px; right: 8px; border-left: 1px solid #fffffb69; border-right: 2px double #fffffb75; border-bottom: 1px solid #eff1e7a6; }
.sleeve-seam { z-index: 6; bottom: 8px; left: 8px; right: 8px; border: none; height: 6px; background: repeating-linear-gradient(90deg, #f6f7eb38 0 1px, #b2b7a533 1px 3px); box-shadow: 0 1px 0 #fbfff76b; pointer-events: none; }
.sleeve-flap {
  z-index: 8; height: 44px; border: 1px solid #ebefddab; border-bottom: 1px solid #72796a6b;
  background: linear-gradient(180deg, #dfe4d970, #f9faedb5 80%, #cad0c58c);
  color: #3d4435; box-shadow: 0 3px 2px #30362826, inset 0 2px 0 #fcfff482;
  border-radius: 2px 2px 0 0; padding: 0 16px; cursor: ew-resize;
  transform: translateX(calc(var(--pull) * 10%)); transition: transform .55s ease;
}
.sleeve-flap .mono { font-size: 8px; letter-spacing: .1em; }
.sleeve-flap > span:last-child { font: 21px var(--mono); }
.flap-grip { height: 13px; width: 34px; margin-left: auto; margin-right: 18px; background: repeating-linear-gradient(90deg, #4954433d 0 1px, #fff3 1px 2px, transparent 2px 4px); }
.sleeve.is-open .sleeve-flap { background: linear-gradient(#dfe4d970, #f9faedb5); transform: translateX(calc(var(--pull) * 10%)); }
.sleeve.is-open .manual-object { top: 13%; }
.sleeve.has-record.is-open .manual-object { top: 21%; }
.manual-object.has-image { padding: 0; }
.sleeve-id > span { position: static; right: auto; bottom: auto; }
.sleeve-id { z-index: 7; left: 18px; right: 18px; bottom: 18px; padding: 0; display: flex; align-items: flex-end; gap: 16px; color: #454b3b; font-size: 7px; line-height: 1.5; letter-spacing: .04em; pointer-events: none; border: none; }
.sleeve-id > span:last-child { margin-left: auto; text-align: right; }
.barcode { width: 54px; height: 18px; background: repeating-linear-gradient(90deg, #454b3b 0 1px, transparent 1px 3px, #454b3b 3px 5px, transparent 5px 6px, #454b3b 6px 7px, transparent 7px 10px); opacity: .75; }
.care-sticker { z-index: 12; background: #eceadd; border: 1px solid #d3d0bd; padding: 7px; width: 35%; transform: translate(-50%, -50%) rotate(-2deg); box-shadow: 1px 2px 1px #34392d4d, 3px 5px 6px #34392d33; }
.care-sticker img { height: 84px; width: 100%; object-fit: contain; background: #f2eee3; }
.care-sticker .mono { font-size: 6px; margin-top: 5px; }
.care-sticker.is-paused { filter: saturate(.5); }
.care-sticker.is-draggable { touch-action: none; }
.object-controls { padding: 16px 24px; gap: 20px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; background: #dfded4; border-top: 1px solid #aaa99e; }
.object-controls p { font-size: 11px; line-height: 1.7; max-width: none; color: #64665b; }
.object-controls > .button { font-size: 11px; flex-shrink: 0; padding: 10px 18px; border-color: #969b8b; min-width: 139px; }
.inventory { padding: 25px 25px 16px; background: #f0eee5; border-left: 1px solid #b5b5aa; }
.inventory-heading { border-bottom: 1px solid var(--rule); display: flex; flex-direction: row; justify-content: space-between; padding: 0 0 16px; gap: 6px; }
.inventory-heading .eyebrow, .inventory-heading > .mono { font-size: 9px; color: #75776b; letter-spacing: .03em; }
.inventory-intro { padding: 27px 0 31px; }
.inventory-intro h2 { font-size: 25px; font-weight: 400; letter-spacing: -.045em; line-height: 1.5; }
.inventory-intro p { margin-top: 14px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.inventory-item { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 9px; padding: 20px 0 15px; border-top: 1px solid var(--rule); border-bottom: 0; }
.item-number { font-size: 9px; padding-top: 4px; color: #77796c; }
.inventory-item h2 { font-size: 20px; font-weight: 450; letter-spacing: -.035em; line-height: 1.1; }
.inventory-item p { margin: 8px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.index-state { color: #7a7d70; font-size: 7px; padding-top: 5px; white-space: nowrap; }
.inventory-item .inline-actions { gap: 12px; margin: 3px 0 0; }
.inventory-item .inline-actions a, .inventory-item .button { font-size: 10px; min-height: 38px; padding: 8px 0; }
.inventory-item .inline-actions a { text-decoration: none; gap: 22px; }
.inventory-item .inline-actions a:hover { text-decoration: underline; }
.inventory-item .button.text-button { text-decoration: none; }
.inventory-item blockquote { font-size: 11px; margin: 12px 0 0; line-height: 1.8; border-left: 1px solid #b0b1a5; padding-left: 10px; }
.release-link { margin: 10px 0 0; padding: 20px 0 12px; border-top: 1px solid var(--rule); border-bottom: 0; font-size: 11px; text-decoration: none; display: flex; justify-content: space-between; }
.case-dates { margin: 16px 0 0; display: grid; gap: 7px; }
.case-dates > div { display: flex; justify-content: space-between; font-size: 9px; color: #7a7c70; }
.case-dates dd { margin: 0; }
.management { margin-top: 28px; border-top: 1px solid var(--rule); }
.management summary { padding: 19px 0; font-size: 12px; }
.management summary .mono { font-size: 9px; color: var(--muted); }
.management p { font-size: 12px; }
.site-footer { margin: 0 40px; max-width: none; padding: 24px 0 30px; border-color: var(--rule); }
.site-footer .mono { font-size: 9px; }
.site-footer > p:not(.mono) { font-size: 10px; color: var(--muted); }
.footer-mark { font-size: 24px; }
/* The three QR entrances share the archive's paper, type and physical controls. */
.process-meta { border-top: 1px solid var(--rule); font-size: 10px; padding: 16px 0; }
.process-meta .active { color: var(--ink); }
.workbench { background: #85877d url('/assets/table-grain.svg'); padding: 32px; border: 1px solid #818477; }
.scan-grid { gap: 40px; }
.field-heading h2 { color: #f7f6ee; font-size: 14px; font-weight: 400; }
.field-heading > .mono { color: #dddcd2; font-size: 9px; }
.upload-paper { height: 350px; background: #e7e5db url('/assets/grain.svg'); border: 1px solid #d0cec1; box-shadow: 2px 3px 2px #272b2129, 8px 14px 18px #272b2129; }
.upload-paper p { font-size: 11px; color: #77796c; }
.upload-plus { font-size: 32px; color: #9da091; }
.scan-corner { border-color: #8a8e7c; }
.upload-actions { margin-top: 18px; }
.upload-actions .button { color: #f7f5ea; border-color: #c4c8b9; font-size: 11px; }
.upload-actions .button:hover { color: #22271d; }
.workflow-bottom { margin-top: 22px; }
.sentence-sheet { border: 1px solid #d1cec2; padding: 30px; background: #f3f0e6 url('/assets/grain.svg'); box-shadow: 2px 4px 2px #545c3c13; }
.sentence-sheet .eyebrow { font-size: 10px; }
.sentence-sheet label { font-size: 18px; }
.sentence-sheet textarea { font-size: 14px; }
.developing .scan-line { display: none; }
.developing .upload-paper img { animation: chemical-develop 1.5s ease both; }
@keyframes chemical-develop { 0% { filter: grayscale(1) blur(8px) contrast(.4); opacity: .25; } 45% { filter: grayscale(1) blur(3px) contrast(.8); opacity: .8; } 100% { filter: none; opacity: 1; } }
.attach-layout, .release-layout, .care-inspection { border-color: var(--rule); gap: 48px; }
.attach-copy, .release-copy, .inspection-copy { padding-top: 34px; }
.attach-copy h2, .release-copy h2, .inspection-copy h2 { font-size: 36px; }
.label-stack { background: #85877d url('/assets/table-grain.svg'); }
.inspection-photo { background: #f4f1e7; box-shadow: 4px 8px 14px #30352b40; }
.inspection-photo img { object-fit: contain; }
.release-surface { background: #85877d url('/assets/table-grain.svg'); height: 560px; padding: 80px 58px 86px; }
.release-surface .stage-caption { display: block; }
.release-paper { background: #f0ede2 url('/assets/grain.svg'); border-color: #b6b4a6; box-shadow: 2px 3px 1px #b2b3a333, 6px 12px 16px #282d2033; }
.release-paper.is-leaving { transform: translateX(150%) rotate(0) !important; opacity: 0; transition: transform .6s cubic-bezier(.3,.1,.5,1), opacity .55s ease; pointer-events: none; }
.paper-impression { border-color: #696e5e20; background: #a6aa9833; box-shadow: inset 1px 1px 6px #464e3430, 1px 2px 1px #c2c7b12b; color: #dee0d0a1; }
.release-stage-note { color: #e5e7dd; font-size: 11px; }
dialog { border: 1px solid #8c9280; background: #e9e7dd; box-shadow: 0 20px 60px #171f1759; }
dialog::backdrop { background: #242821d9; backdrop-filter: none; }
#viewer { width: 1040px; }
.viewer-header { padding: 19px 26px; }
.viewer-header h2 { font-size: 26px; }
.viewer-image { background: #9a9c91 url('/assets/table-grain.svg'); height: 54svh; padding: 28px; }
.viewer-image > img { box-shadow: 3px 6px 8px #2b322733; animation: none; }
#viewer[data-kind=shell] .viewer-image { background: radial-gradient(ellipse at 40% 30%, #bebeb4, #989d8e); }
#viewer[data-kind=shell] .viewer-image > img { box-shadow: none; height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(7px 14px 6px #2a30272b); }
.viewer-toolbar { padding: 14px 26px; }
.viewer-toolbar .mono { font-size: 10px; }
.frame-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 14px 26px 0; }
.frame-strip button { background: #d4d5c8; border: 1px solid transparent; padding: 4px 6px; display: flex; align-items: center; gap: 5px; min-height: 44px; }
.frame-strip button[aria-pressed=true] { border-color: #3c4932; background: #e3e4d7; }
.frame-strip img { height: 36px; width: calc(100% - 16px); object-fit: contain; }
.frame-strip .mono { font-size: 9px; }
.notice { font-size: 12px; box-shadow: 0 4px 20px #1113; }
@media (min-width: 1500px) {
  main { max-width: 1600px; }
  .page-heading h1 { font-size: 62px; }
  .object-stage { min-height: 680px; }
  .sleeve { width: 440px; }
  .archive-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .inventory { padding: 28px 32px; }
}
@media (max-width: 1100px) {
  .masthead { padding: 22px 26px; }
  .case-bar, .site-footer { margin-left: 26px; margin-right: 26px; }
  main { margin: 0; padding: 0 26px 40px; }
  .archive-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .object-stage { padding: 85px 52px; min-height: 610px; }
  .inventory { padding-left: 20px; padding-right: 20px; }
  .inventory-intro h2 { font-size: 23px; }
  .stage-caption > span:last-child { display: none; }
  .object-controls { padding: 16px; gap: 12px; }
  .object-controls p { font-size: 10px; }
  .index-state { font-size: 6px; }
  .sleeve-id { gap: 7px; font-size: 6px; }
}
@media (max-width: 800px) {
  .masthead { padding: 20px 22px 0; display: block; }
  .wordmark { font-size: 23px; }
  .wordmark span { font-size: 8px; }
  .masthead nav { margin-top: 15px; justify-content: space-between; gap: 10px; }
  .masthead nav a { font-size: 10px; padding: 13px 0; min-height: 44px; }
  .case-bar, .site-footer { margin: 0 22px; }
  .case-bar { padding: 4px 0; align-items: center; min-height: 52px; }
  .case-select { display: flex; gap: 8px; }
  .case-select label { display: none; }
  .case-select select { max-width: 210px; padding: 8px 15px 8px 0; font-size: 10px; }
  .case-tools { flex-direction: row; align-items: center; gap: 14px; }
  .case-tools .button { font-size: 10px; padding: 8px 0; }
  main { margin: 0; padding: 0 22px 35px; }
  .page-heading { padding: 25px 0 23px; display: block; }
  .page-heading h1 { font-size: clamp(33px, 6.8vw, 49px); letter-spacing: -.055em; margin: 9px 0 0; }
  .page-heading .eyebrow { font-size: 9px; }
  .page-description { font-size: 11px; line-height: 1.8; margin: 11px 0 0; max-width: none; }
  .archive-layout { display: grid; grid-template-columns: 1fr; }
  .object-stage { min-height: 0; padding: 72px 58px 68px; }
  .sleeve { width: min(100%, 390px); }
  .stage-caption { left: 20px; top: 20px; font-size: 8px; }
  .stage-bottom { left: 20px; right: 20px; bottom: 18px; }
  .stage-bottom .mono { font-size: 7px; letter-spacing: .015em; }
  .stage-registration { left: 15px; right: 15px; }
  .object-controls { padding: 15px 18px; }
  .object-controls p { max-width: 200px; }
  .object-controls > .button { min-width: 128px; font-size: 10px; padding: 10px 14px; }
  .inventory { border: 0; border-top: 1px solid #b5b5aa; padding: 24px; }
  .inventory-intro { padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; align-items: end; }
  .inventory-intro h2 { font-size: 24px; }
  .inventory-intro p { margin-top: 0; text-align: right; font-size: 10px; }
  .inventory-item { padding: 23px 0 17px; grid-template-columns: 20px 1fr auto; gap: 12px; }
  .inventory-item h2 { font-size: 23px; }
  .inventory-item p { font-size: 11px; margin-top: 8px; }
  .inventory-item .inline-actions a, .inventory-item .button { font-size: 12px; min-height: 44px; }
  .index-state { font-size: 8px; }
  .inventory-item blockquote { font-size: 12px; }
  .release-link { font-size: 12px; padding: 22px 0 10px; }
  .case-dates { margin-top: 20px; }
  .management { margin-top: 22px; }
  .management summary { font-size: 11px; }
  .management summary .mono { font-size: 8px; }
  .site-footer { padding: 20px 0; display: grid; grid-template-columns: 1fr auto; gap: 18px; }
  .site-footer > p:not(.mono) { font-size: 9px; grid-row: 2; grid-column: 1 / 3; }
  .site-footer .mono { font-size: 8px; }
  .process-meta { font-size: 8px; }
  .workbench { padding: 22px 18px; }
  .scan-grid { grid-template-columns: 1fr; gap: 30px; }
  .upload-paper { height: 320px; }
  .upload-actions .button { min-height: 44px; flex: 1; }
  .upload-actions .text-button { flex: 0 0 44px; }
  .workflow-bottom { flex-direction: column; align-items: stretch; gap: 16px; }
  .workflow-bottom > .button { width: 100%; }
  .sentence-sheet { padding: 24px 20px; margin-top: 28px; }
  .sentence-sheet label { font-size: 17px; }
  .attach-layout, .release-layout, .care-inspection { grid-template-columns: 1fr; gap: 0; }
  .attach-copy, .release-copy, .inspection-copy { padding: 30px 0 0; }
  .attach-copy h2, .release-copy h2, .inspection-copy h2 { font-size: 31px; }
  .release-surface { padding: 70px 32px 74px; height: 455px; }
  .release-paper { padding: 20px; }
  .release-word { font-size: 87px; }
  .paper-impression { inset: 75px 36px 80px; }
  .release-copy > p, .attach-copy > p { font-size: 13px; }
  .release-copy .actions { display: flex; flex-direction: column; align-items: stretch; }
  .label-stack { min-height: 370px; padding: 30px; }
  .inspection-photo img { height: 240px; }
  .position-buttons .button { flex: 1; }
  .viewer-header { padding: 15px 17px; }
  .viewer-header h2 { font-size: 22px; }
  .viewer-image { padding: 16px; height: 42svh; min-height: 180px; }
  .viewer-toolbar { padding: 12px 15px; gap: 8px; }
  .viewer-toolbar > .button { font-size: 10px; padding: 10px; }
  .viewer-toolbar .mono { font-size: 9px; }
  .frame-strip { padding: 12px 15px 0; gap: 4px; }
  .frame-strip button { padding: 3px; display: block; }
  .frame-strip img { width: 100%; height: 31px; }
  .frame-strip .mono { font-size: 8px; }
  .viewer-note { font-size: 10px; margin: 14px 17px 18px; }
}
@media (max-width: 430px) {
  .masthead { padding-left: 18px; padding-right: 18px; }
  main { padding-left: 18px; padding-right: 18px; }
  .case-bar, .site-footer { margin-left: 18px; margin-right: 18px; }
  .case-select select { max-width: 170px; font-size: 9px; }
  .case-status { font-size: 9px; }
  .case-tools { gap: 11px; }
  .case-tools .button { font-size: 9px; }
  .page-heading h1 { font-size: 37px; }
  .page-description { font-size: 10px; }
  .object-stage { padding: 68px 38px 63px; }
  .sleeve { width: 100%; }
  .manual-object { padding: 0; }
  .specimen-card { padding: 7px; }
  .photo-topline { font-size: 4.8px; margin-bottom: 6px; }
  .specimen-caption { font-size: 5px; margin-top: 6px; }
  .sleeve-flap { height: 33px; padding: 0 12px; }
  .sleeve-flap .mono { font-size: 6px; }
  .flap-grip { height: 10px; width: 25px; }
  .sleeve-film::after { top: 37px; }
  .sleeve-id { left: 11px; right: 11px; bottom: 16px; font-size: 5px; gap: 10px; }
  .barcode { width: 37px; height: 12px; }
  .manual-object .object-tab { font-size: 6px; }
  .manual-object.is-cover .object-tab { font-size: 5px; bottom: 9px; }
  .care-sticker { padding: 5px; }
  .care-sticker img { height: 60px; }
  .care-sticker .mono { font-size: 5px; }
  .inventory { padding: 22px 20px; }
  .inventory-intro h2 { font-size: 22px; }
  .inventory-intro p { font-size: 9px; }
  .object-controls { padding: 13px 14px; gap: 12px; }
.object-controls p { font-size: 10px; max-width: 132px; word-break: keep-all; }
  .object-controls > .button { min-width: 116px; font-size: 10px; }
  .stage-bottom .mono { font-size: 6px; }
  .scale-mark { width: 40px; height: 6px; }
}
@media (max-width: 359px) {
  .case-select select { max-width: 139px; font-size: 8px; }
  .masthead nav a { font-size: 9px; gap: 5px; }
  .case-tools { gap: 7px; }
  .case-tools .button { font-size: 8px; }
  .page-heading h1 { font-size: 31px; }
  .object-stage { padding-left: 30px; padding-right: 30px; }
  .inventory { padding-left: 15px; padding-right: 15px; }
  .inventory-intro { display: block; }
  .inventory-intro p { text-align: left; margin-top: 12px; }
  .inventory-item h2 { font-size: 21px; }
  .index-state { font-size: 6px; }
  .object-controls { gap: 8px; }
  .object-controls > .button { min-width: 108px; padding: 10px; }
  .stage-caption { font-size: 7px; }
  .upload-paper { height: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .developing .upload-paper img { filter: none; opacity: 1; }
}
