/* V3 shared layout and model pages. Loaded only by the V3 shell. */
body.freecreat-v3 .fc3-cover-retry { display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:1; border:1px dashed #a9bbd5; border-radius:12px; background:#f5f8fc; color:#526581; cursor:pointer; }
body.freecreat-v3 img[hidden] { display:none!important; }
body.freecreat-v3 .topbar .search { min-width:0!important; flex:1; }
body.freecreat-v3 .topbar .search input { min-width:0!important; width:100%; }
@media(max-width:900px) {
  body.freecreat-v3.redesign-detail-page .main { padding-bottom:90px!important; }
  body.freecreat-v3 .download-hero { display:grid!important; grid-template-columns:1fr!important; }
  body.freecreat-v3 .download-back-card { justify-self:start; }
  body.freecreat-v3 .download-cover { width:100%!important; height:200px!important; }
  body.freecreat-v3 .download-cover img { width:100%!important; height:100%!important; object-fit:contain!important; }
  body.freecreat-v3 .download-copy { width:100%!important; }
  body.freecreat-v3 .download-title-row { display:flex!important; flex-wrap:wrap; gap:12px; }
  body.freecreat-v3 .download-copy h1 { width:100%; font-size:26px!important; }
}
@media(max-width:900px) { body.freecreat-v3 .topbar { flex-wrap:wrap; } body.freecreat-v3 .topbar .search { flex-basis:100%; } body.freecreat-v3 .list-context-panel,body.freecreat-v3 .list-result-tools { flex-wrap:wrap; min-width:0!important; } body.freecreat-v3 .download-cover { max-width:100%; } }
body.freecreat-v3 .shell { min-width:0!important; box-sizing:border-box; }
body.freecreat-v3 .main { overflow-wrap:anywhere; }
body.freecreat-v3 .nav-item.active { background:linear-gradient(135deg,#2864f0,#4a95ff)!important; color:#fff!important; border-color:transparent!important; }
body.freecreat-v3 .shell { display:grid!important; grid-template-columns:232px minmax(0,1fr)!important; width:100%!important; max-width:1600px!important; gap:24px!important; padding:20px!important; }
body.freecreat-v3 .sidebar { width:auto!important; min-width:0!important; left:auto!important; border-radius:22px!important; }
body.freecreat-v3 .brand img { width:178px!important; max-width:100%!important; height:auto!important; object-fit:contain; border-radius:0; box-shadow:none; }
body.freecreat-v3 .main { width:100%!important; margin:0!important; padding:0!important; min-width:0; }
body.freecreat-v3 .nav-item { display:flex!important; align-items:center; gap:12px; padding:10px 12px!important; min-height:44px; font-size:14px!important; text-decoration:none; }
body.freecreat-v3 .nav-item::before { display:none!important; }
body.freecreat-v3 .fc3-nav-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 24px; height:24px; font:22px/1 system-ui,sans-serif; }
body.freecreat-v3 .nav-title { padding:0 12px 8px!important; text-align:left; }
body.freecreat-v3 .topbar { position:sticky; z-index:30; margin-bottom:24px; gap:16px; }
body.freecreat-v3 .section { border-radius:22px; padding:24px; margin-block:20px; }
body.freecreat-v3 .models { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:16px!important; }
body.freecreat-v3 .model-card { width:auto!important; min-width:0; overflow:hidden; padding:8px!important; text-decoration:none; }
body.freecreat-v3 .model-card > img { display:block; width:100%!important; height:auto!important; aspect-ratio:1; object-fit:contain; background:#f5f8fc; border-radius:12px; }
body.freecreat-v3 .model-card > strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:40px; margin:12px 6px 6px; font-size:14px; line-height:20px; }
body.freecreat-v3 .model-card > span { margin:0 6px 8px; color:var(--fc3-muted); font-size:12px; }
body.freecreat-v3 .list-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 4px; }
body.freecreat-v3 .list-hero h1 { font-size:clamp(24px,2.5vw,34px); line-height:1.2; letter-spacing:-.035em; }
body.freecreat-v3 .filter-pills { display:flex; flex-wrap:wrap; gap:8px; }
body.freecreat-v3 .filter-pills a { padding:9px 14px; border-radius:10px; }
body.freecreat-v3 .filter-pills a.active { background:var(--fc3-blue); color:white; }
body.freecreat-v3 .list-empty { padding:64px 24px; text-align:center; display:grid; gap:12px; color:var(--fc3-muted); }
body.freecreat-v3 .detail-workspace { display:grid!important; grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr)!important; gap:24px!important; align-items:start; }
body.freecreat-v3 .detail-preview-panel,body.freecreat-v3 .detail-info-panel { min-width:0; border-radius:22px!important; overflow:hidden; }
body.freecreat-v3 .detail-preview-media { min-height:320px!important; height:auto!important; aspect-ratio:1; }
body.freecreat-v3 .detail-preview-media > img { position:relative!important; inset:auto!important; width:100%!important; height:100%!important; min-height:320px; object-fit:contain!important; background:#f5f8fc; }
body.freecreat-v3 .detail-info-panel { padding:24px!important; }
body.freecreat-v3 .download-hero { display:flex; flex-wrap:wrap; gap:24px; border:1px solid var(--fc3-line); border-radius:22px; padding:24px; background:var(--fc3-card); }
body.freecreat-v3 .download-copy { flex:1 1 300px; min-width:0; }
body.freecreat-v3 .download-copy h1 { font-size:clamp(24px,3vw,36px); line-height:1.2; overflow-wrap:anywhere; }
body.freecreat-v3 .download-format-grid { display:grid!important; grid-template-columns:repeat(auto-fit,minmax(200px,1fr))!important; gap:14px; }
body.freecreat-v3 .download-format-card { border:1px solid var(--fc3-line); border-radius:16px; padding:20px; background:rgba(255,255,255,.85); text-align:left; cursor:pointer; transition:box-shadow .2s,transform .2s; }
body.freecreat-v3 .download-format-card:hover { transform:translateY(-3px); border-color:var(--fc3-blue); box-shadow:var(--fc3-shadow); }
body.freecreat-v3 a:focus-visible,body.freecreat-v3 button:focus-visible { outline:3px solid #80adff; outline-offset:3px; }
body.freecreat-v3.fc3-nav-collapsed .shell { grid-template-columns:76px minmax(0,1fr)!important; }
body.freecreat-v3.fc3-nav-collapsed .fc3-nav-label { display:none; }
body.freecreat-v3.fc3-nav-collapsed .nav-item { justify-content:center; }
body.freecreat-v3.fc3-nav-collapsed .brand img { width:54px!important; }
body.freecreat-v3 .fc3-nav-toggle { left:max(220px,calc((100vw - 1600px)/2 + 220px)); }
body.freecreat-v3.fc3-nav-collapsed .fc3-nav-toggle { left:max(64px,calc((100vw - 1600px)/2 + 64px)); }
@media(max-width:1200px) { body.freecreat-v3 .models { grid-template-columns:repeat(3,minmax(0,1fr))!important; } body.freecreat-v3 .detail-workspace { grid-template-columns:minmax(0,1fr)!important; } }
@media(max-width:900px) { body.freecreat-v3 .shell,body.freecreat-v3.fc3-nav-collapsed .shell { display:block!important; padding:12px!important; } body.freecreat-v3 .topbar { top:8px; } body.freecreat-v3 .models { grid-template-columns:repeat(2,minmax(0,1fr))!important; } body.freecreat-v3 .section { padding:16px; } body.freecreat-v3 .list-hero { flex-direction:column; align-items:stretch; } }
@media(max-width:480px) { body.freecreat-v3 .models { gap:10px!important; } body.freecreat-v3 .model-card > strong { font-size:13px; } body.freecreat-v3 .download-hero { padding:16px; } }
@media(prefers-reduced-motion:reduce) { body.freecreat-v3 *,body.freecreat-v3 *::before { transition:none!important; scroll-behavior:auto!important; } }
