/* JSV 2.0.178 — mobile Activity composer controls belong inside the modal only. */
@media (max-width:900px){
  /* Never allow Activity UI or legacy theme rules to restore the six shortcuts on the feed. */
  html body #jsf-activity-page .jsf-activity-quick-tools,
  html body.jsa-act-ready #jsf-activity-page .jsf-activity-quick-tools,
  html body #jsf-activity-page .activity-compose-options,
  html body #jsf-activity-page .jsf-activity-composer .activity-compose-options,
  html body #jsf-activity-page .jsf-activity-composer > .actions,
  html body #jsf-activity-page .jsf-activity-composer .composer-actions{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  /* The face of the feed stays a simple launcher. */
  html body #jsf-activity-page .jsf-activity-quick-compose{
    padding-bottom:10px!important;
  }

  /* Replace the old anonymous "Add to your trail post" strip with six clear choices. */
  html body #jsf-compose-modal .jsf-compose-add{
    display:none!important;
  }
  html body #jsf-compose-modal .jsv-mobile-compose-tools{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:9px!important;
    margin:11px 0 12px!important;
  }
  html body #jsf-compose-modal .jsv-mobile-compose-tool{
    appearance:none!important;
    display:grid!important;
    grid-template-rows:32px auto!important;
    place-items:center!important;
    gap:4px!important;
    min-width:0!important;
    min-height:76px!important;
    padding:9px 5px!important;
    border:1px solid #d8e1e8!important;
    border-radius:13px!important;
    background:#f7fafc!important;
    color:#17324b!important;
    box-shadow:none!important;
    font:800 12px/1.15 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    text-align:center!important;
  }
  html body #jsf-compose-modal .jsv-mobile-compose-tool .jsv-mobile-compose-icon{
    display:grid!important;
    place-items:center!important;
    width:32px!important;
    height:32px!important;
    border-radius:10px!important;
    background:#eef4f8!important;
    font-size:21px!important;
    line-height:1!important;
  }
  html body #jsf-compose-modal .jsv-mobile-compose-tool[aria-pressed="true"]{
    border-color:#2b7ea8!important;
    background:#eaf5fb!important;
    box-shadow:0 0 0 2px rgba(43,126,168,.12)!important;
  }
  html body #jsf-compose-modal .jsv-mobile-compose-tool:focus-visible{
    outline:3px solid rgba(43,126,168,.35)!important;
    outline-offset:2px!important;
  }

  /* Only the feature the member chooses should expand below the six choices. */
  html body #jsf-compose-modal .jsf-compose-feature-fields [data-jsv-mobile-feature-hidden="1"],
  html body #jsf-compose-modal .jsf-compose-feature-fields [data-jsv-mobile-support-hidden="1"]{
    display:none!important;
  }
  html body #jsf-compose-modal .jsf-compose-feature-fields [data-jsv-mobile-feature-active="1"]{
    display:grid!important;
  }
  html body #jsf-compose-modal .jsf-compose-feature-fields .jsf-poll-builder[data-jsv-mobile-feature-active="1"]{
    display:block!important;
  }
  html body #jsf-compose-modal .jsf-compose-feature-fields .jsv-photo-selection[data-jsv-mobile-feature-active="1"],
  html body #jsf-compose-modal .jsf-compose-feature-fields .jsv-upload-help[data-jsv-mobile-feature-active="1"],
  html body #jsf-compose-modal .jsf-compose-feature-fields .jsv-upload-status[data-jsv-mobile-feature-active="1"]{
    display:block!important;
  }

  /* Keep selected feature controls compact and readable above the fixed submit area. */
  html body #jsf-compose-modal .jsf-compose-feature-fields{
    display:grid!important;
    gap:10px!important;
    margin-top:0!important;
  }
  html body #jsf-compose-modal .jsf-compose-feature-fields label[data-compose-field]{
    margin:0!important;
  }
}

@media (max-width:380px){
  html body #jsf-compose-modal .jsv-mobile-compose-tools{gap:7px!important}
  html body #jsf-compose-modal .jsv-mobile-compose-tool{min-height:70px!important;font-size:11px!important;padding-inline:3px!important}
}
