/*
 * Kanatlim UI Refresh
 * A final visual layer loaded after app.css + marketplace.css.
 * Keeps existing templates functional while normalizing components and responsive behavior.
 */

:root {
  --ui-bg: #f6f6f4;
  --ui-surface: #ffffff;
  --ui-surface-soft: #faf9f7;
  --ui-surface-strong: #f1efec;
  --ui-text: #242321;
  --ui-text-soft: #6f6a64;
  --ui-text-faint: #938d86;
  --ui-border: #e3dfda;
  --ui-border-strong: #cec7bf;
  --ui-primary: #ff7900;
  --ui-primary-hover: #e86d00;
  --ui-primary-soft: #fff2e6;
  --ui-danger: #c93d25;
  --ui-success: #1d7555;
  --ui-focus: rgb(255 121 0 / 18%);
  --ui-radius-xs: .5rem;
  --ui-radius-sm: .7rem;
  --ui-radius-md: .9rem;
  --ui-radius-lg: 1.15rem;
  --ui-shadow-xs: 0 1px 2px rgb(30 28 25 / 4%);
  --ui-shadow-sm: 0 5px 18px rgb(30 28 25 / 5%);
  --ui-shadow-md: 0 14px 40px rgb(30 28 25 / 8%);
  --ui-control-height: 46px;
  --color-navy: #242321;
  --color-slate: #5f5a54;
  --color-yellow: #f5b43b;
  --color-success: var(--ui-success);
  --color-background: var(--ui-bg);
  --color-border: var(--ui-border);
  --color-muted: var(--ui-text-soft);
  --color-orange: var(--ui-primary);
  --radius-sm: var(--ui-radius-sm);
  --radius-md: var(--ui-radius-md);
  --radius-lg: var(--ui-radius-lg);
  --shadow-sm: var(--ui-shadow-xs);
  --shadow-md: var(--ui-shadow-md);
}

html {
  background: var(--ui-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--ui-bg);
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.62;
}

::selection {
  background: #ffd7b2;
  color: #2a2119;
}

h1,
h2,
h3,
h4 {
  color: var(--ui-text);
  font-weight: 760;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.24;
}

h3 {
  font-size: 1rem;
  line-height: 1.35;
}

p {
  color: inherit;
}

a {
  text-decoration-thickness: .07em;
  text-underline-offset: .2em;
}

a:hover {
  color: #a94d08;
}

.container {
  width: min(calc(100% - 2.25rem), 86rem);
}

.section {
  padding-block: clamp(1.75rem, 4vw, 3.25rem);
}

.section--compact {
  padding-block: 1.25rem;
}

.section-header {
  align-items: center;
  gap: .9rem;
  margin-bottom: 1rem;
}

.section-header h1,
.section-header h2,
.section-header h3 {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: .35rem;
  color: var(--ui-text-faint);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.muted {
  color: var(--ui-text-soft);
}

.small {
  font-size: .84rem;
}

/* Surfaces */
.surface {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
}

.surface__body {
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

.stack {
  gap: .9rem;
}

.stack--large {
  gap: 1.25rem;
}

.cluster {
  gap: .65rem;
}

/* Interactive controls */
button,
input,
select,
textarea {
  font: inherit;
}

.field {
  gap: .4rem;
}

.field label,
.field legend {
  color: #3e3a36;
  font-size: .79rem;
  font-weight: 720;
  letter-spacing: .005em;
}

.field input,
.field select,
.field textarea,
.filter-toolbar select,
.storefront-filter input,
.storefront-filter select,
.admin-global-search input,
.admin-menu-search,
.contact-status-form select {
  width: 100%;
  min-height: var(--ui-control-height);
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-xs);
  background-color: var(--ui-surface);
  color: var(--ui-text);
  padding: .68rem .78rem;
  box-shadow: 0 1px 1px rgb(20 18 16 / 2%);
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.field select,
.filter-toolbar select,
.storefront-filter select,
.contact-status-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #77716b 50%),
    linear-gradient(135deg, #77716b 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.filter-toolbar select:hover,
.storefront-filter input:hover,
.storefront-filter select:hover {
  border-color: #b8afa5;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-toolbar select:focus,
.storefront-filter input:focus,
.storefront-filter select:focus,
.admin-global-search input:focus,
.admin-menu-search:focus {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 4px var(--ui-focus);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--ui-danger);
  box-shadow: 0 0 0 3px rgb(201 61 37 / 10%);
}

.field__hint {
  color: var(--ui-text-faint);
  font-size: .77rem;
  line-height: 1.5;
}

.field__error {
  min-height: 1rem;
  color: #a93420;
  font-size: .76rem;
}

.field-row {
  gap: .8rem;
}

.choice {
  min-height: 42px;
  gap: .62rem;
  color: #4f4a45;
}

.choice input {
  width: 1.08rem;
  height: 1.08rem;
  accent-color: var(--ui-primary);
}

/* Buttons */
.button {
  min-height: var(--ui-control-height);
  border-radius: var(--ui-radius-xs);
  padding: .66rem .98rem;
  box-shadow: none;
  font-size: .84rem;
  font-weight: 730;
  letter-spacing: -.005em;
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease, box-shadow .14s ease, color .14s ease;
}

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

.button--primary {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: #fff;
  box-shadow: 0 5px 15px rgb(255 121 0 / 16%);
}

.button--primary:hover {
  border-color: var(--ui-primary-hover);
  background: var(--ui-primary-hover);
  color: #fff;
  box-shadow: 0 8px 20px rgb(255 121 0 / 20%);
}

.button--secondary {
  border-color: var(--ui-border-strong);
  background: var(--ui-surface);
  color: #35312d;
}

.button--secondary:hover {
  border-color: #aaa198;
  background: var(--ui-surface-soft);
  color: var(--ui-text);
}

.button--ghost {
  color: #5d5751;
}

.button--ghost:hover {
  background: #f4f1ed;
  color: var(--ui-text);
}

.button--danger {
  border-color: var(--ui-danger);
  background: var(--ui-danger);
}

.button--small {
  min-height: 38px;
  padding: .54rem .75rem;
  font-size: .78rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-xs);
  background: var(--ui-surface);
  color: #514c46;
  font-size: 1.1rem;
  transition: border-color .14s ease, background-color .14s ease;
}

.icon-button:hover {
  border-color: var(--ui-border-strong);
  background: var(--ui-surface-soft);
}

:focus-visible {
  outline: 3px solid rgb(255 121 0 / 42%);
  outline-offset: 2px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--ui-border);
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 1px 0 rgb(30 28 25 / 2%);
  backdrop-filter: blur(14px);
}

.header-row {
  min-height: 4.7rem;
  gap: 1.25rem;
}

.brand img {
  width: 132px;
  height: auto;
  max-height: 44px;
}

.header-search {
  overflow: visible;
  max-width: 39rem;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-xs);
  background: #f8f7f5;
  box-shadow: inset 0 1px 0 rgb(20 18 16 / 2%);
}

.header-search:focus-within {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 4px var(--ui-focus);
}

.header-search input {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ui-text);
}

.header-search input:focus {
  box-shadow: none;
  outline: 0;
}

.header-search .button {
  min-height: 44px;
  border-radius: 0 calc(var(--ui-radius-xs) - 1px) calc(var(--ui-radius-xs) - 1px) 0;
}

.desktop-nav {
  gap: .7rem;
}

.desktop-nav > a:not(.button) {
  border-radius: .4rem;
  padding-inline: .45rem;
  color: #59534d;
  font-size: .8rem;
}

.desktop-nav > a:not(.button):hover {
  background: #f7f5f2;
  color: var(--ui-text);
}

.market-subnav {
  border-top: 1px solid #efede9;
  background: #fff;
}

.market-subnav nav {
  min-height: 2.8rem;
  gap: 1.7rem;
  scrollbar-width: none;
}

.market-subnav nav::-webkit-scrollbar {
  display: none;
}

.market-subnav a {
  position: relative;
  color: #6b655f;
  font-size: .76rem;
  font-weight: 570;
}

.market-subnav a:first-child {
  color: var(--ui-text);
  font-weight: 740;
}

/* Page headings */
.breadcrumbs {
  padding-block: .85rem;
  color: #878079;
  font-size: .78rem;
}

.page-header {
  padding-block: 1.15rem 1.2rem;
}

.page-header h1 {
  margin-bottom: .42rem;
}

.page-header p {
  color: var(--ui-text-soft);
  font-size: .88rem;
}

/* Search / filters */
.filter-toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
  margin-bottom: 1rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface);
  padding: .65rem .75rem;
  box-shadow: var(--ui-shadow-xs);
}

.filter-toolbar > form,
.sort-form {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
}

.filter-toolbar__label {
  color: var(--ui-text-soft);
  font-size: .76rem;
  font-weight: 720;
  white-space: nowrap;
}

.filter-toolbar select {
  width: auto;
  min-width: 12.5rem;
  max-width: min(20rem, 52vw);
  min-height: 42px;
  padding-top: .55rem;
  padding-bottom: .55rem;
  font-size: .82rem;
}

.filter-panel {
  border-radius: var(--ui-radius-md);
  padding: 1.05rem;
}

.filter-panel__header {
  margin-bottom: .8rem;
  border-bottom: 1px solid #efede9;
  padding-bottom: .8rem;
}

.filter-panel__header h2 {
  margin: 0;
  font-size: 1rem;
}

.content-grid {
  gap: 1.2rem;
}

/* Listing cards */
.listing-grid {
  gap: .9rem;
}

.listing-card {
  overflow: hidden;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  border-color: #d2cbc3;
  box-shadow: var(--ui-shadow-sm);
}

.listing-card__media {
  background: #eeece9;
}

.listing-card__body {
  padding: .9rem;
}

.listing-card h3 {
  min-height: 2.72em;
  margin-bottom: .45rem;
  color: #322f2b;
  font-size: .86rem;
  line-height: 1.36;
}

.listing-card__price {
  margin-bottom: .58rem;
  color: #22201e;
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
  font-weight: 820;
}

.listing-card__meta,
.listing-card__seller {
  color: #817a73;
  font-size: .68rem;
}

.listing-card__meta {
  min-height: auto;
}

.listing-card__seller {
  min-height: auto;
  margin-top: .58rem;
  border-top-color: #efede9;
  padding-top: .58rem;
}

.favorite-button {
  border: 1px solid rgb(60 55 50 / 8%);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 3px 10px rgb(30 28 25 / 8%);
}

.badge {
  border-radius: .35rem;
  box-shadow: 0 2px 8px rgb(30 28 25 / 8%);
}

/* Listing detail */
.listing-detail {
  gap: 1.35rem;
}

.gallery {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow-xs);
}

.gallery__main {
  background: #fff;
}

.gallery__thumbs {
  border-top-color: var(--ui-border);
  background: var(--ui-surface-soft);
}

.listing-summary-card {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-md);
  padding: 1.2rem;
  box-shadow: var(--ui-shadow-sm);
}

.listing-summary-card h1 {
  margin: .9rem 0 .6rem;
  color: #252321;
  font-size: clamp(1.38rem, 2.3vw, 1.82rem);
  line-height: 1.24;
}

.listing-price-block {
  border-bottom: 1px solid #efede9;
  padding-bottom: .95rem;
}

.listing-price-block .price {
  color: #211f1d;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
}

.listing-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  overflow: visible;
  margin: .9rem 0 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.listing-facts > div,
.listing-facts > div:nth-child(odd),
.listing-facts > div:nth-last-child(-n+2) {
  min-width: 0;
  border: 1px solid #e9e5df;
  border-radius: .58rem;
  background: var(--ui-surface-soft);
  padding: .68rem .72rem;
}

.listing-facts dt {
  margin-bottom: .2rem;
  color: #8d857d;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.listing-facts dd {
  min-width: 0;
  overflow: visible;
  margin: 0;
  color: #3d3935;
  font-size: .8rem;
  font-weight: 720;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.listing-fact-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .73rem !important;
  letter-spacing: -.01em;
}

.listing-primary-actions {
  gap: .5rem;
}

.listing-primary-actions .button {
  min-height: 46px;
}

.listing-contact-actions {
  gap: .45rem;
  border-top-color: #efede9;
}

.listing-contact-actions > a,
.listing-contact-actions > button {
  border-color: var(--ui-border);
  border-radius: .55rem;
  background: #fff;
  color: #5d5751;
}

.listing-contact-actions > a:hover,
.listing-contact-actions > button:hover {
  border-color: var(--ui-border-strong);
  background: var(--ui-surface-soft);
}

.listing-safety-note {
  background: #f7f4ef;
}

.seller-card--pro {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow-xs);
}

/* Home */
.marketplace-home {
  padding-top: 1.3rem;
}

.marketplace-home__layout {
  gap: 1.25rem;
}

.category-rail {
  border-radius: var(--ui-radius-md);
}

.category-rail__heading {
  padding: 1rem;
}

.category-rail nav > a {
  border-bottom-color: #efede9;
  padding: .78rem .9rem;
}

.market-banner {
  border-radius: var(--ui-radius-lg);
  background:
    radial-gradient(circle at 88% 8%, rgb(255 121 0 / 17%), transparent 26rem),
    linear-gradient(145deg, #252422, #181817);
  box-shadow: var(--ui-shadow-md);
}

.market-banner h1 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 4vw, 3.05rem);
}

.market-benefits {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
  color: #746d66;
  box-shadow: var(--ui-shadow-xs);
}

.market-empty {
  border-color: #d8d2cb;
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

/* Storefront / public profile */
.storefront,
.public-profile {
  padding-bottom: 2rem;
}

.storefront-hero,
.profile-hero {
  overflow: hidden;
  border-radius: var(--ui-radius-lg);
  border-color: var(--ui-border);
  box-shadow: var(--ui-shadow-sm);
}

.storefront-stats > div,
.profile-stat-grid > div {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
}

.storefront-filter {
  gap: .55rem;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  padding: .6rem;
}

.storefront-info dl > div,
.profile-kv > div {
  border-bottom-color: #efede9;
}

.storefront-reviews article {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-soft);
}

/* Dashboard */
.dashboard-layout {
  gap: 1.2rem;
}

.dashboard-nav {
  gap: .38rem;
}

.dashboard-nav__label {
  color: #989189;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboard-nav a {
  min-height: 42px;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-xs);
  background: var(--ui-surface);
  color: #5a544e;
  font-size: .78rem;
  font-weight: 650;
}

.dashboard-nav a:hover {
  border-color: var(--ui-border-strong);
  background: var(--ui-surface-soft);
  color: var(--ui-text);
}

.dashboard-nav a.is-active {
  border-color: #2b2927;
  background: #2b2927;
  color: #fff;
}

.metric-grid {
  gap: .7rem;
}

.metric {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
  padding: 1rem;
  box-shadow: var(--ui-shadow-xs);
}

.metric span {
  color: var(--ui-text-soft);
  font-size: .75rem;
}

.metric strong {
  color: var(--ui-text);
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
}

/* Tables */
.data-table-wrap {
  overflow: auto;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
}

.data-table {
  font-size: .78rem;
}

.data-table th {
  border-bottom: 1px solid var(--ui-border);
  background: #f7f5f2;
  color: #746d66;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.data-table td {
  border-bottom-color: #efede9;
  padding: .82rem .78rem;
  vertical-align: middle;
}

.data-table tbody tr:hover td {
  background: #fcfbfa;
}

.data-table input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--ui-primary);
}

/* Auth */
.auth-shell {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -10%, rgb(255 121 0 / 10%), transparent 30rem),
    var(--ui-bg);
}

.auth-header {
  padding: 1.1rem;
}

.auth-header .brand img {
  width: 150px;
  max-height: 50px;
}

.auth-main {
  width: min(calc(100% - 2rem), 33rem);
  padding-block: 1rem 3rem;
}

.auth-card {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  padding: clamp(1.15rem, 4vw, 1.8rem);
  box-shadow: var(--ui-shadow-md);
}

.auth-card h1 {
  margin-bottom: .45rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

/* Account lists, offers and messaging */
.list-row {
  display: grid;
  gap: .7rem;
  border-bottom: 1px solid #efede9;
  padding: .95rem .1rem;
  color: inherit;
}

a.list-row {
  border-radius: .55rem;
  padding-inline: .65rem;
  text-decoration: none;
  transition: background-color .14s ease;
}

a.list-row:hover {
  background: #faf8f5;
  color: inherit;
}

.list-row h2 {
  margin: .28rem 0 .25rem;
  font-size: .94rem;
  line-height: 1.35;
}

.list-row p {
  margin: .2rem 0;
  font-size: .79rem;
}

.list-row time {
  color: var(--ui-text-faint);
  font-size: .72rem;
}

.list-row.is-unread {
  position: relative;
  background: #fffaf4;
}

.list-row.is-unread::before {
  position: absolute;
  top: 1rem;
  left: -.55rem;
  width: 4px;
  height: 2rem;
  border-radius: 999px;
  background: var(--ui-primary);
  content: '';
}

.conversation-layout {
  overflow: hidden;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: #fff;
  box-shadow: var(--ui-shadow-xs);
}

.conversation-list {
  border-color: var(--ui-border);
  background: #faf9f7;
}

.conversation-list a {
  color: #5b554f;
  font-size: .78rem;
}

.message-panel {
  background: #fff;
}

.message-panel > header {
  border-bottom: 1px solid #efede9;
  background: #fff;
}

.messages {
  gap: .6rem;
  background:
    linear-gradient(rgb(255 255 255 / 89%), rgb(255 255 255 / 89%)),
    radial-gradient(circle at 1px 1px, #e7e2dc 1px, transparent 0);
  background-size: auto, 22px 22px;
  padding: 1rem;
}

.message {
  max-width: min(82%, 34rem);
  border: 1px solid #e7e3de;
  border-radius: .85rem .85rem .85rem .25rem;
  background: #f4f2ef;
  padding: .62rem .75rem;
  box-shadow: 0 1px 2px rgb(30 28 25 / 3%);
}

.message p {
  margin: 0 0 .18rem;
  color: #403c37;
}

.message--mine {
  border-color: #f1d2b7;
  border-radius: .85rem .85rem .25rem .85rem;
  background: #fff1e5;
}

.message-form {
  gap: .5rem;
  border-top-color: var(--ui-border);
  background: #fff;
  padding: .7rem;
}

.message-form textarea {
  min-height: var(--ui-control-height);
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-xs);
  background: #fff;
  padding: .68rem .78rem;
  color: var(--ui-text);
  outline: 0;
}

.message-form textarea:focus {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 4px var(--ui-focus);
}

.wizard-progress {
  gap: .35rem;
}

.wizard-progress span {
  height: .32rem;
  background: #e4dfd9;
}

.wizard-progress span.is-active {
  background: var(--ui-primary);
}

.sector-feature {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  box-shadow: var(--ui-shadow-xs);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.sector-feature:hover {
  transform: translateY(-2px);
  border-color: #d1c9c0;
  box-shadow: var(--ui-shadow-sm);
}

/* Navigation, pagination and compact controls */
.suggestions {
  overflow: hidden;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
  box-shadow: var(--ui-shadow-md);
}

.suggestions a,
.suggestions [role="option"] {
  border-bottom: 1px solid #f0ede9;
  color: #4d4842;
  font-size: .8rem;
}

.suggestions a:last-child,
.suggestions [role="option"]:last-child {
  border-bottom: 0;
}

.suggestions a:hover,
.suggestions [aria-selected="true"] {
  background: var(--ui-primary-soft);
  color: #7c3b08;
}

.pagination {
  gap: .6rem;
  margin-top: 1.15rem;
}

.pagination .button {
  min-width: 6.6rem;
}

.segmented {
  border-radius: var(--ui-radius-xs);
  background: #f4f1ed;
  padding: .25rem;
}

.segmented label {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: .42rem;
  background: transparent;
  color: #6a645e;
  font-size: .8rem;
}

.segmented input:checked + label {
  border-color: #2c2a27;
  background: #2c2a27;
  color: #fff;
  box-shadow: 0 3px 10px rgb(30 28 25 / 10%);
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: .22rem .56rem;
  background: #f0ede9;
  color: #625c55;
  font-size: .65rem;
  font-weight: 780;
  line-height: 1;
}

.text-link {
  color: #9f4708;
  font-size: .8rem;
  font-weight: 720;
}

.prose {
  color: #4d4842;
}

.prose p,
.prose li {
  line-height: 1.78;
}

.mobile-bottom-nav {
  border-top-color: var(--ui-border);
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 -8px 26px rgb(30 28 25 / 5%);
  backdrop-filter: blur(14px);
}

.mobile-bottom-nav a {
  color: #716a63;
}

.mobile-bottom-nav__create {
  border-radius: .75rem;
  background: var(--ui-primary);
  box-shadow: 0 8px 20px rgb(255 121 0 / 20%);
}

.cookie-banner {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow-md);
}

.drawer {
  border-right: 1px solid var(--ui-border);
  background: #fff;
}

.drawer--right {
  border-right: 0;
  border-left: 1px solid var(--ui-border);
}

.drawer a {
  border-bottom-color: #efede9;
  color: #514b45;
  font-size: .82rem;
}

/* Feedback components */
.alert {
  border-radius: var(--ui-radius-sm);
  padding: .75rem .9rem;
  font-size: .82rem;
}

.empty-state {
  min-height: 14rem;
  border-color: #d7d1ca;
  border-radius: var(--ui-radius-md);
  background: linear-gradient(180deg, #fff, #fcfbfa);
}

.modal {
  background: rgb(22 20 18 / 62%);
  backdrop-filter: blur(3px);
}

.modal__panel {
  border: 1px solid var(--ui-border);
  background: #fff;
}

.toast {
  border-radius: var(--ui-radius-sm);
  background: #292724;
  box-shadow: var(--ui-shadow-md);
}

/* Footer */
.site-footer {
  border-top: 0;
  background: linear-gradient(180deg, #242321, #1c1b1a);
}

.footer-grid {
  gap: 2rem;
}

.site-footer h2 {
  color: #fff;
  font-size: .88rem;
}

.site-footer a {
  color: #d8d2cb;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top-color: rgb(255 255 255 / 10%);
}

/* Admin polish without changing information density */
.admin-shell {
  background: #f5f4f2;
}

.admin-content .surface,
.admin-filters,
.management-card,
.ops-queue a {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  box-shadow: var(--ui-shadow-xs);
}

.admin-content input,
.admin-content select,
.admin-content textarea {
  border-radius: var(--ui-radius-xs);
}

.admin-content .button {
  border-radius: .5rem;
}

@media (min-width: 48rem) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
  }

  .filter-panel.drawer {
    position: sticky;
    z-index: 1;
    top: calc(var(--header-height) + .75rem);
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    width: auto;
    max-height: calc(100dvh - var(--header-height) - 1.5rem);
    transform: none;
    box-shadow: var(--ui-shadow-xs);
  }

  .listing-detail {
    grid-template-columns: minmax(0, 1.7fr) minmax(20rem, .72fr);
  }

  .dashboard-layout {
    grid-template-columns: 14.5rem minmax(0, 1fr);
  }

  .dashboard-nav {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface);
    padding: .65rem;
    box-shadow: var(--ui-shadow-xs);
  }

  .dashboard-nav__label {
    margin: .75rem .55rem .28rem;
  }

  .dashboard-nav__label:first-child {
    margin-top: .25rem;
  }
}

@media (min-width: 72rem) {
  .listing-detail {
    grid-template-columns: minmax(0, 1.85fr) 25rem;
    gap: 1.5rem;
  }
}

@media (max-width: 63.99rem) {
  .header-row {
    gap: .75rem;
  }

  .desktop-nav {
    gap: .4rem;
  }

  .desktop-nav > a:not(.button) {
    padding-inline: .3rem;
    font-size: .75rem;
  }
}

@media (max-width: 47.99rem) {
  :root {
    --ui-control-height: 46px;
  }

  .container {
    width: min(calc(100% - 1.2rem), 86rem);
  }

  body:not(.admin-shell) > main {
    padding-bottom: 5rem;
  }

  .header-row {
    padding-block: .55rem;
  }

  .brand img {
    width: 118px;
    max-height: 39px;
  }

  .header-search {
    border-radius: .55rem;
  }

  .market-subnav nav {
    gap: 1.1rem;
  }

  .market-subnav a {
    font-size: .7rem;
  }

  .page-header {
    padding-block: .9rem 1rem;
  }

  .page-header h1 {
    font-size: 1.55rem;
  }

  .filter-toolbar {
    min-height: auto;
    flex-wrap: nowrap;
    padding: .55rem;
  }

  .filter-toolbar > [data-drawer-open] {
    flex: 0 0 auto;
  }

  .filter-toolbar > form,
  .sort-form {
    min-width: 0;
    flex: 1;
    margin-left: 0;
  }

  .filter-toolbar__label {
    display: none;
  }

  .filter-toolbar select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .filter-toolbar form .button {
    display: none;
  }

  .filter-panel {
    padding: 1rem;
  }

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

  .listing-card__body {
    padding: .7rem;
  }

  .listing-card h3 {
    font-size: .78rem;
  }

  .listing-card__price {
    font-size: .95rem;
  }

  .listing-card__meta,
  .listing-card__seller {
    font-size: .61rem;
  }

  .market-banner {
    border-radius: .8rem;
    padding: 1.35rem;
  }

  .market-banner h1 {
    font-size: 1.95rem;
  }

  .market-benefits {
    padding: .65rem .7rem;
  }

  .gallery__main {
    min-height: 17rem;
  }

  .listing-summary-card {
    padding: .95rem;
  }

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

  .listing-facts > div {
    padding: .62rem;
  }

  .listing-facts dt {
    font-size: .58rem;
  }

  .listing-facts dd {
    font-size: .74rem;
  }

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

  .surface__body {
    padding: 1rem;
  }

  .dashboard-layout {
    gap: .8rem;
  }

  .dashboard-nav {
    gap: .38rem;
    padding-bottom: .3rem;
    scrollbar-width: none;
  }

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

  .dashboard-nav__label {
    display: none;
  }

  .dashboard-nav a {
    min-height: 40px;
    padding: .5rem .7rem;
    font-size: .72rem;
  }

  .metric {
    padding: .8rem;
  }

  .metric strong {
    font-size: 1.4rem;
  }

  .auth-main {
    width: min(calc(100% - 1.2rem), 33rem);
    padding-top: .5rem;
  }

  .auth-card {
    padding: 1rem;
  }

  .data-table-wrap {
    border-radius: .65rem;
  }

  .footer-grid {
    gap: 1.5rem 1rem;
  }
}

@media (max-width: 26rem) {
  .listing-grid,
  .content-grid .listing-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* v0.5.0 — Marketplace home & live activity */
.nav-count {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  margin-left: .28rem;
  border-radius: 999px;
  background: #ece8e3;
  color: #5b554f;
  padding-inline: .3rem;
  font-size: .62rem;
  font-weight: 820;
  line-height: 1;
}

.nav-count--alert {
  background: var(--ui-primary);
  color: #fff;
}

.mobile-nav-with-count {
  position: relative;
}

.mobile-nav-count {
  position: absolute;
  top: .28rem;
  left: calc(50% + .34rem);
  display: grid;
  min-width: 1.08rem;
  height: 1.08rem;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--ui-primary);
  color: #fff;
  padding-inline: .2rem;
  font-size: .55rem;
  line-height: 1;
}

.category-rail__mark,
.category-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #7b736b;
}

.category-rail__mark {
  width: 1.45rem;
  height: 1.45rem;
}

.category-icon {
  width: 2rem;
  height: 2rem;
  border: 1px solid #ebe6e0;
  border-radius: .55rem;
  background: #f8f6f3;
}

.category-rail__mark svg,
.category-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.category-rail__name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .62rem;
}

.market-banner--search {
  grid-template-columns: minmax(0, 1fr) minmax(11rem, .3fr);
  align-items: stretch;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.market-banner__content {
  display: grid;
  align-content: center;
  gap: .15rem;
}

.market-banner--search h1 {
  max-width: 15ch;
  margin-bottom: .5rem;
}

.market-banner--search p {
  max-width: 43rem;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(12rem, 1.5fr) repeat(3, minmax(9rem, .72fr)) auto;
  gap: .5rem;
  margin-top: 1.15rem;
  padding: .55rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: .78rem;
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(8px);
}

.home-search label {
  min-width: 0;
}

.home-search input,
.home-search select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: .55rem;
  background-color: #fff;
  color: #282522;
  padding: .68rem .75rem;
  outline: 0;
}

.home-search select {
  appearance: none;
  padding-right: 2.35rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #77716b 50%),
    linear-gradient(135deg, #77716b 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.home-search input:focus,
.home-search select:focus {
  border-color: #ff9f48;
  box-shadow: 0 0 0 3px rgb(255 121 0 / 20%);
}

.home-search .button {
  min-width: 7.5rem;
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  margin-top: .85rem;
}

.home-stats > a,
.home-stats > span {
  display: flex;
  align-items: baseline;
  gap: .32rem;
  color: rgb(255 255 255 / 67%);
  text-decoration: none;
}

.home-stats strong {
  color: #fff;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
}

.home-stats span span,
.home-stats a span {
  font-size: .68rem;
}

.market-benefits b {
  display: inline-grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  margin-right: .35rem;
  border-radius: 999px;
  background: #f3eee8;
  color: #9b4a0d;
  font-size: .6rem;
}

.wanted-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  background:
    linear-gradient(90deg, #fff8f1, #fff),
    #fff;
}

.wanted-callout strong {
  display: block;
  margin-bottom: .18rem;
  font-size: .93rem;
}

.wanted-callout p {
  margin: 0;
  color: var(--ui-text-soft);
  font-size: .78rem;
}

.home-sellers {
  margin-top: 1.55rem;
}

.seller-directory__logo {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8e3dd;
  border-radius: .65rem;
  background: #faf8f5;
  color: #4e4842;
  font-size: 1rem;
  font-weight: 800;
}

.seller-directory__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.seller-directory__item {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.seller-directory__item:hover {
  transform: translateY(-2px);
  border-color: #d3cbc2;
  box-shadow: var(--ui-shadow-sm);
}

.discovery-links a {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border: 1px solid #eee9e3;
  border-radius: .5rem;
  padding: .52rem .62rem;
  background: #fcfbfa;
  color: #554f49;
  text-decoration: none;
}

.discovery-links a:hover {
  border-color: #d8d0c7;
  background: #fff;
  color: #292623;
}

.discovery-links b {
  min-width: 1.55rem;
  border-radius: 999px;
  background: #efeae4;
  padding: .16rem .38rem;
  color: #716960;
  font-size: .62rem;
  text-align: center;
}

.home-articles {
  margin-bottom: 1.75rem;
}

.home-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.home-article-card {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  padding: 1.05rem;
}

.home-article-card h3 {
  margin: .15rem 0 .55rem;
  font-size: 1rem;
}

.home-article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.home-article-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 .75rem;
  color: var(--ui-text-soft);
  font-size: .78rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-article-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: auto;
}

.home-article-card small {
  color: var(--ui-text-faint);
  font-size: .68rem;
}

@media (max-width: 74rem) {
  .home-search {
    grid-template-columns: minmax(12rem, 1.5fr) repeat(2, minmax(8.5rem, .75fr)) auto;
  }

  .home-search label:nth-of-type(4) {
    display: none;
  }
}

@media (max-width: 55rem) {
  .market-banner--search {
    grid-template-columns: 1fr;
  }

  .market-banner--search .market-banner__aside {
    display: none;
  }

  .home-search {
    grid-template-columns: minmax(0, 1.4fr) minmax(8rem, .8fr) auto;
  }

  .home-search label:nth-of-type(3),
  .home-search label:nth-of-type(4) {
    display: none;
  }

  .home-article-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 47.99rem) {
  .market-banner--search {
    padding: 1.1rem;
  }

  .market-banner--search h1 {
    font-size: 1.75rem;
  }

  .home-search {
    grid-template-columns: 1fr;
    gap: .42rem;
    margin-top: .85rem;
    padding: .45rem;
  }

  .home-search label:nth-of-type(2),
  .home-search label:nth-of-type(3),
  .home-search label:nth-of-type(4) {
    display: block;
  }

  .home-search .button {
    width: 100%;
  }

  .home-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
  }

  .home-stats > a,
  .home-stats > span {
    display: grid;
    gap: 0;
    border-radius: .45rem;
    background: rgb(255 255 255 / 7%);
    padding: .48rem .55rem;
  }

  .home-stats strong {
    font-size: .86rem;
  }

  .wanted-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .wanted-callout .button {
    width: 100%;
  }

  .home-article-grid {
    grid-template-columns: 1fr;
  }

  .seller-directory__logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}


/* v0.5.0 phase 2 — account media and profile completion */
.profile-completion {
  display: grid;
  gap: .75rem;
}

.profile-completion > div:first-child {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem 1rem;
  align-items: end;
}

.profile-completion strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
}

.profile-completion p {
  margin: 0;
  font-size: .78rem;
}

.profile-completion__track {
  overflow: hidden;
  height: .55rem;
  border-radius: 999px;
  background: #ece7e1;
}

.profile-completion__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7900, #f39a49);
}

.media-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.media-upload-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fbfaf8;
  padding: .85rem;
}

.media-upload-card strong {
  display: block;
  margin-bottom: .16rem;
}

.media-upload-card p {
  margin: 0 0 .55rem;
  color: var(--ui-text-soft);
  font-size: .72rem;
  line-height: 1.45;
}

.media-upload-preview {
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid #ddd6cf;
  background: #f1ede8;
  color: #766e66;
  font-weight: 800;
}

.media-upload-preview--avatar,
.media-upload-preview--logo {
  width: 76px;
  height: 76px;
  border-radius: .85rem;
}

.media-upload-preview--avatar {
  border-radius: 50%;
}

.media-upload-preview--cover {
  width: 132px;
  height: 62px;
  border-radius: .6rem;
}

.media-upload-preview img,
.media-upload-local-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-upload-local-preview {
  grid-column: 1 / -1;
  overflow: hidden;
  max-height: 180px;
  border: 1px dashed #d6cec5;
  border-radius: .6rem;
  background: #fff;
}

.media-upload-local-preview img {
  display: block;
  max-height: 180px;
  object-fit: contain;
}

.media-remove {
  margin-top: .45rem;
  color: var(--ui-text-soft);
  font-size: .68rem;
}

@media (max-width: 47.99rem) {
  .media-upload-grid {
    grid-template-columns: 1fr;
  }

  .media-upload-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .media-upload-preview--avatar,
  .media-upload-preview--logo {
    width: 64px;
    height: 64px;
  }

  .media-upload-preview--cover {
    width: 64px;
    height: 64px;
  }
}


/* v0.5.0 phase 2 — managed listing media */
.upload-grid--managed .upload-item {
  display: grid;
  aspect-ratio: auto;
  min-height: 13rem;
  grid-template-rows: minmax(0,1fr) auto;
  border: 1px solid var(--ui-border);
  background: #fff;
}

.upload-grid--managed .upload-item > img {
  aspect-ratio: 1;
  object-fit: cover;
}

.upload-item__controls {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  border-top: 1px solid #ece7e1;
  padding: .45rem;
  background: #faf8f5;
}

.upload-item__controls > div {
  display: flex;
  gap: .25rem;
}

.upload-cover-choice {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  color: #5f5851;
  font-size: .68rem;
  font-weight: 720;
}

.upload-cover-choice input {
  accent-color: var(--ui-primary);
}

.icon-button--small {
  width: 30px;
  height: 30px;
  border-radius: .4rem;
  font-size: .8rem;
}

.listing-owner-row {
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
}

.listing-owner-row__meta {
  margin-bottom: .25rem;
}

.listing-owner-actions {
  justify-content: flex-end;
}

.status--warning {
  background: #fff0d8;
  color: #8e5100;
}

@media (max-width: 47.99rem) {
  .listing-owner-row {
    grid-template-columns: 1fr;
  }

  .listing-owner-actions {
    justify-content: flex-start;
  }

  .upload-item__controls {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v0.5.0 phase 3 — trust, verification and transaction lifecycle */
.verification-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.verification-action-card {
  display: grid;
  min-height: 8.5rem;
  align-content: space-between;
  gap: .75rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fbfaf8;
  padding: .9rem;
}

.verification-action-card p {
  margin: .2rem 0 0;
  color: var(--ui-text-soft);
  font-size: .72rem;
}

.verification-success,
.verification-status-card {
  border-left: 3px solid var(--ui-primary);
}

.offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, auto);
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--ui-shadow-xs);
}

.offer-card__main {
  min-width: 0;
}

.offer-card__main h2 {
  margin: .4rem 0 .3rem;
  font-size: 1rem;
}

.offer-card__main p {
  margin: .18rem 0;
}

.offer-card__actions {
  display: flex;
  max-width: 28rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
}

.transaction-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  max-width: 31rem;
  margin-top: .7rem;
}

.transaction-progress span {
  position: relative;
  border-radius: 999px;
  background: #eeeae5;
  color: #7b746d;
  padding: .38rem .52rem;
  font-size: .65rem;
  font-weight: 760;
  text-align: center;
}

.transaction-progress span.is-active {
  background: #fff0e3;
  color: #984708;
}

.transaction-note {
  margin-top: .55rem !important;
  border-left: 2px solid #9b938b;
  padding-left: .55rem;
  color: var(--ui-text-soft);
  font-size: .72rem;
}

.transaction-note--attention {
  border-left-color: var(--ui-primary);
  color: #844006;
}

.status--transaction-reserved {
  background: #f1ede8;
  color: #625b54;
}

.status--transaction-in_progress {
  background: #fff0df;
  color: #8b490f;
}

.status--transaction-completed {
  background: #e8f6ec;
  color: #27643a;
}

.status--transaction-cancelled,
.status--transaction-disputed {
  background: #fbe9e7;
  color: #8a3028;
}

.review-criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.review-response {
  margin-top: .65rem;
  border-left: 2px solid #d8d1c9;
  border-radius: 0 .45rem .45rem 0;
  background: #faf8f5;
  padding: .6rem .7rem;
}

.review-response p {
  margin: .2rem 0 0 !important;
}

.review-actions {
  margin-top: .55rem;
}

.trust-factor-list {
  display: grid;
  grid-column: 1 / -1;
  gap: .28rem;
  width: 100%;
  margin-top: .7rem;
  border-top: 1px solid #ece7e1;
  padding-top: .65rem;
}

.trust-factor-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  color: #5e5750;
  font-size: .7rem;
}

.trust-factor-list span {
  display: grid;
  gap: .05rem;
}

.trust-factor-list small {
  color: var(--ui-text-faint);
  font-size: .62rem;
}

.trust-factor-list strong {
  color: #27643a;
  font-size: .7rem;
}

.trust-factor-list strong.is-negative {
  color: #a1372f;
}

.moderation-target-card {
  margin-top: .85rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #faf8f5;
  padding: .85rem;
}

.moderation-target-card blockquote {
  margin: .55rem 0;
  border-left: 3px solid #ddd5cc;
  padding-left: .7rem;
  color: #554f49;
}

@media (max-width: 55rem) {
  .verification-action-grid {
    grid-template-columns: 1fr;
  }

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

  .offer-card__actions {
    max-width: none;
    justify-content: flex-start;
  }
}

@media (max-width: 31rem) {
  .review-criteria-grid {
    grid-template-columns: 1fr;
  }

  .transaction-progress {
    grid-template-columns: 1fr;
  }
}


/* v0.5.0 search, saved-search and alert UX */
.suggestions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.suggestions a small {
  color: var(--ui-text-soft);
  font-size: .66rem;
  font-weight: 700;
}

.search-discovery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.search-discovery h2,
.search-alternatives h2 {
  margin: 0 0 .65rem;
  font-size: .88rem;
}

.search-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: #fff;
  padding: .42rem .68rem;
  color: var(--ui-text);
  font-size: .7rem;
  text-decoration: none;
}

.search-chip:hover {
  border-color: #f0a05b;
  background: #fff7f0;
}

.search-chip span {
  color: var(--ui-text-soft);
  font-size: .62rem;
}

.search-alternatives {
  margin-top: 1rem;
}

.saved-search-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.8fr) auto;
  align-items: end;
  gap: .8rem;
  border-bottom: 1px solid var(--ui-border);
  padding: .9rem 0;
}

.saved-search-card:last-child {
  border-bottom: 0;
}

.saved-search-card__main h2 {
  margin: 0 0 .2rem;
  font-size: .92rem;
}

.saved-search-card__settings {
  display: grid;
  grid-template-columns: minmax(130px,1fr) minmax(120px,.8fr) auto;
  gap: .5rem;
  align-items: end;
}

.saved-search-card__settings .field {
  margin: 0;
}

@media (max-width: 47.99rem) {
  .search-discovery {
    grid-template-columns: 1fr;
  }

  .saved-search-card,
  .saved-search-card__settings {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}


/* v0.5.0 favorite collections */
.favorite-collections {
  display: grid;
  gap: .8rem;
}

.favorite-collections__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.favorite-collections__head h2 {
  margin: .1rem 0 0;
  font-size: .95rem;
}

.favorite-collection-create {
  display: flex;
  gap: .45rem;
  align-items: center;
}

.favorite-collection-create input {
  min-width: 180px;
}

.favorite-collection-chip {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
}

.favorite-collection-chip form {
  display: inline-flex;
}

.search-chip.is-active {
  border-color: #ff7900;
  background: #fff4ea;
  color: #b45200;
}

.favorite-card-wrap {
  display: grid;
  min-width: 0;
  gap: .45rem;
}

.favorite-folder-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: .4rem;
}

.favorite-folder-form select {
  min-width: 0;
}

@media (max-width: 47.99rem) {
  .favorite-collections__head,
  .favorite-collection-create {
    align-items: stretch;
    flex-direction: column;
  }

  .favorite-collection-create input {
    min-width: 0;
  }
}


.save-search-panel {
  display: grid;
  gap: .55rem;
  margin-top: .35rem;
  border-top: 1px solid var(--ui-border);
  padding-top: .8rem;
}

.save-search-panel .field {
  margin: 0;
}

.save-search-panel .button {
  width: 100%;
}
