/* CAPP MeetFlow Explore UX V3.1 | Owner canary | strictly within the V3 app.
   Fixes a legacy .cd-page label/input form rule leaking into the V3 search bar.
   Neither replaces nor reflows Event Discovery legacy/organizer/moderator UI. */
body.cd-page #cd-app #mfex3-app.mfex3 .mfex3-searchrow {
  display:flex !important; flex-direction:row !important; align-items:center !important;
  flex-wrap:nowrap !important; gap:10px !important;
  margin:0 0 15px !important; padding:0 !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 label.mfex3-search {
  flex:1 1 0% !important; min-width:0 !important; width:auto !important;
  height:52px !important; min-height:52px !important; max-height:52px !important;
  display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important;
  align-items:center !important; justify-content:flex-start !important; align-content:center !important;
  grid-template-columns:none !important; grid-template-rows:none !important;
  padding:0 !important; margin:0 !important; gap:0 !important;
  overflow:hidden !important; border-radius:28px !important;
  position:relative !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 label.mfex3-search > span {
  display:flex !important; align-items:center !important; justify-content:center !important;
  flex:0 0 22px !important; width:22px !important; height:22px !important;
  min-width:22px !important; min-height:22px !important;
  position:static !important; transform:none !important; float:none !important;
  padding:0 !important; margin:0 7px 0 15px !important; line-height:1 !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 label.mfex3-search > span > svg {
  display:block !important; width:20px !important; height:20px !important;
  max-width:none !important; max-height:none !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 input#mfex3-search[type="search"] {
  display:block !important; position:static !important; float:none !important;
  flex:1 1 auto !important; min-width:0 !important; max-width:none !important;
  width:100% !important; height:50px !important; min-height:0 !important; max-height:50px !important;
  margin:0 !important; padding:0 14px 0 0 !important;
  border:0 !important; border-radius:0 !important; background:transparent !important;
  box-shadow:none !important; transform:none !important;
  font-size:14px !important; font-weight:500 !important;
  line-height:normal !important; letter-spacing:normal !important; text-indent:0 !important;
  text-align:left !important; vertical-align:middle !important;
  appearance:none !important; -webkit-appearance:none !important;
  color:var(--mx-ink) !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 input#mfex3-search[type="search"]::placeholder {
  opacity:1 !important; color:#869a9d !important;
  font-size:14px !important; font-weight:500 !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 button#mfex3-open {
  flex:0 0 52px !important; width:52px !important; height:52px !important;
  min-width:52px !important; min-height:52px !important;
  margin:0 !important; padding:0 !important;
  display:grid !important; place-items:center !important;
}
/* Header: back + single title + three compact display-mode tabs. */
body.cd-page #cd-app #mfex3-app.mfex3 .mfex3-heading {
  display:flex !important; align-items:center !important;
  gap:10px !important; flex-wrap:wrap !important;
  margin:4px 2px 18px !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 .mfex3-heading > div > span {
  display:none !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 .mfex3-heading > div {
  flex:1 1 auto !important; min-width:0 !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 .mfex3-heading h1 {
  margin:0 !important; font-size:clamp(22px,3.8vw,28px) !important;
  line-height:1.1 !important; font-weight:900 !important; white-space:nowrap !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 .mfex31-tabs {
  display:flex !important; align-items:center !important; gap:3px !important;
  flex:0 0 auto !important; margin:0 !important; padding:4px !important;
  border:1px solid var(--mx-line) !important; border-radius:18px !important;
  background:var(--mx-white) !important;
  box-shadow:0 5px 15px rgba(14,76,75,.05) !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 .mfex31-tab {
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  gap:5px !important; flex:0 0 auto !important;
  min-width:0 !important; width:auto !important; height:34px !important;
  margin:0 !important; padding:0 9px !important;
  border:0 !important; border-radius:13px !important;
  font-size:11.5px !important; font-weight:800 !important;
  letter-spacing:0 !important; line-height:1 !important; white-space:nowrap !important;
  background:transparent !important; color:var(--mx-ink) !important;
  opacity:1 !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 .mfex31-tab svg {
  width:15px !important; height:15px !important; flex:none !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 .mfex31-tab[aria-current="page"] {
  background:#068f83 !important; color:#fff !important;
  box-shadow:0 4px 9px rgba(0,129,115,.18) !important;
}
body.cd-page #cd-app #mfex3-app.mfex3 .mfex31-tab[disabled] {
  opacity:.48 !important; cursor:not-allowed !important;
}
@media(max-width:520px) {
  body.cd-page #cd-app #mfex3-app.mfex3 .mfex3-heading {
    display:grid !important; grid-template-columns:41px minmax(0,1fr) !important;
    gap:8px 10px !important; margin-bottom:15px !important;
  }
  body.cd-page #cd-app #mfex3-app.mfex3 .mfex3-heading > div {
    grid-column:2 !important; grid-row:1 !important;
  }
  body.cd-page #cd-app #mfex3-app.mfex3 .mfex3-heading > .mfex3-back {
    grid-column:1 !important; grid-row:1 !important;
  }
  body.cd-page #cd-app #mfex3-app.mfex3 .mfex31-tabs {
    grid-column:1 / -1 !important; grid-row:2 !important;
    justify-self:end !important;
  }
  body.cd-page #cd-app #mfex3-app.mfex3 .mfex31-tab {height:32px !important; font-size:11px !important;}
}
/* Dark matches the existing V3 dark variable palette. */
body.cd-page.theme-dark #cd-app #mfex3-app.mfex3 .mfex31-tabs,
html.theme-dark body.cd-page #cd-app #mfex3-app.mfex3 .mfex31-tabs {
  background:var(--mx-white) !important; border-color:var(--mx-line) !important;
}
body.cd-page.theme-dark #cd-app #mfex3-app.mfex3 .mfex31-tab[aria-current="page"],
html.theme-dark body.cd-page #cd-app #mfex3-app.mfex3 .mfex31-tab[aria-current="page"] {
  background:#14b7a1 !important; color:#082a2c !important;
}

/* MFEXG6_ACTIVITY_TEMPLATE_OWNER3: Header tabs only; original AppKit untouched. */
body.cd-page.mfex6-appkit #page #cd-app #mfex3-app.mfex3 .mfex3-heading > nav.mfex31-tabs {
  box-sizing:border-box !important;display:flex !important;flex-flow:row nowrap !important;
  align-items:center !important;justify-content:flex-start !important;gap:3px !important;
  flex:0 0 auto !important;width:max-content !important;max-width:100% !important;
  padding:4px !important;margin:0 !important;border-radius:999px !important;
}
body.cd-page.mfex6-appkit #page #cd-app #mfex3-app.mfex3 .mfex3-heading > nav.mfex31-tabs > button.mfex31-tab {
  box-sizing:border-box !important;display:inline-flex !important;flex-direction:row !important;
  flex-wrap:nowrap !important;align-items:center !important;justify-content:center !important;
  flex:0 0 auto !important;gap:5px !important;width:auto !important;min-width:0 !important;
  height:36px !important;min-height:36px !important;max-height:36px !important;
  margin:0 !important;padding:0 10px !important;border-radius:999px !important;
  font:800 12px/1.1 Inter,system-ui,sans-serif !important;letter-spacing:0 !important;
  white-space:nowrap !important;position:static !important;transform:none !important;
}
body.cd-page.mfex6-appkit #page #cd-app #mfex3-app.mfex3 .mfex3-heading > nav.mfex31-tabs > button.mfex31-tab > svg {
  box-sizing:content-box !important;display:block !important;flex:0 0 16px !important;
  width:16px !important;height:16px !important;min-width:16px !important;
  min-height:16px !important;max-width:16px !important;max-height:16px !important;
  margin:0 !important;padding:0 !important;position:static !important;transform:none !important;
}
body.cd-page.mfex6-appkit #page #cd-app #mfex3-app.mfex3 .mfex3-heading > nav.mfex31-tabs > button.mfex31-tab > span {
  display:inline-block !important;white-space:nowrap !important;font:800 12px/1.1 Inter,system-ui,sans-serif !important;
  width:auto !important;max-width:none !important;position:static !important;transform:none !important;
}
