
:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#e9edf4;background:#14171c}*{box-sizing:border-box}body{margin:0}.top{background:#22262e;border-bottom:1px solid #3b414b;padding:13px 24px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.logo{font-weight:900;letter-spacing:1.5px;font-size:21px;color:#67a9ff}.count{font-size:11px;background:#39404c;padding:5px 9px;border-radius:20px}.search{flex:1;min-width:170px}input,select,button{font:inherit}input,select{background:#171b22;border:1px solid #3b424c;border-radius:7px;color:#e9edf4;padding:11px 12px}input.search{min-width:200px}button{cursor:pointer;border:0;border-radius:7px;padding:10px 13px;background:#303641;color:#e6ebf5}button:hover,.chip:hover{background:#42536d}.primary,.active{background:#347de5!important;color:white!important}.wrap{max-width:1500px;margin:auto;padding:22px}.hero{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.hero h1{font-size:25px;margin:0 0 5px}.muted{color:#96a0b0;font-size:13px}.chips{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0 22px}.chip{border-radius:18px;font-size:12px;padding:8px 13px;background:#2b3039}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.card{border:1px solid #363c47;background:#22262d;border-radius:8px;overflow:hidden;cursor:pointer}.preview{height:205px;background:linear-gradient(135deg,#72c3d2,#3c819b);display:flex;align-items:center;justify-content:center;position:relative}.preview img{width:100%;height:100%;object-fit:contain}.placeholder{font-size:65px;filter:drop-shadow(0 9px 10px #1a4e6170)}.tag{position:absolute;top:10px;right:10px;background:#288fe0;color:#fff;font-size:10px;padding:5px 7px;border-radius:3px}.card-body{padding:11px}.item-title{font-size:15px;font-weight:700}.file{font-size:11px;color:#c2e8ff;margin-bottom:5px}.meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.pill{background:#353b45;color:#cbd2dc;border-radius:12px;padding:4px 8px;font-size:10px}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.empty{text-align:center;padding:60px 20px;color:#9ba5b5;border:1px dashed #4a515c;border-radius:12px}.modal{position:fixed;inset:0;background:#07090dc9;display:none;align-items:center;justify-content:center;padding:20px;z-index:10}.modal.show{display:flex}.panel{width:min(720px,100%);max-height:90vh;overflow:auto;background:#242a34;border:1px solid #47505e;border-radius:12px;padding:24px}.panel h2{margin-top:0}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.drop{border:2px dashed #5a6b85;border-radius:12px;padding:32px;text-align:center;margin:18px 0;background:#1a202a}.drop input{width:100%}.queue{font-size:12px;line-height:1.8;max-height:200px;overflow:auto}.detail-img{max-height:370px;width:100%;object-fit:contain;background:#427f91;border-radius:8px}.pagination{display:flex;justify-content:center;gap:7px;margin:28px 0}.pagination button{min-width:36px}.footer{text-align:center;color:#687586;font-size:12px;padding:25px}.notice{background:#273c56;border:1px solid #42678f;border-radius:8px;padding:10px 14px;font-size:12px;color:#bddaff;margin-bottom:18px}@media(max-width:1100px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:750px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preview{height:165px}.wrap{padding:14px}.top{padding:12px}.search{order:5;flex-basis:100%}}@media(max-width:420px){.grid{gap:8px}.preview{height:135px}.item-title{font-size:13px}}

.adminbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.formline{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.alert{padding:12px;background:#332a20;border:1px solid #75542c;border-radius:8px;margin:12px 0}.danger{background:#9c3440}.card .actions{padding:8px 11px}.loginbox{max-width:440px;margin:9vh auto;padding:28px;background:#22262d;border:1px solid #3b414b;border-radius:12px}.loginbox input{width:100%;margin:10px 0}.loginbox button{width:100%}

[hidden]{display:none!important}.queue{white-space:pre-line}
/* V3 multi-file uploader */
.dropzone{border:2px dashed #52718b;border-radius:14px;padding:28px;text-align:center;background:#202b35;cursor:pointer;margin:14px 0}.dropzone.dragover{border-color:#45b3ff;background:#193b51}.dropzone strong{display:block;font-size:18px;margin-bottom:8px}.uploadstats{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0}.progress-track{height:12px;background:#121a21;border-radius:12px;overflow:hidden;margin:12px 0}.progress-fill{height:100%;background:#37a9fa;width:0%;transition:width .2s}.queue{white-space:pre-wrap;max-height:230px;overflow:auto}.upload-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* V10 public-only texture selector */
.texture-picker{position:absolute;left:8px;bottom:8px;right:8px;display:flex;gap:5px;flex-wrap:wrap;align-items:center;max-height:75px;overflow-y:auto;z-index:2;padding:5px;background:#131922d9;border-radius:7px}
.texture-btn{font-size:11px;font-weight:700;min-width:29px;padding:6px 8px;border-radius:5px;background:#343e4d;color:#d9e5f4;border:1px solid #536171;line-height:1.2}
.texture-btn.selected{background:#248fe9;color:white;border-color:#79c7ff}
.texture-btn:hover{background:#416e9d}
.modal-textures{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0 4px}
.modal-textures .texture-btn{font-size:13px;padding:9px 12px}

/* V11: actual uploaded-image thumbnails in public texture selector */
.texture-picker{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-height:none;gap:6px;padding:6px;scrollbar-width:thin;scrollbar-color:#6e8099 #17202c;align-items:center}
.texture-btn,.modal-textures .texture-btn{position:relative;flex:0 0 48px;width:48px;height:48px;min-width:48px;padding:0;overflow:hidden;border:2px solid #526174;border-radius:7px;background:#343a44;cursor:pointer;box-sizing:border-box}
.texture-btn img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.texture-btn .texture-label{position:absolute;bottom:0;left:0;right:0;background:#111827b8;color:#fff;font-size:9px;font-weight:700;line-height:14px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.texture-btn.selected,.modal-textures .texture-btn.selected{border:2px solid #36a5ff;box-shadow:0 0 0 1px #9ed9ff}
.texture-btn:hover{border-color:#a6d9ff;background:#343a44}
.modal-textures{display:flex;flex-wrap:wrap;gap:8px}
.modal-textures .texture-btn{flex-basis:62px;width:62px;height:62px}

/* V12 - Public catalogue background only. Admin unchanged. */
body:has(.hero){background:#050c17 url('/static/catalogue-background.png') center top / cover fixed no-repeat;}
body:has(.hero)::before{content:"";position:fixed;inset:0;background:linear-gradient(180deg,rgba(2,7,16,.25),rgba(2,7,16,.57) 50%,rgba(2,7,16,.74));pointer-events:none;z-index:-1}
body:has(.hero) .top{background:rgba(8,15,29,.94);border-bottom:1px solid #225da4;backdrop-filter:blur(14px)}
body:has(.hero) .hero{padding:19px 22px;background:rgba(6,14,29,.82);border:1px solid rgba(48,116,201,.35);border-radius:12px;backdrop-filter:blur(8px)}
body:has(.hero) .card{background:rgba(13,22,38,.94);border:1px solid rgba(57,107,170,.55);box-shadow:0 12px 30px #0008;backdrop-filter:blur(5px)}
body:has(.hero) .card:hover{border-color:#2f9dff;transform:translateY(-2px);transition:transform .18s,border-color .18s}
body:has(.hero) .chips{padding:12px;border-radius:10px;background:rgba(6,13,26,.76);backdrop-filter:blur(8px)}
body:has(.hero) .chip{background:rgba(28,44,68,.96)}
body:has(.hero) .chip.active{background:#087cf5!important}
body:has(.hero) .footer{color:#c0cce2}
@media(max-width:750px){body:has(.hero){background-attachment:scroll;background-size:auto 100vh}}

/* V13: image-only swatches, no text labels; public catalogue only */
body:has(.hero) .texture-picker .texture-label,body:has(.hero) .texture-btn .texture-label{display:none!important}
body:has(.hero) .texture-btn{font-size:0}
body:has(.hero) .file{font-weight:800;letter-spacing:.5px;color:#d5e7ff}
body:has(.hero) .texture-picker{background:rgba(7,11,17,.83)}
body:has(.hero){background-color:#020306}
