:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040b14;
  --surface: #0d1929;
  --surface-2: #111f32;
  --surface-3: #17263a;
  --text: #f4f7fb;
  --muted: #91a0b4;
  --muted-strong: #b7c1cf;
  --border: #24364d;
  --border-soft: #18283b;
  --accent: #e7ad46;
  --accent-strong: #f4c56d;
  --accent-soft: rgba(231, 173, 70, 0.13);
  --success: #71d896;
  --danger: #ff8e8e;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 18px;
  --page-width: 1480px;
}

/* Member card market lookup */
.market-page {
  background:
    radial-gradient(circle at 80% 5%, rgba(231, 173, 70, 0.065), transparent 29rem),
    var(--bg);
}

.market-shell {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 34px 22px 80px;
}

.market-hero {
  margin-bottom: 20px;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(118deg, rgba(231, 173, 70, 0.055), transparent 48%),
    var(--surface);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.market-hero h1 {
  margin: 0;
  font-size: clamp(35px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.market-hero > div:first-child > p:last-child {
  max-width: 800px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.market-member-pill {
  width: max-content;
  margin-bottom: 20px;
  padding: 6px 9px;
  border: 1px solid rgba(231, 173, 70, 0.38);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-member-pill .material-symbols-rounded {
  font-size: 15px;
}

.market-source-note {
  min-width: 205px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 11px;
}

.market-source-note > .material-symbols-rounded {
  color: var(--accent-strong);
  font-size: 26px;
}

.market-source-note small,
.market-source-note strong {
  display: block;
}

.market-source-note small {
  color: var(--muted);
  font-size: 10px;
}

.market-source-note strong {
  margin-top: 2px;
  font-size: 13px;
}

.market-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 16px;
}

.market-tool-panel,
.market-guide-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.market-tool-panel {
  padding: clamp(18px, 3vw, 28px);
}

.market-mode-switch {
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.market-mode-switch button {
  min-height: 62px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.market-mode-switch button:hover,
.market-mode-switch button:focus-visible {
  color: var(--text);
  outline: none;
}

.market-mode-switch button.active {
  border-color: rgba(231, 173, 70, 0.34);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
}

.market-mode-switch button.active > .material-symbols-rounded {
  color: var(--accent-strong);
}

.market-mode-switch strong,
.market-mode-switch small {
  display: block;
}

.market-mode-switch strong {
  font-size: 13px;
}

.market-mode-switch small {
  margin-top: 2px;
  font-size: 10px;
}

.market-search-form {
  margin-top: 20px;
}

.market-search-form > label {
  margin-bottom: 7px;
  color: var(--muted-strong);
  display: block;
  font-size: 11px;
  font-weight: 750;
}

.market-search-row {
  min-height: 58px;
  padding: 5px 5px 5px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.market-search-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.market-search-row > .material-symbols-rounded {
  color: var(--muted);
}

.market-search-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.market-search-row button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: #171005;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.market-search-row button:hover,
.market-search-row button:focus-visible {
  background: var(--accent-strong);
  outline: none;
}

.market-search-row button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.market-example-row {
  margin-top: 9px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.market-example-row button {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
}

.market-example-row button:hover,
.market-example-row button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
  outline: none;
}

.market-access-state {
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted-strong);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.market-access-state[data-tone="success"] {
  border-color: rgba(113, 216, 150, 0.28);
  color: var(--success);
}

.market-access-state[data-tone="error"] {
  border-color: rgba(255, 142, 142, 0.3);
  color: var(--danger);
}

.market-access-state .material-symbols-rounded {
  font-size: 17px;
}

.market-result-empty {
  min-height: 330px;
  margin-top: 18px;
  border: 1px dashed var(--border);
  border-radius: 13px;
  background:
    radial-gradient(circle at center, rgba(231, 173, 70, 0.05), transparent 16rem),
    var(--bg-deep);
  color: var(--muted);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

[data-theme="light"] .market-result-empty {
  background: var(--surface-2);
}

.market-result-empty > .material-symbols-rounded {
  color: var(--accent-strong);
  font-size: 39px;
}

.market-result-empty h2 {
  margin: 11px 0 4px;
  color: var(--text);
  font-size: 18px;
}

.market-result-empty p {
  max-width: 390px;
  margin: 0;
  font-size: 11px;
}

.market-quick-result {
  min-height: 330px;
  margin-top: 18px;
  padding: clamp(25px, 5vw, 54px);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(231, 173, 70, 0.35);
  border-radius: 13px;
  background:
    radial-gradient(circle at 84% 24%, rgba(231, 173, 70, 0.13), transparent 15rem),
    var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.market-quick-copy > span,
.market-quick-copy > strong,
.market-quick-copy > small {
  display: block;
}

.market-quick-copy > span {
  color: var(--muted);
  font-size: 12px;
}

.market-quick-copy > strong {
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.market-quick-copy > small {
  margin-top: 6px;
  color: var(--muted-strong);
}

.market-quick-card {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.market-quick-card > .material-symbols-rounded {
  color: var(--success);
}

.market-quick-card strong,
.market-quick-card small {
  max-width: 650px;
  display: block;
}

.market-quick-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-quick-card small {
  color: var(--muted);
}

.market-source-link {
  width: max-content;
  margin-top: 22px;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.market-source-link:hover,
.market-source-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.market-source-link .material-symbols-rounded {
  font-size: 16px;
}

.market-detail-result {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.market-detail-card {
  min-height: 370px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(231, 173, 70, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(125deg, rgba(231, 173, 70, 0.075), transparent 42%),
    var(--surface-2);
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(24px, 5vw, 55px);
}

.market-detail-image {
  height: 310px;
  display: grid;
  place-items: center;
}

.market-detail-image img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 11px;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.28));
}

.market-detail-tags {
  display: flex;
  gap: 6px;
}

.market-detail-tags span {
  padding: 4px 7px;
  border: 1px solid rgba(231, 173, 70, 0.35);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
}

.market-detail-copy > .eyebrow {
  margin-top: 20px;
}

.market-detail-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(22px, 3vw, 35px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.market-detail-copy > p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
}

.market-detail-price {
  margin-top: 26px;
}

.market-detail-price small,
.market-detail-price strong,
.market-detail-price span {
  display: block;
}

.market-detail-price small {
  color: var(--muted);
  font-size: 10px;
}

.market-detail-price strong {
  margin-top: 3px;
  color: var(--accent-strong);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.market-detail-price span {
  color: var(--muted-strong);
  font-size: 12px;
}

.market-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.market-data-panel,
.market-api-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
}

.market-panel-title {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.market-panel-title > .material-symbols-rounded {
  color: var(--accent-strong);
}

.market-panel-title h3,
.market-panel-title p {
  margin: 0;
}

.market-panel-title h3 {
  font-size: 15px;
}

.market-panel-title p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.market-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.market-facts > div {
  padding: 11px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
}

.market-facts dt,
.market-facts dd {
  margin: 0;
}

.market-facts dt {
  color: var(--muted);
  font-size: 9px;
}

.market-facts dd {
  margin-top: 4px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-condition-list {
  display: grid;
  gap: 7px;
}

.market-condition-list > div {
  min-height: 41px;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.market-condition-list > div.active {
  border-color: rgba(231, 173, 70, 0.35);
  color: var(--accent-strong);
}

.market-condition-empty {
  color: var(--muted);
  font-size: 11px;
}

.market-api-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.market-api-fields article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(100px, auto) 1fr;
  align-items: start;
  gap: 11px;
}

.market-api-fields code {
  padding: 4px 6px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--bg-deep);
  color: var(--accent-strong);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-api-fields strong,
.market-api-fields p,
.market-api-fields small {
  display: block;
}

.market-api-fields strong {
  font-size: 11px;
}

.market-api-fields p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.market-api-fields small {
  margin-top: 5px;
  color: var(--muted-strong);
  font-size: 9px;
}

.market-error {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 142, 142, 0.35);
  border-radius: 9px;
  background: rgba(255, 142, 142, 0.08);
  color: var(--danger);
  font-size: 11px;
}

.market-guide-panel {
  padding: 24px;
  position: sticky;
  top: 98px;
}

.market-guide-panel h2 {
  margin: 0 0 24px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.market-guide-item {
  padding: 17px 0;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
}

.market-guide-item > span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.market-guide-item strong {
  font-size: 12px;
}

.market-guide-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.market-guide-warning {
  margin-top: 17px;
  padding: 12px;
  border: 1px dashed rgba(231, 173, 70, 0.34);
  border-radius: 9px;
  background: var(--accent-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.market-guide-warning > .material-symbols-rounded {
  color: var(--accent-strong);
  font-size: 17px;
}

.market-guide-warning p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 9px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .market-workspace {
    grid-template-columns: 1fr;
  }

  .market-guide-panel {
    position: static;
  }

  .market-api-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .market-shell {
    padding: 22px 12px 60px;
  }

  .market-hero {
    padding: 26px 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .market-source-note {
    width: 100%;
  }

  .market-tool-panel {
    padding: 13px;
  }

  .market-mode-switch {
    grid-template-columns: 1fr;
  }

  .market-mode-switch button {
    justify-content: flex-start;
  }

  .market-search-row {
    padding: 10px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .market-search-row button {
    grid-column: 1 / -1;
  }

  .market-quick-result {
    min-height: 360px;
    padding: 28px 19px;
  }

  .market-detail-card,
  .market-detail-grid {
    grid-template-columns: 1fr;
  }

  .market-detail-image {
    height: 280px;
  }

  .market-facts {
    grid-template-columns: 1fr;
  }

  .market-api-fields article {
    grid-template-columns: 1fr;
  }
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f0e8;
  --bg-deep: #ebe4d8;
  --surface: #fffdfa;
  --surface-2: #f7f1e7;
  --surface-3: #eee5d8;
  --text: #172033;
  --muted: #697486;
  --muted-strong: #475367;
  --border: #d7cbb8;
  --border-soft: #e6ddcf;
  --accent: #a76e13;
  --accent-strong: #855308;
  --accent-soft: rgba(167, 110, 19, 0.1);
  --success: #177a45;
  --danger: #b73b3b;
  --shadow: 0 18px 50px rgba(56, 42, 22, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: Inter, "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body > main {
  width: 100%;
  flex: 1 0 auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.material-symbols-rounded {
  font-size: 20px;
  font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(7, 17, 31, 0.96);
  backdrop-filter: blur(18px);
}

[data-theme="light"] .site-header {
  background: rgba(244, 240, 232, 0.96);
}

.site-header-inner {
  width: min(100%, var(--page-width));
  min-height: 78px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.site-nav {
  min-width: 0;
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 4px;
}

.site-nav a {
  position: relative;
  min-width: max-content;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  color: var(--muted-strong);
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: var(--accent-soft);
  outline: none;
}

.site-nav a.active {
  color: var(--accent-strong);
}

.site-nav a.active::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.site-actions {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn,
.icon-btn,
.filters-toggle {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.btn {
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
}

.btn:hover,
.icon-btn:hover,
.filters-toggle:hover,
.btn:focus-visible,
.icon-btn:focus-visible,
.filters-toggle:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  outline: none;
}

.btn:active,
.icon-btn:active,
.filters-toggle:active {
  transform: translateY(1px);
}

.page-shell {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 30px 22px 72px;
}

.page-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.page-heading h1,
.analysis-hero h1,
.admin-hero h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.page-heading p,
.analysis-hero p,
.admin-hero p {
  margin: 7px 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.collection-toolbar {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toolbar-primary {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(210px, 260px);
  gap: 12px;
}

.search-field,
.select-shell {
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
}

.search-field {
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-field .material-symbols-rounded {
  color: var(--muted);
  font-size: 25px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.search-field input::placeholder {
  color: var(--muted);
}

.search-field:focus-within,
.select-shell:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filters-toggle {
  min-height: 50px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
}

.select-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.select-shell > span {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}

.select-shell select {
  width: 100%;
  height: 100%;
  min-height: 48px;
  padding: 0 12px 0 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.filters {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
}

.filters.hidden {
  display: none;
}

.filters label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.filters select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--surface-2);
  color: var(--text);
}

.filters select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.results-meta {
  margin: 2px 2px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.results-meta strong {
  color: var(--text);
}

.grid.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.collection-card {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.collection-card:hover {
  z-index: 2;
  border-color: rgba(231, 173, 70, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}

.img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: var(--bg-deep);
}

.collection-card img {
  width: 100%;
  height: 320px;
  display: block;
  object-fit: contain;
}

.sold-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 8, 16, 0.72);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.qty-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 20px;
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(231, 173, 70, 0.55);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.92);
  color: #f4f7fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 20px;
}

.qty-badge {
  right: 20px;
}

[data-theme="light"] .qty-badge,
[data-theme="light"] .rank-badge {
  border-color: rgba(133, 83, 8, 0.72);
  background: rgba(23, 32, 51, 0.94);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.2);
}

.collection-card .content {
  min-height: 0;
  padding: 15px 2px 2px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-title {
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.muted {
  color: var(--muted);
}

.badges-row,
.tags-row {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  min-width: 0;
  padding: 3px 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge.psa,
.badge.tag {
  border-color: rgba(231, 173, 70, 0.55);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.price {
  margin-top: auto;
  padding-top: 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.price strong {
  margin-top: 3px;
  display: block;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.015em;
}

#toTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(231, 173, 70, 0.6);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent-strong);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

#toTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.analysis-shell {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 28px 22px 72px;
}

.analysis-hero,
.admin-hero {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-only-label {
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(231, 173, 70, 0.45);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.analysis-controls {
  display: flex;
  gap: 10px;
}

.analysis-gate {
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.analysis-gate h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.analysis-private {
  display: grid;
  gap: 14px;
}

.analysis-summary {
  min-height: 90px;
  padding: 0 20px;
  border: 1px solid rgba(231, 173, 70, 0.35);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
}

.summary-item {
  min-width: 0;
  padding: 4px 24px;
  border-left: 1px solid var(--border);
}

.summary-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.summary-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-item strong {
  margin-top: 4px;
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(18px, 2.1vw, 28px);
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-item:first-child strong,
.summary-item:nth-child(2) strong {
  color: var(--accent-strong);
}

.summary-item:last-child strong {
  font-size: clamp(15px, 1.45vw, 20px);
}

.analysis-panel,
.analysis-table-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.analysis-panel-header {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analysis-panel-header h2,
.analysis-table-panel h2 {
  margin: 0;
  font-size: 17px;
}

.analysis-panel-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.analysis-chart-wrap {
  position: relative;
  height: 330px;
}

.analysis-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.market-history-chart-wrap {
  height: 300px;
}

.market-history-panel > .analysis-note {
  margin-top: 12px;
  padding: 9px 12px;
  border-style: dashed;
}

.analysis-history-table-wrap {
  max-height: 390px;
  margin-top: 14px;
  overflow: auto;
  border-top: 1px solid var(--border-soft);
}

.analysis-history-table-wrap .analysis-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}

.history-up {
  color: var(--success);
  font-weight: 750;
  white-space: nowrap;
}

.history-down {
  color: var(--danger);
  font-weight: 750;
  white-space: nowrap;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
}

.analysis-table th,
.analysis-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: middle;
}

.analysis-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.holding-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.holding-card img {
  width: 38px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: contain;
  background: var(--bg-deep);
}

.holding-card strong,
.holding-card small {
  max-width: 220px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holding-card small {
  color: var(--muted);
}

.accent-value {
  color: var(--accent-strong);
  font-weight: 750;
  white-space: nowrap;
}

.mix-list {
  display: grid;
}

.mix-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: minmax(85px, 0.65fr) 52px minmax(130px, 1.4fr) 58px;
  align-items: center;
  gap: 12px;
}

.mix-row:last-child {
  border-bottom: 0;
}

.mix-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-qty,
.mix-percent {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.mix-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.mix-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--accent);
}

.analysis-note {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.converter-shell {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 30px 22px 72px;
}

.converter-grid {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.converter-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.converter-row:last-child {
  border-bottom: 0;
}

.currency-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-mark {
  width: 44px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.currency-code {
  display: block;
  font-weight: 800;
}

.currency-name {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.currency-amount {
  width: min(48%, 340px);
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  font-weight: 750;
  text-align: right;
}

.admin-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 30px 22px 72px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-card {
  min-width: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.admin-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer {
  width: 100%;
  margin-top: 18px;
  flex: 0 0 auto;
  border-top: 1px solid rgba(231, 173, 70, 0.2);
  background: #0b1830;
  color: #f4f7fb;
}

.site-footer-main {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 54px 22px 46px;
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(170px, 0.72fr) minmax(230px, 0.95fr) minmax(230px, 0.9fr);
  gap: clamp(28px, 5vw, 74px);
}

.footer-brand-link {
  width: max-content;
  color: #f4f7fb;
}

.footer-brand p,
.footer-privacy p {
  max-width: 520px;
  margin: 24px 0 0;
  color: #9ba8bd;
  font-size: 14px;
  line-height: 1.85;
}

.footer-section h2 {
  margin: 2px 0 20px;
  color: #f0b64c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.footer-section > a {
  width: max-content;
  margin: 0 0 12px;
  color: #aeb9ca;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-section > a .material-symbols-rounded {
  color: #f0b64c;
  font-size: 17px;
}

.footer-section > a:hover,
.footer-section > a:focus-visible {
  color: #ffffff;
  outline: none;
  transform: translateX(2px);
}

.footer-update-item {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.footer-update-item > .material-symbols-rounded {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240, 182, 76, 0.32);
  border-radius: 9px;
  color: #f0b64c;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 18px;
}

.footer-update-item strong,
.footer-update-item small {
  display: block;
}

.footer-update-item strong,
.footer-privacy > strong {
  color: #f4f7fb;
  font-size: 14px;
}

.footer-update-item small {
  margin-top: 3px;
  color: #8f9db2;
  font-size: 12px;
}

.footer-privacy p {
  margin-top: 10px;
}

.site-footer-bottom {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(155, 168, 189, 0.14);
  color: #718097;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
}

.access-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.access-shell {
  width: min(100%, 560px);
  padding: 32px 20px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  flex: 1 0 auto;
}

.access-card {
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid rgba(231, 173, 70, 0.38);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.access-brand {
  width: max-content;
  margin: 0 auto 34px;
}

.access-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border: 1px solid rgba(231, 173, 70, 0.5);
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}

.access-icon .material-symbols-rounded {
  font-size: 34px;
}

.access-card h1 {
  margin: 4px 0 10px;
  font-size: clamp(30px, 7vw, 42px);
  letter-spacing: -0.035em;
}

.access-intro {
  max-width: 410px;
  margin: 0 auto;
  color: var(--muted-strong);
  line-height: 1.75;
}

.access-admin {
  margin: 24px 0 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.access-admin .material-symbols-rounded {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--accent-strong);
}

.access-admin strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
}

.access-status {
  min-height: 24px;
  margin: 16px 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.6;
}

.access-status[data-tone="error"] {
  color: var(--danger);
}

.access-actions {
  display: grid;
  gap: 10px;
}

.access-login,
.access-switch {
  min-height: 48px;
  justify-content: center;
}

.access-request-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  text-align: left;
}

.access-request-panel h2 {
  margin: 0 0 5px;
  font-size: 17px;
}

.access-request-panel > p,
.access-request-state {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.access-request-panel form {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.access-request-panel label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.access-request-panel textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}

.access-request-state {
  min-height: 20px;
  margin-top: 10px;
}

.access-request-state[data-tone="success"] {
  color: var(--success);
}

.access-request-state[data-tone="error"] {
  color: var(--danger);
}

.access-footnote {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.empty-results {
  margin: 36px 0;
  color: var(--muted);
  text-align: center;
}

/* Shopping experience preview */
.shop-page {
  background:
    radial-gradient(circle at 84% 9%, rgba(231, 173, 70, 0.075), transparent 27rem),
    var(--bg);
}

.shop-shell {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 28px 22px 80px;
}

.shop-hero {
  min-height: 570px;
  padding: clamp(34px, 5vw, 72px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(112deg, rgba(13, 25, 41, 0.98) 0%, rgba(13, 25, 41, 0.9) 48%, rgba(19, 33, 51, 0.76) 100%),
    var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  box-shadow: var(--shadow);
}

[data-theme="light"] .shop-hero {
  background:
    linear-gradient(112deg, rgba(255, 253, 250, 0.99) 0%, rgba(255, 253, 250, 0.94) 49%, rgba(238, 229, 216, 0.85) 100%),
    var(--surface);
}

.shop-hero::before {
  width: 430px;
  height: 430px;
  position: absolute;
  top: -260px;
  left: 38%;
  border: 1px solid rgba(231, 173, 70, 0.16);
  border-radius: 50%;
  content: "";
}

.shop-hero-copy {
  position: relative;
  z-index: 2;
}

.prototype-pill {
  width: max-content;
  margin-bottom: 24px;
  padding: 7px 10px;
  border: 1px solid rgba(231, 173, 70, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.prototype-pill .material-symbols-rounded {
  font-size: 16px;
}

.shop-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.shop-lead {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
}

.shop-hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.shop-primary-action,
.shop-secondary-action,
.shop-card-action,
.shop-checkout-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #171005;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.shop-primary-action:hover,
.shop-primary-action:focus-visible,
.shop-card-action:hover,
.shop-card-action:focus-visible,
.shop-checkout-button:hover,
.shop-checkout-button:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  outline: none;
  transform: translateY(-1px);
}

.shop-secondary-action {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.shop-secondary-action:hover,
.shop-secondary-action:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
  outline: none;
}

.shop-trust-list {
  margin: 38px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-trust-list > div {
  min-width: 0;
  padding: 0 20px;
  border-left: 1px solid var(--border);
}

.shop-trust-list > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.shop-trust-list dt,
.shop-trust-list dd {
  margin: 0;
}

.shop-trust-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-trust-list dd {
  margin-top: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.shop-hero-visual {
  height: 440px;
  position: relative;
}

.shop-visual-glow {
  width: 320px;
  height: 320px;
  position: absolute;
  top: 62px;
  left: 50%;
  border-radius: 50%;
  background: rgba(231, 173, 70, 0.16);
  filter: blur(42px);
  transform: translateX(-50%);
}

.shop-hero-card {
  width: clamp(180px, 16vw, 245px);
  height: 340px;
  margin: 0;
  position: absolute;
  top: 48px;
  left: 50%;
  overflow: hidden;
  border: 1px solid rgba(231, 173, 70, 0.35);
  border-radius: 15px;
  background: var(--bg-deep);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
}

.shop-hero-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.shop-hero-card-1 {
  z-index: 3;
}

.shop-hero-card-2 {
  z-index: 2;
  transform: translateX(-112%) rotate(-9deg) scale(0.86);
  opacity: 0.76;
}

.shop-hero-card-3 {
  z-index: 1;
  transform: translateX(12%) rotate(9deg) scale(0.86);
  opacity: 0.76;
}

.shop-placeholder-card {
  display: grid;
  place-items: center;
}

.shop-curator-note {
  min-width: 185px;
  padding: 12px 15px;
  position: absolute;
  right: 4%;
  bottom: 14px;
  z-index: 5;
  border: 1px solid rgba(231, 173, 70, 0.36);
  border-radius: 12px;
  background: rgba(7, 17, 31, 0.92);
  color: #f4f7fb;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.shop-curator-note > .material-symbols-rounded {
  color: #f4c56d;
}

.shop-curator-note small,
.shop-curator-note strong {
  display: block;
}

.shop-curator-note small {
  color: #91a0b4;
  font-size: 10px;
}

.shop-curator-note strong {
  margin-top: 2px;
  font-size: 13px;
}

.shop-value-strip {
  margin: 16px 0 70px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-value-strip > div {
  min-width: 0;
  padding: 2px 24px;
  border-left: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 13px;
}

.shop-value-strip > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.shop-value-strip .material-symbols-rounded {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.shop-value-strip strong,
.shop-value-strip small {
  display: block;
}

.shop-value-strip strong {
  font-size: 13px;
}

.shop-value-strip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.shop-section {
  scroll-margin-top: 100px;
}

.shop-section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.shop-section-heading h2,
.grading-intro h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.shop-section-heading p:not(.eyebrow),
.grading-intro > p:not(.eyebrow) {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
}

.shop-cart-trigger {
  min-height: 48px;
  padding: 0 13px 0 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.shop-cart-trigger:hover,
.shop-cart-trigger:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.shop-cart-trigger strong {
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #171005;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.shop-tabs {
  margin-bottom: 18px;
  padding-bottom: 1px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 4px;
  scrollbar-width: none;
}

.shop-tabs::-webkit-scrollbar {
  display: none;
}

.shop-tabs button {
  min-width: max-content;
  padding: 12px 16px;
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.shop-tabs button::after {
  height: 2px;
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  background: transparent;
  content: "";
}

.shop-tabs button:hover,
.shop-tabs button:focus-visible,
.shop-tabs button.active {
  color: var(--text);
  outline: none;
}

.shop-tabs button.active::after {
  background: var(--accent);
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.shop-product-card,
.shop-service-teaser {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.shop-product-card:hover {
  border-color: rgba(231, 173, 70, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.shop-product-image {
  height: 330px;
  padding: 13px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(231, 173, 70, 0.055), transparent 46%),
    var(--bg-deep);
  display: grid;
  place-items: center;
}

[data-theme="light"] .shop-product-image {
  background:
    linear-gradient(145deg, rgba(167, 110, 19, 0.075), transparent 46%),
    var(--surface-2);
}

.shop-product-image > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 240ms ease;
}

.shop-product-card:hover .shop-product-image > img {
  transform: scale(1.025);
}

.shop-listing-badge {
  padding: 6px 8px;
  position: absolute;
  top: 13px;
  left: 13px;
  border: 1px solid rgba(244, 247, 251, 0.16);
  border-radius: 7px;
  background: rgba(7, 17, 31, 0.88);
  color: #f4f7fb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.shop-listing-badge.auction {
  border-color: rgba(231, 173, 70, 0.56);
  color: #f4c56d;
}

.shop-save-button,
.shop-icon-action {
  width: 37px;
  height: 37px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(7, 17, 31, 0.86);
  color: #f4f7fb;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.shop-save-button {
  position: absolute;
  top: 13px;
  right: 13px;
}

.shop-save-button .material-symbols-rounded {
  font-size: 18px;
}

.shop-save-button:hover,
.shop-save-button:focus-visible,
.shop-save-button.saved {
  border-color: rgba(255, 142, 142, 0.7);
  color: #ff9c9c;
  outline: none;
}

.shop-save-button.saved .material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 450, "GRAD" 0, "opsz" 24;
}

.shop-product-content {
  min-height: 250px;
  padding: 17px;
  display: flex;
  flex-direction: column;
}

.shop-product-meta {
  min-height: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-grade {
  padding: 3px 6px;
  border: 1px solid rgba(231, 173, 70, 0.35);
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.shop-product-content h3 {
  min-height: 47px;
  margin: 10px 0 18px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-price-row {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.shop-price-row small,
.shop-price-row strong {
  display: block;
}

.shop-price-row small {
  color: var(--muted);
  font-size: 10px;
}

.shop-price-row strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.shop-countdown {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.shop-listing-badge.lottery {
  border-color: rgba(113, 216, 150, 0.54);
  color: #9ee8b8;
}

.shop-lottery-product .shop-product-image {
  background:
    radial-gradient(circle at 48% 48%, rgba(255, 108, 82, 0.14), transparent 14rem),
    var(--bg-deep);
}

.shop-lottery-note {
  max-width: 92px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  text-align: right;
}

.shop-card-action {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  font-size: 13px;
}

.shop-card-action.outline {
  background: transparent;
  color: var(--accent-strong);
}

.shop-card-action.lottery {
  border-color: rgba(113, 216, 150, 0.6);
  background: transparent;
  color: var(--success);
}

.shop-card-action.lottery:hover,
.shop-card-action.lottery:focus-visible {
  border-color: var(--success);
  background: rgba(113, 216, 150, 0.1);
}

.shop-card-action:disabled {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}

.shop-service-teaser {
  min-height: 596px;
  padding: 28px;
  border-color: rgba(231, 173, 70, 0.38);
  background:
    radial-gradient(circle at 85% 12%, rgba(231, 173, 70, 0.16), transparent 12rem),
    linear-gradient(150deg, var(--surface-2), var(--surface));
  display: flex;
  flex-direction: column;
}

.shop-service-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border: 1px solid rgba(231, 173, 70, 0.45);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}

.shop-service-icon .material-symbols-rounded {
  font-size: 28px;
}

.shop-service-teaser h3 {
  max-width: 250px;
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.shop-service-teaser p:not(.eyebrow) {
  color: var(--muted-strong);
  line-height: 1.75;
}

.shop-service-price {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.shop-service-price small,
.shop-service-price strong {
  display: block;
}

.shop-service-price small {
  color: var(--muted);
  font-size: 10px;
}

.shop-service-price strong {
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 20px;
}

.shop-empty-state {
  grid-column: 1 / -1;
  padding: 64px 20px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.shop-empty-state .material-symbols-rounded {
  color: var(--accent-strong);
  font-size: 38px;
}

.shop-empty-state h3 {
  margin: 12px 0 4px;
  color: var(--text);
}

.shop-empty-state p {
  margin: 0;
}

.grading-section {
  margin-top: 88px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(231, 173, 70, 0.055), transparent 45%),
    var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
}

.grading-intro > .shop-primary-action {
  margin-top: 28px;
}

.grading-demo-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.16);
}

.grading-demo-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.grading-demo-head small,
.grading-demo-head strong {
  display: block;
}

.grading-demo-head small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.grading-demo-head strong {
  margin-top: 5px;
  font-size: 15px;
}

.grading-status {
  padding: 6px 9px;
  border: 1px solid rgba(231, 173, 70, 0.4);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.grading-timeline {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.grading-timeline li {
  min-height: 63px;
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
}

.grading-timeline li:not(:last-child)::before {
  width: 1px;
  height: calc(100% - 30px);
  position: absolute;
  top: 30px;
  left: 15px;
  background: var(--border);
  content: "";
}

.grading-timeline li > span {
  width: 30px;
  height: 30px;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.grading-timeline li.done > span,
.grading-timeline li.current > span {
  border-color: rgba(231, 173, 70, 0.55);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.grading-timeline li > div {
  padding-top: 2px;
}

.grading-timeline strong,
.grading-timeline small {
  display: block;
}

.grading-timeline strong {
  font-size: 13px;
}

.grading-timeline small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.grading-cost-row {
  padding-top: 17px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.grading-cost-row strong {
  color: var(--text);
  font-size: 17px;
}

.shop-demo-note {
  margin-top: 16px;
  padding: 17px 19px;
  border: 1px dashed rgba(231, 173, 70, 0.36);
  border-radius: 13px;
  background: var(--accent-soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shop-demo-note > .material-symbols-rounded {
  margin-top: 2px;
  color: var(--accent-strong);
}

.shop-demo-note strong,
.shop-demo-note p {
  display: block;
}

.shop-demo-note p {
  margin: 3px 0 0;
  color: var(--muted-strong);
  font-size: 12px;
}

.shop-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 7, 13, 0.68);
  backdrop-filter: blur(3px);
}

.cart-drawer {
  width: min(440px, 100vw);
  height: 100dvh;
  padding: 24px;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  border-left: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: -22px 0 65px rgba(0, 0, 0, 0.35);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-head,
.shop-dialog-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.cart-drawer-head h2,
.shop-dialog-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.shop-icon-action {
  flex: 0 0 auto;
  background: var(--surface-2);
  color: var(--text);
}

.shop-icon-action:hover,
.shop-icon-action:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
  outline: none;
}

.cart-items {
  min-height: 0;
  padding: 10px 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
}

.cart-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.cart-item img {
  width: 62px;
  height: 82px;
  border-radius: 7px;
  background: var(--bg-deep);
  object-fit: contain;
}

.cart-item strong,
.cart-item small {
  display: block;
}

.cart-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item small {
  margin-top: 5px;
  color: var(--accent-strong);
}

.cart-remove {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cart-remove:hover,
.cart-remove:focus-visible {
  color: var(--danger);
  outline: none;
}

.cart-empty {
  margin: auto 0;
  color: var(--muted);
  text-align: center;
}

.cart-empty > .material-symbols-rounded {
  color: var(--accent-strong);
  font-size: 40px;
}

.cart-empty strong {
  margin-top: 10px;
  display: block;
  color: var(--text);
}

.cart-empty p {
  margin: 4px 0 0;
  font-size: 12px;
}

.cart-summary {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--border);
}

.cart-summary > div {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.cart-summary > div strong {
  color: var(--text);
}

.shop-checkout-button {
  width: 100%;
  margin-top: 10px;
}

.shop-checkout-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.cart-summary > small,
.shop-dialog-disclaimer {
  margin-top: 9px;
  color: var(--muted);
  display: block;
  font-size: 10px;
  text-align: center;
}

.shop-dialog {
  width: min(510px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
}

.shop-dialog::backdrop {
  background: rgba(2, 7, 13, 0.72);
  backdrop-filter: blur(4px);
}

.shop-dialog-card {
  padding: 24px;
}

.bid-product-summary {
  margin: 20px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 13px;
}

.bid-product-summary img {
  width: 58px;
  height: 78px;
  border-radius: 6px;
  background: var(--bg-deep);
  object-fit: contain;
}

.bid-product-summary small,
.bid-product-summary strong,
.bid-product-summary span {
  display: block;
}

.bid-product-summary small {
  color: var(--muted);
  font-size: 10px;
}

.bid-product-summary strong {
  margin: 4px 0;
}

.bid-product-summary span {
  color: var(--accent-strong);
  font-size: 12px;
}

.shop-form-field {
  margin-top: 16px;
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.shop-form-field input,
.shop-form-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
}

.shop-form-field input:focus,
.shop-form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.shop-form-help {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.shop-lottery-rules {
  margin: 4px 0 18px;
  display: grid;
  gap: 9px;
}

.shop-lottery-rules > div {
  padding: 10px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 8px;
}

.shop-lottery-rules span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.shop-lottery-rules p {
  margin: 2px 0 0;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.55;
}

.shop-lottery-agreement {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.55;
}

.shop-lottery-agreement input {
  margin-top: 2px;
  accent-color: var(--accent);
}

.shop-upload-field {
  margin-top: 16px;
  padding: 22px 16px;
  position: relative;
  overflow: hidden;
  border: 1px dashed var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
}

.shop-upload-field:hover,
.shop-upload-field:focus-within {
  border-color: var(--accent);
}

.shop-upload-field .material-symbols-rounded {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 30px;
}

.shop-upload-field strong,
.shop-upload-field small {
  display: block;
}

.shop-upload-field small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.shop-upload-field input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.shop-toast {
  max-width: min(380px, calc(100% - 28px));
  padding: 12px 15px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  border: 1px solid rgba(231, 173, 70, 0.5);
  border-radius: 10px;
  background: rgba(13, 25, 41, 0.96);
  color: #f4f7fb;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.shop-toast.show {
  opacity: 1;
  transform: translateY(0);
}

body.cart-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .site-header-inner {
    gap: 16px;
  }

  .site-nav a {
    padding: 0 12px;
  }

  .grid.collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-hero {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
  }

  .shop-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header-inner {
    min-height: 0;
    padding: 10px 16px 0;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: calc(100% + 32px);
    margin: 0 -16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    min-height: 46px;
    padding: 0 16px;
  }

  .site-nav a.active::after {
    right: 16px;
    left: 16px;
  }

  .toolbar-primary {
    grid-template-columns: 1fr auto;
  }

  .toolbar-primary .select-shell {
    grid-column: 1 / -1;
  }

  .grid.collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-card img {
    height: 300px;
  }

  .analysis-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 18px;
  }

  .summary-item {
    padding: 12px;
  }

  .summary-item:nth-child(odd) {
    border-left: 0;
  }

  .analysis-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 48px;
  }

  .shop-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .shop-hero-copy {
    max-width: 720px;
  }

  .shop-hero-visual {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .shop-value-strip {
    grid-template-columns: 1fr;
  }

  .shop-value-strip > div,
  .shop-value-strip > div:first-child {
    padding: 15px 0;
    border-top: 1px solid var(--border-soft);
    border-left: 0;
  }

  .shop-value-strip > div:first-child {
    border-top: 0;
  }

  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grading-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header-inner {
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .site-actions {
    max-width: 54%;
  }

  .auth-button {
    max-width: 142px;
  }

  .page-shell,
  .analysis-shell,
  .converter-shell,
  .admin-shell,
  .shop-shell {
    padding: 22px 12px 60px;
  }

  .page-heading,
  .analysis-hero,
  .admin-hero {
    align-items: start;
    flex-direction: column;
  }

  .page-heading h1,
  .analysis-hero h1,
  .admin-hero h1 {
    font-size: 27px;
  }

  .collection-toolbar {
    padding: 11px;
    border-radius: var(--radius-md);
  }

  .toolbar-primary {
    grid-template-columns: 1fr;
  }

  .filters-toggle,
  .toolbar-primary .select-shell {
    width: 100%;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .grid.collection-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .collection-card {
    padding: 11px;
  }

  .collection-card img {
    height: min(430px, 104vw);
  }

  .card-title {
    min-height: 0;
  }

  .analysis-controls {
    width: 100%;
  }

  .analysis-controls .select-shell {
    flex: 1;
  }

  .analysis-summary {
    grid-template-columns: 1fr;
  }

  .summary-item,
  .summary-item:first-child,
  .summary-item:nth-child(3) {
    padding: 12px 0;
    border-top: 1px solid var(--border-soft);
    border-left: 0;
  }

  .summary-item:first-child {
    border-top: 0;
  }

  .analysis-chart-wrap {
    height: 250px;
  }

  .analysis-panel,
  .analysis-table-panel {
    padding: 14px;
  }

  .analysis-table th:nth-child(3),
  .analysis-table td:nth-child(3),
  .analysis-table th:nth-child(4),
  .analysis-table td:nth-child(4) {
    display: none;
  }

  .mix-row {
    grid-template-columns: minmax(78px, 1fr) 40px minmax(92px, 1.2fr) 48px;
    gap: 8px;
    font-size: 12px;
  }

  .converter-row {
    padding: 13px;
  }

  .currency-amount {
    font-size: 18px;
  }

  .site-footer {
    margin-top: 0;
  }

  .site-footer-main {
    padding: 40px 20px 34px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand p {
    margin-top: 18px;
  }

  .footer-section h2 {
    margin-bottom: 14px;
  }

  .site-footer-bottom {
    padding: 18px 20px 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .shop-hero {
    padding: 28px 18px;
    border-radius: 17px;
  }

  .shop-hero h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .shop-lead {
    line-height: 1.7;
  }

  .shop-hero-actions {
    display: grid;
  }

  .shop-primary-action,
  .shop-secondary-action {
    width: 100%;
  }

  .shop-trust-list {
    grid-template-columns: 1fr;
  }

  .shop-trust-list > div,
  .shop-trust-list > div:first-child {
    padding: 10px 0;
    border-top: 1px solid var(--border-soft);
    border-left: 0;
  }

  .shop-trust-list > div:first-child {
    border-top: 0;
  }

  .shop-hero-visual {
    height: 350px;
  }

  .shop-hero-card {
    width: 180px;
    height: 265px;
    top: 30px;
  }

  .shop-curator-note {
    right: 0;
    bottom: 5px;
  }

  .shop-value-strip {
    margin-bottom: 54px;
  }

  .shop-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-product-grid {
    grid-template-columns: 1fr;
  }

  .shop-product-image {
    height: min(430px, 108vw);
  }

  .shop-service-teaser {
    min-height: 480px;
  }

  .grading-section {
    margin-top: 64px;
    padding: 26px 16px;
    border-radius: 16px;
  }

  .grading-demo-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-demo-note {
    line-height: 1.55;
  }

  .cart-drawer {
    padding: 18px;
  }

  .shop-dialog-card {
    padding: 19px;
  }
}
