.models-gallery {
    display:  grid;
    grid-template-columns: 60% 1fr;
    gap: 1rem;
    align-items: start;
  }
  
  .model-main-card {
    background: var(--card-bg);
    border:  1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
  }
  
  .model-viewer-wrap {
    margin: 0 auto 0.75rem;
    max-width: 100%;
  }
  
  .models-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    overflow-y: auto;
    padding: 0.5rem;
    place-items: center;
  }
  
  .model-sidebar-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height:  150px;
    padding: 0.5rem;
    background: #070915;
    border: 1px solid var(--border);
    border-radius: 4px;
    opacity: 0.7;
    cursor: pointer;
    transition: 0.15s ease-out;
  }
  
  .model-sidebar-thumb:hover,
  .model-sidebar-thumb.active {
    opacity: 1;
    border-color: var(--accent-soft);
    transform: translateY(-1px);
  }
  
  .model-sidebar-thumb span {
    margin-top: 0.25rem;
    font-size: 0.5rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .model-thumb-frame {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100px;
  }
  
  .model-thumb-frame img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 3px;
    object-fit: contain;
    image-rendering: pixelated;
  }
  
  .models-search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 450px;
    margin: 0 auto 1rem;
  }
  
  .models-search-bar {
    flex: 1;
    height:  36px;
    padding:  0 0.6rem;
    background: #090d1b;
    border: 1px solid var(--border);
    border-radius: 6px;
    color:  var(--text-main);
    font-family: "Pixelify Sans", system-ui, sans-serif;
    font-size: 0.8rem;
  }
  
  .models-search-bar::placeholder {
    color: var(--text-muted);
  }
  
  .models-search-bar:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color:  var(--accent-soft);
  }
  
  @media (max-width: 768px) {
    .models-gallery {
      grid-template-columns: 1fr;
    }
  
    .models-sidebar {
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      max-height: none;
      overflow-y: visible;
    }
  }