*,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --bg-primary: #000000;
      --bg-secondary: #0a0a0a;
      --bg-card: #111111;
      --bg-card-hover: #1a1a1a;
      --border-color: #222222;
      --border-hover: #444444;
      --text-primary: #f0f0f0;
      --text-secondary: #999999;
      --text-muted: #666666;
      --accent: #00c2de;
      --accent-dim: rgba(0, 194, 222, 0.1);
      --accent-glow: rgba(0, 194, 222, 0.15);
      --radius-sm: 4px;
      --radius-md: 15px;
      --radius-lg: 8px;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg-primary);
      color: var(--text-primary);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      position: relative;
      overflow-x: hidden;
    }

    .navbar,
    .page-layout {
      position: relative;
      z-index: 1;
    }

    /* ── Navbar ── */
    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 48px;
      height: 64px;
      border-bottom: 1px solid var(--border-color);
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .navbar-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.5px;
      color: var(--text-primary);
      text-decoration: none;
    }

    .navbar-actions {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .nav-link {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      transition: color 0.2s ease;
    }

    .nav-link:hover {
      color: var(--text-primary);
    }

    .nav-link svg {
      width: 18px;
      height: 18px;
    }

    .avatar-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1.5px solid var(--border-color);
      background: var(--bg-card);
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: border-color 0.2s ease, color 0.2s ease;
    }

    .avatar-btn:hover {
      border-color: var(--border-hover);
      color: var(--text-primary);
    }

    .avatar-btn svg {
      width: 20px;
      height: 20px;
    }

    /* ── Page Layout ── */
    .page-layout {
      display: flex;
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 0 24px;
      box-sizing: border-box;
      height: calc(100vh - 64px);
      overflow: hidden;
    }

    .page-layout.landing-mode .toc-sidebar {
      display: none;
    }

    .page-layout.detail-mode .sidebar {
      display: none;
    }

    /* ── Sidebar ── */
    .sidebar {
      width: 320px;
      min-width: 320px;
      border-right: 1px solid var(--border-color);
      padding: 24px 0;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
    }

    .sidebar-header {
      padding: 0 20px;
      margin-bottom: 20px;
    }

    .sidebar-title {
      font-family: 'Montserrat', Arial, sans-serif;
      font-size: 15px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .sidebar-subtitle {
      font-size: 12px;
      color: var(--text-muted);
    }

    /* ── Vertical Nav ── */
    .vertical-nav {
      padding: 0 20px;
      margin-bottom: 16px;
    }

    .vertical-nav-list {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .vertical-nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-radius: 8px;
      border: none;
      background: transparent;
      color: var(--text-secondary);
      font-family: inherit;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.18s ease;
      text-align: left;
      width: 100%;
    }

    .vertical-nav-item:hover {
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-primary);
    }

    .vertical-nav-item.active {
      background: rgba(0, 194, 222, 0.08);
      color: var(--text-primary);
    }

    .vertical-nav-icon {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.04);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.18s ease;
    }

    .vertical-nav-item.active .vertical-nav-icon {
      background: rgba(0, 194, 222, 0.12);
    }

    .vertical-nav-icon svg {
      width: 14px;
      height: 14px;
    }

    .vertical-nav-item.active .vertical-nav-icon svg {
      color: var(--accent);
    }

    .vertical-nav-count {
      margin-left: auto;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.04);
      padding: 2px 8px;
      border-radius: 999px;
      min-width: 24px;
      text-align: center;
    }

    .vertical-nav-item.active .vertical-nav-count {
      background: rgba(0, 194, 222, 0.12);
      color: var(--accent);
    }

    /* ── Search Bar ── */
    .search-bar-wrapper {
      padding: 0 20px 16px;
      width: 100%;
      transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .search-bar-wrapper:focus-within {
      width: 100%;
    }

    .search-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 18px;
      border-radius: 10px;
      border: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.02);
      transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    }

    .search-bar:focus-within {
      border-color: rgba(0, 194, 222, 0.4);
      background: rgba(255, 255, 255, 0.04);
      box-shadow: 0 0 20px rgba(0, 194, 222, 0.1);
    }

    .search-bar>svg {
      width: 16px;
      height: 16px;
      color: var(--text-muted);
      flex-shrink: 0;
    }

    .search-bar:focus-within>svg {
      color: var(--accent);
    }

    .search-bar input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      color: var(--text-primary);
      font-family: inherit;
      font-size: 13px;
      font-weight: 400;
    }

    .search-bar input::placeholder {
      color: var(--text-muted);
    }

    .search-info-btn {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 1.5px solid var(--text-muted);
      background: transparent;
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      flex-shrink: 0;
      transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
      padding: 0;
      line-height: 1;
    }

    .search-info-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(0, 194, 222, 0.08);
    }

    .search-info-tooltip {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 220px;
      padding: 10px 12px;
      border-radius: 8px;
      background: #1e1e24;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-2px);
      transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
      pointer-events: none;
      z-index: 100;
    }

    .search-info-btn:hover .search-info-tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .search-info-tooltip p {
      margin: 0;
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    /* ── Filter Tags ── */
    .filter-section {
      padding: 0 20px;
      margin-bottom: 20px;
    }

    .filter-label {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 10px;
    }

    .filter-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .filter-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      border: 1.5px solid transparent;
      user-select: none;
      position: relative;
    }

    .filter-tag .tag-check {
      width: 0;
      opacity: 0;
      overflow: hidden;
      transform: scale(0.6);
      font-size: 10px;
      font-weight: 700;
      transition: all 0.2s ease;
    }

    .filter-tag .tag-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .architecture-filter-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: flex-start;
    }

    .architecture-filter-tag.filter-tag {
      width: auto;
      justify-content: flex-start;
      padding: 10px 14px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(255, 255, 255, 0.02);
      color: var(--text-secondary);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
      min-height: 38px;
      flex: 0 0 auto;
    }

    .architecture-filter-tag.filter-tag .tag-dot {
      display: none;
    }

    .architecture-filter-tag.filter-tag .tag-check {
      display: none;
      margin-left: 6px;
      font-size: 11px;
      opacity: 0;
      transform: scale(0.7);
      transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .architecture-filter-tag.filter-tag.active .tag-check {
      display: inline;
      opacity: 1;
      transform: scale(1);
    }

    .architecture-filter-name {
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .architecture-filter-tag.filter-tag:hover {
      background: rgba(255, 255, 255, 0.035);
      border-color: rgba(255, 255, 255, 0.12);
      color: var(--text-primary);
      transform: translateY(-1px);
      filter: none;
    }

    .architecture-filter-tag.filter-tag.active {
      background: rgba(255, 255, 255, 0.075);
      border-color: rgba(255, 255, 255, 0.18);
      color: var(--text-primary);
      transform: none;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    /* Device filter items - subtle colored styling */
    .device-filter-item.filter-tag {
      background: rgba(255, 255, 255, 0.02);
      border-color: rgba(255, 255, 255, 0.06);
      filter: none;
    }

    .device-filter-item.filter-tag:hover {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.1);
    }

    .device-filter-item.filter-tag .tag-check,
    .device-filter-item.filter-tag .tag-dot {
      display: none;
    }

    /* Strix Halo - subtle cyan accent */
    .device-filter-item.filter-tag[data-tag="strix-halo"] .device-filter-icon {
      color: var(--color-strix-halo);
    }

    .device-filter-item.filter-tag[data-tag="strix-halo"].active {
      background: rgba(6, 182, 212, 0.06);
      border-color: rgba(6, 182, 212, 0.15);
    }

    .device-filter-item.filter-tag[data-tag="strix-halo"].active .device-filter-check {
      background: rgba(6, 182, 212, 0.12);
      border-color: rgba(6, 182, 212, 0.25);
      color: var(--color-strix-halo);
    }

    /* Strix Point - subtle green accent */
    .device-filter-item.filter-tag[data-tag="strix-point"] .device-filter-icon {
      color: var(--color-strix-point);
    }

    .device-filter-item.filter-tag[data-tag="strix-point"].active {
      background: rgba(16, 185, 129, 0.06);
      border-color: rgba(16, 185, 129, 0.15);
    }

    .device-filter-item.filter-tag[data-tag="strix-point"].active .device-filter-check {
      background: rgba(16, 185, 129, 0.12);
      border-color: rgba(16, 185, 129, 0.25);
      color: var(--color-strix-point);
    }

    /* R8000 - subtle amber accent */
    .device-filter-item.filter-tag[data-tag="r8000"] .device-filter-icon {
      color: var(--color-r8000);
    }

    .device-filter-item.filter-tag[data-tag="r8000"].active {
      background: rgba(245, 158, 11, 0.06);
      border-color: rgba(245, 158, 11, 0.15);
    }

    .device-filter-item.filter-tag[data-tag="r8000"].active .device-filter-check {
      background: rgba(245, 158, 11, 0.12);
      border-color: rgba(245, 158, 11, 0.25);
      color: var(--color-r8000);
    }

    .filter-tag.active {
      transform: translateY(-1px);
    }

    .filter-tag.active .tag-check {
      width: 12px;
      opacity: 1;
      transform: scale(1);
    }

    .filter-tag:hover {
      filter: brightness(1.2);
    }

    .filter-divider {
      height: 1px;
      background: var(--border-color);
      margin: 0 20px 16px;
    }

    .sidebar-note {
      padding: 0 20px;
    }

    .architecture-filter-panel {
      display: contents;
      /* No visual box - children flow directly */
    }

    .sidebar-note-card {
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.02);
      padding: 18px 16px;
    }

    .sidebar-models {
      padding: 0 20px;
      margin-top: 18px;
    }

    .device-filter-panel {
      display: contents;
      /* No visual box - children flow directly */
    }

    .device-filter-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .device-filter-item {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(255, 255, 255, 0.02);
      color: var(--text-primary);
      cursor: pointer;
      transition: all 0.18s ease;
      user-select: none;
    }

    .device-filter-item:hover {
      border-color: rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.045);
    }

    .device-filter-item-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex: 1;
    }

    .device-filter-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      border: none;
      background: rgba(255, 255, 255, 0.04);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      flex-shrink: 0;
      transition: all 0.18s ease;
    }

    .device-filter-icon svg {
      width: 20px;
      height: 20px;
    }

    .device-filter-copy {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .device-filter-name {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .device-filter-meta {
      font-size: 10px;
      color: var(--text-muted);
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      line-clamp: 1;
      -webkit-box-orient: vertical;
      transition: all 0.25s ease;
      cursor: pointer;
    }

    .device-filter-item.expanded .device-filter-meta {
      -webkit-line-clamp: unset;
      line-clamp: unset;
      white-space: normal;
      overflow: visible;
    }

    .device-filter-check {
      width: 20px;
      height: 20px;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: transparent;
      color: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.18s ease;
    }

    .device-filter-check svg {
      width: 12px;
      height: 12px;
    }

    .device-filter-item.filter-tag:hover {
      filter: none;
    }

    .device-filter-item.filter-tag.active {
      transform: none;
    }

    .device-filter-item.filter-tag.active .device-filter-name {
      color: #ffffff;
    }

    .device-filter-item.filter-tag.active .device-filter-meta {
      color: rgba(240, 240, 240, 0.78);
    }

    .sidebar-note-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .sidebar-note-text {
      font-size: 12px;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    /* ── Application Cards in Sidebar ── */
    .app-list {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 0 12px;
      flex: 1;
    }

    .app-card {
      border-radius: 10px;
      transition: all 0.2s ease;
      overflow: hidden;
    }

    .app-card.hidden {
      display: none;
    }

    .app-card-btn {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 12px 14px;
      background: transparent;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: left;
    }

    .app-card-btn:hover {
      background: rgba(255, 255, 255, 0.03);
    }

    .app-card.expanded>.app-card-btn {
      background: rgba(255, 255, 255, 0.04);
    }

    .app-card-left {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .app-card-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-secondary);
    }

    .app-card-icon svg {
      width: 16px;
      height: 16px;
    }

    .app-card-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .app-card-right {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    /* Category badge shown on the app card */
    .cat-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .cat-badge.vertical-badge {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text-muted);
      font-weight: 600;
    }

    .app-card-chevron {
      width: 16px;
      height: 16px;
      color: var(--text-muted);
      transition: transform 0.25s ease;
      flex-shrink: 0;
    }

    .app-card.expanded .app-card-chevron {
      transform: rotate(90deg);
    }

    /* ── Model Sub-list ── */
    .model-list {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }

    .app-card.expanded .model-list {
      max-height: 500px;
    }

    .model-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 14px 9px 56px;
      cursor: pointer;
      transition: all 0.15s ease;
      border-radius: 6px;
      margin: 1px 4px;
    }

    .model-item:hover {
      background: rgba(0, 194, 222, 0.06);
    }

    .model-item.active {
      background: rgba(0, 194, 222, 0.1);
    }

    .model-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--text-muted);
      flex-shrink: 0;
    }

    .model-item.active .model-dot {
      background: var(--accent);
      box-shadow: 0 0 6px var(--accent-glow);
    }

    .model-name {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-secondary);
    }

    .model-item.active .model-name {
      color: var(--text-primary);
    }

    .model-item:hover .model-name {
      color: var(--text-primary);
    }

    /* ── Scrollbar ── */
    * {
      scrollbar-width: thin;
      scrollbar-color: #000000 transparent;
    }

    *::-webkit-scrollbar {
      width: 5px;
    }

    *::-webkit-scrollbar-track {
      background: transparent;
    }

    *::-webkit-scrollbar-thumb {
      background: #333333;
      border-radius: 4px;
    }

    *::-webkit-scrollbar-thumb:hover {
      background: #555555;
    }

    /* ── Content Area ── */
    .content {
      flex: 1;
      padding: 0px 70px 80px;
      overflow-y: auto;
      scroll-behavior: smooth;
      position: relative;
      z-index: 1;
    }

    /* ── Landing View ── */
    .landing-view {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 80px;
    }

    .landing-icon {
      width: 64px;
      height: 64px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(0, 194, 222, 0.15), rgba(168, 85, 247, 0.15));
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 24px;
    }

    .landing-icon svg {
      width: 28px;
      height: 28px;
      color: var(--accent);
    }

    .landing-title {
      font-family: 'Montserrat', Arial, sans-serif;
      font-size: 24px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 8px;
      text-align: center;
    }

    .landing-desc {
      font-size: 14px;
      color: var(--text-secondary);
      text-align: center;
      max-width: 460px;
      line-height: 1.6;
      margin-bottom: 48px;
    }

    .landing-cards {
      display: grid;
      grid-template-columns: repeat(/*auto-fill*/ 3 , minmax(min(100%, 300px), 1fr));
      gap: 18px;
      width: 100%;
      max-width: 100%;
    }

    .landing-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      cursor: pointer;
      transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
      position: relative;
    }

    .landing-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--accent);
      opacity: 0;
      transition: opacity 0.2s ease;
      z-index: 2;
    }

    .landing-card:hover {
      border-color: var(--border-hover);
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    }

    .landing-card.selected {
      border-color: rgba(0, 194, 222, 0.45);
      box-shadow: 0 10px 28px rgba(0, 194, 222, 0.12);
    }

    .landing-card:hover::before {
      opacity: 1;
    }

    .landing-card.selected::before {
      opacity: 1;
    }

    .landing-card-media {
      position: relative;
      flex-shrink: 0;
    }

    .landing-card-new-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 3;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px 5px 8px;
      border-radius: 999px;
      font-size: 8px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #dcfce7;
      background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.34), rgba(16, 185, 129, 0.12)),
        rgba(0, 0, 0, 0.62);
      border: 1px solid rgba(34, 197, 94, 0.62);
      box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.48),
        0 0 18px rgba(34, 197, 94, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      pointer-events: none;
      line-height: 1.2;
      text-shadow: 0 1px 8px rgba(34, 197, 94, 0.38);
    }

    .landing-card-new-badge::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #22c55e;
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18), 0 0 10px rgba(34, 197, 94, 0.85);
      animation: newBadgePulse 1.8s ease-in-out infinite;
    }

    @keyframes newBadgePulse {
      0%, 100% {
        transform: scale(1);
        opacity: 1;
      }
      50% {
        transform: scale(0.72);
        opacity: 0.7;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .landing-card-new-badge::before {
        animation: none;
      }
    }

    .landing-card-img {
      width: 100%;
      aspect-ratio: 16 / 10;
      height: 150px;
      object-fit: cover;
      object-position: center;
      display: block;
      background: #0a0a0a;
      border-bottom: 1px solid var(--border-color);
      filter: brightness(0.85) saturate(1.05);
    }

    .landing-card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .landing-card-top .vertical-badge {
      flex-shrink: 0;
      margin-top: 2px;
    }

    .landing-card-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.04);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
    }

    .landing-card-icon svg {
      width: 18px;
      height: 18px;
    }

    .landing-card-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      align-items: center;
    }

    .landing-card-badges .cat-badge {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.4px;
      padding: 3px 8px;
      text-transform: uppercase;
    }

    .landing-card-name {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-primary);
      line-height: 1.3;
      margin: 0;
    }

    .landing-card-desc {
      font-size: 12.5px;
      color: var(--text-secondary);
      line-height: 1.55;
      margin: 0;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .landing-card-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
      font-size: 11px;
      color: var(--text-muted);
      padding-top: 6px;
      border-top: 1px dashed var(--border-color);
    }

    .landing-card-meta-item {
      line-height: 1.5;
    }

    .landing-card-meta-item strong {
      color: var(--text-secondary);
      font-weight: 600;
    }

    .landing-empty {
      width: 100%;
      max-width: 700px;
      border: 1px dashed var(--border-color);
      border-radius: var(--radius-md);
      padding: 24px;
      text-align: center;
      color: var(--text-secondary);
      background: rgba(255, 255, 255, 0.02);
    }

    /* ── Right Sidebar (TOC) - now on left ── */
    .toc-sidebar {
      width: 300px;
      min-width: 220px;
      border-right: 1px solid var(--border-color);
      padding: 32px 20px;
      overflow-x: visible;
      overflow-y: auto;
      position: relative;
      z-index: 5;
      transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease;
      order: -1;
    }

    .toc-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }


    .toc-label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 0;
    }

    .toc-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .toc-item {
      display: block;
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-muted);
      text-decoration: none;
      border-left: 2px solid transparent;
      cursor: pointer;
      transition: all 0.2s ease;
      line-height: 1.4;
    }

    .toc-item:hover {
      color: var(--text-secondary);
    }

    .toc-item.active {
      color: var(--text-primary);
      border-left-color: var(--text-primary);
    }

    .toc-sidebar.mode-models .toc-list {
      display: none;
    }

    .toc-sidebar.mode-toc .model-sidebar-view {
      display: none;
    }

    /* ── Device Selector ── */
    .device-selector {
      margin-bottom: 20px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border-color);
    }

    .device-selector-label {
      display: block;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    /* Custom Dropdown */
    .device-dropdown {
      position: relative;
    }

    .device-dropdown-trigger {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 13px 12px;
      font-size: 13px;
      font-weight: 500;
      font-family: inherit;
      color: var(--text-primary);
      background: var(--bg-secondary);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .device-dropdown-trigger:hover {
      border-color: rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.04);
    }

    .device-dropdown.open .device-dropdown-trigger {
      border-color: rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.06);
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
    }

    .device-dropdown-value {
      flex: 1;
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .device-dropdown-chevron {
      width: 14px;
      height: 14px;
      color: var(--text-muted);
      flex-shrink: 0;
      transition: transform 0.2s ease;
    }

    .device-dropdown.open .device-dropdown-chevron {
      transform: rotate(180deg);
      color: var(--accent);
    }

    .device-dropdown-menu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      padding: 6px;
      background: linear-gradient(180deg, rgba(20, 22, 26, 0.72) 0%, rgba(10, 12, 16, 0.78) 100%);
      border: 1px solid rgba(255, 255, 255, 0.10);
      border-radius: 12px;
      backdrop-filter: blur(18px) saturate(160%);
      -webkit-backdrop-filter: blur(18px) saturate(160%);
      overflow: hidden;
      z-index: 100;
      box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.55),
        0 4px 14px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-6px) scale(0.985);
      transform-origin: top center;
      transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.18s;
      pointer-events: none;
    }

    .device-dropdown-menu::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(120% 60% at 50% -20%, rgba(255, 255, 255, 0.04), transparent 60%),
        radial-gradient(80% 40% at 50% 110%, rgba(255, 255, 255, 0.02), transparent 60%);
      border-radius: inherit;
    }

    .device-dropdown.open .device-dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

    .device-dropdown-item {
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      border-radius: 8px;
      transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
      z-index: 1;
    }

    .device-dropdown-item + .device-dropdown-item {
      margin-top: 2px;
    }

    .device-dropdown-item + .device-dropdown-item::before {
      content: '';
      position: absolute;
      top: -1px;
      left: 10px;
      right: 10px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
      pointer-events: none;
    }

    .device-dropdown-item:hover {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-primary);
    }

    .device-dropdown-item.selected {
      background: linear-gradient(135deg, rgba(0, 194, 222, 0.18), rgba(0, 194, 222, 0.08));
      color: var(--accent);
      box-shadow: inset 0 0 0 1px rgba(0, 194, 222, 0.25);
    }

    .device-dropdown-item-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .device-dropdown-item-check {
      width: 14px;
      height: 14px;
      margin-left: auto;
      color: var(--accent);
      opacity: 0;
      flex-shrink: 0;
    }

    .device-dropdown-item.selected .device-dropdown-item-check {
      opacity: 1;
    }

    .model-sidebar-view {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .model-sidebar-empty {
      border: 1px dashed var(--border-color);
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.02);
      padding: 18px 16px;
    }

    .model-sidebar-empty strong {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 6px;
    }

    .model-sidebar-empty span {
      display: block;
      font-size: 12px;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    .model-sidebar-content {
      display: none;
      opacity: 0;
      transform: translateX(18px);
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .model-sidebar-content.visible {
      opacity: 1;
      transform: translateX(0);
    }

    .model-sidebar-kicker {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 10px;
    }

    .model-sidebar-app-name {
      font-size: 18px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .model-sidebar-app-desc {
      font-size: 13px;
      line-height: 1.6;
      color: var(--text-secondary);
      margin-bottom: 12px;
    }

    .model-sidebar-app-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 18px;
    }

    .model-sidebar-caption {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 10px;
    }

    .model-sidebar-model-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .model-sidebar-model {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 14px;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.02);
      color: var(--text-primary);
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: left;
    }

    .model-sidebar-model:hover {
      border-color: rgba(0, 194, 222, 0.35);
      background: rgba(0, 194, 222, 0.06);
      transform: translateX(4px);
    }

    .model-sidebar-model.active {
      border-color: rgba(0, 194, 222, 0.4);
      background: rgba(0, 194, 222, 0.1);
      box-shadow: 0 8px 22px rgba(0, 194, 222, 0.08);
    }

    .model-sidebar-model-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .model-sidebar-model-arrow {
      font-size: 14px;
      color: var(--accent);
      flex-shrink: 0;
    }

    /* ── Pipeline Header ── */
    .pipeline-header {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-left: 4px solid var(--text-primary);
      border-radius: var(--radius-md);
      padding: 28px 32px;
      margin-top: 40px;
      margin-bottom: 32px;
    }

    .pipeline-title-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px;
    }

    .pipeline-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 8px var(--accent-glow);
      flex-shrink: 0;
    }

    .pipeline-dot.neutral {
      background: var(--text-primary);
      box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    }

    .pipeline-title {
      font-family: 'Montserrat', Arial, sans-serif;
      font-size: 22px;
      font-weight: 700;
      color: var(--text-primary);
    }

    .pipeline-subtitle {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.5;
      padding-left: 22px;
    }

    /* ── Back button in content - removed, using navbar instead ── */
    .content-back {
      display: none;
    }

    /* ── Highlighted vertical badge (accent color) ── */
    .cat-badge.highlight-vertical {
      background: rgba(0, 194, 222, 0.2);
      color: var(--accent);
      border: 1px solid rgba(0, 194, 222, 0.35);
      box-shadow: 0 0 8px rgba(0, 194, 222, 0.12);
    }

    /* ── Section Block ── */
    .section-block {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      margin-bottom: 24px;
    }

    .section-block-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 24px;
      border-bottom: 1px solid var(--border-color);
      background: var(--bg-secondary);
      border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .section-block-id {
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 500;
      font-family: 'SF Mono', 'Fira Code', monospace;
    }

    .section-block-tag {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.5px;
      padding: 4px 12px;
      border-radius: 999px;
      text-transform: lowercase;
    }

    .tag-markdown {
      background: rgba(139, 92, 246, 0.15);
      color: #a78bfa;
    }

    .tag-output {
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
    }

    .section-block-body {
      padding: 28px 24px;
    }

    .section-block-body h3 {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 12px;
      color: var(--text-primary);
    }

    .section-block-body p {
      font-size: 14px;
      line-height: 1.7;
      color: var(--text-secondary);
      margin-bottom: 16px;
    }

    .section-block-body p:last-child {
      margin-bottom: 0;
    }

    /* ── Callout Box ── */
    .callout {
      border-left: 3px solid var(--border-hover);
      background: rgba(255, 255, 255, 0.03);
      padding: 14px 20px;
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      margin: 16px 0;
    }

    .callout strong {
      color: var(--text-primary);
      font-weight: 600;
    }

    .callout span {
      color: var(--text-secondary);
      font-size: 13px;
      line-height: 1.6;
    }

    /* ── Output Image Section (standardized for all models) ── */
    .output-image-section {
      margin-bottom: 24px;
    }

    .output-image-section h3 {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .output-image-section>p {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .output-image-container {
      width: 100%;
      border-radius: var(--radius-md);
      overflow: hidden;
      margin-bottom: 16px;
    }

    .output-image {
      width: 100%;
      height: auto;
      display: block;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
    }

    .output-image-placeholder {
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #0a0a0a;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: var(--text-muted);
    }

    .output-image-placeholder svg {
      width: 48px;
      height: 48px;
      margin-bottom: 8px;
      opacity: 0.4;
    }

    .output-image-placeholder p {
      font-size: 13px;
      color: var(--text-muted);
      margin: 0;
    }

    /* ── Sub Use Cases Section ── */
    .sub-usecases-section h3 {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .sub-usecases-section>p {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .sub-usecases-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .sub-usecase-card {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 16px 18px;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      transition: border-color 0.2s, background 0.2s;
    }

    .sub-usecase-card:hover {
      border-color: rgba(0, 194, 222, 0.25);
      background: rgba(0, 194, 222, 0.03);
    }

    .sub-usecase-icon {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      border-radius: 6px;
      background: rgba(0, 194, 222, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      margin-top: 2px;
    }

    .sub-usecase-icon svg {
      width: 14px;
      height: 14px;
    }

    .sub-usecase-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .sub-usecase-desc {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* ── Model Description Section ── */
    .model-desc-section h3 {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .model-desc-section>p {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .model-info-row {
      display: flex;
      gap: 16px;
      margin-bottom: 20px;
    }

    .model-info-item {
      flex: 1;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 16px 20px;
    }

    .model-info-label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .model-info-value {
      display: block;
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .arch-diagram-container {
      margin-bottom: 20px;
    }

    .arch-diagram-img {
      width: 100%;
      height: auto;
      display: block;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
    }

    .arch-diagram-placeholder {
      width: 100%;
      aspect-ratio: 2.5 / 1;
      background: #0a0a0a;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: var(--text-muted);
    }

    .arch-diagram-placeholder svg {
      width: 48px;
      height: 48px;
      margin-bottom: 8px;
      opacity: 0.4;
    }

    .arch-diagram-placeholder p {
      font-size: 13px;
      color: var(--text-muted);
      margin: 0;
    }

    .unique-points-heading {
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 10px;
    }

    .unique-points-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .unique-points-list li {
      position: relative;
      padding-left: 20px;
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .unique-points-list li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 7px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      opacity: 0.6;
    }

    /* ── Dataset Description Section ── */
    .dataset-desc-section h3 {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .dataset-desc-section>p {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .dataset-cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 12px;
    }

    .dataset-card {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 18px 20px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      transition: border-color 0.2s;
    }

    .dataset-card:hover {
      border-color: rgba(0, 194, 222, 0.25);
    }

    .dataset-card-icon {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(0, 194, 222, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      margin-top: 2px;
    }

    .dataset-card-icon svg {
      width: 16px;
      height: 16px;
    }

    .dataset-card-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .dataset-card-desc {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* ── Try-It CTA Banner (animated gradient border) ── */
    @keyframes cta-border-spin {
      0% {
        --cta-angle: 0deg;
      }

      100% {
        --cta-angle: 360deg;
      }
    }

    @property --cta-angle {
      syntax: '<angle>';
      initial-value: 0deg;
      inherits: false;
    }

    .try-cta-wrapper {
      position: relative;
      border-radius: var(--radius-md);
      padding: 2px;
      margin-top: 24px;
      background: conic-gradient(from var(--cta-angle),
          #00c2de,
          #a855f7,
          #ec4899,
          #f97316,
          #22c55e,
          #00c2de);
      animation: cta-border-spin 4s linear infinite;
    }

    .try-cta-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 24px 28px;
      background: var(--bg-card);
      border-radius: calc(var(--radius-md) - 2px);
    }

    .try-cta-content {
      flex: 1;
    }

    .try-cta-headline {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 6px;
    }

    .try-cta-headline .cta-highlight {
      color: var(--accent);
    }

    .try-cta-sub {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.5;
      margin: 0;
    }

    .try-cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 22px;
      background: var(--accent);
      color: #000;
      font-size: 13px;
      font-weight: 600;
      font-family: inherit;
      border: none;
      border-radius: var(--radius-sm);
      cursor: pointer;
      white-space: nowrap;
      transition: opacity 0.2s, transform 0.15s;
      flex-shrink: 0;
    }

    .try-cta-btn:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    .try-cta-btn svg {
      width: 16px;
      height: 16px;
    }

    /* ── Download Form Modal ── */
    .download-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 10000;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .download-modal {
      position: relative;
      background: #111;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      width: 100%;
      max-width: 560px;
      max-height: 90vh;
      overflow-y: auto;
      padding: 36px 32px 28px;
    }

    .download-modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      padding: 4px;
      border-radius: 6px;
      transition: color 0.2s, background 0.2s;
    }

    .download-modal-close:hover {
      color: var(--text-primary);
      background: rgba(255, 255, 255, 0.06);
    }

    .download-modal-close svg {
      width: 20px;
      height: 20px;
    }

    .download-modal-header {
      text-align: center;
      margin-bottom: 28px;
    }

    .download-modal-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: rgba(0, 194, 222, 0.1);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      margin-bottom: 16px;
    }

    .download-modal-icon svg {
      width: 22px;
      height: 22px;
    }

    .download-modal-header h2 {
      font-size: 20px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 6px;
    }

    .download-modal-header p {
      font-size: 14px;
      color: var(--text-secondary);
    }

    .download-modal-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .download-form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .download-form-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .download-form-field label {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
    }

    .download-form-field label .required {
      color: #e74c3c;
    }

    .download-form-field input,
    .download-form-field select,
    .download-form-field textarea {
      background: #0a0a0a;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      font-size: 14px;
      font-family: inherit;
      color: var(--text-primary);
      transition: border-color 0.2s;
      width: 100%;
    }

    .download-form-field input:focus,
    .download-form-field select:focus,
    .download-form-field textarea:focus {
      outline: none;
      border-color: var(--accent);
    }

    .download-form-field input::placeholder,
    .download-form-field textarea::placeholder {
      color: var(--text-muted);
    }

    .download-form-field select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 36px;
      cursor: pointer;
    }

    .download-form-field select option {
      background: #111;
      color: var(--text-primary);
    }

    .download-form-other-input {
      margin-top: 8px;
    }

    .download-form-field textarea {
      resize: vertical;
      min-height: 72px;
    }

    .download-form-submit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 12px 24px;
      margin-top: 4px;
      background: var(--accent);
      color: #000;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      border: none;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: opacity 0.2s;
    }

    .download-form-submit:hover {
      opacity: 0.9;
    }

    .download-form-submit:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .download-form-submit svg {
      width: 18px;
      height: 18px;
    }

    .download-form-declaration {
      margin-top: 4px;
    }

    .download-declaration-label {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.5;
      cursor: pointer;
    }

    .download-declaration-label input[type="checkbox"] {
      margin-top: 3px;
      accent-color: var(--accent);
      flex-shrink: 0;
      cursor: pointer;
    }

    .download-declaration-label a {
      color: var(--accent);
      text-decoration: none;
    }

    .download-declaration-label a:hover {
      text-decoration: underline;
    }

    /* ── Metric Cards (standardized benchmarks) ── */
    .metric-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 32px;
    }

    .stat-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 16px 20px;
    }

    .stat-card-label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .stat-card-value {
      font-size: 28px;
      font-weight: 700;
      font-family: 'Montserrat', Arial, sans-serif;
      color: var(--text-primary);
    }

    .stat-card-value.accent {
      color: var(--accent);
    }

    /* ── Metric Cards Row ── */
    .metric-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 20px;
    }

    .metric-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 20px;
    }

    .metric-card-label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .metric-card-value {
      font-size: 32px;
      font-weight: 700;
      font-family: 'Montserrat', Arial, sans-serif;
      color: var(--accent);
    }

    .metric-card-unit {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-muted);
    }

    .metric-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }

    .metric-card-header .metric-card-label {
      margin-bottom: 0;
    }

    .metric-info-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 1.5px solid var(--text-muted);
      background: transparent;
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      flex-shrink: 0;
      padding: 0;
      line-height: 1;
      transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    }

    .metric-info-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(0, 194, 222, 0.08);
    }

    .metric-info-tooltip {
      position: absolute;
      bottom: calc(100% + 8px);
      right: -8px;
      width: 200px;
      padding: 8px 10px;
      border-radius: 6px;
      background: #1e1e24;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
      opacity: 0;
      visibility: hidden;
      transform: translateY(2px);
      transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
      pointer-events: none;
      z-index: 100;
    }

    .metric-info-btn:hover .metric-info-tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .metric-info-tooltip p {
      margin: 0;
      font-size: 11px;
      font-weight: 400;
      color: var(--text-secondary);
      line-height: 1.45;
      text-transform: none;
      letter-spacing: 0;
    }

    /* ── Hardware Architecture Cards ── */
    .hw-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin: 24px 0;
    }

    .hw-card {
      background: var(--bg-primary);
      border: 1px solid rgba(255, 255, 255, 0.11);
      border-radius: var(--radius-md);
      padding: 24px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .hw-card.highlighted {
      border-color: rgba(0, 194, 222, 0.45);
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.28),
        0 0 32px rgba(0, 194, 222, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .hw-card.disabled {
      opacity: 0.35;
      pointer-events: none;
      filter: grayscale(0.5);
    }

    .hw-card-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }

    .hw-card-icon {
      width: 40px;
      height: 40px;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .hw-card-icon.cpu {
      background: rgba(0, 194, 222, 0.1);
      color: var(--accent);
    }

    .hw-card-icon.igpu {
      background: rgba(0, 194, 222, 0.1);
      color: var(--accent);
    }

    .hw-card-icon.npu {
      background: rgba(168, 85, 247, 0.1);
      color: #a855f7;
    }

    .hw-card-icon svg {
      width: 20px;
      height: 20px;
    }

    .hw-card-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .hw-card-body {
      font-size: 13px;
      line-height: 1.7;
      color: var(--text-secondary);
      margin-bottom: 16px;
    }

    .hw-card-specs {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .hw-card-specs li {
      font-size: 13px;
      color: var(--text-secondary);
      padding: 4px 0;
      padding-left: 16px;
      position: relative;
    }

    .hw-card-specs li::before {
      content: '\2022';
      position: absolute;
      left: 0;
      color: var(--text-muted);
    }

    /* ── Engine Selector Prompt ── */
    .engine-select-prompt {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 14px 18px;
      margin-bottom: 20px;
      background: rgba(0, 194, 222, 0.05);
      border: 1px solid rgba(0, 194, 222, 0.12);
      border-radius: var(--radius-md);
      font-size: 13px;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    .engine-select-prompt svg {
      width: 18px;
      height: 18px;
      color: var(--accent);
      flex-shrink: 0;
      margin-top: 2px;
    }

    .engine-select-prompt strong {
      color: var(--text-primary);
    }

    /* Selectable HW card (engine option, not currently selected) */
    .hw-card.selectable {
      cursor: pointer;
      opacity: 0.65;
      border: 1px dashed rgba(255, 255, 255, 0.16);
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    }

    .hw-card.selectable:hover {
      opacity: 1;
      border-color: rgba(0, 194, 222, 0.38);
      border-style: solid;
      background: var(--bg-primary);
      transform: translateY(-2px);
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.16),
        0 12px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    /* ── Backend Tabs ── */
    .backend-tabs {
      display: flex;
      gap: 4px;
      padding: 4px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 10px;
      margin-bottom: 24px;
    }

    .backend-tab {
      flex: 1;
      padding: 10px 16px;
      font-size: 13px;
      font-weight: 500;
      font-family: inherit;
      color: var(--text-secondary);
      background: transparent;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .backend-tab:hover {
      color: var(--text-primary);
      background: rgba(255, 255, 255, 0.06);
    }

    .backend-tab.active {
      background: rgba(0, 194, 222, 0.12);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    .backend-tab-panel {
      display: none;
    }

    .backend-tab-panel.active {
      display: block;
    }

    /* ── Backend Select (HW Check section) ── */
    .backend-select {
      margin: 18px 0 14px;
    }

    .backend-select-label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .backend-select .backend-tabs {
      margin-bottom: 0;
    }

    /* ── Engine Info Grid (side-by-side iGPU + NPU) ── */
    .engine-info-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin: 20px 0 8px;
    }

    .engine-info-card {
      background: var(--bg-primary);
      border: 1px solid rgba(255, 255, 255, 0.11);
      border-radius: var(--radius-md);
      padding: 18px 20px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .engine-info-card:hover {
      border-color: rgba(0, 194, 222, 0.32);
      background: var(--bg-primary);
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.12),
        0 10px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .engine-info-card-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--accent);
      margin: 0;
    }

    .engine-info-card-desc {
      font-size: 12.5px;
      color: var(--text-secondary);
      line-height: 1.55;
      margin: 0;
    }

    .engine-info-features {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 0;
      margin: 4px 0 0;
    }

    .engine-info-features li {
      font-size: 12px;
      color: var(--text-secondary);
      padding-left: 14px;
      position: relative;
      line-height: 1.5;
    }

    .engine-info-features li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 7px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
      opacity: 0.5;
    }

    .engine-info-features li strong {
      color: var(--text-primary);
      font-weight: 600;
    }

    @media (max-width: 900px) {
      .engine-info-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ── Advantage Callout ── */
    .advantage-callout {
      border-left: 4px solid var(--accent);
      background: rgba(0, 194, 222, 0.04);
      border-radius: 0 var(--radius-md) var(--radius-md) 0;
      padding: 24px 28px;
      margin-top: 24px;
    }

    .advantage-callout h4 {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 10px;
    }

    .advantage-callout p {
      font-size: 13px;
      line-height: 1.7;
      color: var(--text-secondary);
      margin: 0;
    }

    /* ── Features Box ── */
    .features-box {
      border: 1px solid #14b8a6;
      border-radius: var(--radius-md);
      padding: 20px 24px;
      margin: 20px 0;
    }

    .features-box h4 {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 12px;
    }

    .features-box ul {
      list-style: none;
    }

    .features-box li {
      font-size: 13px;
      color: var(--text-secondary);
      padding: 6px 0;
      position: relative;
      padding-left: 16px;
    }

    .features-box li strong {
      color: var(--text-primary);
    }

    .features-box li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 13px;
      width: 4px;
      height: 4px;
      background-color: var(--accent);
      border-radius: 50%;
    }

    /* ── Numbered Steps List ── */
    .steps-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .step-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .step-number {
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      background-color: rgba(20, 184, 166, 0.15);
      color: #0d9488;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      margin-top: 2px;
    }

    .step-content {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .step-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .step-desc {
      font-size: 13px;
      color: var(--text-secondary);
      margin: 0;
      line-height: 1.5;
    }

    /* ── Benefits Grid ── */
    .benefits-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin: 20px 0;
    }

    .benefit-card {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-color);
      border-left: 3px solid var(--accent);
      border-radius: var(--radius-sm);
      padding: 16px 20px;
    }

    .benefit-card h4 {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .benefit-card h4 svg {
      width: 14px;
      height: 14px;
    }

    .benefit-card.efficiency {
      border-left-color: #f97316;
    }

    .benefit-card.efficiency h4 svg {
      color: #f97316;
    }

    .benefit-card.optimization {
      border-left-color: #3b82f6;
    }

    .benefit-card.optimization h4 svg {
      color: #3b82f6;
    }

    .benefit-card.consistency {
      border-left-color: #8b5cf6;
    }

    .benefit-card.consistency h4 svg {
      color: #8b5cf6;
    }

    .benefit-card.cost {
      border-left-color: #eab308;
    }

    .benefit-card.cost h4 svg {
      color: #eab308;
    }

    .benefit-card p {
      font-size: 12px !important;
      color: var(--text-secondary);
      margin: 0 !important;
      line-height: 1.5 !important;
    }

    /* ── Try hardware / Cloud — single card, tab strip (mockup-style) ── */
    .hw-try-root {
      margin: 24px 0;
      width: 100%;
    }

    .hw-try-card {
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.11);
      border-radius: 16px;
      overflow: hidden;
      background: var(--bg-primary);
      box-sizing: border-box;
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.07),
        0 14px 44px rgba(0, 0, 0, 0.4);
    }

    .hw-try-tabs {
      display: flex;
      flex-direction: row;
      width: 100%;
      background: rgba(255, 255, 255, 0.04);
      border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .hw-try-tab {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 12px 16px;
      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: var(--text-muted);
      background: transparent;
      border: none;
      border-right: 1px solid rgba(255, 255, 255, 0.07);
      cursor: pointer;
      transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    }

    .hw-try-tab:last-child {
      border-right: none;
    }

    .hw-try-tab:hover:not(.active) {
      color: var(--text-secondary);
      background: rgba(255, 255, 255, 0.03);
    }

    .hw-try-tab.active {
      color: var(--text-primary);
      background: var(--bg-primary);
    }

    .hw-try-card-body {
      padding: clamp(18px, 2.6vw, 26px);
      box-sizing: border-box;
    }

    .hw-try-panel {
      display: none;
      width: 100%;
      box-sizing: border-box;
    }

    .hw-try-panel.active {
      display: block;
    }

    .hw-try-lede {
      font-size: 13.5px;
      line-height: 1.65;
      color: var(--text-secondary);
      margin: 0 0 18px;
      max-width: 52rem;
    }

    .hw-try-muted {
      font-size: 13px;
      line-height: 1.6;
      color: var(--text-muted);
      margin: 0 0 18px;
      max-width: 48rem;
    }

    .hw-try-muted strong {
      color: var(--text-secondary);
      font-weight: 600;
    }

    .hw-cloud-status {
      margin-bottom: 14px;
    }

    .hw-cloud-badge {
      display: inline-flex;
      align-items: center;
      padding: 5px 12px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.82);
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 999px;
    }

    /* Terminal-style command stack */
    .hw-try-panel .hw-check-commands {
      margin-top: 22px;
      padding-top: 0;
      border-top: none;
    }

    .hw-terminal {
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: #000000;
      box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
    }

    .hw-terminal-chrome {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 16px;
      background: #000000;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hw-terminal-traffic {
      display: flex;
      gap: 7px;
      flex-shrink: 0;
    }

    .hw-terminal-traffic i {
      width: 11px;
      height: 11px;
      border-radius: 50%;
      display: block;
      box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.35);
    }

    .hw-terminal-traffic i:nth-child(1) {
      background: #ff5f56;
    }

    .hw-terminal-traffic i:nth-child(2) {
      background: #ffbd2e;
    }

    .hw-terminal-traffic i:nth-child(3) {
      background: #27c93f;
    }

    .hw-terminal-title {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.45px;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .hw-terminal-body {
      padding: 6px 0;
      background: #000000;
    }

    .hw-check-command-block.hw-terminal-line {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 16px;
      margin: 0;
      border: none;
      border-radius: 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      background: transparent;
      box-shadow: none;
    }

    .hw-check-command-block.hw-terminal-line:last-child {
      border-bottom: none;
    }

    .hw-terminal-prompt {
      font-family: 'SF Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
      font-size: 13px;
      font-weight: 600;
      color: #34d399;
      flex-shrink: 0;
      line-height: 1.45;
      user-select: none;
      opacity: 0.92;
    }

    .hw-check-command-block.hw-terminal-line code {
      font-family: 'SF Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
      font-size: 13px;
      line-height: 1.5;
      color: #e2e8f0;
      word-break: break-word;
      flex: 1;
      min-width: 0;
    }

    .hw-check-command-block.hw-terminal-line code .term-flag {
      color: #7dd3fc;
    }

    .hw-terminal-line .hw-check-copy-btn {
      margin-top: -2px;
      align-self: flex-start;
      padding: 7px;
      border-radius: 9px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hw-terminal-line .hw-check-copy-btn:hover {
      background: rgba(0, 194, 222, 0.12);
      border-color: rgba(0, 194, 222, 0.35);
    }

    .hw-check-cloud-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      filter: grayscale(0.2);
    }

    @media (max-width: 520px) {
      .hw-try-tab {
        font-size: 12px;
        padding: 11px 10px;
      }
    }

    /* ── Hardware Check Cards ── */
    .hw-check-cards {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin: 24px 0;
    }

    .hw-check-card {
      background: var(--bg-primary);
      border: 1px solid rgba(255, 255, 255, 0.11);
      border-radius: var(--radius-md);
      padding: 24px;
      cursor: pointer;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .hw-check-card:hover {
      border-color: rgba(0, 194, 222, 0.28);
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.11),
        0 10px 28px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .hw-check-card.selected {
      border-color: rgba(0, 194, 222, 0.48);
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.3),
        0 0 40px rgba(0, 194, 222, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .hw-check-card.selected:hover {
      border-color: rgba(0, 194, 222, 0.55);
      box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.32),
        0 0 44px rgba(0, 194, 222, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    /* Command blocks for local hardware setup */
    .hw-check-commands {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--border-color);
    }

    .hw-check-commands-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .hw-check-command-block {
      background: var(--bg-primary);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      margin-bottom: 8px;
      font-family: 'SF Mono', 'Fira Code', monospace;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      box-shadow: inset 0 0 0 1px rgba(0, 194, 222, 0.05);
    }

    .hw-check-command-block:last-child {
      margin-bottom: 0;
    }

    .hw-check-command-block code {
      font-size: 13px;
      color: var(--accent);
      background: none;
      padding: 0;
      flex: 1;
    }

    .hw-check-copy-btn {
      background: transparent;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      padding: 6px;
      cursor: pointer;
      color: var(--text-muted);
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .hw-check-copy-btn:hover {
      background: var(--bg-hover);
      color: var(--accent);
      border-color: var(--accent);
    }

    .hw-check-copy-btn svg {
      width: 14px;
      height: 14px;
    }

    .hw-check-copy-btn.copied {
      color: #22c55e;
      border-color: #22c55e;
    }

    .hw-check-card-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    .hw-check-card-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .hw-check-card-icon.yes {
      background: var(--accent);
      color: #fff;
    }

    .hw-check-card-icon.no {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-secondary);
    }

    .hw-check-card-icon svg {
      width: 18px;
      height: 18px;
    }

    .hw-check-card-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .hw-check-card-body {
      font-size: 13px;
      line-height: 1.7;
      color: var(--text-secondary);
      margin-bottom: 16px;
    }

    .hw-check-req {
      background: rgba(0, 194, 222, 0.06);
      border-left: 3px solid var(--accent);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: 12px 16px;
    }

    .hw-check-req strong {
      font-size: 12px;
      font-weight: 700;
      color: var(--accent);
      display: block;
      margin-bottom: 4px;
    }

    .hw-check-req span {
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .hw-check-local-actions {
      margin-top: 16px;
    }

    .hw-check-notebook-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 12px 20px;
      background: rgba(0, 194, 222, 0.08);
      color: var(--text-primary);
      border: 1px solid rgba(0, 194, 222, 0.22);
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .hw-check-notebook-btn:hover {
      background: rgba(0, 194, 222, 0.12);
      border-color: rgba(0, 194, 222, 0.36);
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(0, 194, 222, 0.08);
    }

    .hw-check-notebook-btn svg {
      width: 16px;
      height: 16px;
      color: var(--accent);
      flex-shrink: 0;
    }

    .hw-check-cloud-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 12px 20px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: opacity 0.2s ease;
      margin-bottom: 10px;
    }

    .hw-check-cloud-btn:hover {
      opacity: 0.9;
    }

    .hw-check-cloud-btn svg {
      width: 16px;
      height: 16px;
    }

    .hw-check-cloud-sub {
      font-size: 11px;
      color: var(--text-muted);
      text-align: center;
    }

    .note-callout {
      border-left: 3px solid var(--accent);
      background: rgba(0, 194, 222, 0.04);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: 14px 20px;
      margin-top: 20px;
    }

    .note-callout strong {
      color: var(--accent);
      font-weight: 700;
    }

    .note-callout span {
      color: var(--text-secondary);
      font-size: 13px;
      line-height: 1.6;
    }

    /* ── Models & Architecture ── */
    .model-arch-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-top: 14px;
    }

    .model-arch-item {
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.01);
      padding: 18px 16px;
    }

    .model-arch-item h4 {
      font-size: 17px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .model-arch-item p {
      margin: 0;
      color: var(--text-secondary);
      font-size: 14px;
      line-height: 1.65;
    }

    /* ── Metrics Table ── */
    .metrics-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 16px;
    }

    .metrics-table th,
    .metrics-table td {
      text-align: left;
      padding: 10px 16px;
      font-size: 13px;
      border-bottom: 1px solid var(--border-color);
    }

    .metrics-table th {
      color: var(--text-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-size: 11px;
    }

    .metrics-table td {
      color: var(--text-secondary);
    }

    .metrics-table tr:last-child td {
      border-bottom: none;
    }

    /* ── Responsive ── */
    @media (max-width: 900px) {
      .page-layout {
        flex-direction: column;
      }

      .page-layout.landing-mode .toc-sidebar,
      .page-layout.detail-mode .sidebar {
        display: none;
      }

      .sidebar {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 420px;
      }

      .content {
        padding: 0px 24px 64px;
      }

      .toc-sidebar,
      .toc-sidebar.collapsed {
        width: 100%;
        min-width: unset;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 16px 24px;
      }

      .toc-sidebar.collapsed .toc-label,
      .toc-sidebar.collapsed .toc-list {
        display: block;
      }


    }

    /* ── Loading Spinner ── */
    .loading-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: var(--bg-primary);
      gap: 20px;
      transition: opacity 0.35s ease;
    }

    .loading-overlay.hidden {
      opacity: 0;
      pointer-events: none;
    }

    .loading-spinner {
      width: 40px;
      height: 40px;
      border: 3px solid rgba(255, 255, 255, 0.08);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .loading-text {
      font-size: 13px;
      color: var(--text-muted);
      letter-spacing: 0.3px;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* ═══════════════════════════════════════════
       Landing card body + actions (model_selector_v2 parity)
       ═══════════════════════════════════════════ */
    .landing-card-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 18px 20px 16px;
    }

    .landing-card-actions {
      display: flex;
      gap: 8px;
      padding: 0 20px 18px;
      margin-top: 0;
    }

    .lc-btn {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 9px 12px;
      font-size: 12.5px;
      font-weight: 600;
      font-family: inherit;
      border-radius: var(--radius-sm);
      cursor: pointer;
      border: 1px solid transparent;
      text-decoration: none;
      transition: all 0.15s ease;
      white-space: nowrap;
    }

    .lc-btn svg {
      width: 14px;
      height: 14px;
    }

    .lc-btn-primary {
      background: var(--accent);
      color: #000;
    }

    .lc-btn-primary:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    .lc-btn-ghost {
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-primary);
      border-color: rgba(255, 255, 255, 0.08);
    }

    .lc-btn-ghost:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.18);
    }

    /* ═══════════════════════════════════════════
       Details Modal (minimal overview)
       ═══════════════════════════════════════════ */
    .details-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .details-modal-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .details-modal {
      position: relative;
      background: #111;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      width: 100%;
      max-width: 960px;
      max-height: calc(100vh - 48px);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
      transform: translateY(12px) scale(0.985);
      transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .details-modal-overlay.open .details-modal {
      transform: translateY(0) scale(1);
    }

    .details-modal-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s ease;
      z-index: 5;
    }

    .details-modal-close:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-primary);
    }

    .details-modal-close svg {
      width: 18px;
      height: 18px;
    }

    .details-modal-hero {
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: 24px;
      padding: 24px 28px 20px;
      border-bottom: 1px solid var(--border-color);
      align-items: start;
    }

    .details-modal-hero-img {
      width: 260px;
      height: 150px;
      object-fit: cover;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      background: #0a0a0a;
      display: block;
    }

    .details-modal-hero-info {
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-width: 0;
    }

    .details-modal-eyebrow {
      display: inline-flex;
      width: fit-content;
      align-items: center;
      gap: 6px;
      padding: 3px 10px;
      border-radius: 999px;
      background: var(--accent-dim);
      border: 1px solid rgba(0, 194, 222, 0.25);
      color: var(--accent);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.6px;
      text-transform: uppercase;
    }

    .details-modal-title {
      font-family: 'Montserrat', 'Inter', sans-serif;
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.3px;
      color: var(--text-primary);
      padding-right: 42px;
      line-height: 1.25;
    }

    .details-modal-subtitle {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.55;
    }

    .details-modal-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 2px;
    }

    .details-modal-quickstats {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 22px;
      padding-top: 10px;
      border-top: 1px dashed var(--border-color);
      margin-top: 6px;
    }

    .details-modal-quickstat {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .details-modal-quickstat-label {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .details-modal-quickstat-value {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      font-family: 'Montserrat', 'Inter', sans-serif;
    }

    .details-modal-body {
      padding: 22px 28px 24px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 26px;
      flex: 1;
    }

    .details-modal-body-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      min-height: 200px;
      padding: 32px 20px;
    }

    .details-modal-body-loading .loading-spinner {
      width: 36px;
      height: 36px;
      flex-shrink: 0;
    }

    .details-modal-loading-text {
      font-size: 13px;
      color: var(--text-muted);
      letter-spacing: 0.3px;
      margin: 0;
      text-align: center;
    }

    .details-modal-section-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
      text-transform: uppercase;
      letter-spacing: 0.6px;
    }

    .details-modal-section-title svg {
      width: 14px;
      height: 14px;
      color: var(--accent);
    }

    .details-modal-section p {
      font-size: 13px;
      line-height: 1.65;
      color: var(--text-secondary);
      margin: 0 0 10px;
    }

    .details-modal-section p:last-child {
      margin-bottom: 0;
    }

    .details-modal-usecases {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .details-modal-usecase {
      padding: 12px 14px;
      border: 1px solid var(--border-color);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.02);
    }

    .details-modal-usecase-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .details-modal-usecase-desc {
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    @media (max-width: 720px) {
      .details-modal-hero {
        grid-template-columns: 1fr;
      }
      .details-modal-hero-img {
        width: 100%;
        height: 160px;
      }
      .details-modal-usecases {
        grid-template-columns: 1fr;
      }
    }

    .details-modal-arch-img {
      width: 100%;
      max-height: 320px;
      object-fit: contain;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      background: #0a0a0a;
      display: block;
      margin-bottom: 10px;
    }

    .details-modal-output-img {
      width: 100%;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      display: block;
    }

    .details-modal-ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .details-modal-ul li {
      position: relative;
      padding-left: 16px;
      font-size: 12.5px;
      color: var(--text-secondary);
      line-height: 1.55;
    }

    .details-modal-ul li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 8px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
      opacity: 0.6;
    }

    .details-modal-datasets {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 10px;
    }

    .details-modal-dataset {
      padding: 12px 14px;
      border: 1px solid var(--border-color);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.02);
    }

    .details-modal-dataset-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .details-modal-dataset-desc {
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    /* Benchmark section with device tabs */
    .benchmark-section {
      background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 20px 22px;
      margin-top: 4px;
    }

    .benchmark-device-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 18px;
      flex-wrap: wrap;
    }

    .benchmark-device-tab {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .benchmark-device-tab:hover {
      background: rgba(255,255,255,0.06);
      color: var(--text-primary);
    }

    .benchmark-device-tab.active {
      color: var(--accent);
    }

    .benchmark-device-tab-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: currentColor;
      opacity: 0.6;
    }

    .benchmark-device-tab.active .benchmark-device-tab-dot {
      opacity: 1;
      box-shadow: 0 0 6px currentColor;
    }

    .benchmark-metrics-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 12px;
    }

    .benchmark-metric-card {
      background: rgba(0,0,0,0.2);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 16px 14px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      transition: border-color 0.2s ease, transform 0.2s ease;
    }

    .benchmark-metric-card:hover {
      transform: translateY(-1px);
    }

    .benchmark-metric-icon {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      background: rgba(255,255,255,0.03);
      color: var(--accent);
      margin-bottom: 4px;
    }

    .benchmark-metric-icon svg {
      width: 14px;
      height: 14px;
    }

    .benchmark-metric-label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .benchmark-metric-value {
      font-size: 22px;
      font-weight: 700;
      color: var(--text-primary);
      font-family: 'Montserrat', 'Inter', sans-serif;
      line-height: 1;
    }

    .benchmark-metric-unit {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-secondary);
      margin-left: 4px;
    }

    .benchmark-metric-note {
      font-size: 10px;
      color: var(--text-muted);
      line-height: 1.4;
    }

    .benchmark-empty {
      padding: 24px;
      text-align: center;
      color: var(--text-muted);
      font-size: 12px;
      background: rgba(255,255,255,0.02);
      border-radius: var(--radius-md);
      border: 1px dashed var(--border-color);
    }

    /* Richer section styling */
    .details-modal-section {
      position: relative;
    }

    .details-modal-section::after {
      content: '';
      position: absolute;
      bottom: -13px;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
      opacity: 0.6;
    }

    .details-modal-section:last-child::after {
      display: none;
    }

    /* Improved output image container */
    .output-image-container {
      position: relative;
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid var(--border-color);
      background: #0a0a0a;
    }

    .output-image-container img {
      width: 100%;
      display: block;
    }

    .output-image-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 12px 16px;
      background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
      font-size: 12px;
      color: var(--text-secondary);
    }

    /* Architecture diagram with caption */
    .arch-image-container {
      position: relative;
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid var(--border-color);
      background: #0a0a0a;
      margin-bottom: 14px;
    }

    /* ── Details modal: zoomable output / architecture images ── */
    .details-modal-zoomable-img {
      cursor: zoom-in;
      transition: opacity 0.15s ease, box-shadow 0.15s ease;
    }

    .details-modal-zoomable-img:hover {
      opacity: 0.95;
      box-shadow: 0 0 0 2px rgba(0, 194, 222, 0.35);
    }

    .details-modal-zoomable-img:focus {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .details-image-lightbox {
      position: fixed;
      inset: 0;
      z-index: 1100;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 24px 24px;
      background: rgba(0, 0, 0, 0.92);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .details-image-lightbox.open {
      opacity: 1;
      visibility: visible;
    }

    .details-image-lightbox-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 44px;
      height: 44px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.15);
      background: rgba(0, 0, 0, 0.55);
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s ease, color 0.15s ease;
      z-index: 2;
    }

    .details-image-lightbox-close:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-primary);
    }

    .details-image-lightbox-close svg {
      width: 22px;
      height: 22px;
    }

    .details-image-lightbox-img {
      max-width: min(96vw, 1400px);
      max-height: calc(100vh - 96px);
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: var(--radius-md);
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    }

    .arch-image-container img {
      width: 100%;
      max-height: 320px;
      object-fit: contain;
      display: block;
    }

    .details-modal-footer {
      padding: 16px 28px;
      border-top: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.01);
      display: flex;
      gap: 10px;
      justify-content: flex-end;
    }

    .details-modal-footer .lc-btn {
      flex: 0 0 auto;
      padding: 10px 20px;
      font-size: 13px;
    }

    /* ═══════════════════════════════════════════
       Setup Mode Layout — no sidebars, full-width
       ═══════════════════════════════════════════ */
    .page-layout.setup-mode .sidebar,
    .page-layout.setup-mode .toc-sidebar {
      display: none;
    }

    .page-layout.setup-mode {
      padding-left: 0;
      padding-right: 0;
    }

    .page-layout.setup-mode .content {
      padding: 0 0 80px;
    }

    .setup-page {
      margin: 0;
      padding-top: 0;
    }

    .setup-page-content {
      max-width: 1500px;
      margin: 0 auto;
      padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 70px) 0;
      box-sizing: border-box;
    }

    /* ═══════ Hero — neutral ramp (card-adjacent grays) + dot fade; fixed in CSS ═══════ */
    .setup-hero {
      position: relative;
      width: 100%;
      margin: 0 0 32px;
      overflow: hidden;
      isolation: isolate;
      background: linear-gradient(
        125deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 40%,
        #131315 70%,
        var(--bg-primary) 100%
      );
      border: none;
    }

    /* Index-style dot grid; fades out toward bottom (no hard edge) */
    .setup-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
      background-size: 24px 24px;
      -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 42%,
        rgba(0, 0, 0, 0.35) 72%,
        transparent 100%
      );
      mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 42%,
        rgba(0, 0, 0, 0.35) 72%,
        transparent 100%
      );
      pointer-events: none;
      z-index: 0;
    }

    /* Top scrim + soft cyan glows + gradual blend into page (--bg-primary) instead of border */
    .setup-hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(
          180deg,
          rgba(255, 255, 255, 0.045) 0%,
          transparent 32%,
          transparent 58%,
          color-mix(in srgb, var(--bg-primary) 70%, transparent) 86%,
          var(--bg-primary) 100%
        ),
        radial-gradient(ellipse 72% 52% at 92% 16%, rgba(255, 255, 255, 0.07) 0%, transparent 58%),
        radial-gradient(ellipse 58% 48% at 6% 88%, rgba(0, 0, 0, 0.42) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 78% 78%, rgba(0, 194, 222, 0.06) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    .setup-hero-inner {
      position: relative;
      z-index: 1;
      max-width: none;
      width: 100%;
      margin: 0;
      padding: clamp(26px, 3.6vw, 44px) clamp(20px, 4vw, 56px);
      box-sizing: border-box;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: clamp(16px, 2.2vw, 28px);
      align-items: center;
      min-height: clamp(210px, 26vw, 320px);
    }

    .setup-hero-text {
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-width: 0;
    }

    .setup-hero-breadcrumb {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 8px;
      font-size: 12px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.55);
      margin: 0 0 4px;
    }

    .setup-hero-bc-sep {
      color: rgba(255, 255, 255, 0.35);
      user-select: none;
    }

    .setup-hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 4px;
    }

    .setup-hero-badge {
      display: inline-flex;
      align-items: center;
      padding: 4px 11px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.35px;
      color: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(0, 0, 0, 0.18);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .setup-hero-title {
      font-family: 'Montserrat', 'Inter', sans-serif;
      font-size: clamp(1.65rem, 2.8vw + 0.6rem, 2.35rem);
      font-weight: 700;
      line-height: 1.12;
      letter-spacing: -0.5px;
      color: #ffffff;
      margin: 0;
      text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
    }

    .setup-hero-model {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.72);
      margin: 0;
      line-height: 1.45;
    }

    .setup-hero-model-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.55px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.45);
      margin-right: 8px;
    }

    .setup-hero-subtitle {
      font-size: clamp(13.5px, 1.1vw + 11px, 15.5px);
      line-height: 1.58;
      color: rgba(255, 255, 255, 0.76);
      max-width: 36rem;
      margin: 0;
      text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
    }

    .setup-hero-feature {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      aspect-ratio: 4 / 3;
      max-height: min(320px, 38vw);
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.14);
      box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 194, 222, 0.08) inset;
      background: rgba(0, 0, 0, 0.35);
    }

    .setup-hero-feature-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      transform: scale(1.02);
      transition: transform 0.6s ease;
    }

    .setup-hero:hover .setup-hero-feature-img {
      transform: scale(1.04);
    }

    /* ═══════ Unified Steps Timeline ═══════ */
    .setup-steps {
      position: relative;
    }

    .setup-steps-dynamic {
      /* Wrapper for renderer-injected steps; transparent layout-wise. */
      display: contents;
    }

    .setup-step {
      position: relative;
      display: grid;
      grid-template-columns: 48px 1fr;
      gap: 22px;
      padding-bottom: 40px;
    }

    /* Connecting timeline line — runs from below current bullet down through
       the inter-step gap into the next step's top edge. Hidden on the last
       step (marked with .is-last from JS) so the rail terminates cleanly. */
    .setup-step::before {
      content: '';
      position: absolute;
      top: 40px;
      bottom: -4px;
      left: 23px;
      width: 2px;
      background: linear-gradient(180deg,
        rgba(0, 194, 222, 0.45) 0%,
        rgba(0, 194, 222, 0.18) 50%,
        rgba(255, 255, 255, 0.06) 100%);
      z-index: 0;
      pointer-events: none;
    }

    .setup-step.is-last::before {
      display: none;
    }

    .setup-step.is-last {
      padding-bottom: 8px;
    }

    .setup-step-rail {
      display: flex;
      align-items: flex-start;
      justify-content: center;
    }

    .setup-step-bullet {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 30% 30%, rgba(0, 194, 222, 0.25), rgba(0, 194, 222, 0.08));
      border: 1.5px solid rgba(0, 194, 222, 0.55);
      color: var(--accent);
      font-family: 'Montserrat', 'Inter', sans-serif;
      font-weight: 700;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 1;
      flex-shrink: 0;
      box-shadow:
        0 0 0 4px rgba(0, 194, 222, 0.04),
        0 0 22px rgba(0, 194, 222, 0.18);
    }

    .setup-step-main {
      min-width: 0;
    }

    .setup-step-head {
      margin-bottom: 18px;
    }

    .setup-step-title {
      font-family: 'Montserrat', 'Inter', sans-serif;
      font-size: 19px;
      font-weight: 700;
      color: var(--text-primary);
      letter-spacing: -0.3px;
      line-height: 1.25;
      margin: 6px 0 6px;
    }

    .setup-step-desc {
      font-size: 13.5px;
      line-height: 1.6;
      color: var(--text-secondary);
      margin: 0;
      max-width: 860px;
    }

    .setup-step-body {
      min-width: 0;
    }

    /* Tighten margins on hw-cards and hw-check-cards inside setup steps. */
    .setup-step .hw-cards {
      margin: 0;
      grid-template-columns: repeat(3, 1fr);
    }

    .setup-step .hw-try-root {
      margin-top: 4px;
      margin-bottom: 0;
      width: 100%;
    }

    .setup-step .engine-select-prompt {
      margin-top: 0;
      margin-bottom: 16px;
    }

    /* ═══════ Device selector — combined horizontal tab strip (Jetson-style) ═══════ */
    .setup-device-grid {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: stretch;
      width: 100%;
      max-width: 100%;
      gap: 0;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.02);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    }

    .setup-device-card {
      --device-accent: #6b7280;
      position: relative;
      flex: 1 1 0;
      min-width: 0;
      display: flex;
      flex-direction: row;
      align-items: stretch;
      gap: clamp(10px, 1.2vw, 14px);
      padding: clamp(12px, 1.5vw, 16px) clamp(12px, 1.8vw, 18px);
      background: transparent;
      border: none;
      border-radius: 0;
      border-left: 1px solid rgba(255, 255, 255, 0.08);
      cursor: pointer;
      transition: background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
      text-align: left;
      font-family: inherit;
      color: var(--text-primary);
      user-select: none;
      overflow: visible;
      box-shadow: none;
    }

    .setup-device-card:first-child {
      border-left: none;
    }

    .setup-device-card::before {
      display: none;
    }

    .setup-device-card:not(.disabled):hover {
      background: rgba(255, 255, 255, 0.04);
      transform: none;
    }

    .setup-device-card.selected {
      /* background: color-mix(in srgb, var(--device-accent) 12%, rgba(255, 255, 255, 0.03)); */
      background: #000;
      box-shadow: inset 0 -3px 0 var(--device-accent);
      z-index: 1;
    }

    .setup-device-card.disabled {
      opacity: 0.42;
      cursor: not-allowed;
      filter: grayscale(0.55);
      box-shadow: none;
    }

    .setup-device-card.disabled.selected {
      box-shadow: none;
    }

    .setup-device-card-thumb {
      position: relative;
      flex: 0 0 auto;
      width: clamp(72px, 14vw, 92px);
      align-self: center;
      aspect-ratio: 4 / 3;
      height: auto;
      border-radius: 8px;
      background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.05), transparent 60%),
        linear-gradient(145deg, #1a1a1a, #0a0a0a);
      border: 1px solid rgba(255, 255, 255, 0.07);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .setup-device-card-thumb svg {
      width: 32px;
      height: 32px;
      color: rgba(255, 255, 255, 0.34);
      transition: color 0.18s ease, transform 0.18s ease;
    }

    .setup-device-card:not(.disabled):hover .setup-device-card-thumb svg {
      color: rgba(255, 255, 255, 0.55);
    }

    .setup-device-card.selected .setup-device-card-thumb {
      border-color: color-mix(in srgb, var(--device-accent) 45%, rgba(255, 255, 255, 0.12));
    }

    .setup-device-card.selected .setup-device-card-thumb svg {
      color: var(--device-accent);
      transform: scale(1.04);
    }

    /* Top-left badge on thumb (family / line) */
    .setup-device-card-tag {
      position: absolute;
      top: 5px;
      left: 5px;
      z-index: 2;
      font-size: 8.5px;
      font-weight: 800;
      letter-spacing: 0.5px;
      padding: 2px 5px;
      border-radius: 4px;
      background: rgba(0, 0, 0, 0.78);
      color: #fff;
      text-transform: uppercase;
      line-height: 1.2;
      max-width: calc(100% - 40px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .setup-device-card.selected .setup-device-card-tag {
      background: #000;
      color: #fff;
    }

    /* Bottom-right on thumb (e.g. TOPS / tier) */
    .setup-device-card-spec {
      position: absolute;
      right: 4px;
      bottom: 4px;
      z-index: 2;
      font-size: 8.5px;
      font-weight: 800;
      letter-spacing: 0.25px;
      padding: 3px 6px;
      border-radius: 4px;
      background: var(--device-accent);
      color: #0a0a0a;
      line-height: 1.15;
      max-width: calc(100% - 12px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .setup-device-card.disabled .setup-device-card-spec {
      background: rgba(255, 255, 255, 0.12);
      color: var(--text-muted);
    }

    .setup-device-card-body {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 3px;
      min-width: 0;
      flex: 1 1 auto;
      padding-right: 2px;
    }

    .setup-device-card-brand {
      font-size: 10px;
      color: var(--text-muted);
      font-weight: 600;
      letter-spacing: 0.04em;
      line-height: 1.2;
    }

    .setup-device-card-name {
      font-family: 'Montserrat', 'Inter', sans-serif;
      font-size: clamp(13px, 1.15vw, 15px);
      font-weight: 700;
      color: var(--text-primary);
      line-height: 1.2;
      letter-spacing: -0.2px;
    }

    .setup-device-card.selected .setup-device-card-name {
      font-weight: 800;
    }

    .setup-device-card-tagline {
      font-size: 10.5px;
      color: var(--text-muted);
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    @media (max-width: 960px) {
      .setup-hero-inner {
        grid-template-columns: 1fr;
        min-height: unset;
      }

      .setup-hero-feature {
        order: -1;
        max-height: min(220px, 48vw);
        max-width: none;
        margin-left: 0;
      }

      .setup-hero:hover .setup-hero-feature-img {
        transform: scale(1.03);
      }
    }

    @media (max-width: 720px) {
      .page-layout.setup-mode .content {
        padding: 0 0 64px;
      }

      .setup-page-content {
        padding-left: 20px;
        padding-right: 20px;
      }

      .setup-hero-inner {
        padding: 28px 20px 32px;
      }

      .setup-step {
        grid-template-columns: 36px 1fr;
        gap: 14px;
        padding-bottom: 32px;
      }
      .setup-step::before {
        left: 17px;
      }
      .setup-step-bullet {
        width: 30px;
        height: 30px;
        font-size: 12.5px;
      }
      .setup-step-title {
        font-size: 17px;
      }
      .setup-step .hw-cards {
        grid-template-columns: 1fr;
      }

      .setup-device-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
      }

      .setup-device-card {
        flex: 0 0 min(82vw, 300px);
        min-width: min(82vw, 300px);
        scroll-snap-align: start;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
      }

      .setup-device-card:first-child {
        border-left: none;
      }
    }
