/* Compact collection lists; grid display remains unchanged. */
.stacked-list-groups.is-stacked{columns:300px 3;column-gap:22px}
.is-stacked .unified-card-group{break-inside:avoid;margin:0 0 24px;min-width:0}
.is-stacked .unified-card-group h3{font-size:14px;margin:0;padding:8px 0;border-bottom:1px solid var(--border);color:var(--text)}
.is-stacked h3 small{font-weight:400;color:var(--muted);font-size:12px}
.is-stacked .unified-line-cards{gap:0}
.is-stacked .unified-line-card{grid-template-columns:20px 24px minmax(0,1fr) 64px 28px!important;gap:6px!important;border:0;border-bottom:1px solid rgba(127,127,127,.18);border-radius:0;padding:7px 0;background:transparent;align-items:start}
.is-stacked .collection-select{grid-column:1;grid-row:1;margin:0}
.is-stacked .collection-select input{width:16px;height:16px;min-height:0;margin:3px 0}
.is-stacked .unified-line-quantity{grid-column:2;grid-row:1}
.is-stacked .unified-line-name{grid-column:3;grid-row:1}
.is-stacked .unified-line-price{grid-column:4;grid-row:1;text-align:right}
.is-stacked .unified-line-location{grid-column:5!important;grid-row:1}
.is-stacked .unified-line-image,.is-stacked .unified-line-print,.is-stacked .unified-line-name>span,.is-stacked .unified-line-quantity>span,.is-stacked .unified-line-price>span{display:none}
.stacked-card-name{border:0;background:transparent!important;padding:0!important;color:inherit;font-size:13px;line-height:1.5;text-align:left;width:100%;border-radius:2px;min-height:0!important}
.stacked-card-name:hover,.stacked-card-name:focus-visible{color:var(--r4-gold,#e7bd72);text-decoration:underline}
.is-stacked .unified-line-quantity strong,.is-stacked .unified-line-price strong{font-size:13px;font-weight:400;line-height:1.5}
.is-stacked .unified-line-location>summary{font-size:0;list-style:none;cursor:pointer;text-align:center;min-height:24px}
.is-stacked .unified-line-location>summary:after{content:'⌄';font-size:18px;border:1px solid var(--border);border-radius:50%;width:20px;height:20px;display:inline-grid;place-items:center}
.is-stacked .unified-line-card:has(details[open]){grid-template-columns:20px 24px minmax(0,1fr) 64px 28px!important}
.is-stacked .unified-line-location[open]{grid-column:1/-1!important;grid-row:2;padding:8px;border:1px solid var(--border);border-radius:6px}
.is-stacked .unified-line-location[open]>summary{font-size:12px;text-align:left}
.is-stacked .unified-line-card:has(details[open]) .unified-line-name>span{display:block;font-size:11px}
.is-stacked .unified-line-card:has(details[open]) .unified-line-print{display:block;grid-row:3;grid-column:3/-1;font-size:12px}
.mouse-card-preview{position:fixed;z-index:12000;width:min(240px,calc(100vw - 24px));height:auto;max-height:calc(100vh - 24px);object-fit:contain;pointer-events:none;border-radius:12px;box-shadow:0 12px 35px #000b;background:#080c11}
@media(max-width:650px){.stacked-list-groups.is-stacked{columns:1}.is-stacked .stacked-card-name{min-height:32px!important}.mouse-card-preview{display:none}}

/* Overlapping image stacks by collection group. */
.stacked-list-groups.is-card-stacks{columns:190px 6;column-gap:18px}
.is-card-stacks .unified-card-group{break-inside:avoid;min-width:0;margin:0 0 26px}
.is-card-stacks .unified-card-group h3{font-size:14px;line-height:1.4;margin:0 0 8px;padding:0 0 6px}
.is-card-stacks h3 small{font-size:11px;font-weight:400;color:var(--muted)}
.is-card-stacks .unified-grid-cards{display:block}
.is-card-stacks .unified-grid-card{height:32px;overflow:hidden;margin:0;padding:0;border:0;border-radius:8px 8px 0 0;background:#080c11;position:relative;outline-offset:2px}
.is-card-stacks .unified-grid-card:last-child{height:auto;border-radius:8px}
.is-card-stacks .unified-grid-card:hover,.is-card-stacks .unified-grid-card:has(:focus-visible),.is-card-stacks .unified-grid-card:focus-visible{overflow:visible;z-index:3}
.is-card-stacks .unified-grid-card:not(:last-child) .unified-card-image{height:32px;overflow:hidden}
.is-card-stacks .unified-grid-card .unified-card-image{transform:none!important}
.is-card-stacks .unified-grid-card .unified-grid-caption{position:absolute;top:100%;left:0;right:0;z-index:4}
@media(hover:none){.is-card-stacks .unified-grid-card:not(:last-child) .unified-card-image{height:44px}}
.is-card-stacks .unified-grid-card .unified-card-image{width:100%!important;margin:0;min-height:0!important}
.is-card-stacks .unified-grid-card .unified-card-image img{width:100%;height:auto;display:block;border-radius:8px}
.is-card-stacks .unified-grid-card .collection-select{position:absolute;top:4px;left:3px;z-index:2;padding:2px;background:#080c11dc;border-radius:3px}
.is-card-stacks .collection-select input{width:14px;height:14px;min-height:0}
.is-card-stacks .stack-copy-count{position:absolute;top:3px;right:4px;z-index:2;min-width:19px;padding:1px 4px;border-radius:5px;background:#080c11e8;color:#fff;font-size:12px}
.is-card-stacks .unified-grid-caption{display:none;padding:8px;background:var(--surface,#151c27)}
.is-card-stacks .unified-grid-card:hover .unified-grid-caption,.is-card-stacks .unified-grid-card:has(:focus-visible) .unified-grid-caption,.is-card-stacks .unified-grid-card:focus-visible .unified-grid-caption{display:flex}
@media(hover:none){.is-card-stacks .unified-grid-card{height:44px}}
@media(max-width:650px){.stacked-list-groups.is-card-stacks{columns:145px 2;column-gap:10px}}

/* Exact-inventory quantity controls, isolated from card hover previews. */
.inventory-quantity-stepper{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:2px;border:1px solid var(--border,#6b5534);border-radius:7px;background:var(--panel,#101720)}
.inventory-quantity-stepper button{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;min-height:32px!important;padding:0!important;line-height:1;font-size:20px;border-radius:5px}
.inventory-quantity-stepper strong{min-width:25px;text-align:center;font-variant-numeric:tabular-nums}
.inventory-quantity-stepper button:focus-visible{outline:2px solid #e4b65f;outline-offset:2px}
.is-stacked .unified-line-name{grid-column:2/4}
.is-stacked .unified-line-quantity{grid-column:2/4;grid-row:2;justify-self:start}
.is-stacked .inventory-quantity-stepper strong{font-size:13px;line-height:1.3}
.is-stacked .unified-line-location[open]{grid-row:3}
.is-stacked .unified-line-card:has(details[open]) .unified-line-print{grid-row:4}
.unified-grid-caption .inventory-quantity-stepper{margin:4px 0}
@media(pointer:coarse){.inventory-quantity-stepper button{width:44px;height:44px;min-height:44px!important}}

/* Compact printing text directly beside quantity; preserve the prior row layout. */
.is-stacked .unified-line-quantity{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:7px;min-width:0;max-width:100%;justify-self:stretch}
.is-stacked .unified-line-quantity>.inventory-printing-details{display:block;flex:1 1 auto;min-width:0;font-size:11px;line-height:1.4;color:var(--muted,#b9c1cb);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.is-stacked .unified-line-quantity>.inventory-quantity-stepper{flex:0 0 auto}
