:root {
  --bg: #080809;
  --panel: #100b0d;
  --red: #ee334b;
  --red-bright: #fa4057;
  --wine: #331116;
  --ink: #efebeb;
  --muted: #a49b9e;
  --dim: #7e7277;
  --line: #2b2024;
  --mono: Consolas, "Lucida Console", "Courier New", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.6 var(--mono); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid #f692b3; outline-offset: 4px; }
::selection { color: #fff; background: #a71930; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -70px; left: 20px; padding: 12px 16px; background: var(--red); color: #fff; }
.skip-link:focus { top: 12px; }

.shop-header { display: flex; align-items: center; gap: 32px; height: 90px; max-width: 1600px; margin: auto; padding: 0 4.5%; border-bottom: 1px solid var(--line); }
.shop-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 700; letter-spacing: -.6px; }
.shop-brand img { border-radius: 8px; }
.shop-nav { display: flex; align-items: stretch; gap: 30px; align-self: stretch; margin-left: auto; font-size: 11px; color: var(--muted); }
.shop-nav a { display: flex; align-items: center; position: relative; }
.shop-nav a:hover, .shop-nav a[aria-current] { color: #f5e8ed; }
.shop-nav a[aria-current]:after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--red); }
.cart-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 9px 11px; border: 1px solid #50303a; border-radius: 3px; background: #140d10; font-size: 11px; }
.cart-trigger:hover { border-color: #c94361; background: #241016; }
.cart-trigger svg { width: 17px; height: 17px; color: #d29eaf; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 5px; background: #481b2a; border-radius: 3px; color: #fba8bf; font-size: 10px; }

.shop-main { max-width: 1600px; margin: 0 auto; padding: 0 4.5% 70px; }
.catalog-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 35px; padding: 52px 0 42px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: #b69da6; font-size: 9px; letter-spacing: 1.6px; line-height: 1.7; }
.small-cross { color: var(--red); font-size: 21px; font-weight: 400; line-height: 1; }
.index-code { margin-left: 12px; color: #70525e; }
h1 { margin: 16px 0 10px; font-size: clamp(54px, 6.6vw, 94px); font-weight: 400; line-height: 1.02; letter-spacing: -6px; }
h1 > span:first-child { color: var(--red); }
.title-dot { color: var(--red); }
.intro-description { margin: 0; color: #a8999f; font-size: 11px; }
.intro-meta { padding-left: 36px; border-left: 1px solid var(--line); }
.meta-primary { display: flex; align-items: center; gap: 17px; color: #a38d97; font-size: 8px; letter-spacing: 1.5px; line-height: 1.8; }
.meta-number { color: #d7bbc6; font-size: 63px; font-weight: 400; line-height: 1; letter-spacing: -5px; }
.meta-secondary { display: flex; gap: 22px; margin-top: 18px; color: #806a75; font-size: 8px; letter-spacing: .55px; }

.catalog-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-top: 1px solid #4c2935; }
.filter-panel { padding: 25px 23px 0 0; border-right: 1px solid var(--line); }
.filter-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 22px; margin-bottom: 3px; border-bottom: 1px solid var(--line); }
.filter-panel-title h2 { margin: 0; color: #e0ccd4; font-size: 10px; font-weight: 400; }
.filter-panel-title > span { color: #8d5b6d; font-size: 15px; }
.filter-section { margin-top: 19px; }
.filter-section > label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #b198a3; font-size: 9px; }
.filter-hint { color: #745e69; font-size: 8px; }
.select-wrap { position: relative; min-width: 0; }
.select-wrap select { width: 100%; min-width: 0; min-height: 38px; appearance: none; padding: 9px 29px 9px 10px; border: 1px solid #3c2831; border-radius: 2px; background: #130d10; color: #d7c0cb; font-size: 10px; cursor: pointer; }
.select-wrap select:hover { border-color: #745063; }
.select-wrap > span { position: absolute; top: 8px; right: 10px; color: #a16c82; pointer-events: none; }
.select-wrap option { background: #160d12; }
.filter-input { width: 100%; min-width: 0; min-height: 38px; padding: 9px 10px; border: 1px solid #3c2831; border-radius: 2px; background: #130d10; color: #efc9d8; font-size: 11px; letter-spacing: .8px; }
.filter-input::placeholder { color: #755b68; }
.reset-filters { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 22px; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; color: #d498ae; font-size: 9px; text-align: left; }
.reset-filters:disabled { color: #66505b; }
.reset-filters:not(:disabled):hover { color: #ffc1d8; }
.index-note { margin-top: 40px; color: #806a75; }
.index-note-line { display: block; width: 24px; height: 1px; background: var(--red); }
.index-note p { margin: 14px 0 17px; font-size: 9px; line-height: 1.9; }
.index-note > span:last-child { color: #59464f; font-size: 7px; letter-spacing: .7px; }

.records-panel { min-width: 0; padding: 23px 0 0 24px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.search-wrap { position: relative; flex: 1; max-width: 370px; min-width: 130px; }
.search-wrap svg { position: absolute; top: 11px; left: 12px; width: 16px; height: 16px; color: #937080; pointer-events: none; }
.search-wrap input { width: 100%; height: 39px; padding: 10px 12px 10px 37px; border: 1px solid #3a2931; border-radius: 3px; background: #110c0f; color: #eedce4; font-size: 10px; }
.search-wrap input::placeholder { color: #856b77; }
.sort-wrap { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.sort-wrap > label { color: #917b86; font-size: 9px; }
.sort-wrap select { width: 168px; font-size: 9px; }
.records-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 18px; }
.records-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 12px; font-weight: 400; color: #e5d5dd; }
.records-heading h2 > span { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; padding: 1px 5px; border: 1px solid #54313f; border-radius: 3px; color: #b98a9d; font-size: 9px; }
.records-heading p { margin: 0; color: #816b77; font-size: 8px; }
.records-table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #733d53 #160f13; overscroll-behavior-x: contain; border: 1px solid #35242c; border-bottom: 0; border-radius: 3px 3px 0 0; }
.records-table { width: 100%; min-width: 965px; border-collapse: collapse; white-space: nowrap; text-align: left; }
.records-table th { padding: 12px 10px; border-bottom: 1px solid #432b36; background: #170f13; color: #8f7381; font-size: 8px; font-weight: 400; letter-spacing: .2px; text-transform: uppercase; }
.records-table td { height: 68px; padding: 10px; border-bottom: 1px solid var(--line); color: #c5adb9; font-size: 10px; }
.records-table tr { background: #0c090b; }
.records-table tbody tr:nth-child(even) { background: #100b0e; }
.records-table tbody tr:hover { background: #1c1017; }
.records-table .record-code-cell { padding-left: 13px; color: #ead7e0; }
.record-code { display: flex; align-items: center; gap: 10px; }
.record-code > span:last-child { font-size: 10px; letter-spacing: -.2px; }
.record-plate { position: relative; display: block; flex-shrink: 0; width: 29px; height: 39px; overflow: hidden; border: 1px solid #7a3b53; border-radius: 4px; background: linear-gradient(145deg, #7c2445, #210d17); }
.record-plate:after { content: ""; position: absolute; top: 7px; right: -9px; width: 32px; height: 32px; border: 1px solid #d783a348; border-radius: 50%; box-shadow: 0 0 0 7px #e186a313; }
.tone-obsidian { background: linear-gradient(150deg, #4b4250, #130f18); border-color: #6b5b70; }
.tone-meridian { background: linear-gradient(140deg, #703f48, #221019); border-color: #a56d79; }
.tone-afterlight { background: linear-gradient(145deg, #62434f, #251620); border-color: #987384; }
.records-table .issuer-cell { color: #d9c8d0; }
.collection-tag { display: inline-block; padding: 3px 6px; border: 1px solid #4a2c3b; border-radius: 3px; color: #b9869d; font-size: 8px; }
.country-cell > span, .country-cell > small { display: block; }
.country-cell > small { margin-top: 2px; color: #775f6d; font-size: 8px; }
.records-table .reference-cell { color: #8e7280; font-size: 10px; letter-spacing: .8px; }
.records-table .bin-cell { color: #b28c9f; font-size: 10px; letter-spacing: .35px; }
.records-table .price-cell { color: #ebc4d3; text-align: right; }
.price-heading { text-align: right; }
.record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.view-record, .add-record { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border: 1px solid #4b2c3a; border-radius: 3px; background: #201019; color: #cc99ae; font-size: 9px; }
.view-record { gap: 9px; padding: 7px 9px; }
.view-record > span { color: #ec7da2; }
.add-record { width: 32px; font-size: 17px; }
.view-record:hover, .add-record:not(:disabled):hover { border-color: #ac446a; background: #381429; color: #ffd6e6; }
.add-record:disabled { opacity: .55; color: #ddabc0; }
.catalog-footline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: #705964; font-size: 7px; letter-spacing: .6px; }
.catalog-footline > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.tiny-dot { width: 4px; height: 4px; border-radius: 50%; background: #b32c50; }
.loading-records { text-align: center; }
.empty-state { padding: 60px 20px; border: 1px solid #35242c; text-align: center; }
.empty-glyph { display: block; color: #9d4263; font-size: 41px; line-height: 1; }
.empty-state h3 { margin: 17px 0 9px; color: #e6cfd9; font-size: 15px; font-weight: 400; }
.empty-state p { margin: 0 0 22px; color: #947986; font-size: 10px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 43px; padding: 11px 15px; border: 1px solid #6e314a; border-radius: 3px; background: transparent; color: #d6a4b9; font-size: 10px; }
.primary-button { border-color: #b42e54; background: #b9274d; color: #fff0f7; }
.primary-button:hover:not(:disabled) { border-color: #fa708f; background: #dd335e; }
.secondary-button:hover { border-color: #b8567b; background: #2a1220; color: #fcd2e3; }
.primary-button:disabled { border-color: #52303e; background: #28151e; color: #886574; box-shadow: none; }
.shop-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1600px; margin: 0 auto; padding: 25px 4.5% 30px; border-top: 1px solid var(--line); color: #806974; font-size: 8px; letter-spacing: .4px; }
.shop-footer a:hover { color: #efb3cc; }
.shop-footer > span > span { margin: 0 10px; color: #c14467; }
.noscript-note { padding: 20px; text-align: center; color: #c49aad; }
.catalog-toast { position: fixed; z-index: 40; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 17px; border: 1px solid #96506a; border-radius: 4px; background: #301523; color: #f6cadd; box-shadow: 0 12px 36px #0009; font-size: 11px; }

dialog { color: var(--ink); background: #110b0f; border: 1px solid #6a344b; box-shadow: 0 25px 110px #000b; }
dialog::backdrop { background: #030204d9; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid #54303f; border-radius: 3px; background: #21111a; color: #d0a2b5; font-size: 23px; line-height: 1; }
.dialog-close:hover { color: #ffe1ed; border-color: #bd5b7e; }
.record-dialog { width: min(900px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 32px; border-radius: 7px; }
.record-dialog-topline { display: flex; align-items: center; gap: 20px; padding-right: 40px; margin-bottom: 33px; }
.record-dialog-topline > span:last-child { color: #936d80; font-size: 9px; }
.record-dialog-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 35px; }
.art-stage { min-width: 0; padding: 26px 16px; background: radial-gradient(ellipse at 50% 50%, #75284a30, transparent 70%), #0b080b; border: 1px solid #30202a; border-radius: 5px; }
.card-art { position: relative; aspect-ratio: 1.57; width: 100%; overflow: hidden; border: 1px solid #8a4c66; border-radius: 13px; background: linear-gradient(140deg, #6f2346, #260e20 70%); box-shadow: 0 20px 35px #0009; }
.card-art:before, .card-art:after { content: ""; position: absolute; width: 220px; height: 220px; top: -115px; right: -70px; border: 1px solid #f5bdd33d; border-radius: 50%; box-shadow: 0 0 0 20px #f9b3d10b, 0 0 0 42px #f9b3d108; }
.card-art:after { top: auto; bottom: -160px; right: 30px; width: 290px; height: 290px; border-color: #e999be28; }
.card-art.tone-obsidian { background: linear-gradient(135deg, #4d3b53, #16121d); border-color: #776383; }
.card-art.tone-meridian { background: linear-gradient(135deg, #8b505d, #321523); border-color: #b47182; }
.card-art.tone-afterlight { background: linear-gradient(135deg, #785061, #30202e); border-color: #a27d90; }
.card-art-issuer { position: absolute; z-index: 1; top: 21px; left: 23px; color: #f9e1ed; font-size: clamp(14px, 2vw, 20px); letter-spacing: -.4px; }
.card-art-collection { position: absolute; z-index: 1; top: 52px; left: 24px; color: #cf9fb7; font-size: 8px; text-transform: uppercase; letter-spacing: 1.1px; }
.card-art-reference { position: absolute; z-index: 1; top: 54%; left: 24px; color: #ead0df; font-size: clamp(10px, 1.5vw, 15px); letter-spacing: 1px; white-space: nowrap; }
.card-art-id { position: absolute; z-index: 1; bottom: 20px; left: 24px; font-size: 8px; color: #bd8ba3; }
.card-art-mark { position: absolute; z-index: 1; bottom: 17px; right: 22px; color: #ebc6d9; font-size: 11px; font-weight: 700; }
.card-art-mark > span { margin-left: 3px; color: #f47da3; }
.art-caption { display: block; margin-top: 25px; color: #725766; font-size: 7px; letter-spacing: .8px; text-align: center; }
.art-caption > span { margin: 0 4px; }
.record-details { min-width: 0; }
.record-details h2 { margin: 8px 0 20px; color: #f0d9e5; font-size: 30px; line-height: 1.15; letter-spacing: -1.4px; font-weight: 400; }
.record-details dl { margin: 0; }
.record-details dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #36232d; }
.record-details dt { color: #907281; font-size: 9px; }
.record-details dd { margin: 0; color: #d8b8c9; font-size: 10px; text-align: right; overflow-wrap: anywhere; }
.record-detail-price { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; }
.record-detail-price > span { color: #987584; font-size: 9px; }
.record-detail-price > strong { color: #f3c4d9; font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: -1px; }
.record-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.record-detail-actions > button { min-width: 0; gap: 10px; font-size: 9px; }

.cart-dialog { position: fixed; inset: 0 0 0 auto; width: min(430px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%; margin: 0; padding: 34px 26px 25px; border: 0; border-left: 1px solid #66364b; border-radius: 0; overflow-y: auto; }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-dialog h2 { margin: 16px 0 2px; color: #f5dfea; font-size: 43px; line-height: 1.1; font-weight: 400; letter-spacing: -2px; }
.cart-dialog-subtitle { margin: 8px 0 24px; color: #8d6e7e; font-size: 9px; }
.cart-empty { margin: 20px 0 auto; padding: 28px 0; text-align: center; }
.cart-empty > span { color: #814a62; font-size: 26px; }
.cart-empty h3 { margin: 18px 0 9px; color: #ddc1cf; font-size: 15px; font-weight: 400; }
.cart-empty p { max-width: 265px; margin: 0 auto 25px; color: #8b6b7c; font-size: 10px; line-height: 1.9; }
.cart-items { display: grid; gap: 0; padding: 0; margin: 0 0 25px; list-style: none; }
.cart-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid #3d2632; }
.cart-item .record-plate { width: 36px; height: 48px; }
.cart-item h3 { margin: 0 0 4px; color: #e8cbd9; font-size: 11px; font-weight: 400; }
.cart-item p { margin: 0; color: #987589; font-size: 9px; }
.cart-item-actions { display: grid; justify-items: end; gap: 7px; }
.cart-item-price { color: #dfadc3; font-size: 12px; }
.remove-item { padding: 3px 0 3px 8px; border: 0; background: none; color: #966577; font-size: 8px; text-decoration: underline; text-underline-offset: 3px; }
.remove-item:hover { color: #f3b0cc; }
.cart-totals { margin-top: auto; padding-top: 20px; border-top: 1px solid #714056; }
.cart-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 22px; color: #b48b9e; font-size: 11px; }
.cart-totals strong { color: #f3c5d9; font-size: 30px; font-weight: 400; letter-spacing: -1.3px; }
.cart-buy { width: 100%; min-height: 49px; }

@media (max-width: 1200px) {
  .catalog-layout { grid-template-columns: 173px minmax(0, 1fr); }
  .filter-panel { padding-right: 18px; }
  .records-panel { padding-left: 18px; }
}
@media (max-width: 960px) {
  .records-table { display: block; min-width: 0; white-space: normal; }
  .records-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .records-table tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .records-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 12px; padding: 14px; border: 1px solid #3b2631; border-radius: 3px; background: #100b0e; }
  .records-table td { display: block; height: auto; min-width: 0; padding: 0; border: 0; font-size: 10px; }
  .records-table td:before { content: attr(data-label); display: block; margin-bottom: 4px; color: #755b69; font-size: 7px; text-transform: uppercase; letter-spacing: .6px; }
  .records-table .record-code-cell { grid-column: 1/-1; padding: 0 0 11px; margin-bottom: 1px; border-bottom: 1px solid #37212e; }
  .records-table .record-code-cell:before, .records-table .actions-cell:before { display: none; }
  .record-code > span:last-child { font-size: 12px; }
  .record-plate { width: 25px; height: 34px; }
  .records-table .reference-cell { font-size: 8px; letter-spacing: .45px; }
  .records-table .price-cell { text-align: left; font-size: 12px; }
  .records-table .actions-cell { align-self: end; }
  .record-actions { justify-content: flex-end; }
  .records-table-wrap { overflow: visible; border: 0; }
  .view-record, .add-record { min-height: 35px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .search-wrap { max-width: none; }
  .sort-wrap { justify-content: flex-end; }
  .sort-wrap select { min-height: 34px; }
  .records-heading { margin-top: 20px; }
  .records-heading p { max-width: 125px; text-align: right; line-height: 1.6; }
}
@media (max-width: 700px) {
  .shop-header { height: 75px; gap: 19px; padding-inline: 5%; }
  .shop-nav { gap: 18px; }
  .shop-brand { font-size: 17px; gap: 8px; }
  .shop-brand img { width: 30px; height: 30px; }
  .cart-trigger { margin-left: auto; }
  .shop-main { padding: 0 5% 45px; }
  .catalog-intro { grid-template-columns: 1fr; gap: 24px; padding: 35px 0 27px; }
  h1 { margin: 14px 0 12px; font-size: 65px; letter-spacing: -4.7px; }
  .intro-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .meta-number { font-size: 36px; letter-spacing: -2px; }
  .meta-primary { gap: 13px; font-size: 7px; }
  .meta-secondary { display: grid; gap: 4px; margin: 0; font-size: 7px; }
  .catalog-layout { display: block; }
  .filter-panel { padding: 20px 0 19px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 13px 12px; }
  .filter-panel-title { grid-column: 1/-1; padding-bottom: 13px; margin-bottom: 2px; }
  .filter-section { margin: 0; min-width: 0; }
  .filter-section > label { margin-bottom: 6px; font-size: 8px; }
  .select-wrap select { font-size: 10px; min-height: 40px; }
  .filter-input { min-height: 40px; }
  .reset-filters { grid-column: 1/-1; justify-content: flex-end; gap: 12px; margin: 0; padding: 8px 0 0; border: 0; }
  .index-note { display: none; }
  .records-panel { padding: 21px 0 0; }
  .catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .sort-wrap { display: block; }
  .sort-wrap > label { display: none; }
  .sort-wrap select { width: 143px; min-height: 39px; font-size: 8px; padding-left: 8px; }
  .search-wrap { min-width: 0; }
  .record-dialog { padding: 28px 22px; }
  .record-dialog-grid { grid-template-columns: 1fr; gap: 25px; }
  .record-dialog-topline { margin-bottom: 24px; }
  .art-stage { padding: 21px; }
  .card-art { max-width: 390px; margin: auto; }
  .card-art-issuer { font-size: 19px; }
  .card-art-reference { font-size: 13px; }
  .art-caption { margin-top: 20px; }
  .record-details h2 { font-size: 29px; }
  .shop-footer { padding-inline: 5%; font-size: 7px; }
}
@media (max-width: 480px) {
  .shop-nav { display: none; }
  .shop-brand { font-size: 16px; }
  .cart-trigger { gap: 8px; font-size: 10px; }
  .catalog-intro { padding-top: 28px; }
  h1 { font-size: 59px; }
  .intro-description { font-size: 10px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .records-table tbody { grid-template-columns: 1fr; gap: 11px; }
  .records-table tbody tr { gap: 13px 20px; padding: 16px; }
  .records-table td { font-size: 11px; }
  .records-table .reference-cell { font-size: 10px; }
  .records-table .price-cell { font-size: 15px; }
  .record-code > span:last-child { font-size: 13px; }
  .record-plate { width: 27px; height: 36px; }
  .view-record, .add-record { min-height: 39px; }
  .add-record { width: 38px; }
  .view-record { padding-inline: 12px; font-size: 10px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .sort-wrap { display: flex; justify-content: flex-end; }
  .sort-wrap > label { display: block; }
  .sort-wrap select { width: 155px; min-height: 35px; }
  .records-heading { margin-top: 23px; }
  .records-heading p { max-width: 150px; }
  .shop-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .record-dialog { padding: 28px 17px 22px; }
  .art-stage { padding: 17px 12px; }
  .card-art-issuer { top: 18px; left: 19px; font-size: 17px; }
  .card-art-collection { top: 44px; left: 20px; font-size: 7px; }
  .card-art-reference { left: 20px; font-size: 11px; letter-spacing: .8px; }
  .card-art-id { left: 20px; bottom: 15px; }
  .card-art-mark { right: 18px; bottom: 12px; }
  .cart-dialog { padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Compact inventory layout; colors inherit the original theme. */
.inventory-shop { font: 12px/1.45 "Segoe UI", Arial, sans-serif; }
.inventory-shop .shop-header { height: 70px; padding-inline: 24px; }
.inventory-shop .shop-brand { font-family: var(--mono); }
.inventory-shop .shop-nav { font-size: 12px; }
.inventory-shop .cart-trigger { min-height: 36px; padding-block: 7px; font-size: 12px; }
.inventory-shop .cart-count { font-size: 11px; }
.inventory-shop .shop-main { max-width: 1600px; padding: 0 24px 32px; }
.inventory-shop .catalog-intro { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 0 19px; }
.inventory-shop .intro-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.inventory-shop .intro-copy .eyebrow { order: 1; font-size: 10px; letter-spacing: 1px; }
.inventory-shop h1 { margin: 0; font: 400 35px/1.2 var(--mono); letter-spacing: -2px; }
.inventory-shop .intro-description { display: none; }
.inventory-shop .intro-meta { display: block; padding: 0; border: 0; }
.inventory-shop .meta-primary { gap: 10px; font-size: 9px; letter-spacing: .8px; }
.inventory-shop .meta-number { font-size: 30px; letter-spacing: -1.5px; }
.inventory-shop .meta-secondary { display: none; }
.inventory-shop .catalog-layout { display: block; border-top: 1px solid var(--line); }
.inventory-shop .filter-panel { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; padding: 13px 15px; border: 1px solid var(--line); border-top: 0; }
.inventory-shop .filter-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; margin: 0; border: 0; }
.inventory-shop .filter-section { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; margin: 0; }
.inventory-shop .filter-section > label { display: flex; flex-wrap: wrap; gap: 2px 5px; justify-content: flex-start; margin: 0; font-size: 12px; }
.inventory-shop .filter-hint { display: none; }
.inventory-shop .select-wrap select, .inventory-shop .filter-input { min-height: 34px; padding: 7px 27px 7px 9px; border-radius: 2px; font-size: 12px; }
.inventory-shop .select-wrap > span { top: 6px; }
.inventory-shop .filter-input { padding-right: 9px; font-family: var(--mono); letter-spacing: .5px; }
.inventory-shop .reset-filters { grid-column: auto; justify-self: end; justify-content: center; align-self: center; gap: 9px; width: auto; min-height: 32px; margin: 0; padding: 6px 11px; border: 1px solid var(--line); border-radius: 2px; font-size: 12px; }
.inventory-shop .index-note { display: none; }
.inventory-shop .records-panel { padding: 14px 0 0; }
.inventory-shop .catalog-toolbar { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 15px; }
.inventory-shop .search-wrap { max-width: 380px; min-width: 150px; }
.inventory-shop .search-wrap input { height: 34px; font-size: 12px; }
.inventory-shop .search-wrap svg { top: 9px; }
.inventory-shop .sort-wrap { display: flex; gap: 8px; }
.inventory-shop .sort-wrap > label { display: block; font-size: 12px; }
.inventory-shop .sort-wrap select { width: 172px; font-size: 12px; }
.inventory-shop .records-heading { margin: 13px 0 9px; }
.inventory-shop .records-heading h2 { font-size: 13px; font-weight: 600; }
.inventory-shop .records-heading h2 > span { min-width: 23px; font-size: 11px; }
.inventory-shop .records-heading p { max-width: none; font-size: 12px; }
.inventory-shop .records-table-wrap { display: block; width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 2px 2px 0 0; }
.inventory-shop .records-table { display: table; width: 100%; min-width: 1060px; table-layout: auto; border-collapse: collapse; white-space: nowrap; }
.inventory-shop .records-table thead { position: static; display: table-header-group; width: auto; height: auto; overflow: visible; clip-path: none; }
.inventory-shop .records-table tbody { display: table-row-group; }
.inventory-shop .records-table tbody tr { display: table-row; padding: 0; border: 0; border-radius: 0; }
.inventory-shop .records-table th { padding: 10px 9px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .1px; text-transform: none; }
.inventory-shop .records-table td { display: table-cell; height: 39px; padding: 6px 9px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 12px; line-height: 1.35; vertical-align: middle; }
.inventory-shop .records-table td:before { display: none; content: none; }
.inventory-shop .records-table td:last-child, .inventory-shop .records-table th:last-child { border-right: 0; }
.inventory-shop .records-table .network-cell { min-width: 105px; }
.inventory-shop .network-badge { display: inline-block; min-width: 69px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 2px; font-size: 12px; line-height: 1.2; font-weight: 700; text-align: center; }
.inventory-shop .records-table .bin-cell, .inventory-shop .records-table .expiry-cell, .inventory-shop .records-table .zip-cell { font-family: var(--mono); font-size: 12px; letter-spacing: .1px; }
.inventory-shop .records-table .level-cell, .inventory-shop .records-table .class-cell { text-transform: uppercase; }
.inventory-shop .records-table .country-cell { min-width: 67px; }
.inventory-shop .country-cell > span { display: inline; font-size: 12px; }
.inventory-shop .records-table .state-cell { min-width: 78px; }
.inventory-shop .records-table .issuer-cell { min-width: 165px; max-width: 250px; white-space: normal; }
.inventory-shop .records-table .price-cell { min-width: 65px; text-align: right; font: 12px/1.35 var(--mono); }
.inventory-shop .record-actions { gap: 5px; }
.inventory-shop .view-record, .inventory-shop .add-record { min-height: 29px; border-radius: 2px; font-size: 12px; line-height: 1.15; }
.inventory-shop .view-record { gap: 7px; padding: 6px 8px; }
.inventory-shop .add-record { width: 46px; min-width: 46px; padding: 6px; }
.inventory-shop .add-record:disabled { opacity: .6; }
.inventory-shop .catalog-footline { padding: 12px 0; font-size: 10px; }
.inventory-shop .empty-state p { font-size: 12px; }
.inventory-shop .shop-footer { padding: 20px 24px; font-size: 10px; }
.inventory-shop .record-details h2 { max-width: 100%; overflow-wrap: anywhere; line-height: 1.2; }
.inventory-shop .record-details dt { font-size: 11px; }
.inventory-shop .record-details dd { font-size: 12px; }
.inventory-shop .record-dialog-topline > span:last-child, .inventory-shop .cart-dialog-subtitle { font-size: 11px; }
.inventory-shop .cart-item h3 { font-size: 12px; }
.inventory-shop .cart-item p, .inventory-shop .remove-item { font-size: 11px; }

@media (max-width: 800px) {
  .inventory-shop .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .inventory-shop .intro-copy .eyebrow { display: none; }
  .inventory-shop .shop-header { padding-inline: 18px; }
  .inventory-shop .shop-main { padding-inline: 18px; }
  .inventory-shop .shop-footer { padding-inline: 18px; }
}
@media (max-width: 560px) {
  .inventory-shop .shop-header { height: 65px; gap: 14px; padding-inline: 12px; }
  .inventory-shop .shop-main { padding-inline: 12px; }
  .inventory-shop .catalog-intro { padding: 15px 0; gap: 16px; }
  .inventory-shop h1 { font-size: 29px; letter-spacing: -1.7px; }
  .inventory-shop .meta-number { font-size: 24px; }
  .inventory-shop .meta-primary { font-size: 8px; gap: 7px; }
  .inventory-shop .filter-panel { padding: 11px; gap: 10px; }
  .inventory-shop .filter-section { display: block; }
  .inventory-shop .filter-section > label { margin-bottom: 5px; font-size: 11px; }
  .inventory-shop .select-wrap select, .inventory-shop .filter-input { min-height: 35px; font-size: 12px; }
  .inventory-shop .reset-filters { min-height: 35px; align-self: end; }
  .inventory-shop .catalog-toolbar { flex-wrap: wrap; gap: 9px; }
  .inventory-shop .search-wrap { flex-basis: 100%; max-width: none; }
  .inventory-shop .sort-wrap { margin-left: auto; }
  .inventory-shop .records-heading p { font-size: 11px; }
  .inventory-shop .records-heading h2 { font-size: 12px; }
  .inventory-shop .records-table td { height: 41px; }
  .inventory-shop .shop-footer { padding-inline: 12px; font-size: 10px; }
}

/* New inventory elements use the existing black and burgundy palette. */
.inventory-shop .filter-panel { background: var(--panel); }
.inventory-shop .network-badge { border-color: #785361; background: #e8dde2; color: #29151e; }
.inventory-shop .network-mastercard { border-color: #775361; background: #34222b; color: #ead5df; }
.inventory-shop .catalog-footline { flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0; }
.inventory-shop .catalog-pagination { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.inventory-shop .pagination-button { min-height: 34px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--ink); font: inherit; font-size: 12px; }
.inventory-shop .pagination-button:hover:not(:disabled) { border-color: #8d4763; background: var(--wine); }
.inventory-shop .pagination-button:disabled { color: var(--muted); opacity: .45; }
.inventory-shop #page-summary { min-width: 96px; color: var(--muted); font-size: 12px; text-align: center; }
.inventory-shop .records-table { min-width: 1260px; }
.inventory-shop .buy-record { display: inline-flex; align-items: center; justify-content: center; min-height: 29px; padding: 6px 9px; border: 1px solid #4b2c3a; border-radius: 2px; background: #201019; color: #cc99ae; font: inherit; font-size: 12px; line-height: 1.15; }
.inventory-shop .buy-record:hover:not(:disabled) { border-color: #ac446a; background: #381429; color: #ffd6e6; }
.inventory-shop .buy-record:disabled { opacity: .6; }
.inventory-shop .add-record { width: 34px; min-width: 34px; padding: 6px; }
.inventory-shop .add-record svg { width: 16px; height: 16px; }
.inventory-shop .view-record { min-width: 56px; padding: 6px 8px; }
.inventory-shop .check-record { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; min-height: 29px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); color: var(--muted); font: inherit; font-size: 12px; line-height: 1.15; }
.inventory-shop .check-record:disabled { opacity: .4; cursor: default; box-shadow: none; }
.inventory-shop .network-visa { border-color: #e7c56d; background: #fffef5; color: #074ba5; box-shadow: inset 0 -3px 0 #f0ba29; font-weight: 800; font-style: italic; letter-spacing: .2px; text-transform: uppercase; }
.inventory-shop .network-mastercard { position: relative; padding-left: 36px; border-color: #805447; background: #191a20; color: #fff4e8; font-weight: 700; }
.inventory-shop .network-mastercard:before, .inventory-shop .network-mastercard:after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translateY(-50%); }
.inventory-shop .network-mastercard:before { left: 7px; background: #eb172e; }
.inventory-shop .network-mastercard:after { left: 16px; background: #ff9b12; opacity: .95; }
.inventory-shop .network-american-express { border-color: #64b6ec; background: #126bb2; color: #fff; font-weight: 700; letter-spacing: -.15px; }
.inventory-shop .network-discover { border-color: #ff9c37; background: linear-gradient(160deg, #fff 60%, #f58b24 61%); color: #211d1d; font-weight: 800; text-transform: uppercase; letter-spacing: -.3px; }
.inventory-shop .network-maestro { position: relative; padding-left: 36px; border-color: #506f98; background: #172034; color: #eff7ff; font-weight: 700; }
.inventory-shop .network-maestro:before, .inventory-shop .network-maestro:after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translateY(-50%); }
.inventory-shop .network-maestro:before { left: 7px; background: #1684db; }
.inventory-shop .network-maestro:after { left: 16px; background: #ed334c; opacity: .95; }
.inventory-shop .records-table .ssn-cell { min-width: 54px; text-align: center; }
.inventory-shop .ssn-yes, .inventory-shop .name-yes, .inventory-shop .record-details dd.name-yes { color: #63df90; font-weight: 600; }
.inventory-shop .records-table .name-cell { min-width: 44px; text-align: center; }
.inventory-shop .records-table .phone-heading { width: 76px; white-space: normal; line-height: 1.2; }
.inventory-shop .records-table .phone-cell { min-width: 64px; text-align: center; }
.inventory-shop .phone-yes { color: #63df90; font-weight: 600; }
.inventory-shop .phone-no { color: var(--muted); }
.inventory-shop .record-address-section { margin-top: 12px; padding: 0 0 13px; border-bottom: 1px solid var(--line); }
.inventory-shop .record-address-section h3 { margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 500; }
.inventory-shop #record-address { color: var(--ink); font: normal 12px/1.65 var(--mono); white-space: pre-line; overflow-wrap: anywhere; }
.inventory-shop .ssn-no { color: var(--muted); }
.inventory-shop .records-table th, .inventory-shop .records-table td { padding-inline: 6px; }
.inventory-shop .records-table .country-cell { min-width: 50px; }
.inventory-shop .records-table .state-cell { min-width: 45px; }
.inventory-shop .records-table .ssn-cell { min-width: 44px; }
@media (max-width: 560px) {
  .inventory-shop #catalog-range { flex-basis: 100%; }
  .inventory-shop .catalog-pagination { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 8px 6px; }
  .inventory-shop #page-summary { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  .inventory-shop .pagination-button { grid-row: 2; min-width: 0; padding-inline: 5px; }
}
@media (min-width: 1100px) { .inventory-shop .filter-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 365px) { .inventory-shop .pagination-button { font-size: 11px; } }

/* Keep long catalogs within the compact table frame. */
.inventory-shop .records-table-wrap{max-height:min(65vh,720px);overflow:auto}
.inventory-shop .records-table th{position:sticky;top:0;z-index:2}
.inventory-shop .card-art-issuer{max-width:calc(100% - 46px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.inventory-shop .intro-copy{gap:4px}
.inventory-shop .catalog-subtitle{flex-basis:100%;margin:0;color:var(--muted);font:12px/1.5 var(--mono);letter-spacing:.3px}
.inventory-shop .check-record{border-color:#4b2c3a;background:#201019;color:#cc99ae;cursor:pointer;opacity:1}
.inventory-shop .check-record:hover{border-color:#ac446a;background:#381429;color:#ffd6e6}
