#catalog .entry-actions, .turn-actions {display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.65rem; padding-block:.55rem;}
#catalog .entry-actions button, .controls .turn-actions button {margin:0;}
.entry-label {display:inline-flex; align-items:center; gap:.42em; font-size:.9rem; font-weight:800;}
.entry-label::before {content:""; width:.52em; height:.52em; border-radius:50%; background:#46cd84; box-shadow:0 0 0 3px #38b88133;}
.entry-label:not([hidden]) + button {animation:entry-glow 1.8s ease-in-out infinite;}
@keyframes entry-glow {50% {box-shadow:0 0 0 3px #9ed65177,0 0 17px #88d34f99;}}
@media(prefers-reduced-motion:reduce){.entry-label:not([hidden]) + button {animation:none;}}
#board .controls {text-align:center;}
#board .payment-clock {margin-inline:auto;}
#board .quantity-dial {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) minmax(44px,1.25fr) repeat(2,minmax(0,1fr)); gap:clamp(3px,1vw,8px); align-items:center; max-width:360px; margin:20px auto;}
#purchase .quantity-dial button {margin:0; width:100%; min-width:0; padding:4px; min-height:44px; font-size:1rem;}
#purchase #quantity {width:auto; color:inherit; font:900 clamp(1.35rem,6vw,2rem) var(--display); font-variant-numeric:tabular-nums; text-align:center;}
#purchase {text-align:center;}
.order-review {width:min(100%, 32rem); margin:clamp(20px,7vh,64px) auto; padding:clamp(18px,5vw,36px); border:1px solid #80bcaa; border-radius:18px; color:#eafff5; background:linear-gradient(140deg,#124c46,#082c32 75%); box-shadow:inset 0 3px #b8d776,0 6px 0 #03282c,0 15px 34px #001c2247;}
.review-caption {display:flex; align-items:center; gap:.55rem; color:#bcf49f; font-weight:800; margin:0 0 1rem;}
.order-review h2 {font-size:clamp(1.6rem,6vw,2.1rem); color:#fff; line-height:1.3;}
.review-product {margin:.8rem 0 1.25rem; font-weight:650; color:#c5dcd3;}
.review-line,.review-total {display:flex; align-items:baseline; justify-content:space-between; gap:1rem; padding:.7rem 0;}
.review-total {border-top:1px dashed #8bb29c; font-weight:800;}
.review-total strong {font:900 clamp(1.8rem,7vw,2.6rem) var(--display); color:#d6fa58; font-variant-numeric:tabular-nums;}
.checkout-panel .review-total strong {color:var(--green);}
.machine-shop .checkout-panel .review-total strong {color:#d6fa58;}
#review-wait {color:#d1e7db; text-align:center; min-height:1.5em;}
#order-review button,.checkout-back button {display:flex; margin:.75rem auto; max-width:100%;}
#order-review #confirm {min-width:65%;}
.cabinet[data-scene="payment"] #board .controls:has(#status:empty):not(:has(#payment-clock:not([hidden]),#errors:not(:empty),#end-note:not(:empty))) {display:none;}
.checkout-panel #orderer-form input:not([type=checkbox]) {width:100%;}
.checkout-consent {display:flex; align-items:center; gap:.65rem; min-height:48px; padding:.7rem; border:1px solid #81ae9a; border-radius:8px; cursor:pointer;}
.checkout-consent input {flex-shrink:0;}
.cabinet[data-scene="quantity"] #purchase {margin-top:clamp(18px,5svh,42px);}

/* The artwork and both overlays share one card face, at every shelf width. */
#catalog .product {display:grid; grid-template: "face" auto / minmax(0,1fr); align-content:stretch; isolation:isolate; padding:0; color:#f4fff8; background:#153c40; border:2px solid #85a59e; border-radius:8px;}
#catalog .catalog-art {grid-area:face; display:block; align-self:center; width:100%; height:auto;}
.catalog-overlay {position:relative; grid-area:face; display:flex; flex-direction:column; justify-content:space-between; gap:clamp(8px,2vw,16px); padding:clamp(10px,2vw,19px); background:linear-gradient(90deg,#09262ded 0%,#0b2f35af 38%,transparent 83%),linear-gradient(0deg,#09252bba,transparent 42%);}
.catalog-caption {text-shadow:0 1px 3px #051e24;}
.catalog-caption .poster-format {background:#c9e5db; color:#164139; border-radius:2px; line-height:1.4; text-shadow:none;}
#catalog .catalog-caption .price-plate {margin-top:7px; color:#123e3a;}
.catalog-caption h2 {margin:4px 0; color:white; font-size:clamp(1.13rem,2.4vw,1.65rem); line-height:1.18;}
#catalog .viewer-counts {color:#eaf6ee; font-size:.8rem; gap:2px 12px;}
#catalog .viewer-counts .icon {width:14px; height:14px;}
#catalog .viewer-counts b {font-size:1.23rem;}
#catalog [data-remaining] {color:#8affd3;}
#catalog [data-grades] {color:#ffdb72;}
.catalog-entry {text-align:center; font-size:.85rem; font-weight:700;}
#catalog .catalog-entry :is(.state,.stock-hold,small) {margin:0; color:#f5ffef; text-shadow:0 1px 3px #00191e;}
#catalog .entry-actions {flex-direction:row; margin:0; padding:0;}
#catalog .catalog-entry button {min-height:44px; margin:0; gap:.65em; padding:6px 14px; border:1px solid #dffba6; border-bottom:3px solid #81a439; color:#19372b; background:linear-gradient(#ecff98,#c9e958); border-radius:7px 3px; box-shadow:0 2px 0 #062b27;}
#catalog .entry-actions .entry-label {font-size:.75rem; border-right:1px solid #5b804f; padding-right:.65em;}
#catalog .entry-label::before {background:#257247; box-shadow:none;}
#catalog .entry-actions .icon {width:1rem; height:1rem;}
@media(prefers-reduced-motion:no-preference){#catalog button:has([data-ready]:not([hidden])) {animation:entry-glow 1.8s ease-in-out infinite;}}

/* Keep the printed banner intact on the right of the portrait product shelf. */
.machine-shop #catalog {gap:12px;}
.machine-shop #catalog .product {position:relative; min-height:140px;}
.machine-shop #catalog .catalog-art {position:absolute; inset:0; height:100%; object-fit:contain; object-position:right center;}
.machine-shop #catalog .catalog-overlay {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:9px 12px; background:linear-gradient(90deg,#06282d 0%,#06282df2 30%,#05252cb8 56%,#05252c00 82%);}
.machine-shop #catalog .catalog-caption {min-width:0;}
.machine-shop #catalog .catalog-caption h2 {font-size:1.12rem; line-height:1.18; overflow-wrap:anywhere;}
.machine-shop #catalog .catalog-entry {align-self:end; max-width:9.5rem;}
.machine-shop #catalog .entry-actions button {min-width:0; gap:.35em; padding-inline:8px;}
@media (max-width:390px) {
  .machine-shop #catalog .catalog-overlay {grid-template-columns:minmax(0,1fr) minmax(75px,30%);}
  .machine-shop #catalog .entry-actions button {flex-wrap:wrap; padding-inline:5px;}
}

button#cancel.turn-exit, .machine-shop .drawer-page button#cancel.turn-exit {
  display:grid; place-content:center; justify-items:center; gap:2px;
  min-height:48px; margin:0; padding:5px 13px; white-space:nowrap; line-height:1.1;
  color:#f4fff7; background:linear-gradient(180deg,#386561 0%,#254e4c 45%,#173a3c 100%);
  border:1px solid #94b9a9; border-bottom:2px solid #587e70; border-radius:8px;
  box-shadow:inset 0 1px 0 #d4ebcd8c,inset 0 -1px 0 #092d30,0 3px 0 #06272a,0 5px 7px #00181f66;
}
button#cancel.turn-exit:active, .machine-shop .drawer-page button#cancel.turn-exit:active {
  transform:translateY(2px); box-shadow:inset 0 2px 3px #092d3077,0 1px 0 #06272a;
}
#cancel.turn-exit:focus-visible {outline:3px solid #dbf776; outline-offset:3px;}
.turn-exit span {color:#d5e9de; font-size:.75rem; font-variant-numeric:tabular-nums;}
.turn-exit b {color:#dcf89a;}
.turn-exit strong {font-size:.94rem;}
body > #cancel.turn-exit, .drawer-page > #cancel.turn-exit {
  position:fixed; z-index:4; left:max(0px,env(safe-area-inset-left)); bottom:max(16px,env(safe-area-inset-bottom));
}
.machine-shop .drawer-page > #cancel.turn-exit {position:absolute;}
body:has(#cancel.turn-exit:not([hidden]) + #exit-dialog) main {padding-bottom:max(80px,calc(66px + env(safe-area-inset-bottom)));}
#purchase .purchase-heading {display:flex; align-items:center; justify-content:space-between; gap:10px;}
#purchase .purchase-heading h2 {margin:0; white-space:nowrap;}
#board .controls:not(:has(#status:not(:empty),#errors:not(:empty),#end-note:not(:empty),#payment-clock:not([hidden]),.turn-actions button:not([hidden]))) {display:none;}
.exit-dialog {box-sizing:border-box; width:min(21rem,calc(100vw - 32px)); max-height:90dvh; margin:auto; padding:22px; border:2px solid #8aaba0; border-radius:14px 5px; color:#f0fcf6; background:linear-gradient(145deg,#194c47,#092e36 85%); box-shadow:0 5px 0 #08292a,0 16px 40px #001b2080;}
.exit-dialog::backdrop {background:#01191fc2;}
.exit-dialog #exit-count {display:inline-flex; align-items:baseline; gap:3px; margin-bottom:12px; color:#ddf5e6; font-weight:650;}
.exit-dialog #exit-count b {font-size:1.3em; color:#d7f781;}
.exit-dialog h2 {font-size:clamp(1.24rem,5vw,1.55rem); line-height:1.35;}
.exit-dialog [role=alert]:not(:empty) {margin-top:10px; color:#ffc2af;}
.exit-choices {display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:22px;}
.exit-choices button {width:100%; padding-inline:6px;}
