/*
 * FootBros Core bridge 9.3.2
 * Loaded after FootBros/FootBros Core. It normalises every plugin surface to the
 * Clubhouse design system without modifying legacy post types or shortcodes.
 */

/* Shared page surfaces and type */
.fm-content-shell {
  padding-block: clamp(34px, 5vw, 72px);
}
.fm-content-shell > :first-child { margin-top: 0; }
.fm-content-shell > :last-child { margin-bottom: 0; }
.fm-auth-gate,
.fm-dashboard,
.fm-submit-market,
.fm-community-page,
.fm-donate-layout,
.fm-chat-room,
.fm-hub-overview {
  color: var(--fb-text);
}
.fm-auth-gate {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--fb-line-soft);
  border-radius: var(--fb-radius);
  background: var(--fb-card);
  box-shadow: var(--fb-shadow-soft);
  text-align: center;
}
.fm-auth-gate h1,
.fm-auth-gate h2 { margin: 0 0 10px; letter-spacing: -.045em; }
.fm-auth-gate p { color: var(--fb-muted); }

/* Marketplace landing and filters */
.fm-market-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #cad6ea;
  border-radius: var(--fb-radius);
  background:
    radial-gradient(circle at 88% 18%, rgba(32,216,230,.16), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(58,99,255,.14), transparent 34%),
    linear-gradient(135deg, #fff, #edf3ff);
  color: var(--fb-text);
  box-shadow: var(--fb-shadow-soft);
}
.fm-market-hero > div { max-width: 860px; }
.fm-market-hero h2 {
  margin: .12em 0 .22em;
  font-family: inherit;
  font-size: clamp(2.35rem, 5.5vw, 4.9rem);
  line-height: .95;
  letter-spacing: -.065em;
  text-transform: none;
  color: var(--fb-text);
}
.fm-market-hero p { margin: 0; color: var(--fb-muted); font-size: 1.04rem; }
.fm-market-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 16px;
  background: #fff;
  scrollbar-width: thin;
}
.fm-market-tabs a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 11px;
  color: #42516a;
  font-weight: 800;
}
.fm-market-tabs a:hover,
.fm-market-tabs a.is-active {
  background: #e9efff;
  color: var(--fb-blue);
}
.fm-market-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}
.fm-market-toolbar .fm-market-search,
.fm-content-shell > .fm-market-search {
  display: grid;
  grid-template-columns: minmax(150px,.65fr) minmax(240px,1.4fr) minmax(170px,.85fr) minmax(160px,.75fr) auto;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 18px;
  background: var(--fb-bg);
  box-shadow: var(--fb-shadow-soft);
}
.fb-search-dock .fm-market-search,
.fb-search-dock .fm-search {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.fm-market-toolbar .fm-market-search input,
.fm-market-toolbar .fm-market-search select,
.fm-content-shell > .fm-market-search input,
.fm-content-shell > .fm-market-search select {
  min-width: 0;
  color: #fff;
}
.fm-market-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.fm-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 999px;
  background: #fff;
  color: #42516a;
  font-size: .82rem;
  font-weight: 800;
}
.fm-filter-chip:hover,
.fm-filter-chip.is-active { border-color: var(--fb-blue); background: var(--fb-blue); color: #fff; }
.fm-empty {
  grid-column: 1 / -1;
  padding: clamp(36px, 7vw, 70px);
  border: 1px dashed #b8c5d8;
  border-radius: 20px;
  background: rgba(255,255,255,.65);
  color: var(--fb-text);
  text-align: center;
}
.fm-empty h2 { margin-top: 0; }
.fm-empty p { color: var(--fb-muted); }

/* Cards and status details */
.fm-listing-card,
.fm-market-card,
.fm-festival-card,
.fm-service-card,
.fm-community-card {
  color: var(--fb-text);
  background: #fff;
  border-color: var(--fb-line-soft);
  box-shadow: var(--fb-shadow-soft);
}
.fm-listing-card:hover,
.fm-market-card:hover,
.fm-festival-card:hover,
.fm-community-card:hover {
  transform: translateY(-3px);
  border-color: #b8c9ff;
}
.fm-listing-card h2,
.fm-festival-card h2,
.fm-service-card h2,
.fm-community-card h2 { color: var(--fb-text); font-family: inherit; text-transform: none; }
.fm-listing-meta,
.fm-service-card p,
.fm-community-card p,
.fm-community-card small,
.fm-festival-card p { color: var(--fb-muted); }
.fm-listing-card strong { color: var(--fb-blue); }
.fm-listing-card__body > div > a,
.fm-festival-card strong,
.fm-text-link { color: var(--fb-blue); }
.fm-market-card .fm-market-kind {
  left: 12px;
  right: auto;
  color: #fff;
  background: rgba(7,17,31,.82);
  border: 1px solid rgba(255,255,255,.16);
}
.fm-market-card .fm-status { left: auto; right: 12px; }
.fm-status--available,
.fm-status--open { background: rgba(197,239,39,.92); color: #152000; }
.fm-status--reserved { background: #fff0b5; color: #6d5200; }
.fm-status--sold,
.fm-status--closed,
.fm-status--booked { background: #ffd7df; color: #8b2640; }
.fm-status--paused,
.fm-status--busy { background: #e8edf5; color: #536176; }
.fm-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 28px; }
.fm-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 11px;
  background: #fff;
  color: var(--fb-text);
}
.fm-pagination .current { border-color: var(--fb-blue); background: var(--fb-blue); color: #fff; }

/* Forms, submission and contact panels */
.fm-submit-market > header { max-width: 850px; margin-bottom: 26px; }
.fm-submit-market > header h2 {
  margin: .1em 0 .2em;
  font-family: inherit;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: .96;
  letter-spacing: -.06em;
  text-transform: none;
}
.fm-submit-market > header p { color: var(--fb-muted); }
.fm-form,
.fm-market-form,
.fm-contact-form { display: grid; gap: 17px; }
.fm-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.fm-form label,
.fm-market-form label,
.fm-contact-form label { display: grid; gap: 7px; color: #26364f; font-size: .84rem; font-weight: 800; }
.fm-form label small,
.fm-form-help { color: var(--fb-muted); font-weight: 500; }
.fm-form input:not([type="checkbox"]):not([type="radio"]),
.fm-form select,
.fm-form textarea,
.fm-market-form input:not([type="checkbox"]):not([type="radio"]),
.fm-market-form select,
.fm-market-form textarea,
.fm-contact-form input,
.fm-contact-form select,
.fm-contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e4;
  border-radius: 13px;
  background: #fff;
  color: var(--fb-text);
  padding: 11px 13px;
  outline: 0;
  box-shadow: inset 0 1px 2px rgba(7,17,31,.035);
}
.fm-form textarea,
.fm-market-form textarea,
.fm-contact-form textarea { min-height: 120px; resize: vertical; }
.fm-form input:focus,
.fm-form select:focus,
.fm-form textarea:focus,
.fm-market-form input:focus,
.fm-market-form select:focus,
.fm-market-form textarea:focus,
.fm-contact-form input:focus,
.fm-contact-form select:focus,
.fm-contact-form textarea:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 4px rgba(58,99,255,.12);
}
.fm-type-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.fm-type-picker label { display: block; }
.fm-type-picker input { position: absolute; opacity: 0; pointer-events: none; }
.fm-type-picker span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 17px;
  background: #fff;
  color: var(--fb-text);
  cursor: pointer;
  box-shadow: var(--fb-shadow-soft);
}
.fm-type-picker i { font-style: normal; font-size: 2rem; }
.fm-type-picker input:checked + span {
  border-color: var(--fb-blue);
  background: #edf2ff;
  box-shadow: 0 0 0 3px rgba(58,99,255,.1);
}
.fm-market-fields {
  display: grid;
  gap: 16px;
  padding: clamp(18px,3vw,26px);
  border: 1px solid var(--fb-line-soft);
  border-radius: 20px;
  background: #fff;
  color: var(--fb-text);
  box-shadow: var(--fb-shadow-soft);
}
.fm-market-fields h3 { margin: 0; color: var(--fb-blue); }
.fm-market-fields[hidden] { display: none !important; }
.fm-safety-check {
  grid-template-columns: auto 1fr !important;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid #d7e3a0;
  border-radius: 14px;
  background: #f7fbdc;
}
.fm-safety-check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; }
.fm-contact-form {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--fb-shadow-soft);
}

/* Dashboard and owner tables */
.fm-dashboard { display: grid; gap: 22px; }
.fm-dashboard-welcome {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 22px;
  background: linear-gradient(135deg,#fff,#edf3ff);
  box-shadow: var(--fb-shadow-soft);
}
.fm-dashboard-welcome img { border-radius: 50%; }
.fm-dashboard-welcome h2 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }
.fm-dashboard-welcome small { color: var(--fb-muted); }
.fm-dashboard-welcome .fm-button { margin-left: auto; }
.fm-dashboard-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.fm-dashboard-list,
.fm-dashboard-market {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--fb-shadow-soft);
}
.fm-dashboard-list h2,
.fm-dashboard-market h2 { margin-top: 0; }
.fm-owner-list { display: grid; gap: 12px; }
.fm-owner-list > article {
  display: grid;
  grid-template-columns: 86px minmax(0,1fr) auto auto;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 15px;
  background: #f8faff;
  color: var(--fb-text);
}
.fm-owner-list img { width: 86px; height: 70px; object-fit: cover; border-radius: 11px; }
.fm-owner-list h3 { margin: .2em 0; font-size: 1rem; }
.fm-owner-list p,
.fm-owner-list small { margin: 0; color: var(--fb-muted); font-size: .77rem; }
.fm-owner-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fm-owner-actions a { color: var(--fb-blue); font-size: .8rem; font-weight: 900; }
.fm-owner-status { display: flex; gap: 6px; }
.fm-owner-status select,
.fm-owner-status button,
.fm-owner-delete button {
  min-height: 38px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 9px;
  background: #fff;
  color: var(--fb-text);
  padding: 0 9px;
  box-shadow: none;
}
.fm-owner-status button { border-color: var(--fb-blue); background: var(--fb-blue); color: #fff; }
.fm-owner-delete button { color: #ad3455; }

/* Community directory and room chat */
.fm-community-hero { max-width: 900px; margin-bottom: 30px; }
.fm-community-hero h2,
.fm-donate-copy > h2 {
  margin: .1em 0 .2em;
  font-family: inherit;
  font-size: clamp(2.35rem,5.5vw,4.8rem);
  line-height: .95;
  letter-spacing: -.06em;
  text-transform: none;
  color: var(--fb-text);
}
.fm-community-hero p,
.fm-donate-copy > p { color: var(--fb-muted); font-size: 1.04rem; }
.fm-community-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.fm-community-card { padding: 23px; border-radius: 20px; }
.fm-community-card > span { font-size: 2rem; }
.fm-community-card h2 { margin: .35em 0; }
.fm-community-card small { display: block; margin-bottom: 14px; }
.fm-voice-explainer {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #c9d6ff;
  border-radius: 20px;
  background: linear-gradient(135deg,#edf2ff,#f5feff);
  color: var(--fb-text);
}
.fm-voice-explainer p { color: var(--fb-muted); }
.fm-chat-room {
  overflow: hidden;
  border: 1px solid #263b5d;
  border-radius: 24px;
  background: var(--fb-bg);
  color: #fff;
  box-shadow: var(--fb-shadow);
}
.fm-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(135deg,#101f38,#07111f);
}
.fm-chat-header a { color: var(--fb-cyan); font-weight: 800; }
.fm-chat-header h2 { margin: .25em 0 .1em; color: #fff; font-size: 1.8rem; }
.fm-chat-header p { margin: 0; color: rgba(255,255,255,.68); }
.fm-chat-live { display: inline-flex; align-items: center; gap: 8px; color: var(--fb-lime); font-size: .78rem; font-weight: 900; }
.fm-chat-live i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.fm-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 20px;
  background: #07111f;
}
.fm-chat-message { display: flex; gap: 10px; align-items: flex-start; max-width: min(78%,720px); }
.fm-chat-message.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.fm-chat-message > img { width: 38px; height: 38px; border-radius: 50%; }
.fm-chat-message > div {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 5px 16px 16px 16px;
  background: #13223a;
}
.fm-chat-message.is-mine > div { border-radius: 16px 5px 16px 16px; background: #2749c7; }
.fm-chat-message header { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.fm-chat-message time { color: rgba(255,255,255,.55); font-size: .68rem; }
.fm-chat-message p { margin: .35em 0 0; overflow-wrap: anywhere; }
.fm-chat-message audio { display: block; max-width: 100%; margin-top: 7px; }
.fm-chat-empty { margin: auto; color: rgba(255,255,255,.6); text-align: center; }
.fm-chat-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  padding: 17px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: #0c182b;
}
.fm-chat-form textarea {
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: #111f35;
  color: #fff;
  padding: 12px;
  resize: vertical;
}
.fm-chat-form > div { display: flex; gap: 8px; align-items: center; }
.fm-voice-button {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  background: #15243b;
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}
.fm-chat-feedback { grid-column: 1/-1; margin: 0; color: rgba(255,255,255,.63); font-size: .75rem; }
.fm-chat-signin { padding: 20px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }

/* Donation, festival hub and informational components */
.fm-donate-layout {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(320px,.7fr);
  gap: 28px;
}
.fm-drop-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.fm-drop-grid article {
  padding: 20px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--fb-shadow-soft);
}
.fm-drop-grid h3 { margin-top: 0; }
.fm-drop-grid p,
.fm-truck-charity-layout .fm-drop-grid article div { color: var(--fb-muted); }
.fm-donation-form-wrap {
  align-self: start;
  position: sticky;
  top: 112px;
  padding: 24px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 20px;
  background: #fff;
  color: var(--fb-text);
  box-shadow: var(--fb-shadow-soft);
}
.fm-hub-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  position: sticky;
  top: 88px;
  z-index: 8;
  margin: 0 0 24px;
  padding: 9px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--fb-shadow-soft);
}
.fm-hub-tabs a { flex: 0 0 auto; padding: 9px 13px; border-radius: 10px; color: #42516a; font-weight: 800; }
.fm-hub-tabs a:hover { background: #edf2ff; color: var(--fb-blue); }
.fm-hub-overview > section,
#fm-hub-market,
#fm-hub-stays,
#fm-hub-services,
#fm-hub-donate,
#festmate-community {
  scroll-margin-top: 160px;
}
.fm-hub-fact-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 22px 0; }
.fm-hub-fact-grid article {
  display: grid;
  gap: 6px;
  padding: 19px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 18px;
  background: #fff;
  color: var(--fb-text);
  box-shadow: var(--fb-shadow-soft);
}
.fm-hub-fact-grid article > span { font-size: 1.8rem; }
.fm-hub-fact-grid small { color: var(--fb-muted); }
.fm-lineup-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.fm-lineup-cloud span {
  padding: 8px 12px;
  border: 1px solid #cad6ff;
  border-radius: 999px;
  background: #edf2ff;
  color: #30497a;
  font-size: .82rem;
  font-weight: 900;
}
.fm-lineup-cloud span:nth-child(-n+4) { border-color: #dce99c; background: #f4fbd6; color: #5b7100; }
.fm-lineup-details {
  padding: 16px 18px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 15px;
  background: #fff;
}
.fm-lineup-details summary { color: var(--fb-blue); cursor: pointer; font-weight: 900; }
.fm-lineup-details p { color: var(--fb-muted); }
.fm-source-note {
  padding: 15px 17px;
  border-left: 4px solid var(--fb-lime);
  border-radius: 0 11px 11px 0;
  background: #f7fbdc;
  color: #526100;
}
.fm-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.fm-steps article {
  padding: 22px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--fb-shadow-soft);
}
.fm-steps article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--fb-blue);
  color: #fff;
  font-weight: 900;
}
.fm-steps h2 { margin: 0 0 8px; font-size: 1.25rem; }
.fm-steps p { color: var(--fb-muted); }
.fm-info-grid,
.fm-truck-stats,
.fm-official-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.fm-info-grid > *,
.fm-truck-stats > *,
.fm-official-links > * {
  padding: 18px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--fb-shadow-soft);
}

/* Single listing details */
.fm-market-single--gear,
.fm-market-single--stay,
.fm-market-single--service { color: var(--fb-text); }
.fm-entry-content--wide { max-width: none; }
.fm-festival-hero--truck { min-height: 420px; display: flex; align-items: end; }
.fm-market-safety {
  margin: 22px 0;
  padding: 18px 20px;
  border: 0;
  border-left: 4px solid var(--fb-lime);
  border-radius: 0 14px 14px 0;
  background: #f7fbdc;
  color: var(--fb-text);
  box-shadow: none;
}
.fm-market-safety p { margin: .35em 0 0; color: #536100; }
.fm-market-info {
  margin: 20px 0;
  padding: 19px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 17px;
  background: #fff;
  color: var(--fb-text);
  box-shadow: var(--fb-shadow-soft);
}
.fm-market-info h2 { margin-top: 0; font-size: 1.15rem; }
.fm-market-info p { margin-bottom: 0; color: var(--fb-muted); }

@media (max-width: 1150px) {
  .fm-dashboard-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fm-community-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fm-market-toolbar .fm-market-search,
  .fm-content-shell > .fm-market-search { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fm-market-toolbar .fm-market-search input,
  .fm-content-shell > .fm-market-search input { grid-column: 1/-1; }
  .fm-hub-fact-grid,
  .fm-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .fm-market-hero { align-items: flex-start; flex-direction: column; }
  .fm-market-hero .fm-button { width: 100%; }
  .fm-type-picker { grid-template-columns: 1fr; }
  .fm-donate-layout { grid-template-columns: 1fr; }
  .fm-donation-form-wrap { position: static; }
  .fm-owner-list > article { grid-template-columns: 70px minmax(0,1fr); }
  .fm-owner-list img { width: 70px; height: 64px; }
  .fm-owner-status,
  .fm-owner-delete { grid-column: 1/-1; }
  .fm-owner-status select { flex: 1; }
  .fm-info-grid,
  .fm-truck-stats,
  .fm-official-links { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fm-form-grid,
  .fm-dashboard-columns,
  .fm-community-grid,
  .fm-drop-grid,
  .fm-hub-fact-grid,
  .fm-steps { grid-template-columns: 1fr; }
  .fm-market-toolbar .fm-market-search,
  .fm-content-shell > .fm-market-search { grid-template-columns: 1fr; }
  .fm-market-toolbar .fm-market-search input,
  .fm-content-shell > .fm-market-search input { grid-column: auto; }
  .fm-dashboard-welcome { align-items: flex-start; flex-wrap: wrap; }
  .fm-dashboard-welcome .fm-button { width: 100%; margin-left: 0; }
  .fm-owner-list > article { grid-template-columns: 1fr; }
  .fm-owner-list img { width: 100%; height: 170px; }
  .fm-owner-status { display: grid; grid-template-columns: 1fr auto; }
  .fm-chat-header { display: block; }
  .fm-chat-live { margin-top: 12px; }
  .fm-chat-message { max-width: 92%; }
  .fm-chat-form { grid-template-columns: 1fr; }
  .fm-chat-form > div { justify-content: space-between; }
  .fm-hub-tabs { top: 82px; }
}

/* Named structural wrappers retained for template coverage. */
.fb-home-main,
.fb-footer-inner,
.fb-footer-nav,
.fm-market-dashboard,
.fm-truck-info { min-width: 0; }

/* Reset context-sensitive badges that the legacy sheet positioned globally. */
.fm-status,
.fm-badge {
  position: static;
  inset: auto;
}
.fm-listing-card__image .fm-status,
.fm-market-card .fm-status,
.fm-market-single__media > .fm-status {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
}
.fm-market-single__media > .fm-status { top: 14px; left: 14px; right: auto; }
.fm-badge {
  display: inline-flex;
  width: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf2ff;
  color: var(--fb-blue);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fm-festival-card > a { padding: 0; }
.fm-festival-card > a > div { padding: 20px; }
.fm-text-link { display: inline-block; margin-top: 10px; font-weight: 800; }
.fm-trending-card,
.fm-room-panel {
  height: 100%;
  padding: 18px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 18px;
  background: #fff;
  color: var(--fb-text);
  box-shadow: var(--fb-shadow-soft);
}
.fm-trending-card header,
.fm-room-panel header { border-bottom-color: var(--fb-line-soft); }
.fm-trending-card h2,
.fm-room-panel h2 { color: var(--fb-blue); }
.fm-mini-listing,
.fm-room-list > a { border-bottom-color: var(--fb-line-soft); }
.fm-mini-listing small,
.fm-room-list small { color: var(--fb-muted); }
.fm-mini-listing em { color: var(--fb-blue); }
.fm-room-list em { background: var(--fb-blue); color: #fff; }
.fm-featured-card {
  min-height: 260px;
  border-radius: 22px;
  box-shadow: var(--fb-shadow);
}
.fm-featured-card h2 {
  font-family: inherit;
  font-size: clamp(2rem,4vw,3.4rem);
  letter-spacing: -.05em;
  text-transform: none;
}
.fb-band-panel .fm-room-panel {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.03);
  color: #fff;
  box-shadow: none;
}
.fb-band-panel .fm-room-panel header,
.fb-band-panel .fm-room-list > a { border-bottom-color: rgba(255,255,255,.08); }
.fb-band-panel .fm-room-list small { color: rgba(255,255,255,.6); }

/* Final page-level fixes found during component rendering. */
.fm-market-facts {
  display: grid;
  grid-template-columns: minmax(120px,.7fr) minmax(0,1.3fr);
  gap: 9px 18px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--fb-line-soft);
  border-radius: 17px;
  background: #fff;
  color: var(--fb-text);
  box-shadow: var(--fb-shadow-soft);
}
.fm-market-facts dt { color: var(--fb-muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.fm-market-facts dd { margin: 0; color: var(--fb-text); font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.fm-market-search > *,
.fm-search > * { min-width: 0; }
.fm-market-search button,
.fm-search button { width: 100%; min-width: 0; }
.fm-market-toolbar .fm-market-search input,
.fm-market-toolbar .fm-market-search select,
.fm-content-shell > .fm-market-search input,
.fm-content-shell > .fm-market-search select {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
.fm-form > .fm-button,
.fm-market-fields > .fm-button,
.fm-contact-form > .fm-button {
  width: auto;
  min-width: 180px;
  justify-self: start;
}
@media (max-width: 720px) {
  .fm-market-facts { grid-template-columns: 1fr; }
  .fm-market-facts dd { text-align: left; }
  .fm-form > .fm-button,
  .fm-market-fields > .fm-button,
  .fm-contact-form > .fm-button { width: 100%; justify-self: stretch; }
}
.fm-form > .fm-button,
.fm-market-fields > .fm-button,
.fm-contact-form > .fm-button {
  width: 220px;
  max-width: 100%;
}
@media (max-width: 720px) {
  .fm-form > .fm-button,
  .fm-market-fields > .fm-button,
  .fm-contact-form > .fm-button { width: 100%; }
}
