:root {
  --bg: #f6f4ee;
  --bg-strong: #ece7dc;
  --surface: #ffffff;
  --surface-soft: #f9f7f1;
  --surface-tint: #eef6f1;
  --ink: #232522;
  --ink-soft: #5f665d;
  --muted: #7a8178;
  --line: #ded8cb;
  --line-strong: #c6bca8;
  --green: #176f52;
  --green-soft: #ddf1e8;
  --blue: #2f5f98;
  --blue-soft: #e3ecf6;
  --gold: #b17513;
  --gold-soft: #f5ead2;
  --red: #b14a3c;
  --red-soft: #f8e1dc;
  --teal: #0b7285;
  --teal-soft: #dff4f6;
  --shadow: 0 18px 45px rgba(41, 38, 31, 0.11);
  --shadow-soft: 0 10px 28px rgba(41, 38, 31, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    linear-gradient(180deg, rgba(246, 244, 238, 0.96), rgba(246, 244, 238, 1)),
    radial-gradient(circle at 15% 0%, rgba(23, 111, 82, 0.1), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(177, 117, 19, 0.12), transparent 30%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

button {
  border: 0;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.app {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(198, 188, 168, 0.72);
  background: rgba(250, 248, 242, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  min-width: 205px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(135deg, #176f52, #2f5f98 75%);
  box-shadow: 0 10px 22px rgba(23, 111, 82, 0.22);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1.02rem;
  letter-spacing: 0;
}

.brand-text span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav button,
.link-button {
  color: var(--ink-soft);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav button:hover,
.nav button.is-active,
.link-button:hover,
.link-button.is-active {
  color: var(--ink);
  background: rgba(23, 111, 82, 0.09);
}

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

.live-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 111, 82, 0.18);
  border-radius: var(--radius-sm);
  color: #0d4534;
  background: rgba(221, 241, 232, 0.8);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.live-chip.is-offline {
  color: #78350f;
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(254, 243, 199, 0.88);
}

.role-select {
  min-width: 142px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 9px 34px 9px 11px;
  font-weight: 750;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-primary {
  color: white;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(23, 111, 82, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 16px 28px rgba(23, 111, 82, 0.26);
}

.btn-secondary {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(23, 111, 82, 0.16);
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.btn-danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(177, 74, 60, 0.16);
}

.btn-blue {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(47, 95, 152, 0.18);
}

.btn-gold {
  color: #6f4706;
  background: var(--gold-soft);
  border-color: rgba(177, 117, 19, 0.18);
}

.btn-icon {
  width: 40px;
  min-width: 40px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 22px 44px;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: stretch;
}

.hero-panel,
.banner-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 28px;
  color: white;
  background:
    linear-gradient(90deg, rgba(20, 34, 28, 0.84), rgba(20, 34, 28, 0.48), rgba(20, 34, 28, 0.18)),
    var(--hero-image, linear-gradient(135deg, #345047, #86764b));
  background-size: cover;
  background-position: center;
}

.hero-panel h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 5.15rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-panel p {
  max-width: 740px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.04rem;
}

.hero-panel .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 150px auto;
  gap: 10px;
  margin-top: 22px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.hero-search input,
.hero-search select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  outline: none;
}

.hero-search input:focus,
.hero-search select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(23, 111, 82, 0.58);
  box-shadow: 0 0 0 4px rgba(23, 111, 82, 0.12);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
  max-width: 760px;
}

.metric-chip {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-chip strong {
  display: block;
  font-size: 1.12rem;
}

.metric-chip span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
}

.banner-panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: 170px 1fr;
}

.banner-image {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.24)),
    var(--banner-image, linear-gradient(135deg, #e3ecf6, #ddf1e8));
  background-size: cover;
  background-position: center;
}

.banner-copy {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.banner-copy h2,
.section-title h2,
.panel h2,
.listing-copy h2 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

.banner-copy p,
.section-title p,
.panel-subtitle,
.listing-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.section {
  margin-top: 24px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 1.32rem;
}

.section-title p {
  margin-top: 5px;
}

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

.category-tile {
  min-height: 122px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  display: grid;
  align-content: space-between;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.category-tile:hover {
  border-color: rgba(23, 111, 82, 0.34);
  transform: translateY(-1px);
}

.category-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.category-tile:nth-child(2n) .category-icon {
  background: var(--green);
}

.category-tile:nth-child(3n) .category-icon {
  background: var(--gold);
}

.category-tile strong {
  margin-top: 12px;
}

.category-tile span {
  color: var(--muted);
  font-size: 0.82rem;
}

.market-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 86px;
  padding: 16px;
}

.filter-panel h2 {
  margin: 0 0 13px;
  font-size: 1.08rem;
}

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

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

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

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

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

.filter-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.listing-toolbar strong {
  font-size: 1.02rem;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-right select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 9px 10px;
}

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

.listing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
}

.listing-media {
  position: relative;
  min-height: 178px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 95, 152, 0.2), rgba(23, 111, 82, 0.16)),
    #dcd6c7;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.media-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: white;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.75rem;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.badge-featured {
  color: #694405;
  background: var(--gold-soft);
}

.badge-verified {
  color: #0f5a43;
  background: var(--green-soft);
}

.badge-auction {
  color: #214d82;
  background: var(--blue-soft);
}

.badge-fixed {
  color: #075b68;
  background: var(--teal-soft);
}

.badge-danger {
  color: #873729;
  background: var(--red-soft);
}

.badge-muted {
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.listing-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.listing-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.listing-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.22;
}

.listing-title button {
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.listing-title button:hover {
  color: var(--green);
}

.save-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 1.05rem;
}

.save-button.is-saved {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(177, 74, 60, 0.22);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-line strong {
  font-size: 1.18rem;
}

.price-line span {
  color: var(--muted);
  font-size: 0.82rem;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 0.75rem;
  font-weight: 750;
}

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

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

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  line-height: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.gallery {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(47, 95, 152, 0.22), rgba(23, 111, 82, 0.14)),
    #dcd6c7;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.thumb {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb {
  width: 100%;
  height: 100%;
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  background: var(--blue-soft);
}

.video-thumb strong {
  color: var(--blue);
  font-size: 0.76rem;
}

.video-thumb span {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-copy,
.side-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.detail-copy {
  margin-top: 14px;
  padding: 20px;
}

.listing-copy {
  display: grid;
  gap: 12px;
}

.detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.detail-heading h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.spec-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.spec-cell {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.spec-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.spec-cell strong {
  display: block;
  margin-top: 5px;
}

.side-card {
  padding: 16px;
  display: grid;
  gap: 13px;
}

.sticky-side {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding-bottom: 2px;
}

.auction-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--blue-soft), white);
}

.auction-box h3,
.side-card h3,
.form-card h2 {
  margin: 0;
  line-height: 1.15;
}

.bid-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.bid-row input {
  min-width: 0;
}

.mini-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.mini-list li:last-child {
  border-bottom: 0;
}

.mini-list span {
  color: var(--muted);
}

.seller-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 900;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  font-weight: 850;
}

.tab.is-active {
  color: white;
  border-color: var(--green);
  background: var(--green);
}

.form-card {
  padding: 20px;
}

.form-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-section h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 6px;
}

.progress-step {
  min-height: 6px;
  border-radius: 99px;
  background: var(--line);
}

.progress-step.is-on {
  background: var(--green);
}

.queue-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.queue-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}

.queue-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queue-actions {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
}

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

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.54);
}

.empty-state h3 {
  margin: 0;
}

.empty-state p {
  margin: 8px auto 0;
  color: var(--muted);
  max-width: 560px;
}

.notice {
  border: 1px solid rgba(177, 117, 19, 0.28);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--gold-soft);
  color: #674308;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
}

.legal-page .panel {
  padding: 22px;
}

.legal-page h1 {
  margin: 0 0 12px;
  font-size: 2.2rem;
}

.legal-page h2 {
  margin-top: 24px;
}

.account-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-card {
  padding: 18px;
}

.contact-reveal {
  border: 1px solid rgba(23, 111, 82, 0.18);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--green-soft);
}

.email-log {
  display: grid;
  gap: 10px;
}

.email-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.email-item strong {
  display: block;
}

.email-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.52);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links button {
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  border: 1px solid rgba(23, 111, 82, 0.22);
  border-radius: var(--radius);
  color: #0d4534;
  background: rgba(221, 241, 232, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu {
  display: none;
}

.hide {
  display: none !important;
}

@media (max-width: 1180px) {
  .market-hero,
  .detail-layout,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .sticky-side,
  .filter-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

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

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

  .banner-panel {
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 920px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .brand {
    min-width: 0;
  }

  .hero-search,
  .market-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .dashboard-grid,
  .field-grid.four,
  .field-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .queue-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .queue-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner,
  .main,
  .footer-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-actions {
    gap: 6px;
  }

  .role-select {
    width: 112px;
    min-width: 112px;
    padding-right: 24px;
    font-size: 0.82rem;
  }

  .hero-panel {
    min-height: 480px;
    padding: 20px;
  }

  .hero-panel h1 {
    font-size: clamp(2.05rem, 11vw, 3.4rem);
  }

  .hero-metrics,
  .field-grid,
  .dashboard-grid,
  .spec-table,
  .listing-grid,
  .category-grid,
  .banner-panel,
  .field-grid.three,
  .field-grid.four {
    grid-template-columns: 1fr;
  }

  .listing-toolbar,
  .section-title,
  .detail-heading,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-right,
  .footer-links {
    flex-wrap: wrap;
  }

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

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

  .queue-media {
    max-height: 220px;
  }

  .queue-actions {
    grid-template-columns: 1fr;
  }
}
