:root {
  --navy: #071434;
  --green: #1a7f50;
  --mint: #2bb675;
  --ink: #16191d;
  --muted: #606b76;
  --paper: #f9fbfa;
  --line: #d9e3df;
  --well: #edf4f1;
  --saving: #15683f;
  --rip-studio: #111c2d;
  --rip-shadow: #080f1b;
  --rip-light: #263447;
  --rip-text: #dfe7f1;
  --rip-muted: #b7c8d7;
  --rip-accent: #e7c47c;
  --rip-stock-edge: #a8aaad;
  --rip-stock-shadow: #595e66;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
select,
input {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mint);
}
button {
  cursor: pointer;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 15px;
  background: white;
  z-index: 99;
}
.preview-note {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 9px 20px;
  background: #edf4f1;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.preview-note span {
  font-weight: 400;
  letter-spacing: 0;
}
.shipping-bar {
  background: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 11px 5%;
  font-size: 12px;
}
header {
  min-height: 94px;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-right: auto;
  flex-shrink: 0;
}
.brand > span {
  border-left: 1px solid var(--line);
  padding-left: 23px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14px;
}
header nav button {
  padding: 0;
}
header nav a:hover,
header nav button:hover {
  color: var(--green);
}
.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}
.header-actions button {
  padding: 9px 0;
  white-space: nowrap;
}
.header-actions span {
  font-size: 12px;
  margin-left: 5px;
}
.bag-button span {
  background: var(--navy);
  color: white;
  padding: 5px 8px;
  border-radius: 50%;
}
.hero {
  background: var(--navy);
  color: white;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 7%;
  padding: 60px 7% 65px;
  align-items: center;
  min-height: 500px;
  overflow: hidden;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 700;
  line-height: 1.6;
}
.hero .eyebrow {
  color: #b7c8d7;
}
.hero h1 {
  font-size: clamp(40px, 4.1vw, 66px);
  font-weight: 650;
  line-height: 1.07;
  letter-spacing: -0.055em;
  margin: 20px 0 24px;
}
.hero em {
  font-style: normal;
  color: var(--mint);
}
.hero-copy > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  color: #bac6d5;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--green);
  color: white;
  padding: 16px 22px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  min-height: 48px;
}
.button:hover {
  filter: brightness(1.07);
}
.button.light {
  background: var(--paper);
  color: var(--navy);
  margin-top: 28px;
}
.hero-help {
  display: block;
  color: #bac6d5;
  font-size: 12px;
  margin-top: 20px;
  padding: 0;
}
.feature-find {
  background: #edf4f1;
  color: var(--navy);
  border-radius: 10px;
  position: relative;
  transform: rotate(1.5deg);
  box-shadow: 12px 14px 0 #182a44;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  max-width: 530px;
}
.feature-art {
  padding: 28px 12px 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 275px;
}
.feature-art img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: rotate(-8deg);
  filter: drop-shadow(5px 10px 8px #07143420);
}
.feature-stamp {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.feature-copy {
  padding: 27px 22px 22px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-copy h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 12px 0 6px;
}
.feature-copy > p {
  font-size: 13px;
  color: var(--muted);
}
.feature-prices {
  display: flex;
  gap: 18px;
  margin: 25px 0 16px;
}
.feature-prices span {
  font-size: 12px;
  color: var(--muted);
}
.feature-prices strong {
  display: block;
  font-size: 29px;
  color: var(--navy);
  font-weight: 650;
  margin-top: 5px;
  letter-spacing: -0.04em;
}
.feature-prices .reference strong {
  font-size: 22px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 11px;
}
.feature-bottom {
  grid-column: 1/-1;
  border-top: 1px dashed #b7c8be;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 13px;
}
.feature-bottom button {
  font-weight: 700;
}
.saving-chip {
  background: #d9efdf;
  color: var(--saving);
  padding: 6px 9px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 650;
  display: inline-block;
  line-height: 1.3;
}
.feature-sub {
  color: #b7c8d7;
  text-align: center;
  font-size: 12px;
  margin: 23px 0 0;
}
.set-discovery {
  padding: 42px 5% 35px;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.section-heading h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin-top: 7px;
  font-weight: 650;
}
.link-button {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.set-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}
.set-tile {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  padding: 15px 14px;
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: 5px;
  min-width: 0;
}
.set-tile:hover,
.set-tile[aria-pressed="true"] {
  border-color: var(--navy);
}
.set-tile img {
  width: 47px;
  height: 58px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.set-tile strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}
.set-tile small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.set-tile > span:last-child {
  margin-left: auto;
  font-size: 16px;
}
.explore {
  padding: 46px 5% 55px;
}
.explore-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
}
.explore-heading h2 {
  font-size: 38px;
  letter-spacing: -0.05em;
  line-height: 1.2;
  font-weight: 650;
  margin-top: 8px;
}
.explore-heading > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.discovery-tabs {
  display: flex;
  gap: 9px;
  margin: 29px 0 32px;
  flex-wrap: wrap;
}
.discovery-tabs button {
  border: 1px solid var(--line);
  padding: 12px 17px;
  border-radius: 30px;
  font-size: 14px;
  background: white;
}
.discovery-tabs button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.shop-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 35px;
}
.filter-panel {
  align-self: start;
  position: sticky;
  top: 120px;
}
.search-label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d3dfda;
  background: white;
  padding: 0 12px;
  border-radius: 5px;
}
.search-field span {
  font-size: 25px;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  padding: 13px 0;
  font-size: 13px;
}
.search-field:focus-within {
  outline: 2px solid var(--green);
}
.filter-group {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.filter-group h3 {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  gap: 12px;
  margin-bottom: 13px;
}
.filter-group h3 span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.facet {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 9px 0;
  font-size: 14px;
  gap: 10px;
}
.facet small {
  font-size: 12px;
  color: var(--muted);
}
.facet .facet-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.facet .facet-name:before {
  content: "";
  display: block;
  border: 1px solid #b6c5bd;
  border-radius: 3px;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.facet[aria-pressed="true"] .facet-name:before {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: inset 0 0 0 3px white;
}
.facet[aria-pressed="true"] {
  font-weight: 650;
}
.filter-group > label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  gap: 10px;
}
.filter-group b {
  font-size: 12px;
  font-weight: 500;
}
.filter-group input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  margin: 20px 0 10px;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.reset-button {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 20px 0 0;
  padding: 0;
}
.filter-foot {
  border-left: 2px solid var(--green);
  padding: 0 0 0 14px;
  margin-top: 32px;
}
.filter-foot b {
  font-size: 14px;
  line-height: 1.6;
}
.filter-foot p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 14px;
}
.filter-foot button {
  font-size: 12px;
}
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  margin-bottom: 12px;
}
.results-toolbar p {
  font-size: 14px;
  color: var(--muted);
}
.results-toolbar p b {
  color: var(--navy);
}
.result-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}
.result-controls select {
  max-width: 220px;
  border: 0;
  background: none;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
}
.view-switch {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px;
}
.view-switch button {
  padding: 2px 8px;
  font-size: 22px;
  border-radius: 3px;
}
.view-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
}
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.active-filters:empty {
  display: none;
}
.active-filters button {
  font-size: 12px;
  background: var(--well);
  padding: 7px 10px;
  margin-bottom: 10px;
  border-radius: 3px;
}
.reference-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.reference-note b {
  padding: 0 7px;
}
.reference-note button {
  font-size: 12px;
  padding: 0;
  text-align: right;
}
.set-shelf {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  margin-bottom: 20px;
  overflow: hidden;
}
.shelf-cover {
  background: var(--tint);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
  position: relative;
}
.shelf-number {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.shelf-cover h3 {
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-top: 12px;
  font-weight: 650;
}
.shelf-cover p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 9px;
}
.shelf-cover img {
  height: 120px;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin: auto 0;
  padding: 15px 0 5px;
  transform: rotate(-5deg);
}
.shelf-cover small {
  font-size: 12px;
  margin-top: 14px;
  color: var(--muted);
}
.shelf-products {
  min-width: 0;
  padding: 0 19px;
}
.product-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.product-row:last-child {
  border: 0;
}
.row-main {
  display: grid;
  grid-template-columns: 55px minmax(120px, 1fr) minmax(140px, 1.2fr) 40px;
  gap: 14px;
  align-items: center;
}
.row-thumb {
  height: 66px;
  width: 55px;
  object-fit: contain;
}
.row-title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.row-set-name {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}
.row-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}
.row-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.row-price span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.row-price strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -0.04em;
  font-weight: 650;
  margin-top: 4px;
}
.row-price .reference strong {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
.quick-add {
  height: 40px;
  width: 40px;
  background: var(--navy);
  color: white;
  border-radius: 5px;
  font-size: 23px;
}
.quick-add:hover {
  background: var(--green);
}
.row-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0 0 69px;
}
.compare-button,
.save-button {
  font-size: 12px;
  padding: 3px 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.compare-button[aria-pressed="true"],
.save-button[aria-pressed="true"] {
  color: var(--green);
  font-weight: 650;
}
.compare-button:before {
  content: "+";
  font-size: 15px;
}
.compare-button[aria-pressed="true"]:before {
  content: "✓";
}
.save-button {
  margin-left: auto;
}
.product-details {
  margin: 8px 0 0 69px;
  font-size: 12px;
}
.product-details summary {
  cursor: pointer;
  color: var(--muted);
  list-style: none;
  display: inline-block;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-details summary:after {
  content: " +";
  text-decoration: none;
}
.product-details[open] summary:after {
  content: " −";
}
.product-details p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 10px;
  padding: 14px;
  background: var(--well);
  border-radius: 4px;
}
.neutral-chip {
  font-size: 12px;
  color: var(--muted);
  background: var(--well);
  padding: 6px 9px;
  border-radius: 3px;
}
.compact-list {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 0 22px;
}
.compact-list .row-main {
  grid-template-columns: 65px minmax(160px, 1fr) minmax(160px, 0.8fr) 40px;
}
.compact-list .row-thumb {
  width: 65px;
  height: 74px;
}
.compact-list .row-bottom,
.compact-list .product-details {
  margin-left: 79px;
}
.empty-state {
  padding: 70px 20px;
  text-align: center;
  background: var(--well);
  border-radius: 6px;
}
.empty-state h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.empty-state p {
  font-size: 15px;
  color: var(--muted);
  margin: 12px auto 22px;
  max-width: 370px;
  line-height: 1.7;
}
.closing-note {
  margin: 0 5% 50px;
  border-top: 1px solid var(--line);
  padding: 40px 0 0;
  display: grid;
  grid-template-columns: 65px 1fr 0.6fr;
  gap: 30px;
  align-items: center;
}
.asterisk {
  font-size: 70px;
  color: var(--green);
}
.closing-note h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-top: 12px;
}
.closing-note > div:last-child p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0;
}
footer {
  padding: 40px 5% 90px;
  background: var(--well);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 45px;
}
footer p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}
footer a,
footer button {
  font-size: 13px;
  display: block;
  padding: 0;
  margin-bottom: 14px;
  text-align: left;
}
footer small {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  display: block;
  max-width: 280px;
}
#toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: var(--navy);
  color: white;
  border: 1px solid #364667;
  padding: 14px 20px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  font-size: 14px;
  max-width: 90%;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#compare-tray {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(770px, 94%);
  background: var(--navy);
  color: white;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid #324362;
  border-radius: 9px;
  box-shadow: 0 10px 35px #07143435;
}
.tray-intro strong {
  font-size: 14px;
  display: block;
}
.tray-intro small {
  font-size: 12px;
  color: #b7c8d7;
  display: block;
  margin-top: 5px;
}
.tray-products {
  display: flex;
  gap: 7px;
  flex: 1;
}
.tray-product {
  position: relative;
  background: var(--paper);
  border-radius: 4px;
  padding: 4px 13px 4px 5px;
}
.tray-product img {
  width: 35px;
  height: 42px;
  object-fit: contain;
}
.tray-product button {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--navy);
  font-size: 16px;
  padding: 0 3px;
}
.tray-empty {
  border: 1px dashed #778397;
  width: 51px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b7c8d7;
  font-size: 20px;
}
.tray-clear {
  font-size: 12px;
  color: #b7c8d7;
  padding: 5px;
}
.tray-compare {
  background: var(--paper);
  color: var(--navy);
  padding: 12px 16px;
  font-size: 13px;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 9px;
  color: var(--ink);
  width: min(1040px, 94vw);
  max-height: 88dvh;
  overflow: auto;
  background: var(--paper);
  box-shadow: 0 25px 80px #07143450;
}
dialog::backdrop {
  background: #07143480;
  backdrop-filter: blur(5px);
}
.dialog-inner {
  padding: 36px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 25px;
}
.dialog-head h2 {
  font-size: 32px;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-top: 8px;
}
.dialog-head p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
}
.close {
  font-size: 28px;
  line-height: 1;
  padding: 4px;
  min-width: 36px;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 18px;
}
.compare-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  overflow: hidden;
}
.compare-art {
  padding: 20px;
  background: var(--tint);
  position: relative;
}
.compare-art img {
  height: 170px;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.compare-art button {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 20px;
}
.compare-copy {
  padding: 20px;
}
.compare-copy h3 {
  font-size: 18px;
  line-height: 1.4;
  min-height: 50px;
}
.compare-copy > p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.compare-fact {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.compare-fact strong {
  font-size: 19px;
  font-weight: 650;
}
.compare-fact.big strong {
  color: var(--green);
  font-size: 27px;
}
.compare-fact .saving-chip {
  font-size: 11px;
}
.compare-copy .button {
  width: 100%;
  margin-top: 18px;
}
.compare-disclaimer {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 22px;
}
.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(490px, 100vw);
  border-radius: 0;
  padding: 30px;
}
.cart-row {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.cart-row img {
  width: 65px;
  height: 80px;
  object-fit: contain;
}
.cart-row h3 {
  font-size: 15px;
  line-height: 1.5;
}
.cart-row small {
  font-size: 12px;
  color: var(--muted);
}
.cart-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  gap: 10px;
  font-size: 13px;
}
.quantity button {
  font-size: 18px;
  padding: 4px 9px;
}
.cart-summary {
  margin-top: 24px;
}
.cart-summary .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-top: 17px;
}
.cart-summary .total {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 19px;
}
.shipping-message {
  background: var(--well);
  padding: 13px;
  font-size: 13px;
  color: var(--saving);
  line-height: 1.6;
}
.cart-market {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  padding: 15px 0;
}
.acknowledge {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 20px;
}
.acknowledge input {
  accent-color: var(--green);
  margin-top: 4px;
}
.acknowledge button {
  padding: 0;
  text-decoration: underline;
  font-size: 12px;
}
.cart-summary .button {
  width: 100%;
}
.checkout-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 14px;
}
.info-body {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.8;
}
.info-body h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 24px 0 8px;
}
.info-body p {
  color: var(--muted);
}
.info-example {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  background: var(--well);
  padding: 22px;
  border-radius: 5px;
  margin: 25px 0;
}
.info-example span {
  font-size: 12px;
  color: var(--muted);
}
.info-example strong {
  font-size: 27px;
  display: block;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.info-body small {
  font-size: 12px;
  line-height: 1.8;
  display: block;
  margin-top: 25px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  body {
    max-width: 1800px;
    margin: auto;
  }
  .hero {
    padding-top: 75px;
    padding-bottom: 75px;
  }
  .hero h1 {
    font-size: 76px;
  }
  .set-shelf {
    grid-template-columns: 230px 1fr;
  }
  .shelf-cover img {
    height: 150px;
  }
}
@media (max-width: 1150px) {
  header nav {
    gap: 15px;
  }
  .brand > span {
    display: none;
  }
  .hero {
    padding: 45px 5%;
    gap: 4%;
  }
  .hero h1 {
    font-size: 49px;
  }
  .feature-find {
    grid-template-columns: 0.8fr 1fr;
  }
  .feature-art {
    padding-left: 4px;
    padding-right: 0;
  }
  .feature-art img {
    height: 180px;
  }
  .feature-copy {
    padding-right: 15px;
  }
  .feature-copy h2 {
    font-size: 22px;
  }
  .feature-prices {
    gap: 13px;
  }
  .feature-prices strong {
    font-size: 25px;
  }
  .set-tile {
    padding: 12px 9px;
    gap: 7px;
  }
  .set-tile img {
    width: 35px;
    height: 46px;
  }
  .set-tile strong {
    font-size: 12px;
  }
  .set-tile > span:last-child {
    display: none;
  }
  .shop-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
  }
  .set-shelf {
    grid-template-columns: 135px minmax(0, 1fr);
  }
  .shelf-cover {
    padding: 20px 13px;
  }
  .shelf-cover h3 {
    font-size: 20px;
  }
  .shelf-products {
    padding: 0 14px;
  }
  .row-main {
    grid-template-columns: 43px minmax(95px, 1fr) minmax(125px, 1fr) 34px;
    gap: 9px;
  }
  .row-thumb {
    width: 43px;
    height: 55px;
  }
  .row-title {
    font-size: 14px;
  }
  .row-price {
    gap: 9px;
  }
  .row-price strong {
    font-size: 18px;
  }
  .row-price .reference strong {
    font-size: 16px;
  }
  .quick-add {
    width: 34px;
    height: 38px;
  }
  .row-bottom,
  .product-details {
    margin-left: 52px;
    gap: 10px;
  }
  .save-button {
    margin-left: 0;
  }
  .compact-list .row-main {
    grid-template-columns: 50px minmax(115px, 1fr) minmax(125px, 1fr) 34px;
  }
  .compact-list .row-thumb {
    width: 50px;
  }
  .compact-list .row-bottom,
  .compact-list .product-details {
    margin-left: 59px;
  }
  .closing-note {
    grid-template-columns: 45px 1fr 0.6fr;
  }
  .asterisk {
    font-size: 50px;
  }
}
@media (max-width: 800px) {
  html {
    scroll-padding-top: 85px;
  }
  .preview-note {
    padding: 8px 15px;
    font-size: 10px;
    gap: 10px;
  }
  .preview-note span {
    font-size: 11px;
  }
  .shipping-bar {
    justify-content: center;
    padding: 9px 15px;
    font-size: 11px;
  }
  .shipping-bar > span {
    display: none;
  }
  header {
    padding: 16px 20px;
    min-height: 74px;
    gap: 15px;
  }
  .brand img {
    width: 125px;
    height: auto;
  }
  header nav {
    display: none;
  }
  .header-actions {
    gap: 17px;
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 34px 22px 42px;
    gap: 33px;
  }
  .hero h1 {
    font-size: clamp(40px, 8vw, 62px);
    margin: 17px 0 20px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }
  .hero .eyebrow {
    font-size: 11px;
  }
  .hero .button {
    margin-top: 21px;
  }
  .hero-help {
    display: none;
  }
  .feature-find {
    max-width: 520px;
    margin: auto;
    grid-template-columns: 1fr 1.1fr;
    transform: rotate(1deg);
  }
  .feature-art {
    min-height: 220px;
    padding: 28px 8px 7px;
  }
  .feature-art img {
    height: 185px;
  }
  .feature-copy {
    padding: 24px 18px 20px 5px;
  }
  .feature-copy h2 {
    font-size: 23px;
  }
  .feature-prices {
    margin: 20px 0 14px;
    gap: 20px;
  }
  .feature-prices strong {
    font-size: 28px;
  }
  .feature-prices .reference strong {
    font-size: 22px;
  }
  .feature-bottom {
    padding: 14px 17px;
  }
  .feature-sub {
    margin-top: 22px;
    font-size: 11px;
  }
  .set-discovery {
    padding: 30px 20px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading .eyebrow {
    font-size: 10px;
  }
  .section-heading .link-button {
    font-size: 12px;
  }
  .set-nav {
    display: flex;
    overflow: auto;
    gap: 10px;
    padding: 2px 0 6px;
    scrollbar-width: thin;
  }
  .set-tile {
    flex: 0 0 175px;
    padding: 12px;
    gap: 10px;
  }
  .set-tile strong {
    font-size: 13px;
  }
  .set-tile img {
    width: 40px;
    height: 51px;
  }
  .explore {
    padding: 32px 20px;
  }
  .explore-heading h2 {
    font-size: 32px;
  }
  .explore-heading .eyebrow {
    font-size: 10px;
  }
  .explore-heading > p {
    display: none;
  }
  .discovery-tabs {
    gap: 7px;
    margin: 22px 0;
  }
  .discovery-tabs button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 21px;
  }
  .filter-panel {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    padding: 18px;
    background: var(--well);
    border-radius: 5px;
  }
  .search-label {
    grid-column: 1/-1;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .filter-group {
    padding: 20px 0 10px;
    border: 0;
  }
  .filter-group h3 {
    margin-bottom: 8px;
  }
  .filter-group .facet {
    padding: 7px 0;
    font-size: 12px;
    gap: 6px;
  }
  .facet .facet-name {
    gap: 7px;
  }
  .facet small {
    font-size: 11px;
  }
  .filter-group:nth-of-type(4) {
    grid-column: 1/-1;
    padding-bottom: 0;
  }
  .filter-group input[type="range"] {
    margin: 16px 0 5px;
  }
  .filter-foot {
    display: none;
  }
  .reset-button {
    grid-column: 1/-1;
    justify-self: start;
    margin-top: 13px;
  }
  .results-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  .results-toolbar p {
    font-size: 13px;
  }
  .result-controls {
    gap: 10px;
  }
  .result-controls select {
    font-size: 12px;
    max-width: 170px;
  }
  .view-switch button {
    font-size: 20px;
    padding: 2px 7px;
  }
  .reference-note {
    font-size: 11px;
    gap: 10px;
    align-items: start;
    line-height: 1.6;
  }
  .reference-note span {
    max-width: 145px;
  }
  .reference-note button {
    font-size: 11px;
    max-width: 135px;
  }
  .set-shelf {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }
  .shelf-cover {
    display: grid;
    grid-template-columns: 1fr 70px;
    padding: 18px 20px;
    gap: 0 15px;
  }
  .shelf-number {
    font-size: 10px;
  }
  .shelf-cover h3 {
    font-size: 25px;
    margin-top: 7px;
    grid-column: 1;
  }
  .shelf-cover p {
    grid-column: 1;
    margin-top: 6px;
    font-size: 12px;
  }
  .shelf-cover img {
    grid-column: 2;
    grid-row: 1/5;
    width: 70px;
    height: 95px;
    margin: 0;
    padding: 0;
    align-self: center;
  }
  .shelf-cover small {
    display: none;
  }
  .shelf-products {
    padding: 0 16px;
  }
  .product-row {
    padding: 18px 0;
  }
  .row-main {
    grid-template-columns: 40px 1fr 34px;
    gap: 10px;
  }
  .row-thumb {
    width: 40px;
    height: 53px;
    grid-column: 1;
    grid-row: 1;
  }
  .row-title {
    font-size: 14px;
  }
  .row-meta {
    font-size: 12px;
    margin-top: 3px;
  }
  .row-price {
    grid-row: 2;
    grid-column: 2/4;
    justify-content: start;
    grid-template-columns: 100px 1fr;
    margin-top: 4px;
    gap: 15px;
  }
  .row-price span {
    font-size: 11px;
  }
  .row-price strong {
    font-size: 23px;
  }
  .row-price .reference strong {
    font-size: 19px;
  }
  .quick-add {
    grid-row: 1;
    grid-column: 3;
    width: 34px;
    height: 36px;
  }
  .row-bottom {
    margin: 12px 0 0 50px;
    gap: 10px;
  }
  .saving-chip,
  .neutral-chip {
    font-size: 11px;
    padding: 5px 7px;
  }
  .compare-button,
  .save-button {
    font-size: 11px;
  }
  .product-details {
    margin: 7px 0 0 50px;
    font-size: 11px;
  }
  .product-details p {
    font-size: 13px;
    padding: 12px;
  }
  .compact-list {
    padding: 0 16px;
  }
  .compact-list .row-main {
    grid-template-columns: 40px 1fr 34px;
  }
  .compact-list .row-thumb {
    width: 40px;
    height: 55px;
  }
  .compact-list .row-bottom,
  .compact-list .product-details {
    margin-left: 50px;
  }
  .closing-note {
    margin: 5px 20px 35px;
    padding-top: 28px;
    grid-template-columns: 35px 1fr;
    gap: 20px;
  }
  .asterisk {
    font-size: 43px;
  }
  .closing-note h2 {
    font-size: 24px;
  }
  .closing-note .eyebrow {
    font-size: 10px;
  }
  .closing-note > div:last-child {
    grid-column: 2;
  }
  .closing-note > div:last-child p {
    font-size: 13px;
    margin: 0 0 10px;
  }
  footer {
    grid-template-columns: 1fr 1fr;
    padding: 30px 20px 100px;
    gap: 30px 20px;
  }
  footer > div:first-child {
    grid-column: 1/-1;
  }
  footer p {
    margin-top: 12px;
  }
  footer a,
  footer button {
    font-size: 12px;
  }
  footer small {
    font-size: 11px;
  }
  #compare-tray {
    bottom: 10px;
    padding: 12px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .tray-intro {
    flex: 1;
  }
  .tray-intro strong {
    font-size: 12px;
  }
  .tray-intro small {
    font-size: 11px;
  }
  .tray-products {
    flex: 0;
  }
  .tray-product img {
    width: 25px;
    height: 33px;
  }
  .tray-product {
    padding-right: 11px;
  }
  .tray-empty {
    width: 41px;
  }
  .tray-clear {
    font-size: 11px;
  }
  .tray-compare {
    width: 100%;
    min-height: 40px;
    padding: 10px 15px;
  }
  .dialog-inner {
    padding: 23px 18px;
  }
  .dialog-head h2 {
    font-size: 28px;
  }
  .dialog-head p:not(.eyebrow) {
    font-size: 13px;
  }
  .compare-grid {
    gap: 10px;
    grid-template-columns: repeat(var(--columns), minmax(180px, 1fr));
    overflow: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }
  .compare-card {
    scroll-snap-align: start;
  }
  .compare-art {
    padding: 14px;
  }
  .compare-art img {
    height: 120px;
  }
  .compare-copy {
    padding: 14px;
  }
  .compare-copy h3 {
    font-size: 15px;
    min-height: 44px;
  }
  .compare-fact {
    font-size: 11px;
    gap: 5px;
  }
  .compare-fact strong {
    font-size: 16px;
  }
  .compare-fact.big strong {
    font-size: 22px;
  }
  .compare-copy .button {
    font-size: 12px;
    padding: 12px;
  }
  .drawer {
    padding: 25px 20px;
  }
  .info-body {
    font-size: 14px;
  }
  .info-example {
    gap: 10px;
    padding: 15px;
  }
  .info-example strong {
    font-size: 23px;
  }
  .info-example span {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

:root {
  --set-tint: #e8eef4;
  /* Shelf tints, cycled across live sets in shelf order. */
  --set-tint-1: #e7eee7;
  --set-tint-2: #e8eef4;
  --set-tint-3: #f3eedc;
  --set-tint-4: #f0e8e1;
  --set-tint-5: #f0eee8;
  --set-tint-6: #e9ecf3;
}
[hidden] {
  display: none !important;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.row-title {
  overflow-wrap: anywhere;
}

/* Clear purchase terms stay beside the checkout action at every screen size. */
.final-sale { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 8px; padding: 16px; background: #f4f5f8; border: 1px solid #dce1ec; border-radius: 12px; font-size: 13px; line-height: 1.55; cursor: pointer; }
.final-sale input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: #071434; }
.final-sale strong { display: block; }
.signature-note { padding: 12px 0; font-size: 12px; line-height: 1.5; color: #344563; }
.policy-link { text-decoration: underline; font-size: 12px; padding: 8px 0 18px; background: none; border: 0; cursor: pointer; }

/* Live catalog: more sets than tiles, sold-out finds, collapsible set list. */
.set-tile.more-sets {
  background: transparent;
  border: 1px dashed var(--line);
  justify-content: space-between;
}
.set-tile.more-sets strong {
  color: var(--navy);
}
.facet-more {
  margin-top: 6px;
  padding: 10px 0;
  min-height: 40px;
  background: none;
  border: 0;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.product-row.sold-out .row-thumb {
  opacity: 0.45;
}
.product-row.sold-out .row-price strong {
  color: var(--muted);
}
.sold-out-label {
  font-weight: 600;
  color: var(--ink);
}

/* Phones: search stays visible; set, product and budget fold behind one button
   so finds start near the top of the page. */
.filter-toggle {
  display: none;
}
@media (max-width: 800px) {
  .filter-toggle {
    display: block;
    grid-column: 1/-1;
    margin-top: 12px;
    min-height: 44px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .filter-toggle::after {
    content: " +";
  }
  .filter-panel.open .filter-toggle::after {
    content: " −";
  }
  .filter-panel:not(.open) .filter-group,
  .filter-panel:not(.open) .reset-button,
  .filter-panel:not(.open) .filter-foot {
    display: none;
  }
  #search {
    font-size: 16px;
  }
}

/* ---------- Market: pulse, sparklines, market data dialog ---------- */
.sparkline {
  display: block;
  margin-top: 6px;
  overflow: visible;
}
.sparkline path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.55;
}
.market-button {
  font-size: 12px;
  font-weight: 650;
  padding: 3px 0;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.saving-text {
  color: var(--saving);
}
.market-pulse {
  padding: 34px 5%;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.pulse-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.pulse-head h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 4px;
}
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pulse-stat {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--well);
  border-radius: 5px;
}
.pulse-stat span,
.pulse-label {
  font-size: 12px;
  color: var(--muted);
}
.pulse-stat strong {
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pulse-stat strong.saving-text {
  color: var(--saving);
}
.pulse-stat small {
  font-size: 12px;
  color: var(--muted);
}
.pulse-movers {
  margin-top: 18px;
}
.mover-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.mover {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas: "art name move" "art spark move";
  align-items: center;
  gap: 2px 12px;
  min-height: 64px;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.mover:hover {
  border-color: var(--navy);
}
.mover img {
  grid-area: art;
  width: 40px;
  height: 48px;
  object-fit: contain;
}
.mover-name {
  grid-area: name;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mover .sparkline {
  grid-area: spark;
  margin: 0;
}
.mover-move {
  grid-area: move;
  font-size: 14px;
  font-weight: 650;
}
.feature-trend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.feature-trend .sparkline {
  margin: 0;
}
.set-market {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--ink);
}
#market-dialog {
  width: min(760px, calc(100vw - 32px));
}
.market-summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 8px 0 18px;
}
.market-art {
  width: 88px;
  height: 104px;
  object-fit: contain;
}
.market-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 26px;
}
.market-prices div {
  display: grid;
}
.market-prices span {
  font-size: 12px;
  color: var(--muted);
}
.market-prices strong {
  font-size: 28px;
  letter-spacing: -0.03em;
}
.market-prices .reference strong {
  color: var(--muted);
  font-weight: 500;
}
.market-chart-wrap {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.chart-readout {
  font-size: 13px;
  font-weight: 600;
  min-height: 1.4em;
}
.range-toggle {
  display: flex;
  gap: 4px;
}
.range-toggle button {
  min-width: 44px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 650;
  background: #fff;
  cursor: pointer;
}
.range-toggle button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.market-chart {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
  cursor: crosshair;
}
.chart-area {
  fill: var(--navy);
  opacity: 0.06;
}
.chart-line {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linejoin: round;
}
.chart-rsc {
  stroke: var(--saving);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}
.chart-guide {
  stroke: var(--line);
  stroke-width: 1;
}
.chart-dot {
  fill: var(--navy);
  stroke: #fff;
  stroke-width: 2;
}
.chart-axis {
  fill: var(--muted);
  font-size: 11px;
}
.chart-key {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.chart-key span {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2px solid var(--navy);
}
.chart-key .key-rsc {
  margin-left: 12px;
  border-top: 2px dashed var(--saving);
}
.market-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.market-stats div {
  padding: 12px;
  background: var(--well);
  border-radius: 5px;
}
.market-stats dt {
  font-size: 12px;
  color: var(--muted);
}
.market-stats dd {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 650;
}
.market-notes {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.market-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.market-source {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.market-source a {
  color: var(--navy);
}
@media (max-width: 800px) {
  .market-pulse {
    padding: 28px 20px;
  }
  .pulse-head {
    flex-direction: column;
    align-items: start;
  }
  .pulse-head h2 {
    font-size: 24px;
  }
  .pulse-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pulse-grid .pulse-stat:first-child {
    grid-column: 1/-1;
  }
  .mover-list {
    grid-template-columns: 1fr;
  }
  .market-stats {
    grid-template-columns: 1fr 1fr;
  }
  .market-prices strong {
    font-size: 24px;
  }
  .market-summary {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .market-art {
    width: 64px;
    height: 80px;
  }
  .market-button,
  .feature-trend {
    min-height: 40px;
  }
}

/* ---------- Chases and the digital pack rip ---------- */
:root {
  --chase: #b8862b;
  --chase-soft: #f6ecd7;
}
.chase-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--chase-soft);
  color: #5c4312;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.chase-chip:hover {
  box-shadow: 0 0 0 1px var(--chase) inset;
}
.feature-chase {
  margin-top: 12px;
  padding: 0;
  font-size: 13px;
  font-weight: 650;
  color: #5c4312;
  text-align: left;
  cursor: pointer;
}
.pulse-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pulse-chase {
  text-align: left;
  border: 0;
  background: linear-gradient(135deg, var(--chase-soft), #fff 70%);
  cursor: pointer;
  font: inherit;
}
.pulse-chase strong {
  color: #5c4312;
}
.contents-list {
  margin: 0 0 8px;
  padding-left: 18px;
}
#chase-dialog {
  width: min(920px, calc(100vw - 32px));
}
.chase-hero {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 10px 0 22px;
}
.chase-pitch {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.chase-list {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chase-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.chase-subhead {
  margin: 26px 0 12px;
  font-size: 18px;
}
.chase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.chase-card {
  margin: 0;
  display: grid;
  gap: 8px;
}
.chase-card figcaption {
  display: grid;
  gap: 2px;
  font-size: 12px;
}
.chase-card figcaption strong {
  font-size: 13px;
}
.chase-card figcaption span,
.chase-card figcaption small {
  color: var(--muted);
}
.chase-card figcaption b {
  font-size: 16px;
  color: var(--ink);
}
.chase-card.big figcaption b {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.card-art {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  aspect-ratio: 5 / 7;
  background: var(--well);
  box-shadow: 0 8px 24px rgba(7, 20, 52, 0.18);
  transition: transform 0.25s ease;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chase-card:hover .card-art {
  transform: translateY(-4px) rotate(-1deg);
}
/* A slow foil sweep across the card, like tilting it under a light. */
.holo::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.55) 48%, rgba(184, 134, 43, 0.25) 52%, transparent 60%);
  transform: translateX(-60%);
  animation: foil 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes foil {
  0%, 30% { transform: translateX(-60%); }
  70%, 100% { transform: translateX(60%); }
}
.rip-start {
  font-size: 16px;
}
.rate-table {
  margin-top: 18px;
  font-size: 13px;
}
.rate-table table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
}
.rate-table th,
.rate-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.rip-stage {
  margin: 8px 0 12px;
  padding: 22px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 0%, #1b2b57, var(--navy) 70%);
  color: #fff;
  overflow: hidden;
}
.rip-pack {
  position: relative;
  width: 150px;
  height: 230px;
  margin: 0 auto 18px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2bb675, #1a7f50 40%, #b8862b 75%, #f6ecd7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: shake 0.45s ease-in-out 2;
  transition: opacity 0.4s ease 0.35s, transform 0.5s ease 0.35s;
}
.rip-pack::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 26px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.35s ease;
  transform-origin: left bottom;
}
.rip-pack-set {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 0 12px;
}
.rip-pack-brand {
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 700;
  opacity: 0.85;
}
.rip-pack.opened {
  opacity: 0;
  height: 0;
  margin: 0;
  transform: translateY(-40px) scale(0.9);
  animation: none;
}
.rip-pack.opened::before {
  transform: rotate(-35deg) translateY(-30px);
}
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}
.rip-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 900px;
}
.rip-card {
  aspect-ratio: 5 / 7;
  opacity: 0;
  animation: deal 0.35s ease-out forwards;
  animation-delay: calc(0.9s + var(--i) * 0.08s);
}
.rip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: flip 0.5s ease-in-out forwards;
  animation-delay: calc(1.6s + var(--i) * 0.28s);
}
.rip-back,
.rip-front {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  backface-visibility: hidden;
}
.rip-back {
  background: repeating-linear-gradient(45deg, #13244d 0 8px, #0d1a3a 8px 16px);
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.rip-front {
  transform: rotateY(180deg);
  overflow: hidden;
  background: #fff;
}
.rip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rip-price {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(7, 20, 52, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.rip-rarity {
  position: absolute;
  left: 4px;
  top: 4px;
  right: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rip-card.hit .rip-front {
  box-shadow: 0 0 0 2px #fff, 0 0 18px 4px rgba(43, 182, 117, 0.7);
}
.rip-card.tier-big .rip-front {
  box-shadow: 0 0 0 2px #fff, 0 0 22px 6px rgba(184, 134, 43, 0.85);
}
.rip-card.tier-legendary .rip-card-inner {
  animation: flip 0.5s ease-in-out forwards, celebrate 1.2s ease-in-out 3;
  animation-delay: calc(1.6s + var(--i) * 0.28s), calc(2.2s + var(--i) * 0.28s);
}
.rip-card.tier-legendary .rip-front {
  box-shadow: 0 0 0 3px #f6ecd7, 0 0 34px 12px rgba(184, 134, 43, 0.95);
}
@keyframes deal {
  from { opacity: 0; transform: translateY(-60px) rotate(-8deg) scale(0.8); }
  to { opacity: 1; transform: none; }
}
@keyframes flip {
  to { transform: rotateY(180deg); }
}
@keyframes celebrate {
  0%, 100% { transform: rotateY(180deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.08); }
}
.rip-result {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  opacity: 0;
  animation: deal 0.4s ease-out forwards;
  animation-delay: 4.6s;
}
.rip-tally {
  font-size: 12px;
  opacity: 0.8;
}
.rip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
.rip-actions .compare-button {
  color: #fff;
}
.rip-stage .button {
  background: #fff;
  color: var(--navy);
}
@media (prefers-reduced-motion: reduce) {
  .rip-card,
  .rip-result {
    opacity: 1;
    animation: none;
  }
  .rip-card-inner {
    animation: none;
    transform: rotateY(180deg);
  }
  .holo::after {
    display: none;
  }
}
@media (max-width: 800px) {
  .pulse-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chase-hero {
    grid-template-columns: 1fr;
  }
  .chase-hero .chase-card.big {
    max-width: 220px;
    margin: 0 auto;
  }
  .rip-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }
  .rip-rarity {
    display: none;
  }
  .rip-price {
    font-size: 9px;
    padding: 1px 3px;
  }
  .chase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chase-chip {
    min-height: 40px;
  }
}
@media (max-width: 800px) {
  .pulse-grid .pulse-stat:first-child {
    grid-column: auto;
  }
}

/* ---------- Top bar: one line, one voice ---------- */
.shipping-bar {
  display: none;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  padding: 9px 5%;
  background: var(--navy);
  color: #dfe7f1;
  font-size: 12.5px;
  line-height: 1.3;
}
.topbar b {
  color: #fff;
  font-weight: 650;
}
.topbar .preview-note {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.topbar-item + .topbar-item::before {
  content: "·";
  margin-right: 22px;
  color: rgba(255, 255, 255, 0.4);
}
.topbar-more {
  padding: 0;
  color: #fff;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Brand lockup: the RSC mark + one wordmark ---------- */
.brand {
  gap: 11px;
}
.brand > .brand-word {
  display: inline;
  border: 0;
  padding: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
  font-weight: 450;
  color: var(--navy);
  white-space: nowrap;
}
.brand-word b {
  font-weight: 800;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
}
.nav-rip {
  font-weight: 650;
  color: #5c4312;
}

/* ---------- Hero actions ---------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 30px;
}
.hero-actions > .button {
  margin: 0;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.hero-actions .rip-cta {
  background: linear-gradient(135deg, #f6ecd7, #e7c47c);
  color: #3d2c0a;
  border: 0;
}

/* ---------- Rip before you buy ---------- */
.rip-shelf {
  padding: 42px 5% 38px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 20% 0%, #13244d, var(--navy) 60%);
  color: #fff;
}
.rip-shelf .eyebrow {
  color: #e7c47c;
}
.rip-shelf h2 {
  color: #fff;
}
.rip-shelf-sub {
  max-width: 560px;
  margin-top: 8px;
  color: #b7c8d7;
  font-size: 14px;
  line-height: 1.5;
}
.rip-packs {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding: 6px 2px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rip-pack-tile {
  position: relative;
  flex: 0 0 156px;
  height: 236px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px 14px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0;
  border-radius: 10px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(160deg, #2bb675, #1a7f50 38%, #0d1a3a 72%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pack-in 0.5s ease-out both;
  animation-delay: var(--delay);
}
.rip-pack-tile:nth-child(3n + 2) {
  background: linear-gradient(160deg, #e7c47c, #b8862b 38%, #0d1a3a 72%);
}
.rip-pack-tile:nth-child(3n + 3) {
  background: linear-gradient(160deg, #8fb3ff, #3a5bbf 38%, #0d1a3a 72%);
}
.rip-pack-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 24px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 6px, transparent 6px 10px);
  opacity: 0.6;
}
.rip-pack-foil {
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.45) 50%, transparent 58%);
  animation: foil 3.4s ease-in-out infinite;
  animation-delay: var(--delay);
  pointer-events: none;
}
.rip-pack-tile:hover,
.rip-pack-tile:focus-visible {
  transform: translateY(-6px) rotate(-1.5deg);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
}
.rip-pack-tile-set {
  position: relative;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.rip-pack-tile-chase {
  position: relative;
  font-size: 11px;
  opacity: 0.85;
}
.rip-pack-tile strong {
  position: relative;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #f6ecd7;
}
.rip-pack-tile-cta {
  position: relative;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
}
@keyframes pack-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- Tab bar (phones) ---------- */
.tabbar {
  display: none;
}

/* ---------- Phones: designed for the thumb ---------- */
@media (max-width: 800px) {
  .topbar {
    gap: 8px;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 12px;
  }
  .topbar-extra {
    display: none;
  }
  .topbar .preview-note {
    order: 3;
  }
  .topbar-more {
    order: 2;
    font-size: 12px;
  }
  header {
    min-height: 58px;
    padding: 9px 16px;
    gap: 12px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .brand > .brand-word {
    font-size: 19px;
  }
  .header-actions .saved-button {
    display: none;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .button {
    justify-content: space-between;
    min-height: 48px;
  }
  .rip-shelf {
    padding: 30px 16px 26px;
  }
  .rip-pack-tile {
    flex-basis: 138px;
    height: 208px;
  }
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(249, 251, 250, 0.94);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a,
  .tabbar button {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-height: 50px;
    padding: 6px 0 2px;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
  }
  .tabbar span {
    font-size: 19px;
    line-height: 1;
  }
  .tabbar button[data-action="rip-shelf"] span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e7c47c, #b8862b);
    color: #fff;
    font-size: 16px;
  }
  .tabbar a,
  .tabbar button {
    position: relative;
  }
  .tabbar b {
    position: absolute;
    top: 2px;
    left: calc(50% + 6px);
    min-width: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
  }
  .tabbar b:empty {
    display: none;
  }

  /* Product cards: picture, name, both prices on one line, actions in one swipe. */
  .product-row {
    padding: 14px 0;
  }
  .product-row .row-main {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas: "thumb title add" "thumb price price";
    gap: 6px 12px;
    align-items: start;
  }
  .product-row .row-thumb {
    grid-area: thumb;
    width: 76px;
    height: 92px;
    object-fit: contain;
  }
  .product-row .row-main > div:nth-child(2) {
    grid-area: title;
    min-width: 0;
  }
  .product-row .row-title {
    font-size: 15px;
    line-height: 1.25;
  }
  .product-row .row-meta {
    font-size: 12px;
  }
  .product-row .row-price {
    grid-area: price;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 18px;
    margin: 0;
  }
  .product-row .row-price strong {
    font-size: 20px;
  }
  .product-row .row-price .sparkline {
    display: inline-block;
    margin: 0 0 0 6px;
    vertical-align: middle;
  }
  .product-row .quick-add {
    grid-area: add;
    width: 44px;
    height: 44px;
  }
  .product-row .row-bottom {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    padding: 2px 0 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .product-row .row-bottom::-webkit-scrollbar {
    display: none;
  }
  .product-row .row-bottom > * {
    flex: none;
    white-space: nowrap;
  }
  .product-row .row-bottom .market-button,
  .product-row .row-bottom .compare-button,
  .product-row .row-bottom .save-button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
  }
  .product-row .chase-chip {
    min-height: 36px;
  }
  .product-row .product-details summary {
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  /* Pop-outs become bottom sheets. */
  dialog[open] {
    width: 100vw !important;
    max-width: 100vw;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    animation: sheet-up 0.28s ease-out;
  }
  dialog .dialog-inner {
    padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  }
  dialog .dialog-inner::before {
    content: "";
    display: block;
    width: 40px;
    height: 5px;
    margin: -10px auto 12px;
    border-radius: 999px;
    background: var(--line);
  }
  dialog .close {
    width: 44px;
    height: 44px;
  }
}
@keyframes sheet-up {
  from { transform: translateY(40px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rip-pack-tile,
  dialog[open] {
    animation: none;
  }
  .rip-pack-foil {
    display: none;
  }
}
@media (max-width: 800px) {
  /* Floating pieces sit above the tab bar, never under it. */
  #compare-tray {
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 45;
  }
  #toast {
    bottom: calc(140px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   Store layout (Sep 2026): a calmer, store-shaped shop.
   ========================================================= */
.hero {
  min-height: 0;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
}
.store {
  padding: 44px 5% 56px;
}
.store-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.store-head h2 {
  font-size: 34px;
  letter-spacing: -0.04em;
}
#result-count {
  color: var(--muted);
  font-size: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.chip-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-left: -6px;
}
.set-chips,
.format-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px;
}
.set-chips::-webkit-scrollbar,
.format-chips::-webkit-scrollbar {
  display: none;
}
.store-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 8px;
}
.store-toolbar .search-field {
  flex: 0 1 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.store-toolbar .search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
}
.format-chips {
  flex: 1;
  min-width: 0;
}
.toolbar-end {
  display: flex;
  gap: 8px;
  flex: none;
}
.deal-toggle {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.deal-toggle[aria-pressed="true"] {
  background: #d9efdf;
  border-color: #9fd3b3;
  color: var(--saving);
}
#sort {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px 18px;
  margin-top: 14px;
}
.product-grid > .empty-state,
.product-grid > p {
  grid-column: 1 / -1;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  box-shadow: 0 12px 30px rgba(7, 20, 52, 0.1);
  transform: translateY(-2px);
}
.card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: var(--well);
}
.card-img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .card-img {
  transform: scale(1.04);
}
.product-card.sold-out .card-img {
  opacity: 0.45;
}
.card-badges {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}
.badge-save {
  background: #d9efdf;
  color: var(--saving);
}
.badge-chase {
  background: var(--chase-soft);
  color: #5c4312;
}
.card-save {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  cursor: pointer;
}
.card-save[aria-pressed="true"] {
  color: var(--green);
}
.card-body {
  display: grid;
  gap: 3px;
  padding: 14px 14px 6px;
  flex: 1;
}
.card-set {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-title {
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a:hover {
  text-decoration: underline;
}
.card-meta {
  color: var(--muted);
  font-size: 12.5px;
}
.card-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
}
.card-prices strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.card-prices span {
  color: var(--muted);
  font-size: 13px;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 14px;
}
.card-add {
  flex: 1;
  justify-content: center;
  min-height: 42px;
}

/* Sell to RSC */
.sell-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 5% 56px;
  padding: 30px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--chase-soft), #fff 70%);
  border: 1px solid #ecdcb6;
}
.sell-banner h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 4px 0 6px;
}
.sell-banner p:not(.eyebrow) {
  color: var(--muted);
  max-width: 560px;
}

/* Product page */
.product-page,
.shelf-page {
  padding: 22px 5% 60px;
  max-width: 1240px;
  margin: 0 auto;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
.crumbs button {
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
}
.crumbs button:hover {
  text-decoration: underline;
}
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.pdp-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: var(--well);
  position: sticky;
  top: 110px;
}
.pdp-img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}
.pdp-chase {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  padding: 8px 12px;
}
.pdp-title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 6px 0 8px;
}
.pdp-meta {
  color: var(--muted);
}
.pdp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 22px 0 8px;
}
.pdp-price strong {
  font-size: 36px;
  letter-spacing: -0.03em;
}
.pdp-market {
  color: var(--muted);
  font-size: 16px;
}
.pdp-stock {
  font-size: 14px;
  font-weight: 600;
}
.pdp-stock.in {
  color: var(--saving);
}
.pdp-stock.out {
  color: var(--muted);
}
.pdp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}
.pdp-add {
  flex: 1 1 220px;
  justify-content: center;
  min-height: 52px;
  font-size: 16px;
}
.pdp-icon {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pdp-icon[aria-pressed="true"] {
  border-color: var(--green);
  color: var(--green);
}
.pdp-trust {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  font-size: 14px;
}
.pdp-trust li::before {
  content: "✓ ";
  color: var(--saving);
  font-weight: 700;
}
.pdp-sell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.pdp-sell div {
  display: grid;
  gap: 2px;
}
.pdp-sell strong {
  font-size: 15px;
}
.pdp-sell span {
  font-size: 13px;
  color: var(--muted);
}
/* Navy, not the green of Add to bag: selling is the secondary action here. */
.pdp-sell .button {
  flex-shrink: 0;
  background: var(--navy);
  min-height: 44px;
  padding: 12px 18px;
  gap: 12px;
}
.pdp-tabs {
  position: sticky;
  top: 94px;
  z-index: 5;
  display: flex;
  gap: 22px;
  margin: 44px 0 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow-x: auto;
  font-size: 14px;
  font-weight: 600;
}
.pdp-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 150px;
}
.pdp-section h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.pdp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.pdp-section-head h2 {
  margin: 0;
}
.pdp-buybar {
  display: none;
}
.pull-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: radial-gradient(circle at 0% 0%, #1b2b57, var(--navy) 70%);
  color: #fff;
}
.pull-banner img {
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(231, 196, 124, 0.7);
}
.pull-banner p {
  flex: 1;
}
.pull-banner .button {
  background: #fff;
  color: var(--navy);
}

/* Reviews */
.review-summary {
  font-size: 16px;
  margin-bottom: 14px;
}
.stars {
  color: #b8862b;
  letter-spacing: 2px;
}
.review {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.review h3 {
  font-size: 16px;
  margin: 4px 0;
}
.review small {
  color: var(--muted);
}
.review-write {
  margin-top: 16px;
}
.review-write summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}
.review-write summary::-webkit-details-marker {
  display: none;
}
#review-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-top: 16px;
}
#review-form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
#review-form input,
#review-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}
#review-form .hp {
  position: absolute;
  left: -9999px;
}
.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  border: 0;
  padding: 0;
}
.rating-input legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.rating-input input {
  position: absolute;
  opacity: 0;
}
.rating-input label {
  font-size: 30px;
  color: var(--line);
  cursor: pointer;
}
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #b8862b;
}
.muted {
  color: var(--muted);
}

/* Share */
.share-preview {
  display: block;
  margin: 8px auto 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(7, 20, 52, 0.25);
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  align-items: center;
}
.rip-stage .share-pull {
  background: linear-gradient(135deg, #f6ecd7, #e7c47c);
  color: #3d2c0a;
}

/* The RSC Shelf */
.shelf-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.shelf-head h1 {
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.04em;
}
.shelf-change {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.shelf-change.up {
  color: var(--saving);
}
.shelf-themes {
  display: flex;
  gap: 6px;
}
.shelf-themes button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.shelf-themes button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.shelf-chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0 6px;
}
.shelf-chart path {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke: var(--navy);
}
.shelf-chart.up path {
  stroke: var(--saving);
}
.shelf-account {
  margin: 10px 0 18px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.shelf {
  --plank: linear-gradient(#8a5a33, #6b4424);
  --wall: linear-gradient(#f6efe6, #efe3d2);
  padding: 20px 18px 6px;
  border-radius: 16px;
  background: var(--wall);
}
.shelf.theme-glass {
  --plank: linear-gradient(rgba(255, 255, 255, 0.9), rgba(200, 220, 235, 0.8));
  --wall: linear-gradient(#e8eef4, #dfe8f0);
}
.shelf.theme-midnight {
  --plank: linear-gradient(#2b3a63, #1a2547);
  --wall: radial-gradient(circle at 30% 0%, #1b2b57, #071434 70%);
  color: #fff;
}
.shelf-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 0 8px 14px;
  position: relative;
}
.shelf-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  border-radius: 3px;
  background: var(--plank);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.18);
}
.shelf-row.empty {
  display: block;
  padding: 30px 12px 40px;
  text-align: center;
}
.shelf-item {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
  font-size: 12px;
}
.shelf-box {
  position: relative;
  display: block;
}
.shelf-img {
  height: 130px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}
.shelf-box:hover .shelf-img {
  transform: translateY(-6px);
}
.shelf-qty {
  position: absolute;
  right: -6px;
  top: -6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.shelf-name {
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shelf-val b {
  font-size: 14px;
}
.shelf-remove {
  padding: 2px 0;
  font-size: 11px;
  text-decoration: underline;
  opacity: 0.7;
  cursor: pointer;
}
.shelf-add {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin: 24px 0;
  font-size: 14px;
  font-weight: 600;
}
.shelf-add input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
}
.shelf-results {
  display: grid;
  gap: 6px;
}
.shelf-result {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.shelf-result img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.shelf-sub {
  margin: 34px 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.suggestion-why {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #5c4312;
}

@media (max-width: 800px) {
  .hero {
    padding: 34px 16px 30px;
  }
  .store {
    padding: 28px 16px 40px;
  }
  .store-head h2 {
    font-size: 26px;
  }
  .store-toolbar {
    flex-wrap: wrap;
  }
  .store-toolbar .search-field {
    flex: 1 1 100%;
  }
  .store-toolbar .search-field input,
  #sort {
    font-size: 16px;
  }
  .format-chips {
    flex: 1 1 100%;
    order: 3;
  }
  .toolbar-end {
    flex: 1 1 100%;
  }
  .toolbar-end > * {
    flex: 1;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-body {
    padding: 10px 10px 4px;
  }
  .card-title {
    font-size: 13.5px;
  }
  .card-prices {
    flex-wrap: wrap;
    gap: 2px 8px;
  }
  .card-prices strong {
    font-size: 17px;
  }
  .card-prices span {
    font-size: 12px;
  }
  .card-badges .badge {
    font-size: 10.5px;
    padding: 3px 7px;
  }
  .card-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 10px 10px;
  }
  .card-actions .compare-button {
    justify-content: center;
    min-height: 32px;
  }
  .sell-banner {
    flex-direction: column;
    align-items: stretch;
    margin: 0 16px 40px;
    padding: 22px;
  }
  .product-page,
  .shelf-page {
    padding: 14px 16px 90px;
  }
  .pdp {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pdp-media {
    position: relative;
    top: 0;
  }
  .pdp-price strong {
    font-size: 30px;
  }
  .pdp-tabs {
    top: 58px;
    gap: 18px;
    margin-top: 28px;
  }
  .pdp-sell {
    flex-direction: column;
    align-items: stretch;
  }
  body.on-product .tabbar {
    display: none;
  }
  .pdp-buybar {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(249, 251, 250, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .pdp-buybar div {
    display: grid;
  }
  .pdp-buybar strong {
    font-size: 20px;
  }
  .pdp-buybar span {
    font-size: 12px;
    color: var(--muted);
  }
  .pdp-buybar .button {
    min-height: 48px;
    padding: 0 26px;
  }
  .shelf-head {
    flex-direction: column;
    align-items: stretch;
  }
  .shelf-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shelf-img {
    height: 110px;
  }
  .pull-banner {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  /* Phones: headline and two buttons, then straight into the store. */
  #hero-find {
    display: none;
  }
}

/* ---------- Chat: a quiet corner, not a pop-up ---------- */
.chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 38;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.chat-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(7, 20, 52, 0.08);
  color: var(--navy);
  cursor: pointer;
  transition: gap 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
}
.chat-launcher svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.chat-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  transition: max-width 0.25s ease;
}
.chat-launcher:hover,
.chat-launcher:focus-visible,
.chat.open .chat-launcher {
  gap: 8px;
  padding-right: 14px;
  box-shadow: 0 6px 18px rgba(7, 20, 52, 0.12);
}
.chat-launcher:hover .chat-label,
.chat-launcher:focus-visible .chat-label,
.chat.open .chat-launcher .chat-label {
  max-width: 120px;
}
.chat-dot {
  position: absolute;
  top: 5px;
  left: 31px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 2px #fff;
}
.chat-panel {
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100dvh - 140px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(7, 20, 52, 0.16);
  overflow: hidden;
  animation: chat-in 0.18s ease-out;
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.chat-head strong {
  display: block;
  font-size: 15px;
}
.chat-head span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.chat-close {
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.chat-close:hover {
  background: var(--well);
}
.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px;
  overflow-y: auto;
  list-style: none;
}
.msg {
  max-width: 82%;
  display: grid;
  gap: 3px;
}
.msg p {
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.msg small {
  font-size: 11px;
  color: var(--muted);
}
.msg.you {
  align-self: flex-end;
  text-align: right;
}
.msg.you p {
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.rsc p {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-compose textarea {
  flex: 1;
  max-height: 120px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font: inherit;
  font-size: 16px;
  resize: none;
}
.chat-compose .button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.chat-start {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
}
.chat-start label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.chat-start input,
.chat-start textarea {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}
.chat-start .hp {
  position: absolute;
  left: -9999px;
}
.chat-intro {
  font-size: 13px;
  color: var(--muted);
}
.chat-empty {
  flex: 1;
  padding: 20px 16px;
  font-size: 14px;
}
.chat-error {
  padding: 8px 16px 12px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
}
/* Room above the chat for the compare tray. */
#compare-tray {
  bottom: 80px;
}

/* ---------- Account ---------- */
.account-head h1 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.04em;
}
.account-tabs {
  display: flex;
  gap: 6px;
  margin: 20px 0 22px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.account-tabs button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.account-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--navy);
}
.account-tabs small {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--well);
  font-size: 11px;
}
.account-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.account-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.account-card + .account-card,
.account-grid + .shelf-sub {
  margin-top: 16px;
}
.account-note,
.account-signin,
.account-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.account-signin {
  background: linear-gradient(135deg, #eef3fb, #fff 70%);
}
.account-help {
  margin-top: 28px;
  background: var(--well);
  border-color: transparent;
}
.account-signin p,
.account-help p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}
.value-card .value-big {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 4px 0 2px;
}
.order-list {
  display: grid;
  gap: 14px;
}
.order-card {
  display: grid;
  gap: 12px;
}
.order-list .order-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.order-top h3 {
  font-size: 16px;
}
.status-chip {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--well);
  color: var(--ink);
}
.status-chip.done {
  background: #d9efdf;
  color: var(--saving);
}
.status-chip.active {
  background: #e8eef4;
  color: var(--navy);
}
.order-thumbs {
  display: flex;
  gap: 8px;
}
.order-thumbs img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--well);
}
.order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.order-track {
  font-size: 12px;
}
.account-movers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 800px) {
  .chat {
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
  body.on-product .chat {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .chat-launcher {
    height: 40px;
    padding: 3px;
  }
  .chat-launcher svg {
    width: 32px;
    height: 32px;
  }
  .chat.open {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
  }
  .chat.open .chat-launcher {
    display: none;
  }
  .chat-panel {
    width: 100%;
    height: min(82dvh, 640px);
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  #compare-tray {
    bottom: calc(126px + env(safe-area-inset-bottom));
  }
  .account-grid,
  .account-movers {
    grid-template-columns: 1fr;
  }
  .account-note,
  .account-signin,
  .account-help {
    flex-direction: column;
    align-items: stretch;
  }
  .value-card .value-big {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel {
    animation: none;
  }
}

/* ---------- Product photos sit on their tiles, not in white boxes ----------
   Most product photos come with their own white or off-white background. On a
   tinted tile that background showed as a floating white rectangle. Multiply
   blending drops the white into the tile colour and leaves the product itself
   untouched (the tiles are very light, so colours barely shift). */
.card-media,
.pdp-media,
.market-summary,
.feature-art,
.compare-art,
.cart-row,
.mover,
.shelf-result,
.order-thumbs {
  isolation: isolate;
}
.card-img,
.pdp-img,
.market-art,
.feature-art img,
.compare-art img,
.cart-row img,
.mover img,
.shelf-result img,
.order-thumbs img,
.chip-img,
.row-thumb,
.shelf:not(.theme-midnight) .shelf-img {
  mix-blend-mode: multiply;
}
.card-media {
  background: #f3f6f4;
}
.card-img {
  width: 86%;
  height: 86%;
}
.pdp-media {
  background: #f3f6f4;
  overflow: hidden;
}
.pdp-img {
  width: 88%;
  height: 88%;
}
/* The chase tag belongs to the photo's corner, not floating under it. */
.pdp-chase {
  top: 16px;
  bottom: auto;
}
@media (max-width: 800px) {
  .pdp-media {
    aspect-ratio: 4 / 3;
  }
  .pdp-img {
    width: 92%;
    height: 92%;
  }
  .card-img {
    width: 90%;
    height: 90%;
  }
  /* On a product page the chat mark sits above the buy bar, clear of prices. */
  body.on-product .chat-launcher {
    opacity: 0.92;
  }
}

/* A photo can never resize its card: every image is pinned inside a fixed
   frame and scaled to fit it, whatever its own shape (tall packs, wide
   collection boxes, square ETBs). */
.card-media,
.pdp-media {
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.card-media .card-img,
.pdp-media .pdp-img {
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
  object-position: center;
}
.card-badges,
.pdp-chase {
  z-index: 1;
}
.product-card:hover .card-img {
  transform: scale(1.03);
}
@media (max-width: 800px) {
  .card-media .card-img {
    inset: 5%;
    width: 90%;
    height: 90%;
  }
  .pdp-media .pdp-img {
    inset: 5%;
    width: 90%;
    height: 90%;
  }
  /* Product pages on phones: the buy bar owns the bottom; chat lives in the page. */
  body.on-product .chat:not(.open) {
    display: none;
  }
}
.pdp-trust .link-button {
  font-size: 14px;
}
.pdp-trust li.pdp-chat::before {
  content: none;
}
/* Two lines of product name, cleanly: no sliver of a third line. */
.card-title {
  line-height: 1.3;
  max-height: calc(2 * 1.3em);
}
.shelf-name {
  line-height: 1.25;
  max-height: calc(2 * 1.25em);
}

/* =========================================================
   The Rip Room: full-screen digital pack opening
   ========================================================= */
body.rip-open {
  overflow: hidden;
}
body.rip-open .chat,
body.rip-open .tabbar {
  display: none;
}
.rip-room {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 18%, #1f3264 0%, #0b1a3f 45%, #050c22 100%);
  color: #fff;
  animation: rr-in 0.25s ease-out;
}
.rip-room.leaving {
  opacity: 0;
  transition: opacity 0.2s ease;
}
@keyframes rr-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.rip-room .rr-bar {
  flex-shrink: 0;
  position: static;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rr-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.rr-title {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.rr-title strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.rr-sim {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(231, 196, 124, 0.16);
  color: #e7c47c;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.rr-stats {
  margin: 8px 0 0;
  font-size: 12px;
  color: #b7c8d7;
  text-align: center;
}
.rr-link {
  padding: 0;
  border: 0;
  background: none;
  color: #e7c47c;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rr-stage {
  flex: 1;
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0;
}
.rr-truth {
  width: min(560px, 100%);
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  color: #8ea3bd;
}
.rr-chase {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  text-align: center;
}
.rr-chase b {
  color: #f6ecd7;
}
.rr-stage:has(.rr-pack-3d.rr-tear-started) .rr-chase,
.rr-stage:has(.rr-pack-3d.torn) .rr-chase {
  opacity: 0;
}

/* The sealed pack */
.rip-room.rr-preview {
  background: radial-gradient(ellipse at 50% 40%, var(--rip-light) 0%, var(--rip-studio) 45%, var(--rip-shadow) 100%);
}
.rr-prototype-note {
  margin: -5px 0 0;
  color: #b7c8d7;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
}
.rr-canvas-host {
  position: absolute;
  inset: -10% -25%;
  pointer-events: none;
}
.rr-canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.rr-pack.rr-pack-3d {
  transform: none;
  animation: none;
  filter: none;
}
.rr-pack.rr-pack-3d > img,
.rr-pack.rr-pack-3d > .rr-pack-art,
.rr-pack.rr-pack-3d > .rr-sheen {
  visibility: hidden;
}
.rr-pack.rr-pack-3d .rr-tearline {
  top: 8%;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.35);
}
.rr-pack.rr-pack-3d .rr-tearfill {
  display: none;
}
.rr-pack.rr-pack-3d.rr-tear-started .rr-tearline {
  border-color: transparent;
}
.rr-pack.rr-pack-3d.torn {
  animation: none;
}
.rr-pack.rr-pack-3d.torn::before {
  display: none;
}
.rr-pack.rr-pack-3d.torn .rr-tearline {
  opacity: 0;
  transition: opacity 0.15s;
}
.rr-pack:focus-visible {
  outline: 2px solid #e7c47c;
  outline-offset: 12px;
}
.rr-pack {
  --rx: 0deg;
  --ry: 0deg;
  --sx: 50%;
  --tear: 0;
  position: relative;
  width: min(250px, 62vw, max(140px, calc((100svh - 250px) * 0.58)));
  aspect-ratio: 5 / 8.6;
  border-radius: 10px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.15s ease-out;
  touch-action: none;
  cursor: grab;
  animation: rr-float 3.2s ease-in-out infinite;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.55));
}
.rr-pack img,
.rr-pack-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.rr-pack-art {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px 18px;
  background: linear-gradient(155deg, #2bb675, #1a7f50 30%, #0d1a3a 65%, #b8862b);
}
.rr-pack-set {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rr-pack-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.85;
}
.rr-sheen {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(circle at var(--sx) 30%, rgba(255, 255, 255, 0.4), transparent 45%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.rr-tearline {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 9%;
  height: 22px;
  border-top: 2px dashed rgba(255, 255, 255, 0.75);
  pointer-events: none;
}
.rr-tearfill {
  position: absolute;
  left: 0;
  top: -2px;
  height: 3px;
  width: calc(var(--tear) * 100%);
  background: #fff;
  box-shadow: 0 0 12px #fff;
}
.rr-tearhint {
  position: absolute;
  left: 0;
  top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(5, 12, 34, 0.7);
  font-size: 11px;
  font-weight: 700;
  animation: rr-nudge 1.6s ease-in-out infinite;
}
@keyframes rr-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@keyframes rr-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
.rr-pack.torn {
  animation: rr-rip 0.7s ease-in forwards;
}
.rr-pack.torn::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: -2%;
  height: 12%;
  z-index: 2;
  background: linear-gradient(90deg, #e7c47c, #fff, #e7c47c);
  border-radius: 6px;
  animation: rr-strip 0.6s ease-out forwards;
}
@keyframes rr-strip {
  to { transform: translate(140px, -160px) rotate(38deg); opacity: 0; }
}
@keyframes rr-rip {
  0% { transform: perspective(900px) rotate(0); }
  25% { transform: perspective(900px) rotate(-3deg) scale(1.03); }
  100% { transform: perspective(900px) translateY(60vh) rotate(8deg); opacity: 0; }
}
.rr-tear {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
  background: linear-gradient(135deg, #f6ecd7, #e7c47c);
  color: #3d2c0a;
}

/* The deck: one card at a time */
.rr-slot {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e7c47c;
}
.rr-deck {
  position: relative;
  width: min(260px, 64vw);
  aspect-ratio: 63 / 88;
  perspective: 1200px;
  cursor: pointer;
  touch-action: manipulation;
}
.rr-card {
  position: absolute;
  inset: 0;
  transform: translateY(calc((var(--n) - var(--i)) * -1px));
  animation: rr-deal 0.45s ease-out both;
  animation-delay: calc(var(--i) * 0.04s);
}
@keyframes rr-deal {
  from { opacity: 0; transform: translateY(80px) scale(0.9); }
}
.rr-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rr-card.flipped .rr-card-inner {
  transform: rotateY(180deg);
}
.rr-back,
.rr-front {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.rr-back {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #13244d 0 10px, #0d1a3a 10px 20px);
  border: 3px solid rgba(231, 196, 124, 0.55);
}
.rr-back svg {
  width: 34%;
  height: auto;
  border-radius: 22%;
  box-shadow: 0 0 0 2px rgba(231, 196, 124, 0.6), 0 0 26px rgba(231, 196, 124, 0.25);
}
.rr-front {
  transform: rotateY(180deg);
  background: #fff;
}
.rr-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rr-foil {
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 45%, rgba(143, 179, 255, 0.35) 50%, rgba(231, 196, 124, 0.4) 55%, transparent 65%);
  animation: foil 2.4s ease-in-out infinite;
  pointer-events: none;
}
.rr-card.reverse .rr-foil,
.rr-card.hit .rr-foil {
  opacity: 1;
}
.rr-card.flipped.hit .rr-front {
  box-shadow: 0 0 0 3px #fff, 0 0 38px 10px rgba(43, 182, 117, 0.7);
}
.rr-card.flipped.hit.tier-big .rr-front {
  box-shadow: 0 0 0 3px #f6ecd7, 0 0 48px 16px rgba(231, 196, 124, 0.85);
}
.rr-card.flipped.hit.tier-legendary {
  animation: rr-legend 1.2s ease-in-out 2;
}
.rr-card.flipped.hit.tier-legendary .rr-front {
  box-shadow: 0 0 0 4px #fff, 0 0 70px 26px rgba(231, 196, 124, 1);
}
@keyframes rr-legend {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
/* Holding a hit slot peels the card up slowly. */
.rr-card.peeling .rr-card-inner {
  transform: translateY(-14px) rotateX(18deg);
  transition: transform 1.3s ease-in;
}
.rr-card.peeling .rr-peel {
  opacity: 1;
}
.rr-peel {
  position: absolute;
  inset: auto 0 -10px;
  height: 18px;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(231, 196, 124, 0.9), transparent 70%);
  filter: blur(4px);
  transition: opacity 1.2s ease-in;
}
.rr-card.away {
  animation: none;
  transition: transform 0.35s ease-in, opacity 0.35s ease-in;
  transform: translate(0, 60px) scale(0.3);
  opacity: 0;
  pointer-events: none;
}
.rr-pile {
  display: flex;
  gap: 4px;
  min-height: 44px;
  flex-wrap: wrap;
  justify-content: center;
}
.rr-pile img {
  width: 30px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.8;
  animation: rr-deal 0.3s ease-out both;
}
.rr-pile img.hit {
  opacity: 1;
  box-shadow: 0 0 10px 2px rgba(231, 196, 124, 0.8);
}
.rr-controls {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.rr-next {
  min-width: 220px;
  min-height: 54px;
  justify-content: center;
  font-size: 16px;
  background: #fff;
  color: #071434;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

/* Reactions */
.rr-reaction {
  min-height: 74px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.rr-reaction.show {
  opacity: 1;
  transform: none;
}
.rr-shout {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.rr-reaction.tier-big .rr-shout {
  color: #f6ecd7;
  text-shadow: 0 0 22px rgba(231, 196, 124, 0.9);
}
.rr-reaction.tier-legendary .rr-shout {
  font-size: 46px;
  color: #fff;
  text-shadow: 0 0 30px #e7c47c, 0 0 60px #b8862b;
  animation: rr-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes rr-pop {
  from { transform: scale(0.4); }
  to { transform: scale(1); }
}
.rr-detail {
  margin: 4px 0 0;
  font-size: 14px;
  color: #dfe7f1;
}
.rr-value {
  font-size: 22px;
  font-weight: 800;
  color: #f6ecd7;
}
.rr-meh {
  margin: 0;
  font-size: 15px;
  color: #b7c8d7;
}
.rr-flash {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle, #fff, rgba(231, 196, 124, 0.6) 40%, transparent 70%);
  animation: rr-flash 0.9s ease-out forwards;
}
@keyframes rr-flash {
  from { opacity: 1; }
  to { opacity: 0; }
}
.rr-confetti {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}
.rr-confetti span {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: rr-fall var(--d) ease-in forwards;
  animation-delay: var(--delay);
}
@keyframes rr-fall {
  to { transform: translate(var(--dx), 105vh) rotate(var(--r)); }
}

/* Summary and binder */
.rr-summary {
  justify-content: flex-start;
  text-align: center;
}
.rr-summary .eyebrow {
  color: #e7c47c;
}
.rr-total {
  margin: 0;
  font-size: clamp(40px, 9vw, 60px);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.rr-total span {
  font-size: 18px;
  font-weight: 600;
  color: #b7c8d7;
  letter-spacing: 0;
}
.rr-vs {
  margin: 0;
  color: #dfe7f1;
  font-size: 14px;
}
.rr-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.rr-mini {
  margin: 0;
  display: grid;
  gap: 4px;
  animation: rr-deal 0.4s ease-out both;
}
.rr-mini img {
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.rr-mini.hit img {
  box-shadow: 0 0 0 2px #fff, 0 0 18px 4px rgba(43, 182, 117, 0.6);
}
.rr-mini.tier-big img,
.rr-mini.tier-legendary img {
  box-shadow: 0 0 0 2px #f6ecd7, 0 0 22px 6px rgba(231, 196, 124, 0.85);
}
.rr-mini.best figcaption {
  color: #e7c47c;
  font-weight: 800;
}
.rr-mini figcaption {
  font-size: 11.5px;
  color: #dfe7f1;
}
.rr-bestline {
  margin: 0;
  font-size: 14px;
}
.rr-streak {
  color: #2bb675;
  font-weight: 700;
}
.rr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.rr-again {
  min-height: 54px;
  padding: 0 30px;
  font-size: 16px;
  background: linear-gradient(135deg, #f6ecd7, #e7c47c);
  color: #3d2c0a;
}
.rr-share {
  min-height: 54px;
  background: #fff;
  color: #071434;
}
.rr-actions .compare-button {
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.rr-binder {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}
@media (max-width: 600px) {
  .rr-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .rr-mini figcaption {
    font-size: 10px;
  }
  .rr-shout {
    font-size: 26px;
  }
  .rr-reaction.tier-legendary .rr-shout {
    font-size: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rip-room,
  .rr-pack,
  .rr-card,
  .rr-mini,
  .rr-tearhint,
  .rr-foil {
    animation: none !important;
  }
  .rr-card-inner,
  .rr-card.peeling .rr-card-inner {
    transition: none;
  }
}

/* Quiet studio treatment across the complete pack, including commons.
   Card faces stay photographic; perspective/stock edges are CSS 3D, with no
   duplicate GPU context and no white veil painted over the printed artwork. */
.rr-preview .rr-deck {
  width: min(280px, 61vw, max(120px, calc((100svh - 440px) * .716)));
  perspective: 1100px;
  isolation: isolate;
}
.rr-preview .rr-card {
  animation: none;
  transform: translate(calc(var(--i) * .3px), calc(var(--i) * -.7px));
}
.rr-preview .rr-card .rr-card-inner {
  --flip: 0deg;
  transform: rotateX(var(--card-x, 0deg)) rotateY(calc(var(--flip) + var(--card-y, 0deg)));
  transition: transform .62s cubic-bezier(.22, .68, .18, 1);
}
.rr-preview .rr-card.flipped .rr-card-inner { --flip: 180deg; }
.rr-preview .rr-card.peeling .rr-card-inner {
  transform: translateY(-12px) rotateX(12deg) rotateY(-5deg);
  transition-duration: 1.3s;
}
.rr-preview .rr-back,
.rr-preview .rr-front {
  border-radius: 4.7% / 3.4%;
  box-shadow: 1px 0 0 var(--rip-stock-edge), 2px 1px 0 var(--rip-stock-shadow), 0 18px 28px rgb(0 0 0 / .32);
}
.rr-preview .rr-back { transform: translateZ(.65px); border-width: 1px; }
.rr-preview .rr-front { transform: rotateY(180deg) translateZ(.65px); }
.rr-preview .rr-back svg { box-shadow: none; opacity: .8; }
.rr-preview .rr-card.flipped.hit .rr-front {
  box-shadow: 1px 0 0 var(--rip-stock-edge), 2px 1px 0 var(--rip-stock-shadow), 0 18px 28px rgb(0 0 0 / .32);
}
.rr-preview .rr-card.flipped.hit.tier-legendary { animation: none; }
.rr-preview .rr-foil {
  inset: 0;
  animation: none;
  background: linear-gradient(115deg, transparent 22%, rgb(190 211 231 / .12) var(--light-x, 50%), transparent 78%);
  mix-blend-mode: screen;
}
.rr-preview .rr-card.away {
  transform: translate(-70px, 40px) rotate(-8deg) scale(.7);
  transition: transform .36s ease-in, opacity .36s ease-in;
}
.rr-preview .rr-peel { opacity: 0; }
.rr-preview .rr-pile img.hit { box-shadow: 0 2px 6px rgb(0 0 0 / .3); }
.rr-preview .rr-next[aria-disabled="true"] { cursor: default; }
.rr-preview .rr-controls { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.rr-preview .rr-next { grid-column: 1 / -1; }
.rr-preview .rr-controls .rr-link { min-height: 44px; }
.rr-preview .rr-link:disabled,
.rr-inspector-nav [aria-disabled="true"] { opacity: .4; cursor: default; }
.rr-preview .rr-pile {
  flex-wrap: nowrap;
  justify-content: flex-start;
  max-width: min(100%, 480px);
  overflow-x: auto;
  min-height: 54px;
  padding: 4px;
}
.rr-tray-card {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0;
  border: 1px solid var(--rip-light);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}
.rr-tray-card:focus-visible { outline: 2px solid var(--rip-accent); outline-offset: 1px; }
.rr-tray-card:hover { background: var(--rip-light); }
.rr-inspector-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.rr-inspector-nav button { min-height: 44px; }
@media (max-height: 750px) {
  .rr-preview .rr-stage:has(.rr-deck) { gap: 10px; padding: 10px 0; }
  .rr-preview .rr-stage:has(.rr-deck) .rr-reaction { min-height: 72px; }
}
.rr-preview .rr-reaction { min-height: 88px; max-width: 460px; }
.rr-card-name {
  margin: 0 0 6px;
  color: var(--rip-text);
  font-size: clamp(18px, 3vw, 23px);
  font-weight: 650;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.rr-inspect-hint { margin: 8px 0 0; color: var(--rip-muted); font-size: 11px; }
.rr-preview .rr-mini img {
  box-shadow: 1px 1px 0 var(--rip-stock-shadow), 0 8px 14px rgb(0 0 0 / .25);
}
.rr-preview .rr-grid { gap: 24px 16px; perspective: 1200px; }
.rr-mini-name { display: block; color: var(--rip-text); margin: 5px 0; font-weight: 600; }
.rr-card-select {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
  transition: transform .2s ease;
}
.rr-card-select img { display: block; }
.rr-card-select:focus-visible { outline: 2px solid var(--rip-accent); outline-offset: 5px; }
@media (hover: hover) {
  .rr-card-select:hover { transform: translateY(-5px) rotateY(-5deg); }
}
.rr-inspector {
  position: fixed;
  inset: 0;
  width: min(450px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--rip-light);
  border-radius: 20px;
  background: var(--rip-studio);
  color: var(--rip-text);
  text-align: center;
}
.rr-inspector::backdrop { background: rgb(0 0 0 / .7); }
.rr-inspector-close { position: absolute; right: 12px; top: 12px; }
.rr-inspector .rr-slot { padding: 4px 35px 16px; }
.rr-inspection-card { position: relative; perspective: 1000px; width: min(100%, 320px, max(120px, calc((100svh - 310px) * .716))); margin: 12px auto 24px; }
.rr-inspection-card canvas { position: absolute; inset: -8%; width: 116%; height: 116%; pointer-events: none; }
.rr-inspection-card.has-card-mesh .rr-inspection-surface { opacity: 0; }
.rr-inspection-surface {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--card-x, 0deg)) rotateY(var(--card-y, 0deg));
  transition: transform .15s ease-out;
  border-radius: 4.7% / 3.4%;
  box-shadow: 1px 0 0 #d2cbbc, 2px 1px 0 #45443e, 0 15px 28px rgb(0 0 0 / .35);
}
.rr-inspection-card img {
  display: block;
  width: 100%;
  border-radius: 4.7% / 3.4%;
  box-shadow: 1px 1px 0 var(--rip-stock-shadow), 0 15px 28px rgb(0 0 0 / .35);
}
/* Printed face, stock edge and finish are independent layers. These masks
   approximate catalog finishes; no foil is invented for unknown/matte cards. */
.rr-preview [data-finish] .rr-foil {
  display: block;
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(ellipse at var(--light-x, 50%) var(--light-y, 50%), rgb(230 235 247 / .30), transparent 56%),
    repeating-linear-gradient(118deg, #79ced033 0%, #dba4db33 8%, #e3d68a33 16%, #79ced033 24%);
  background-size: 100% 100%, 240% 240%;
  background-position: center, var(--light-x, 50%) var(--light-y, 50%);
  mix-blend-mode: screen;
  animation: none;
}
.rr-preview [data-finish="reverse"] .rr-foil {
  opacity: .6;
  /* Exclude the illustration window and outer silver border. */
  clip-path: polygon(evenodd, 4% 4%, 96% 4%, 96% 96%, 4% 96%, 4% 4%, 10% 15%, 10% 48%, 90% 48%, 90% 15%, 10% 15%);
}
.rr-preview [data-finish="holo"] .rr-foil { opacity: .65; clip-path: inset(15% 10% 52%); }
.rr-preview [data-finish="full"] .rr-foil { opacity: .48; clip-path: inset(3% round 4%); }
.rr-preview [data-finish="matte"] .rr-foil { display: none; }
.rr-inspection-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(235 231 218 / .22);
  border-radius: inherit;
  pointer-events: none;
  transform: translateZ(.6px);
}
@media (max-width: 600px) {
  .rr-preview .rr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .rr-preview .rr-mini figcaption { font-size: 12px; }
  .rr-preview .rr-stage { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rr-preview .rr-card .rr-card-inner, .rr-preview .rr-card.peeling .rr-card-inner,
  .rr-preview .rr-card.away, .rr-card-select, .rr-inspection-surface { transition: none; }
  .rr-card-select:hover { transform: none; }
}

/* ---------- Share sheet ---------- */
#share-dialog[open] {
  animation: ss-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes ss-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
}
.share-sheet {
  width: min(460px, 100%);
}
.share-sheet .dialog-head h2 {
  font-size: 22px;
}
.ss-label {
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
/* A message bubble, the way a link lands in a group chat. */
.ss-bubble {
  overflow: hidden;
  border-radius: 20px;
  background: #e9e9eb;
  box-shadow: 0 14px 34px rgba(7, 20, 52, 0.18);
  transform-origin: bottom right;
  animation: ss-pop 0.45s 0.08s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
@keyframes ss-pop {
  from { opacity: 0; transform: scale(0.8); }
}
.ss-img {
  position: relative;
  aspect-ratio: 1200 / 630;
  background: #0b1a3f;
}
.ss-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.35s ease;
}
.ss-img.loading img {
  opacity: 0.35;
}
.ss-img.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: ss-shimmer 1.1s linear infinite;
}
@keyframes ss-shimmer {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}
.ss-meta {
  display: grid;
  gap: 1px;
  padding: 9px 14px 11px;
  color: #111;
}
.ss-meta b {
  font-size: 14px;
  line-height: 1.3;
}
.ss-meta span {
  font-size: 12.5px;
  color: #6b6b70;
}
.ss-name {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}
.ss-name small {
  font-weight: 500;
  color: var(--muted);
}
.ss-name input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  background: #fff;
}
.ss-name input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.ss-name-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.ss-native {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
}
.ss-native svg {
  width: 20px;
  height: 20px;
}
.ss-targets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
  margin: 18px 0 8px;
}
.ss-target {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  animation: ss-rise 0.35s calc(0.15s + var(--i) * 0.04s) ease-out both;
}
@keyframes ss-rise {
  from { opacity: 0; transform: translateY(10px); }
}
.ss-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  background: var(--navy);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ss-icon svg {
  width: 26px;
  height: 26px;
}
.ss-target:hover .ss-icon,
.ss-target:focus-visible .ss-icon {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(7, 20, 52, 0.22);
}
.ss-target:active .ss-icon {
  transform: scale(0.94);
}
.ss-messages .ss-icon { background: linear-gradient(180deg, #5bf675, #0cbd2a); }
.ss-whatsapp .ss-icon { background: #25d366; }
.ss-story .ss-icon { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ss-x .ss-icon { background: #000; }
.ss-facebook .ss-icon { background: #1877f2; }
.ss-threads .ss-icon { background: #101010; }
.ss-link .ss-icon { background: #e8edf3; color: var(--navy); }
.ss-link.done .ss-icon { background: var(--green); color: #fff; }
.ss-target.busy .ss-icon {
  animation: ss-busy 0.8s ease-in-out infinite;
}
@keyframes ss-busy {
  50% { opacity: 0.5; }
}

/* ---------- Landing from a shared link ---------- */
.pull-banner {
  position: relative;
  overflow: hidden;
  gap: 24px;
  padding: 22px 26px;
  border-radius: 20px;
  background: #050a1c url("/assets/share/wide.jpg") center / cover;
  animation: ss-in 0.5s ease-out both;
}
.pull-banner-card img {
  display: block;
  border-radius: 9px;
  box-shadow: 0 0 0 2px #f6ecd7, 0 0 34px 8px rgba(231, 196, 124, 0.65);
  animation: pb-float 3.4s ease-in-out infinite;
}
@keyframes pb-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}
.pull-banner-copy {
  flex: 1;
  min-width: 220px;
}
.pull-banner-copy .eyebrow {
  margin: 0;
  color: #e7c47c;
}
.pull-banner-copy h2 {
  margin: 4px 0 6px;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.03em;
}
.pull-banner-copy p {
  margin: 0;
  color: #dfe7f1;
}
.pull-banner-copy b {
  color: #f6ecd7;
  font-size: 1.15em;
}
.pull-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 16px;
}
.pull-banner .button.rip-start {
  background: linear-gradient(135deg, #f6ecd7, #e7c47c);
  color: #3d2c0a;
}
.pull-banner .link-button {
  color: #fff;
}
.find-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #eaf6ef;
  color: var(--ink);
  animation: ss-in 0.4s ease-out both;
}
.find-banner span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}
.find-banner p {
  margin: 0;
}
@media (max-width: 600px) {
  .pull-banner {
    padding: 18px;
    gap: 16px;
  }
  .pull-banner-card img {
    width: 92px;
    height: auto;
  }
  .ss-icon {
    width: 50px;
    height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #share-dialog[open],
  .ss-bubble,
  .ss-target,
  .pull-banner,
  .pull-banner-card img,
  .find-banner {
    animation: none;
  }
}

/* ---------- Account: portfolio, allocation, display case, holdings ---------- */
.pf {
  --tone: #1a7f50;
  position: relative;
  padding: 24px 26px 18px;
  border-radius: 22px;
  background: radial-gradient(circle at 12% 0%, #1b2b57, #071434 65%);
  color: #fff;
  overflow: hidden;
  animation: pf-in 0.5s ease-out both;
}
.pf.down {
  --tone: #e08a7a;
}
.pf.up {
  --tone: #34d399;
}
@keyframes pf-in {
  from { opacity: 0; transform: translateY(12px); }
}
.pf-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.pf-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7c47c;
}
.pf-value {
  margin: 4px 0 2px;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pf-delta {
  margin: 0;
  font-size: 14px;
  color: #b7c8d7;
}
.pf-delta b {
  color: var(--tone);
  font-variant-numeric: tabular-nums;
}
.pf-range {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.pf-range button {
  min-width: 44px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #b7c8d7;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.pf-range button[aria-pressed="true"] {
  background: #fff;
  color: #071434;
}
.pf-chart {
  position: relative;
  margin: 14px -6px 0;
  color: var(--tone);
  touch-action: pan-y;
  cursor: crosshair;
}
.pf-chart svg {
  display: block;
  width: 100%;
  height: 210px;
  overflow: visible;
}
.pf.compact .pf-chart svg {
  height: 150px;
}
.pf-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: pf-draw 1.1s 0.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 60%, transparent));
}
@keyframes pf-draw {
  to { stroke-dashoffset: 0; }
}
.pf-area {
  opacity: 0;
  animation: pf-fade 0.8s 0.7s ease-out forwards;
}
@keyframes pf-fade {
  to { opacity: 1; }
}
.pf-base {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}
.pf-cursor {
  stroke: rgba(255, 255, 255, 0.55);
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.pf-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 30%, transparent);
  opacity: 0;
  pointer-events: none;
}
.pf-chart.scrub .pf-cursor,
.pf-chart.scrub .pf-dot {
  opacity: 1;
}
.value-card .pf {
  margin: -6px -6px 12px;
}

.alloc {
  margin: 18px 0 6px;
}
.alloc-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}
.alloc-bar span {
  width: var(--w);
  background: var(--c);
  transform-origin: left;
  animation: alloc-grow 0.7s calc(0.3s + var(--i) * 0.08s) cubic-bezier(0.3, 0.8, 0.3, 1) both;
}
.alloc-bar span + span {
  border-left: 2px solid #fff;
}
@keyframes alloc-grow {
  from { transform: scaleX(0); }
}
.alloc-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.alloc-key i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 3px;
  background: var(--c);
}
.alloc-key b {
  color: var(--ink);
}

.shelf-page .shelf-head {
  margin-top: 30px;
  align-items: center;
}
.shelf-page .shelf-head .shelf-sub {
  margin: 0;
}
/* The case: a lit wall, one niche per item, planks under each row. */
.shelf {
  --plank: linear-gradient(#9a6a3e, #6b4424);
  --niche: radial-gradient(circle at 50% 18%, #fffdf8, #f3e7d6 70%);
  --tag: rgba(255, 255, 255, 0.92);
  --tag-ink: #16191d;
  position: relative;
  padding: 26px 22px 8px;
  border-radius: 22px;
  background: linear-gradient(rgba(20, 10, 0, 0.18), rgba(20, 10, 0, 0.3)), url("/assets/shelf/walnut.jpg") center / cover;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35), 0 18px 40px rgba(7, 20, 52, 0.18);
  overflow: hidden;
}
.shelf.theme-glass {
  --plank: linear-gradient(rgba(255, 255, 255, 0.95), rgba(190, 212, 230, 0.9));
  --niche: radial-gradient(circle at 50% 18%, #ffffff, #eef4f9 75%);
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(210, 225, 240, 0.25)), url("/assets/shelf/glass.jpg") center / cover;
}
.shelf.theme-midnight {
  --plank: linear-gradient(#3a4a78, #1a2547);
  --niche: radial-gradient(circle at 50% 12%, #fffaf0, #e9e2d3 72%);
  --tag: rgba(7, 20, 52, 0.85);
  --tag-ink: #fff;
  background: linear-gradient(rgba(3, 8, 24, 0.2), rgba(3, 8, 24, 0.45)), url("/assets/shelf/midnight.jpg") center / cover;
  color: #fff;
}
.shelf-row {
  grid-template-columns: repeat(var(--per, 4), minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
  padding: 0 10px 18px;
}
.shelf-row::after {
  height: 16px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.shelf-row.empty {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.shelf.theme-glass .shelf-row.empty {
  color: var(--ink);
  text-shadow: none;
}
.shelf-item {
  gap: 6px;
  animation: case-rise 0.55s calc(0.2s + var(--d) * 0.07s) cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
@keyframes case-rise {
  from { opacity: 0; transform: translateY(26px) scale(0.94); }
}
.shelf-box {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 12%;
  border-radius: 14px;
  background: var(--niche);
  box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.8), 0 12px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.25s ease;
  overflow: hidden;
}
.shelf-spot {
  position: absolute;
  inset: -30% 10% 40%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 236, 190, 0.7), transparent 70%);
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.shelf-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.shelf-box:hover,
.shelf-box:focus-visible {
  transform: translateY(-6px);
  box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.8), 0 22px 34px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(231, 196, 124, 0.8);
}
.shelf-box:hover .shelf-img {
  transform: scale(1.06) rotate(-1.5deg);
}
.shelf-qty {
  right: 8px;
  top: 8px;
  z-index: 1;
}
.shelf-tag {
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--tag);
  color: var(--tag-ink);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}
.shelf-tag p {
  margin: 0;
}
.shelf-val span {
  font-size: 11.5px;
  font-weight: 700;
}
.shelf-val .up {
  color: #1a7f50;
}
.shelf-val .down {
  color: #b54a3a;
}
.shelf.theme-midnight .shelf-val .up {
  color: #34d399;
}
.shelf.theme-midnight .shelf-val .down {
  color: #f0a597;
}
.shelf-remove,
.shelf-bought {
  font-size: 11px;
  color: inherit;
  background: none;
  border: 0;
  opacity: 0.85;
}
.shelf:not(.theme-glass) .shelf-remove,
.shelf:not(.theme-glass) .shelf-bought {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.holdings {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.holding {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 70px auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  animation: ss-rise 0.4s calc(0.1s + var(--i) * 0.05s) ease-out both;
  transition: background 0.15s ease;
}
.holding:first-child {
  border-top: 0;
}
.holding:hover {
  background: #f5f8f7;
}
.holding-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.holding-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.holding-name b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14.5px;
}
.holding-name small,
.holding-val small {
  font-size: 12.5px;
  color: var(--muted);
}
.holding-val {
  display: grid;
  justify-items: end;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.holding-val small.up {
  color: #1a7f50;
  font-weight: 700;
}
.holding-val small.down {
  color: #b54a3a;
  font-weight: 700;
}
@media (max-width: 600px) {
  .pf {
    padding: 20px 18px 14px;
    border-radius: 18px;
  }
  .pf-top {
    flex-direction: column;
    gap: 10px;
  }
  .pf-chart svg {
    height: 170px;
  }
  .shelf {
    padding: 18px 10px 4px;
    border-radius: 18px;
  }
  .shelf-row {
    gap: 12px;
    padding: 0 6px 16px;
  }
  .holding {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }
  .holding .sparkline,
  .holding svg {
    display: none;
  }
  .holding-img {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pf,
  .shelf-item,
  .holding,
  .alloc-bar span,
  .pf-area {
    animation: none;
    opacity: 1;
  }
  .pf-line {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ---------- Footer policies + share dialog width ---------- */
footer {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}
.footer-policies b {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
}
@media (max-width: 800px) {
  footer {
    grid-template-columns: 1fr 1fr;
  }
}
#share-dialog {
  width: min(500px, 94vw);
}
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.policy-links a {
  font-weight: 700;
}

/* ---------- Policy pages ---------- */
.policy-body header nav {
  margin-left: auto;
}
.policy-page {
  padding: 40px 5% 80px;
}
.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 56px;
  justify-content: center;
}
.policy-nav {
  position: sticky;
  top: 120px;
  align-self: start;
  display: grid;
  gap: 2px;
}
.policy-nav .eyebrow {
  margin-bottom: 8px;
}
.policy-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.policy-nav a:hover {
  background: var(--well);
  color: var(--ink);
}
.policy-nav a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}
.policy-article h1 {
  margin: 8px 0 24px;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.policy-article h2 {
  margin: 36px 0 10px;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.policy-article p,
.policy-article li {
  font-size: 16px;
  line-height: 1.7;
  color: #2c3238;
}
.policy-article ul {
  padding-left: 20px;
}
.policy-article a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-summary {
  padding: 22px 26px;
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, #1b2b57, #071434 70%);
  color: #fff;
}
.policy-summary h2 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7c47c;
}
.policy-summary ul {
  margin: 0;
  padding-left: 18px;
}
.policy-summary li {
  color: #eef3f8;
  margin: 6px 0;
}
.policy-summary a {
  color: #f6ecd7;
}
.policy-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
}
.policy-toc p {
  width: 100%;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.policy-article .policy-toc a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}
.policy-article section {
  scroll-margin-top: 110px;
}
.policy-contact {
  margin-top: 40px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #eaf6ef;
}
.policy-lede {
  font-size: 18px !important;
}
.policy-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.policy-article .policy-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.policy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(7, 20, 52, 0.12);
}
.policy-card h2 {
  margin: 0;
  font-size: 17px;
}
.policy-card p {
  margin: 0;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
}
.policy-card span {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}
.policy-footer {
  display: block;
  padding: 30px 5% 50px;
}
.policy-footer p {
  margin: 0 0 8px;
}
@media (max-width: 800px) {
  .policy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .policy-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .policy-nav .eyebrow {
    display: none;
  }
  .policy-nav a {
    flex: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
  }
  .policy-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .policy-page {
    padding: 24px 16px 60px;
  }
  .policy-body header nav {
    display: flex;
    gap: 16px;
    font-size: 14px;
  }
}
.policy-article section p {
  margin: 0 0 14px;
}

/* Rip shelf tiles wear the set's real booster pack once it loads: the whole
   pack stands at the top of the tile, the chase and price sit below it. */
.rip-pack-tile {
  flex-basis: 166px;
  height: 388px;
}
.rip-pack-cover {
  position: absolute;
  top: 16px;
  left: 50%;
  width: calc(100% - 44px);
  aspect-ratio: 239 / 437;
  height: auto;
  border-radius: 6px;
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  animation: cover-in 0.55s ease-out both;
  z-index: 1;
}
@keyframes cover-in {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) rotate(-6deg); }
}
.rip-pack-tile.has-cover:hover .rip-pack-cover,
.rip-pack-tile.has-cover:focus-visible .rip-pack-cover {
  transform: translateX(-50%) translateY(-6px) rotate(1.5deg) scale(1.03);
}
.rip-pack-tile.has-cover::before {
  display: none;
}
.rip-pack-tile.has-cover .rip-pack-foil {
  z-index: 2;
  opacity: 0.55;
}
.rip-pack-tile-set,
.rip-pack-tile-chase,
.rip-pack-tile strong,
.rip-pack-tile-cta {
  z-index: 2;
}
.rip-pack-tile.has-cover .rip-pack-tile-set {
  font-size: 15px;
}

/* ---------- Server-rendered SEO pages: sets, types, price guide, guides ---------- */
.seo-body header nav {
  margin-left: auto;
}
.seo-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 5% 70px;
}
.seo-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}
.seo-crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.6;
}
.seo-crumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-hero {
  display: flex;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: 22px;
  background: radial-gradient(circle at 10% 0%, #1b2b57, var(--navy) 70%);
  color: #fff;
}
.seo-hero .eyebrow {
  color: #e7c47c;
}
.seo-hero h1,
.seo-intro h1,
.seo-article h1 {
  margin: 6px 0 12px;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.seo-hero p {
  color: #dfe7f1;
  max-width: 62ch;
}
.seo-pack {
  width: 150px;
  height: auto;
  flex: none;
  border-radius: 8px;
  transform: rotate(-3deg);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
}
.seo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 16px;
}
.seo-hero .button.rip-start {
  background: linear-gradient(135deg, #f6ecd7, #e7c47c);
  color: #3d2c0a;
}
.seo-hero .compare-button {
  color: #fff;
}
.seo-callout {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}
.seo-callout a {
  color: inherit;
  font-weight: 700;
}
.seo-intro {
  max-width: 820px;
}
.seo-intro p,
.seo-article p,
.seo-article li {
  font-size: 16.5px;
  line-height: 1.65;
  color: #2c3238;
}
.seo-intro .seo-callout {
  background: #eaf6ef;
}
.seo-tabs {
  display: flex;
  gap: 6px;
  margin: 22px 0 6px;
  overflow-x: auto;
}
.seo-tabs a {
  flex: none;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.seo-tabs a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.seo-section {
  margin-top: 38px;
}
.seo-section h2,
.seo-article h2 {
  margin: 0 0 14px;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.seo-section h2 a {
  color: inherit;
}
.seo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.seo-table th,
.seo-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.seo-table thead th {
  border-top: 0;
  background: var(--well);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.seo-table tbody th {
  white-space: normal;
  min-width: 220px;
  font-weight: 600;
}
.seo-table a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.seo-save {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e3f4ea;
  color: var(--saving);
  font-size: 12.5px;
  font-weight: 700;
}
.seo-note {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-links a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.seo-cards figure {
  margin: 0;
  display: grid;
  gap: 6px;
}
.seo-cards img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(7, 20, 52, 0.18);
}
.seo-cards figcaption {
  display: grid;
  font-size: 13px;
}
.seo-cards figcaption span {
  color: var(--muted);
}
.seo-faq dt {
  margin-top: 16px;
  font-weight: 800;
}
.seo-faq dd {
  margin: 4px 0 0;
  color: #2c3238;
  line-height: 1.6;
}
.seo-sources a {
  color: var(--green);
  font-weight: 600;
}
.seo-chase {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seo-chase li {
  display: grid;
  grid-template-columns: 34px 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.seo-chase img {
  width: 64px;
  height: auto;
  border-radius: 6px;
}
.seo-chase div {
  display: grid;
  gap: 2px;
}
.seo-chase span,
.seo-chase small {
  font-size: 13px;
  color: var(--muted);
}
.seo-chase strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.seo-rank {
  font-size: 20px;
  font-weight: 800;
  color: var(--muted);
}
.seo-set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.seo-set {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.seo-set:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(7, 20, 52, 0.12);
}
.seo-set img {
  width: 58px;
  height: auto;
  border-radius: 5px;
}
.seo-set span {
  display: grid;
  gap: 3px;
}
.seo-set small {
  color: var(--muted);
}
.seo-article {
  max-width: 820px;
}
.seo-answer {
  padding: 16px 20px;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: #eaf6ef;
}
.seo-article a,
.seo-intro a {
  color: var(--green);
  font-weight: 600;
}
.seo-footer {
  display: block;
  padding: 44px 5% 60px;
  background: var(--well);
}
.seo-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 26px;
}
.seo-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
  font-size: 13.5px;
}
.seo-footer nav a {
  margin: 0;
  color: var(--ink);
}
.seo-footer small {
  max-width: 900px;
}
.footer-browse {
  display: grid;
  align-content: start;
}
.footer-browse b {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
}
@media (max-width: 800px) {
  .seo-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
  }
  .seo-pack {
    width: 110px;
  }
  .seo-page {
    padding: 20px 16px 56px;
  }
  .seo-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .seo-body header nav {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    font-size: 14px;
  }
  .seo-chase li {
    grid-template-columns: 24px 52px minmax(0, 1fr) auto;
    gap: 10px;
  }
}
.seo-body header nav a {
  white-space: nowrap;
}
@media (max-width: 800px) {
  .seo-body header {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .seo-body header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
}

/* Set selection remains available without discarding an unfinished pack. */
#rip-picker { width: min(920px, calc(100vw - 32px)); max-height: 90dvh; }
.rip-picker-inner { padding-top: 0; }
.rip-picker-heading { position: sticky; top: 0; z-index: 1; background: var(--paper, #faf8f3); padding-top: 24px; padding-bottom: 8px; }
.rip-search { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.rip-search input { width: 100%; min-height: 44px; border: 1px solid #c9cdd5; border-radius: 12px; padding: 10px 14px; background: #fff; color: #122139; font: inherit; font-size: 16px; }
.rip-picker-status { min-height: 20px; font-size: 12px; color: #536075; margin: 10px 0 0; }
.rip-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 16px; }
.rip-choice { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; border: 1px solid #d7dbe3; border-radius: 16px; padding: 14px 10px; background: linear-gradient(160deg,#fff,#eef1f7); color: #122139; cursor: pointer; text-align: center; }
.rip-choice[hidden] { display: none; }
.rip-choice[aria-current="true"] { border-color: #4a60cd; box-shadow: inset 0 0 0 1px #4a60cd; }
.rip-choice:hover, .rip-choice:focus-visible { border-color: #4a60cd; outline-offset: 3px; }
.rip-choice-art { width: 100%; height: 164px; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; }
.rip-choice-art img { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px #07143425); }
.rip-choice-art > span { font-size: 56px; color: #6575a0; }
.rip-choice.has-cover .rip-choice-art > span { display: none; }
.rip-choice strong { font-size: 14px; margin-top: auto; }
.rip-choice small { color: #536075; font-size: 11px; }
.rr-change-set { min-height: 44px; background: transparent; color: #bbc7f1; font: inherit; font-size: 12px; border: 0; cursor: pointer; padding: 0 12px; }
.rr-change-set:hover { color: #fff; }
.rip-room { padding-top: max(12px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.rr-inspection-card { touch-action: none; }
@media (max-width: 600px) {
  #rip-picker { width: 100%; max-height: 92dvh; }
  .rip-picker-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .rip-choice-art { height: 148px; }
  .rip-picker-heading { padding-top: 16px; }
  .rr-title { gap: 0; }
  .rr-title strong { font-size: 15px; }
}

/* ---------- RSC Vault (account tab, bag choice, dialogs) ---------- */
.vault-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  background: linear-gradient(135deg, #eef3fb, #fff 70%);
}
.vault-intro h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 4px 0 6px;
}
.vault-intro p.muted {
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.6;
}
.vault-intro .link-button {
  flex: none;
}
.vault-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}
.vault-summary > div {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: #fff;
}
.vault-summary span,
.vault-summary small {
  font-size: 12px;
  color: var(--muted);
}
.vault-summary b {
  font-size: 20px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.vault-actions {
  position: sticky;
  top: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffffff0;
  backdrop-filter: blur(6px);
}
.vault-actions .muted {
  flex: 1;
  font-size: 14px;
}
.vault-actions .button,
.vault-actions .compare-button {
  min-height: 40px;
}
.vault-actions button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.vault-list {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.vault-row {
  display: grid;
  grid-template-columns: 40px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.vault-row.picked {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}
.vault-check {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.vault-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
}
.vault-row img,
.vault-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--well);
}
.vault-name {
  display: grid;
  gap: 3px;
  min-width: 0;
  justify-items: start;
}
.vault-name b {
  font-size: 15px;
  line-height: 1.3;
}
.vault-name small {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vault-figures {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 18px;
  margin: 0;
  text-align: right;
}
.vault-figures dt {
  font-size: 11px;
  color: var(--muted);
}
.vault-figures dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vault-history {
  margin-top: 20px;
}
.vault-history summary {
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  font-weight: 700;
}
.vault-history .vault-row {
  opacity: 0.75;
}
.vault-request .order-actions:empty {
  display: none;
}
.vault-dialog {
  width: min(560px, 94vw);
}
.vault-mini {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}
.vault-mini li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.vault-mini small {
  color: var(--muted);
}
.vault-form {
  display: grid;
  gap: 12px;
}
.vault-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.vault-form input,
.vault-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.vault-form-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 10px;
}
.vault-form fieldset,
.vault-choice {
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}
.vault-form legend,
.vault-choice legend {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.vault-choice {
  margin: 18px 0 0;
}
.vault-form label.vault-radio,
.vault-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 400;
  cursor: pointer;
}
.vault-radio:has(input:checked) {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}
.vault-radio input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--navy);
}
.vault-radio span {
  display: grid;
  gap: 2px;
}
.vault-radio small {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.vault-quote:empty {
  display: none;
}
.vault-quote {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--well);
}
.vault-error:empty {
  display: none;
}
.vault-error {
  color: #b42318;
  font-size: 14px;
}
@media (max-width: 720px) {
  .vault-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .vault-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vault-row {
    grid-template-columns: 40px 48px minmax(0, 1fr);
  }
  .vault-row img,
  .vault-img {
    width: 48px;
    height: 48px;
  }
  .vault-figures {
    grid-column: 2 / -1;
    justify-content: start;
    text-align: left;
  }
  .vault-form-row {
    grid-template-columns: 1fr 1fr;
  }
  .vault-form-row label:first-child {
    grid-column: 1 / -1;
  }
}
.vault-ghost {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.vault-ghost:hover:not([disabled]) {
  border-color: var(--navy);
}
.vault-quote .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 14px;
}
.vault-quote .line.total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.vault-mini small {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .vault-actions .muted {
    flex-basis: 100%;
  }
  .vault-actions .button,
  .vault-actions .vault-ghost {
    flex: 1;
  }
  .vault-request .order-top {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}
