:root {
  --paper: #f6f1e7;
  --surface: #fffaf0;
  --ink: #17212b;
  --muted: #6b6f72;
  --line: rgba(23, 33, 43, 0.14);
  --teal: #126b6f;
  --teal-dark: #0e4f54;
  --brass: #bd8b2f;
  --crimson: #9b2743;
  --sage: #6f8b63;
  --blue: #315b86;
  --shadow: 0 18px 60px rgba(19, 27, 33, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(246, 241, 231, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border: 2px solid var(--brass);
  color: var(--surface);
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  letter-spacing: 0;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 4px;
}

.main-nav {
  align-items: center;
  background: rgba(255, 250, 240, 0.74);
  border: 1px solid var(--line);
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  padding: 5px;
}

.main-nav a {
  color: #3d464d;
  font-size: 0.92rem;
  padding: 9px 13px;
}

.main-nav a:hover {
  background: rgba(18, 107, 111, 0.08);
  color: var(--teal-dark);
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.button,
.icon-button,
.chip,
.segment {
  border: 1px solid transparent;
}

.button {
  align-items: center;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.button.primary {
  background: var(--teal);
  color: white;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.ghost {
  background: rgba(255, 250, 240, 0.68);
  border-color: var(--line);
  color: var(--ink);
}

.button.dark {
  background: var(--ink);
  color: white;
  width: 100%;
}

.dark-text {
  color: var(--ink);
}

.icon-button {
  align-items: center;
  background: rgba(255, 250, 240, 0.82);
  border-color: var(--line);
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.icon-button svg,
.button svg,
.trust-strip svg,
.expert-steps svg,
.module-grid svg {
  height: 18px;
  width: 18px;
}

.market-shell {
  display: grid;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  position: relative;
}

.page-shell {
  background: #fbf7ed;
  min-height: calc(100vh - 76px);
}

.page-hero {
  background: var(--ink);
  color: white;
  padding: clamp(46px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 5rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 920px;
}

.page-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.06rem;
  line-height: 1.6;
  max-width: 680px;
}

.toolbar-panel {
  background: #f2eadb;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 18px clamp(18px, 5vw, 72px);
}

.page-search {
  box-shadow: none;
  max-width: none;
  grid-template-columns: 1fr 180px 180px auto;
}

.page-content {
  padding-top: 42px;
}

.hero-visual {
  background:
    linear-gradient(90deg, rgba(12, 17, 22, 0.78) 0%, rgba(12, 17, 22, 0.45) 44%, rgba(12, 17, 22, 0.08) 100%),
    linear-gradient(0deg, rgba(23, 33, 43, 0.72), rgba(23, 33, 43, 0.12)),
    url("assets/antika-hero.png") center / cover;
  inset: 0;
  position: absolute;
}

.market-panel {
  align-content: center;
  display: grid;
  gap: 22px;
  max-width: 1060px;
  min-height: calc(100vh - 76px);
  padding: 48px clamp(18px, 5vw, 72px) 64px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.market-intro {
  color: white;
  max-width: 720px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.eyebrow {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.market-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 5vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  max-width: 820px;
}

.market-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 620px;
}

.search-card {
  align-items: center;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 190px auto;
  max-width: 920px;
  padding: 10px;
}

.search-field {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
}

.search-field svg {
  color: var(--teal);
  height: 19px;
  width: 19px;
}

.search-field input,
.search-card select,
.appraisal-form input,
.appraisal-form select,
.appraisal-form textarea,
.modal-form input,
.modal-form select,
.modal-form textarea {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  outline: none;
  width: 100%;
}

.search-field input,
.search-card select,
.appraisal-form input,
.appraisal-form select,
.modal-form input,
.modal-form select {
  min-height: 48px;
}

.appraisal-form textarea,
.modal-form textarea {
  line-height: 1.45;
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.search-field input {
  border: 0;
  min-width: 0;
}

.search-card select,
.appraisal-form input,
.appraisal-form select,
.modal-form input,
.modal-form select {
  padding: 0 12px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 920px;
}

.chip {
  background: rgba(255, 250, 240, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  color: #27313a;
  min-height: 36px;
  padding: 0 13px;
}

.chip.active,
.chip:hover {
  background: var(--brass);
  color: var(--ink);
}

.trust-strip {
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-strip span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-height: 32px;
}

.section-grid,
.content-band {
  padding-inline: clamp(18px, 5vw, 72px);
}

.section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.metric-tile {
  color: white;
  min-height: 118px;
  padding: 22px;
}

.metric-tile span,
.metric-tile strong {
  display: block;
}

.metric-tile span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.metric-tile strong {
  font-family: Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  letter-spacing: 0;
  margin-top: 12px;
}

.metric-tile.ink {
  background: var(--ink);
}

.metric-tile.teal {
  background: var(--teal);
}

.metric-tile.brass {
  background: #a16d19;
}

.metric-tile.crimson {
  background: var(--crimson);
}

.content-band {
  padding-bottom: 72px;
  padding-top: 72px;
}

.listings-band {
  background: #fbf7ed;
}

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

.section-heading h2,
.expert-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.segmented {
  background: white;
  border: 1px solid var(--line);
  display: inline-flex;
  padding: 4px;
}

.segment {
  background: transparent;
  color: var(--muted);
  min-height: 38px;
  padding: 0 14px;
}

.segment.active {
  background: var(--ink);
  color: white;
}

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

.listing-card {
  background: white;
  border: 1px solid var(--line);
  display: grid;
  min-height: 390px;
  overflow: hidden;
}

.listing-card a {
  text-decoration: none;
}

.listing-card.is-loading {
  align-content: center;
  color: var(--muted);
  min-height: 220px;
  padding: 24px;
}

.listing-art {
  align-items: end;
  aspect-ratio: 1.12;
  background: var(--item-bg);
  display: flex;
  justify-content: space-between;
  padding: 14px;
  position: relative;
}

.listing-art::before {
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.72) 0 10%, transparent 11%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 45%);
  content: "";
  inset: 0;
  position: absolute;
}

.object-symbol {
  color: rgba(255, 255, 255, 0.92);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  position: relative;
}

.badge {
  align-items: center;
  background: rgba(23, 33, 43, 0.86);
  color: white;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 750;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  position: relative;
}

.listing-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.listing-body h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0;
}

.meta-row,
.price-row,
.seller-row {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: space-between;
}

.meta-row {
  color: var(--muted);
  font-size: 0.86rem;
}

.price-row strong {
  color: var(--teal-dark);
  font-size: 1.16rem;
}

.seller-row {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  padding-top: 12px;
}

.seller-row span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.save-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.save-button.saved {
  background: var(--crimson);
  color: white;
}

.auction-band {
  background: #f2eadb;
}

.status-pill {
  align-items: center;
  background: var(--ink);
  color: white;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
}

.status-pill svg {
  color: #f5cf7b;
  height: 17px;
  width: 17px;
}

.auction-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auction-card {
  background: white;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
}

.auction-art {
  text-decoration: none;
}

.auction-art {
  align-items: center;
  background: var(--item-bg);
  color: white;
  display: flex;
  font-family: Georgia, serif;
  font-size: 4.6rem;
  justify-content: center;
  min-height: 260px;
}

.auction-body {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.auction-body h3 {
  font-size: 1.18rem;
  margin: 0;
}

.auction-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auction-stats span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
}

.auction-stats strong {
  display: block;
  font-size: 0.98rem;
  margin-top: 4px;
}

.bid-form {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

.bid-form input {
  border: 1px solid var(--line);
  min-height: 42px;
  padding: 0 12px;
}

.split-band {
  background: var(--ink);
  color: white;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.page-split {
  align-items: start;
}

.expert-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 650px;
}

.expert-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
}

.expert-steps span {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  gap: 8px;
  min-height: 54px;
  padding: 0 14px;
}

.appraisal-form {
  background: var(--surface);
  color: var(--ink);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.appraisal-form label {
  color: #3e464d;
  display: grid;
  font-size: 0.9rem;
  font-weight: 750;
  gap: 8px;
}

.toggle-line {
  align-items: center;
  display: flex !important;
  font-weight: 650 !important;
  gap: 10px !important;
}

.toggle-line input {
  accent-color: var(--teal);
  height: 18px;
  width: 18px;
}

.community-band {
  background: #eef3ef;
}

.community-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 360px;
}

.discussion-list {
  display: grid;
  gap: 12px;
}

.discussion {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 8px;
  padding: 18px;
  text-align: left;
}

.discussion.active {
  border-left: 6px solid var(--teal);
}

.discussion span,
.discussion small {
  color: var(--muted);
}

.discussion strong {
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.discussion-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.event-board {
  background: var(--teal-dark);
  color: white;
  padding: 22px;
}

.event-board h3 {
  margin: 0 0 18px;
}

.event {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 14px;
  grid-template-columns: 64px 1fr;
  padding: 15px 0;
}

.event time {
  color: #f5cf7b;
  font-weight: 850;
}

.ecosystem {
  background: var(--paper);
}

.module-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 188px;
  padding: 22px;
}

.module-grid article a {
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 800;
  margin-top: 14px;
}

.module-grid svg {
  color: var(--teal);
}

.module-grid h3 {
  font-size: 1.1rem;
  margin: 14px 0 8px;
}

.module-grid p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.listing-dialog {
  background: var(--surface);
  border: 0;
  box-shadow: var(--shadow);
  color: var(--ink);
  max-width: min(780px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}

.detail-shell {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(280px, 42vw) 1fr;
  padding: clamp(18px, 5vw, 72px);
}

.detail-art {
  align-items: center;
  background: var(--item-bg);
  color: white;
  display: flex;
  font-family: Georgia, serif;
  font-size: clamp(5rem, 14vw, 11rem);
  justify-content: center;
  min-height: 520px;
}

.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 42px);
}

.detail-panel.light {
  background: white;
  color: var(--ink);
}

.detail-panel.wide {
  grid-column: 1 / -1;
}

.detail-panel h1,
.detail-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.detail-panel h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.detail-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.detail-panel p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.detail-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-stats div,
.seller-card,
.record {
  background: rgba(18, 107, 111, 0.08);
  border: 1px solid var(--line);
  padding: 14px;
}

.detail-stats span,
.seller-card span,
.record span {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 5px;
}

.detail-stats strong,
.seller-card strong,
.record strong {
  display: block;
}

.record-list {
  display: grid;
  gap: 10px;
}

.reply-form {
  display: grid;
  gap: 12px;
}

.reply-form label {
  color: #3e464d;
  display: grid;
  font-size: 0.9rem;
  font-weight: 750;
  gap: 8px;
}

.reply-form textarea {
  border: 1px solid var(--line);
  min-height: 96px;
  padding: 12px;
}

.detail-bid {
  max-width: 520px;
}

.account-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-layout .detail-panel:first-child,
.account-layout .detail-panel:nth-child(3) {
  grid-column: 1 / -1;
}

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

.form-dialog {
  max-width: min(760px, calc(100vw - 32px));
}

.listing-dialog::backdrop {
  background: rgba(10, 16, 20, 0.62);
  backdrop-filter: blur(3px);
}

.close-dialog {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.dialog-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.dialog-art {
  align-items: center;
  background: var(--item-bg);
  color: white;
  display: flex;
  font-family: Georgia, serif;
  font-size: 5rem;
  justify-content: center;
  min-height: 320px;
}

.dialog-copy {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.dialog-copy h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
  margin: 0;
}

.dialog-copy p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.modal-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.modal-form h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
  margin: 0;
}

.modal-form p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.modal-form label {
  color: #3e464d;
  display: grid;
  font-size: 0.9rem;
  font-weight: 750;
  gap: 8px;
}

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

.field-wide {
  grid-column: 1 / -1;
}

.account-block {
  background: rgba(18, 107, 111, 0.08);
  border: 1px solid var(--line);
  padding: 14px;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification {
  border: 1px solid var(--line);
  padding: 12px;
}

.notification strong,
.notification span {
  display: block;
}

.notification span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 4px;
}

.toast {
  background: var(--ink);
  bottom: 22px;
  box-shadow: var(--shadow);
  color: white;
  left: 50%;
  max-width: min(560px, calc(100vw - 28px));
  opacity: 0;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty-state {
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
}

.site-footer {
  align-items: center;
  background: #101820;
  color: white;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
}

.site-footer span {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

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

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

@media (max-width: 820px) {
  .topbar {
    gap: 12px;
    min-height: auto;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .top-actions .ghost,
  .top-actions .icon-button {
    display: none;
  }

  .market-panel {
    min-height: calc(100vh - 67px);
    padding-bottom: 42px;
    padding-top: 42px;
  }

  .market-intro h1 {
    font-size: clamp(2.25rem, 13vw, 3.65rem);
  }

  .search-card {
    grid-template-columns: 1fr;
  }

  .page-search,
  .detail-shell,
  .detail-stats,
  .account-layout,
  .compact {
    grid-template-columns: 1fr;
  }

  .detail-art {
    min-height: 280px;
  }

  .section-grid,
  .listing-grid,
  .auction-grid,
  .auction-card,
  .split-band,
  .community-layout,
  .module-grid,
  .dialog-inner {
    grid-template-columns: 1fr;
  }

  .section-grid {
    margin-top: 0;
    padding-top: 18px;
  }

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

  .segmented {
    overflow-x: auto;
    max-width: 100%;
  }

  .expert-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-board {
    order: -1;
  }

  .form-grid,
  .auction-stats,
  .bid-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .topbar {
    padding-inline: 12px;
  }

  .button {
    min-height: 40px;
    padding-inline: 13px;
  }

  .market-panel,
  .content-band,
  .section-grid {
    padding-inline: 14px;
  }

  .trust-strip {
    gap: 8px;
  }

  .trust-strip span {
    font-size: 0.82rem;
  }

  .metric-tile {
    min-height: 104px;
    padding: 18px;
  }

  .expert-steps {
    grid-template-columns: 1fr;
  }
}

/* Clay design pass from DESIGN.md */
:root {
  --paper: #fffaf0;
  --surface: #fffaf0;
  --surface-soft: #faf5e8;
  --surface-card: #f5f0e0;
  --surface-strong: #ebe6d6;
  --ink: #0a0a0a;
  --body: #3a3a3a;
  --muted: #6a6a6a;
  --line: #e5e5e5;
  --teal: #1a3a3a;
  --teal-dark: #0a1a1a;
  --brass: #e8b94a;
  --crimson: #ff4d8b;
  --sage: #a4d4c5;
  --blue: #b8a4ed;
  --peach: #ffb084;
  --coral: #ff6b5a;
  --shadow: 0 10px 30px rgba(10, 10, 10, 0.08);
}

body {
  color: var(--body);
}

.topbar {
  background: rgba(255, 250, 240, 0.94);
  min-height: 64px;
}

.brand-mark {
  border: 0;
  border-radius: 12px;
  color: white;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.main-nav {
  background: var(--surface-card);
  border-radius: 9999px;
}

.main-nav a,
.chip,
.segment {
  border-radius: 9999px;
}

.main-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.button {
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  min-height: 44px;
}

.button.primary,
.button.dark {
  background: var(--ink);
  color: white;
}

.button.primary:hover,
.button.dark:hover {
  background: #1f1f1f;
}

.button.ghost,
.icon-button {
  background: var(--surface);
  border-color: var(--line);
}

.icon-button,
.save-button {
  border-radius: 9999px;
}

.market-shell {
  align-items: center;
  background: var(--paper);
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  min-height: calc(100vh - 64px);
  padding: 96px clamp(18px, 5vw, 72px);
}

.hero-visual {
  align-self: stretch;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 77, 139, 0.18), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(184, 164, 237, 0.24), transparent 26%),
    url("assets/clay-hero.png") center / contain no-repeat,
    var(--surface-soft);
  border-radius: 24px;
  box-shadow: none;
  inset: auto;
  min-height: 520px;
  order: 2;
  position: relative;
}

.market-panel {
  max-width: 760px;
  min-height: 0;
  order: 1;
  padding: 0;
}

.market-intro {
  color: var(--ink);
  text-shadow: none;
}

.eyebrow {
  color: var(--crimson);
}

.market-intro h1,
.page-hero h1,
.section-heading h2,
.expert-panel h2,
.detail-panel h1,
.detail-panel h2,
.dialog-copy h2,
.modal-form h2 {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.market-intro h1 {
  font-size: 72px;
}

.market-intro p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  color: var(--body);
}

.page-shell,
.page-hero,
.listings-band,
.ecosystem {
  background: var(--paper);
}

.page-hero {
  color: var(--ink);
  padding-bottom: 80px;
  padding-top: 80px;
}

.page-hero h1 {
  font-size: 56px;
}

.toolbar-panel,
.auction-band,
.community-band {
  background: var(--surface-soft);
}

.search-card,
.search-field,
.appraisal-form,
.listing-card,
.auction-card,
.discussion,
.module-grid article,
.detail-panel,
.detail-stats div,
.seller-card,
.record,
.empty-state,
.notification,
.account-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}

.search-card,
.appraisal-form,
.listing-dialog,
.event-board,
.metric-tile,
.module-grid article {
  border-radius: 24px;
}

.search-field input,
.search-card select,
.appraisal-form input,
.appraisal-form select,
.appraisal-form textarea,
.modal-form input,
.modal-form select,
.modal-form textarea,
.bid-form input,
.reply-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.chip {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
  padding: 0 16px;
}

.chip.active,
.chip:hover,
.segment.active {
  background: var(--surface-card);
  color: var(--ink);
}

.segment.active {
  border-color: var(--line);
}

.segmented {
  background: var(--surface-card);
  border-radius: 9999px;
}

.section-grid {
  margin-top: 0;
  padding-top: 24px;
}

.metric-tile.ink {
  background: var(--crimson);
}

.metric-tile.teal {
  background: var(--teal);
}

.metric-tile.brass {
  background: var(--blue);
  color: var(--ink);
}

.metric-tile.crimson {
  background: var(--brass);
  color: var(--ink);
}

.metric-tile span {
  color: currentColor;
  opacity: 0.72;
}

.listing-art {
  border-radius: 24px 24px 16px 16px;
}

.badge {
  background: var(--surface-card);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 9999px;
  color: var(--ink);
}

.price-row strong {
  color: var(--ink);
}

.auction-card {
  border-radius: 24px;
}

.auction-art {
  border-radius: 24px 0 0 24px;
}

.status-pill,
.event-board,
.split-band {
  background: var(--teal);
  color: white;
}

.split-band .expert-panel h2 {
  color: white;
}

.discussion.active {
  border-left: 0;
  background: var(--surface-card);
}

.module-grid article:nth-child(1),
.listing-grid .listing-card:nth-child(6n + 1) .listing-art {
  background: var(--crimson);
}

.module-grid article:nth-child(2),
.listing-grid .listing-card:nth-child(6n + 2) .listing-art {
  background: var(--teal);
  color: white;
}

.module-grid article:nth-child(3),
.listing-grid .listing-card:nth-child(6n + 3) .listing-art {
  background: var(--blue);
}

.module-grid article:nth-child(4),
.listing-grid .listing-card:nth-child(6n + 4) .listing-art {
  background: var(--peach);
}

.module-grid article:nth-child(5),
.listing-grid .listing-card:nth-child(6n + 5) .listing-art {
  background: var(--brass);
}

.module-grid article:nth-child(6),
.listing-grid .listing-card:nth-child(6n) .listing-art {
  background: var(--surface-card);
  color: var(--ink);
}

.detail-art,
.dialog-art {
  border-radius: 24px 0 0 24px;
}

.site-footer {
  background: var(--surface-soft);
  color: var(--body);
  padding-bottom: 80px;
  padding-top: 80px;
}

.site-footer span {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .market-shell {
    gap: 48px;
    grid-template-columns: 1fr;
    padding-bottom: 64px;
    padding-top: 64px;
  }

  .hero-visual {
    min-height: 420px;
    order: 1;
  }

  .market-panel {
    order: 2;
  }
}

@media (max-width: 820px) {
  .market-shell {
    min-height: 0;
    padding: 42px 14px;
  }

  .market-panel {
    min-height: 0;
    padding: 0;
  }

  .hero-visual {
    min-height: 300px;
  }

  .market-intro h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .section-heading h2,
  .expert-panel h2,
  .detail-panel h1 {
    font-size: 34px;
  }

  .auction-art,
  .detail-art,
  .dialog-art {
    border-radius: 24px 24px 0 0;
  }
}

.admin-shell {
  background: var(--paper);
}

.admin-content {
  display: grid;
  gap: 24px;
  grid-template-columns: 260px minmax(0, 1fr);
  padding-top: 32px;
}

.admin-sidebar {
  align-self: start;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 8px;
  padding: 12px;
  position: sticky;
  top: 84px;
}

.admin-resource {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 16px;
  color: var(--body);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

.admin-resource.active,
.admin-resource:hover {
  background: var(--surface);
  color: var(--ink);
}

.admin-resource strong {
  background: var(--ink);
  border-radius: 9999px;
  color: white;
  font-size: 12px;
  min-width: 28px;
  padding: 4px 8px;
  text-align: center;
}

.admin-workspace {
  min-width: 0;
}

.admin-heading {
  align-items: center;
}

.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--surface-card);
  color: var(--ink);
  font-weight: 750;
}

.admin-table td {
  color: var(--body);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 190px;
}

.admin-actions .button {
  min-height: 34px;
  padding-inline: 10px;
}

@media (max-width: 900px) {
  .admin-content {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }
}
