/* Onglet « Rechercher » (moteur de recherche de modèles 3D) */
.ms-root { padding-bottom: 24px; }
.ms-bar { display: flex; gap: 8px; max-width: 1200px; margin: 0 auto 8px; }
.ms-bar input { flex: 1; font-size: 16px; padding: 10px 12px; }
.ms-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 1200px; margin: 0 auto 8px; }
.ms-sort { width: auto; padding: 5px 8px; font-size: 13px; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-chip { border-radius: 999px; padding: 5px 12px; font-size: 13px; border: 1px solid var(--c, var(--line)); background: transparent; color: var(--muted); }
.ms-chip.on { background: var(--c); color: #fff; font-weight: 600; }
.ms-chip.off { opacity: .55; border-style: dashed; }
.ms-status { max-width: 1200px; margin: 0 auto 10px; } .ms-err { color: var(--danger); font-size: 12px; }
.ms-empty { max-width: 640px; margin: 40px auto; text-align: center; }
.ms-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) { .ms-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.ms-card { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.ms-card:hover { border-color: var(--accent); }
.ms-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg); display: grid; place-items: center; color: var(--muted); font-size: 32px; }
.ms-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ms-src { display: inline-block; vertical-align: middle; font-size: 10px; font-weight: 700; color: #fff; padding: 2px 7px; border-radius: 999px; text-transform: none; letter-spacing: 0; }
.ms-thumb .ms-src { position: absolute; left: 6px; top: 6px; }
.ms-paid { position: absolute; right: 6px; top: 6px; font-size: 10px; background: var(--warn); color: #000; padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.ms-info { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.ms-title { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ms-author { overflow: hidden; text-overflow: ellipsis; }
.ms-more { display: block; margin: 14px auto; }
.ms-wide { max-width: 860px; }
.ms-mtitle h2 { margin-bottom: 4px; }
.ms-gallery { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; scroll-snap-type: x mandatory; }
.ms-gallery img { height: 200px; border-radius: 10px; scroll-snap-align: start; background: var(--bg); }
.ms-note { background: rgba(245,165,36,.1); border: 1px solid var(--warn); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.ms-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.ms-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; margin: 0; color: var(--fg); font-size: 14px; cursor: pointer; }
.ms-row input { flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.ms-row.ms-p2s { border-color: var(--accent); }
.ms-row.dis { opacity: .5; cursor: default; }
.ms-row .badge { margin-left: 6px; }
.ms-row .swatch { margin-right: 2px; }
.ms-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ms-desc { margin-top: 6px; } .ms-desc > div { white-space: pre-wrap; font-size: 13px; color: var(--muted); margin-top: 6px; }
.ms-login { margin-bottom: 8px; } .ms-login > div { margin-top: 6px; }
.modal-foot a button { width: auto; }
