:root {
  color-scheme: light;
  --canvas: #f4f6f4;
  --surface: #ffffff;
  --surface-soft: #eef3f0;
  --ink: #17211e;
  --muted: #65716c;
  --line: #d8dfdb;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --forest: #15322d;
  --amber: #f4a624;
  --amber-soft: #fff5dc;
  --coral: #c24135;
  --coral-soft: #fce9e6;
  --green-soft: #e2f3e8;
  --shadow: 0 14px 34px rgba(23, 33, 30, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

body.has-modal {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  min-height: 40px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  padding: 0 15px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}

button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

button:disabled,
button:disabled:hover {
  border-color: var(--line);
  background: #e6ebe8;
  color: #86918c;
  cursor: not-allowed;
}

button.secondary {
  border-color: #b8c5bf;
  background: #fff;
  color: var(--forest);
}

button.secondary:hover {
  border-color: var(--forest);
  background: var(--surface-soft);
}

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

button.danger:hover {
  border-color: #9f322a;
  background: #9f322a;
}

button.text-button {
  min-height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-dark);
}

button.text-button:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
}

button.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  padding: 0;
  border-color: var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
}

button.light-icon {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.9);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c8d2cd;
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: #52605a;
  font-size: 14px;
  font-weight: 700;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

legend {
  margin-bottom: 8px;
  color: #52605a;
  font-size: 14px;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

h2 {
  margin-bottom: 6px;
  font-size: 21px;
}

h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  border: 2px solid var(--brand-dark);
  border-radius: 7px;
  padding: 10px 14px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
  transition: transform 120ms ease-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 2px;
  transform: translateY(0);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 11px max(22px, calc((100vw - 1320px) / 2));
  background: var(--forest); /* site themes map --forest; the Swapyard logo needs the #111111 ink header */
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: auto;
}

.brand-logo-full {
  width: 210px;
}

.brand-logo-mark {
  display: none;
  width: 40px;
}

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

.notification-shell {
  position: relative;
}

.notification-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.26);
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
}

.notification-button:hover,
.notification-button[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.notification-button svg {
  width: 21px;
  height: 21px;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border: 2px solid var(--forest);
  border-radius: 999px;
  padding: 0 4px;
  background: var(--amber);
  color: #17211e;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  display: grid;
  grid-template-rows: auto auto minmax(80px, 1fr) auto;
  width: min(400px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 94px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(23, 33, 30, 0.22);
  color: var(--ink);
}

.notification-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 10px;
}

.notification-panel-heading h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.notification-panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.notification-panel-heading .text-button {
  flex: 0 0 auto;
  min-height: 30px;
  font-size: 14px;
}

.notification-filters {
  width: max-content;
  margin: 0 16px 12px;
}

.notification-filters button {
  min-height: 34px;
  padding: 0 13px;
  font-size: 14px;
}

.notification-list {
  min-height: 80px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overscroll-behavior: contain;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 10px;
  align-items: start;
  gap: 11px;
  width: 100%;
  min-height: 86px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 16px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover {
  background: var(--surface-soft);
}

.notification-item.is-unread {
  background: var(--amber-soft);
}

.notification-item.is-unread:hover {
  background: #ffedbd;
}

.notification-marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 850;
}

.notification-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.notification-copy strong,
.notification-copy span,
.notification-copy small {
  overflow-wrap: anywhere;
}

.notification-copy strong {
  font-size: 14px;
}

.notification-copy span {
  color: #46534e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.notification-copy small {
  color: var(--muted);
  font-size: 14px;
}

.notification-unread-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--coral);
}

.notification-state {
  display: grid;
  min-height: 112px;
  place-items: center;
  gap: 10px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.notification-state p {
  margin: 0;
  overflow-wrap: anywhere;
}

.notification-state.is-error {
  color: var(--coral);
}

.notification-panel-footer {
  display: flex;
  justify-content: center;
  padding: 10px 16px;
}

.notification-panel-footer button {
  min-height: 34px;
  font-size: 14px;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.13);
  color: #dbe8e2;
  font-size: 14px;
  font-weight: 750;
}

.connection-status.is-error {
  background: rgba(194, 65, 53, 0.25);
  color: #ffd8d3;
}

.member-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.member-button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: #17211e;
  font-size: 14px;
  font-weight: 850;
}

.primary-nav {
  position: sticky;
  top: 70px;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.nav-tab {
  min-width: 112px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.nav-tab:hover,
.nav-tab.is-active {
  border-bottom-color: var(--amber);
  background: transparent;
  color: var(--ink);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.marketplace-hero {
  position: relative;
  height: 252px;
  overflow: hidden;
  background: #2c463f;
}

.marketplace-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.marketplace-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 41, 35, 0.88) 0%, rgba(17, 41, 35, 0.62) 48%, rgba(17, 41, 35, 0.14) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 24px;
  color: #fff;
}

.hero-overlay h1 {
  max-width: 560px;
  margin: 0;
  font-size: 38px;
}

.eyebrow {
  margin-bottom: 7px;
  color: #8b5b00;
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-overlay .eyebrow {
  color: #ffd77b;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(260px, 430px) auto;
  gap: 8px;
  width: min(570px, 52%);
}

.semantic-search-disclosure {
  grid-column: 1 / -1;
  margin: 0;
  border-left: 3px solid #ffd77b;
  border-radius: 0 6px 6px 0;
  padding: 7px 10px;
  background: rgba(17, 41, 35, 0.9);
  color: #fff7e5;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hero-search input {
  min-height: 50px;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-search button {
  min-height: 50px;
  background: var(--amber);
  border-color: var(--amber);
  color: #17211e;
}

.hero-search button:hover {
  border-color: #da8e0e;
  background: #da8e0e;
}

.discovery-workspace,
.page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 24px 54px;
}

.narrow-shell {
  max-width: 940px;
}

.account-shell {
  max-width: 1120px;
}

.section-heading,
.subsection-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading {
  margin-bottom: 18px;
}

.page-heading {
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-md, 14px);
}

.category-policy {
  display: block;
  min-height: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.category-policy[data-listing-status="Active"] {
  color: #276342;
}

.category-policy[data-listing-status="UnderReview"] {
  color: #8a5a13;
}

.category-policy[data-listing-status="Unavailable"] {
  color: var(--coral);
}

.category-policy[data-listing-status="Error"] {
  color: var(--coral);
}

.category-eligibility {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.category-eligibility-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.category-eligibility-details {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.category-eligibility-authority {
  flex-basis: 100%;
}

.category-eligibility button.text-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.category-eligibility button.text-button:disabled {
  background: transparent;
  color: #86918c;
}

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

.filters select {
  min-width: 210px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  min-height: 42px;
  border: 1px solid #c5d0cb;
  border-radius: 7px;
  padding: 3px;
  background: #fff;
}

.segmented button,
.segmented label span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}

.segmented button:hover,
.segmented button.is-selected,
.segmented label:has(input:checked) span {
  background: var(--forest);
  color: #fff;
}

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

.listing-card {
  display: grid;
  grid-template-rows: 176px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(23, 33, 30, 0.05);
}

.listing-card-media {
  position: relative;
  overflow: hidden;
  background: #d9e2de;
}

.listing-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.listing-card:hover .listing-card-media img {
  transform: scale(1.025);
}

.type-badge,
.status-chip,
.settlement-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--surface-soft);
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.type-badge.is-need {
  background: var(--amber-soft);
  color: #865900;
}

.status-chip.is-ok {
  background: var(--green-soft);
  color: #276342;
}

.status-chip.is-warning {
  background: var(--amber-soft);
  color: #865900;
}

.status-chip.is-danger {
  background: var(--coral-soft);
  color: #96362e;
}

.listing-card-body {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  padding: 15px;
}

.listing-card-body h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.listing-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.discovery-match-explanation {
  display: grid;
  min-width: 0;
  gap: 6px;
  border-left: 3px solid #5b8f7b;
  border-radius: 0 6px 6px 0;
  padding: 8px 10px;
  background: #f0f7f4;
  color: #40514a;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.discovery-match-explanation > strong {
  color: var(--forest);
  font-size: 14px;
}

.discovery-match-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.discovery-match-terms > span:first-child {
  margin-right: 2px;
  color: var(--muted);
  font-weight: 700;
}

.discovery-match-term {
  max-width: 100%;
  border: 1px solid #bdd7ce;
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.discovery-match-reasons {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 17px;
}

.discovery-match-reasons li {
  overflow-wrap: anywhere;
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* The owner row wraps: when the name and the price cue don't fit side by side, the cue drops under the name. The name
   never truncates (it breaks inside a very long word instead), and the cue never breaks mid-phrase (#357). */
.listing-owner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 14px;
}

.listing-owner strong {
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* A cue may wrap, but only between its parts (a service's "{time} ·" and "{credits}"), never inside one, so a long
   time like "12 hours 45 minutes · 51 credits" breaks at the " · " instead of running past the card (#357 review). */
.listing-owner .listing-price-cue {
  max-width: 100%;
  white-space: normal;
}

.listing-owner .listing-price-cue > .cue-part {
  white-space: nowrap;
}

.listing-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 3px;
}

.listing-card-actions button {
  flex: 1;
}

.settlement-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
}

.metrics-band {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin-bottom: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.metric {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
}

.metric span {
  margin-bottom: 4px;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 750;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 23px;
}

.metric small {
  margin-top: 3px;
  font-size: var(--text-sm, 0.875rem);
}

.hub-section,
.account-section {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.hub-section:first-of-type {
  border-top: 0;
}

.subsection-heading {
  align-items: center;
  margin-bottom: 13px;
}

.subsection-heading h2,
.subsection-heading h3 {
  margin: 0;
}

/* A heading's button keeps its size and its label on one line; the heading text wraps beside it instead (#390:
   Matchwell's Delivery setup "Refresh" broke mid-word in Firefox and WebKit at 900–1280). */
.subsection-heading > button {
  flex: 0 0 auto;
}

.compact-list,
.ledger-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.compact-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) minmax(160px, 0.8fr) minmax(140px, 0.7fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 4px;
}

.compact-row-main,
.compact-row-cell {
  min-width: 0;
}

.compact-row-main strong,
.compact-row-main span,
.compact-row-cell span,
.compact-row-cell strong {
  display: block;
  overflow-wrap: anywhere;
}

.compact-row-main span,
.compact-row-cell span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.row-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions button {
  min-height: var(--tap-min, 44px);
  min-width: var(--tap-min, 44px);
  padding: 0 16px;
  font-size: 16px;
  white-space: nowrap;
}

/* The composer's primary action sits outside .row-actions; it gets the same site target (#443). */
#submitProposalButton {
  min-height: var(--tap-min, 44px);
}

.ledger-row {
  display: grid;
  grid-template-columns: 110px 90px minmax(200px, 1fr) 150px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 12px 4px;
}

.credit-positive {
  color: #276342;
}

.credit-negative {
  color: var(--coral);
}

.credit-positive.mileage-ledger-amount {
  color: var(--color-success, #276342);
}

.credit-negative.mileage-ledger-amount {
  color: var(--color-danger, var(--coral));
}

.member-form {
  display: grid;
  gap: 20px;
}

.compact-member-form {
  gap: 14px;
}

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

.span-two {
  grid-column: 1 / -1;
}

.listing-duration-guidance {
  margin: 0;
  font-size: var(--text-md, 1rem);
  color: var(--color-text, var(--ink));
}

.listing-duration-guidance:empty {
  position: absolute;
}

.listing-description-field {
  display: grid;
  gap: 6px;
}

.listing-description-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.listing-description-label-row button {
  flex: 0 0 auto;
}

.listing-description-assistant-status {
  margin: 2px 0 0;
}

.listing-description-assistant-disclosure {
  margin: 0;
  border-left: 3px solid var(--amber);
  padding: 7px 10px;
  background: var(--amber-soft);
  color: #5f4b24;
  font-size: 14px;
  line-height: 1.45;
}

.listing-description-preview {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  border: 1px solid #bdd7d1;
  border-radius: 8px;
  padding: 14px;
  background: #f5faf8;
}

.listing-description-preview-label {
  margin: 0;
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
}

.listing-description-review-notice {
  margin: 0;
  color: #52605a;
  font-size: 14px;
  line-height: 1.45;
}

.listing-description-preview-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.listing-description-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-segmented {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  grid-auto-flow: initial;
  width: min(380px, 100%);
}

.form-segmented label {
  display: block;
}

.form-segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.check-grid label,
.toggle-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

.check-grid input,
.toggle-field input {
  width: 17px;
  min-height: 17px;
  margin: 0;
}

.notification-preferences-form {
  display: grid;
  gap: 0;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.notification-preferences-header,
.notification-preference-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(420px, 1.4fr);
  gap: 18px;
  min-width: 0;
}

.notification-preferences-header {
  grid-template-columns: minmax(240px, 1.1fr) repeat(3, minmax(120px, 0.466fr));
  align-items: end;
  padding: 9px 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
}

.notification-preferences-header span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.notification-preference-row {
  align-items: center;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 4px;
}

.notification-preference-description {
  min-width: 0;
}

.notification-preference-description span,
.notification-preference-description small,
.notification-preference-option span,
.notification-preference-option small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.notification-preference-description span {
  font-weight: 750;
}

.notification-preference-description small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.notification-preference-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
  min-width: 0;
}

.notification-preference-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.notification-preference-option:has(input:checked:not(:disabled)) {
  border-color: #4c7a68;
  background: #eff7f3;
}

.notification-preference-option.is-required {
  background: var(--surface);
  color: var(--muted);
}

.notification-preference-option input {
  flex: 0 0 auto;
  width: 17px;
  min-height: 17px;
  margin: 0;
}

.notification-preference-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.notification-preference-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding-top: 16px;
}

.notification-preference-actions .form-status {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.notification-preference-commands {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  flex-wrap: wrap;
}

.notification-delivery-content {
  min-width: 0;
  border-top: 1px solid var(--line);
}

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

.delivery-status-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.delivery-status-item > span,
.delivery-status-item small,
.delivery-target-row span,
.delivery-target-empty {
  min-width: 0;
  overflow-wrap: anywhere;
}

.delivery-status-item > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
}

.delivery-status-item strong,
.delivery-target-row strong {
  font-size: 14px;
}

.delivery-status-item small,
.delivery-target-row span,
.delivery-target-empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.delivery-targets-heading {
  padding: 4px 0 8px;
}

.delivery-targets-heading h3 {
  margin: 0;
  font-size: 14px;
}

.delivery-target-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.delivery-target-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.delivery-target-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.delivery-target-state {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.danger-text {
  color: #9b2c2c;
}

.notification-delivery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding-top: 16px;
}

.notification-delivery-actions .form-status {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.travel-fields {
  margin-top: 12px;
}

.field-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

input[aria-invalid="true"] + .field-hint,
label:has(input[aria-invalid="true"]) + .field-hint {
  color: #9b2c2c;
}

.derived-credits {
  margin: 0;
  font-weight: 600;
}

.derived-credits output {
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

.mileage-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mileage-field label,
.mileage-field input,
.mileage-detail,
.mileage-confirm-detail {
  font-size: var(--text-md, 16px);
}

.mileage-field input,
.mileage-detail button {
  min-height: var(--tap-min, 44px);
}

.mileage-hint,
.mileage-field-error {
  font-size: var(--text-sm, 14px);
  line-height: 1.4;
}

.mileage-hint {
  color: var(--color-muted, var(--muted));
}

.mileage-field-error {
  color: var(--color-danger, #9b2c2c);
}

.mileage-field-error:empty,
[data-mileage-estimate]:empty,
[data-mileage-action-status]:empty {
  display: none;
}

.mileage-detail :is(a, button, input):focus,
.mileage-field input:focus,
.mileage-confirm :is(h2, button):focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@media (max-width: 400px) {
  .mileage-confirm .dialog-actions button {
    width: 100%;
    white-space: normal;
  }
}

.onboarding-card {
  margin: 0 0 22px;
  border: 1px solid #b9cbc3;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, #f6fbf8 0%, #fffaf0 100%);
}

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

.onboarding-heading h2,
.onboarding-heading p {
  margin-top: 0;
}

.onboarding-heading h2 {
  margin-bottom: 5px;
  font-size: 20px;
}

.onboarding-heading .eyebrow {
  margin-bottom: 5px;
}

.onboarding-heading .section-status {
  margin-bottom: 0;
}

#onboardingProgress {
  display: block;
  width: 100%;
  height: 8px;
  margin: 16px 0 12px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #dce6e1;
  accent-color: var(--brand);
}

#onboardingProgress::-webkit-progress-bar {
  background: #dce6e1;
}

#onboardingProgress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--brand);
}

#onboardingProgress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--brand);
}

.onboarding-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(184, 202, 193, 0.8);
  list-style: none;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(184, 202, 193, 0.65);
}

.onboarding-step.is-next {
  background: rgba(255, 245, 220, 0.55);
}

.onboarding-step-marker {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #9bada5;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.onboarding-step.is-complete .onboarding-step-marker {
  border-color: var(--brand);
  background: var(--brand);
}

.onboarding-step.is-pending .onboarding-step-marker {
  border-style: dashed;
  color: var(--muted);
}

.onboarding-step-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.onboarding-step-copy strong,
.onboarding-step-copy small {
  overflow-wrap: anywhere;
}

.onboarding-step-copy small,
.onboarding-step-status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.onboarding-step-status {
  font-weight: 750;
  white-space: nowrap;
}

.onboarding-step-action {
  white-space: nowrap;
}

.account-summary,
.profile-summary {
  margin-bottom: 20px;
}

.capability-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.capability-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(180px, 0.85fr) minmax(170px, 0.75fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 4px;
}

.capability-row-main,
.capability-row-detail {
  min-width: 0;
}

.capability-row-main strong,
.capability-row-main span,
.capability-row-detail strong,
.capability-row-detail span {
  display: block;
  overflow-wrap: anywhere;
}

.capability-row-main span,
.capability-row-detail span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.capability-row-main a {
  color: var(--brand-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.capability-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.capability-form-actions .form-status {
  flex: 1;
  margin: 0;
}

.capability-list .empty-state,
.capability-list .loading-state,
.capability-list .error-state {
  min-height: 92px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-list > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-list > div:nth-child(2n) {
  border-right: 0;
}

.summary-list dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
}

.summary-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.connection-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}

.optional {
  color: #89938e;
  font-weight: 500;
}

.empty-state,
.loading-state,
.error-state {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px dashed #bdc9c3;
  border-radius: 8px;
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

.compact-list .empty-state,
.ledger-list .empty-state {
  min-height: 100px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.error-state {
  color: var(--coral);
}

.age-verification-error-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 26px;
  text-align: center;
}

.age-verification-error-card {
  max-width: 420px;
  color: var(--coral);
}

.age-verification-error-card button {
  margin-top: 16px;
}

/* #383: the state_not_eligible page (PD copy on PR #784). Not an error colour: the member did nothing wrong. */
.state-not-eligible-card {
  max-width: 420px;
}

.state-not-eligible-card h2:focus {
  outline: none;
}

.state-not-eligible-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.state-not-eligible-actions button {
  min-height: max(48px, var(--tap-min, 48px));
}

.sign-in-prompt,
.finish-setup-prompt {
  gap: 12px;
  align-content: center;
  color: var(--forest);
}

.sign-in-prompt p,
.finish-setup-prompt p {
  margin: 0;
}

/* #594: the Finish setup and Try again actions are at least 48px tall on both sites (above Swapyard's 44px --tap-min).
   #644: so are the account panel's and Discover's Sign in actions. */
.finish-setup-prompt button,
.account-access-action {
  min-height: max(48px, var(--tap-min, 48px));
}

/* #642: Create listing's Cancel and Publish, and the confirm dialog's buttons (Keep editing, Discard), are at least
   48px tall on both sites. */
.create-listing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.create-listing-actions button,
.confirm-modal .dialog-actions button {
  min-height: max(48px, var(--tap-min, 48px));
}

a.sign-in-link {
  display: inline-flex;
  align-items: center;
  min-height: max(48px, var(--tap-min, 48px));
  border: 1px solid var(--brand);
  border-radius: 6px;
  padding: 0 15px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

a.sign-in-link:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.listing-grid > .empty-state,
.listing-grid > .loading-state,
.listing-grid > .error-state {
  grid-column: 1 / -1;
}

dialog {
  max-width: calc(100vw - 30px);
  max-height: calc(100vh - 30px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(18, 31, 27, 0.25);
}

dialog::backdrop {
  background: rgba(15, 28, 24, 0.58);
  backdrop-filter: blur(2px);
}

.modal {
  width: min(680px, calc(100vw - 30px));
}

.identity-modal {
  width: min(500px, calc(100vw - 30px));
  padding: 21px;
}

.exchange-modal {
  width: min(820px, calc(100vw - 30px));
  padding: 21px;
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.modal-header h2 {
  margin: 0;
}

.floating-header {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: calc(100% - 24px);
  margin: 0;
}

.identity-tabs {
  width: 100%;
  margin-bottom: 18px;
}

.form-status {
  min-height: 20px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-status.is-error,
.form-status.is-error {
  color: var(--coral);
}

#passkeySetupButton {
  min-height: max(48px, var(--tap-min, 44px));
}

#passkeySetupStatus:empty {
  min-height: 0;
  margin: 0;
}

.listing-detail-media {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #d9e2de;
}

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

/* #618: with layout.listingArt "category" the detail shows the category art (--art-size-detail), not a photo. */
.listing-detail-media.is-art {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2, 8px);
  height: auto;
  padding: var(--space-4, 16px);
  background: var(--color-surface-alt, var(--surface-soft));
}

.listing-detail-media.is-art .listing-detail-art {
  width: var(--art-size-detail, 96px);
  height: var(--art-size-detail, 96px);
  object-fit: contain;
}

.listing-detail-media.is-art .type-badge {
  position: static;
}

.listing-detail-body {
  display: grid;
  gap: 18px;
  padding: 21px;
}

.listing-detail-body h2 {
  margin: 0;
  font-size: 25px;
}

.listing-detail-description {
  margin: 0;
  color: #4f5d57;
  line-height: 1.55;
  white-space: pre-wrap;
}

.owner-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.owner-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: #865900;
  font-weight: 850;
}

.owner-strip > div > strong,
.owner-strip > div > span {
  display: block;
}

.owner-strip > div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.owner-strip > div {
  min-width: 0;
}

.listing-detail-actions {
  display: grid;
  justify-items: stretch;
  gap: 3px;
  min-width: 156px;
}

/* #190: "Report or block" is a danger-coloured text button on the surface, never a filled red primary. */
button.report-block-command {
  min-height: var(--tap-min, 44px);
  border: var(--border-strong, 1px solid #777);
  background: var(--color-surface, #fff);
  color: var(--color-danger, #a32626);
}

button.report-block-command:hover {
  border-color: var(--color-danger, #a32626);
  background: var(--color-surface, #fff);
  color: var(--color-danger, #a32626);
  text-decoration: underline;
}

.report-block-section {
  display: flex;
  justify-content: flex-end;
}

/* #256: an accepted trade under a block stays visible, with messaging off and no reason given. */
.trade-messaging-off {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--color-warning-soft, #fff4cf);
  color: var(--color-warning, #765000);
  line-height: 1.4;
}

/* #397: a frozen proposal or agreement; the same neutral note style, no reason given. */
.trade-no-longer-available {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--color-warning-soft, #fff4cf);
  color: var(--color-warning, #765000);
  line-height: 1.4;
}

.proposal-composer {
  padding: 21px;
  border-top: 1px solid var(--line);
  background: #f8faf8;
}

/* #601: the composer's create-a-Need path under the listing picker. */
.proposal-companion-create {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.exchange-detail-section {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.exchange-detail-section:first-child {
  border-top: 0;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 9px;
  margin-top: 10px;
}

.review-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}

.review-form-grid .span-all {
  grid-column: 1 / -1;
}

.confirm-modal {
  width: min(430px, calc(100vw - 30px));
  padding: 21px;
}

.report-block-modal {
  width: min(520px, calc(100vw - 30px));
  padding: 21px;
}

.report-block-modal h2 {
  overflow-wrap: anywhere;
}

.report-block-modal button.icon-button {
  width: var(--tap-min, 44px);
  min-width: var(--tap-min, 44px);
  height: var(--tap-min, 44px);
  min-height: var(--tap-min, 44px);
}

.report-block-modal legend,
.report-block-modal label {
  font-size: var(--text-md, 16px);
}

.report-block-modal .field-guidance,
.report-block-modal .report-block-status {
  font-size: var(--text-sm, 14px);
}

.report-block-choices {
  display: grid;
  gap: 9px;
}

.report-block-choices button,
.report-dialog-actions button {
  min-height: var(--tap-min, 44px);
}

.report-block-reasons {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.report-block-reasons legend {
  margin-bottom: 6px;
  padding: 0;
  font-weight: 700;
}

.report-reason-list {
  display: grid;
  gap: 4px;
}

.report-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap-min, 44px);
  cursor: pointer;
}

.report-reason input {
  width: 24px;
  height: 24px;
  margin: 0;
}

.report-block-note {
  display: grid;
  gap: 6px;
}

.report-block-modal .field-error {
  margin: 0;
  color: var(--color-danger, #a32626);
}

.report-block-modal .field-error:empty {
  display: none;
}

.report-block-confirm p {
  line-height: 1.5;
}

.field-guidance {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.field-guidance.is-invalid {
  color: var(--coral);
}

.report-block-status {
  min-height: 36px;
  margin: 0;
  line-height: 1.4;
}

.report-dialog-actions {
  padding-top: 2px;
}

.confirm-modal p {
  color: var(--muted);
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: none;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 7px;
  padding: 12px 14px;
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow);
}

.toast.is-visible {
  display: block;
}

.toast.is-error {
  background: var(--coral);
}

@media (max-width: 1050px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-overlay {
    align-items: end;
  }

  .hero-search {
    width: min(520px, 58%);
  }

  .compact-row {
    grid-template-columns: minmax(200px, 1.3fr) minmax(130px, 0.8fr) auto;
  }

  .capability-row {
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.8fr) minmax(150px, 0.7fr);
    gap: 14px;
  }

  .compact-row .compact-row-cell:nth-child(3) {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 64px;
  }

  .app-header {
    min-height: 64px;
    padding: 9px 14px;
  }

  .brand-logo-full {
    width: 180px;
  }

  .connection-status {
    display: none;
  }

  .member-button {
    min-width: 0;
    padding: 0 9px;
  }

  .notification-panel {
    position: fixed;
    top: 64px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100dvh - 138px);
  }

  #memberButtonLabel {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .primary-nav {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    justify-content: stretch;
    min-height: 62px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 24px rgba(23, 33, 30, 0.08);
  }

  .nav-tab {
    flex: 1;
    min-width: 0;
    min-height: 60px;
    border-top: 3px solid transparent;
    border-bottom: 0;
    padding: 0 5px;
    font-size: 14px;
  }

  .nav-tab:hover,
  .nav-tab.is-active {
    border-top-color: var(--amber);
    border-bottom-color: transparent;
  }

  .marketplace-hero {
    height: 230px;
  }

  .marketplace-hero.has-semantic-disclosure {
    height: 290px;
  }

  .marketplace-hero::after {
    background: linear-gradient(180deg, rgba(17, 41, 35, 0.45) 0%, rgba(17, 41, 35, 0.88) 100%);
  }

  .hero-overlay {
    align-items: end;
    flex-direction: column;
    justify-content: end;
    gap: 15px;
    padding: 23px 14px;
  }

  .hero-overlay > div,
  .hero-search {
    width: 100%;
  }

  .hero-overlay h1 {
    font-size: 30px;
  }

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

  .hero-search input,
  .hero-search button {
    min-height: 46px;
  }

  .discovery-workspace,
  .page-shell {
    padding: 21px 14px 35px;
  }

  .section-heading,
  .subsection-heading,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    align-items: stretch;
    justify-content: start;
  }

  .filters .segmented,
  .filters .discovery-category-field,
  .filters label:not(.sr-only),
  .filters select {
    width: 100%;
  }

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

  .listing-card {
    grid-template-rows: 190px 1fr;
  }

  .metrics-band {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .compact-row,
  .ledger-row,
  .capability-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 2px;
  }

  .compact-row .compact-row-cell:nth-child(3) {
    display: block;
  }

  .row-actions {
    justify-content: start;
  }

  .form-grid,
  .summary-list,
  .check-grid,
  .review-form-grid {
    grid-template-columns: 1fr;
  }

  .notification-preferences-header {
    display: none;
  }

  .notification-preference-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 2px;
  }

  .notification-preference-options {
    grid-template-columns: 1fr;
  }

  .notification-preference-actions,
  .notification-preference-commands {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-preference-commands,
  .notification-preference-commands button {
    width: 100%;
  }

  .delivery-status-grid {
    grid-template-columns: 1fr;
  }

  .delivery-target-row,
  .notification-delivery-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .delivery-target-row button,
  .notification-delivery-actions button {
    width: 100%;
  }

  .onboarding-card {
    padding: 15px;
  }

  .onboarding-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .onboarding-heading > button {
    align-self: start;
  }

  .onboarding-step {
    grid-template-columns: 26px minmax(0, 1fr) auto;
  }

  .onboarding-step-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .span-two,
  .review-form-grid .span-all {
    grid-column: auto;
  }

  .category-eligibility {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .category-eligibility button.text-button {
    align-self: start;
  }

  .listing-description-label-row,
  .listing-description-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .listing-description-label-row button,
  .listing-description-preview-actions button {
    align-self: stretch;
    width: 100%;
  }

  .connection-form,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .capability-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .capability-form-actions button {
    width: 100%;
  }

  .summary-list > div,
  .summary-list > div:nth-child(2n) {
    border-right: 0;
  }

  .listing-detail-media {
    height: 220px;
  }

  .owner-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .listing-detail-actions {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
  }

  .listing-detail-actions button {
    flex: 1;
  }

  dialog {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .toast {
    bottom: 76px;
  }
}

@media (max-width: 420px) {
  .brand-logo-full {
    display: none;
  }

  .brand-logo-mark {
    display: block;
  }

  .marketplace-hero.has-semantic-disclosure {
    height: 310px;
  }

  #memberButtonLabel {
    display: none;
  }

  /* #853: the avatar-only button is a full site target, 48px on Matchwell and 44px on Swapyard (--tap-min). */
  .member-button {
    justify-content: center;
    width: var(--tap-min, 44px);
    min-width: var(--tap-min, 44px);
    min-height: var(--tap-min, 44px);
    padding: 0;
  }

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

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

  .metrics-band {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .listing-detail-actions,
  .report-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .listing-detail-actions button,
  .report-dialog-actions button {
    width: 100%;
  }
}

.skill-recheck { color: var(--color-warning, #765000); background: var(--color-warning-soft, #fff4cf); padding: 1rem; }
.capability-editor:not(:empty) { flex-basis: 100%; width: 100%; }
.capability-row > .row-actions { flex-wrap: wrap; }
.capability-editor button, [data-capability-action] { min-height: var(--tap-min, 44px); }
.capability-editor .field-error { color: var(--danger, #a32626); }

.capability-remove { color: var(--color-danger, #a32626); background: transparent; border: 1px solid var(--border-strong, #777); }

/* ---------------------------------------------------------------------------
   #240 member shell from the named layout options. app.js (and, on bundle hosts, the server) sets these on <html>:
   data-nav, data-nav-icons, data-nav-indicator, data-nav-wide, data-help-label, data-header-search,
   data-header-create, data-listing-cards. Only these options and the #186 contract tokens drive the rules below:
   no rule names a site. The built-in look (data-nav="top-tabs") keeps the rules above unchanged.
   --------------------------------------------------------------------------- */

[data-layout-off] {
  display: none !important;
}

.discovery-workspace,
.page-shell {
  max-width: var(--content-max, 1320px);
}

.narrow-shell {
  max-width: min(940px, var(--content-max, 940px));
}

.account-shell {
  max-width: min(1120px, var(--content-max, 1120px));
}

.header-create {
  display: none;
}

.header-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1, 4px);
  min-width: var(--tap-min, 44px);
  min-height: var(--tap-min, 44px);
  padding: 0 var(--space-3, 12px);
  border-radius: var(--radius-sm, 6px);
  color: var(--color-on-header, #fff);
  font-weight: 600;
}

.header-help svg {
  width: 22px;
  height: 22px;
}

html[data-help-label="always"] .header-help svg {
  display: none;
}

html[data-help-label="wide"] .header-help {
  text-decoration: none;
}

.header-search-row {
  flex: 1 0 100%;
  min-width: 0;
}

html[data-nav="tab-bar"] {
  scroll-padding-bottom: calc(var(--tabbar-h, 56px) + env(safe-area-inset-bottom) + var(--space-8));
}

html[data-nav="tab-bar"] body {
  padding-bottom: calc(var(--tabbar-h, 56px) + env(safe-area-inset-bottom) + var(--space-8));
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
}

html[data-nav="tab-bar"] .app-header {
  position: static;
  flex-wrap: wrap;
  gap: var(--target-gap);
  min-height: 0;
  border-bottom: 0;
  padding: var(--space-3) max(var(--space-4), calc((100% - var(--content-max)) / 2));
  background: var(--color-header);
  color: var(--color-on-header);
}

html[data-nav="tab-bar"] .app-header :focus-visible {
  outline: 2px solid var(--color-focus-inverse);
  outline-offset: 2px;
}

html[data-nav="tab-bar"] .brand {
  min-height: var(--tap-min);
  color: var(--color-on-header);
}

html[data-nav="tab-bar"] .header-actions {
  flex-wrap: wrap;
  gap: var(--target-gap);
  margin-left: auto;
}

html[data-nav="tab-bar"] .notification-button,
html[data-nav="tab-bar"] .member-button {
  min-width: var(--tap-min, 44px);
  min-height: var(--tap-min, 44px);
  border-radius: var(--radius-sm);
  color: var(--color-on-header);
}

html[data-nav="tab-bar"] .notification-button {
  width: var(--tap-min);
  height: var(--tap-min);
}

/* Phone first: a fixed bottom tab bar on a light surface. */
html[data-nav="tab-bar"] .primary-nav:not([data-nav-ready]) {
  visibility: hidden;
}

html[data-nav="tab-bar"] .primary-nav {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: var(--target-gap);
  box-sizing: border-box;
  min-height: calc(var(--tabbar-h, 56px) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line);
  border-bottom: 0;
  padding: 0 var(--space-2) env(safe-area-inset-bottom);
  background: var(--color-surface);
  box-shadow: none;
  backdrop-filter: none;
}

html[data-nav="tab-bar"] .nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-width: 0;
  min-height: calc(var(--tabbar-h, 56px) - 1px); /* the bar's 1px top border completes --tabbar-h */
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--space-1);
  background: transparent;
  color: var(--color-ink);
  /* #853: tab labels scale with text size up to 20px, then stop, and never break inside a word. Headers and content
     keep full scaling. */
  font-size: min(var(--nav-tab-text, var(--text-xs)), 20px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

html[data-nav="tab-bar"] .nav-tab:hover {
  background: var(--color-surface-alt);
}

html[data-nav="tab-bar"] .nav-tab:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

html[data-nav="tab-bar"] .nav-tab-icon {
  width: 24px;
  height: 24px;
  flex: none;
}

html[data-nav-indicator="underline"] .nav-tab[aria-current="page"] {
  color: var(--color-selected);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 0 var(--color-selected);
}

html[data-nav-indicator="fill"] .nav-tab[aria-current="page"] {
  background: var(--color-selected);
  color: var(--color-on-selected);
  font-weight: 700;
}

html[data-nav="tab-bar"] .hero-search button {
  white-space: nowrap;
}

html[data-header-search="row"] .header-search-row .hero-search {
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

html[data-header-search="row"] .header-search-row .hero-search input,
html[data-header-search="row"] .header-search-row .hero-search button {
  min-height: var(--tap-min);
}

/* Listing cards: the built-in fixed grid stays as above. */
html[data-listing-cards="list"] .listing-grid {
  grid-template-columns: minmax(0, 1fr);
}

.listing-card.is-row {
  grid-template-columns: var(--art-size-detail, 96px) minmax(0, 1fr);
  grid-template-rows: none;
}

.listing-card.is-row .listing-card-media {
  min-height: var(--art-size-detail, 96px);
}

html[data-listing-cards="fluid-grid"] .listing-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 360px) {
  html[data-listing-cards="fluid-grid"] .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  html[data-help-label="wide"] .header-help {
    padding: 0;
  }

  html[data-help-label="wide"] .header-help-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Below 900px the toast clears the bottom tab bar (A6), and the bar steps aside while a text field has focus (D5). */
@media (max-width: 899.98px) {
  html[data-nav="tab-bar"] .toast {
    bottom: calc(var(--tabbar-h, 56px) + env(safe-area-inset-bottom) + 8px);
  }

  html[data-nav="tab-bar"][data-typing] .primary-nav {
    display: none;
  }

  /* #853: in the bottom bar each tab's slot is fixed by the grid, so a label also stays within its own tab: a word
     fits a quarter of a 320px bar at 200% text. Never under the 14px floor (#371). Phone bar only; the desktop tabs
     size to their text. */
  html[data-nav="tab-bar"] .nav-tab {
    container-type: inline-size;
  }

  html[data-nav="tab-bar"] .nav-tab-label {
    font-size: max(14px, min(var(--nav-tab-text, var(--text-xs)), 20px, 24cqi));
  }
}

/* 600-899px: the phone layout in a centred 640px column; the bottom bar stays and centres its tabs on that column. */
@media (min-width: 600px) and (max-width: 899.98px) {
  html[data-nav="tab-bar"] {
    --content-max: 640px;
  }

  html[data-nav="tab-bar"] .primary-nav {
    padding-inline: max(var(--space-2), calc((100% - var(--content-max)) / 2));
  }

  html[data-nav="tab-bar"] .hero-overlay {
    flex-direction: column;
    align-items: stretch;
    justify-content: end;
    gap: var(--space-4);
    max-width: var(--content-max);
    padding: var(--space-6) var(--space-4);
  }

  html[data-nav="tab-bar"] .hero-overlay > div,
  html[data-nav="tab-bar"] .hero-search {
    width: 100%;
  }

  html[data-nav="tab-bar"] .hero-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 600px) {
  html[data-listing-cards="fluid-grid"] .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 900px and up: the same nav markup moves into the dark header. */
@media (min-width: 900px) {
  html[data-nav="tab-bar"] {
    scroll-padding-bottom: var(--space-8);
  }

  html[data-nav="tab-bar"] body {
    padding-bottom: var(--space-8);
  }

  html[data-nav="tab-bar"] .primary-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: var(--target-gap);
    border: 0;
    padding: 0;
    background: transparent;
  }

  html[data-nav-wide="row"] .primary-nav {
    flex: 1 0 100%;
  }

  html[data-nav="tab-bar"] .nav-tab {
    flex-direction: row;
    padding: 0 var(--space-3);
    color: var(--color-on-header);
    font-size: min(var(--text-md), 20px);
  }

  html[data-nav="tab-bar"] .nav-tab:hover {
    background: transparent;
    text-decoration: underline;
  }

  html[data-nav="tab-bar"] .nav-tab:focus-visible {
    outline-color: var(--color-focus-inverse);
  }

  html[data-nav="tab-bar"] .nav-tab-icon {
    display: none;
  }

  html[data-nav-indicator="underline"] .nav-tab[aria-current="page"] {
    color: var(--color-on-header);
    box-shadow: inset 0 -3px 0 0 var(--color-accent);
  }

  html[data-nav-indicator="fill"] .nav-tab {
    background: var(--color-surface);
    color: var(--color-ink);
  }

  html[data-nav-indicator="fill"] .nav-tab:hover {
    background: var(--color-surface-alt);
  }

  html[data-nav-indicator="fill"] .nav-tab[aria-current="page"] {
    background: var(--color-selected);
    color: var(--color-on-selected);
  }

  html[data-header-create="on"] .header-create:not([hidden]) {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
    border: 2px solid var(--color-on-header);
    border-radius: var(--radius-sm);
    padding: 0 var(--space-4);
    background: var(--color-header);
    color: var(--color-on-header);
    font-weight: 700;
  }

  html[data-listing-cards="fluid-grid"] .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  html[data-listing-cards="fluid-grid"] .listing-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  html[data-nav="tab-bar"] .app-header {
    padding-inline: var(--space-3);
  }

  /* At 320 a long category drops the status chip under it rather than squeezing to three lines (#390). */
  .listing-meta {
    flex-wrap: wrap;
  }
}

/* S5 browse and search (#246): named layout options browseHeader, browseFilters, browseMore and listingArt. */
.browse-page-head {
  display: grid;
  gap: var(--space-2, 8px);
  margin: 0 auto;
  padding: var(--space-6, 24px) var(--space-4, 16px) var(--space-3, 12px);
  max-width: var(--content-max, 1200px);
}

.browse-page-head h1 {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: var(--text-2xl, 28px);
  line-height: 1.15;
}

.browse-page-head h1:focus {
  outline: none;
}

.browse-page-head h1:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

#discoverHeading:focus {
  outline: none;
}

#discoverHeading:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

#createHeading:focus,
#hubHeading:focus,
#accountHeading:focus,
#taxHeading:focus,
#walletHeading:focus {
  outline: none;
}

#createHeading:focus-visible,
#hubHeading:focus-visible,
#accountHeading:focus-visible,
#taxHeading:focus-visible,
#walletHeading:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.browse-intro,
.browse-tagline {
  margin: 0;
  color: var(--color-muted, var(--muted));
}

.browse-intro {
  font-size: var(--text-lg, 18px);
  color: var(--color-ink, var(--ink));
}

.hero-search.is-in-page {
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  max-width: 640px;
  margin-top: var(--space-3, 12px);
}

.hero-search.is-in-page label {
  grid-column: 1 / -1;
  font-weight: 700;
}

.hero-search.is-in-page .discovery-search-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-muted, var(--muted));
}

.hero-search.is-in-page input,
.hero-search.is-in-page button {
  min-height: var(--tap-min, 44px);
  box-shadow: none;
}

.hero-search.is-in-page input {
  border-color: var(--color-border, var(--line));
}

.hero-search.is-in-page button {
  border-color: var(--color-primary, var(--brand));
  background: var(--color-primary, var(--brand));
  color: var(--color-on-primary, #fff);
}

.hero-search.is-in-page button:hover {
  border-color: var(--color-primary-hover, var(--brand-dark));
  background: var(--color-primary-hover, var(--brand-dark));
}

/* browseFilters "fields": the type radios and the category select are labelled form fields. */
.browse-type-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--target-gap, 8px);
  margin: 0;
  border: 0;
  padding: 0;
}

.browse-type-fields legend {
  float: left;
  margin-right: var(--space-2, 8px);
  padding: 0;
  font-weight: 700;
}

.browse-type-fields label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
  min-height: var(--tap-min, 44px);
  padding: 0 var(--space-2, 8px);
  white-space: nowrap;
}

/* Opt the radios out of the full-width text-field input styles. */
.browse-type-fields input[type="radio"] {
  flex: none;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.discovery-category-field {
  display: grid;
  gap: var(--space-1, 4px);
}

html[data-browse-filters="fields"] .discovery-category-field {
  font-weight: 700;
}

html[data-browse-filters="fields"] .filters,
html[data-browse-filters="chips"] .filters {
  justify-content: start;
}

html[data-browse-filters="fields"] .discovery-heading,
html[data-browse-filters="chips"] .discovery-heading {
  flex-direction: column-reverse;
  align-items: stretch;
}

/* browseFilters "chips": a scrolling category rail with step buttons (D1), and removable applied filters. */
.chip-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--target-gap, 8px);
  width: 100%;
  min-width: 0;
}

.chip-rail-track {
  display: flex;
  gap: var(--target-gap, 8px);
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  /* Snapping aligns chips inside the 2px focus-ring padding, so the rail's start reads as scrollLeft 0. */
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  padding: 2px;
}

.chip-rail-track::-webkit-scrollbar {
  display: none;
}

.chip-rail-step {
  display: grid;
  place-items: center;
  width: var(--tap-min, 44px);
  height: var(--tap-min, 44px);
  border: 1px solid var(--color-border, var(--line));
  border-radius: var(--radius-pill, 999px);
  padding: 0;
  background: var(--color-surface, #fff);
  color: var(--color-ink, var(--ink));
  font-size: 22px;
  line-height: 1;
}

.chip-rail-step[aria-disabled="true"] {
  border-color: var(--color-disabled, #e5e5e5);
  background: var(--color-disabled, #e5e5e5);
  color: var(--color-on-disabled, var(--color-muted, var(--muted)));
  cursor: default;
}

.category-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-2, 8px);
  min-height: var(--tap-min, 44px);
  border: 1px solid var(--color-border, var(--line));
  border-radius: var(--radius-pill, 999px);
  padding: 0 var(--space-4, 16px);
  background: var(--color-surface, #fff);
  color: var(--color-ink, var(--ink));
  font-weight: 700;
  white-space: nowrap;
  scroll-snap-align: start;
}

.category-chip.is-selected {
  border-color: var(--color-selected, var(--color-ink, var(--ink)));
  background: var(--color-selected, var(--color-ink, var(--ink)));
  color: var(--color-on-selected, #fff);
}

.chip-art {
  width: var(--art-size-chip, 24px);
  height: var(--art-size-chip, 24px);
  border-radius: calc(var(--cat-tile-radius, 8px) / 2);
}

.applied-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--target-gap, 8px);
  margin: 0 0 var(--space-3, 12px);
}

.applied-filters[hidden] {
  display: none;
}

.applied-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
  min-height: var(--tap-min, 44px);
  border: 1px solid var(--color-border, var(--line));
  border-radius: var(--radius-pill, 999px);
  padding: 0 var(--space-3, 12px);
  background: var(--color-surface-alt, var(--surface-soft));
  color: var(--color-ink, var(--ink));
  font-weight: 700;
}

.applied-filters .link-button {
  min-height: var(--tap-min, 44px);
  border: 0;
  padding: 0 var(--space-2, 8px);
  background: transparent;
  color: var(--color-primary, var(--brand));
  font-weight: 700;
  text-decoration: underline;
}

.browse-notice {
  margin: 0 0 var(--space-3, 12px);
  border-left: 3px solid var(--color-warning, var(--amber));
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  padding: var(--space-2, 8px) var(--space-3, 12px);
  background: var(--color-warning-soft, var(--amber-soft));
  color: var(--color-ink, var(--ink));
}

/* Empty, no-results and error states worded by the site. */
.browse-state {
  display: grid;
  gap: var(--space-2, 8px);
  grid-column: 1 / -1;
  align-content: start;
  justify-items: start;
  border: 1px solid var(--color-line, var(--line));
  border-radius: var(--radius-md, 8px);
  padding: var(--space-6, 24px);
  background: var(--color-surface, #fff);
}

.browse-state.is-error {
  border-color: var(--color-danger, var(--coral));
  background: var(--color-danger-soft, var(--coral-soft));
}

.browse-state-title {
  margin: 0;
  font-size: var(--text-lg, 18px);
  font-weight: 750;
}

.browse-state-body {
  margin: 0;
  color: var(--color-muted, var(--muted));
}

.browse-state.is-error .browse-state-body {
  color: var(--color-ink, var(--ink));
}

.browse-state-tips {
  margin: 0;
  padding-left: 1.2em;
}

.browse-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--target-gap, 8px);
  margin-top: var(--space-2, 8px);
}

.browse-state-actions button {
  min-height: var(--tap-min, 44px);
}

/* browseMore "load-more": the button, then the end-of-list line (C2). */
.browse-more {
  display: grid;
  justify-items: center;
  gap: var(--space-2, 8px);
  margin: var(--space-6, 24px) 0;
}

.browse-more[hidden],
.browse-more [hidden] {
  display: none;
}

.browse-more button {
  min-height: var(--tap-min, 44px);
  min-width: 160px;
}

.browse-end {
  margin: 0;
  color: var(--color-muted, var(--muted));
}

/* Loading: skeleton cards (the grid is aria-busy, the status line says what is loading). */
.listing-card.is-skeleton .listing-card-media {
  background: var(--color-skeleton, #e7ece9);
}

.listing-card.is-skeleton .listing-card-body {
  display: grid;
  gap: var(--space-2, 8px);
  padding: 16px;
}

.skeleton-line {
  display: block;
  width: 60%;
  height: 12px;
  border-radius: var(--radius-pill, 999px);
  background: var(--color-skeleton, #e7ece9);
}

.skeleton-line.is-wide {
  width: 90%;
}

@media (prefers-reduced-motion: no-preference) {
  .listing-card.is-skeleton {
    animation: browse-skeleton 1.2s ease-in-out infinite alternate;
  }
}

@keyframes browse-skeleton {
  from { opacity: 1; }
  to { opacity: 0.55; }
}

/* listingArt "category": the site's category art on a tile instead of a stock photo. */
.listing-card-media.is-art {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2, 8px);
  padding: var(--space-3, 12px);
  background: var(--color-surface-alt, var(--surface-soft));
}

.listing-card-media.is-art .listing-card-art {
  width: var(--art-size-card, 48px);
  height: var(--art-size-card, 48px);
  object-fit: contain;
  transition: none;
}

.listing-card:hover .listing-card-media.is-art img {
  transform: none;
}

.listing-card-media.is-art .type-badge {
  position: static;
}

.listing-card:not(.is-row):has(> .listing-card-media.is-art) {
  grid-template-rows: auto 1fr;
}

.listing-card.is-row .listing-card-media.is-art {
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

/* #357: below the 390px phone a list card (Matchwell) is too narrow beside its art for the owner row to hold even one
   part of a long price cue ("12 hours 45 minutes ·" is about 170px), so the art tile sits above the text as a strip,
   the way grid cards show it, and the owner row gets the card's full width. */
@media (max-width: 389.98px) {
  .listing-card.is-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-card.is-row .listing-card-media.is-art {
    flex-direction: row;
    justify-content: space-between;
  }
}

.listing-title-link {
  color: inherit;
  text-decoration: none;
}

.listing-title-link:hover {
  text-decoration: underline;
}

.listing-title-link:focus-visible {
  outline: 2px solid var(--color-focus, var(--brand));
  outline-offset: 2px;
  border-radius: 2px;
}

/* The owner's rating on a card, when the site words it (S5 C7). */
.listing-rating {
  margin: 0;
  color: var(--color-ink, var(--ink));
  font-size: var(--text-sm, 14px);
  font-weight: 700;
}

/* S5 type scale (review item 3): browse text sits on the site's --text-* tokens, not the legacy 12-13px rules, so
   Matchwell never goes under its 16px floor and Swapyard's metadata reads at 14px. The themes name their text colours
   --color-ink and --color-muted; --color-text and --color-text-muted win if a theme adds them. */
#view-discover label,
#view-discover legend {
  color: var(--color-text, var(--color-ink, var(--ink)));
  font-size: var(--text-md, 16px);
}

#view-discover .field-hint,
#view-discover .section-status,
#view-discover .listing-meta,
#view-discover .listing-owner {
  color: var(--color-text-muted, var(--color-muted, var(--muted)));
  font-size: var(--text-sm, 14px);
}

#view-discover .type-badge {
  font-size: var(--text-xs, 14px);
}

/* The smart-search disclosure on a site's browse page, wherever its layout puts the search (in the page on Matchwell,
   in the header row on Swapyard): site tokens, not the built-in hero's 12px dark pill. */
html[data-browse-header="page-head"] .semantic-search-disclosure {
  border-left-color: var(--color-primary, var(--brand));
  background: var(--color-surface-alt, var(--surface-soft));
  color: var(--color-text, var(--color-ink, var(--ink)));
  /* At least 16px: 17px on Matchwell, 16px on Swapyard (its --text-sm is 14px). */
  font-size: max(var(--text-sm, 14px), 1rem);
}

/* At the larger size a narrow card's category and location share a line only when both fit. */
#view-discover .listing-meta {
  flex-wrap: wrap;
  column-gap: var(--space-2, 8px);
  row-gap: 0;
}

/* S5 targets (review item 4): every browse control is at least the site's --tap-min tall (48 Matchwell, 44 Swapyard). */
#view-discover select,
#view-discover .listing-card-actions button,
#view-discover .segmented button {
  min-height: var(--tap-min, 44px);
}

#view-discover .listing-title-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min, 44px);
}

/* The taller targets must not widen a narrow card past its edge: the body's one column is the card's width. */
#view-discover .listing-card-body {
  grid-template-columns: minmax(0, 1fr);
}

/* The Where (Local/Remote) control: a labelled select beside Category ("fields"), a segment beside the rail ("chips"). */
.browse-where-field[hidden],
.browse-where-segment[hidden] {
  display: none;
}

.browse-where-segment {
  grid-auto-columns: auto;
  width: fit-content;
  max-width: 100%;
}

.browse-where-segment button {
  white-space: normal;
}

.browse-where-hint {
  flex-basis: 100%;
  margin: 0;
  color: var(--color-muted, var(--muted));
  font-size: var(--text-md, 1rem);
}

/* Goods listing fields follow each site's body text and touch target tokens. */
[data-goods-field] label,
[data-goods-field] select,
[data-goods-field] textarea {
  font-size: var(--text-md, 1rem);
}

[data-goods-field] select,
[data-goods-field] textarea {
  min-height: var(--tap-min, 44px);
}

[data-goods-field] .optional,
[data-goods-field] .field-hint {
  font-size: max(var(--text-sm, 0.875rem), 1rem);
}

[data-goods-field] .optional {
  color: var(--ink);
  opacity: 1;
}

.listing-goods-error {
  margin: 0;
  color: var(--color-danger, #a32626);
  font-size: var(--text-md, 1rem);
  font-weight: 600;
}

.listing-goods-error:empty {
  display: none;
}

/* #385: the W-9 screen (Tax info) meets each site's type floor: labels, hints, status lines and the certification
   checkbox use the site's --text-sm (17px Matchwell, 14px Swapyard), never below 14px, and its controls reach the
   site's tap target. */
#view-tax label,
#view-tax .section-status,
#view-tax .section-note,
#view-tax .form-status,
#view-tax .toggle-field {
  font-size: max(var(--text-sm, 14px), 14px);
}

#view-tax input:not([type="checkbox"]),
#view-tax select {
  min-height: var(--tap-min, 44px);
}

#view-tax .toggle-field {
  min-height: var(--tap-min, 44px);
}

#view-tax .toggle-field input {
  flex: none;
  width: 20px;
  min-height: 20px;
}

/* #385: an error line sits right after its field, spans the form grid, and is named by the field's
   aria-describedby. */
.tax-field-error {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  color: var(--color-danger, #9b2c2c);
  font-size: max(var(--text-sm, 14px), 14px);
  font-weight: 600;
}

/* #386: Sign your W-9. The affirmation row (its label is the hit area), the inputs and the sign-in-again link are at
   least 48px tall on both sites; type is never smaller than the form's own. */
.w9-sign {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  border: 1px solid var(--line, #d9dee5);
  border-radius: 8px;
  padding: 14px 16px 16px;
}

.w9-sign-legend {
  padding: 0 4px;
  color: var(--ink);
}

/* #901: the signing labels, affirmation, legend and intro use the site's body size (--text-md: 18px Matchwell, 16px
   Swapyard); #view-tax keeps them ahead of the #385 `#view-tax label` floor. Hints and errors stay at --text-sm. */
#view-tax .w9-sign-label,
#view-tax .w9-sign-check,
#view-tax .w9-sign-legend,
#view-tax .w9-sign-intro {
  font-size: var(--text-md);
}

.w9-sign-intro,
.w9-sign-hint {
  margin: 0;
}

.w9-sign-hint {
  font-size: max(var(--text-sm, 14px), 14px);
}

.w9-sign-hint {
  margin-top: 4px;
  color: var(--muted);
}

/* #385's error line, inside a signing field (no grid gap to pull back into). */
.w9-sign-field .tax-field-error {
  margin-top: 4px;
}

.w9-sign-field {
  display: grid;
}

.w9-sign-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: max(48px, var(--tap-min, 48px));
  border: 1px solid var(--line, #d9dee5);
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.w9-sign-check input {
  flex: none;
  width: 22px;
  min-height: 22px;
  margin: 0;
}

/* #901: keyboard focus rings the whole 48px affirmation row, not just the 22px box inside it. */
.w9-sign-check:has(input:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.w9-sign-check input:focus,
.w9-sign-check input:focus-visible {
  outline: none;
}

.w9-sign-label {
  margin-bottom: 6px;
}

.w9-sign-input {
  min-height: max(48px, var(--tap-min, 48px));
}

.w9-sign-input[aria-invalid="true"],
.w9-sign-check:has(input[aria-invalid="true"]) {
  border-color: #9b2c2c;
}

.w9-sign-entity {
  display: grid;
  gap: 12px;
}

.w9-sign-entity[hidden] {
  display: none;
}

.w9-sign-reauth {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 0 0 12px;
  border: 1px solid #9b2c2c;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.w9-sign-reauth p {
  margin: 0;
}

.w9-sign-reauth-link {
  display: inline-flex;
  align-items: center;
  min-height: max(48px, var(--tap-min, 48px));
  border: 1px solid var(--brand);
  border-radius: 6px;
  padding: 0 15px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.w9-sign-submit {
  min-height: max(48px, var(--tap-min, 48px));
}

/* #314: the member's own 1099-B amounts, only in Tax info and only when the API turns the view on. The disclosure
   comes first; the amounts table repeats its reporting-only line as the caption. */
.tax-dollar-section {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.tax-dollar-section[hidden] {
  display: none;
}

.tax-disclosure {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--color-surface, #fff);
  color: var(--color-text, var(--ink));
  font-size: max(var(--text-md, 16px), 14px);
}

.tax-disclosure h2 {
  margin: 0 0 8px;
  font-size: var(--text-lg, 18px);
}

.tax-disclosure p {
  margin: 0 0 8px;
}

.tax-dollar-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.tax-dollar-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-text, var(--ink));
  font-size: max(var(--text-md, 16px), 14px);
}

.tax-dollar-table caption {
  margin-bottom: 8px;
  text-align: left;
}

.tax-dollar-table th,
.tax-dollar-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}

.tax-dollar-table td:last-child,
.tax-dollar-table tfoot td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* #192 Settings → Blocked members (docs/design/shared/components/blocked-members.md). Ink, surface and the strong
   border only; no red for Unblock. Matchwell (list cards): one card per member with a full-width Unblock below.
   Swapyard (fluid-grid cards): dense rows with the Unblock text button on the right. */
.blocked-member-list {
  display: grid;
  gap: var(--space-3, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.blocked-member {
  display: grid;
  gap: var(--space-3, 12px);
  padding: var(--space-4, 16px);
  border: var(--border-strong, 1px solid var(--line));
  border-radius: var(--radius-md, 8px);
  background: var(--color-surface, var(--surface));
  color: var(--color-ink, var(--ink));
}

.blocked-member-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.blocked-member-name {
  font-size: var(--text-md, 18px);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.blocked-member-date,
.blocked-members-empty {
  margin: 0;
  color: var(--color-muted, var(--muted));
  font-size: var(--text-sm, 14px);
}

.blocked-member-unblock {
  width: 100%;
  min-height: var(--tap-min, 44px);
  border: var(--border-strong, 1px solid var(--line));
  background: var(--color-surface, var(--surface));
  color: var(--color-ink, var(--ink));
}

.blocked-members-notice:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2, 8px);
  margin-top: var(--space-3, 12px);
}

.blocked-members-notice p {
  margin: 0;
}

.blocked-members-notice button {
  min-height: var(--tap-min, 44px);
}

html[data-listing-cards="fluid-grid"] .blocked-member-list {
  gap: 0;
}

html[data-listing-cards="fluid-grid"] .blocked-member {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: var(--space-2, 8px) 0;
  border: 0;
  border-bottom: var(--border-strong, 1px solid var(--line));
  border-radius: 0;
}

html[data-listing-cards="fluid-grid"] .blocked-member-name {
  font-size: var(--text-sm, 14px);
}

html[data-listing-cards="fluid-grid"] .blocked-member-unblock {
  width: auto;
  min-width: var(--tap-min, 44px);
  border: 0;
  background: transparent;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   #333 seller safety confirmation (goods categories). Rendered by app.js from the category list and the site's copy.
   Sizes come from the site tokens (--text-*, --tap-min); the built-in host falls back to today's values.
   --------------------------------------------------------------------------- */
.listing-safety-confirmation:not([hidden]) {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.listing-safety-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap-min, 44px);
  color: var(--ink);
  font-size: var(--text-md, 1rem);
  font-weight: 600;
  cursor: pointer;
}

.listing-safety-row input[type="checkbox"] {
  flex: none;
  width: 24px;
  height: 24px;
  /* The global input min-height would stretch the box (and its invalid outline) into a tall rectangle. */
  block-size: 24px;
  min-height: 0;
  margin: 0;
}

.listing-safety-confirmation.is-invalid .listing-safety-row input[type="checkbox"] {
  outline: 2px solid var(--color-danger, #a32626);
  outline-offset: 2px;
}

.listing-safety-confirmation.is-invalid .listing-safety-row input[type="checkbox"]:focus-visible {
  outline-color: var(--color-focus, var(--color-danger, #a32626));
}

/* The error, the recall link and the notice are body text: the site's --text-md (18px Matchwell, 16px Swapyard). */
.listing-safety-error {
  margin: 0;
  color: var(--color-danger, #a32626);
  font-size: var(--text-md, 1rem);
  font-weight: 600;
}

.listing-safety-error:empty {
  display: none;
}

.listing-safety-recall-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: var(--tap-min, 44px);
  color: var(--color-primary, var(--brand));
  font-size: var(--text-md, 1rem);
  text-decoration: underline;
}

.listing-disallowed-items {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-surface-alt, #f5f7f6);
  color: var(--ink);
  font-size: var(--text-md, 1rem);
  padding: 12px 14px;
}

.listing-disallowed-items p {
  margin: 0 0 8px;
}

.listing-disallowed-items ul {
  margin: 0;
  padding-left: 1.25em;
}

.listing-editor:not([hidden]) {
  border-bottom: 1px solid var(--line);
  padding: 4px 8px 16px;
}

/* Field labels stack above their input; the safety row keeps its own box-beside-text layout. */
.listing-edit-form label:not(.listing-safety-row) {
  display: block;
  font-size: var(--text-md, 1rem);
}

.listing-edit-form .field-error,
.listing-edit-form [data-edit-status] {
  font-size: var(--text-md, 1rem);
}

.listing-edit-form .field-error {
  color: var(--color-danger, #a32626);
}

.listing-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-edit-actions button,
[data-listing-edit] {
  min-height: var(--tap-min, 44px);
}

/* #424: the goods-trade cap notice above Send / Accept / Send counter. The container is always in the page (a live
   region); empty, it takes no space. Info style for "N goods trades left", block style at the cap. Built-in host
   tokens are the fallbacks. */
.goods-cap-notice,
.proposal-contact-cue:not(:empty) {
  margin: 0 0 var(--space-3, 12px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  border-left: 3px solid var(--color-primary, var(--brand));
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  background: var(--color-surface-alt, var(--surface-soft));
  color: var(--color-ink, var(--ink));
  font-size: var(--text-md, 16px);
  line-height: var(--leading-body, 1.5);
  overflow-wrap: anywhere;
}

.goods-cap-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-2, 8px);
}

.goods-cap-notice:empty {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

/* #487: the counter form's status line is a live region that is empty until a send fails. Empty, it was still a grid
   item, so it cost two form gaps and its bottom margin between the credits note and the notice. Taking it out of the
   grid flow (not display:none) keeps the live region in the accessibility tree so a later error is still announced. */
.compact-member-form [data-counter-status]:empty {
  position: absolute;
  margin: 0;
}

.goods-cap-notice.is-blocked {
  border-left-color: var(--color-danger, var(--coral));
  background: var(--color-danger-soft, var(--coral-soft));
}

.goods-cap-icon {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.125em;
  color: var(--color-primary, var(--brand));
}

.goods-cap-notice.is-blocked .goods-cap-icon { color: var(--color-danger, var(--coral)); }

.goods-cap-text,
.goods-cap-action {
  grid-column: 2;
  margin: 0;
  font-size: inherit;
}

.goods-cap-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min, 44px);
  color: var(--color-primary, var(--brand));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}


/* #598: a #listing/{id} link to a listing that is gone, blocked or mistyped. */
.listing-not-found {
  gap: 12px;
  /* Inset past the floating ×, which is --tap-min and sits 12px from the top. */
  margin: calc(12px + var(--tap-min, 44px) + 8px) 24px 24px;
  align-content: center;
}

.listing-not-found-title {
  margin: 0;
  color: var(--ink, inherit);
  font-size: var(--text-lg, 1.25rem);
}

.listing-not-found-title:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.listing-not-found p {
  margin: 0;
  font-size: var(--text-md, 1rem);
}

.listing-not-found-action {
  min-height: var(--tap-min, 44px);
}

.listing-modal button.icon-button {
  width: var(--tap-min, 44px);
  min-width: var(--tap-min, 44px);
  height: var(--tap-min, 44px);
  min-height: var(--tap-min, 44px);
}

#registrationButton {
  min-height: max(48px, var(--tap-min));
}

/* #615: until startup knows whether the member is signed in, show neither the signed-out page nor the signed-out
   header button. app.js removes data-member-loading when the first view is chosen. */
body[data-member-loading] #memberMain [data-view-panel],
body[data-member-loading] #memberButton {
  visibility: hidden;
}

/* #683: a member's reviews, opened from the review count on a listing's owner strip. */
.member-reviews {
  margin-top: 12px;
}

.member-review-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.member-review {
  padding: 10px 12px;
  border: 1px solid var(--line, #d9dee5);
  border-radius: 8px;
}

.member-review-comment {
  margin: 6px 0 0;
  white-space: pre-wrap;
}


.compact-list .empty-state[role="alert"] button { margin-top: 12px; }
/* #854: the Matches home. Its two actions stay above the state region in every state. */
.matches-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--target-gap, 12px);
  margin-bottom: 24px;
}

/* #903: the Matches home's Browse everything, Create listing and Try again, and Swapyard's hub Try again (the matches
   error in #matchesList), are at least 48px tall on both sites (the shared button floor is 40px; Swapyard's --tap-min is
   44px). */
.matches-home-actions button,
.matches-home-state [data-matches-retry],
.matches-error [data-matches-retry] {
  min-height: max(48px, var(--tap-min, 48px));
}

.matches-empty-title {
  margin: 0 0 4px;
  font-weight: 700;
}

/* Swapyard keeps its create and account controls on the first header line. */
html[data-header-create="on"] .header-create:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min, 44px);
  border: 2px solid var(--color-on-header);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  background: var(--color-header);
  color: var(--color-on-header);
  font-weight: 700;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: normal;
  text-overflow: clip;
  overflow: visible;
}
@media (max-width: 899px) {
  html[data-header-create="on"] .app-header { gap: 4px; padding-inline: 8px; }
  html[data-header-create="on"] .header-actions { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; gap: 4px; }
  html[data-header-create="on"] .brand { flex: none; }
  html[data-header-create="on"] .header-create:not([hidden]) { flex: 1 1 auto; min-width: min-content; }
  html[data-header-create="on"] .notification-shell,
  html[data-header-create="on"] #memberButton { flex: none; }
  html[data-header-create="on"] .brand-logo-full { display: none; }
  html[data-header-create="on"] .brand-logo-mark { display: block; }
}
@media (max-width: 420px) {
  html[data-header-create="on"] #view-discover .segmented { display: flex; flex-wrap: wrap; }
  html[data-header-create="on"] #view-discover .segmented button { flex: 1 0 auto; }
  html[data-header-create="on"] #memberButtonLabel { display: none; }
  html[data-header-create="on"] #memberButton {
    justify-content: center;
    width: var(--tap-min, 44px);
    min-width: var(--tap-min, 44px);
    min-height: var(--tap-min, 44px);
    padding: 0;
  }
}

html[data-header-create="on"] #myListingsHeading + button {
  padding: 10px 16px;
  border: 2px solid currentColor;
  border-radius: var(--radius-sm, 6px);
  font-weight: 700;
}
