/*
 * TFM Intelligence v10.9 — Mobile-first responsive system
 * Scoped to <=782px at enqueue time. Desktop bundles remain unchanged.
 */
:root{
  --tfmi-m-gutter:20px;
  --tfmi-m-hit:48px;
  --tfmi-m-radius:12px;
  --tfmi-m-line:#e4e4df;
  --tfmi-m-ink:#111317;
  --tfmi-m-muted:#64686f;
  --tfmi-m-red:#b4112f;
  --tfmi-m-soft:#f7f7f5;
}

/* ---------- Universal mobile contract ---------- */
.tfmi8-shell,.tfmi8-page,.tfmi9-page,.tfmi10-page,.tfmi11-manage-page,.tfmi102-page,
.tfmi-market-page,.tfmi-member-page,.tfmi-onboarding-page,.tfmi-account-auth,.tfmi-auth-shell{
  width:100%!important;max-width:100%!important;min-width:0!important;
}
.tfmi8-shell *,.tfmi8-page *,.tfmi9-page *,.tfmi10-page *,.tfmi11-manage-page *,.tfmi102-page *,
.tfmi-market-page *,.tfmi-member-page *,.tfmi-onboarding-page *,.tfmi-account-auth *,.tfmi-auth-shell *{
  box-sizing:border-box;min-width:0;
}
.tfmi8-shell,.tfmi8-page>.tfmi8-container,.tfmi9-container,.tfmi10-container,.tfmi11-manage-page>.tfmi9-container,
.tfmi-market-container,.tfmi102-wrap,.tfmi-member-shell,.tfmi-auth-shell{
  width:calc(100% - (var(--tfmi-m-gutter) * 2))!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;
}
.tfmi8-shell img,.tfmi8-page img,.tfmi9-page img,.tfmi10-page img,.tfmi11-manage-page img,.tfmi102-page img,
.tfmi-market-page img,.tfmi-member-page img{max-width:100%!important;height:auto}
.tfmi8-shell iframe,.tfmi8-page iframe,.tfmi9-page iframe,.tfmi102-page iframe,.tfmi-market-page iframe,.tfmi-member-page iframe{max-width:100%!important}
.tfmi8-shell p,.tfmi8-page p,.tfmi9-page p,.tfmi10-page p,.tfmi11-manage-page p,.tfmi102-page p,.tfmi-market-page p,.tfmi-member-page p,
.tfmi8-shell h1,.tfmi8-shell h2,.tfmi8-shell h3,.tfmi9-page h1,.tfmi9-page h2,.tfmi9-page h3,.tfmi102-page h1,.tfmi102-page h2,.tfmi102-page h3,
.tfmi-market-page h1,.tfmi-market-page h2,.tfmi-market-page h3{overflow-wrap:anywhere}

/* Prevent iOS zoom and make every public form genuinely phone-safe. */
.tfmi8-shell input,.tfmi8-shell select,.tfmi8-shell textarea,.tfmi8-page input,.tfmi8-page select,.tfmi8-page textarea,
.tfmi9-page input,.tfmi9-page select,.tfmi9-page textarea,.tfmi10-page input,.tfmi10-page select,.tfmi10-page textarea,
.tfmi11-manage-page input,.tfmi11-manage-page select,.tfmi11-manage-page textarea,.tfmi102-page input,.tfmi102-page select,.tfmi102-page textarea,
.tfmi-market-page input,.tfmi-market-page select,.tfmi-market-page textarea,.tfmi-member-page input,.tfmi-member-page select,.tfmi-member-page textarea,
.tfmi-onboarding-page input,.tfmi-onboarding-page select,.tfmi-onboarding-page textarea{
  width:100%;max-width:100%!important;min-width:0!important;font-size:16px!important;
}
.tfmi8-button,.tfmi8-btn,.tfmi-btn,.tfmi9-btn,.tfmi10-btn,.tfmi102-btn,.tfmi-market-btn,.tfmi-member-btn,
.tfmi-text-button,.tfmi-market-textlink,.tfmi-export-link{
  min-height:var(--tfmi-m-hit);max-width:100%;touch-action:manipulation;
}
button,a,summary,label{ -webkit-tap-highlight-color:rgba(180,17,47,.08); }

/* The Founders Magazine owns the global masthead on mobile. Avoid appbar-on-header duplication. */
body.tfm-theme .tfmi8-appbar,body.tfm-theme .tfmi9-appbar,body.tfm-theme .tfmi-market-nav{display:none!important}

/* ---------- Standalone plugin navigation (for other themes) ---------- */
.tfmi8-appbar,.tfmi9-appbar{width:calc(100% - (var(--tfmi-m-gutter) * 2))!important;margin:8px auto 20px!important;border-radius:10px!important}
.tfmi8-back{display:none!important}
.tfmi8-navrow,.tfmi9-appbar-inner{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;min-height:auto!important;padding:12px 0!important}
.tfmi8-brand,.tfmi9-brand{width:auto!important;min-height:44px;display:flex!important;align-items:center!important;font-size:16px!important;white-space:nowrap}
.tfmi8-nav,.tfmi9-nav{grid-column:1/-1!important;order:3!important;width:100%!important;display:flex!important;gap:2px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:7px 0 0!important;border-top:1px solid var(--tfmi-m-line)!important;scrollbar-width:none;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.tfmi8-nav::-webkit-scrollbar,.tfmi9-nav::-webkit-scrollbar{display:none}
.tfmi8-nav a,.tfmi9-nav a{flex:0 0 auto;min-height:44px!important;display:inline-flex!important;align-items:center!important;padding:0 12px!important;white-space:nowrap!important;font-size:14px!important;scroll-snap-align:start}
.tfmi8-nav-actions,.tfmi9-actions{position:static!important;display:flex!important;align-items:center!important;justify-self:end!important;gap:2px!important}
.tfmi8-nav-actions a,.tfmi9-actions a{min-height:44px!important;display:inline-flex!important;align-items:center!important;padding:0 10px!important;font-size:13px!important}
.tfmi8-nav-search,.tfmi9-search-link{display:none!important}

/* ---------- Intelligence home ---------- */
.tfmi8-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important;padding:24px 0 34px!important;align-items:start!important}
.tfmi8-hero h1{max-width:100%!important;font-size:clamp(38px,11vw,44px)!important;line-height:.99!important;letter-spacing:-.05em!important;text-wrap:balance}
.tfmi8-kicker,.tfmi8-mini-label{font-size:10.5px!important;letter-spacing:.12em!important;margin-bottom:10px!important}
.tfmi8-lede{max-width:100%!important;margin-top:18px!important;font-size:18px!important;line-height:1.52!important}
.tfmi8-hero-aside{padding:20px!important;border-radius:10px!important;box-shadow:none!important;background:#fafaf8!important}
.tfmi8-hero-aside h2{font-size:24px!important;line-height:1.08!important}
.tfmi8-hero-aside p{font-size:15px!important;line-height:1.55!important}

/* Search: integrated 52px action, never a cropped desktop button. */
.tfmi8-searchbox{width:100%!important;max-width:100%!important;margin-top:24px!important}
.tfmi8-searchfield{display:grid!important;grid-template-columns:38px minmax(0,1fr) 52px!important;width:100%!important;max-width:100%!important;height:58px!important;border-radius:10px!important;box-shadow:none!important;overflow:hidden!important}
.tfmi8-searchfield>span{width:38px!important;display:grid!important;place-items:center!important;padding:0!important;font-size:20px!important}
.tfmi8-searchfield input{width:100%!important;min-width:0!important;padding:0 8px!important;font-size:16px!important}
.tfmi8-searchfield input::placeholder{font-size:15px!important}
.tfmi8-searchfield button{width:52px!important;min-width:52px!important;max-width:52px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:0!important;font-size:18px!important}
.tfmi8-searchfield button .tfmi-mobile-action-label{display:none!important}
.tfmi8-searchfield button .tfmi-mobile-action-icon{display:inline-grid!important;place-items:center!important}
.tfmi8-suggest{top:64px!important;max-height:min(56vh,420px)!important;border-radius:10px!important}
.tfmi8-suggest a{min-height:52px!important;padding:10px 12px!important}

/* Quick jobs become tappable cards instead of squeezed inline rows. */
.tfmi8-quick-actions{display:grid!important;grid-template-columns:1fr!important;gap:0!important;margin-top:18px!important;border-top:1px solid var(--tfmi-m-line)!important}
.tfmi8-quick-actions>a{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px 12px!important;align-items:center!important;min-height:64px!important;padding:12px 0!important;border-bottom:1px solid var(--tfmi-m-line)!important;font-size:14px!important}
.tfmi8-quick-actions>a::after{content:'→';grid-column:2;grid-row:1/3;color:var(--tfmi-m-red);font-weight:800}
.tfmi8-quick-actions strong{font-size:14px!important}
.tfmi8-quick-actions span{grid-column:1;font-size:13px!important;line-height:1.35!important}

/* ---------- Directories / Companies / Founders ---------- */
.tfmi9-directory-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important;padding:28px 0 36px!important}
.tfmi9-directory-hero h1{max-width:100%!important;font-size:clamp(37px,10.7vw,43px)!important;line-height:1!important;letter-spacing:-.045em!important;text-wrap:balance}
.tfmi9-directory-hero>div>p{max-width:100%!important;margin-top:16px!important;font-size:17px!important;line-height:1.55!important}
.tfmi9-directory-hero aside{padding:19px!important;border-radius:10px!important}
.tfmi9-directory-hero aside>strong{font-size:15px!important}
.tfmi9-searchbar{display:grid!important;grid-template-columns:minmax(0,1fr) 52px!important;width:100%!important;max-width:100%!important;height:58px!important;margin-top:22px!important;border-radius:10px!important;overflow:hidden!important;box-shadow:none!important}
.tfmi9-searchbar input{width:100%!important;min-width:0!important;max-width:100%!important;padding:0 14px!important;font-size:16px!important}
.tfmi9-searchbar input::placeholder{font-size:15px!important}
.tfmi9-searchbar button{width:52px!important;min-width:52px!important;max-width:52px!important;padding:0!important;display:grid!important;place-items:center!important;font-size:18px!important}
.tfmi9-searchbar button .tfmi-mobile-action-label{display:none!important}
.tfmi9-searchbar button .tfmi-mobile-action-icon{display:inline-grid!important;place-items:center!important}
.tfmi9-hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
.tfmi9-hero-actions .tfmi9-btn{width:100%!important}
.tfmi9-company-grid,.tfmi9-people-directory,.tfmi9-product-grid,.tfmi9-people-cards,.tfmi9-story-grid{grid-template-columns:minmax(0,1fr)!important}
.tfmi9-company-grid>a,.tfmi9-people-directory>a{min-height:86px!important;padding:14px!important;gap:12px!important;border-radius:10px!important}
.tfmi9-cta-band{padding:24px 20px!important;border-radius:12px!important;gap:18px!important}
.tfmi9-cta-band .tfmi9-btn{width:100%!important}

/* ---------- Registry / verification ---------- */
.tfmi8-verify-hero,.tfmi8-directory-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important;padding:26px 0 34px!important}
.tfmi8-verify-hero h1,.tfmi8-directory-hero h1,.tfmi8-page-hero h1{font-size:clamp(36px,10vw,42px)!important;line-height:1!important}
.tfmi8-verify-form{display:grid!important;grid-template-columns:minmax(0,1fr) 52px!important;gap:0!important;width:100%!important;max-width:100%!important;height:58px!important;margin-top:22px!important;border:1px solid #cfd0cd!important;border-radius:10px!important;overflow:hidden!important;background:#fff!important}
.tfmi8-verify-form input{height:56px!important;border:0!important;border-radius:0!important;padding:0 14px!important}
.tfmi8-verify-form button{width:52px!important;min-width:52px!important;max-width:52px!important;height:56px!important;border-radius:0!important;padding:0!important;display:grid!important;place-items:center!important;font-size:18px!important}
.tfmi8-verify-form button .tfmi-mobile-action-label{display:none!important}
.tfmi8-verify-form button .tfmi-mobile-action-icon{display:inline-grid!important;place-items:center!important}
.tfmi8-trust-row{gap:8px!important}
.tfmi8-trust-row span{font-size:11px!important}
.tfmi8-result,.tfmi8-registry-list>a{grid-template-columns:40px minmax(0,1fr)!important;gap:12px!important;padding:14px!important}
.tfmi8-registry-list>a{grid-template-columns:minmax(0,1fr)!important}
.tfmi8-result-status,.tfmi8-registry-list>a>b{grid-column:2!important;justify-self:start!important}
.tfmi8-registry-list>a>b{grid-column:1!important;margin-top:8px!important}

/* ---------- Shared sections/cards ---------- */
.tfmi8-section,.tfmi8-results-section,.tfmi9-section,.tfmi102-section,.tfmi-market-section{padding-top:34px!important;padding-bottom:34px!important}
.tfmi8-section-head,.tfmi9-section-head,.tfmi10-section-head,.tfmi-market-sectionhead{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}
.tfmi8-section-head h2,.tfmi9-section-head h2{font-size:27px!important;line-height:1.08!important}
.tfmi8-story-company-grid,.tfmi8-company-grid,.tfmi8-three,.tfmi8-story-list,.tfmi8-people-list,.tfmi8-people-grid,
.tfmi10-feed,.tfmi10-card-grid,.tfmi10-change-grid,.tfmi-intent-grid,.tfmi-intent-cards{grid-template-columns:minmax(0,1fr)!important}
.tfmi8-story-company-grid>a,.tfmi8-company-grid>a,.tfmi8-three article{min-height:0!important;padding:18px!important;border-radius:10px!important}
.tfmi8-three p{min-height:0!important}
.tfmi8-identity-band{margin-top:34px!important;padding:24px 20px!important;border-radius:12px!important}
.tfmi8-identity-actions{display:grid!important;width:100%!important;grid-template-columns:1fr!important}
.tfmi8-identity-actions>a{width:100%!important}

/* ---------- Founder Economy ---------- */
.tfmi-market-container{padding-top:12px!important}
.tfmi-market-nav{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:10px 0!important;border-bottom:1px solid var(--tfmi-m-line)!important}
.tfmi-market-brand{min-height:44px!important;display:flex!important;align-items:center!important;font-size:15px!important}
.tfmi-market-links{grid-column:1/-1!important;display:flex!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;padding-top:6px!important;border-top:1px solid var(--tfmi-m-line)!important;scrollbar-width:none!important;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.tfmi-market-links::-webkit-scrollbar,.tfmi-discover-tabs::-webkit-scrollbar,.tfmi-feed-filters::-webkit-scrollbar{display:none!important}
.tfmi-market-links a,.tfmi-discover-tabs a,.tfmi-feed-filters a{flex:0 0 auto!important;min-height:46px!important;display:inline-flex!important;align-items:center!important;padding:0 14px!important;white-space:nowrap!important;font-size:14px!important;scroll-snap-align:start}
.tfmi-market-account{display:none!important}
.tfmi-discover-hero,.tfmi-feed-head,.tfmi-opps-head{padding:28px 0 34px!important}
.tfmi-discover-hero h1,.tfmi-feed-head h1,.tfmi-opps-head h1{max-width:100%!important;font-size:clamp(38px,10.8vw,44px)!important;line-height:1!important;letter-spacing:-.045em!important;text-wrap:balance}
.tfmi-discover-hero>p,.tfmi-feed-head>p,.tfmi-opps-head>p{font-size:17px!important;line-height:1.55!important}
.tfmi-discover-search{display:grid!important;grid-template-columns:minmax(0,1fr) 52px!important;width:100%!important;max-width:100%!important;height:58px!important;padding:0!important;border:1px solid #d5d5d1!important;border-radius:10px!important;overflow:hidden!important;background:#fff!important}
.tfmi-discover-search input{width:100%!important;min-width:0!important;max-width:100%!important;border:0!important;padding:0 14px!important;font-size:16px!important}
.tfmi-discover-search input::placeholder{font-size:15px!important}
.tfmi-discover-search button{width:52px!important;min-width:52px!important;max-width:52px!important;padding:0!important;border-radius:0!important;display:grid!important;place-items:center!important;font-size:18px!important}
.tfmi-discover-search button .tfmi-mobile-action-label{display:none!important}
.tfmi-discover-search button .tfmi-mobile-action-icon{display:inline-grid!important;place-items:center!important}
.tfmi-discover-actions,.tfmi-opps-actions,.tfmi-feed-compose-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
.tfmi-discover-actions .tfmi-market-btn,.tfmi-opps-actions .tfmi-market-btn,.tfmi-feed-compose-actions .tfmi-market-btn{width:100%!important;min-height:50px!important;padding-inline:12px!important;white-space:nowrap!important}
.tfmi-discover-actions .tfmi-market-textlink,.tfmi-opps-actions .tfmi-market-textlink,.tfmi-feed-compose-actions .tfmi-market-textlink{grid-column:1/-1!important;justify-self:start!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;padding:0 4px!important}
.tfmi-discover-tabs,.tfmi-feed-filters,.tfmi-filter-row{position:relative!important;display:flex!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;margin-inline:calc(var(--tfmi-m-gutter) * -1)!important;padding-inline:var(--tfmi-m-gutter)!important;scrollbar-width:none!important;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.tfmi-discover-tabs{border-bottom:1px solid var(--tfmi-m-line)!important}
.tfmi-discover-tabs a{position:relative!important;padding-inline:12px!important}
.tfmi-discover-tabs a.is-active::after,.tfmi-feed-filters a.is-active::after{content:'';position:absolute;left:12px;right:12px;bottom:0;height:2px;background:var(--tfmi-m-red)}
.tfmi-discover-grid,.tfmi-opportunity-grid,.tfmi-promo-strip,.tfmi-commerce-grid,.tfmi-feed-layout,.tfmi-feed-side{grid-template-columns:minmax(0,1fr)!important}
.tfmi-discover-card,.tfmi-opportunity-card,.tfmi-feed-item,.tfmi-side-result{max-width:100%!important;border-radius:10px!important}
.tfmi-opps-filter,.tfmi-market-form,.tfmi-market-form.is-wide,.tfmi-dual-input{grid-template-columns:minmax(0,1fr)!important}
.tfmi-market-form .is-wide{grid-column:auto!important}
.tfmi-market-form button,.tfmi-market-form .tfmi-market-btn{width:100%!important}
.tfmi-feed-toolbar,.tfmi-opps-head-compact{align-items:flex-start!important;flex-direction:column!important}
.tfmi-feed-primary-actions{width:100%!important}
.tfmi-message{max-width:94%!important}

/* ---------- Entity profiles ---------- */
.tfmi102-wrap{margin-bottom:58px!important}
.tfmi102-breadcrumb{min-height:40px!important;font-size:10px!important}
.tfmi102-cover{height:148px!important;margin-inline:calc(var(--tfmi-m-gutter) * -.5)!important;border-radius:0!important}
.tfmi102-identity{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:11px!important;margin-top:-42px!important;padding:0 2px 18px!important}
.tfmi102-logo{width:88px!important;height:88px!important;border-width:4px!important;border-radius:18px!important}
.tfmi102-person-photo{border-radius:50%!important}
.tfmi102-identity-copy{width:100%!important;padding-top:0!important}
.tfmi102-page .tfmi102-identity-copy h1{font-size:clamp(32px,9.4vw,38px)!important;line-height:1.01!important;letter-spacing:-.04em!important}
.tfmi102-tagline{font-size:16px!important;line-height:1.45!important}
.tfmi102-meta{font-size:12px!important}
.tfmi102-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
.tfmi102-actions .tfmi102-btn{width:100%!important;min-height:48px!important;padding:10px 12px!important;white-space:nowrap!important}
.tfmi102-actions .is-quiet{display:none!important}
.tfmi102-socials{justify-content:flex-start!important;padding:0 2px 12px!important}
.tfmi102-section-nav{gap:0!important;margin-inline:calc(var(--tfmi-m-gutter) * -1)!important;padding-inline:var(--tfmi-m-gutter)!important;scrollbar-width:none!important;overscroll-behavior-inline:contain!important}
.tfmi102-section-nav::-webkit-scrollbar{display:none!important}
.tfmi102-section-nav a{min-height:46px!important;display:inline-flex!important;align-items:center!important;padding:0 12px!important;font-size:13px!important}
.tfmi102-layout{grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
.tfmi102-overview-grid,.tfmi102-side,.tfmi102-people-grid,.tfmi102-company-role-grid,.tfmi102-product-grid,.tfmi102-story-grid{grid-template-columns:minmax(0,1fr)!important}
.tfmi102-glance{padding:17px!important;border-radius:10px!important}
.tfmi102-glance dl>div{grid-template-columns:94px minmax(0,1fr)!important;gap:12px!important}
.tfmi102-product-grid article{grid-template-columns:78px minmax(0,1fr)!important}
.tfmi102-product-grid img,.tfmi102-product-fallback{width:78px!important;height:78px!important}
.tfmi102-story-grid article{display:grid!important;grid-template-columns:100px minmax(0,1fr)!important}
.tfmi102-story-image{aspect-ratio:1/1!important;height:100%!important}
.tfmi102-story-grid article>div{padding:12px!important}
.tfmi102-timeline article{grid-template-columns:70px 10px minmax(0,1fr)!important;gap:8px!important}
.tfmi102-metrics{grid-template-columns:1fr 1fr!important}
.tfmi102-card{border-radius:10px!important;padding:17px!important}

/* ---------- Management workspace ---------- */
.tfmi11-manage-hero{align-items:flex-start!important;flex-direction:column!important;gap:18px!important;padding-top:24px!important}
.tfmi11-manage-title h1{font-size:34px!important;line-height:1.03!important}
.tfmi11-manage-hero-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:8px!important}
.tfmi11-manage-hero-actions .tfmi9-btn{width:100%!important}
.tfmi11-save-state{display:none!important}
.tfmi11-profile-health{grid-template-columns:1fr 1fr!important;border-radius:10px!important}
.tfmi11-profile-health>div{padding:14px!important;border-bottom:1px solid var(--tfmi-m-line)!important}
.tfmi11-workspace{grid-template-columns:minmax(0,1fr)!important}
.tfmi11-workspace-nav{position:sticky!important;top:0!important;z-index:18!important;display:flex!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;margin-inline:calc(var(--tfmi-m-gutter) * -1)!important;padding:7px var(--tfmi-m-gutter)!important;background:rgba(255,255,255,.97)!important;scrollbar-width:none!important}
.tfmi11-workspace-nav::-webkit-scrollbar{display:none!important}
.tfmi11-workspace-nav-title,.tfmi11-workspace-nav-foot{display:none!important}
.tfmi11-workspace-nav>a{flex:0 0 auto!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;white-space:nowrap!important;padding:0 12px!important}
.tfmi11-workspace-nav>a span{display:none!important}
.tfmi11-panel{padding:20px 16px!important;border-radius:10px!important}
.tfmi11-panel-head{grid-template-columns:1fr!important;gap:8px!important;align-items:start!important}
.tfmi11-form-grid,.tfmi11-editor-form .tfmi-form-grid,.tfmi11-funding-fields{grid-template-columns:minmax(0,1fr)!important}
.tfmi11-wide{grid-column:auto!important}
.tfmi11-form-footer{align-items:stretch!important;flex-direction:column!important}
.tfmi11-form-footer .tfmi9-btn{width:100%!important}
.tfmi11-media-card,.tfmi11-banner-card{grid-template-columns:1fr!important}
.tfmi11-banner-preview{width:100%!important;height:110px!important}
.tfmi11-analytics-grid{grid-template-columns:1fr 1fr!important}

/* ---------- Member account ---------- */
.tfmi-member-shell{display:block!important;border:0!important}
.tfmi-member-sidebar{display:none!important}
.tfmi-member-main{padding:24px 0 calc(92px + env(safe-area-inset-bottom))!important}
.tfmi-member-head{display:block!important}
.tfmi-member-head h1{font-size:32px!important;line-height:1.04!important}
.tfmi-member-actions{justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important}
.tfmi-member-kpis,.tfmi-member-entitygrid,.tfmi-member-settings,.tfmi-overview-columns,.tfmi-trust-grid,.tfmi-settings-checks{grid-template-columns:minmax(0,1fr)!important}
.tfmi-member-panel{padding:17px!important;border-radius:10px!important}
.tfmi-member-list article{align-items:flex-start!important;flex-wrap:wrap!important;gap:12px!important}
.tfmi-member-list .tfmi-member-actions{width:100%!important;margin:0!important}
.tfmi-filter-row{padding-bottom:4px!important}
.tfmi-filter-row a{flex:0 0 auto!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;white-space:nowrap!important;padding-inline:12px!important}
.tfmi-mobile-account-nav{height:72px!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding-bottom:env(safe-area-inset-bottom)!important}
.tfmi-mobile-account-nav a{min-width:0!important;font-size:10.5px!important;font-weight:750!important;gap:4px!important}
.tfmi-mobile-account-nav svg{width:21px!important;height:21px!important}

/* ---------- Onboarding/auth ---------- */
.tfmi-auth-shell{padding:26px 0 48px!important}
.tfmi-auth-card{padding:24px 18px!important;border-radius:12px!important}
.tfmi-auth-card h1{font-size:30px!important;line-height:1.04!important}
.tfmi-onboard-shell{width:100%!important}
.tfmi-onboard-top{padding:0 var(--tfmi-m-gutter)!important}
.tfmi-onboard-layout{display:block!important;border-radius:0!important;border-left:0!important;border-right:0!important}
.tfmi-onboard-progress{border-right:0!important;border-bottom:1px solid var(--tfmi-m-line)!important;padding:14px var(--tfmi-m-gutter)!important}
.tfmi-onboard-user,.tfmi-progress-copy,.tfmi-progress-bar,.tfmi-onboard-meter,.tfmi-onboard-why{display:none!important}
.tfmi-onboard-progress nav{display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;gap:2px!important;scrollbar-width:none!important}
.tfmi-onboard-progress nav::-webkit-scrollbar{display:none!important}
.tfmi-onboard-progress nav a{flex:0 0 auto!important;min-height:44px!important;white-space:nowrap!important;padding:0 10px!important}
.tfmi-onboard-main{padding:26px var(--tfmi-m-gutter) 44px!important}
.tfmi-onboard-main h1{font-size:32px!important;line-height:1.04!important}
.tfmi-choice-grid,.tfmi-onboard-fields,.tfmi-company-paths{grid-template-columns:minmax(0,1fr)!important}
.tfmi-onboard-fields label:first-child{grid-column:auto!important}
.tfmi-onboard-create,.tfmi-onboard-results article,.tfmi-review-card,.tfmi-activation-card,.tfmi-identity-match,.tfmi-identity-connected,.tfmi-next-action{display:block!important}
.tfmi-inline-relation{width:100%!important;margin-top:8px!important;flex-wrap:wrap!important}
.tfmi-inline-relation select{flex:1 1 180px!important}
.tfmi-onboard-search label>div,.tfmi-identity-search label>div{grid-template-columns:minmax(0,1fr) 52px!important}
.tfmi-onboard-search button,.tfmi-identity-search button{width:52px!important;padding:0!important}

/* ---------- Tables / analytics ---------- */
.tfmi-table-wrap,.tfmi8-table-wrap,.tfmi9-table-wrap,.tfmi102-table-wrap,.tfmi-member-table-wrap{
  display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-inline:contain!important;scrollbar-width:thin;
}
.tfmi-data-table,.tfmi8-table,.tfmi9-table,.tfmi102-table{width:max-content!important;min-width:100%!important;max-width:none!important}
.tfmi-data-table th,.tfmi-data-table td,.tfmi8-table th,.tfmi8-table td,.tfmi9-table th,.tfmi9-table td,.tfmi102-table th,.tfmi102-table td{white-space:nowrap!important}

/* ---------- Generic form/grid hardening ---------- */
.tfmi-form-grid,.tfmi8-form-grid,.tfmi9-form-grid,.tfmi9-fields-two,.tfmi-market-form,.tfmi-market-form.is-wide,.tfmi-opps-filter,
.tfmi11-form-grid,.tfmi11-editor-form .tfmi-form-grid,.tfmi-filter-grid,.tfmi42-search-grid,.tfmi42-filter-grid{
  grid-template-columns:minmax(0,1fr)!important;
}
.tfmi-field-wide,.tfmi9-field-wide,.tfmi11-wide,.tfmi-market-form .is-wide{grid-column:auto!important}
.tfmi-search-actions,.tfmi42-result-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
.tfmi-search-actions>*{min-height:44px!important}

/* Small-screen action density. */
@media(max-width:359px){
  :root{--tfmi-m-gutter:16px}
  .tfmi8-hero h1,.tfmi9-directory-hero h1,.tfmi-discover-hero h1,.tfmi-feed-head h1,.tfmi-opps-head h1{font-size:36px!important}
  .tfmi-discover-actions,.tfmi-opps-actions,.tfmi-feed-compose-actions,.tfmi102-actions{grid-template-columns:1fr!important}
  .tfmi-discover-actions .tfmi-market-textlink,.tfmi-opps-actions .tfmi-market-textlink,.tfmi-feed-compose-actions .tfmi-market-textlink{grid-column:auto!important}
  .tfmi102-metrics,.tfmi11-profile-health,.tfmi11-analytics-grid{grid-template-columns:1fr!important}
}

@media(prefers-reduced-motion:reduce){
  .tfmi8-shell *,.tfmi8-page *,.tfmi9-page *,.tfmi10-page *,.tfmi11-manage-page *,.tfmi102-page *,.tfmi-market-page *,.tfmi-member-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* ---------- The Founders Magazine theme compatibility ----------
 * The theme owns the masthead; v10.9 owns the plugin surface below it.
 * These equal-specificity, late-loaded rules intentionally beat older theme
 * plugin rescue CSS without altering the theme's desktop layout.
 */
body.tfm-theme .tfmi8-shell,body.tfm-theme .tfmi8-page>.tfmi8-container,body.tfm-theme .tfmi9-container,
body.tfm-theme .tfmi-market-container,body.tfm-theme .tfmi102-wrap,body.tfm-theme .tfmi-member-shell{
  width:calc(100% - (var(--tfmi-m-gutter) * 2))!important;max-width:100%!important;
}
body.tfm-theme .tfmi8-searchfield{grid-template-columns:38px minmax(0,1fr) 52px!important;height:58px!important}
body.tfm-theme .tfmi8-searchfield button{width:52px!important;min-width:52px!important;max-width:52px!important;padding:0!important}
body.tfm-theme .tfmi9-searchbar{grid-template-columns:minmax(0,1fr) 52px!important;height:58px!important}
body.tfm-theme .tfmi9-searchbar button{width:52px!important;min-width:52px!important;max-width:52px!important;padding:0!important;font-size:18px!important}
body.tfm-theme .tfmi-discover-search{grid-template-columns:minmax(0,1fr) 52px!important;height:58px!important;padding:0!important}
body.tfm-theme .tfmi-discover-search button{width:52px!important;min-width:52px!important;max-width:52px!important;padding:0!important;font-size:18px!important}
body.tfm-theme .tfmi8-hero h1,body.tfm-theme .tfmi9-directory-hero h1,body.tfm-theme .tfmi-discover-hero h1,
body.tfm-theme .tfmi-feed-head h1,body.tfm-theme .tfmi-opps-head h1{max-width:100%!important;overflow-wrap:break-word!important}
body.tfm-theme .tfmi-discover-actions,body.tfm-theme .tfmi-opps-actions{grid-template-columns:1fr 1fr!important}
body.tfm-theme .tfmi-discover-actions .tfmi-market-textlink,body.tfm-theme .tfmi-opps-actions .tfmi-market-textlink{grid-column:1/-1!important}
@media(max-width:359px){
  body.tfm-theme .tfmi-discover-actions,body.tfm-theme .tfmi-opps-actions{grid-template-columns:1fr!important}
  body.tfm-theme .tfmi-discover-actions .tfmi-market-textlink,body.tfm-theme .tfmi-opps-actions .tfmi-market-textlink{grid-column:auto!important}
}
