: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;
}

[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-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  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;
}

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: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 20px;
}

.qty-badge {
  right: 20px;
}

.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;
}

.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;
}

.access-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.access-shell {
  width: min(100%, 560px);
  padding: 32px 20px;
}

.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;
}

@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));
  }
}

@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;
  }
}

@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 {
    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;
  }
}
