
      :root {
        --bg: #f4f4f1;
        --surface: #ffffff;
        --surface-2: #ecece7;
        --ink: #1d201c;
        --ink-2: #5a5e57;
        --line: #d9d9d2;
        --accent: #14604f;
        --accent-ink: #ffffff;
        --warn-bg: #fdf3d7;
        --warn-line: #e3c565;
        --warn-ink: #6b5200;
        --new-bg: #14604f;
        --new-ink: #ffffff;
        --photo-bg: #ffffff;
        --shadow: 0 8px 30px rgba(20, 25, 20, 0.16);
        --radius: 10px;
      }
      @media (prefers-color-scheme: dark) {
        :root {
          --bg: #171917;
          --surface: #212421;
          --surface-2: #2a2e2a;
          --ink: #eceee9;
          --ink-2: #a4a89f;
          --line: #3a3e3a;
          --accent: #3fae8f;
          --accent-ink: #0d1512;
          --warn-bg: #3a3011;
          --warn-line: #8a6d1f;
          --warn-ink: #f0d488;
          --new-bg: #3fae8f;
          --new-ink: #0d1512;
          --photo-bg: #f2f2ee;
          --shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
        }
      }
      * { box-sizing: border-box; }
      html { -webkit-text-size-adjust: 100%; }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
        font-size: 15px;
        line-height: 1.45;
      }
      button, input, select { font: inherit; color: inherit; }
      :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

      /* ---------- header / toolbar ---------- */
      .topbar {
        position: sticky; top: 0; z-index: 40;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
      }
      .topbar-inner {
        max-width: 1440px; margin: 0 auto;
        padding: 10px 16px;
        display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
      }
      .search-wrap { flex: 1 1 260px; position: relative; }
      .search-wrap svg {
        position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
        width: 17px; height: 17px; color: var(--ink-2); pointer-events: none;
      }
      #search {
        width: 100%; padding: 9px 34px 9px 34px;
        border: 1px solid var(--line); border-radius: 8px;
        background: var(--bg); color: var(--ink);
      }
      #search-clear {
        position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
        border: 0; background: transparent; cursor: pointer;
        width: 28px; height: 28px; border-radius: 6px; color: var(--ink-2);
        display: none; align-items: center; justify-content: center; font-size: 17px; line-height: 1;
      }
      #search-clear:hover { background: var(--surface-2); color: var(--ink); }
      .internal-tag {
        flex: 0 0 auto;
        font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
        color: var(--warn-ink); background: var(--warn-bg);
        border: 1px solid var(--warn-line); border-radius: 6px;
        padding: 5px 9px; white-space: nowrap;
      }
      .toolbar-row {
        max-width: 1440px; margin: 0 auto;
        padding: 0 16px 10px;
        display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
      }
      .cat-select-wrap { display: none; flex: 1 1 180px; }
      #cat-select {
        width: 100%; padding: 8px 10px; border: 1px solid var(--line);
        border-radius: 8px; background: var(--bg);
      }
      .toggle {
        display: inline-flex; align-items: center; gap: 7px;
        border: 1px solid var(--line); background: var(--surface);
        border-radius: 999px; padding: 6px 12px; cursor: pointer;
        font-size: 13.5px; font-weight: 500; user-select: none;
      }
      .toggle .dot {
        width: 9px; height: 9px; border-radius: 50%;
        border: 1.5px solid var(--ink-2); background: transparent; flex: 0 0 auto;
      }
      .toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
      .toggle[aria-pressed="true"] .dot { background: var(--accent); border-color: var(--accent); }
      .price-filter {
        display: flex; align-items: center; gap: 10px;
        border: 1px solid var(--line); border-radius: 8px;
        background: var(--surface); padding: 5px 12px;
      }
      .price-filter label { font-size: 13px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
      .price-filter .vals { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; white-space: nowrap; }
      .dual { position: relative; width: 150px; height: 26px; }
      .dual input[type="range"] {
        position: absolute; inset: 0; width: 100%; margin: 0;
        -webkit-appearance: none; appearance: none; background: transparent;
        pointer-events: none; height: 26px;
      }
      .dual input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
      .dual input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none; appearance: none; pointer-events: auto;
        width: 17px; height: 17px; border-radius: 50%; margin-top: -6.5px;
        background: var(--surface); border: 2px solid var(--accent); cursor: pointer;
      }
      .dual input[type="range"]::-moz-range-track { height: 4px; background: transparent; }
      .dual input[type="range"]::-moz-range-thumb {
        pointer-events: auto; width: 14px; height: 14px; border-radius: 50%;
        background: var(--surface); border: 2px solid var(--accent); cursor: pointer;
      }
      .dual .track {
        position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
        height: 4px; border-radius: 2px; background: var(--surface-2);
        pointer-events: none;
      }
      .dual .fill {
        position: absolute; top: 50%; transform: translateY(-50%);
        height: 4px; border-radius: 2px; background: var(--accent);
        pointer-events: none;
      }
      .co-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
      .co-filter .lbl { font-size: 13px; color: var(--ink-2); font-weight: 500; margin-right: 2px; }
      .toggle .n { font-size: 12px; color: var(--ink-2); font-family: "IBM Plex Mono", ui-monospace, monospace; }
      .toggle[aria-pressed="true"] .n { color: inherit; opacity: 0.75; }
      .sort-wrap { display: flex; align-items: center; gap: 7px; margin-left: auto; }
      .sort-wrap label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
      #sort {
        padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
      }
      #clear-filters {
        border: 0; background: transparent; color: var(--accent); cursor: pointer;
        font-weight: 600; font-size: 13.5px; padding: 6px 4px; display: none;
      }
      #clear-filters:hover { text-decoration: underline; }

      /* ---------- layout ---------- */
      .layout {
        max-width: 1440px; margin: 0 auto;
        display: grid; grid-template-columns: 232px 1fr; gap: 0;
        align-items: start;
      }
      .sidebar {
        position: sticky; top: 118px;
        padding: 18px 8px 24px 16px;
        max-height: calc(100vh - 118px); overflow-y: auto;
      }
      .sidebar h2 {
        font-size: 12px; font-weight: 700; letter-spacing: 0.09em;
        color: var(--ink-2); margin: 0 8px 8px; text-transform: uppercase;
      }
      .cat-btn {
        display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
        width: 100%; text-align: left; border: 0; background: transparent;
        padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 14px;
      }
      .cat-btn:hover { background: var(--surface-2); }
      .cat-btn.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
      .cat-btn .n { font-size: 12px; color: var(--ink-2); font-family: "IBM Plex Mono", ui-monospace, monospace; }
      .cat-btn.active .n { color: inherit; opacity: 0.75; }

      .content { padding: 18px 16px 40px; min-width: 0; }
      .results-head {
        display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px;
      }
      .results-head h1 { font-size: 21px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
      .results-count { color: var(--ink-2); font-size: 13.5px; }

      /* ---------- cards ---------- */
      .grid {
        display: grid; gap: 14px;
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
      }
      .card {
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        overflow: hidden; cursor: pointer; text-align: left; padding: 0;
        display: flex; flex-direction: column; width: 100%;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
      }
      .card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
      .card-photo {
        aspect-ratio: 4 / 3; background: var(--photo-bg);
        display: flex; align-items: center; justify-content: center; position: relative;
        border-bottom: 1px solid var(--line);
      }
      .card-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
      .badge-new {
        position: absolute; top: 8px; left: 8px;
        background: var(--new-bg); color: var(--new-ink);
        font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em;
        padding: 3px 7px; border-radius: 5px;
      }
      .no-photo {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
        color: #9a9d96; width: 100%; height: 100%;
        background:
          repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.025) 10px, rgba(0,0,0,0.025) 20px),
          #f0f0ec;
      }
      @media (prefers-color-scheme: dark) {
        .no-photo { background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px), #23251f; color: #6d7168; }
      }
      .no-photo svg { width: 34px; height: 34px; opacity: 0.65; }
      .no-photo span { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
      .card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
      .card-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
      .card-size { color: var(--ink-2); font-size: 12.5px; }
      .card-sku {
        font-family: "IBM Plex Mono", ui-monospace, monospace;
        font-size: 11.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em;
      }
      .card-price {
        margin-top: auto; padding-top: 6px;
        font-family: "IBM Plex Mono", ui-monospace, monospace;
        font-size: 15px; font-weight: 600; color: var(--accent);
      }
      .card-price .unit { font-size: 11.5px; color: var(--ink-2); font-weight: 500; }
      .card-price.quote { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
      .co-badge {
        display: inline-flex; align-items: center; width: fit-content; max-width: 100%;
        font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em;
        padding: 2px 8px; border-radius: 999px; border: 1px solid;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      }
      .co-halls { background: #e3efe9; color: #0d4a3a; border-color: #bcd8cc; }
      .co-ppp { background: #f8ead6; color: #7a4413; border-color: #ecca9f; }
      .co-egp { background: #ede5f4; color: #573a78; border-color: #d5c3e6; }
      .co-amj { background: #e0ebf3; color: #274f68; border-color: #bccfe0; }
      @media (prefers-color-scheme: dark) {
        .co-halls { background: #173a30; color: #93d3ba; border-color: #245244; }
        .co-ppp { background: #3d2c12; color: #eebd85; border-color: #5c431c; }
        .co-egp { background: #2f2342; color: #c3a9e8; border-color: #46335f; }
        .co-amj { background: #1d303e; color: #9cc3dd; border-color: #2c475c; }
      }

      .empty {
        border: 1px dashed var(--line); border-radius: var(--radius);
        padding: 44px 20px; text-align: center; color: var(--ink-2);
        background: var(--surface);
      }
      .empty strong { color: var(--ink); display: block; font-size: 16px; margin-bottom: 4px; }
      .load-more-wrap { text-align: center; margin-top: 22px; }
      #load-more {
        border: 1px solid var(--line); background: var(--surface); color: var(--ink);
        border-radius: 8px; padding: 10px 22px; cursor: pointer; font-weight: 600;
      }
      #load-more:hover { border-color: var(--accent); color: var(--accent); }
      .load-more-note { color: var(--ink-2); font-size: 13px; margin-top: 8px; }

      footer {
        max-width: 1440px; margin: 0 auto; padding: 18px 16px 30px;
        border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px;
        display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center;
      }
      footer .internal-tag { font-size: 10.5px; }

      /* ---------- detail modal ---------- */
      .modal-backdrop {
        position: fixed; inset: 0; z-index: 80;
        background: rgba(12, 14, 12, 0.62);
        display: none; align-items: flex-end; justify-content: center;
      }
      .modal-backdrop.open { display: flex; }
      .modal {
        background: var(--surface); color: var(--ink);
        width: 100%; max-width: 880px; max-height: 92vh; overflow-y: auto;
        border-radius: 16px 16px 0 0; box-shadow: var(--shadow);
      }
      @media (min-width: 700px) {
        .modal-backdrop { align-items: center; padding: 24px; }
        .modal { border-radius: 14px; }
      }
      .modal-grid { display: grid; grid-template-columns: 1fr; }
      @media (min-width: 700px) { .modal-grid { grid-template-columns: 1.05fr 1fr; } }
      .modal-photo {
        background: var(--photo-bg); min-height: 260px;
        display: flex; align-items: center; justify-content: center; position: relative;
      }
      .modal-photo img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; display: block; }
      .modal-photo .badge-new { top: 14px; left: 14px; font-size: 12px; padding: 4px 9px; }
      .modal-info { padding: 20px 22px 24px; }
      .modal-info h2 { font-size: 21px; margin: 0 34px 2px 0; line-height: 1.25; letter-spacing: -0.01em; }
      .modal-cat { color: var(--ink-2); font-size: 13px; font-weight: 500; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
      .modal-cat .co-badge { font-size: 11px; padding: 3px 9px; }
      .modal-price.quote { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 20px; color: var(--ink); }
      .spec-table td a { color: var(--accent); font-weight: 600; }
      .modal-price {
        font-family: "IBM Plex Mono", ui-monospace, monospace;
        font-size: 30px; font-weight: 600; color: var(--accent); line-height: 1.1;
      }
      .modal-price .unit { font-size: 14px; color: var(--ink-2); font-weight: 500; }
      .spec-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
      .spec-table th, .spec-table td {
        text-align: left; padding: 7px 0; border-top: 1px solid var(--line); vertical-align: top;
      }
      .spec-table th { color: var(--ink-2); font-weight: 500; width: 42%; padding-right: 12px; }
      .spec-table td { font-weight: 500; }
      .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
      .btn {
        border: 1px solid var(--line); background: var(--surface); color: var(--ink);
        border-radius: 8px; padding: 9px 16px; cursor: pointer; font-weight: 600; font-size: 14px;
      }
      .btn:hover { border-color: var(--accent); color: var(--accent); }
      .btn:disabled { opacity: 0.4; cursor: default; }
      .btn:disabled:hover { border-color: var(--line); color: var(--ink); }
      .modal-close {
        position: sticky; top: 0; float: right; z-index: 2;
        margin: 12px 12px 0 0; width: 36px; height: 36px; border-radius: 50%;
        border: 1px solid var(--line); background: var(--surface); cursor: pointer;
        font-size: 19px; line-height: 1; display: flex; align-items: center; justify-content: center;
      }
      .modal-close:hover { border-color: var(--accent); color: var(--accent); }
      body.modal-open { overflow: hidden; }

      /* ---------- responsive ---------- */
      @media (max-width: 899px) {
        .layout { grid-template-columns: 1fr; }
        .sidebar { display: none; }
        .cat-select-wrap { display: block; }
        .sidebar-head { top: 106px; }
        .content { padding-top: 14px; }
        .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
      }
      @media (min-width: 900px) {
        .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
      }
      @media (prefers-reduced-motion: reduce) {
        * { transition: none !important; }
      }
    