/* Layout: header, then three panes like a catalog explorer: library + filters (left), asset grid (centre), asset details with the 3D viewer (right). The page is always dark; the header switch only picks the thumbnail background (data-thumbs: grey studio by default, or dark), and --thumb matches the edge of those renders. Brand: projectsim warm red accent, Plus Jakarta Sans + Fira Code. */ :root { --bg: #121110; --panel: #1a1918; --raised: #232120; --line: #34312e; --ink: #f3eee8; --muted: #a8a099; --faint: #6f6862; --accent: #e2624d; --accent-ink: #ffffff; --accent-soft: rgba(226, 98, 77, 0.16); --thumb: #9e9fa1; --scrim: rgba(0, 0, 0, 0.62); --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace; --radius: 10px; color-scheme: dark; } :root[data-thumbs="dark"] { --thumb: #1a1a1a; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); display: flex; flex-direction: column; } a { color: inherit; } button, select, input { font: inherit; color: inherit; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } [hidden] { display: none !important; } svg { flex: none; } /* Header */ .top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; } .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; } .brand-logo { width: 28px; height: 28px; border-radius: 6px; display: block; } .brand-name { font-weight: 700; letter-spacing: -0.01em; } .brand-product { color: var(--muted); font-weight: 500; } .search { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; min-width: 0; height: 38px; } .search svg { width: 16px; height: 16px; fill: var(--muted); } .search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; } .top-links { display: flex; gap: 8px; align-items: center; } .top-links a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; text-decoration: none; border-radius: 8px; color: var(--muted); font-weight: 500; } .top-links a:hover { color: var(--ink); background: var(--raised); } .top-links a.cta { background: var(--accent); color: var(--accent-ink); } .top-links a.cta:hover { filter: brightness(1.08); color: var(--accent-ink); background: var(--accent); } .icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); background: var(--raised); border-radius: 8px; cursor: pointer; color: var(--muted); } .icon-button:hover { color: var(--ink); border-color: var(--faint); } .icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .thumbs-toggle .swatch { stroke: none; } .thumbs-toggle .swatch-grey { fill: #9e9fa1; } .thumbs-toggle .swatch-dark { fill: #1a1a1a; } .thumbs-toggle .ring { fill: none; stroke: currentColor; stroke-width: 1.4; } .filters-toggle { display: none; align-items: center; height: 36px; border: 1px solid var(--line); background: var(--raised); border-radius: 8px; padding: 0 12px; cursor: pointer; } /* Panes */ .layout { flex: 1; display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 0; position: relative; } @media (min-width: 1280px) { .layout.has-detail { grid-template-columns: 260px minmax(0, 1fr) 440px; } } .side { border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; padding: 14px 12px 20px; display: grid; align-content: start; grid-auto-rows: max-content; gap: 18px; } .results { overflow-y: auto; padding: 14px 16px 32px; min-width: 0; } .detail { border-left: 1px solid var(--line); background: var(--panel); min-width: 0; overflow: hidden; display: flex; flex-direction: column; } @media (max-width: 1279px) { .detail { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 15; box-shadow: -20px 0 40px rgba(0, 0, 0, 0.35); } } .detail-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; gap: 16px; align-content: start; width: 100%; } .detail-scroll > * { min-width: 0; } /* Sidebar */ .side-title { margin: 0 0 6px; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); } .side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .side-head .side-title { margin: 0; } .link-button { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 12.5px; line-height: 1; } .library { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; } .lib-row { width: 100%; display: flex; align-items: center; gap: 6px; min-height: 32px; border: 0; background: none; text-align: left; padding: 0 8px; border-radius: 7px; cursor: pointer; color: var(--muted); line-height: 1.25; } .lib-row:hover { background: var(--raised); color: var(--ink); } .lib-row[aria-current="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; } .lib-row .n { margin-left: auto; font: 12px/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; } .lib-row .caret { width: 14px; height: 14px; display: grid; place-items: center; color: var(--faint); transition: transform 0.15s; } .lib-row .caret svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .lib-row[aria-expanded="true"] .caret { transform: rotate(90deg); } .lib-row .spacer { width: 14px; flex: none; } .lib-sub { list-style: none; margin: 0 0 4px; padding: 0 0 0 20px; display: grid; gap: 1px; } .lib-sub .lib-row { min-height: 28px; font-size: 13px; } .facet { border-top: 1px solid var(--line); padding: 10px 0 4px; } .facet h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; } .facet-opts { display: flex; flex-wrap: wrap; gap: 5px; } .opt { display: inline-flex; align-items: center; gap: 5px; height: 28px; border: 1px solid var(--line); background: var(--raised); border-radius: 999px; padding: 0 10px; cursor: pointer; font-size: 12.5px; line-height: 1; color: var(--muted); } .opt:hover { color: var(--ink); border-color: var(--faint); } .opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .opt .n { opacity: 0.75; font: 11px/1 var(--mono); } .opt:disabled { opacity: 0.4; cursor: default; } .side-foot { margin: 0; font-size: 12px; color: var(--faint); } /* Results */ .results-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; min-height: 32px; } .count { margin: 0; color: var(--muted); } .count strong { color: var(--ink); } .chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; align-items: center; } .chip { display: inline-flex; align-items: center; gap: 2px; height: 28px; border: 1px solid var(--line); border-radius: 999px; padding: 0 4px 0 10px; font-size: 12.5px; line-height: 1; background: var(--raised); } .chip button { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--muted); padding: 0; } .chip button:hover { background: var(--line); color: var(--ink); } .chip button svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; } .sort { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-left: auto; } .sort select { height: 32px; background: var(--raised); border: 1px solid var(--line); border-radius: 7px; padding: 0 6px; } .grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; } .card { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 0; overflow: hidden; cursor: pointer; transition: border-color 0.12s; } .card:hover { border-color: var(--faint); } .card[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } .thumb { position: relative; aspect-ratio: 1; background: var(--thumb); display: grid; place-items: center; } .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; } .thumb img.cover { object-fit: cover; } .badges { position: absolute; top: 7px; left: 7px; display: flex; gap: 4px; pointer-events: none; } .badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font: 600 10.5px/1 var(--mono); letter-spacing: 0.03em; border-radius: 5px; background: var(--scrim); color: #f3eee8; } .card-text { padding: 9px 10px 10px; display: grid; align-content: start; gap: 2px; min-width: 0; } .card-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .card-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .empty { color: var(--muted); padding: 40px 0; text-align: center; } /* Detail */ .detail-head { display: flex; gap: 8px; align-items: flex-start; } .detail-head h2 { margin: 0; font-size: 20px; line-height: 1.25; text-wrap: balance; flex: 1; } .detail-head .icon-button { width: 32px; height: 32px; } .detail-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; } .viewer { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--thumb); } .viewer .thumb { aspect-ratio: 4 / 3; } .viewer .thumb.checker { background: repeating-conic-gradient(#d9d9d9 0 25%, #f4f4f4 0 50%) 0 0 / 18px 18px; } .viewer-bar { display: flex; align-items: center; gap: 6px; padding: 6px; background: var(--raised); border-top: 1px solid var(--line); flex-wrap: wrap; } .viewer-bar .opt { height: 26px; font-size: 12px; } .viewer-bar .hint { font-size: 11.5px; color: var(--muted); } .viewer3d { position: relative; } .viewer3d-stage { position: relative; aspect-ratio: 4 / 3; touch-action: none; } .viewer3d-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; } .viewer3d-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } .joint-dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; padding: 0; border-radius: 50%; border: 3px solid #f29b38; background: #1d1e20; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); cursor: grab; pointer-events: auto; transition: width 0.12s, height 0.12s, margin 0.12s, background 0.12s, border-color 0.12s; } .joint-dot:hover, .joint-dot.active { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: #f29b38; border-color: #ffffff; box-shadow: 0 0 0 5px rgba(242, 155, 56, 0.28); } .viewer3d-stage.dragging, .viewer3d-stage.dragging .joint-dot { cursor: grabbing; } .viewer3d-tip { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; font: 500 12px/1 var(--mono); color: #f3eee8; background: rgba(20, 21, 23, 0.88); border: 1px solid #b8742c; border-radius: 5px; padding: 6px 8px; } .viewer3d-toggle { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; padding: 0; border-radius: 6px; border: 2px solid rgba(255, 255, 255, 0.75); background: rgba(20, 21, 23, 0.35); cursor: pointer; display: grid; place-items: center; } .viewer3d-toggle::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid #f29b38; background: #1d1e20; opacity: 0; } .viewer3d-toggle[aria-pressed="true"]::after { opacity: 1; } .viewer3d-toggle:hover { border-color: #ffffff; } /* Expand button (top right, mirrors the dots toggle) */ .viewer-expand { position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px; padding: 0; border-radius: 6px; border: 2px solid rgba(255, 255, 255, 0.75); background: rgba(20, 21, 23, 0.35); color: #fff; cursor: pointer; display: grid; place-items: center; } .viewer-expand:hover { border-color: #ffffff; background: rgba(20, 21, 23, 0.6); } .viewer-expand svg, .panel-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } /* Expanded view: the detail panel fills the window, 3D on the left, details on the right */ .detail.expanded { position: fixed; inset: 0; z-index: 100; width: auto; box-shadow: none; border-left: 0; display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: minmax(0, 1fr) auto; } .detail.expanded .detail-stage { grid-column: 1; grid-row: 1 / span 2; position: relative; min-width: 0; min-height: 0; padding: 16px; display: flex; background: var(--bg); } .detail.expanded .detail-stage .viewer { flex: 1; min-width: 0; display: flex; flex-direction: column; } .detail.expanded .detail-stage .viewer3d { flex: 1; min-height: 0; } .detail.expanded .detail-stage .viewer3d-stage { height: 100%; aspect-ratio: auto; } .detail.expanded #detail-body { grid-column: 2; grid-row: 1; border-left: 1px solid var(--line); } .detail.expanded #detail-foot { grid-column: 2; grid-row: 2; border-left: 1px solid var(--line); } .detail.expanded.panel-hidden { grid-template-columns: minmax(0, 1fr) 0; } .detail.expanded.panel-hidden #detail-body, .detail.expanded.panel-hidden #detail-foot { display: none; } .panel-toggle { display: none; } .detail.expanded .panel-toggle { display: grid; place-items: center; position: absolute; top: 50%; right: 0; transform: translateY(-50%); z-index: 3; width: 22px; height: 56px; padding: 0; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--raised); color: var(--muted); cursor: pointer; } .detail.expanded .panel-toggle:hover { color: var(--ink); } :root.viewer-open, :root.viewer-open body { overflow: hidden; } @media (max-width: 900px) { .detail.expanded { grid-template-columns: minmax(0, 1fr); grid-template-rows: 55vh minmax(0, 1fr) auto; } .detail.expanded .detail-stage { grid-row: 1; padding: 8px; } .detail.expanded #detail-body { grid-column: 1; grid-row: 2; border-left: 0; border-top: 1px solid var(--line); } .detail.expanded #detail-foot { grid-column: 1; grid-row: 3; border-left: 0; } .detail.expanded.panel-hidden { grid-template-rows: minmax(0, 1fr) 0 0; } .detail.expanded .panel-toggle { top: auto; bottom: 0; right: 50%; transform: translateX(50%) rotate(90deg); } } .viewer3d-status { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; font-size: 13px; color: var(--muted); pointer-events: none; } .joints { display: grid; gap: 8px; } .joint { display: grid; gap: 2px; } .joint-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 12.5px; } .joint-head code { font: 12px/1.3 var(--mono); overflow-wrap: anywhere; } .joint-head output { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; } .joint input[type="range"] { width: 100%; accent-color: var(--accent); margin: 2px 0; } .joint-actions { display: flex; gap: 6px; } .facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; align-items: baseline; } .facts dt { color: var(--muted); } .facts dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; } .section-title { margin: 0 0 8px; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); } .note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; } .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border: 1px solid var(--line); background: var(--raised); border-radius: 8px; padding: 0 12px; cursor: pointer; text-decoration: none; text-align: center; font-weight: 500; white-space: nowrap; line-height: 1.2; } .btn:hover { border-color: var(--faint); } .btn.small { min-height: 28px; font-size: 12.5px; padding: 0 10px; } .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn-row { display: flex; gap: 8px; flex-wrap: wrap; } .btn-row .btn { flex: 1 1 auto; } /* Action bar fixed under the details, like NVIDIA SimReady Central: Copy URL + Download (zip) with a menu */ .detail-foot { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--panel); position: relative; } .detail-foot:empty { display: none; } .detail-foot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; } .foot-copy { gap: 6px; min-height: 40px; } .dl { flex: 1; display: flex; min-width: 0; } .dl .dl-main { flex: 1; min-width: 0; overflow: hidden; min-height: 40px; gap: 8px; border-radius: 8px 0 0 8px; font-weight: 600; } .dl .dl-main:disabled { opacity: 0.85; cursor: progress; } .dl-label, .dl-size { overflow: hidden; text-overflow: ellipsis; } .dl-size { font: 500 12px/1 var(--mono); opacity: 0.75; } @media (max-width: 420px) { .dl-size { display: none; } } .dl .dl-caret { min-height: 40px; padding: 0 10px; border-radius: 0 8px 8px 0; border-left: 1px solid rgba(0, 0, 0, 0.18); } .dl-caret svg { transform: rotate(90deg); } .dl-menu { position: absolute; right: 16px; bottom: calc(100% - 4px); min-width: 210px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); z-index: 5; } .dl-menu[hidden] { display: none; } .dl-item { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; border-radius: 6px; padding: 8px 10px; cursor: pointer; text-align: left; text-decoration: none; font-size: 13px; } .dl-item:hover { background: var(--accent-soft); } .more { border-radius: var(--radius); padding: 12px; background: var(--accent-soft); font-size: 13px; display: grid; gap: 8px; } .more p { margin: 0; } /* Phone and narrow tablet: one column, filters and details as overlays */ @media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } .filters-toggle { display: inline-flex; } .top-links a:not(.cta) { display: none; } .side { position: fixed; inset: 0 auto 0 0; width: min(320px, 88vw); z-index: 20; transform: translateX(-100%); transition: transform 0.2s; box-shadow: 0 0 40px rgba(0,0,0,0.4); padding-top: calc(14px + env(safe-area-inset-top, 0px)); } .side.open { transform: none; } .detail { position: fixed; inset: 0; width: 100%; z-index: 30; } .detail-scroll { padding-top: calc(16px + env(safe-area-inset-top, 0px)); } .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } } @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }