  :root {
    --bg: #faf7f0;
    --bg-alt: #f3ede0;
    --bg-deep: #ede4cf;
    --panel: #ffffff;
    --ink: #15181d;
    --ink-2: #3a3f48;
    --muted: #77808f;
    --line: #e5ddc9;
    --line-strong: #d6cbaf;
    --accent: #0b3a5c;
    --accent-hover: #0f4d79;
    --gold: #8a6813;
    --gold-soft: #f4ead0;
    --gold-softer: #fbf6e7;
    --forest: #2e4d32;
    --danger: #8b3a3a;
    --shadow-sm: 0 1px 2px rgba(20,24,31,0.04);
    --shadow: 0 1px 2px rgba(20,24,31,0.04), 0 8px 24px -8px rgba(20,24,31,0.08);
    --shadow-hover: 0 2px 4px rgba(20,24,31,0.06), 0 18px 40px -12px rgba(20,24,31,0.16);
    --shadow-tray: 0 -6px 30px -10px rgba(20,24,31,0.16);
    --radius: 6px;
    --radius-lg: 10px;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --sidebar-w: 248px;
    --header-h: 64px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--sans);
    font-size: 14px; line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  a { color: var(--accent); text-decoration: none; }
  a:hover { color: var(--accent-hover); }
  button { font-family: inherit; }

  /* --- Hero --- */
  .hero {
    padding: 72px 48px 56px;
    max-width: 1360px; margin: 0 auto;
    border-bottom: 1px solid var(--line);
    position: relative; overflow: hidden;
  }
  .hero::before {
    content: ""; position: absolute; right: -120px; top: -120px;
    width: 480px; height: 480px;
    background: radial-gradient(closest-side, rgba(138,104,19,0.10), transparent 70%);
    pointer-events: none;
  }
  .hero::after {
    content: ""; position: absolute; left: -200px; bottom: -200px;
    width: 520px; height: 520px;
    background: radial-gradient(closest-side, rgba(11,58,92,0.06), transparent 70%);
    pointer-events: none;
  }
  .hero > * { position: relative; }
  .hero .eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
    display: inline-flex; align-items: center; gap: 10px;
  }
  .hero .eyebrow::before {
    content: ""; display: inline-block; width: 24px; height: 1px;
    background: var(--gold); opacity: 0.6;
  }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 500; font-size: clamp(40px, 5.4vw, 68px);
    line-height: 1.02; letter-spacing: -0.022em;
    margin: 0 0 18px; color: var(--ink);
    max-width: 18ch;
  }
  .hero h1 em {
    font-style: italic; color: var(--accent);
    font-weight: 400;
  }
  .hero .lede {
    font-size: 17px; line-height: 1.6; color: var(--ink-2);
    max-width: 62ch; margin: 0 0 48px;
  }
  .stats {
    display: grid; gap: 32px;
    grid-template-columns: repeat(4, minmax(0,1fr));
    padding-top: 32px; border-top: 1px solid var(--line);
  }
  @media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
  .stat .num {
    font-family: var(--serif); font-weight: 500;
    font-size: 42px; line-height: 1; color: var(--ink);
    letter-spacing: -0.02em; margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
  }
  .stat .lbl {
    font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted);
  }

  /* --- Sticky toolbar --- */
  .toolbar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(250,247,240,0.9);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
    height: var(--header-h);
    display: flex; align-items: center;
  }
  .toolbar-inner {
    max-width: 1360px; margin: 0 auto; width: 100%;
    padding: 0 48px;
    display: flex; align-items: center; gap: 12px;
  }
  .brand {
    font-family: var(--serif); font-weight: 600; font-size: 15px;
    color: var(--ink); letter-spacing: -0.01em; white-space: nowrap;
    display: flex; align-items: center; gap: 10px;
  }
  .brand .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
  .tb-filter-toggle {
    background: transparent; border: 1px solid var(--line-strong);
    border-radius: var(--radius); padding: 7px 12px; font-size: 12.5px;
    color: var(--ink-2); cursor: pointer; display: inline-flex;
    align-items: center; gap: 6px; white-space: nowrap;
  }
  .tb-filter-toggle:hover { background: var(--bg-alt); color: var(--ink); }
  .tb-filter-toggle.has-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .tb-filter-toggle svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
  .tb-filter-toggle .badge {
    background: var(--gold); color: var(--ink); font-size: 10.5px;
    font-weight: 700; padding: 0 5px; border-radius: 999px; min-width: 16px;
    text-align: center; line-height: 15px; margin-left: 2px;
  }
  .count-note { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .search-wrap { flex: 1 1 280px; position: relative; min-width: 180px; max-width: 460px; }
  .search-wrap::before {
    content: ""; position: absolute; left: 12px; top: 50%;
    width: 14px; height: 14px; transform: translateY(-50%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377808f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
    background-size: contain; background-repeat: no-repeat;
  }
  .search-wrap input {
    width: 100%; padding: 9px 12px 9px 34px; font: inherit;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--ink); outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .search-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11,58,92,0.1);
  }
  .kbd-hint {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: var(--bg-alt); color: var(--muted);
    font-size: 10.5px; padding: 2px 6px; border-radius: 4px;
    border: 1px solid var(--line); pointer-events: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  .search-wrap input:focus + .kbd-hint { display: none; }
  .view-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
  .view-toggle button {
    background: var(--panel); border: 0; padding: 7px 11px; cursor: pointer;
    font: inherit; font-size: 12px; color: var(--muted);
    border-right: 1px solid var(--line);
    display: inline-flex; align-items: center; gap: 5px;
  }
  .view-toggle button:last-child { border-right: 0; }
  .view-toggle button.active { background: var(--ink); color: var(--bg); }
  .view-toggle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
  .sort-select {
    padding: 8px 12px; font: inherit; font-size: 12.5px;
    background: var(--panel); border: 1px solid var(--line-strong);
    border-radius: var(--radius); color: var(--ink-2); cursor: pointer;
  }
  .tb-shortlist {
    position: relative; background: var(--ink); color: var(--bg); border: 0;
    border-radius: var(--radius); padding: 7px 13px; font-size: 12.5px;
    font-weight: 500; cursor: pointer; display: inline-flex;
    align-items: center; gap: 6px; white-space: nowrap;
  }
  .tb-shortlist:hover { background: var(--accent); }
  .tb-shortlist svg { width: 13px; height: 13px; fill: var(--gold); stroke: none; }
  .tb-shortlist .count-pill {
    background: var(--gold); color: var(--ink); font-size: 10.5px;
    font-weight: 700; padding: 0 6px; border-radius: 999px; min-width: 18px;
    text-align: center; line-height: 16px;
  }

  /* --- Presets row --- */
  .presets {
    max-width: 1360px; margin: 0 auto; padding: 16px 48px 0;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  }
  .presets-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted); margin-right: 4px;
  }
  .preset {
    background: var(--panel); border: 1px solid var(--line-strong);
    color: var(--ink-2); padding: 6px 12px; border-radius: 999px;
    font-size: 12.5px; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.15s;
  }
  .preset:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--ink-2); }
  .preset svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }

  /* --- Layout --- */
  .shell {
    max-width: 1360px; margin: 0 auto; padding: 26px 48px 120px;
    display: grid; gap: 36px;
    grid-template-columns: var(--sidebar-w) 1fr;
    transition: grid-template-columns 0.3s var(--ease);
  }
  .shell.filters-hidden { grid-template-columns: 0 1fr; gap: 0; }
  .shell > main { min-width: 0; }
  .shell.filters-hidden aside { opacity: 0; pointer-events: none; transform: translateX(-24px); }
  @media (max-width: 960px) {
    .shell, .shell.filters-hidden { grid-template-columns: 1fr; gap: 0; padding: 20px 20px 80px; }
    .hero { padding: 48px 20px 36px; }
    .toolbar-inner { padding: 0 20px; }
    .presets { padding: 14px 20px 0; }
    aside {
      position: fixed !important; top: 0 !important; left: 0; z-index: 35;
      background: var(--bg); width: min(340px, 88vw); height: 100vh;
      max-height: none !important;
      padding: 52px 22px 30px !important; border-right: 1px solid var(--line);
      overflow-y: auto; transform: translateX(-100%); transition: transform 0.25s var(--ease);
      opacity: 1 !important;
    }
    .shell:not(.filters-hidden) aside { transform: translateX(0); box-shadow: 8px 0 40px -10px rgba(0,0,0,0.2); pointer-events: auto; }
    .shell.filters-hidden aside { transform: translateX(-100%); pointer-events: none; }
    .drawer-close { display: inline-flex; align-items: center; justify-content: center; }
  }

  /* --- Filter rail --- */
  aside {
    position: sticky; top: calc(var(--header-h) + 16px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto; overflow-x: hidden;
    padding-right: 8px; padding-bottom: 20px;
    transition: opacity 0.2s, transform 0.25s var(--ease);
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  aside::-webkit-scrollbar { width: 6px; }
  aside::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .facet { margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .facet:last-of-type { border-bottom: none; }
  .facet-head {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; user-select: none; padding: 6px 0;
  }
  .facet-head h3 {
    font-family: var(--sans); font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); margin: 0;
  }
  .facet-head .chev {
    width: 10px; height: 10px; border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
    transition: transform 0.2s var(--ease); margin-right: 2px;
    margin-top: -4px;
  }
  .facet.collapsed .facet-head .chev { transform: rotate(-45deg); margin-top: 0; }
  .facet-body {
    display: grid; grid-template-rows: 1fr; padding-top: 8px;
    transition: grid-template-rows 0.2s var(--ease), padding 0.2s var(--ease);
  }
  .facet.collapsed .facet-body { grid-template-rows: 0fr; padding-top: 0; }
  .facet-body > div { overflow: hidden; min-height: 0; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: transparent; border: 1px solid var(--line-strong);
    cursor: pointer; font-size: 12.5px; color: var(--ink-2);
    user-select: none; transition: all 0.12s;
    font-family: inherit;
  }
  .chip:hover { background: var(--bg-alt); color: var(--ink); }
  .chip.active {
    background: var(--ink); color: var(--bg);
    border-color: var(--ink);
  }
  .chip .count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
  .chip.active .count { color: rgba(250,247,240,0.65); }
  .facet input[type=text], .facet select {
    width: 100%; padding: 8px 10px; font: inherit; font-size: 13px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--ink); outline: none;
  }
  .facet input:focus, .facet select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11,58,92,0.1);
  }
  .clear-btn {
    background: transparent; color: var(--ink-2);
    border: 1px solid var(--line-strong); font: inherit; font-size: 12px;
    padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
    width: 100%; font-weight: 500; margin-top: 14px;
  }
  .clear-btn:hover { background: var(--bg-alt); color: var(--ink); }

  /* --- Main content --- */
  .result-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 14px; gap: 12px; flex-wrap: wrap;
  }
  .result-count {
    font-family: var(--serif); font-weight: 500;
    font-size: 22px; color: var(--ink); letter-spacing: -0.01em;
  }
  .result-count .dim { color: var(--muted); font-weight: 400; }
  .result-actions {
    display: flex; align-items: center; gap: 10px; font-size: 12.5px;
  }
  .density-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
  .density-toggle button {
    background: var(--panel); border: 0; padding: 6px 10px; cursor: pointer;
    font: inherit; font-size: 11.5px; color: var(--muted);
    border-right: 1px solid var(--line);
  }
  .density-toggle button:last-child { border-right: 0; }
  .density-toggle button.active { background: var(--ink); color: var(--bg); }

  .active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; min-height: 0; }
  .active-filter {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gold-soft); color: var(--gold);
    font-size: 11.5px; font-weight: 500;
    padding: 4px 10px; border-radius: 999px; cursor: pointer;
    border: 1px solid transparent; transition: border-color 0.15s;
  }
  .active-filter:hover { border-color: var(--gold); }
  .active-filter::after { content: "×"; opacity: 0.7; font-size: 13px; line-height: 1; }

  /* --- Cards --- */
  .grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  }
  .grid.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
  .grid.compact .card { padding: 14px 16px 12px; min-height: 0; }
  .grid.compact .card .domain { font-size: 16px; }
  .grid.compact .card .title { -webkit-line-clamp: 1; }
  .grid.compact .card .desc { display: none; }
  .grid.compact .card .tags { margin-top: 0; }
  .grid.compact .card-footer { padding-top: 10px; }

  .card {
    position: relative;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px 20px 18px;
    display: flex; flex-direction: column; gap: 9px; min-height: 180px;
    box-shadow: var(--shadow);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
    cursor: pointer;
    opacity: 0; transform: translateY(8px); animation: cardIn 0.4s var(--ease) forwards;
  }
  @keyframes cardIn { to { opacity: 1; transform: translateY(0); } }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--line-strong);
  }
  .card .domain {
    font-family: var(--serif); font-weight: 500;
    font-size: 19px; color: var(--ink);
    letter-spacing: -0.01em; overflow-wrap: anywhere; line-height: 1.2;
    padding-right: 28px;
  }
  .card .title {
    color: var(--muted); font-size: 12.5px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card .desc {
    color: var(--ink-2); font-size: 12.5px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; margin-top: 2px;
    font-style: italic;
  }
  .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
  .tag {
    font-size: 10.5px; font-weight: 500;
    padding: 2px 8px; border-radius: 3px;
    background: var(--bg-alt); color: var(--ink-2);
    border: 1px solid transparent;
    font-variant-numeric: tabular-nums;
  }
  .tag.primary { background: transparent; color: var(--accent); border-color: var(--accent); }
  .tag.state { background: transparent; color: var(--forest); border-color: var(--forest); }
  .card-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  }
  .price {
    font-family: var(--serif); font-weight: 500;
    font-size: 19px; color: var(--gold); letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
  }
  .price.inquire {
    color: var(--muted); font-style: italic; font-size: 14px; font-weight: 400;
  }
  .visit {
    font-size: 12px; font-weight: 500; color: var(--accent);
    display: inline-flex; align-items: center; gap: 4px;
  }
  .visit:hover { color: var(--accent-hover); }
  .card .star-btn {
    position: absolute; top: 14px; right: 14px;
    width: 26px; height: 26px; border: 0; background: transparent;
    cursor: pointer; padding: 0; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: #c2b894; transition: color 0.15s, background 0.15s, transform 0.12s;
  }
  .card .star-btn:hover { background: var(--gold-softer); color: var(--gold); transform: scale(1.1); }
  .card .star-btn.starred { color: var(--gold); }
  .card .star-btn.starred:hover { transform: scale(1.1); }
  .card .star-btn svg { width: 16px; height: 16px; fill: currentColor; }

  /* --- Table view --- */
  .table-wrap {
    position: relative;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow-x: auto; overflow-y: hidden;
    box-shadow: var(--shadow);
    -webkit-overflow-scrolling: touch;
  }
  @media (max-width: 720px) {
    .table-wrap table { min-width: 720px; }
  }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  th {
    text-align: left; padding: 12px 14px; font-size: 10.5px;
    font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); border-bottom: 1px solid var(--line);
    background: var(--bg-alt); white-space: nowrap;
  }
  td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  tr:last-child td { border-bottom: 0; }
  tr:hover td { background: var(--bg-alt); cursor: pointer; }
  td.domain-cell { font-family: var(--serif); font-weight: 500; font-size: 15px; }
  td.price-cell { color: var(--gold); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  td.price-cell.inquire { color: var(--muted); font-style: italic; font-weight: 400; }
  td.star-cell { width: 36px; padding-left: 14px; padding-right: 0; }
  td.star-cell button {
    background: transparent; border: 0; cursor: pointer; padding: 4px;
    color: var(--line-strong); border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
  }
  td.star-cell button:hover { color: var(--gold); background: var(--bg); }
  td.star-cell button.starred { color: var(--gold); }
  td.star-cell svg { width: 14px; height: 14px; fill: currentColor; }

  .empty {
    grid-column: 1 / -1; text-align: center;
    padding: 80px 20px; color: var(--muted); font-size: 14px;
    background: var(--panel); border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
  }
  .empty .empty-title {
    font-family: var(--serif); font-size: 24px; color: var(--ink-2); margin-bottom: 10px;
  }
  .empty .empty-actions {
    display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap;
  }

  /* --- Modal --- */
  .modal-backdrop {
    position: fixed; inset: 0; background: rgba(20,24,31,0.45);
    display: none; align-items: center; justify-content: center; z-index: 100;
    padding: 24px; backdrop-filter: blur(4px);
    animation: fadeIn 0.18s ease;
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  .modal-backdrop.open { display: flex; }
  .modal {
    background: var(--panel); border-radius: var(--radius-lg);
    max-width: 560px; width: 100%; padding: 34px 38px;
    max-height: calc(100vh - 48px); overflow-y: auto;
    box-shadow: 0 24px 60px -16px rgba(20,24,31,0.3);
    border: 1px solid var(--line);
    animation: slideUp 0.22s var(--ease);
  }
  @media (max-width: 560px) {
    .modal-backdrop { padding: 12px; }
    .modal { padding: 24px 20px; border-radius: var(--radius); }
    .modal h2 { font-size: 22px; }
    .modal .row .v { max-width: 60%; overflow-wrap: anywhere; }
  }
  .modal h2 {
    font-family: var(--serif); font-weight: 500; font-size: 28px;
    letter-spacing: -0.02em; margin: 0 0 4px; overflow-wrap: anywhere;
    color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  }
  .modal h2 .copy-btn {
    background: var(--bg-alt); border: 1px solid var(--line);
    font-size: 10.5px; padding: 3px 8px; border-radius: 4px;
    color: var(--muted); font-family: var(--sans); font-weight: 500;
    letter-spacing: 0.05em; cursor: pointer;
    text-transform: uppercase;
  }
  .modal h2 .copy-btn:hover { color: var(--ink); background: var(--bg); }
  .modal .modal-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
  .modal .row {
    display: flex; justify-content: space-between; padding: 9px 0;
    border-bottom: 1px solid var(--line); font-size: 13px;
  }
  .modal .row:last-of-type { border-bottom: none; }
  .modal .row .k {
    color: var(--muted); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
  }
  .modal .row .v { color: var(--ink); text-align: right; max-width: 70%; }
  .modal .row.price-row .v { color: var(--gold); font-family: var(--serif); font-size: 18px; }
  .modal-desc {
    margin: 18px 0 0; padding: 14px 16px; background: var(--bg-alt);
    border-radius: var(--radius); color: var(--ink-2);
    font-size: 13.5px; line-height: 1.55; font-style: italic;
    border-left: 3px solid var(--gold);
  }
  .modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
  .btn {
    font: inherit; font-size: 13px; font-weight: 500;
    padding: 10px 18px; border-radius: var(--radius); cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid transparent;
    transition: all 0.15s;
  }
  .btn.primary { background: var(--ink); color: var(--bg); }
  .btn.primary:hover { background: var(--accent); }
  .btn.secondary { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
  .btn.secondary:hover { background: var(--bg-alt); color: var(--ink); }
  .btn.gold { background: var(--gold); color: var(--bg); }
  .btn.gold:hover { background: #a57f1a; }

  /* --- Banner --- */
  .banner {
    background: var(--gold-softer); border: 1px solid var(--line-strong);
    border-left: 3px solid var(--gold);
    color: var(--gold); padding: 12px 16px; border-radius: var(--radius);
    font-size: 12.5px; margin-bottom: 20px;
  }
  .banner code {
    background: rgba(138,104,19,0.12); padding: 1px 6px; border-radius: 3px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px;
  }

  /* --- Shortlist tray --- */
  .tray {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--panel); border-top: 1px solid var(--line);
    box-shadow: var(--shadow-tray);
    padding: 14px 20px; transform: translateY(100%);
    transition: transform 0.25s var(--ease);
  }
  .tray.open { transform: translateY(0); }
  .tray-inner {
    max-width: 1360px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  }
  .tray h4 {
    font-family: var(--serif); font-weight: 500; font-size: 16px;
    margin: 0; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap;
  }
  .tray h4 .count { color: var(--gold); }
  .tray-items {
    flex: 1 1 300px; display: flex; gap: 6px; flex-wrap: wrap;
    max-height: 80px; overflow-y: auto; padding: 2px;
  }
  .tray-item {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-alt); border: 1px solid var(--line);
    font-size: 12px; padding: 3px 4px 3px 10px; border-radius: 4px;
    font-family: var(--serif);
  }
  .tray-item button {
    background: transparent; border: 0; color: var(--muted);
    cursor: pointer; padding: 0 4px; font-size: 14px; line-height: 1;
  }
  .tray-item button:hover { color: var(--danger); }
  .tray-actions { display: flex; gap: 8px; flex-wrap: wrap; }

  /* --- Toast --- */
  .toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--ink); color: var(--bg); padding: 10px 18px;
    border-radius: var(--radius); font-size: 13px; z-index: 200;
    opacity: 0; transition: opacity 0.2s, transform 0.2s var(--ease);
    pointer-events: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* --- Keyboard hint dialog --- */
  .kbd {
    display: inline-block; background: var(--bg-alt); color: var(--ink-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px; padding: 1px 6px; border-radius: 4px;
    border: 1px solid var(--line); margin: 0 2px;
  }

  /* --- Screen-reader-only labels --- */
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }

  /* --- Mobile drawer backdrop --- */
  .sidebar-backdrop {
    position: fixed; inset: 0; z-index: 34;
    background: rgba(20,24,31,0.42);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.22s var(--ease);
  }
  body.drawer-open { overflow: hidden; }
  body.drawer-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  @media (min-width: 961px) { .sidebar-backdrop { display: none !important; } }

  /* --- Drawer close (mobile only) --- */
  .drawer-close {
    display: none;
    position: absolute; top: 8px; right: 8px;
    width: 40px; height: 40px; border: 0;
    background: transparent; color: var(--ink-2);
    font-size: 22px; line-height: 1; cursor: pointer;
    border-radius: var(--radius);
  }
  .drawer-close:hover { background: var(--bg-alt); color: var(--ink); }
  @media (max-width: 960px) {
    .drawer-close { display: inline-flex !important; align-items: center; justify-content: center; }
  }

  /* --- Filter toggle open state --- */
  .tb-filter-toggle.is-open { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .tb-filter-toggle.is-open:hover { background: var(--accent); }

  /* --- Truncation banner --- */
  .truncation-banner {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--gold-softer); border: 1px solid var(--line-strong);
    border-left: 3px solid var(--gold);
    padding: 10px 14px; border-radius: var(--radius);
    font-size: 12.5px; color: var(--ink-2);
    margin-bottom: 14px;
  }
  .truncation-banner strong { color: var(--ink); font-weight: 600; }
  .truncation-banner[hidden] { display: none; }

  /* --- Chip press feedback + touch-device override --- */
  .chip:active { background: var(--bg-alt); }
  @media (hover: none) {
    .chip:hover { background: transparent; color: var(--ink-2); }
    .chip.active:hover { background: var(--ink); color: var(--bg); }
    .card:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
  }

  /* --- Shortcut help button + popover --- */
  .tb-help-wrap { position: relative; display: inline-flex; }
  .tb-help {
    background: transparent; border: 1px solid var(--line-strong);
    border-radius: var(--radius); width: 30px; height: 30px;
    color: var(--muted); cursor: pointer; font-weight: 600;
    font-size: 13px; padding: 0;
  }
  .tb-help:hover { background: var(--bg-alt); color: var(--ink); }
  .shortcut-pop {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 14px 16px;
    box-shadow: var(--shadow-hover); z-index: 40;
    font-size: 12.5px; color: var(--ink-2); min-width: 240px;
  }
  .shortcut-pop h4 {
    font-family: var(--serif); font-weight: 500; font-size: 15px;
    margin: 0 0 10px; color: var(--ink); letter-spacing: -0.01em;
  }
  .shortcut-pop dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; }
  .shortcut-pop dt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
  .shortcut-pop dd { margin: 0; color: var(--ink-2); }
  .shortcut-pop[hidden] { display: none; }

  /* --- Tap-target bumps on mobile --- */
  @media (max-width: 600px) {
    .card .star-btn { width: 32px; height: 32px; top: 10px; right: 10px; }
    .card .star-btn svg { width: 18px; height: 18px; }
    td.star-cell button { padding: 8px; }
    td.star-cell svg { width: 16px; height: 16px; }
    .facet-head { padding: 10px 0; }
    .view-toggle button { padding: 9px 11px; }
  }

  /* --- Responsive toolbar (≤600px) --- */
  @media (max-width: 600px) {
    .toolbar { height: auto; }
    .toolbar-inner {
      flex-wrap: wrap; gap: 8px;
      padding: 10px 16px;
    }
    .toolbar-inner .brand,
    .toolbar-inner .count-note,
    .search-wrap .kbd-hint,
    .tb-help-wrap { display: none; }
    .search-wrap { flex: 1 1 100%; order: 1; min-width: 0; max-width: none; }
    .tb-filter-toggle { order: 0; }
    .sort-select { order: 2; flex: 1 1 140px; }
    .view-toggle { order: 3; }
    .tb-shortlist { order: 4; margin-left: auto; }
  }
  @media (max-width: 480px) {
    .view-toggle button .vt-label { display: none; }
    .view-toggle button { padding: 9px 12px; gap: 0; }
  }
  @media (max-width: 380px) { .stats { grid-template-columns: 1fr; } }
