/* Physical controls share the same picture on the workshop floor and in every bench. */
.way-icon { width: 21px; height: 21px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.object-thumb { display: block; width: 54px; height: 38px; object-fit: contain; pointer-events: none; }
.object-closet { border-radius: 2px; }
.scene .floor-equipment, .scene .floor-object { position: absolute; z-index: 4; padding: 0; background: transparent; }
.floor-equipment { border: 1px solid transparent; border-radius: 5px; }
.floor-indoor { left: 23.1%; top: 28%; width: 17.8%; height: 48.5%; }
.floor-outdoor { left: 52.8%; top: 44%; width: 23%; height: 38.2%; }
.floor-equipment:is(:hover, :focus-visible) { background: #fbdf9820; outline: 1px solid #eddba7c0; outline-offset: 2px; }
.machine-pin { position: absolute; right: 2%; top: 5%; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e0cc98; color: #f1ddaf; background: #0c2428e8; box-shadow: 0 3px 10px #0006; }
.machine-pin .way-icon { width: 18px; height: 18px; }
.floor-label, .floor-object > span {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); white-space: nowrap;
  color: #f3e9d0; background: #0c2328ec; border: 1px solid #d2c0956b; border-radius: 4px;
  font: 500 clamp(10px, .9vw, 13px)/1.2 var(--sans); padding: 5px 9px; box-shadow: 0 3px 8px #0005;
}
.floor-object img { width: 100%; height: 100%; object-fit: contain; display: block; transition: filter .18s; }
.floor-object:is(:hover, :focus-visible) img { filter: brightness(1.18); }
.floor-object > span { font-size: clamp(9px, .7vw, 11px); padding: 3px 6px; }
.floor-closet { left: 43.15%; top: 25.65%; width: 11.35%; height: 36.4%; box-shadow: 3px 4px 6px #0009; }
.floor-closet img { object-fit: cover; object-position: center; filter: brightness(.80) saturate(.82); }
.floor-bag { left: 11.6%; top: 57.8%; width: 12%; height: 16%; filter: drop-shadow(2px 5px 3px #000a); }
.floor-bin { left: 92.0%; top: 64.6%; width: 7.1%; height: 9.2%; filter: drop-shadow(2px 4px 2px #000a); }
.floor-dock { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #a6976d66; background: linear-gradient(#36423a, #24332d); }
.floor-dock button { min-width: 0; min-height: 74px; display: flex; gap: 13px; justify-content: center; align-items: center; padding: 6px 10px; color: #ece2c7; background: none; border-inline-end: 1px solid #d8cba21f; font: 500 13px var(--sans); }
.floor-dock button:last-child { border: 0; }
.floor-dock img { width: 59px; height: 45px; object-fit: contain; filter: drop-shadow(1px 2px 2px #0006); }
.floor-dock button:first-child img { width: 43px; }
.floor-dock button:is(:hover, :focus-visible) { background: #fff0c30b; color: #ffedb8; }
.work-order-tools button > span .way-icon { width: 20px; height: 20px; }

/* Persistent destinations and the actual path back. */
.system-header { padding: 14px 24px 11px; }
.location-heading { display: flex; gap: 12px; align-items: center; min-width: 0; }
#system-back, #system-close { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; border: 1px solid #c4ccaa30; color: #e5dcc1; background: #ffffff05; }
#system-close { border: 0; }
#system-back:is(:hover, :focus-visible), #system-close:hover { background: #e3d4ab14; }
#system-breadcrumbs { gap: 6px; font-size: 12px; }
#system-breadcrumbs > .way-icon { width: 12px; height: 12px; color: #829b89; }
#system-breadcrumbs button .way-icon { width: 17px; height: 17px; }
.calls-shortcut, .system-footer .repair-primary, .back-shelves, .change-tool, .tool-power, .repair-breadcrumb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.calls-shortcut .way-icon { width: 16px; height: 16px; }
.bench-navigation { display: flex; gap: 16px; align-items: stretch; justify-content: space-between; flex-shrink: 0; border-block: 1px solid #d5dfbc1e; padding: 0 22px; background: #0e2426; }
.equipment-nav, .visual-supply-nav { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: stretch; }
.equipment-nav { flex: 1.12; }
.visual-supply-nav { flex: 1; }
.bench-navigation button, .cap-object-nav button {
  display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 4px;
  min-width: 0; min-height: 54px; background: transparent; color: #d2d7c3; border-bottom: 2px solid transparent;
  font: 500 11px/1.25 var(--sans);
}
.bench-navigation .equipment-nav button { gap: 8px; }
.bench-navigation button:hover, .cap-object-nav button:hover { background: #dccc9c0d; }
.bench-navigation button[aria-current=page] { background: #d8bd7c0c; border-bottom-color: #d8bd87; color: #f4dfb0; }
.bench-navigation .object-thumb, .cap-object-nav .object-thumb { width: 38px; height: 30px; }
.bench-navigation .object-closet, .cap-object-nav .object-closet { width: 31px; }
.equipment-nav .way-icon { color: #c6b68d; }
.cap-object-nav { flex: 0 0 auto; padding: 0 26px; border-block: 1px solid #d5dfbc24; margin-bottom: 12px; }
.cap-object-nav button { min-height: 49px; }
.system-page-heading { margin-bottom: 18px; }
#system-dialog[data-page=closet] #system-kicker, #system-dialog[data-page=tools] #system-kicker, #system-dialog[data-page=tray] #system-kicker,
#system-dialog #system-description:empty { display: none; }
.system-page-heading .system-text-action { display: none; }
.indoor-sections button { display: inline-flex; align-items: center; gap: 7px; }
.indoor-sections .way-icon { width: 17px; height: 17px; }
.component-target > span { width: 32px; height: 32px; }
.component-target .way-icon { width: 20px; height: 20px; }
.unit-parts-list button > i.legend-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #e3ca913e; color: #e4c98d; background: #1a3531; flex-shrink: 0; }
.unit-parts-list .legend-icon .way-icon { width: 19px; height: 19px; margin: 0; color: inherit; }
.unit-parts-list button > .way-icon { width: 14px; height: 14px; }
.system-text-action .way-icon, .back-shelves .way-icon, .repair-breadcrumb .way-icon { width: 17px; height: 17px; }

.cabinet-room, .stock-room, .instrument-bench { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(205px, .9fr); gap: clamp(18px, 2.8vw, 36px); align-items: start; }
.cabinet-section, .stock-selection, .tool-side, .closet-pocket { min-width: 0; }
.stock-cabinet {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 5px;
  background: #18221c; perspective: 1300px; box-shadow: 0 9px 25px #0005;
}
.cabinet-interior { width: 100%; height: 100%; display: block; }
.shelf-zone { position: absolute; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: none; border: 1px solid transparent; border-radius: 3px; }
.shelf-zone:is(:hover, :focus-visible) { background: #fff2a419; border-color: #ffe4a0b3; }
.shelf-tag, .bench-tag { display: inline-block; background: #e9dfc4; color: #2b332b; font: 600 clamp(10px, .88vw, 13px)/1.2 var(--sans); padding: 4px 11px; border: 1px solid #b8a477; border-radius: 2px; box-shadow: 0 1px 1px #31200b, 0 2px 3px #0007; }
.shelf-tag { margin-bottom: 0; }
.stock-cabinet[data-open=false] .shelf-zone { visibility: hidden; }
.cabinet-leaf { position: absolute; inset-block: 0; width: 50%; background-image: url('assets/closet-doors.webp'); background-size: 200% 100%; background-repeat: no-repeat; z-index: 2; pointer-events: none; backface-visibility: hidden; }
.leaf-left { left: 0; transform-origin: left center; background-position: left center; --door-angle: -94deg; }
.leaf-right { right: 0; transform-origin: right center; background-position: right center; --door-angle: 94deg; }
.stock-cabinet[data-open=true] .cabinet-leaf { transform: rotateY(var(--door-angle)); visibility: hidden; }
.door-opening .cabinet-leaf { animation: swing-open .7s cubic-bezier(.2,.65,.22,1) both; }
.door-closing .cabinet-leaf { animation: swing-open .45s ease-in-out reverse both; }
@keyframes swing-open { 0%, 8% { transform: rotateY(0); visibility: visible; } 99% { visibility: visible; } 100% { transform: rotateY(var(--door-angle)); visibility: hidden; } }
.door-handle { position: absolute; inset: 0; z-index: 3; display: flex; align-items: end; justify-content: center; gap: 6px; padding-bottom: 8%; color: #fff5d9; font: 600 15px var(--sans); background: linear-gradient(transparent 66%, #05161173); text-shadow: 0 1px 4px #000; }
.cabinet-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #b5c4b4; margin-top: 4px; }
.cabinet-caption button { min-height: 40px; background: none; display: inline-flex; align-items: center; gap: 7px; color: #e9d5a8; white-space: nowrap; font-size: 12px; }
.cabinet-caption .way-icon { width: 16px; height: 16px; }
.closet-pocket { display: flex; flex-direction: column; gap: 18px; }
.bin-hatch { display: flex; align-items: center; gap: 15px; min-width: 0; width: 100%; padding: 13px 10px; background: linear-gradient(135deg,#5e605035,#97a5820a); color: #ece3c8; border: 1px solid #b9ad8340; border-radius: 6px; text-align: left; }
.bin-hatch:hover { border-color: #d7bd86; }
.bin-hatch .object-thumb { width: min(42%, 116px); height: 70px; filter: drop-shadow(2px 4px 3px #0008); }
.bin-hatch strong, .bin-hatch small, .carried-line strong, .carried-line small { display: block; }
.bin-hatch strong { font-size: 15px; font-weight: 550; }
.bin-hatch small { margin-top: 5px; color: #b6c1af; font-size: 11px; }
.bin-hatch > .way-icon { width: 13px; margin-left: auto; }
.pocket-contents { padding: 0 12px; background: #d1bf900a; border-block: 1px solid #c8c19e35; }
.pocket-contents summary { display: flex; gap: 8px; align-items: center; min-height: 44px; font-size: 13px; cursor: pointer; }
.pocket-contents summary b { margin-left: auto; font: 11px var(--mono); }
.carried-line { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 0; border-top: 1px solid #d9d4bd21; }
.carried-line strong { font-size: 12px; color: #e3dcc4; font-weight: 500; }
.carried-line small { margin-top: 4px; font-size: 11px; line-height: 1.4; color: #b0c3ad; }
.carried-line button { min-height: 36px; background: none; color: #d8c9a3; text-decoration: underline; font-size: 11px; }
.back-shelves { min-height: 44px; border-radius: 5px; font: 550 12px var(--sans); }
.back-shelves { align-self: start; color: #e5d7b6; background: none; padding: 4px 0; }
.stock-title { margin: 5px 0 16px; font: 500 24px/1.25 var(--display); color: #eee7d5; }
.stock-room .shelf-stock { gap: 13px; }
.stock-sample { padding: 0 12px 12px; overflow: hidden; background: #21382e; }
.shelf-part { position: relative; height: 120px; display: grid; place-items: center; margin: 0 -12px 0; padding: 5px 3px; overflow: hidden; background: linear-gradient(180deg,#17241f,#3a4435 93%,#846c4f 94%,#645039); border-bottom: 2px solid #17271c; }
.shelf-part > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.shelf-part .component-crop { width: 100%; height: 100%; }
.stock-sample > p { margin: 12px 0 4px; }
.stock-sample h4 { font-size: 13px; line-height: 1.45; min-height: 38px; margin-bottom: 10px; }
.stock-sample > button { padding: 8px; }
.bin-overview { display: flex; align-items: center; gap: clamp(20px,4vw,50px); padding: 5px 0 22px; }
.bin-overview > img { width: min(31%,290px); height: auto; filter: drop-shadow(4px 6px 5px #0006); }
.bin-overview strong { font: 500 21px var(--display); }
.bin-overview p { color: #b3c2af; font-size: 12px; line-height: 1.65; max-width: 470px; }
.bin-routes { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 22px; }
.bin-overview .repair-help, .bin-overview .empty-bin-confirm { margin-top: 16px; }

/* The meters themselves are the choices. Their displays follow the selected function. */
.instrument-bench { grid-template-columns: minmax(0, 1.65fr) minmax(260px,1fr); }
.tool-roll { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 5px; border: 1px solid #8c7854; border-radius: 7px; background: repeating-linear-gradient(91deg,#2e352b 0 2px,#32382e 2px 4px); box-shadow: inset 0 0 22px #101c13aa, 0 6px 15px #0003; }
.pick-instrument { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; padding: 10px 6px 13px; background: #0000; border: 1px dashed #cab48444; }
.pick-instrument img { display: block; width: 100%; height: clamp(100px,14vw,176px); object-fit: contain; filter: drop-shadow(3px 5px 3px #0008); transition: transform .16s; }
.pick-instrument:hover img { transform: translateY(-3px); }
.pick-instrument[aria-pressed=true] { background: #ddc78e13; outline: 1px solid #d8bd87; outline-offset: -2px; }
.pick-instrument .picked-mark { display: none; position: absolute; right: 9px; top: 9px; width: 23px; height: 23px; background: #d6c392; color: #25392b; border-radius: 50%; align-items: center; justify-content: center; }
.pick-instrument[aria-pressed=true] .picked-mark { display: flex; }
.picked-mark .way-icon { width: 15px; height: 15px; }
.tool-side { display: flex; flex-direction: column; gap: 13px; }
.bag-identity { display: flex; align-items: center; gap: 15px; }
.bag-identity .object-thumb { width: 92px; height: 66px; }
.bag-identity p, .empty-tool-choice, .hand-tool-note p { font-size: 12px; line-height: 1.65; color: #bdc7b4; margin: 5px 0; }
.hand-tool-note { padding: 5px 0; color: #b5c4af; font-size: 11px; }
.hand-tool-note summary { min-height: 34px; cursor: pointer; display: list-item; align-content: center; }
.get-instrument { display: flex; align-items: center; text-align: left; gap: 14px; width: 100%; min-height: 90px; border: 1px solid #ae9b664d; border-radius: 7px; margin-bottom: 14px; background: linear-gradient(115deg,#394738,#233a2e); padding: 10px 16px; color: #eee6cb; }
.get-instrument img { width: 80px; height: 60px; }
.get-instrument span { flex: 1; }
.get-instrument small, .get-instrument strong { display: block; }
.get-instrument small, .object-caption { color: #d0c09d; font: 500 10px/1.2 var(--sans); }
.get-instrument strong { font-size: 15px; margin-top: 5px; }
.instrument-in-hand { display: grid; grid-template-columns: minmax(78px,.78fr) minmax(140px,1.35fr); gap: 9px; align-items: center; padding: 11px 13px; border: 1px solid #b8aa7b47; border-radius: 8px; background: radial-gradient(at 20% 48%,#45503a,#25392c 70%); margin-bottom: 15px; }
.instrument-figure { position: relative; display: block; width: 100%; max-width: 180px; aspect-ratio: 1; justify-self: center; }
.instrument-figure img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(2px 4px 3px #0007); }
.instrument-screen { position: absolute; transform: translate(-50%,-50%); color: #243324; font: 650 clamp(5px,.56vw,9px)/1 var(--mono); letter-spacing: -.3px; white-space: nowrap; }
.instrument-settings { min-width: 0; }
.instrument-settings strong { display: block; margin: 5px 0 9px; font: 550 15px/1.2 var(--sans); color: #efe6ce; }
.instrument-settings .tool-unit { display: block; font: 11px/1.5 var(--sans); letter-spacing: 0; }
.instrument-switches { display: flex; align-items: center; gap: 5px 9px; flex-wrap: wrap; margin-top: 8px; }
.instrument-switches .tool-power, .change-tool { min-height: 36px; padding: 5px 8px; font: 500 11px var(--sans); gap: 4px; }
.instrument-switches .way-icon { width: 13px; height: 13px; }
.change-tool { color: #d9d6bb; background: transparent; }
.bag-instrument { grid-template-columns: 1fr; text-align: center; margin: 0; padding: 13px; }
.bag-instrument .instrument-figure { max-width: 165px; }
.bag-instrument .meter-dial, .bag-instrument .instrument-switches { justify-content: center; }
.meter-dial button { min-height: 38px; }
.repair-diagnosis .instrument-in-hand { grid-template-columns: minmax(70px,.7fr) minmax(125px,1.3fr); padding: 8px; }
.repair-diagnosis .instrument-settings strong { font-size: 13px; }
.repair-diagnosis .meter-dial { gap: 3px; }
.repair-diagnosis .meter-dial button { min-width: 30px; padding: 5px; }
.repair-diagnosis .instrument-switches { gap: 3px; }
.repair-breadcrumb { justify-content: start; }

@media (max-width: 1000px) {
  .bench-navigation { gap: 8px; padding-inline: 13px; }
  .bench-navigation button { flex-direction: column; gap: 3px; min-height: 60px; }
  .bench-navigation .equipment-nav button { gap: 5px; }
  .cabinet-room, .stock-room { grid-template-columns: minmax(0,2.4fr) minmax(170px,1fr); gap: 16px; }
  .bin-hatch { gap: 7px; }
  .bin-hatch .object-thumb { height: 54px; }
  .stock-room .shelf-stock { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  /* The room artwork is 132% wide with a 12% crop on the left at this breakpoint. */
  .floor-indoor { left: 18.5%; width: 23.5%; }
  .floor-outdoor { left: 57.7%; width: 30.4%; }
  .floor-closet { left: 45%; width: 15%; }
  .floor-bag { left: 3.3%; width: 15.8%; }
  .floor-bin { display: none; } /* Its shelf is outside the crop. The bin sits in the picture dock below. */
  .machine-pin { width: 27px; height: 27px; right: 1%; }
  .machine-pin .way-icon { width: 17px; height: 17px; }
  .floor-label { font-size: 10px; padding: 3px 6px; }
  .floor-object > span { font-size: 8px; padding: 2px 4px; }
  .floor-dock button { flex-direction: column; gap: 3px; min-height: 60px; padding: 4px 2px; font-size: 11px; }
  .floor-dock img { height: 30px; width: 44px; }
  .floor-dock button:first-child img { width: 34px; }
}
@media (max-width: 700px) {
  .system-header { padding: 9px 12px; gap: 7px; }
  .location-heading { gap: 7px; }
  #system-back, #system-close { width: 35px; height: 35px; }
  .system-header-actions { gap: 3px; }
  .calls-shortcut { padding: 8px 7px; gap: 5px; }
  .calls-shortcut .way-icon { width: 14px; height: 14px; }
  #system-breadcrumbs { font-size: 10px; gap: 3px; }
  #system-breadcrumbs > .way-icon { width: 9px; height: 9px; }
  #system-breadcrumbs button { font-size: 10px; }
  .bench-navigation { display: block; padding: 0 10px; }
  .bench-navigation button { flex-direction: row; min-height: 40px; gap: 3px; padding: 3px; font-size: 10px; }
  .bench-navigation .equipment-nav button { gap: 4px; }
  .equipment-nav .way-icon { width: 16px; height: 16px; }
  .bench-navigation .visual-supply-nav { border-top: 1px solid #c9b9881c; }
  .bench-navigation .object-thumb, .cap-object-nav .object-thumb { width: 24px; height: 23px; }
  .bench-navigation .object-closet, .cap-object-nav .object-closet { width: 22px; }
  .cap-object-nav { padding: 0 10px; }
  .cap-object-nav button { min-height: 41px; gap: 4px; font-size: 10px; }
  .system-scroll { padding: 16px 13px; }
  .system-page-heading { margin-bottom: 13px; }
  #system-dialog .system-page-heading h2 { font-size: clamp(23px,5.8vw,31px); }
  .component-target > span { width: 26px; height: 26px; }
  .component-target .way-icon { width: 16px; height: 16px; }
  .unit-parts-list button > i.legend-icon { width: 25px; height: 25px; }
  .unit-parts-list .legend-icon .way-icon { width: 15px; height: 15px; }
  .cabinet-room, .stock-room, .instrument-bench { grid-template-columns: 1fr; gap: 14px; }
  .shelf-tag { font-size: 10px; padding: 2px 4px; }
  .closet-pocket { gap: 10px; }
  .cabinet-caption { font-size: 10px; gap: 5px; }
  .cabinet-caption button { font-size: 10px; min-height: 36px; }
  .bin-hatch { min-height: 58px; padding: 5px 12px; gap: 12px; }
  .bin-hatch .object-thumb { width: 64px; height: 43px; }
  .bin-hatch strong { font-size: 13px; }
  .bin-hatch small { margin-top: 2px; }
  .stock-room .shelf-stock { gap: 10px; }
  .stock-sample { padding: 0 9px 10px; }
  .shelf-part { height: 98px; margin-inline: -9px; }
  .stock-sample h4 { font-size: 12px; }
  .bin-overview { gap: 15px; flex-wrap: wrap; }
  .bin-overview > img { width: 125px; }
  .bin-overview > div { flex: 1 1 210px; }
  .tool-roll { padding: 3px; }
  .pick-instrument { padding: 5px 4px 8px; }
  .pick-instrument img { height: clamp(90px,28vw,151px); }
  .bench-tag { padding: 3px 7px; font-size: 10px; }
  .bag-identity .object-thumb { width: 60px; height: 47px; }
  .bag-instrument { grid-template-columns: minmax(75px,.76fr) minmax(140px,1.4fr); text-align: left; }
  .bag-instrument .meter-dial, .bag-instrument .instrument-switches { justify-content: start; }
  .bag-instrument .instrument-figure { max-width: 122px; }
  .tool-side { gap: 9px; }
}
@media (max-width: 370px) {
  .bench-navigation { padding-inline: 5px; }
  .bench-navigation button { font-size: 9px; }
  .calls-shortcut .way-icon { display: none; }
  #system-close { width: 28px; }
  .floor-label { font-size: 9px; }
  .floor-object > span { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .cabinet-leaf, .pick-instrument img { animation: none !important; transition: none !important; }
}
body.motion-paused .cabinet-leaf { animation: none; }
.component-return { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 5px; padding: 5px 2px; color: #ead8af; font: 550 13px var(--sans); background: transparent; }
.component-return .way-icon { width: 19px; height: 19px; }
.component-return:hover { color: #ffe7b8; text-decoration: underline; }
#system-dialog:is([data-page=component],[data-page=thermostat]) #system-back { display: none; }
#system-dialog:is([data-page=component],[data-page=thermostat]) .system-page-heading { margin-bottom: 2px; }
.repair-diagnosis .component-return { margin-top: 0; }
.stock-portrait { display: block; width: 100%; height: 100%; overflow: hidden; }
.shelf-part .stock-portrait { filter: drop-shadow(1px 3px 2px #0005); }
.carried-part > .stock-portrait { width: 75px; height: 75px; }
.salvage-part > .stock-portrait { height: 175px; }
.salvage-part > .stock-photo-filter { filter: sepia(.55) brightness(.62); }
.repair-diagnosis .component-reference .reference-sheet { margin: 0; }
#system-dialog .system-footer #system-primary-action { flex-shrink: 0; }
@media (min-width:761px) {
  .floor-closet img { clip-path: polygon(0 0,100% 0,100% 53%,90% 57%,90% 100%,0 100%); }
  .floor-closet { box-shadow:none; filter:drop-shadow(2px 3px 3px #0009); }
}
img.stock-portrait { object-fit: contain; }


/* Publisher destinations stay distinct from navigation within the workshop. */
.publisher-nav{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-shrink:0;width:100%;padding:8px max(16px,calc((100% - 1320px)/2));background:#0b2022f5;border-bottom:1px solid #b28d4e66;box-shadow:0 3px 12px #0003}
.publisher-nav a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;white-space:nowrap;text-decoration:none}
.publisher-nav svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.publisher-home{padding:8px 15px;color:#fff0c6;border:1px solid #bc9554;border-radius:7px;background:linear-gradient(120deg,#705235,#344239 60%,#233d38);box-shadow:inset 0 1px #ffdfa752,0 2px 4px #0004;font-size:14px;font-weight:700}
.publisher-home:hover{background:linear-gradient(120deg,#88633d,#3f5143 60%,#29483e);color:#fff8e4}
.publisher-book{font-size:12px;font-weight:500;color:#d6d1b8;padding:6px 2px}
.publisher-book svg{width:16px;height:16px}
.publisher-book:hover{color:#ffe3a7;text-decoration:underline;text-underline-offset:4px}
.publisher-nav a:focus-visible{outline:3px solid #ffe1a7;outline-offset:3px}
dialog>.publisher-nav{position:relative;padding:8px 24px}
@media(max-width:760px){
 .publisher-nav{padding:6px 12px;gap:9px}
 .publisher-home{padding:8px 10px;font-size:13px;gap:6px}
 .publisher-book{font-size:11px;gap:5px}
 dialog>.publisher-nav{padding:6px 12px}
}

.publisher-book .publisher-external{width:12px;height:12px}
