/* Stage 7R21: Collection-only binder layout. Garage intentionally unchanged. */
body[data-collection-page="collection"] .link-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body[data-collection-page="collection"] .asm-vehicle-entry{min-width:0}
body[data-collection-page="collection"] .asm-collection-open{border:0;background:transparent;padding:0;display:block;width:100%;color:inherit;text-align:left;cursor:pointer}
body[data-collection-page="collection"] .asm-card{border-radius:9px;padding:3px;box-shadow:0 5px 16px #0009}
body[data-collection-page="collection"] .asm-card-inner{border-radius:6px}
body[data-collection-page="collection"] .asm-card-top{padding:5px 4px 4px;font-size:clamp(5px,1.45vw,9px)}
body[data-collection-page="collection"] .asm-card-bottom{padding:5px 4px;min-height:0}
body[data-collection-page="collection"] .asm-card-bottom h3{font-size:clamp(8px,2.2vw,15px);margin:0 0 3px;line-height:1.05}
body[data-collection-page="collection"] .asm-card-year{font-size:clamp(7px,1.8vw,12px)}
body[data-collection-page="collection"] .asm-owner-row{font-size:clamp(5px,1.25vw,9px);gap:2px;flex-wrap:wrap}
body[data-collection-page="collection"] .asm-card-edition{font-size:clamp(5px,1.2vw,8px);padding:2px 3px}
body[data-collection-page="collection"] .asm-card-extras{padding:5px 2px 0}
body[data-collection-page="collection"] .asm-card-nickname{font-size:clamp(9px,2vw,14px);overflow-wrap:anywhere}
body[data-collection-page="collection"] .asm-card-meta{margin-top:3px;flex-wrap:wrap;font-size:clamp(6px,1.2vw,9px)}
body[data-collection-page="collection"] .asm-card:hover{transform:none}
.asm-collection-tools{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0 22px}
.asm-collection-tools label{display:flex;flex-direction:column;gap:7px;color:#adffde;font-size:10px;letter-spacing:.1em;font-weight:800;flex:1;min-width:130px}
.asm-collection-tools input,.asm-collection-tools select{width:100%;min-height:42px;border-radius:10px;border:1px solid #38574d;background:#101d1b;color:#eafff5;padding:9px 12px;font:inherit;font-size:13px;letter-spacing:0}
.asm-collection-modal[hidden]{display:none!important}.asm-collection-modal{position:fixed;z-index:9999;inset:0;overflow:auto;background:#020909ed;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:70px 18px 40px;backdrop-filter:blur(9px)}
.asm-modal-open{overflow:hidden}.asm-modal-close{position:fixed;top:18px;right:18px;border:1px solid #5c9683;border-radius:10px;padding:12px 16px;background:#10211c;color:#adffde;font-weight:800;cursor:pointer;z-index:2}
#collection-modal-card{width:min(100%,420px)}#collection-modal-card .asm-card{border-radius:18px;padding:7px}#collection-modal-card .asm-card-top{padding:14px 13px;font-size:11px}#collection-modal-card .asm-card-bottom{padding:15px 13px;min-height:100px}#collection-modal-card .asm-card-bottom h3{font-size:22px}#collection-modal-card .asm-card-year{font-size:13px}#collection-modal-card .asm-owner-row{font-size:11px}#collection-modal-card .asm-card-edition{font-size:9px;padding:7px 9px}#collection-modal-card .asm-card-extras{padding:12px 3px}#collection-modal-card .asm-card-nickname{font-size:18px}#collection-modal-card .asm-card-meta{font-size:10px}
@media(min-width:850px){body[data-collection-page="collection"] .link-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}}
@media(prefers-reduced-motion:reduce){.asm-collection-modal{backdrop-filter:none}}

/* Stage 7R38: make collection card finishes visible on touch devices and discourage casual photo saving. */
body[data-collection-page="collection"] .asm-card{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body[data-collection-page="collection"] .asm-card-photo,
body[data-collection-page="collection"] .asm-card-photo img{ -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;user-drag:none }
body[data-collection-page="collection"] .asm-card-photo img{pointer-events:none}
body[data-collection-page="collection"] .asm-card::after{opacity:.34;transition:background-position .45s ease,opacity .25s ease}
body[data-collection-page="collection"] .asm-card.foil-active::after{background-position:0 0!important;opacity:.82!important}
body[data-collection-page="collection"] .asm-card.foil-active{box-shadow:0 10px 28px #000a,0 0 22px #adffde38}
@media(prefers-reduced-motion:reduce){body[data-collection-page="collection"] .asm-card::after{transition:none}}
