/* The catalogue card is the visual reference for private project/model cards. */
.card-gallery{position:relative;min-width:0}
.card-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;margin:0;padding:0;border:1px solid var(--line,#dae2d7);border-radius:8px;background:#fffffff5;color:var(--forest,#163e32);box-shadow:0 2px 8px #163e3212;cursor:pointer;z-index:2;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .15s,border-color .15s,box-shadow .15s}
.card-gallery-arrow svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.card-gallery-arrow:hover{background:#edf3ee;border-color:#b5caba;box-shadow:0 2px 8px #163e321a}
.card-gallery-arrow:active{background:#e0ebe2;border-color:#8eaf9c}
.card-gallery-arrow:focus-visible{outline:2px solid var(--forest,#163e32);outline-offset:2px}
@media(pointer:coarse){.card-gallery-arrow{width:44px;height:44px;min-width:44px;min-height:44px}}
.card-gallery-arrow.is-prev{left:8px}.card-gallery-arrow.is-next{right:8px}
.card-gallery-count{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);border-radius:12px;padding:2px 9px;background:#fffef5ed;color:#163e32;font-size:12px;pointer-events:none;z-index:2}
.cabinet-prototype .project-card{display:flex;flex-direction:column;min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px;overflow:visible;background:#fffefa;box-shadow:var(--home-shadow);transform:none;transition:none;container:project-card / inline-size}
.cabinet-prototype .project-card:hover{transform:none;border-color:var(--line);box-shadow:var(--home-shadow)}
.cabinet-prototype .project-card .project-thumb{position:relative;display:grid;place-items:center;flex:none;width:100%;height:auto;aspect-ratio:1;margin:0;padding:0;border:0;border-radius:6px;overflow:hidden;background:linear-gradient(145deg,#e1e9dd,#f3eee7 52%,#cad8c4)}
.cabinet-prototype .project-card .project-thumb img{position:static;inset:auto;display:block;width:100%;max-width:100%;height:100%;padding:0;object-fit:contain;border-radius:0;transform:none;box-shadow:none}
.project-card-author .public-avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.project-card-author>span:last-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cabinet-prototype .project-card>.project-card-body{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;padding:0}
.cabinet-prototype .project-card .project-card-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;min-height:32px;margin:8px 2px;padding:0;border:0}
.cabinet-prototype .project-card .project-card-foot>a{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--forest);font:600 12px/1.4 var(--font-ui)}
.cabinet-prototype .project-card-foot>.company-text-button{min-width:0;margin:0;padding:0;border:0;background:transparent;text-align:left;color:var(--forest);font:600 12px/1.4 var(--font-ui)}
.cabinet-prototype .project-card .card-copy h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;max-height:48px;margin:0 4px;font:700 20px/1.2 var(--font-ui);letter-spacing:-.025em;color:var(--forest);overflow-wrap:anywhere}
.cabinet-prototype .project-card .card-copy h3 a{font:inherit;color:inherit}
.cabinet-prototype .project-card-body>p,.cabinet-prototype .project-card-body>.project-card-meta{margin:0 4px 12px;color:var(--muted);font:400 13px/1.65 var(--font-ui);overflow-wrap:anywhere}
.cabinet-prototype .project-card-body>.project-card-meta{margin-top:auto;font-size:11px}
.cabinet-prototype .card-copy{min-height:0}
.cabinet-prototype .card-copy>.card-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:39px;margin:5px 4px 0;color:var(--muted);font:400 13px/1.5 var(--font-ui)}
.cabinet-prototype .card-details{min-height:0;margin:10px 4px 0;padding:0}
.card-details>.project-card-meta{display:block;overflow:hidden;white-space:normal;margin:0;color:var(--muted);font:400 11px/1.5 var(--font-ui)}
.card-details>.project-access-status{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0 0;color:var(--muted);font:400 11px/1.5 var(--font-ui)}
.project-card-folder{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.project-card-date-compact{display:none}
.cabinet-prototype .project-card-state.is-stored{display:none}
.cabinet-prototype .project-card-author{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 4px;margin:2px 0 12px;font-size:13px}
.cabinet-prototype .project-card-author .public-avatar{width:32px;height:32px;flex:none}
.cabinet-prototype .project-card-author .public-avatar svg{width:18px;height:18px}
.cabinet-prototype .service-model-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 4px 0}
.cabinet-prototype .project-card .card-details:empty{display:none}
.card-details .public-tags{margin:0;gap:6px}
.card-details .public-tags span{padding:4px 8px;border-radius:4px;background:#eef3ec;color:#5b7465;font:400 11px/1.55 var(--font-ui)}
.cabinet-prototype .project-card .project-menu{flex:none}
.cabinet-prototype .project-card .project-menu>button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;background:transparent;color:#526d5e;border-radius:4px;font-size:18px}
.cabinet-prototype .project-card .project-menu>button:hover{background:#eef3ec}
.cabinet-prototype #accountSavedGrid .project-card .saved-remove{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:5px;border:0;border-radius:4px;background:transparent;color:#ed9656;font-size:14px}
.card-bookmark svg{display:block;width:22px;height:22px;fill:currentColor;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
/* Density follows the real card width, including tablet/mobile grid overrides. */
@container project-card (max-width:260px){
 .cabinet-prototype .project-card-author{min-height:24px;gap:6px;margin-bottom:9px;font-size:12px}
 .cabinet-prototype .project-card-author .public-avatar{width:22px;height:22px}
 .cabinet-prototype .project-card-author .public-avatar svg{width:14px;height:14px}
 .cabinet-prototype .project-card .card-copy h3{font-size:18px;max-height:43.2px}
 .cabinet-prototype .project-card .project-card-foot{margin-block:6px}
 .cabinet-prototype .card-details{margin-top:8px}
 .project-card-date-full{display:none}
 .project-card-date-compact{display:inline}
}
@container project-card (max-width:195px){
 .cabinet-prototype .project-card-author{min-height:20px;gap:6px;margin:0 2px 8px;font-size:11px}
 .cabinet-prototype .project-card-author .public-avatar{width:18px;height:18px}
 .cabinet-prototype .project-card-author .public-avatar svg{width:12px;height:12px}
 .cabinet-prototype .project-card .card-copy h3{margin-inline:2px;font-size:16px;max-height:38.4px}
 .cabinet-prototype .project-card .project-card-foot>a,.cabinet-prototype .project-card-foot>.company-text-button{font-size:11px}
 .cabinet-prototype .project-card .project-menu>button{width:28px;height:28px}
 .cabinet-prototype .card-copy>.card-description{margin-inline:2px;font-size:12px;max-height:36px}
 .cabinet-prototype .card-details{margin-inline:2px}
 .card-details>.project-card-meta,.card-details>.project-access-status{font-size:10px}
}
@media(max-width:1100px){.cabinet-prototype .library-layout,.cabinet-prototype [data-list-layout]{display:none}}
@media(pointer:coarse){.cabinet-prototype .project-card .project-card-foot{min-height:44px}.cabinet-prototype .project-card .project-menu>button{width:44px;height:44px}}
