.theme-market-clean-compact {
  --mk-bg: #f5f7fb;
  --mk-surface: #ffffff;
  --mk-border: #d7deea;
  --mk-text: #0f172a;
  --mk-muted: #475569;
  --mk-primary: #0f5fd6;
  --mk-primary-contrast: #ffffff;
  --mk-radius: 7px;
  --mk-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.theme-market-clean-compact .market-header-row {
  min-height: 52px;
}

.theme-market-clean-compact .market-action {
  min-height: 28px;
  font-size: 0.68rem;
}

.theme-market-clean-compact .market-search .form-control,
.theme-market-clean-compact .market-search-cat {
  min-height: 32px;
}

.theme-market-clean-compact .mk-card-body {
  padding: 0.68rem;
}

.theme-market-clean-compact .mk-form .form-label {
  font-size: 0.7rem;
}

.theme-market-clean-compact .mk-form .form-control,
.theme-market-clean-compact .mk-form .form-select {
  min-height: 31px;
  font-size: 0.76rem;
  padding-top: 0.24rem;
  padding-bottom: 0.24rem;
}

.theme-market-clean-compact .mk-btn-primary,
.theme-market-clean-compact .mk-btn-secondary {
  font-size: 0.73rem;
  padding-top: 0.24rem;
  padding-bottom: 0.24rem;
}

.theme-market-clean-compact .mk-card .table td,
.theme-market-clean-compact .mk-card .table th {
  padding-top: 0.34rem;
  padding-bottom: 0.34rem;
}

.theme-market-clean-compact .mk-sidebar {
  top: 66px;
}

/* Tight compact layout */
.theme-market-clean-compact .hood-home-intro .card-body,
.theme-market-clean-compact .hood-home-promo .card-body,
.theme-market-clean-compact .home-search-panel .card-body {
  padding: 0.65rem !important;
}

.theme-market-clean-compact .premium-hero .card-body {
  padding: 0.75rem !important;
}

.theme-market-clean-compact .premium-kpi-card {
  padding: 0.45rem 0.52rem !important;
}

.theme-market-clean-compact .sf-auction-card__body {
  padding: 0.56rem !important;
}

.theme-market-clean-compact .sf-filter-sidebar .card-body {
  padding: 0.58rem !important;
}

.theme-market-clean-compact .app-page-title {
  font-size: 0.98rem;
}

/* Strong visual signature: compact */
body.theme-market-clean-compact {
  background: #eef0f6 !important;
}

.theme-market-clean-compact .market-header {
  background: #f9fbff !important;
  border-bottom: 2px solid #cfd7ea !important;
}

.theme-market-clean-compact .mk-card {
  border-radius: 2px !important;
  box-shadow: none !important;
}

.theme-market-clean-compact .mk-btn-primary,
.theme-market-clean-compact .btn-primary {
  border-radius: 2px !important;
  background: #3557a7 !important;
  border-color: #3557a7 !important;
}

.theme-market-clean-compact .mk-btn-secondary,
.theme-market-clean-compact .btn-outline-primary {
  border-radius: 2px !important;
  border-color: #98a7cc !important;
}

.theme-market-clean-compact .table thead th {
  background: #eceff7 !important;
}

/* Premium messaging / tickets: tighter pf-* for compact theme */
.theme-market-clean-compact .pf-msg-page {
  gap: 0.75rem;
}

.theme-market-clean-compact .pf-msg-hero {
  border-radius: 6px;
  padding: clamp(0.85rem, 1.5vw, 1.1rem);
}

.theme-market-clean-compact .pf-msg-kpis {
  gap: 0.45rem;
}

.theme-market-clean-compact .pf-msg-kpi {
  border-radius: 6px;
  padding: 0.52rem 0.62rem;
}

.theme-market-clean-compact .pf-msg-kpi-value {
  font-size: 1.12rem;
}

.theme-market-clean-compact .pf-msg-layout {
  gap: 0.65rem;
}

.theme-market-clean-compact .pf-msg-thread-list,
.theme-market-clean-compact .pf-msg-chat-panel {
  border-radius: 6px;
}

.theme-market-clean-compact .pf-msg-chat-head {
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
}

.theme-market-clean-compact .pf-msg-scroll {
  padding: 0.65rem 0.75rem;
}

.theme-market-clean-compact .pf-msg-bubble {
  border-radius: 8px;
  padding: 0.45rem 0.62rem 0.52rem;
  max-width: min(92%, 480px);
}

.theme-market-clean-compact .pf-msg-composer {
  padding: 0.55rem 0.75rem;
}

.theme-market-clean-compact .pf-ticket-hero,
.theme-market-clean-compact .pf-ticket-node__card,
.theme-market-clean-compact .pf-ticket-reply-panel {
  border-radius: 6px;
}

.theme-market-clean-compact .pf-ticket-node__card {
  padding: 0.65rem 0.78rem;
}

.theme-market-clean-compact .pf-ticket-node__meta {
  font-size: 0.68rem;
}
