  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1800px;
    margin: 0 auto;
    padding: 12px 16px 40px;
    background: #0d1117;
    color: #e6edf3;
    line-height: 1.45;
    font-size: 13.5px;
  }
  h1 { margin: 0 0 10px; font-size: 18px; }
  h1 .subtitle { color: #8b949e; font-weight: 400; font-size: 13px; margin-left: 10px; }
  a { color: #79c0ff; text-decoration: none; }
  a:hover { text-decoration: underline; }

  .toplinks { font-size: 12px; color: #8b949e; margin-bottom: 8px; }
  .toplinks a { margin-right: 12px; }

  .page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: start;
  }

  .controls {
    position: sticky;
    top: 10px;
    box-sizing: border-box;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 3px;
    padding: 8px 10px 12px;
    scrollbar-width: thin;
    scrollbar-color: #484f58 #161b22;
  }
  .controls::-webkit-scrollbar { width: 8px; }
  .controls::-webkit-scrollbar-thumb { background: #30363d; border-radius: 2px; }

  .ctrl-group {
    padding: 7px 0 9px;
    border-bottom: 1px dashed #30363d;
  }
  .ctrl-group:last-child { border-bottom: none; }
  .ctrl-label {
    display: flex; justify-content: space-between; align-items: baseline;
    color: #79c0ff; font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.08em; font-weight: 600;
    margin-bottom: 5px;
  }
  .reset-link {
    color: #6e7681; font-size: 10px; text-decoration: underline;
    cursor: pointer; background: transparent; border: 0; padding: 2px;
    font-family: inherit;
  }
  .reset-link:hover { color: #a5d6ff; }

  .chips { display: flex; flex-wrap: wrap; gap: 4px; }

  .filter-chip {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 2px;
    font-size: 11.5px;
    color: #c9d1d9;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    line-height: 1.4;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
  }
  .filter-chip input {
    position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
  }
  .filter-chip:hover { border-color: #484f58; color: #e6edf3; }
  .filter-chip:has(input:checked) {
    background: #1f3a5f;
    border-color: #388bfd;
    color: #a5d6ff;
  }
  .filter-chip .count { color: #6e7681; margin-left: 4px; font-size: 10.5px; }
  .filter-chip:has(input:checked) .count { color: #a5d6ff; }

  .body-block { margin-bottom: 8px; }
  .body-block:last-child { margin-bottom: 0; }
  .body-block-head {
    color: #c9d1d9; font-size: 11px; font-weight: 600;
    margin: 4px 0 4px;
  }
  .body-block-head .count { color: #6e7681; font-weight: 400; }
  .model-chips { display: flex; flex-wrap: wrap; gap: 3px; }
  .model-chip { font-size: 11px; padding: 2px 6px; }

  .country-block { margin-bottom: 8px; }
  .country-block:last-child { margin-bottom: 0; }
  .country-chip { font-size: 11.5px; margin-bottom: 4px; }
  .country-chip b { font-weight: 600; }
  .country-block .model-chips { margin-left: 10px; padding-left: 6px; border-left: 1px solid #21262d; }

  #sort-select {
    background: #0d1117; color: #e6edf3;
    border: 1px solid #30363d; border-radius: 2px;
    padding: 3px 6px; font-size: 12px;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 14px;
  }
  .card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 10px 12px 8px;
  }
  .card-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; margin-bottom: 4px;
  }
  .fav-btn {
    background: transparent; border: 0;
    color: #6e7681; font-size: 20px; cursor: pointer;
    padding: 0 4px; line-height: 1;
    transition: color 0.12s, transform 0.12s;
  }
  .fav-btn:hover { color: #d29922; transform: scale(1.15); }
  .card.fav .fav-btn { color: #f0b429; }
  .card.fav { border-color: #d29922; box-shadow: 0 0 0 1px rgba(210, 153, 34, 0.3); }
  .card .title { flex: 1; min-width: 0; }
  .title { font-size: 15px; }
  .make { color: #8b949e; font-weight: 400; }
  .model { color: #e6edf3; font-weight: 700; }
  .body-tag {
    color: #8b949e; font-size: 11px; margin-left: 6px;
    font-weight: 400;
  }
  .lots-pill {
    background: #0d1117; border: 1px solid #30363d;
    color: #c9d1d9; font-size: 11px; padding: 1px 7px;
    border-radius: 10px; white-space: nowrap;
  }

  .meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 8px; }
  .meta-chip {
    font-size: 11px; padding: 1px 6px;
    background: #0d1117; border: 1px solid #30363d;
    border-radius: 10px; color: #c9d1d9; white-space: nowrap;
  }
  .meta-chip.pr { color: #86efac; border-color: #2d5a3d; background: #0d1f15; }

  .photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 6px;
  }
  .thumb-link {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 2px;
    background: #0d1117;
  }
  .thumb-link img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
    cursor: zoom-in;
  }
  .thumb-link:hover img { transform: scale(1.05); }

  details.lots-list {
    margin: 4px 0 0;
    border-top: 1px dashed #30363d;
    padding-top: 4px;
  }
  details.lots-list summary {
    cursor: pointer; color: #79c0ff; font-size: 11px;
    list-style: none; padding: 2px 0;
  }
  details.lots-list summary::-webkit-details-marker { display: none; }
  details.lots-list summary::before {
    content: '▸'; display: inline-block; margin-right: 6px;
    transition: transform 0.15s; color: #6e7681;
  }
  details.lots-list[open] summary::before { transform: rotate(90deg); }
  details.lots-list ul {
    margin: 4px 0 6px; padding-left: 18px;
    columns: 2; column-gap: 14px;
    font-size: 11.5px;
  }
  details.lots-list li { margin: 2px 0; break-inside: avoid; }

  /* Lightbox */
  #lb {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92);
    display: none; align-items: center; justify-content: center;
    z-index: 9999;
  }
  #lb.show { display: flex; }
  #lb-img { max-width: 95vw; max-height: 90vh; object-fit: contain; }
  #lb-info {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    color: #e6edf3; background: rgba(0,0,0,0.6); padding: 6px 14px;
    border-radius: 4px; font-size: 13px;
    display: flex; gap: 12px; align-items: center;
  }
  #lb-info a { color: #79c0ff; }
  #lb .nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #e6edf3; background: rgba(0,0,0,0.5);
    border: 0; width: 48px; height: 64px; cursor: pointer;
    font-size: 28px; user-select: none;
  }
  #lb-prev { left: 16px; }
  #lb-next { right: 16px; }
  #lb-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(0,0,0,0.5); color: #e6edf3; border: 0;
    width: 36px; height: 36px; cursor: pointer; font-size: 18px;
  }

  .empty-state {
    grid-column: 1 / -1;
    text-align: center; padding: 40px;
    color: #6e7681;
  }

  @media (max-width: 900px) {
    .page { grid-template-columns: 1fr; }
    .controls { position: relative; max-height: none; }
    .grid { grid-template-columns: 1fr; gap: 12px; }
    details.lots-list ul { columns: 1; }
  }