    :root {
      --bg: #f6f7f9;
      --card: #ffffff;
      --text: #111827;
      --muted: #667085;
      --soft: #eef2f7;
      --line: #d9dee8;
      --blue: #2563eb;
      --blue-soft: #e8f0ff;
      --green: #0f8a4b;
      --green-soft: #e8f7ef;
      --yellow: #9a6700;
      --yellow-soft: #fff5d6;
      --red: #b42318;
      --red-soft: #fee4e2;
      --purple: #6941c6;
      --purple-soft: #f1eaff;
      --shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
      --radius: 14px;
    }

    * { box-sizing: border-box; }

    /* Solid page tint below hero; matches hero gradient tail so no seam at section boundary */
    #main-content {
      color: var(--text);
      background: var(--bg);
    }

    .topbar {
      background: var(--card);
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .wrap {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 24px;
    }

    .nav {
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 19px;
      letter-spacing: -0.03em;
    }

    .logo {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: var(--blue-soft);
      color: var(--blue);
      font-weight: 900;
    }

    .nav-left {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    .site-back {
      font-size: 13px;
      font-weight: 700;
      color: var(--muted);
      text-decoration: none;
      padding: 9px 12px;
      border-radius: 999px;
      flex-shrink: 0;
    }
    .site-back:hover {
      color: var(--blue);
      background: var(--blue-soft);
    }

    .nav-links {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .nav-links button {
      border: 0;
      background: transparent;
      padding: 9px 12px;
      border-radius: 999px;
      font-weight: 700;
      color: var(--muted);
      cursor: pointer;
    }

    .nav-links button.active {
      background: var(--blue-soft);
      color: var(--blue);
    }

    /* App subheader (under site nav) */
    .hardware-app-toolbar {
      position: sticky;
      top: 64px;
      z-index: 45;
      border-bottom: 1px solid var(--line);
      background: color-mix(in srgb, #ffffff 88%, #f1f5f9 12%);
      backdrop-filter: saturate(150%) blur(10px);
      -webkit-backdrop-filter: saturate(150%) blur(10px);
      box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    }

    .hardware-app-toolbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px 20px;
      padding: 10px 0 12px;
      min-height: 50px;
    }

    .hardware-app-crumb {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 500;
      color: var(--muted);
      letter-spacing: -0.01em;
    }

    .hardware-app-crumb a {
      color: #334155;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.15s ease;
    }

    .hardware-app-crumb a:hover {
      color: var(--blue);
    }

    .hardware-app-crumb-sep {
      color: #cbd5e1;
      font-weight: 400;
      user-select: none;
    }

    .hardware-app-crumb-current {
      color: var(--text);
      font-weight: 600;
      max-width: min(280px, 52vw);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .hardware-app-tab-group {
      display: inline-flex;
      align-items: center;
      gap: 0;
      padding: 4px;
      border-radius: 11px;
      background: rgba(15, 23, 42, 0.045);
      border: 1px solid rgba(226, 232, 240, 0.95);
      box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.75);
    }

    .hardware-app-toolbar .hardware-app-tab-group .tab {
      border: 0;
      margin: 0;
      background: transparent;
      padding: 9px 18px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 13px;
      letter-spacing: -0.02em;
      color: #64748b;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
      white-space: nowrap;
    }

    .hardware-app-toolbar .hardware-app-tab-group .tab:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.65);
    }

    .hardware-app-toolbar .hardware-app-tab-group .tab.active {
      background: #ffffff;
      color: var(--text);
      box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.85);
    }

    /* Hero: full-bleed gradient (section spans viewport; inner .wrap constrains content) */
    #main-content .hardware-app-hero.hero {
      position: relative;
      width: 100%;
      padding: 42px 0 44px;
      overflow: visible;
      border-top: none;
      border-bottom: none;
      background:
        radial-gradient(ellipse 980px 380px at 74% -12%, rgba(34, 211, 238, 0.13), transparent 62%),
        radial-gradient(ellipse 760px 320px at 16% 18%, rgba(167, 139, 250, 0.10), transparent 56%),
        radial-gradient(ellipse 140% 55% at 50% 108%, rgba(241, 245, 249, 0.55), transparent 52%),
        linear-gradient(
          180deg,
          rgba(240, 249, 255, 0.52) 0%,
          rgba(255, 255, 255, 0.82) 26%,
          rgba(246, 247, 249, 0.45) 48%,
          rgba(246, 247, 249, 0.92) 72%,
          var(--bg) 92%,
          var(--bg) 100%
        );
    }

    /* Extra breathing room below headline before search card */
    #main-content .hardware-app-hero .subtitle {
      margin-bottom: 4px;
    }

    h1 {
      margin: 0 0 8px;
      font-size: clamp(30px, 4vw, 48px);
      letter-spacing: -0.055em;
      line-height: 1;
    }

    .subtitle {
      margin: 0;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.5;
      max-width: 780px;
    }

    .search-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: var(--shadow);
      padding: 16px;
      margin-top: 20px;
    }

    .finder-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
      gap: 10px;
      align-items: end;
    }

    label {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 7px;
    }

    select, input[type="search"], input[type="number"] {
      width: 100%;
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 10px;
      color: var(--text);
      padding: 11px 12px;
      font-size: 14px;
      outline: none;
    }

    select:focus, input:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

    .btn {
      border: 1px solid var(--line);
      background: #fff;
      color: var(--text);
      border-radius: 10px;
      padding: 11px 14px;
      font-weight: 800;
      cursor: pointer;
      white-space: nowrap;
    }

    .btn.primary {
      background: var(--blue);
      color: #fff;
      border-color: var(--blue);
    }

    .layout {
      display: grid;
      grid-template-columns: 290px minmax(0, 1fr);
      gap: 20px;
      align-items: start;
      padding-bottom: 60px;
    }

    .filters {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      position: sticky;
      top: 118px;
    }

    .filter-head {
      padding: 16px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .filter-head strong { font-size: 17px; }

    .clear {
      border: 0;
      background: transparent;
      color: var(--blue);
      font-weight: 800;
      cursor: pointer;
    }

    .filter-section {
      padding: 16px;
      border-bottom: 1px solid var(--line);
    }

    .filter-section:last-child { border-bottom: 0; }

    .checks { display: grid; gap: 9px; }

    .check {
      display: flex;
      gap: 10px;
      align-items: center;
      color: #344054;
      font-size: 14px;
      cursor: pointer;
    }

    .check input { accent-color: var(--blue); }

    .range {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 9px;
    }

    .main-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 14px;
    }

    .results-title strong {
      display: block;
      font-size: 22px;
      letter-spacing: -0.03em;
    }

    .results-title span {
      color: var(--muted);
      font-size: 14px;
    }

    .sort-row {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }

    .view-toggle {
      display: inline-flex;
      background: var(--soft);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 3px;
    }

    .view-toggle button {
      border: 0;
      background: transparent;
      padding: 8px 10px;
      border-radius: 9px;
      cursor: pointer;
      font-weight: 800;
      color: var(--muted);
    }

    .view-toggle button.active {
      background: #fff;
      color: var(--text);
      box-shadow: 0 1px 4px rgba(16,24,40,0.12);
    }

    .cards { display: grid; gap: 14px; }

    .listing {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 18px;
      display: grid;
      grid-template-columns: 1fr 230px;
      gap: 18px;
    }

    .listing-main-col {
      display: grid;
      grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
      gap: 16px;
      align-items: start;
      min-width: 0;
    }

    .listing-thumb {
      margin: 0;
    }

    .listing-thumb img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--soft);
    }

    .listing-thumb figcaption {
      margin-top: 6px;
      font-size: 11px;
      color: var(--muted);
      line-height: 1.35;
    }

    .listing-body {
      min-width: 0;
    }

    .listing-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .listing h2 {
      margin: 0;
      font-size: 23px;
      letter-spacing: -0.035em;
    }

    .meta {
      margin-top: 4px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.4;
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin: 12px 0;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 5px 9px;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .badge.good { background: var(--green-soft); color: var(--green); }
    .badge.ok { background: var(--blue-soft); color: var(--blue); }
    .badge.warn { background: var(--yellow-soft); color: var(--yellow); }
    .badge.bad { background: var(--red-soft); color: var(--red); }
    .badge.purple { background: var(--purple-soft); color: var(--purple); }
    .badge.gray { background: var(--soft); color: #344054; }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
    }

    .stat {
      background: #f8fafc;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px;
    }

    .stat span {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 4px;
    }

    .stat strong {
      display: block;
      font-size: 14px;
      line-height: 1.25;
    }

    .summary {
      color: #344054;
      line-height: 1.5;
      font-size: 14px;
      margin: 12px 0 0;
    }

    .side {
      border-left: 1px solid var(--line);
      padding-left: 18px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 14px;
    }

    .price {
      font-size: 28px;
      font-weight: 900;
      letter-spacing: -0.04em;
      margin-bottom: 4px;
    }

    .price-note {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
    }

    .actions { display: grid; gap: 9px; }

    .compare-btn.selected {
      background: var(--blue-soft);
      color: var(--blue);
      border-color: #bfd2ff;
    }

    .table-view, .compare-view { display: none; }

    .table-card, .compare-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .table-scroll { overflow: auto; }

    table {
      width: 100%;
      min-width: 1040px;
      border-collapse: collapse;
      font-size: 13px;
    }

    th, td {
      padding: 13px 12px;
      text-align: left;
      border-bottom: 1px solid var(--line);
      vertical-align: top;
    }

    th {
      background: #f8fafc;
      color: var(--muted);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      cursor: pointer;
    }

    tr:last-child td { border-bottom: 0; }

    .compare-empty {
      padding: 36px;
      text-align: center;
      color: var(--muted);
    }

    .compare-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 12px;
      padding: 16px;
      border-bottom: 1px solid var(--line);
    }

    .mini-card {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 13px;
      background: #f8fafc;
    }

    .mini-card strong { display: block; margin-bottom: 5px; }

    .mini-card span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .note {
      margin-top: 16px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    @media (max-width: 1000px) {
      .finder-grid { grid-template-columns: 1fr 1fr; }
      .layout { grid-template-columns: 1fr; }
      .filters { position: static; }
      .listing { grid-template-columns: 1fr; }
      .side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
    }

    @media (max-width: 720px) {
      .listing-main-col {
        grid-template-columns: 1fr;
      }
      .listing-thumb {
        max-width: min(280px, 100%);
      }
    }

    @media (max-width: 640px) {
      .wrap { padding: 0 16px; }
      .nav { align-items: flex-start; padding: 14px 0; flex-direction: column; }
      .finder-grid { grid-template-columns: 1fr; }
      .main-head { align-items: stretch; flex-direction: column; }
      .stats { grid-template-columns: 1fr 1fr; }
      .listing-top { flex-direction: column; }

      .hardware-app-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
      }

      .hardware-app-tab-group {
        width: 100%;
        justify-content: stretch;
      }

      .hardware-app-toolbar .hardware-app-tab-group .tab {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 12px;
      }
    }
